39#include "../data/position.hpp"
40#include "../misc/tapeParameters.hpp"
58 template<
typename T_Position>
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
AdjointsManagement
Policies for management of the tape's interal adjoints.
Definition tapeParameters.hpp:98
@ Automatic
Manage internal adjoints automatically, including locking, bounds checking, and resizing.
Empty Position with no nested data.
Definition position.hpp:47
Reverse AD evaluation for parts of a recorded tape.
Definition positionalEvaluationTapeInterface.hpp:59
void evaluate(Position const &start, Position const &end, AdjointsManagement adjointsManagement=AdjointsManagement::Automatic)
Perform a reverse evaluation for a part of the tape. It hast to hold start >= end.
void clearAdjoints(Position const &start, Position const &end, AdjointsManagement adjointsManagement=AdjointsManagement::Automatic)
Clear all adjoints that would be set in a tape evaluation from start to end. It has to hold start >= ...
Position getPosition() const
Current position of the tape.
void resetTo(Position const &pos, bool resetAdjoints=true, AdjointsManagement adjointsManagement=AdjointsManagement::Automatic)
Reset the tape to the provided position.
T_Position Position
See PositionalEvaluationTapeInterface.
Definition positionalEvaluationTapeInterface.hpp:62
Position getZeroPosition() const
Initial position of the tape.