#include <qafMatrix.h>
Public Member Functions | |
| Matrix (int _rows, int _columns) | |
| The constructor will allocate a block of memory to store the data. | |
| Matrix (Matrix< T > &orig) | |
| Copy constructor: Copies data from the other matrix. | |
| T & | cell (int row, int column) const |
| Cell access method. | |
| virtual | ~Matrix () |
| Destructor: Deallocates the memory block used to store the matrix's data. | |
Public Attributes | |
| const int | rows |
| Matrix dimensions, initialized in the constructor. | |
| const int | columns |
| qaf::Matrix< T >::Matrix | ( | int | _rows, | |
| int | _columns | |||
| ) | [inline] |
The constructor will allocate a block of memory to store the data.
The Matrix's dimensions cannot be changed after creation.
| T& qaf::Matrix< T >::cell | ( | int | row, | |
| int | column | |||
| ) | const [inline] |
Cell access method.
| std::out_of_range | if either the row or column indices exceed the matrix's dimensions. |
1.5.1-p1