Namespace for defining the datatype wrapper routines, this acts as a base class for type interfaces for non-primitive dataypes e.g. used by AD, complex etc.
More...
|
| void | SetValue (su2double &data, const passivedouble &val) |
| | Set the (primitive) value of the datatype (needs to be implemented for each new type).
|
| |
| void | SetSecondary (su2double &data, const passivedouble &val) |
| | Set the secondary value of the datatype (needs to be implemented for each new type).
|
| |
| passivedouble | GetValue (const su2double &data) |
| | Get the (primitive) value of the datatype (needs to be specialized for active types).
|
| |
| passivedouble | GetSecondary (const su2double &data) |
| | Get the secondary value of the datatype (needs to be implemented for each new type).
|
| |
| passivedouble | GetDerivative (const su2double &data) |
| | Get the derivative value of the datatype (needs to be implemented for each new type).
|
| |
| void | SetDerivative (su2double &data, const passivedouble &val) |
| | Set the derivative value of the datatype (needs to be implemented for each new type).
|
| |
| template<class T > |
| auto | PassiveValue (const T &val) |
| |
| int | Int (const su2double &data) |
| | Casts the primitive value to int (uses GetValue, already implemented for each type).
|
| |
| short | Short (const su2double &data) |
| | Casts the primitive value to short (uses GetValue, already implemented for each type).
|
| |
| template<class T , su2enable_if< std::is_trivial< T >::value > = 0> |
| const T & | _printGetValue (const T &val) |
| |
| template<class T , su2enable_if<!std::is_trivial< T >::value > = 0> |
| passivedouble | _printGetValue (const T &val) |
| |
| template<class... Ts> |
| void | sprintf (char *str, const char *format, Ts &&... args) |
| | Wrapper to sprintf to be able to print active types and AD expressions.
|
| |
| void | sprintf (char *str, const char *literal) |
| |
Namespace for defining the datatype wrapper routines, this acts as a base class for type interfaces for non-primitive dataypes e.g. used by AD, complex etc.
- Author
- T. Albring