![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/autodiff/expression.hpp>
Static Public Attributes | |
| static constexpr std::string_view | NAME = "binary plus" |
| The expression's name. | |
| static constexpr bool | CONSTANT_PARTIALS = true |
| Whether the partial derivatives are the same at every argument value. | |
Static Public Attributes inherited from slp::detail::NonLeafExpression< BinaryPlusExpression< Scalar, T >, Scalar, 2, T > | |
| static constexpr size_t | NUM_ARGS |
| The number of arguments. | |
| static constexpr bool | CONSTANT_PARTIALS |
| Whether the partial derivatives are the same at every argument value. | |
Additional Inherited Members | |
Public Types inherited from slp::detail::Expression< Scalar > | |
| using | Scalar = Scalar |
| Scalar type alias. | |
Public Member Functions inherited from slp::detail::NonLeafExpression< BinaryPlusExpression< Scalar, T >, Scalar, 2, T > | |
| constexpr | NonLeafExpression (Args &&... args) |
| void | visit_args (function_ref< void(Expression< Scalar > *arg)> func) const final |
| Scalar | value () const final |
| ExpressionType | type () const final |
| std::string_view | name () const final |
| void | accumulate_adjoints () const final |
| Accumulates the child adjoints as Scalars. | |
| void | accumulate_adjoints_expr () const final |
| Accumulates the child adjoints as Expressions. | |
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) |
| SLEIPNIR_FORCE_INLINE constexpr bool | is_constant (Scalar constant) const |
Public Attributes inherited from slp::detail::NonLeafExpression< BinaryPlusExpression< Scalar, T >, Scalar, 2, T > | |
| std::array< ExpressionPtr< Scalar >, NumArgs > | args |
| The arguments in visit_args() order. | |
Public Attributes inherited from slp::detail::Expression< Scalar > | |
| Scalar | val |
| The value of the expression node. | |
| Scalar | adj |
| The adjoint of the expression node, used during autodiff. | |
| ExpressionPtr< Scalar > | adj_expr |
| int32_t | scratch |
| uint32_t | ref_count |
| Reference count for intrusive shared pointer. | |
| uint32_t | is_leaf |
Derived expression type for binary plus operator.
| Scalar | Scalar type. |
| T | Expression type. |