CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::ActiveArgumentStoreInterface< T_Real, T_Identifier, T_Gradient > Struct Template Referenceabstract

Interface for restored data for an argument. The functions should return a compatible type that can be forwarded to the primal evaluation and the gradient computation. More...

#include <activeArgumentStoreTraits.hpp>

Public Types

using Gradient = T_Gradient
 See ActiveArgumentStoreInterface.
 
using Identifier = T_Identifier
 See ActiveArgumentStoreInterface.
 
using Real = T_Real
 See ActiveArgumentStoreInterface.
 

Public Member Functions

virtual Gradient gradientIn ()=0
 Get the input gradients.
 
virtual Gradient gradientOut ()=0
 Get the output gradients.
 
virtual Identifier identifierIn ()=0
 Get the input identifiers.
 
virtual Identifier identifierOut ()=0
 Get the output identifiers.
 
virtual Real oldPrimal ()=0
 Get old primal values.
 
virtual Real primal ()=0
 Get the primal values.
 

Detailed Description

template<typename T_Real, typename T_Identifier, typename T_Gradient>
struct codi::ActiveArgumentStoreInterface< T_Real, T_Identifier, T_Gradient >

Interface for restored data for an argument. The functions should return a compatible type that can be forwarded to the primal evaluation and the gradient computation.

For example, a CoDiPack value argument like codi::RealReverse a should use codi::RealReverse::Real as the return type for primal(). An argument like codi::RealReverse* p should use codi::RealReverse::Real* instead.

Template Parameters
T_RealThe computation type of a tape, usually chosen as ActiveType::Real.
T_IdentifierThe adjoint/tangent identification of a tape, usually chosen as ActiveType::Identifier.
T_GradientThe gradient type of a tape usually defined by ActiveType::Gradient.

The documentation for this struct was generated from the following file: