|
void | beginUse () |
| Declare that the adjoints are in use, e.g., during a tape evaluation, and cannot be resized right now.
|
|
Gradient * | 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[].
|
|
void | endUse () |
| Declare that the adjoints are no longer occupied.
|
|
| LocalAdjoints (size_t initialSize) |
| Constructor.
|
|
Gradient & | operator[] (Identifier const &identifier) |
| Reference access to the adjoint variable identified by identifier.
|
|
Gradient 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.
|
|
size_t | size () const |
| Returns the number of adjoint variables. Internally, declares usage of the adjoints.
|
|
void | swap (LocalAdjoints &other) |
| Swap two sets of adjoint variables. Internally, declares usage of the adjoints.
|
|
void | zeroAll (Identifier const &maxIdentifier) |
| Set all adjoint variables up to and including maxIdentifier to Gradient().
|
|
void | 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[].
|
|
void | endUse () |
| Declare that the adjoints are no longer occupied.
|
|
| InternalAdjointsInterface (size_t initialSize) |
|
Gradient & | operator[] (Identifier const &identifier) |
| Reference access to the adjoint variable identified by identifier.
|
|
Gradient 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.
|
|
size_t | size () const |
| Returns the number of adjoint variables. Internally, declares usage of the adjoints.
|
|
template<typename Impl > |
void | swap (Impl &other) |
| Swap two sets of adjoint variables. Internally, declares usage of the adjoints.
|
|
void | 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. |