97 return HepMatrix::operator() (1,
col);
112 return HepMatrix::operator() (1, col);
128 return HepMatrix::operator() (row,
col);
144 return HepMatrix::operator() (row, col);
161 assert (m.num_row() == 1);
175 int nrow = m.num_row();
176 int ncol = m.num_col();
177 for (
int i=1;
i <= nrow;
i++)
178 for (
int j=1;
j <= ncol;
j++)
196 assert (m.num_row() == 1 && m.num_col() == 1);
Define matrix types for the HitFit package, and supply a few additional operations.
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.
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 .