![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/autodiff/expression.hpp>
Public Member Functions | |
| constexpr | AtanExpression (ExpressionPtr< Scalar > lhs) |
| Scalar | value (Scalar x, Scalar) const override |
| ExpressionType | type () const override |
| std::string_view | name () const override |
| Scalar | grad_l (Scalar x, Scalar) const override |
| ExpressionPtr< Scalar > | grad_expr_l (const ExpressionPtr< Scalar > &x, const ExpressionPtr< Scalar > &) const override |
Public Member Functions inherited from slp::detail::Expression< Scalar > | |
| constexpr | Expression ()=default |
| Constructs a constant expression with a value of zero. | |
| constexpr | Expression (Scalar value) |
| constexpr | Expression (ExpressionPtr< Scalar > lhs) |
| constexpr | Expression (ExpressionPtr< Scalar > lhs, ExpressionPtr< Scalar > rhs) |
| constexpr bool | is_constant (Scalar constant) const |
| virtual Scalar | grad_r (Scalar lhs, Scalar rhs) const |
| virtual ExpressionPtr< Scalar > | grad_expr_r (const ExpressionPtr< Scalar > &lhs, const ExpressionPtr< Scalar > &rhs) const |
Additional Inherited Members | |
Public Types inherited from slp::detail::Expression< Scalar > | |
| using | Scalar = Scalar |
| Scalar type alias. | |
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. | |
| ExpressionPtr< Scalar > | adjoint_expr |
| std::array< ExpressionPtr< Scalar >, 2 > | args |
| Expression arguments. | |
| int32_t | scratch |
| uint32_t | ref_count |
| Reference count for intrusive shared pointer. | |
Derived expression type for atan().
| Scalar | Scalar type. |
|
inlineexplicitconstexpr |
Constructs an unary expression (an operator with one argument).
| lhs | Unary operator's operand. |
|
inlineoverridevirtual |
Returns ∂/∂l as an Expression.
| lhs | Left argument to binary operator. |
| rhs | Right argument to binary operator. |
Reimplemented from slp::detail::Expression< Scalar >.
|
inlineoverridevirtual |
Returns ∂/∂l as a Scalar.
| lhs | Left argument to binary operator. |
| rhs | Right argument to binary operator. |
Reimplemented from slp::detail::Expression< Scalar >.
|
inlineoverridevirtual |
Returns the name of this expression.
Implements 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 >.