PIGALE 1.3.9 Documentation (original) (raw)
P.I.G.A.L.E.
1.3.9
Public Implementation of a Graph Algorithm
Library and Editor
H. de Fraysseix P. Ossona de Mendez
RectangularMatrix Class Template Reference
Detailed Description
template
class RectangularMatrix< T >
Rectangular matrix.
Public Member Functions
- RectangularMatrix (int nr, int nc)
- void clear ()
- void resize (int nr, int nc)
- T & operator() (int i, int j)
- const T & operator() (int i, int j) const
Private Member Functions
- int Index (int i, int j)
Private Attributes
Constructor & Destructor Documentation
Constructor.
Parameters:
| nr | Number of rows |
|---|---|
| nc | Number of columns |
Member Function Documentation
| int Index | ( | int | i, |
|---|---|---|---|
| int | j | ||
| ) | [inline, private] |
Clears the matrix entries.
| void resize | ( | int | nr, |
|---|---|---|---|
| int | nc | ||
| ) | [inline] |
| T& operator() | ( | int | i, |
|---|---|---|---|
| int | j | ||
| ) | [inline] |
Returns a reference to an element.
| const T& operator() | ( | int | i, |
|---|---|---|---|
| int | j | ||
| ) | const [inline] |
Returns a constant reference to an element.
