|
| LhsExpressionInterface ()=default |
| Constructor.
|
|
| LhsExpressionInterface (LhsExpressionInterface const &other)=default |
| Constructor.
|
|
|
Impl & | cast () |
| 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.
|
|
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.
|
|
Impl const & | cast () const |
| Cast to the implementation.
|
|
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 |
|
template<typename T_Real, typename T_Gradient, typename T_Tape, typename T_Impl>
struct codi::LhsExpressionInterface< T_Real, T_Gradient, T_Tape, T_Impl >
Base class for all CoDiPack lvalue expression.
See Expression design documentation for details about the expression system in CoDiPack.
This interface resembles an lvalue in C++.
- Template Parameters
-
template<typename T_Real , typename T_Gradient , typename T_Tape , typename T_Impl >
template<typename Logic , typename... Args>
Call the link method of the given logic for all arguments (links) of this node (not to be confused with args). Pass args to each call.
template<typename T_Real , typename T_Gradient , typename T_Tape , typename T_Impl >
template<typename Logic , typename... Args>
Call the link method of the given logic for all arguments (links) of this node (not to be confused with args). Pass args to each call.