RobWorkProject  24.12.4-
Static Public Member Functions | List of all members
FdUtil Class Reference

Various numerical methods using finite-differences. More...

#include <FdUtil.hpp>

Static Public Member Functions

static void vectorDerivative (const Eigen::VectorXd &f, Eigen::VectorXd &df, const double h)
 calculates the derivatives of a vector More...
 

Detailed Description

Various numerical methods using finite-differences.

Member Function Documentation

◆ vectorDerivative()

static void vectorDerivative ( const Eigen::VectorXd &  f,
Eigen::VectorXd &  df,
const double  h 
)
static

calculates the derivatives of a vector

calculates the derivatives of a vector using second-order accurate, centered FD expressions at the interior points and first-order accurate forward/backward differences at the endpoints

Parameters
fvector of function values
dfvector to put the derivatives in
hstepsize

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