Traits for values that can be used as real values, e.g. double, float, codi::RealReverse etc..
More...
|
|
template<typename Type> |
inlinetypename DataExtraction< Type >::Real | getValue (Type const &v) |
| Extract an aggregate of primal values from an aggregate of active types.
|
|
template<typename Type> |
inlinetypename DataExtraction< Type >::Identifier | getIdentifier (Type const &v) |
| Extract an aggregate of identifiers from an aggregate of active types.
|
|
template<typename Type> |
inlinevoid | setValue (Type &v, typename DataExtraction< Type >::Real const &value) |
| Set the primal values of an aggregate of active types.
|
|
template<typename Type> |
inlinevoid | registerInput (Type &v) |
| Register all active types of an aggregated type as tape inputs.
|
|
template<typename Type> |
inlinevoid | registerOutput (Type &v) |
| Register all active types of an aggregated type as tape outputs.
|
|
template<typename Type> |
inlinetypename DataExtraction< Type >::Real | registerExternalFunctionOutput (Type &v) |
| Register all active types of an aggregated type as external function outputs.
|
|
|
template<typename Type> |
using | Real = typename TraitsImplementation<Type>::Real |
| Inner type of the real value.
|
|
template<typename Type> |
using | PassiveReal = typename TraitsImplementation<Type>::PassiveReal |
| The original computation type that was used in the application.
|
|
template<typename Type> |
inlinesize_t constexpr | MaxDerivativeOrder () |
| CoDiPack derivative order of the type.
|
|
template<typename Type> |
inlinePassiveReal< Type > | getPassiveValue (Type const &v) |
| Get the basic primal value of the type.
|
|
template<typename Type> |
inlinebool | isTotalFinite (Type const &v) |
| Function for checking if all values of the type are finite.
|
|
template<typename Type> |
inlinebool | isTotalZero (Type const &v) |
| Function for checking if the value of the type is completely zero.
|
|
Traits for values that can be used as real values, e.g. double, float, codi::RealReverse etc..
◆ EnableIfAggregatedActiveType
Initial value:
typename Expr::Impl, Expr::isStatic>,
Expr>::type
std::enable_if< std::is_base_of< Base, Impl >::value, R > enable_if_base_of
Enable if abbreviation for std::is_base_of.
Definition enableIfHelpers.hpp:47
Defines an aggregated type via an array and implements the ExpressionInterface.
Definition aggregatedActiveType.hpp:59
Enable if helper for AggregatedActiveType.
◆ EnableIfAggregatedTypeTraitsIsSpecialized
Initial value:
If the expression inherits from LhsExpressionInterface. Is either std::false_type or std::true_type.
Definition expressionTraits.hpp:164
static int constexpr Elements
Number of elements of the aggregated type.
Definition realTraits.hpp:232
Enable if helper when a type has been specialized for the AggregatedTypeTraits.
◆ PassiveReal
The original computation type that was used in the application.
◆ Real
Inner type of the real value.
◆ getIdentifier()
template<typename Type>
inlinetypename DataExtraction< Type >::Identifier codi::RealTraits::getIdentifier |
( |
Type const & | v | ) |
|
Extract an aggregate of identifiers from an aggregate of active types.
◆ getPassiveValue()
template<typename Type>
inlinePassiveReal< Type > codi::RealTraits::getPassiveValue |
( |
Type const & | v | ) |
|
Get the basic primal value of the type.
◆ getValue()
Extract an aggregate of primal values from an aggregate of active types.
◆ isTotalFinite()
template<typename Type>
inlinebool codi::RealTraits::isTotalFinite |
( |
Type const & | v | ) |
|
Function for checking if all values of the type are finite.
- Template Parameters
-
T_Type | The type of the real value. |
◆ isTotalZero()
template<typename Type>
inlinebool codi::RealTraits::isTotalZero |
( |
Type const & | v | ) |
|
Function for checking if the value of the type is completely zero.
- Template Parameters
-
T_Type | The type of the real value. |
◆ MaxDerivativeOrder()
template<typename Type>
inlinesize_t constexpr codi::RealTraits::MaxDerivativeOrder |
( |
| ) |
|
|
constexpr |
CoDiPack derivative order of the type.
◆ registerExternalFunctionOutput()
template<typename Type>
inlinetypename DataExtraction< Type >::Real codi::RealTraits::registerExternalFunctionOutput |
( |
Type & | v | ) |
|
Register all active types of an aggregated type as external function outputs.
◆ registerInput()
template<typename Type>
inlinevoid codi::RealTraits::registerInput |
( |
Type & | v | ) |
|
Register all active types of an aggregated type as tape inputs.
◆ registerOutput()
template<typename Type>
inlinevoid codi::RealTraits::registerOutput |
( |
Type & | v | ) |
|
Register all active types of an aggregated type as tape outputs.
◆ setValue()
template<typename Type>
inlinevoid codi::RealTraits::setValue |
( |
Type & | v, |
|
|
typename DataExtraction< Type >::Real const & | value ) |
Set the primal values of an aggregate of active types.