Adjoint variables owned by a tape instance.
More...
#include <localAdjoints.hpp>
|
void | beginUse () |
| Declare that the adjoints are in use, e.g., during a tape evaluation, and cannot be resized right now.
|
|
Gradient * | data () |
| Pointer to an underlying array implementation.
|
|
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 () |
| Set all adjoint variables to Gradient().
|
|
void | beginUse () |
| Declare that the adjoints are in use, e.g., during a tape evaluation, and cannot be resized right now.
|
|
Gradient * | data () |
| Pointer to an underlying array implementation.
|
|
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 () |
| Set all adjoint variables 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. |
◆ Tape
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
◆ beginUse()
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Declare that the adjoints are in use, e.g., during a tape evaluation, and cannot be resized right now.
◆ data()
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Pointer to an underlying array implementation.
◆ endUse()
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Declare that the adjoints are no longer occupied.
◆ operator[]() [1/2]
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Reference access to the adjoint variable identified by identifier.
◆ operator[]() [2/2]
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Constant reference access to the adjoint variable identified by identifier.
◆ resize()
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Ensure that identifiers up to newSize can be passed to operator[] without error.
◆ size()
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Returns the number of adjoint variables. Internally, declares usage of the adjoints.
◆ swap()
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
Swap two sets of adjoint variables. Internally, declares usage of the adjoints.
◆ zeroAll()
template<typename T_Gradient , typename T_Identifier , typename T_Tape >
The documentation for this struct was generated from the following file: