Interface for implementing the logic for a UnaryExpression. More...
#include <unaryExpression.hpp>
Public Types | |
using | Real = T_Real |
See UnaryOperation. | |
Static Public Member Functions | |
template<typename Arg > | |
static Real | gradient (Arg const &arg, Real const &result) |
template<typename Arg > | |
static Real | primal (Arg const &arg) |
Interface for implementing the logic for a UnaryExpression.
See Expression design documentation for details about the expression system in CoDiPack.
T_Real | Original primal value of the statement/expression. |
|
inlinestatic |
Compute the gradient with respect to the argument
The type of the argument is the type of the result of a getValue call on the expression.
|
inlinestatic |
Compute the primal value from the argument.
The type of the argument is the type of the result of a getValue call on the expression.