#include <aggregatedTypeVectorAccessWrapper.hpp>

Public Types | |
| using | Identifier |
| Identifier value of the aggregate. | |
| using | InnerInterface = VectorAccessInterface<typename InnerType::Real, typename InnerType::Identifier> |
| Inner interface expected by this wrapper. | |
| using | InnerType = typename Type::InnerActiveType |
| Active inner type of the aggregate. | |
| using | Real = typename RealTraits::DataExtraction<T_Type>::Real |
| Real value of the aggregate. | |
| using | Traits = RealTraits::AggregatedTypeTraits<Real> |
| Aggregated type traits. | |
| using | Type |
| See AggregatedTypeVectorAccessWrapperBase. | |
| using | Type |
| See AggregatedTypeVectorAccessWrapper. | |
Public Types inherited from codi::VectorAccessInterface< int, int > | |
| using | Identifier |
| See VectorAccessInterface. | |
| using | Real |
| See VectorAccessInterface. | |
Public Types inherited from codi::VectorAccessInterface< RealTraits::DataExtraction< T_Type >::Real, RealTraits::DataExtraction< T_Type >::Identifier > | |
| using | Identifier |
| See VectorAccessInterface. | |
| using | Real |
| See VectorAccessInterface. | |
Public Member Functions | |
| inlineAggregatedTypeVectorAccessWrapper (InnerInterface *innerInterface) | |
| Constructor. | |
Misc | |
| inlinesize_t | getVectorSize () const |
| Vector size in the current tape evaluation. | |
| inlinebool | isLhsZero () const |
| True if the adjoint set with setLhsAdjoint is zero. | |
| VectorAccessInterface< Real, Identifier > * | clone () const |
Indirect adjoint access | |
| inlinevoid | setLhsAdjoint (Identifier const &index) |
| inlinevoid | updateAdjointWithLhs (Identifier const &index, Real const &jacobian) |
Indirect tangent access | |
| inlinevoid | setLhsTangent (Identifier const &index) |
| inlinevoid | updateTangentWithLhs (Identifier const &index, Real const &jacobian) |
Indirect adjoint/tangent access for functions with multiple outputs | |
| inlinevoid | setActiveVariableForIndirectAccess (size_t pos) |
Direct adjoint access | |
| inlinevoid | resetAdjoint (Identifier const &index, size_t dim) |
| Set the adjoint component to zero. | |
| inlinevoid | resetAdjointVec (Identifier const &index) |
| Set the adjoint entry to zero. | |
| inlineReal | getAdjoint (Identifier const &index, size_t dim) |
| Get the adjoint component. | |
| inlinevoid | getAdjointVec (Identifier const &index, Real *const vec) |
| Get the adjoint entry. | |
| Real const * | getAdjointVec (Identifier const &index) |
| Get the adjoint entry. | |
| inlinevoid | updateAdjoint (Identifier const &index, size_t dim, Real const &adjoint) |
| Update the adjoint component. | |
| inlinevoid | updateAdjointVec (Identifier const &index, Real const *const vec) |
| Update the adjoint entry. | |
Primal access | |
| inlinebool | hasPrimals () |
| True if the tape/vector interface has primal values. | |
| inlinevoid | setPrimal (Identifier const &index, Real const &primal) |
| Set the primal value. | |
| inlineReal | getPrimal (Identifier const &index) |
| Get the primal value. | |
Public Member Functions inherited from codi::VectorAccessInterface< int, int > | |
| 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. | |
Public Member Functions inherited from codi::VectorAccessInterface< RealTraits::DataExtraction< T_Type >::Real, RealTraits::DataExtraction< T_Type >::Identifier > | |
| virtual | ~VectorAccessInterface () |
| Destructor. | |
Public Attributes | |
| std::vector< Real > | buffer |
| Temporary storage for getAdjointVec. | |
| InnerInterface & | innerInterface |
| Reference to inner interface. | |
| int | lhsOffset |
| Offset of indirect access if this aggregated type is part of an outer aggregated type. | |
Static Public Attributes | |
| static int constexpr | Elements = Type::Elements |
| Number of elements in the aggregate. | |
Specialization of AggregatedTypeVectorAccessWrapper for aggregated types.
| The | aggregated data type. |
| using codi::AggregatedTypeVectorAccessWrapper< T_Type, RealTraits::EnableIfAggregatedActiveType< T_Type > >::Identifier |
Identifier value of the aggregate.
| using codi::AggregatedTypeVectorAccessWrapper< T_Type, RealTraits::EnableIfAggregatedActiveType< T_Type > >::Type |
|
inlinevirtual |
Obtain a heap-allocated copy of the vector access inter- face. The user is responsible for deleting the pointer.
Implements codi::VectorAccessInterface< int, int >.
|
inlinevirtual |
Get the adjoint component.
|
inlinevirtual |
Get the adjoint entry.
|
inlinevirtual |
Get the adjoint entry.
|
inlinevirtual |
Get the primal value.
|
inlinevirtual |
Vector size in the current tape evaluation.
Implements codi::VectorAccessInterface< int, int >.
|
inlinevirtual |
True if the tape/vector interface has primal values.
Implements codi::VectorAccessInterface< int, int >.
|
inlinevirtual |
True if the adjoint set with setLhsAdjoint is zero.
Implements codi::VectorAccessInterface< int, int >.
|
inlinevirtual |
Set the adjoint component to zero.
|
inlinevirtual |
Set the adjoint entry to zero.
|
inlinevirtual |
Set ![$ w = wArray[pos]$](../../form_28.png)
Implements codi::VectorAccessInterface< int, int >.
|
inlinevirtual |
Identify the lhs variable 


|
inlinevirtual |
Perform 
|
inlinevirtual |
Set the primal value.
|
inlinevirtual |
Update the adjoint component.
|
inlinevirtual |
Update the adjoint entry.
|
inlinevirtual |
|
inlinevirtual |