39#include "lhsExpressionInterface.hpp"
45 template<
typename T_Real,
bool T_JacobianOptimization,
typename T_Impl>
51 CODI_DD(T_JacobianOptimization,
false);
59 cast() = (cast() + rhs);
65 cast() = (cast() - rhs);
73 return static_cast<Impl&
>(*this);
78 template<
typename T_Real,
typename T_Impl>
91 cast().value() += rhs;
97 cast().value() -= rhs;
105 return static_cast<Impl&
>(*this);
118 template<
typename T_Real,
bool T_JacobianOptimization,
typename T_Impl>
134 template<
typename Rhs>
136 return cast() = (cast() + rhs);
140 template<
typename Rhs>
142 return cast() = (cast() - rhs);
146 template<
typename Rhs>
148 return cast() = (cast() * rhs);
152 template<
typename Rhs>
154 return cast() = (cast() / rhs);
157 using Base::operator+=;
158 using Base::operator-=;
162 return cast() = (cast() * rhs);
167 return cast() = (cast() / rhs);
174 return static_cast<Impl&
>(*this);
#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_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:116
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
ResolveSelf< complex< codi::ActiveType< T_Tape > >, ActiveComplex > Impl
Definition stdComplex.hpp:111
RealTraits::PassiveReal< Real > PassiveReal
Passive value type of the real.
Definition aggregatedActiveType.hpp:173
T_Real Real
See AssignmentOperators.
Definition assignmentOperators.hpp:82
T_Impl Impl
See AssignmentOperators.
Definition assignmentOperators.hpp:84
inlineImpl & operator+=(PassiveReal const &rhs)
Operator += for passive values.
Definition assignmentOperators.hpp:90
RealTraits::PassiveReal< Real > PassiveReal
Basic computation type.
Definition assignmentOperators.hpp:87
inlineImpl & operator-=(PassiveReal const &rhs)
Operator -= for passive values.
Definition assignmentOperators.hpp:96
static bool constexpr JacobianOptimization
See AssignmentOperators.
Definition assignmentOperators.hpp:83
Default implementations for the passive += and -= operators.
Definition assignmentOperators.hpp:46
inlineImpl & operator-=(PassiveReal const &rhs)
Operator -= for passive values.
Definition assignmentOperators.hpp:64
T_Real Real
See AssignmentOperators.
Definition assignmentOperators.hpp:49
T_Impl Impl
See AssignmentOperators.
Definition assignmentOperators.hpp:52
RealTraits::PassiveReal< Real > PassiveReal
Basic computation type.
Definition assignmentOperators.hpp:55
static bool constexpr JacobianOptimization
See AssignmentOperators.
Definition assignmentOperators.hpp:50
inlineImpl & operator+=(PassiveReal const &rhs)
Operator += for passive values.
Definition assignmentOperators.hpp:58
Provides assignment operators for LhsExpressionInterface implementations.
Definition assignmentOperators.hpp:120
RealTraits::PassiveReal< Real > PassiveReal
Definition assignmentOperators.hpp:131
inlineImpl & operator/=(PassiveReal const &rhs)
Operator /= for passive values.
Definition assignmentOperators.hpp:166
T_Real Real
See AssignmentOperators.
Definition assignmentOperators.hpp:123
inlineImpl & operator*=(PassiveReal const &rhs)
Operator *= for passive values.
Definition assignmentOperators.hpp:161
inlineImpl & operator+=(ExpressionInterface< Real, Rhs > const &rhs)
Operator += for expressions.
Definition assignmentOperators.hpp:135
inlineImpl & operator-=(ExpressionInterface< Real, Rhs > const &rhs)
Operator -= for expressions.
Definition assignmentOperators.hpp:141
T_Impl Impl
See AssignmentOperators.
Definition assignmentOperators.hpp:125
static bool constexpr JacobianOptimization
Definition assignmentOperators.hpp:124
inlineImpl & operator/=(ExpressionInterface< Real, Rhs > const &rhs)
Operator /= for expressions.
Definition assignmentOperators.hpp:153
inlineImpl & operator*=(ExpressionInterface< Real, Rhs > const &rhs)
Operator *= for expressions.
Definition assignmentOperators.hpp:147
AssignmentOperatorsPassiveJacobianOptimization< T_Real, T_JacobianOptimization, T_Impl > Base
Definition assignmentOperators.hpp:128
Base class for all CoDiPack expressions.
Definition expressionInterface.hpp:60
Base class for all CoDiPack lvalue expression.
Definition lhsExpressionInterface.hpp:63