template<class
F, unsigned N>
class ROOT::Math::CholeskyDecomp< F, N >
class to compute the Cholesky decomposition of a matrix
class to compute the Cholesky decomposition of a symmetric positive definite matrix
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:
CholeskyDecomp<float, 4> decomp(
m);
if (!decomp) {
std::cerr << "decomposition failed!" << std::endl;
} else {
decomp.Solve(rhs);
}
Definition at line 76 of file CholeskyDecomp.h.
template<class
F , unsigned N>
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 112 of file CholeskyDecomp.h.