CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::Direction< T_Real, T_dim > Struct Template Reference

Fixed size vector mode implementation. More...

#include <direction.hpp>

Public Types

using Real = T_Real
 See Direction.
 

Public Member Functions

 Direction ()
 Constructor.
 
 Direction (Direction const &v)
 Constructor.
 
 Direction (Real const &s)
 Constructor.
 
 Direction (std::initializer_list< Real > l)
 Constructor.
 
Directionoperator+= (Direction const &v)
 Update operator.
 
Directionoperator-= (Direction const &v)
 Update operator.
 
Directionoperator= (Direction const &v)
 Assignment operator.
 
Realoperator[] (size_t const &i)
 Per reference element access.
 
Real const & operator[] (size_t const &i) const
 Per value element access.
 

Static Public Attributes

static size_t constexpr dim = T_dim
 See Direction.
 

Detailed Description

template<typename T_Real, size_t T_dim>
struct codi::Direction< T_Real, T_dim >

Fixed size vector mode implementation.

Can be used as the gradient template argument in active CoDiPack types.

Template Parameters
T_RealType of the vector entries.
T_dimDimension of the vector mode.

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