Interface for implementing the logic for a BinaryExpression. More...
#include <binaryExpression.hpp>
Public Types | |
using | Real = T_Real |
See BinaryOperation. | |
Static Public Member Functions | |
template<typename ArgA , typename ArgB > | |
static Real | gradientA (ArgA const &argA, ArgB const &argB, Real const &result) |
template<typename ArgA , typename ArgB > | |
static Real | gradientB (ArgA const &argA, ArgB const &argB, Real const &result) |
template<typename ArgA , typename ArgB > | |
static Real | primal (ArgA const &argA, ArgB const &argB) |
Interface for implementing the logic for a BinaryExpression.
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 first argument
The type of the arguments is the type of the result of a getValue call on the expressions.
|
inlinestatic |
Compute the gradient with respect to the second argument
The type of the arguments is the type of the result of a getValue call on the expressions.
|
inlinestatic |
Compute the primal value from the arguments.
The type of the arguments is the result of a getValue call on the expressions.