48 #ifndef HITFIT_MATUTIL_H 49 #define HITFIT_MATUTIL_H 52 #define MATRIX_BOUND_CHECK 55 #include "CLHEP/Matrix/Matrix.h" 56 #include "CLHEP/Matrix/Vector.h" 57 #include "CLHEP/Matrix/DiagMatrix.h" 141 const double&
operator()(
int row,
int col)
const override;
150 double&
operator()(
int row,
int col)
override;
171 void clear(CLHEP::HepGenMatrix&
m);
181 double scalar(
const CLHEP::HepGenMatrix& m);
185 #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 .