|
Public Member Functions |
| | Matrix (unsigned int Rows, unsigned int Cols) |
| | Empty Constructor.
|
| | Matrix (Z *elements,unsigned int Rows, unsigned int Cols) |
| | Initilizing constructor.
|
|
| Matrix (const Matrix &A) |
| | Assignment Constructor.
|
|
Matrix & | operator= (const Matrix &C) |
| | Copy Constructor.
|
|
Z & | operator() (unsigned int i, unsigned int j) |
| | Elementwise Access.
|
| Matrix & | operator+= (const Matrix &M) |
| | In place addition.
|
|
Matrix & | operator-= (const Matrix &M) |
| | In place subtraction (see above).
|
|
Matrix & | operator *= (Matrix M) |
| | In place multiplication.
|
|
template<typename S> Matrix & | operator *= (const S &s) |
| | In place scalar multiplication.
|
|
void | dump (const char *filename) |
| | Dump matrix to filename.
|
|
void | read (const char *filename) |
| | Read matrix from file created by dump(const char*).
|
Public Attributes |
|
Z * | A |
| | Pointer to the matrix elements.
|
|
unsigned int | M |
| | Number of Rows.
|
|
unsigned int | N |
| | Number of Columns.
|
Friends |
|
std::ostream & | operator<< (std::ostream &, const Matrix &) |
| | Output operator.
|