39#include "../tapes/interfaces/fullTapeInterface.hpp"
40#include "../traits/realTraits.hpp"
41#include "activeType.hpp"
42#include "assignmentOperators.hpp"
43#include "incrementOperators.hpp"
44#include "lhsExpressionInterface.hpp"
59 template<
typename T_ActiveType>
62 typename T_ActiveType::Tape, ActiveTypeWrapper<T_ActiveType>>,
63 public AssignmentOperators<typename T_ActiveType::Tape::Real, T_ActiveType::Tape::AllowJacobianOptimization,
64 ActiveTypeWrapper<T_ActiveType>>,
65 public IncrementOperators<typename T_ActiveType::Tape, ActiveTypeWrapper<T_ActiveType>> {
72 using Real =
typename Tape::Real;
76 using TapeData =
typename Tape::ActiveTypeTapeData;
126 return getTape().getIdentifier(tapeData);
131 return getTape().getIdentifier(tapeData);
#define CODI_INLINE
See codi::Config::ForcedInlines.
Definition config.h:469
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:97
#define CODI_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:117
typename TraitsImplementation< Type >::PassiveReal PassiveReal
The original computation type that was used in the application.
Definition realTraits.hpp:123
CoDiPack - Code Differentiation Package.
Definition codi.hpp:97
Creates a pseudo active type from data references. Can be used to overlay existing data with active t...
Definition activeTypeWrapper.hpp:65
inline ~ActiveTypeWrapper()
Definition activeTypeWrapper.hpp:101
typename Tape::Real Real
See LhsExpressionInterface.
Definition activeTypeWrapper.hpp:72
RealTraits::PassiveReal< Real > PassiveReal
Basic computation type.
Definition activeTypeWrapper.hpp:73
Tape ADLogic
AD logic that governs the expression. Needs to be the same for all inputs of the expression.
Definition activeTypeWrapper.hpp:117
typename ActiveType::Tape Tape
See ActiveType.
Definition activeTypeWrapper.hpp:70
typename Tape::Identifier Identifier
See LhsExpressionInterface.
Definition activeTypeWrapper.hpp:74
ActiveTypeWrapper const & StoreAs
Defines how this expression is stored in an expression tree.
Definition activeTypeWrapper.hpp:116
inlineIdentifier const & getIdentifier() const
Definition activeTypeWrapper.hpp:130
static inlineTape & getTape()
Get a reference to the tape which manages this expression.
Definition activeTypeWrapper.hpp:155
inlineTapeData const & getTapeData() const
Get the data of the tape stored in this lhs expression.
Definition activeTypeWrapper.hpp:140
typename Tape::Gradient Gradient
See LhsExpressionInterface.
Definition activeTypeWrapper.hpp:75
T_ActiveType ActiveType
See WritableActiveTypeWrapper.
Definition activeTypeWrapper.hpp:68
inlineReal const & value() const
Get a constant reference to the lvalue represented by the expression.
Definition activeTypeWrapper.hpp:150
inlineTapeData & getTapeData()
Get the data of the tape stored in this lhs expression.
Definition activeTypeWrapper.hpp:135
inlineActiveTypeWrapper< ActiveType > & operator=(ActiveTypeWrapper< ActiveType > const &v)
See LhsExpressionInterface::operator=(ExpressionInterface const&)
Definition activeTypeWrapper.hpp:106
typename Tape::ActiveTypeTapeData TapeData
See IdentifierInformationTapeInterface.
Definition activeTypeWrapper.hpp:76
LhsExpressionInterface< Real, Gradient, Tape, ActiveTypeWrapper > Base
Base class abbreviation.
Definition activeTypeWrapper.hpp:78
inlineReal & value()
Get a reference to the lvalue represented by the expression.
Definition activeTypeWrapper.hpp:145
inlineIdentifier & getIdentifier()
Definition activeTypeWrapper.hpp:125
static inlineTape & getTape()
Definition activeType.hpp:99
JacobianLinearTape< JacobianTapeTypes< Real, Gradient, LinearIndexManager< Index >, DefaultChunkedData > > Tape
Definition activeType.hpp:55
Provides assignment operators for LhsExpressionInterface implementations.
Definition assignmentOperators.hpp:120
Implementation of increment operators for LhsExpressionInterface implementations.
Definition incrementOperators.hpp:54
Base class for all CoDiPack lvalue expression.
Definition lhsExpressionInterface.hpp:63
LhsExpressionInterface()=default