41#include "../../traits/expressionTraits.hpp"
42#include "../computeExpression.hpp"
58 template<
typename T_ComplexReal>
65 using Real =
typename ComplexReal::value_type;
68 template<
typename Arg>
74 template<
typename Tangent,
typename Arg>
82 template<
typename Adjo
int,
typename Arg>
86 return adjoint.real();
97 template<
typename T_Real,
typename T_Arg>
#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
CoDiPack - Code Differentiation Package.
Definition codi.hpp:94
inlinevoid CODI_UNUSED(Args const &...)
Disable unused warnings for an arbitrary number of arguments.
Definition macros.hpp:54
inlineauto arg(ExpressionInterface< std::complex< Real >, Arg > const &arg)
Function overload for FUNCTION.
Definition allOperators.hpp:75
ComputeExpression< std::complex< T_Real >, OperationRealToComplexCast, T_Arg > RealToComplexCast
Definition realToComplexCast.hpp:98
Represents an operator or function with an arbitrary number of arguments in the expression tree.
Definition computeExpression.hpp:371
Returns a proxy object for the gradient that implements the operation in the multiplication of the pr...
Definition realToComplexCast.hpp:59
static inlineReal applyAdjointArg(Adjoint const &adjoint, ComplexReal const &result, Arg const &arg)
Definition realToComplexCast.hpp:83
static inlineComplexReal applyTangentArg(Tangent const &tangent, ComplexReal const &result, Arg const &arg)
Definition realToComplexCast.hpp:75
T_ComplexReal ComplexReal
See OperationRealToComplexCast.
Definition realToComplexCast.hpp:62
static inlineComplexReal primal(Arg const &arg)
Definition realToComplexCast.hpp:69
ReduceToReal Jacobian
See OperationRealToComplexCast.
Definition realToComplexCast.hpp:63
typename ComplexReal::value_type Real
Inner type of the complex value.
Definition realToComplexCast.hpp:65
static inlinestd::string getMathRep()
Get the math symbol of the operation. E.g. + for operators and pow() for functions.
Definition realToComplexCast.hpp:90
Placeholder to identify the operation on the Jacobian.
Definition realToComplexCast.hpp:47
Implements ComputeOperation for one argument.
Definition computeExpression.hpp:98