template<class
F>
class ROOT::Math::CholeskyDecompGenDim< F >
class to compute the Cholesky decomposition of a matrix
class to compute the Cholesky decomposition of a symmetric positive definite matrix when the dimensionality of the problem is not known at compile time
provides routines to check if the decomposition succeeded (i.e. if matrix is positive definite and non-singular), to solve a linear system for the given matrix and to obtain its inverse
the actual functionality is implemented in templated helper classes which have specializations for dimensions N = 1 to 6 to achieve a gain in speed for common matrix sizes
usage example:
CholeskyDecompGenDim<float> decomp(4,
m);
if (!decomp) {
std::cerr << "decomposition failed!" << std::endl;
} else {
decomp.Solve(rhs);
}
Definition at line 310 of file CholeskyDecomp.h.
perform a Cholesky decomposition
perfrom a Cholesky decomposition of a symmetric positive definite matrix m
this is the constructor to use in special applications where plain arrays are used
NOTE: the matrix is given in packed representation, matrix element m(i,j) (j <= i) is supposed to be in array element (i * (i + 1)) / 2 + j
Definition at line 349 of file CholeskyDecomp.h.