The ostream operator << and the istream operator >> are overloaded for each matrix class, but those use an internal format that is mainly intended for file writing and reading operations. In order to display a matrix in user readable form on the screen, each matrix class has a member method display() with the following paramters
void matrix.display(std::ostream &out, int precision=0, int width=0, int screenwidth=0) const
- out refers to the ostream on which the matrix should be displayed.
- precision is the usual precision defined for floats/double in ostream classes (parameter values <=0 default to 4).
- width is the usual field width defined in ostream classes (parameter values <=0 default to precision+6).
- screenwidth gives the maximum number of ASCII-columns pert output row (parameter values <=0 default to 80).