![]() |
Sleipnir C++ API
|
#include <sleipnir/autodiff/expression.hpp>
Additional Inherited Members | |
Public Types inherited from slp::detail::Expression< Scalar > | |
| using | Scalar = Scalar |
Public Attributes inherited from slp::detail::Expression< Scalar > | |
| Scalar | val |
| The value of the expression node. | |
| Scalar | adjoint |
| The adjoint of the expression node, used during autodiff. | |
| uint32_t | incoming_edges |
| Counts incoming edges for this node. | |
| int32_t | col |
| This expression's column in a Jacobian, or -1 otherwise. | |
| ExpressionPtr< Scalar > | adjoint_expr |
| uint32_t | ref_count |
| Reference count for intrusive shared pointer. | |
| std::array< ExpressionPtr< Scalar >, 2 > | args |
| Expression arguments. | |
Derived expression type for binary multiplication operator.
| Scalar | Scalar type. |
| T | Expression type. |
|
inlineconstexpr |
Constructs a binary expression (an operator with two arguments).
| lhs | Binary operator's left operand. |
| rhs | Binary operator's right operand. |
|
inlineoverridevirtual |
Returns ∂/∂l as an Expression.
| lhs | Left argument to binary operator. |
| rhs | Right argument to binary operator. |
| parent_adjoint | Adjoint of parent expression. |
Reimplemented from slp::detail::Expression< Scalar >.
|
inlineoverridevirtual |
Returns ∂/∂r as an Expression.
| lhs | Left argument to binary operator. |
| rhs | Right argument to binary operator. |
| parent_adjoint | Adjoint of parent expression. |
Reimplemented from slp::detail::Expression< Scalar >.
|
inlineoverridevirtual |
Returns ∂/∂l as a Scalar.
| lhs | Left argument to binary operator. |
| rhs | Right argument to binary operator. |
| parent_adjoint | Adjoint of parent expression. |
Reimplemented from slp::detail::Expression< Scalar >.
|
inlineoverridevirtual |
Returns ∂/∂r as a Scalar.
| lhs | Left argument to binary operator. |
| rhs | Right argument to binary operator. |
| parent_adjoint | Adjoint of parent expression. |
Reimplemented from slp::detail::Expression< Scalar >.
|
inlineoverridevirtual |
Returns the type of this expression (constant, linear, quadratic, or nonlinear).
Implements slp::detail::Expression< Scalar >.
|
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.
| lhs | Left argument to binary operator. |
| rhs | Right argument to binary operator. |
Implements slp::detail::Expression< Scalar >.