49 #ifndef HITFIT_MATUTIL_H 50 #define HITFIT_MATUTIL_H 53 #define MATRIX_BOUND_CHECK 56 #include "CLHEP/Matrix/Matrix.h" 57 #include "CLHEP/Matrix/Vector.h" 58 #include "CLHEP/Matrix/DiagMatrix.h" 146 const double &
operator()(
int row,
int col)
const override;
155 double &
operator()(
int row,
int col)
override;
178 void clear (CLHEP::HepGenMatrix&
m);
188 double scalar (
const CLHEP::HepGenMatrix& m);
195 #endif // not HITFIT_MATUTIL_H
CLHEP::HepVector Column_Vector
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Row_Vector & operator=(const Matrix &m)
Assignment operator, will raise an assertion if m doesn't have exactly one row.
const double & operator()(int col) const
Direct element access, indexing starts from 1.
Row_Vector(int cols)
Constructor, instantiate an unitialized matrix.
CLHEP::HepDiagMatrix Diagonal_Matrix
Row-vector class. CLHEP doesn't have a row-vector class, so HitFit uses its own. This is only a simpl...
double scalar(const CLHEP::HepGenMatrix &m)
Return the matrix as a scalar. Raise an assertion if the matris is not .