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

Square. More...

#include <calculus.hpp>

Detailed Description

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

Definition at line 691 of file calculus.hpp.

691 { d[0]=twice(x);}
T twice(const T &x)
Definition: calculus.hpp:326

References casadi::twice().

◆ fcn()

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

Definition at line 690 of file calculus.hpp.

690 { f = sq(x);}
T sq(const T &x)
Definition: calculus.hpp:331

References casadi::sq().


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