38#include "../interfaces/fullTapeInterface.hpp"
79 template<
typename T_Gradient,
typename T_Identifier,
typename T_Tape>
117 template<typename Impl>
#define CODI_NO_INLINE
See codi::Config::AvoidedInlines.
Definition config.h:417
#define CODI_INLINE
See codi::Config::ForcedInlines.
Definition config.h:457
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
#define CODI_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:111
CoDiPack - Code Differentiation Package.
Definition codi.hpp:91
void CODI_UNUSED(Args const &...)
Disable unused warnings for an arbitrary number of arguments.
Definition macros.hpp:46
Full tape interface that supports all features of CoDiPack.
Definition fullTapeInterface.hpp:84
Abstracts the internal set of adjoint variables provided as part of the tape.
Definition internalAdjointsInterface.hpp:80
void resize(Identifier const &newSize)
Ensure that identifiers up to newSize can be passed to operator[] without error.
void endUse()
Declare that the adjoints are no longer occupied.
T_Gradient Gradient
See InternalAdjointsInterface.
Definition internalAdjointsInterface.hpp:85
void zeroAll(Identifier const &maxIdentifier)
Set all adjoint variables up to and including maxIdentifier to Gradient().
InternalAdjointsInterface(size_t initialSize)
Definition internalAdjointsInterface.hpp:90
size_t size() const
Returns the number of adjoint variables. Internally, declares usage of the adjoints.
Gradient const & operator[](Identifier const &identifier) const
Constant reference access to the adjoint variable identified by identifier.
T_Tape Tape
See InternalAdjointsInterface.
Definition internalAdjointsInterface.hpp:84
void beginUse()
Declare that the adjoints are in use, e.g., during a tape evaluation, and cannot be resized right now...
ArrayAccess data()
Return an array-like object for data access, for example a pointer to an underlying array or a refere...
T_Identifier Identifier
See InternalAdjointsInterface.
Definition internalAdjointsInterface.hpp:86
Gradient & operator[](Identifier const &identifier)
Reference access to the adjoint variable identified by identifier.