Forward AD evaluation of a recorded tape. More...
#include <forwardEvaluationTapeInterface.hpp>

Public Types | |
| using | Position = T_Position |
| See ForwardEvaluationTapeInterface. | |
Public Types inherited from codi::PositionalEvaluationTapeInterface< T_Position > | |
| using | Position = T_Position |
| See PositionalEvaluationTapeInterface. | |
Public Member Functions | |
Interface definition | |
| void | evaluateForward (Position const &start, Position const &end, AdjointsManagement adjointsManagement=AdjointsManagement::Automatic) |
| Perform a forward evaluation of a part of the tape. It has to hold start <= end. | |
| void | evaluateForward (AdjointsManagement adjointsManagement=AdjointsManagement::Automatic) |
| Perform a forward evaluation of the full tape. | |
Public Member Functions inherited from codi::PositionalEvaluationTapeInterface< T_Position > | |
| 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 >= end. | |
| Position | getPosition () const |
| Current position of the tape. | |
| Position | getZeroPosition () const |
| Initial position of the tape. | |
| void | resetTo (Position const &pos, bool resetAdjoints=true, AdjointsManagement adjointsManagement=AdjointsManagement::Automatic) |
| Reset the tape to the provided position. | |
Forward AD evaluation of a recorded tape.
See Tape Interface Design for a general overview of the tape interface design in CoDiPack.
Here is an example for a forward tape evaluation (documentation/examples/forwardEvaluationTapeInterface.cpp):
| T_Position | Global tape position type, usually chosen as Tape::Position. |
| void codi::ForwardEvaluationTapeInterface< T_Position >::evaluateForward | ( | AdjointsManagement | adjointsManagement = AdjointsManagement::Automatic | ) |
Perform a forward evaluation of the full tape.
Automatic adjoints management involves bounds checking, resizing, and locking, see AdjointsManagement for details.
| void codi::ForwardEvaluationTapeInterface< T_Position >::evaluateForward | ( | Position const & | start, |
| Position const & | end, | ||
| AdjointsManagement | adjointsManagement = AdjointsManagement::Automatic ) |
Perform a forward evaluation of a part of the tape. It has to hold start <= end.
Automatic adjoints management involves bounds checking, resizing, and locking, see AdjointsManagement for details.