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

Power, defined only for x>=0. More...

#include <calculus.hpp>

Detailed Description

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

Definition at line 665 of file calculus.hpp.

665  {
666  d[0]=y*pow(x, y-1); d[1]=log(x)*f;}

◆ fcn()

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

Definition at line 663 of file calculus.hpp.

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

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