Classes | |
| class | matrix |
| Representation of a two-dimensional matrix. More... | |
Functions | |
| matrix | operator+ (double scalar, const matrix &m) |
| Generates a matrix by adding a scalar constant to each element of another matrix. | |
| matrix | operator* (double scalar, const matrix &m) |
| Generates a matrix by multiplying each element of another matrix by a scalar constant. | |
| std::ostream & | operator<< (std::ostream &out, const matrix &m) |
| Outputs the contents of a matrix in tabular form. | |
| std::istream & | operator>> (std::istream &in, matrix &m) |
| Reconfigures the matrix to match data read from a stream. | |
To use these classes from another problem, in addition to using the syntax
#include "matrix.h"
one should also use the command
using namespace csci146;
or else you must explicitly designate all uses of classes such as
csci146::matrix m;
| matrix csci146::operator* | ( | double | scalar, | |
| const matrix & | m | |||
| ) |
| matrix csci146::operator+ | ( | double | scalar, | |
| const matrix & | m | |||
| ) |
| std::ostream& csci146::operator<< | ( | std::ostream & | out, | |
| const matrix & | m | |||
| ) |
Outputs the contents of a matrix in tabular form.
| std::istream& csci146::operator>> | ( | std::istream & | in, | |
| matrix & | m | |||
| ) |
Reconfigures the matrix to match data read from a stream.
The input must have the same number of columns per line and must be terminated with a blank line.
1.5.6