83 assert (m.num_row() == 1);
98 return HepMatrix::operator() (1, col);
113 return HepMatrix::operator() (1, col);
129 return HepMatrix::operator() (row, col);
145 return HepMatrix::operator() (row, col);
162 assert (m.num_row() == 1);
176 int nrow = m.num_row();
177 int ncol = m.num_col();
178 for (
int i=1;
i <= nrow;
i++)
179 for (
int j=1;
j <= ncol;
j++)
197 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 .