Creates a pseudo active type from data references. Can be used to overlay existing data with active types.
More...
|
| ActiveTypeWrapper (ActiveType &value) |
|
| ActiveTypeWrapper (Real &value, Identifier &identifier) |
|
ActiveTypeWrapper< ActiveType > & | operator= (ActiveTypeWrapper< ActiveType > const &v) |
| See LhsExpressionInterface::operator=(ExpressionInterface const&)
|
|
| ~ActiveTypeWrapper () |
|
| 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_ActiveType>
struct codi::ActiveTypeWrapper< T_ActiveType >
Creates a pseudo active type from data references. Can be used to overlay existing data with active types.
The class stores references to the value and identifier. The identifier is taken as it is and not initialized or destroyed. The class only wraps the data in a CoDiPack expression.
See Expression design documentation for details about the expression system in CoDiPack.
- Template Parameters
-
T_ActiveType | The type of the active type which is wrapped. |