|
Public Member Functions |
| | Matrix () |
| | Null constructor.
|
| | Matrix (const label n, const label m) |
| | Construct given number of rows and columns.
|
| | Matrix (const label n, const label m, const T &) |
| | Construct with given number of rows and columns.
|
| | Matrix (const Matrix< T > &) |
| | Copy constructor.
|
| | Matrix (Istream &) |
| | Construct from Istream.
|
| autoPtr< Matrix< T > > | clone () const |
| | Clone.
|
| | ~Matrix () |
| label | n () const |
| | Return the number of rows.
|
| label | m () const |
| | Return the number of columns.
|
| label | size () const |
| | Return the number of columns.
|
| void | checki (const label i) const |
| | Check index i is within valid range (0 ... n-1).
|
| void | checkj (const label j) const |
| | Check index j is within valid range (0 ... m-1).
|
| void | clear () |
| | Clear the Matrix, i.e. set sizes to zero.
|
| void | transfer (Matrix< T > &) |
| | Transfer the contents of the argument Matrix into this Matrix.
|
| T * | operator[] (const label) |
| | Return subscript-checked element of Matrix.
|
| const T * | operator[] (const label) const |
| | Return subscript-checked element of constant Matrix.
|
| void | operator= (const Matrix< T > &) |
| | Assignment operator. Takes linear time.
|
| void | operator= (const T &) |
| | Assignment of all entries to the given value.
|
Static Public Member Functions |
| static Matrix< T > & | null () |
| | Return a null Matrix.
|
Friends |
| const T & | max (const Matrix< T > &) |
| const T & | min (const Matrix< T > &) |
| Matrix< T > | operator- (const Matrix< T > &) |
| Matrix< T > | operator+ (const Matrix< T > &, const Matrix< T > &) |
| Matrix< T > | operator- (const Matrix< T > &, const Matrix< T > &) |
| Matrix< T > | operator * (const scalar, const Matrix< T > &) |
| Istream & | operator>> (Istream &, Matrix< T > &) |
| | Read Matrix from Istream, discarding contents of existing Matrix.
|
| Ostream & | operator (Ostream &, const Matrix< T > &) |