#include "Math/SMatrix.h"
#include "DataFormats/Math/interface/CholeskyDecomp.h"
Go to the source code of this file.
Functions | |
template<typename T , unsigned int N> | |
bool | invertPosDefMatrix (ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m) |
template<typename T , unsigned int N> | |
bool | invertPosDefMatrix (ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > const &mIn, ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &mOut) |
bool invertPosDefMatrix | ( | ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > & | m | ) | [inline] |
Definition at line 8 of file invertPosDefMatrix.h.
References ROOT::Math::CholeskyDecomp< F, N >::Invert(), and m.
Referenced by PerigeeTrajectoryError::calculateWeightMatrix(), TrajectoryStateCombiner::combine(), Chi2StripEstimator::estimate(), MRHChi2MeasurementEstimator::estimate(), Chi2MeasurementEstimatorForTrackerHits::estimate(), KFStripUpdator::update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >::update(), and LocalTrajectoryError::weightMatrix().
{ ROOT::Math::CholeskyDecomp<T,N> decomp(m); if (!decomp) { return m.Invert(); } else decomp.Invert(m); return true; }
bool invertPosDefMatrix | ( | ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > const & | mIn, |
ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > & | mOut | ||
) | [inline] |
Definition at line 20 of file invertPosDefMatrix.h.
References ROOT::Math::CholeskyDecomp< F, N >::Invert().
{ ROOT::Math::CholeskyDecomp<T,N> decomp(mIn); if (!decomp) { mOut=mIn; return mOut.Invert(); } else decomp.Invert(mOut); return true; }