Row-vector class. CLHEP doesn't have a row-vector class, so HitFit uses its own. This is only a simple wrapper around Matrix that tries to constrain the shape to a row vector. It will raise an assertion if you try to assign to it something that isn't a row vector. More...
#include <matutil.h>
Public Member Functions | |
const double & | operator() (int col) const |
Direct element access, indexing starts from 1. More... | |
double & | operator() (int col) |
Direct element access, indexing starts from 1. More... | |
const double & | operator() (int row, int col) const |
Direct element access, indexing starts from (1,1). More... | |
double & | operator() (int row, int col) |
Direct element access, indexing starts from (1,1). More... | |
Row_Vector & | operator= (const Matrix &m) |
Assignment operator, will raise an assertion if m doesn't have exactly one row. More... | |
Row_Vector (int cols) | |
Constructor, instantiate an unitialized matrix. More... | |
Row_Vector (int cols, int init) | |
Constructor, instantiate an unitialized matrix, and initialized it to zero. More... | |
Row_Vector (const Matrix &m) | |
Copy constructor, will raise an assertion if m doesn't have exactly one row. More... | |
Row-vector class. CLHEP doesn't have a row-vector class, so HitFit uses its own. This is only a simple wrapper around Matrix that tries to constrain the shape to a row vector. It will raise an assertion if you try to assign to it something that isn't a row vector.
|
explicit |
Constructor, instantiate an unitialized matrix.
cols | The number of columns (the length of the vector). |
Definition at line 45 of file matutil.cc.
|
explicit |
Constructor, instantiate an unitialized matrix, and initialized it to zero.
cols | The number of columns (the length of the vector). |
init | A dummy argument, should always be zero. |
Definition at line 58 of file matutil.cc.
hitfit::Row_Vector::Row_Vector | ( | const Matrix & | m | ) |
Copy constructor, will raise an assertion if m doesn't have exactly one row.
m | The matrix to copy, must have exactly one row. |
Definition at line 72 of file matutil.cc.
const double & hitfit::Row_Vector::operator() | ( | int | col | ) | const |
Direct element access, indexing starts from 1.
col | The column to access. |
Definition at line 87 of file matutil.cc.
double & hitfit::Row_Vector::operator() | ( | int | col | ) |
Direct element access, indexing starts from 1.
col | The column to access. |
Definition at line 102 of file matutil.cc.
const double & hitfit::Row_Vector::operator() | ( | int | row, |
int | col | ||
) | const |
Direct element access, indexing starts from (1,1).
row | The row to access. |
col | The column to access. |
Definition at line 117 of file matutil.cc.
double & hitfit::Row_Vector::operator() | ( | int | row, |
int | col | ||
) |
Direct element access, indexing starts from (1,1).
row | The row to access. |
col | The column to access. |
Definition at line 133 of file matutil.cc.
Row_Vector & hitfit::Row_Vector::operator= | ( | const Matrix & | m | ) |
Assignment operator, will raise an assertion if m doesn't have exactly one row.
m | The matrix to copy, must have exactly one row. |
Definition at line 149 of file matutil.cc.
References m.