|
| inlinevoid | beginUse () |
| | Declare that the adjoints are in use, e.g., during a tape evaluation, and cannot be resized right now.
|
| |
| inlineGradient * | data () |
| | Return an array-like object for data access, for example a pointer to an underlying array or a reference to something with overloaded operator[].
|
| |
| inlinevoid | endUse () |
| | Declare that the adjoints are no longer occupied.
|
| |
|
| LocalAdjoints (size_t initialSize) |
| | Constructor.
|
| |
| inlineGradient & | operator[] (Identifier const &identifier) |
| | Reference access to the adjoint variable identified by identifier.
|
| |
| inlineGradient const & | operator[] (Identifier const &identifier) const |
| | Constant reference access to the adjoint variable identified by identifier.
|
| |
| void | resize (Identifier const &newSize) |
| | Ensure that identifiers up to newSize can be passed to operator[] without error.
|
| |
| inlinesize_t | size () const |
| | Returns the number of adjoint variables. Internally, declares usage of the adjoints.
|
| |
| inlinevoid | swap (LocalAdjoints &other) |
| | Swap two sets of adjoint variables. Internally, declares usage of the adjoints.
|
| |
| inlinevoid | zeroAll (Identifier const &maxIdentifier) |
| | Set all adjoint variables up to and including maxIdentifier to Gradient().
|
| |
|
inlinevoid | beginUse () |
| | Declare that the adjoints are in use, e.g., during a tape evaluation, and cannot be resized right now.
|
| |
|
template<typename ArrayAccess> |
| ArrayAccess | data () |
| | Return an array-like object for data access, for example a pointer to an underlying array or a reference to something with overloaded operator[].
|
| |
|
inlinevoid | endUse () |
| | Declare that the adjoints are no longer occupied.
|
| |
| | InternalAdjointsInterface (size_t initialSize) |
| |
|
inlineGradient & | operator[] (Identifier const &identifier) |
| | Reference access to the adjoint variable identified by identifier.
|
| |
|
inlineGradient const & | operator[] (Identifier const &identifier) const |
| | Constant reference access to the adjoint variable identified by identifier.
|
| |
|
void | resize (Identifier const &newSize) |
| | Ensure that identifiers up to newSize can be passed to operator[] without error.
|
| |
|
inlinesize_t | size () const |
| | Returns the number of adjoint variables. Internally, declares usage of the adjoints.
|
| |
|
template<typename Impl> |
| inlinevoid | swap (Impl &other) |
| | Swap two sets of adjoint variables. Internally, declares usage of the adjoints.
|
| |
|
inlinevoid | zeroAll (Identifier const &maxIdentifier) |
| | Set all adjoint variables up to and including maxIdentifier to Gradient().
|
| |
template<typename T_Gradient, typename T_Identifier, typename T_Tape>
struct codi::LocalAdjoints< T_Gradient, T_Identifier, T_Tape >
Adjoint variables owned by a tape instance.
- Template Parameters
-
| T_Gradient | The gradient type of a tape, usually chosen as ActiveType::Gradient. |
| T_Identifier | The adjoint/tangent identification of a tape, usually chosen as ActiveType::Identifier. |
| T_Tape | The associated tape type. |