|
MaMiCo 1.2
|
#include <Matrix.h>
Public Member Functions | |
| Matrix () | |
| Two constructors, a default one and a constructor, which initializes all elemnet of the matrix with entry t. | |
| Matrix (const T &t) | |
| T & | operator() (int i, int j) |
| operator(i, j) gives back the the element (i, j) | |
| const T & | operator() (int i, int j) const |
Private Attributes | |
| T | _entries [rows][cols] |
used to define 2-D matrices of arbitrary types.
| rows | defines the number f rows |
| cols | defines the number f columns |
| T | data type |
|
inline |
Two constructors, a default one and a constructor, which initializes all elemnet of the matrix with entry t.
| t | the initial value for all elemnts of the matrix. |
|
inline |
operator(i, j) gives back the the element (i, j)
| i | row index |
| j | column index |