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

Conditional assignment. More...

#include <calculus.hpp>

Detailed Description

Definition at line 989 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_IF_ELSE_ZERO >::der ( const T &  x,
const T &  y,
const T &  f,
T *  d 
)
inlinestatic

Definition at line 993 of file calculus.hpp.

993  {
994  d[0]=0; d[1]=x;}

◆ fcn()

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

Definition at line 991 of file calculus.hpp.

991  {
992  f = if_else_zero(x, y);}
double if_else_zero(double x, double y)
Conditional assignment.
Definition: calculus.hpp:289

References casadi::if_else_zero().


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