/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Calibration/Tools/interface/BlockSolver.h
36 строк
962 B
Cms Build
Clang-Format
16 май 2019, 15:48
16 май 2019, 15:48
99a83f0
Код
Авторство
О чём код?
#ifndef __CINT__ #ifndef BlockSolver_H #define BlockSolver_H #include <map> #include <string> #include <vector> #include "CLHEP/Matrix/GenMatrix.h" #include "CLHEP/Matrix/Matrix.h" #include "CLHEP/Matrix/Vector.h" #include "CLHEP/Random/RandGaussQ.h" #include "Calibration/Tools/interface/InvMatrixCommonDefs.h" /** \class BlockSolver \brief solves at best the matrix invertion for calibration */ struct BlockSolver { int operator()(const CLHEP::HepMatrix& matrix, const CLHEP::HepVector& vector, CLHEP::HepVector& result); private: //! eliminate empty columns and rows void shrink(const CLHEP::HepMatrix& matrix, CLHEP::HepMatrix& solution, const CLHEP::HepVector& result, CLHEP::HepVector& input, const std::vector<int>& where); //! pour results in bigger vector void pour(CLHEP::HepVector& result, const CLHEP::HepVector& output, const std::vector<int>& where); }; #endif #endif