|
constexpr | ActiveTypeStatelessTape ()=default |
| Constructor.
|
|
| ActiveTypeStatelessTape (ActiveTypeStatelessTape const &v) |
| Constructor.
|
|
template<typename Rhs > |
| ActiveTypeStatelessTape (ExpressionInterface< Real, Rhs > const &rhs) |
| Constructor.
|
|
constexpr | ActiveTypeStatelessTape (PassiveReal const &value) |
| Constructor.
|
|
|
ActiveTypeStatelessTape & | operator= (ActiveTypeStatelessTape const &v) |
| See ActiveTypeStatelessTape::operator=(ActiveTypeStatelessTape const&).
|
|
Impl & | operator= (Real const &rhs) |
| Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
|
template<typename U = Real, typename = RealTraits::EnableIfNotPassiveReal<U>> |
Impl & | operator= (PassiveReal const &rhs) |
| Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
|
template<typename Rhs > |
Impl & | operator= (ExpressionInterface< Real, Rhs > const &rhs) |
| Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
template<typename Rhs , typename U = Real, typename = RealTraits::EnableIfNotPassiveReal<U>> |
Impl & | operator= (ExpressionInterface< typename U::Real, Rhs > const &rhs) |
| Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
Impl & | operator= (LhsExpressionInterface const &rhs) |
| Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
template<typename Rhs > |
Impl & | operator= (LhsExpressionInterface< Real, Gradient, Tape, Rhs > const &rhs) |
| Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
| LhsExpressionInterface ()=default |
| Constructor.
|
|
| LhsExpressionInterface (LhsExpressionInterface const &other)=default |
| Constructor.
|
|
Impl & | cast () |
| Cast to the implementation.
|
|
Impl const & | cast () const |
| Cast to the implementation.
|
|
Gradient & | gradient () |
| Get the gradient of this lvalue from the tape.
|
|
Gradient const & | gradient () const |
| Get the gradient of this lvalue from the tape.
|
|
Gradient | getGradient () const |
| Get the gradient of this lvalue from the tape.
|
|
void | setGradient (Gradient const &g) |
| Set the gradient of this lvalue in the tape.
|
|
Real const & | getValue () const |
| Get the primal value of this lvalue.
|
|
void | setValue (Real const &v) |
| Set the primal value of this lvalue.
|
|
Impl & | operator= (Real const &rhs) |
| Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
|
Impl & | operator= (PassiveReal const &rhs) |
| Assignment operator for passive values. Calls store on the InternalStatementRecordingTapeInterface.
|
|
Impl & | operator= (ExpressionInterface< Real, Rhs > const &rhs) |
| Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
Impl & | operator= (ExpressionInterface< typename U::Real, Rhs > const &rhs) |
| Assignment operator for expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
Impl & | operator= (LhsExpressionInterface const &rhs) |
| Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
Impl & | operator= (LhsExpressionInterface< Real, Gradient, Tape, Rhs > const &rhs) |
| Assignment operator for lhs expressions. Calls store on the InternalStatementRecordingTapeInterface.
|
|
void | forEachLink (TraversalLogic< Logic > &logic, Args &&... args) const |
|
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 () |
|
Impl const & | cast () const |
| Cast to the implementation.
|
|
| ExpressionInterface ()=default |
| Constructor.
|
|
| ExpressionInterface (ExpressionInterface const &)=default |
| Constructor.
|
|
Real const | getValue () const |
| Compute the primal value that is usually evaluated by the statement/expression.
|
|
template<size_t argNumber> |
Real | getJacobian () const |
|
Impl const & | cast () const |
| Cast to the implementation.
|
|
template<typename Logic , typename... Args> |
void | forEachLink (TraversalLogic< Logic > &logic, Args &&... args) const |
|
Impl & | cast () |
| Cast to the implementation.
|
|
Impl & | operator*= (ExpressionInterface< Real, Rhs > const &rhs) |
| Operator *= for expressions.
|
|
Impl & | operator*= (PassiveReal const &rhs) |
| Operator *= for passive values.
|
|
Impl & | operator+= (ExpressionInterface< Real, Rhs > const &rhs) |
| Operator += for expressions.
|
|
Impl & | operator+= (PassiveReal const &rhs) |
| Operator += for passive values.
|
|
Impl & | operator-= (ExpressionInterface< Real, Rhs > const &rhs) |
| Operator -= for expressions.
|
|
Impl & | operator-= (PassiveReal const &rhs) |
| Operator -= for passive values.
|
|
Impl & | operator/= (ExpressionInterface< Real, Rhs > const &rhs) |
| Operator /= for expressions.
|
|
Impl & | operator/= (PassiveReal const &rhs) |
| Operator /= for passive values.
|
|
Impl & | cast () |
| Cast to the implementation.
|
|
Impl & | operator++ () |
| Prefix operator++.
|
|
Impl | operator++ (int u) |
| Postfix operator++.
|
|
Impl & | operator-- () |
| Prefix operator--.
|
|
Impl | operator-- (int u) |
| Postfix operator--.
|
|
template<typename T_Tape>
struct codi::ActiveTypeStatelessTape< T_Tape >
Represents a concrete lvalue in the CoDiPack expression tree.
See also LhsExpressionInterface.
This active type does not work with a fixed tape. Instead, getTape() constructs a new temporary tape on every call. In particular, tapes for this active type can not have a persistent state.
- Template Parameters
-
T_Tape | The tape that manages all expressions created with this type. |