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. |
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.