#include <Matrix.h>
Inheritance diagram for Util::Matrix:

Public Methods | |
| Matrix (int rows, int cols) | |
| Matrix (int rows, int cols, const element &defElement) | |
| element & | operator() (int row, int col) |
| int | numRows () const |
| int | numCols () const |
Definition at line 31 of file Matrix.h.
|
||||||||||||||||
|
Create a matrix filled rows*cols elements, each with the value given by the default constructor |
|
||||||||||||||||||||
|
Create matrix filled with rows*cols elements, each with value given by defElement |
|
|||||||||
|
|
|
|||||||||
|
Returns the number of columns in matrix. Accessing element at column numColss() results in off by 1 error |
|
|||||||||
|
Returns the number of rows in matrix. Accessing element at row numRows() results in off by 1 error |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Gives access to elements in Matrix, uses 0 based indexing
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001