41#include "../traits/expressionTraits.hpp"
42#include "../traits/realTraits.hpp"
43#include "expressionMemberOperations.hpp"
44#include "logic/nodeInterface.hpp"
59 template<
typename T_Real,
typename T_Impl>
77 return static_cast<Impl const&
>(*this);
80#if CODI_ImplicitConversion
85 return cast().getValue();
110 template<
size_t argNumber,
typename Tangent>
125 template<
size_t argNumber,
typename Adjo
int>
134#ifndef DOXYGEN_DISABLE
135 template<
typename T_Type>
140 using Real =
typename Type::Real;
153 template<
typename Expr>
#define CODI_INLINE
See codi::Config::ForcedInlines.
Definition config.h:469
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:96
#define CODI_UNDEFINED
Used in interface declarations for types that have to be defined in the specializations.
Definition macros.hpp:119
#define CODI_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:116
Traits for everything that can be an expression e.g. codi::RealReverse, a + b, etc....
Definition expressionTraits.hpp:65
typename std::enable_if< IsExpression< Expr >::value, T >::type EnableIfExpression
Enable if wrapper for IsExpression.
Definition expressionTraits.hpp:160
inlinePassiveReal< Type > getPassiveValue(Type const &v)
Get the basic primal value of the type.
Definition realTraits.hpp:133
inlinesize_t constexpr MaxDerivativeOrder()
CoDiPack derivative order of the type.
Definition realTraits.hpp:127
typename TraitsImplementation< Type >::PassiveReal PassiveReal
The original computation type that was used in the application.
Definition realTraits.hpp:123
CoDiPack - Code Differentiation Package.
Definition codi.hpp:94
ExpressionTraits::EnableIfExpression< Expr, std::ostream > & operator<<(std::ostream &out, Expr const &v)
Write the primal value to the stream.
Definition expressionInterface.hpp:154
Base class for all CoDiPack expressions.
Definition expressionInterface.hpp:60
inlineReal const getValue() const
Compute the primal value that is usually evaluated by the statement/expression.
T_Real Real
See ExpressionInterface.
Definition expressionInterface.hpp:63
ExpressionInterface StoreAs
Defines how this expression is stored in an expression tree.
Definition expressionInterface.hpp:93
ExpressionInterface(ExpressionInterface const &)=default
Constructor.
T_Impl Impl
See ExpressionInterface.
Definition expressionInterface.hpp:64
ExpressionInterface()=default
Constructor.
inlineauto applyAdjoint(Adjoint const &adjoint) const
inlineauto applyTangent(Tangent const &tangent) const
char ADLogic
AD logic that governs the expression. Needs to be the same for all inputs of the expression.
Definition expressionInterface.hpp:67
inlineImpl const & cast() const
Cast to the implementation.
Definition expressionInterface.hpp:76
Definition expressionMemberOperations.hpp:65
Node side interface for the traversal of expressions.
Definition nodeInterface.hpp:56
Common traits for all types used as real values.
Definition realTraits.hpp:66
static int constexpr MaxDerivativeOrder
CoDiPack derivative order of the type.
Definition realTraits.hpp:74
T_Type Type
See TraitsImplementation.
Definition realTraits.hpp:69
static inlinePassiveReal getPassiveValue(Type const &v)
Get the basic primal value of the type.
Definition realTraits.hpp:77
Type PassiveReal
The original computation type that was used in the application.
Definition realTraits.hpp:72
static void implicitCast()
Show a warning about an implicit cast of an active real type.
Definition exceptions.hpp:129