Derivatives.hpp
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
std::function< VectorXd(VectorXdConstRef)> VectorFunction
Define a vector function type.
Definition: Derivatives.hpp:29
Eigen::Ref< const VectorXd > VectorXdConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:76
auto derivativeCentral(const ScalarFunction &f, VectorXdConstRef x) -> VectorXd
Calculate the partial derivatives of a scalar function using a 2nd-order central finite difference sc...
auto derivativeForward(const ScalarFunction &f, VectorXdConstRef x) -> VectorXd
Calculate the partial derivatives of a scalar function using a 1st-order forward finite difference sc...
std::function< double(VectorXdConstRef)> ScalarFunction
Define a scalar function type.
Definition: Derivatives.hpp:26
auto derivativeBackward(const ScalarFunction &f, VectorXdConstRef x) -> VectorXd
Calculate the partial derivatives of a scalar function using a 1st-order backward finite difference s...