Helper class for the construction of an expression in a different context. More...
#include <constructStaticContext.hpp>
Public Types | |
using | Identifier = typename Tape::Identifier |
See TapeTypesInterface. | |
using | PassiveReal = typename Tape::PassiveReal |
Basic computation type. | |
using | Real = typename Tape::Real |
See TapeTypesInterface. | |
using | ResultType = T_Rhs |
The resulting expression type after all nodes are replaced. | |
using | Rhs = T_Rhs |
See ConstructStaticContextLogic. | |
using | Tape |
See ConstructStaticContextLogic. | |
Static Public Member Functions | |
static ResultType | construct (Real *primalVector, Identifier const *const identifiers, PassiveReal const *const constantData) |
Perform the construction. | |
Static Public Attributes | |
static constexpr size_t | constantValueOffset |
See ConstructStaticContextLogic. | |
static constexpr size_t | primalValueOffset |
See ConstructStaticContextLogic. | |
Helper class for the construction of an expression in a different context.
Converts the leaf nodes of the expression into the static context replacements. The initialization is performed via three arrays.
Conversion and initialization is done for:
The offsets are computed from the corresponding expression traits NumberOfActiveTypeArguments and NumberOfConstantTypeArguments. They are evaluated on each sub graph.
T_Rhs | The expression type. Needs to implement ExpressionInterface. |
T_Tape | The tape which stored the expression. |
using codi::ConstructStaticContextLogic< T_Rhs, T_Tape, T_primalValueOffset, T_constantValueOffset, typename >::Tape |
|
static |
Perform the construction.
See ConstructStaticContextLogic on how the arguments are used and which conversion are performed.
|
staticconstexpr |
|
staticconstexpr |