41#include "../../expressions/activeType.hpp"
43#include "../../traits/expressionTraits.hpp"
44#include "directStatementEvaluator.hpp"
45#include "statementEvaluatorInterface.hpp"
72 template<
typename Tape,
typename Expr>
81 template<
typename Generator,
typename Expr>
101 template<
typename T_Real>
114 template<
typename Tape,
typename... Args>
117 h->maxConstantArguments, std::forward<Args>(args)...);
121 template<
typename Tape,
typename... Args>
123 return Tape::statementEvaluatePrimalFull((
FunctionPrimal<Tape>)h->primal, h->maxActiveArguments,
124 h->maxConstantArguments, std::forward<Args>(args)...);
128 template<
typename Tape,
typename... Args>
131 h->maxConstantArguments, std::forward<Args>(args)...);
135 template<
typename Tape,
typename Generator,
typename Expr>
145 template<
typename Tape>
146 using FunctionForward =
decltype(&Tape::template statementEvaluateForwardInner<ActiveType<Tape>>);
149 template<
typename Tape>
150 using FunctionPrimal =
decltype(&Tape::template statementEvaluatePrimalInner<ActiveType<Tape>>);
153 template<
typename Tape>
154 using FunctionReverse =
decltype(&Tape::template statementEvaluateReverseInner<ActiveType<Tape>>);
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
Counts the number of nodes that inherit from LhsExpressionInterface in the expression.
Definition expressionTraits.hpp:184
Counts the number of types that inherit from ConstantExpression in the expression.
Definition expressionTraits.hpp:210
Additional data required by an InnerStatementEvaluator.
Definition innerStatementEvaluator.hpp:53
size_t maxConstantArguments
Maximum number of constant arguments.
Definition innerStatementEvaluator.hpp:59
InnerPrimalTapeStatementData(size_t maxActiveArguments, size_t maxConstantArguments, typename Base::Handle forward, typename Base::Handle primal, typename Base::Handle reverse)
Constructor.
Definition innerStatementEvaluator.hpp:62
size_t maxActiveArguments
Maximum number of active arguments.
Definition innerStatementEvaluator.hpp:58
Definition innerStatementEvaluator.hpp:73
static InnerPrimalTapeStatementData const staticStore
Static storage.
Definition innerStatementEvaluator.hpp:78
Expression evaluation in the inner function. Data loading in the compilation context of the tape....
Definition innerStatementEvaluator.hpp:102
decltype(&Tape::template statementEvaluatePrimalInner< ActiveType< Tape > >) FunctionPrimal
Full primal function type.
Definition innerStatementEvaluator.hpp:150
static void callReverse(Handle const &h, Args &&... args)
Definition innerStatementEvaluator.hpp:129
static Real callForward(Handle const &h, Args &&... args)
Definition innerStatementEvaluator.hpp:115
T_Real Real
See InnerStatementEvaluator.
Definition innerStatementEvaluator.hpp:105
decltype(&Tape::template statementEvaluateForwardInner< ActiveType< Tape > >) FunctionForward
Full forward function type.
Definition innerStatementEvaluator.hpp:146
decltype(&Tape::template statementEvaluateReverseInner< ActiveType< Tape > >) FunctionReverse
Full reverse function type.
Definition innerStatementEvaluator.hpp:154
static Handle createHandle()
Definition innerStatementEvaluator.hpp:136
static Real callPrimal(Handle const &h, Args &&... args)
Definition innerStatementEvaluator.hpp:122
InnerPrimalTapeStatementData const * Handle
Pointer to static storage location.
Definition innerStatementEvaluator.hpp:111
Data required for all possible handle calls.
Definition directStatementEvaluator.hpp:51
Handle forward
Forward function handle.
Definition directStatementEvaluator.hpp:56
PrimalTapeStatementFunctions(Handle forward, Handle primal, Handle reverse)
Constructor.
Definition directStatementEvaluator.hpp:61
void * Handle
Function pointer.
Definition directStatementEvaluator.hpp:54
Handle primal
Primal function handle.
Definition directStatementEvaluator.hpp:57
Handle reverse
Reverse function handle.
Definition directStatementEvaluator.hpp:58
Creation of handles for the evaluation of expressions in a context where the expression type is not a...
Definition statementEvaluatorInterface.hpp:103