BinaryOperation implementation for min. More...
#include <binaryOperators.hpp>
Public Types | |
using | Real = T_Real |
See BinaryOperation. | |
Public Types inherited from codi::BinaryOperation< T_Real > | |
using | Real = T_Real |
See BinaryOperation. | |
Static Public Member Functions | |
template<typename ArgA , typename ArgB > | |
static RealTraits::PassiveReal< Real > | gradientA (ArgA const &argA, ArgB const &argB, Real const &result) |
template<typename ArgA , typename ArgB > | |
static RealTraits::PassiveReal< 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) |
Static Public Member Functions inherited from codi::BinaryOperation< T_Real > | |
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) |
BinaryOperation implementation for min.
|
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.