1 #ifndef DataFormat_Math_invertPosDefMatrix_H 2 #define DataFormat_Math_invertPosDefMatrix_H 4 #define SMATRIX_USE_CONSTEXPR 5 #include "Math/SMatrix.h" 6 #include "Math/CholeskyDecomp.h" 9 template<
typename T,
unsigned int N>
12 ROOT::Math::CholeskyDecomp<T,N> decomp(
m);
21 template<
typename PDM2>
28 auto c2 = one/(
m[2] -
c1);
30 auto li21 =
c1 * c0 * c2;
61 template<
typename T,
unsigned int N>
63 ROOT::Math::SMatrix<
T,
N,
N,ROOT::Math::MatRepSym<T,N> > & mOut) {
65 ROOT::Math::CholeskyDecomp<T,N> decomp(mIn);
bool invertPosDefMatrix< double, 1 >(ROOT::Math::SMatrix< double, 1, 1, ROOT::Math::MatRepSym< double, 1 > > &m)
bool invertPosDefMatrix< double, 2 >(ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > &m)
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
bool invertPosDefMatrix< float, 1 >(ROOT::Math::SMatrix< float, 1, 1, ROOT::Math::MatRepSym< float, 1 > > &m)
bool invertPosDefMatrix< float, 2 >(ROOT::Math::SMatrix< float, 2, 2, ROOT::Math::MatRepSym< float, 2 > > &m)
void fastInvertPDM2(PDM2 &mm)