|
| AggregatedTypeVectorAccessWrapperBase (InnerInterface *innerInterface) |
| Constructor.
|
|
|
size_t | getVectorSize () const |
| Vector size in the current tape evaluation.
|
|
bool | isLhsZero () |
| True if the adjoint set with setLhsAdjoint is zero.
|
|
|
void | setLhsAdjoint (Identifier const &index) |
|
void | updateAdjointWithLhs (Identifier const &index, Real const &jacobian) |
|
|
void | setLhsTangent (Identifier const &index) |
|
void | updateTangentWithLhs (Identifier const &index, Real const &jacobian) |
|
|
void | getAdjointVec (Identifier const &index, Real *const vec) |
| Get the adjoint entry.
|
|
Real const * | getAdjointVec (Identifier const &index) |
| Get the adjoint entry.
|
|
void | updateAdjointVec (Identifier const &index, Real const *const vec) |
| Update the adjoint entry.
|
|
|
bool | hasPrimals () |
| True if the tape/vector interface has primal values.
|
|
virtual | ~VectorAccessInterface () |
| Destructor.
|
|
virtual VectorAccessInterface * | clone () const =0 |
|
virtual void | setLhsAdjoint (Identifier const &index)=0 |
|
virtual void | updateAdjointWithLhs (Identifier const &index, Real const &jacobian)=0 |
|
virtual void | setLhsTangent (Identifier const &index)=0 |
|
virtual void | updateTangentWithLhs (Identifier const &index, Real const &jacobian)=0 |
|
virtual void | resetAdjoint (Identifier const &index, size_t dim)=0 |
| Set the adjoint component to zero.
|
|
virtual void | resetAdjointVec (Identifier const &index)=0 |
| Set the adjoint entry to zero.
|
|
virtual Real | getAdjoint (Identifier const &index, size_t dim)=0 |
| Get the adjoint component.
|
|
virtual void | getAdjointVec (Identifier const &index, Real *const vec)=0 |
| Get the adjoint entry.
|
|
virtual Real const * | getAdjointVec (Identifier const &index)=0 |
| Get the adjoint entry.
|
|
virtual void | updateAdjoint (Identifier const &index, size_t dim, Real const &adjoint)=0 |
| Update the adjoint component.
|
|
virtual void | updateAdjointVec (Identifier const &index, Real const *const vec)=0 |
| Update the adjoint entry.
|
|
virtual void | setPrimal (Identifier const &index, Real const &primal)=0 |
| Set the primal value.
|
|
virtual Real | getPrimal (Identifier const &index)=0 |
| Get the primal value.
|
|
template<typename T_Real, typename T_Identifier, typename T_InnerInterface>
struct codi::AggregatedTypeVectorAccessWrapperBase< T_Real, T_Identifier, T_InnerInterface >
Implements all methods from AggregatedTypeVectorAccessWrapper, that can be implemented with combinations of other methods.
- Template Parameters
-
T_Real | Primal value type of the combined type. |
T_Identifier | Identifier type type of the combined type. |
T_InnerInterface | The VectorAccessInterface of the underlying tape. |