CoDiPack  2.3.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
primal_reuse_text.hpp
1#include <codi.hpp>
2
3template <typename Tape>
4std::vector<typename Tape::EvalHandle> primal_reuse_textCreateEvalHandles(){
5
6 std::vector<typename Tape::EvalHandle> evalHandles;
8
9 evalHandles.resize(2);
10 evalHandles[0] = Tape::StatementEvaluator::template createHandle<Impl, Impl, codi::BinaryExpression<double, codi::BinaryExpression<double, codi::ActiveType<codi::PrimalValueReuseTape<codi::PrimalValueTapeTypes<double, double, codi::MultiUseIndexManager<int>, codi::InnerStatementEvaluator, codi::DefaultChunkedData> > >, codi::ActiveType<codi::PrimalValueReuseTape<codi::PrimalValueTapeTypes<double, double, codi::MultiUseIndexManager<int>, codi::InnerStatementEvaluator, codi::DefaultChunkedData> > >, codi::OperationMultiply>, codi::ActiveType<codi::PrimalValueReuseTape<codi::PrimalValueTapeTypes<double, double, codi::MultiUseIndexManager<int>, codi::InnerStatementEvaluator, codi::DefaultChunkedData> > >, codi::OperationMultiply>>();
11 evalHandles[1] = Tape::StatementEvaluator::template createHandle<Impl, Impl, codi::ActiveType<codi::PrimalValueReuseTape<codi::PrimalValueTapeTypes<double, double, codi::MultiUseIndexManager<int>, codi::InnerStatementEvaluator, codi::DefaultChunkedData> > >>();
12
13 return evalHandles;
14}
Represents a concrete lvalue in the CoDiPack expression tree.
Definition activeType.hpp:52
Data is stored chunk-wise in this DataInterface implementation. If a chunk runs out of space,...
Definition chunkedData.hpp:64
void resize(size_t const &totalSize)
Definition chunkedData.hpp:151
Expression evaluation in the inner function. Data loading in the compilation context of the tape....
Definition innerStatementEvaluator.hpp:103
BinaryOperation implementation for operator *.
Definition binaryOperators.hpp:133
Final implementation for a primal value tape with a reuse index management.
Definition primalValueReuseTape.hpp:64