90 template<
typename T_Real,
typename T_Identifier>
114 Real const& jacobian) = 0;
123 Real const& jacobian) = 0;
138 Real const& adjoint) = 0;
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
Unified access to the adjoint vector and primal vector in a tape evaluation.
Definition vectorAccessInterface.hpp:91
virtual void resetAdjoint(Identifier const &index, size_t dim)=0
Set the adjoint component to zero.
virtual void setPrimal(Identifier const &index, Real const &primal)=0
Set the primal value.
virtual void updateAdjointVec(Identifier const &index, Real const *const vec)=0
Update the adjoint entry.
virtual void getAdjointVec(Identifier const &index, Real *const vec)=0
Get the adjoint entry.
virtual void setLhsAdjoint(Identifier const &index)=0
virtual ~VectorAccessInterface()
Destructor.
Definition vectorAccessInterface.hpp:97
virtual size_t getVectorSize() const =0
Vector size in the current tape evaluation.
virtual Real const * getAdjointVec(Identifier const &index)=0
Get the adjoint entry.
T_Real Real
See VectorAccessInterface.
Definition vectorAccessInterface.hpp:94
virtual void resetAdjointVec(Identifier const &index)=0
Set the adjoint entry to zero.
virtual Real getPrimal(Identifier const &index)=0
Get the primal value.
T_Identifier Identifier
See VectorAccessInterface.
Definition vectorAccessInterface.hpp:95
virtual void setLhsTangent(Identifier const &index)=0
virtual VectorAccessInterface * clone() const =0
virtual bool isLhsZero()=0
True if the adjoint set with setLhsAdjoint is zero.
virtual bool hasPrimals()=0
True if the tape/vector interface has primal values.
virtual void updateAdjointWithLhs(Identifier const &index, Real const &jacobian)=0
virtual void updateTangentWithLhs(Identifier const &index, Real const &jacobian)=0
virtual void updateAdjoint(Identifier const &index, size_t dim, Real const &adjoint)=0
Update the adjoint component.
virtual Real getAdjoint(Identifier const &index, size_t dim)=0
Get the adjoint component.