CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::GradientTraits::TraitsImplementation< T_Gradient, typename > Struct Template Reference

Common traits for all types used as gradients. More...

#include <gradientTraits.hpp>

Public Types

using Gradient = T_Gradient
 See TraitsImplementation.
 
using Real = Gradient
 The base value used in the gradient entries.
 

Static Public Member Functions

static Realat (Gradient &gradient, size_t dim)
 Get the entry at the given index.
 
static Real const & at (Gradient const &gradient, size_t dim)
 Get the entry at the given index.
 
static std::array< AtomicTraits::RemoveAtomic< Real >, dimtoArray (Gradient const &gradient)
 Converts the (possibly multi-component) gradient to an array of Reals.
 

Static Public Attributes

static size_t constexpr dim = 1
 Number of dimensions this gradient value has.
 

Detailed Description

template<typename T_Gradient, typename = void>
struct codi::GradientTraits::TraitsImplementation< T_Gradient, typename >

Common traits for all types used as gradients.

Template Parameters
T_GradientThe type of the gradient.

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