#include <sleipnir/autodiff/Expression.hpp>
|
constexpr | ConstExpression ()=default |
|
constexpr | ConstExpression (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 |
|
◆ ConstExpression() [1/2]
constexpr sleipnir::detail::ConstExpression::ConstExpression |
( |
| ) |
|
|
constexprdefault |
Constructs a constant expression with a value of zero.
◆ ConstExpression() [2/2]
constexpr sleipnir::detail::ConstExpression::ConstExpression |
( |
double |
value | ) |
|
|
inlineexplicitconstexpr |
Constructs a nullary expression (an operator with no arguments).
- Parameters
-
value | The expression value. |
◆ Type()
◆ Value()
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: