#include <sleipnir/autodiff/Expression.hpp>
|
constexpr | DecisionVariableExpression ()=default |
|
constexpr | DecisionVariableExpression (double value) |
|
double | Value (double, double) const override |
|
ExpressionType | Type () const override |
|
constexpr | Expression ()=default |
|
constexpr | Expression (double value) |
|
constexpr | Expression (ExpressionPtr lhs) |
|
constexpr | Expression (ExpressionPtr lhs, ExpressionPtr rhs) |
|
virtual | ~Expression ()=default |
|
constexpr bool | IsConstant (double constant) const |
|
virtual double | GradientValueLhs (double lhs, double rhs, double parentAdjoint) const |
|
virtual double | GradientValueRhs (double lhs, double rhs, double parentAdjoint) const |
|
virtual ExpressionPtr | GradientLhs (const ExpressionPtr &lhs, const ExpressionPtr &rhs, const ExpressionPtr &parentAdjoint) const |
|
virtual ExpressionPtr | GradientRhs (const ExpressionPtr &lhs, const ExpressionPtr &rhs, const ExpressionPtr &parentAdjoint) const |
|
◆ DecisionVariableExpression() [1/2]
constexpr sleipnir::detail::DecisionVariableExpression::DecisionVariableExpression |
( |
| ) |
|
|
constexprdefault |
Constructs a decision variable expression with a value of zero.
◆ DecisionVariableExpression() [2/2]
constexpr sleipnir::detail::DecisionVariableExpression::DecisionVariableExpression |
( |
double |
value | ) |
|
|
inlineexplicitconstexpr |
Constructs a nullary expression (an operator with no arguments).
- Parameters
-
value | The expression value. |
◆ Type()
ExpressionType sleipnir::detail::DecisionVariableExpression::Type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Value()
double sleipnir::detail::DecisionVariableExpression::Value |
( |
double |
lhs, |
|
|
double |
rhs |
|
) |
| const |
|
inlineoverridevirtual |
Either nullary operator with no arguments, unary operator with one argument, or binary operator with two arguments. This operator is used to update the node's value.
- Parameters
-
lhs | Left argument to binary operator. |
rhs | Right argument to binary operator. |
Implements sleipnir::detail::Expression.
The documentation for this struct was generated from the following file: