Represents constant values in the expression tree. More...
#include <constantExpression.hpp>
Public Types | |
template<typename T> | |
using | ConversionOperator = T_ConversionOperator<T> |
See ConstantExpression. | |
using | Real = T_Real |
See ConstantExpression. | |
![]() | |
using | ADLogic |
AD logic that governs the expression. Needs to be the same for all inputs of the expression. | |
using | Impl |
See ExpressionInterface. | |
using | Real |
See ExpressionInterface. | |
using | StoreAs |
Defines how this expression is stored in an expression tree. | |
![]() | |
using | Impl |
See NodeInterface. | |
![]() | |
using | Impl |
See ExpressionMemberOperations. | |
using | Real |
See ExpressionMemberOperations. | |
Public Member Functions | |
inlineConstantExpression (Real const &v) | |
Constructor. | |
![]() | |
inlineImpl const & | cast () const |
Cast to the implementation. | |
ExpressionInterface ()=default | |
Constructor. | |
ExpressionInterface (ExpressionInterface const &)=default | |
Constructor. | |
inlineReal const | getValue () const |
Compute the primal value that is usually evaluated by the statement/expression. | |
inlineauto | applyTangent (Tangent const &tangent) const |
inlineauto | applyAdjoint (Adjoint const &adjoint) const |
![]() | |
inlineImpl const & | cast () const |
Cast to the implementation. | |
char const & | getLink () const |
an expression. | |
Static Public Attributes | |
Implementation of NodeInterface | |
static size_t constexpr | LinkCount = 0 |
handle the expression as a leaf node. | |
static size_t constexpr | LinkCount |
handle the expression as a leaf node. | |
Implementation of ExpressionInterface | |
using | StoreAs = ConstantExpression |
Defines how this expression is stored in an expression tree. | |
using | ADLogic = void |
AD logic that governs the expression. Needs to be the same for all inputs of the expression. | |
inlineReal const & | getValue () const |
Compute the primal value that is usually evaluated by the statement/expression. | |
Additional Inherited Members | |
![]() | |
inlineImpl const & | cast () const |
Cast to implementation. | |
Represents constant values in the expression tree.
All values that are not a CoDiPack type are considered constant, for example values like 4.0 or double a.
See Expression design documentation for details about the expression system in CoDiPack.
T_Real | Original primal value of the statement/expression. |
T_ConversionOperator | Functions for the conversion of the constant data for primal value tape stores. |
using codi::ConstantExpression< T_Real, T_ConversionOperator >::ADLogic = void |
AD logic that governs the expression. Needs to be the same for all inputs of the expression.
using codi::ConstantExpression< T_Real, T_ConversionOperator >::StoreAs = ConstantExpression |
Defines how this expression is stored in an expression tree.
|
inline |
Compute the primal value that is usually evaluated by the statement/expression.
|
staticconstexpr |
handle the expression as a leaf node.
Number of links the expression has. Zero will