CoDiPack  3.1.1
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::RealTraits::AggregatedTypeTraits< Vector4 > Struct Reference

[Base declaration] More...

Inheritance diagram for codi::RealTraits::AggregatedTypeTraits< Vector4 >:

Public Types

using InnerType
 Inner type of the aggregated type.
using Real
 Real version of the aggregated type without the active CoDiPack types.
using Type
 See AggregatedTypeTraits.
Public Types inherited from codi::RealTraits::ArrayAggregatedTypeTraitsBase< Vector4, Number, Vector4, 4 >
using InnerType
 See AggregatedTypeTraits.
using Real
 See AggregatedTypeTraits.
using Type
 See AggregatedTypeTraits.

Static Public Member Functions

static Type adjointOfArrayAccess (Type const &w, InnerType const &v_b)
static InnerType adjointOfConstructor (Type const &w, Type const &w_b)
static InnerType arrayAccess (Type const &w)
static Type arrayConstructor (InnerType const *v)
static inlinestd::string getMathRep ()
 Get the math symbol of the operation. E.g. + for operators and pow() for functions.

Static Public Attributes

static int constexpr Elements
 Number of elements of the aggregated type.
Static Public Attributes inherited from codi::RealTraits::ArrayAggregatedTypeTraitsBase< Vector4, Number, Vector4, 4 >
static int constexpr Elements
 See AggregatedTypeTraits.

Additional Inherited Members

Public Member Functions inherited from codi::RealTraits::ArrayAggregatedTypeTraitsBase< Vector4, Number, Vector4, 4 >
inlinestatic Type adjointOfArrayAccess (Type const &w, InnerType const &v_b)
inlinestatic InnerType adjointOfConstructor (Type const &w, Type const &w_b)
inlinestatic InnerTypearrayAccess (Type &w)
inlinestatic Type arrayConstructor (InnerType const *v)

Detailed Description

[Base declaration]

[Vector4 specializations]

Member Function Documentation

◆ adjointOfArrayAccess()

Type codi::RealTraits::AggregatedTypeTraits< Vector4, typename >::adjointOfArrayAccess ( Type const & w,
InnerType const & v_b )
inlinestatic

Implementation of the adjoint array access. See arrayAccess for the equation definition. The adjoint is defined as $ \bar w += dw[element]/w^T * \bar v $.

◆ adjointOfConstructor()

InnerType codi::RealTraits::AggregatedTypeTraits< Vector4, typename >::adjointOfConstructor ( Type const & w,
Type const & w_b )
inlinestatic

Adjoint implementation of element-wise construction, that is, T is our aggregated type and the construction is defined as w = T(v_0, v_1, ..., v_{N-1}) where N is the number of elements. Then this function needs to implement the adjoint formulation of this construction, which is defined as $ \bar v_{element} = dT/dv_{element}^T * \bar w $ .

◆ arrayAccess()

InnerType codi::RealTraits::AggregatedTypeTraits< Vector4, typename >::arrayAccess ( Type const & w)
inlinestatic

Implementation of the array access, which is defined as $ v = w[element] $ where $ w $ is an aggregated type.

◆ arrayConstructor()

Type codi::RealTraits::AggregatedTypeTraits< Vector4, typename >::arrayConstructor ( InnerType const * v)
inlinestatic

Array construction of the aggregated type. It is defined as $ w = T(v_0, v_1, ..., v_{N-1}) $ where $ N $ is the number of elements.

◆ getMathRep()

inlinestd::string codi::RealTraits::AggregatedTypeTraits< Vector4, typename >::getMathRep ( )
inlinestatic

Get the math symbol of the operation. E.g. + for operators and pow() for functions.


The documentation for this struct was generated from the following file:
  • documentation/tutorials/Tutorial_07_Aggregated_type_implementation.cpp