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

Power, defined only for y constant. More...

#include <calculus.hpp>

Detailed Description

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

Definition at line 674 of file calculus.hpp.

674  {
675  d[0]=y*pow(x, y-1); d[1]=0;}

◆ fcn()

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

Definition at line 673 of file calculus.hpp.

673 { f = pow(x, y);}

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