RobWorkProject
24.12.4-
|
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... | |
Various numerical methods using finite-differences.
|
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
f | vector of function values |
df | vector to put the derivatives in |
h | stepsize |