Sleipnir C++ API
Loading...
Searching...
No Matches
slp::detail::LogExpression< Scalar > Struct Template Referencefinal

#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/autodiff/expression_functions.hpp>

Inheritance diagram for slp::detail::LogExpression< Scalar >:
slp::detail::NonLeafExpression< LogExpression< Scalar >, Scalar, 1 > slp::detail::Expression< Scalar >

Static Public Attributes

static constexpr std::string_view NAME = "log"
 The expression's name.
 
- Static Public Attributes inherited from slp::detail::NonLeafExpression< LogExpression< Scalar >, Scalar, 1 >
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< LogExpression< Scalar >, Scalar, 1 >
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< LogExpression< Scalar >, Scalar, 1 >
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
 

Detailed Description

template<typename Scalar>
struct slp::detail::LogExpression< Scalar >

Derived expression type for log().

Template Parameters
ScalarScalar type.

The documentation for this struct was generated from the following file: