CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::RealTraits::DataExtraction< T_Type, typename > Struct Template Reference

Data handling methods for aggregated types that contain CoDiPack active types. More...

#include <realTraits.hpp>

Public Types

using Identifier
 Type of identifier values extracted from the type with AD values.
 
using Real = typename Type::Real
 Type of primal values extracted from the type with AD values.
 
using Type = T_Type
 See DataExtraction.
 

Static Public Member Functions

static Identifier getIdentifier (Type const &v)
 Extract the identifiers from a type of aggregated active types.
 
static Real getValue (Type const &v)
 Extract the primal values from a type of aggregated active types.
 
static void setValue (Type &v, Real const &value)
 Set the primal values of a type of aggregated active types.
 

Detailed Description

template<typename T_Type, typename = void>
struct codi::RealTraits::DataExtraction< T_Type, typename >

Data handling methods for aggregated types that contain CoDiPack active types.

An aggregated type is for example std::complex<codi::RealReverse>, which contains two CoDiPack values. The accessor methods in this class access each of these value. For getValue, for example, a complex type of the CoDiPack type's inner value is generated.

Template Parameters
T_TypeAny type that contains a CoDiPack type.

Member Typedef Documentation

◆ Identifier

template<typename T_Type , typename = void>
using codi::RealTraits::DataExtraction< T_Type, typename >::Identifier
Initial value:
typename Type::Identifier

Type of identifier values extracted from the type with AD values.


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