|
| AdjointVectorAccess (Gradient *adjointVector) |
| Constructor. See interface documentation for details about the adjoint vector.
|
|
|
size_t | getVectorSize () const |
| Vector size in the current tape evaluation.
|
|
bool | isLhsZero () |
| True if the adjoint set with setLhsAdjoint is zero.
|
|
VectorAccessInterface< Real, Identifier > * | clone () const |
|
|
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 | resetAdjoint (Identifier const &index, size_t dim) |
| Set the adjoint component to zero.
|
|
void | resetAdjointVec (Identifier const &index) |
| Set the adjoint entry to zero.
|
|
Real | getAdjoint (Identifier const &index, size_t dim) |
| Get the adjoint component.
|
|
void | getAdjointVec (Identifier const &index, Real *const vec) |
| Get the adjoint entry.
|
|
Real const * | getAdjointVec (Identifier const &index) |
| Get the adjoint entry.
|
|
void | updateAdjoint (Identifier const &index, size_t dim, Real const &adjoint) |
| Update the adjoint component.
|
|
void | updateAdjointVec (Identifier const &index, Real const *const vec) |
| Update the adjoint entry.
|
|
|
void | setPrimal (Identifier const &index, Real const &primal) |
| Set the primal value.
|
|
Real | getPrimal (Identifier const &index) |
| Get the primal value.
|
|
bool | hasPrimals () |
| Set the primal value.
|
|
virtual | ~VectorAccessInterface () |
| Destructor.
|
|
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_Gradient>
struct codi::AdjointVectorAccess< T_Real, T_Identifier, T_Gradient >
Implementation of VectorAccessInterface for adjoint vectors.
The adjoint vector is used as is, it is assumed to have the correct size. No bounds checking is performed.
- Template Parameters
-