Sleipnir C++ API
|
#include <sleipnir/autodiff/Variable.hpp>
Public Member Functions | |
Variable ()=default | |
constexpr | Variable (std::nullptr_t) |
Variable (std::floating_point auto value) | |
Variable (std::integral auto value) | |
Variable (const detail::ExpressionPtr &expr) | |
constexpr | Variable (detail::ExpressionPtr &&expr) |
Variable & | operator= (double value) |
void | SetValue (double value) |
Variable & | operator*= (const Variable &rhs) |
Variable & | operator/= (const Variable &rhs) |
Variable & | operator+= (const Variable &rhs) |
Variable & | operator-= (const Variable &rhs) |
double | Value () |
ExpressionType | Type () const |
An autodiff variable pointing to an expression node.
|
default |
Constructs a linear Variable with a value of zero.
|
inlineexplicitconstexpr |
Constructs an empty Variable.
|
inline |
|
inline |
|
inlineexplicit |
Constructs a Variable pointing to the specified expression.
expr | The autodiff variable. |
|
inlineexplicitconstexpr |
Constructs a Variable pointing to the specified expression.
expr | The autodiff variable. |
Variable-Variable compound multiplication operator.
rhs | Operator right-hand side. |
Variable-Variable compound addition operator.
rhs | Operator right-hand side. |
Variable-Variable compound subtraction operator.
rhs | Operator right-hand side. |
Variable-Variable compound division operator.
rhs | Operator right-hand side. |
Assignment operator for double.
value | The value of the Variable. |
|
inline |
Returns the type of this expression (constant, linear, quadratic, or nonlinear).
double sleipnir::Variable::Value | ( | ) |
Returns the value of this variable.
|
friend |
std::abs() for Variables.
x | The argument. |
|
friend |
std::acos() for Variables.
x | The argument. |
|
friend |
std::asin() for Variables.
x | The argument. |
|
friend |
std::atan() for Variables.
x | The argument. |
std::atan2() for Variables.
y | The y argument. |
x | The x argument. |
|
friend |
std::cos() for Variables.
x | The argument. |
|
friend |
std::cosh() for Variables.
x | The argument. |
|
friend |
|
friend |
std::erf() for Variables.
x | The argument. |
|
friend |
std::exp() for Variables.
x | The argument. |
|
friend |
std::hypot() for Variables.
x | The x argument. |
y | The y argument. |
|
friend |
std::hypot() for Variables.
x | The x argument. |
y | The y argument. |
z | The z argument. |
|
friend |
|
friend |
std::log() for Variables.
x | The argument. |
|
friend |
std::log10() for Variables.
x | The argument. |
Variable-Variable multiplication operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Unary plus operator.
lhs | Operand for unary plus. |
Variable-Variable addition operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Unary minus operator.
lhs | Operand for unary minus. |
Variable-Variable subtraction operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
Variable-Variable division operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
std::pow() for Variables.
base | The base. |
power | The power. |
|
friend |
sign() for Variables.
x | The argument. |
|
friend |
std::sin() for Variables.
x | The argument. |
|
friend |
std::sinh() for Variables.
x | The argument. |
|
friend |
std::sqrt() for Variables.
x | The argument. |
|
friend |
std::tan() for Variables.
x | The argument. |
|
friend |
std::tanh() for Variables.
x | The argument. |