List of all members | Static Public Member Functions
casadi::UnaryOperation< OP_FABS > Struct Reference

Absolute value. More...

#include <calculus.hpp>

Detailed Description

Definition at line 852 of file calculus.hpp.

Static Public Member Functions

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

Member Function Documentation

◆ der()

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

Definition at line 854 of file calculus.hpp.

854  {
855  d[0]=sign(x);}
double sign(double x)
Sign function, note that sign(nan) == nan.
Definition: calculus.hpp:264

References casadi::sign().

◆ fcn()

template<typename T >
static void casadi::UnaryOperation< OP_FABS >::fcn ( const T &  x,
T &  f 
)
inlinestatic

Definition at line 853 of file calculus.hpp.

853 { f = fabs(x);}

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