38#include "../interfaces/fullTapeInterface.hpp"
79 template<
typename T_Gradient,
typename T_Identifier,
typename T_Tape>
113 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:90
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:82
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
InternalAdjointsInterface(size_t initialSize)
Definition internalAdjointsInterface.hpp:90
size_t size() const
Returns the number of adjoint variables. Internally, declares usage of the adjoints.
void zeroAll()
Set all adjoint variables to Gradient().
Gradient const & operator[](Identifier const &identifier) const
Constant reference access to the adjoint variable identified by identifier.
Gradient * data()
Pointer to an underlying array implementation.
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...
void swap(Impl &other)
Swap two sets of adjoint variables. Internally, declares usage of the adjoints.
T_Identifier Identifier
See InternalAdjointsInterface.
Definition internalAdjointsInterface.hpp:86
Gradient & operator[](Identifier const &identifier)
Reference access to the adjoint variable identified by identifier.