39#include "../../traits/realTraits.hpp"
40#include "../computeExpression.hpp"
51 template<
typename T_Aggregated,
size_t T_element>
55 static size_t constexpr element = T_element;
63 template<
typename T_Real>
72 template<
typename Arg>
74 return Traits::template arrayAccess<element>(
arg);
78 template<
typename Tangent,
typename Arg>
83 template<
typename Adjo
int,
typename Arg>
87 return Traits::template adjointOfArrayAccess<element>(result, adjoint);
92 template<
typename Arg>
97 template<
typename Aggregated,
size_t element,
typename 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
#define CODI_ANY
Used in default declarations of expression templates.
Definition macros.hpp:100
CoDiPack - Code Differentiation Package.
Definition codi.hpp:94
typename ArrayAccessExpressionImpl< Aggregated, element >::template Expression< Arg > ArrayAccessExpression
Expression that performs a[element] in a compile time context.
Definition arrayAccessExpression.hpp:98
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
Definition arrayAccessExpression.hpp:64
static inlineReal primal(Arg const &arg)
Definition arrayAccessExpression.hpp:73
static inlineauto applyAdjointArg(Adjoint const &adjoint, Real const &result, Arg const &arg)
Definition arrayAccessExpression.hpp:84
static inlineauto applyTangentArg(Tangent const &tangent, Real const &result, Arg const &arg)
T_Real Real
See ArrayAccessOperation.
Definition arrayAccessExpression.hpp:67
Aggregated Jacobian
Jacobian is the aggregated type.
Definition arrayAccessExpression.hpp:69
Definition arrayAccessExpression.hpp:52
ComputeExpression< InnerReal, ArrayAccessOperation, Arg > Expression
Definition of the array access expression.
Definition arrayAccessExpression.hpp:93
typename Traits::InnerType InnerReal
Inner type of the aggregate.
Definition arrayAccessExpression.hpp:59
RealTraits::AggregatedTypeTraits< Aggregated > Traits
Traits of the aggregated type.
Definition arrayAccessExpression.hpp:57
static size_t constexpr element
See ArrayAccessExpressionImpl.
Definition arrayAccessExpression.hpp:55
T_Aggregated Aggregated
See ArrayAccessExpressionImpl.
Definition arrayAccessExpression.hpp:54
Represents an operator or function with an arbitrary number of arguments in the expression tree.
Definition computeExpression.hpp:371
Methods that access inner values of aggregated types that contain CoDiPack active types.
Definition realTraits.hpp:226
int InnerType
Definition realTraits.hpp:229
Implements ComputeOperation for one argument.
Definition computeExpression.hpp:98