92 virtual void combineAdjoints(
void* buf,
const int elements,
const int ranks)
const = 0;
101 virtual void getAdjoints(
const void* indices,
void* adjoints,
int elements)
const = 0;
113 virtual void updateAdjoints(
const void* indices,
const void* adjoints,
int elements)
const = 0;
124 virtual void getPrimals(
const void* indices,
const void* primals,
int elements)
const = 0;
135 virtual void setPrimals(
const void* indices,
const void* primals,
int elements)
const = 0;
Definition adjointInterface.hpp:40
virtual void updateAdjoints(const void *indices, const void *adjoints, int elements) const =0
Add the adjoint varaibles to the ones in the AD tool. That is the AD tool should perform the operatio...
virtual void createPrimalTypeBuffer(void *&buf, size_t size) const =0
Create an array for the primal variables.
virtual void deletePrimalTypeBuffer(void *&buf) const =0
Delete the array of the primal variables.
virtual void getPrimals(const void *indices, const void *primals, int elements) const =0
Get the primal values from the AD tool.
virtual void getAdjoints(const void *indices, void *adjoints, int elements) const =0
Get the adjoints for the indices from the AD tool.
virtual void createAdjointTypeBuffer(void *&buf, size_t size) const =0
Create an array for the adjoint variables.
virtual int getVectorSize() const =0
The vector size for the current evaluation.
virtual void combineAdjoints(void *buf, const int elements, const int ranks) const =0
Perform a reduction in the first element of the buffer.
virtual int computeElements(int elements) const =0
Compute the number of active types in the buffer.
virtual void deleteAdjointTypeBuffer(void *&buf) const =0
Delete the array of the adjoint variables.
virtual void setPrimals(const void *indices, const void *primals, int elements) const =0
Set the primal values on the AD tool.
Global namespace for MeDiPack - Message Differentiation Package.
Definition adjointInterface.hpp:37