50 #ifndef HITFIT_MATUTIL_H
51 #define HITFIT_MATUTIL_H
54 #define MATRIX_BOUND_CHECK
57 #include "CLHEP/Matrix/Matrix.h"
58 #include "CLHEP/Matrix/Vector.h"
59 #include "CLHEP/Matrix/DiagMatrix.h"
147 const double &
operator()(
int row,
int col)
const;
179 void clear (CLHEP::HepGenMatrix&
m);
189 double scalar (
const CLHEP::HepGenMatrix&
m);
196 #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 .