List of all members | Static Public Member Functions
casadi::BinaryOperation< OP_FMIN > Struct Reference

Minimum. More...

#include <calculus.hpp>

Detailed Description

Definition at line 875 of file calculus.hpp.

Static Public Member Functions

template<typename T >
static void fcn (const T &x, const T &y, T &f)
 
template<typename T >
static void der (const T &x, const T &y, const T &f, T *d)
 

Member Function Documentation

◆ der()

template<typename T >
static void casadi::BinaryOperation< OP_FMIN >::der ( const T &  x,
const T &  y,
const T &  f,
T *  d 
)
inlinestatic

Definition at line 877 of file calculus.hpp.

877  {
878  T a = x<=y;
879  T b = y<=x;
880  T c = a+b;
881  d[0]=a/c; d[1]=b/c;}

References casadi::T.

◆ fcn()

template<typename T >
static void casadi::BinaryOperation< OP_FMIN >::fcn ( const T &  x,
const T &  y,
T &  f 
)
inlinestatic

Definition at line 876 of file calculus.hpp.

876 { f = fmin(x, y);}

The documentation for this struct was generated from the following file: