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

Hyperbolic tangent. More...

#include <calculus.hpp>

Detailed Description

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

Definition at line 920 of file calculus.hpp.

920 { d[0] = 1-f*f; }

◆ fcn()

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

Definition at line 919 of file calculus.hpp.

919 { f = tanh(x);}

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