#include <sleipnir/autodiff/Expression.hpp>
|
constexpr | DivExpression (ExpressionPtr lhs, ExpressionPtr rhs) |
|
double | Value (double lhs, double rhs) const override |
|
ExpressionType | Type () const override |
|
double | GradientValueLhs (double, double rhs, double parentAdjoint) const override |
|
double | GradientValueRhs (double lhs, double rhs, double parentAdjoint) const override |
|
ExpressionPtr | GradientLhs (const ExpressionPtr &, const ExpressionPtr &rhs, const ExpressionPtr &parentAdjoint) const override |
|
ExpressionPtr | GradientRhs (const ExpressionPtr &lhs, const ExpressionPtr &rhs, const ExpressionPtr &parentAdjoint) 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 |
|
◆ DivExpression()
Constructs a binary expression (an operator with two arguments).
- Parameters
-
lhs | Binary operator's left operand. |
rhs | Binary operator's right operand. |
◆ GradientLhs()
Returns Variable adjoint of the left child expression.
- Parameters
-
lhs | Left argument to binary operator. |
rhs | Right argument to binary operator. |
parentAdjoint | Adjoint of parent expression. |
Reimplemented from sleipnir::detail::Expression.
◆ GradientRhs()
Returns Variable adjoint of the right child expression.
- Parameters
-
lhs | Left argument to binary operator. |
rhs | Right argument to binary operator. |
parentAdjoint | Adjoint of parent expression. |
Reimplemented from sleipnir::detail::Expression.
◆ GradientValueLhs()
Returns double adjoint of the left child expression.
- Parameters
-
lhs | Left argument to binary operator. |
rhs | Right argument to binary operator. |
parentAdjoint | Adjoint of parent expression. |
Reimplemented from sleipnir::detail::Expression.
◆ GradientValueRhs()
Returns double adjoint of the right child expression.
- Parameters
-
lhs | Left argument to binary operator. |
rhs | Right argument to binary operator. |
parentAdjoint | Adjoint of parent expression. |
Reimplemented from sleipnir::detail::Expression.
◆ 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: