assign5/mat.cpp
// print the whole matrix including it's name and size
print the whole matrix including it's name and size
print the whole matrix including it ' s name and size
void Matrix::print(std::string msg) const
{
    assertDefined("print");
    printSize(msg);
    for (int r=0; r<maxr; r++) {
        for (int c=0; c<maxc; c++) {
            printf("%10.5lf ", m[r][c]);
        }
        printf("\n");
    }
    fflush(stdout);
}
void Matrix :: print ( std :: string msg ) const { assertDefined ( " " ) ; printSize ( msg ) ; for ( int r = 0 ; r < maxr ; r ++ ) { for ( int c = 0 ; c < maxc ; c ++ ) { printf ( " " , m [ r ] [ c ] ) ; } printf ( " \n " ) ; } fflush ( stdout ) ; }
print the whole matrix including it's name and size
print the whole matrix including it ' s name and size
//            printf("%7.3lg ", m[r][c]);