MathUtils.hpp
Eigen::Ref< Eigen::MatrixXd > MatrixRef
Alias to Eigen type Ref<MatrixXd>.
Definition: Matrix.hpp:43
auto linearlyIndependentRows(MatrixConstRef A) -> Indices
Determine the set of linearly independent rows in a matrix.
Definition: MathUtils.cpp:38
auto linearlyIndependentCols(MatrixConstRef A) -> Indices
Determine the set of linearly independent columns in a matrix using a column pivoting QR algorithm.
Definition: MathUtils.cpp:28
auto cleanRationalNumbers(double *vals, long size, long maxden) -> void
Clean an array that is known to have rational numbers from round-off errors.
Definition: MathUtils.cpp:114
auto rationalize(double x, unsigned maxden) -> std::tuple< long, long >
Calculates the rational number that approximates a given real number.
Definition: MathUtils.cpp:101
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto dot3p(VectorConstRef x, VectorConstRef y, double s) -> double
Return the dot product s + dot(x, y) of two vectors with triple-precision.
Definition: MathUtils.cpp:154
std::vector< Index > Indices
Define a type that represents a collection of indices.
Definition: Index.hpp:29
auto inverseShermanMorrison(MatrixConstRef invA, VectorConstRef D) -> Matrix
Calculate the inverse of A + D where inv(A) is already known and D is a diagonal matrix.
Definition: MathUtils.cpp:64
Eigen::Ref< const Eigen::MatrixXd > MatrixConstRef
Alias to Eigen type Ref<const MatrixXd>.
Definition: Matrix.hpp:44
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31
auto residual3p(MatrixConstRef A, VectorConstRef x, VectorConstRef b) -> Vector
Return the residual of the equation A*x - b with triple-precision.
Definition: MathUtils.cpp:159