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

Public Types | |
| enum | iters { } |
Public Methods | |
| Matrix () | |
| Matrix (int rows, int cols) | |
| Matrix (const Matrix &o) | |
| ~Matrix () | |
| void | make (int rs, int cs) |
| void | load (const String &filename) |
| void | load (FILE *in) |
| void | save (FILE *out) const |
| const Matrix& | transpose () |
| const Matrix& | multiplyToSum (double s) |
| double | sum () const |
| void | splitVertical (Matrix &a, Matrix &b, int column) const |
| void | splitHorizontal (Matrix &a, Matrix &b, int column) const |
| Matrix | sub (int row0, int row1, int col0, int col1) const |
| void | insertColumn (int cols) |
| void | joinVertical (const Matrix &a, const Matrix &b) |
| void | joinHorizontal (const Matrix &a, const Matrix &b) |
| const Matrix& | operator= (double x) |
| const Matrix& | operator+= (const Matrix &other) |
| const Matrix& | operator+ (const Matrix &other) const |
| const Matrix& | operator+= (double k) |
| const Matrix& | operator+ (double k) const |
| const Matrix& | operator *= (const Matrix &other) |
| const Matrix& | operator * (const Matrix &other) const |
| const Matrix& | operator *= (double k) |
| const Matrix& | operator * (double k) const |
| const Matrix& | operator/ (double k) const |
| const Matrix& | operator/= (double k) |
| void | operator>> (OStream &out) const |
| const Matrix& | operator= (const Matrix &other) |
Definition at line 23 of file mmatrix.h.
|
|
Load matrix from stream. Columns are whitespace-separated, rows newline-separated. |
|
|
Load matrix from file. Columns are whitespace-separated, rows newline-separated. |
|
|
Creates or recreates the Table with the given dimensions. If the Table has any old contents, they are destroyed.
Reimplemented from PackTable. |
|
|
Ordinary free-formatted printout.
Reimplemented from Object. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001