To print a matrix use an expression like
Matrix A; ...... cout << setw(10) << setprecision(5) << A;This will work only with systems that support the AT&T input/output routines including manipulators. You need to #include the file newmatio.h.
The present version of this routine is useful only for matrices small enough to fit within a page or screen width.
To print several vectors or matrices in columns use a concatenation operator:
Matrix A, B; ..... cout << setw(10) << setprecision(5) << (A | B);