24 #ifndef genfit_Tools_h
25 #define genfit_Tools_h
29 #include <TMatrixDSym.h>
43 void invertMatrix(
const TMatrixDSym& mat, TMatrixDSym& inv,
double* determinant =
nullptr);
46 void invertMatrix(TMatrixDSym& mat,
double* determinant =
nullptr);
51 bool transposedForwardSubstitution(
const TMatrixD&
R, TVectorD& b);
53 bool transposedForwardSubstitution(
const TMatrixD&
R, TMatrixD& b,
int nCol);
55 bool transposedInvert(
const TMatrixD&
R, TMatrixD& inv);
68 void QR(TMatrixD& A, TVectorD& b);
76 noiseMatrixSqrt(
const TMatrixDSym& noise,
84 kalmanPredictionCovSqrt(
const TMatrixD& S,
85 const TMatrixD& F,
const TMatrixD& Q,
93 kalmanUpdateSqrt(
const TMatrixD& S,
94 const TVectorD& res,
const TMatrixD&
R,
const AbsHMatrix* H,
95 TVectorD& update, TMatrixD& SNew);
Defines for I/O streams used for error and debug printing.