assign5/mat.cpp
// write out just the matrix data in a form that can be read back in
write out just the matrix data in a form that can be read back in
write out just the matrix data in a form that can be read back in
void Matrix::write()
{
    assertDefined("write");
    printf("%d %d\n", maxr, maxc);
    for (int r=0; r<maxr; r++) {
        for (int c=0; c<maxc; c++) {
            printf("%lg ", m[r][c]);
        }
        printf("\n");
    }
}
void Matrix :: write ( ) { assertDefined ( " " ) ; printf ( " \n " , maxr , maxc ) ; for ( int r = 0 ; r < maxr ; r ++ ) { for ( int c = 0 ; c < maxc ; c ++ ) { printf ( " " , m [ r ] [ c ] ) ; } printf ( " \n " ) ; } }
write out just the matrix data in a form that can be read back in
write out just the matrix data in a form that can be read back in