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

Division. More...

#include <calculus.hpp>

Detailed Description

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

Definition at line 631 of file calculus.hpp.

631  {
632  d[0]=1/y; d[1]=-f/y;}

◆ fcn()

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

Definition at line 630 of file calculus.hpp.

630 { f = x/y;}

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