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