Represents the base implementation concrete lvalue in the CoDiPack expression tree.
More...
|
|
inlineImpl & | cast () |
| | Cast to the implementation.
|
| |
|
| inlineActiveTypeBase () |
| | Constructor.
|
| |
|
| inlineActiveTypeBase (ActiveTypeBase const &v) |
| | Constructor.
|
| |
|
template<typename Rhs> |
| | inlineActiveTypeBase (ExpressionInterface< Real, Rhs > const &rhs) |
| | Constructor.
|
| |
|
template<typename Rhs, typename U = Real, typename = RealTraits::EnableIfNotPassiveReal<U>> |
| | inlineActiveTypeBase (ExpressionInterface< typename U::Real, Rhs > const &rhs) |
| | Constructor.
|
| |
|
template<typename U = Real, typename = RealTraits::EnableIfNotPassiveReal<U>> |
| | inlineActiveTypeBase (PassiveReal const &value) |
| | Constructor.
|
| |
|
| inlineActiveTypeBase (Real const &value) |
| | Constructor.
|
| |
|
inlineImpl & | operator= (ActiveTypeBase const &v) |
| | See LhsExpressionInterface::operator=(LhsExpressionInterface const&).
|
| |
|
inlineImpl & | operator= (ExpressionInterface< Real, Rhs > const &rhs) |
| | Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (ExpressionInterface< typename U::Real, Rhs > const &rhs) |
| | Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (LhsExpressionInterface const &rhs) |
| | Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (LhsExpressionInterface< Real, Gradient, Tape, Rhs > const &rhs) |
| | Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (PassiveReal const &rhs) |
| | Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (Real const &rhs) |
| | Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inline | ~ActiveTypeBase () |
| | Destructor.
|
| |
|
| inlineIdentifier & | getIdentifier () |
| |
| inlineIdentifier const & | getIdentifier () const |
| |
| inlineTapeData & | getTapeData () |
| | Get the data of the tape stored in this lhs expression.
|
| |
| inlineTapeData const & | getTapeData () const |
| | Get the data of the tape stored in this lhs expression.
|
| |
| inlineReal & | value () |
| | Get a reference to the lvalue represented by the expression.
|
| |
| inlineReal const & | value () const |
| | Get a constant reference to the lvalue represented by the expression.
|
| |
|
inlineImpl const & | cast () const |
| | Cast to the implementation.
|
| |
|
| LhsExpressionInterface ()=default |
| | Constructor.
|
| |
|
| LhsExpressionInterface (LhsExpressionInterface const &other)=default |
| | Constructor.
|
| |
|
inlineImpl & | cast () |
| | Cast to the implementation.
|
| |
|
inlineImpl const & | cast () const |
| | Cast to the implementation.
|
| |
|
inlineGradient & | gradient () |
| | Get the gradient of this lvalue from the tape.
|
| |
|
inlineGradient const & | gradient () const |
| | Get the gradient of this lvalue from the tape.
|
| |
|
inlineGradient | getGradient () const |
| | Get the gradient of this lvalue from the tape.
|
| |
|
inlinevoid | setGradient (Gradient const &g) |
| | Set the gradient of this lvalue in the tape.
|
| |
|
inlineReal const & | getValue () const |
| | Get the primal value of this lvalue.
|
| |
|
inlinevoid | setValue (Real const &v) |
| | Set the primal value of this lvalue.
|
| |
|
inlineImpl & | operator= (Real const &rhs) |
| | Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (PassiveReal const &rhs) |
| | Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (ExpressionInterface< Real, Rhs > const &rhs) |
| | Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (ExpressionInterface< typename U::Real, Rhs > const &rhs) |
| | Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (LhsExpressionInterface const &rhs) |
| | Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
inlineImpl & | operator= (LhsExpressionInterface< Real, Gradient, Tape, Rhs > const &rhs) |
| | Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
| |
|
Real const & | value () const |
| | Get a constant reference to the lvalue represented by the expression.
|
| |
|
Real & | value () |
| | Get a reference to the lvalue represented by the expression.
|
| |
| Identifier const & | getIdentifier () const |
| |
| Identifier & | getIdentifier () |
| |
|
TapeData const & | getTapeData () const |
| | Get the data of the tape stored in this lhs expression.
|
| |
|
TapeData & | getTapeData () |
| | Get the data of the tape stored in this lhs expression.
|
| |
|
inlineImpl const & | cast () const |
| | Cast to the implementation.
|
| |
|
| ExpressionInterface ()=default |
| | Constructor.
|
| |
|
| ExpressionInterface (ExpressionInterface const &)=default |
| | Constructor.
|
| |
|
inlineReal const | getValue () const |
| | Compute the primal value that is usually evaluated by the statement/expression.
|
| |
| inlineauto | applyTangent (Tangent const &tangent) const |
| |
| inlineauto | applyAdjoint (Adjoint const &adjoint) const |
| |
|
inlineImpl const & | cast () const |
| | Cast to the implementation.
|
| |
| template<size_t argNumber> |
| char const & | getLink () const |
| | an expression.
|
| |
|
inlineImpl & | operator*= (ExpressionInterface< Real, Rhs > const &rhs) |
| | Operator *= for expressions.
|
| |
|
inlineImpl & | operator*= (PassiveReal const &rhs) |
| | Operator *= for passive values.
|
| |
|
inlineImpl & | operator+= (ExpressionInterface< Real, Rhs > const &rhs) |
| | Operator += for expressions.
|
| |
|
inlineImpl & | operator+= (PassiveReal const &rhs) |
| | Operator += for passive values.
|
| |
|
inlineImpl & | operator+= (PassiveReal const &rhs) |
| | Operator += for passive values.
|
| |
|
inlineImpl & | operator-= (ExpressionInterface< Real, Rhs > const &rhs) |
| | Operator -= for expressions.
|
| |
|
inlineImpl & | operator-= (PassiveReal const &rhs) |
| | Operator -= for passive values.
|
| |
|
inlineImpl & | operator-= (PassiveReal const &rhs) |
| | Operator -= for passive values.
|
| |
|
inlineImpl & | operator/= (ExpressionInterface< Real, Rhs > const &rhs) |
| | Operator /= for expressions.
|
| |
|
inlineImpl & | operator/= (PassiveReal const &rhs) |
| | Operator /= for passive values.
|
| |
|
inlineImpl & | operator+= (PassiveReal const &rhs) |
| | Operator += for passive values.
|
| |
|
inlineImpl & | operator-= (PassiveReal const &rhs) |
| | Operator -= for passive values.
|
| |
|
inlineImpl & | cast () |
| | Cast to the implementation.
|
| |
|
inlineImpl & | operator++ () |
| | Prefix operator++.
|
| |
|
inlineImpl | operator++ (int u) |
| | Postfix operator++.
|
| |
|
inlineImpl & | operator-- () |
| | Prefix operator--.
|
| |
|
inlineImpl | operator-- (int u) |
| | Postfix operator--.
|
| |
template<typename T_Tape, typename T_Impl>
struct codi::ActiveTypeBase< T_Tape, T_Impl >
Represents the base implementation concrete lvalue in the CoDiPack expression tree.
The class uses members for storing the value and the identifier.
See Expression design documentation for details about the expression system in CoDiPack.
The storage of the underlying tape and the access to it is left to the implementing class.
- Template Parameters
-
| T_Tape | The tape that manages all expressions created with this type. |
| T_Impl | Implementing class. |