assign3/mat.cpp
// remove trailing rows without actually giving up the space.
// The argument give is the new number of rows in the matrix.
// DANGER: this trims rows.   Not a memory leak but old row length
// not "visibibly" saved.
remove trailing rows without actually giving up the space.
The argument give is the new number of rows in the matrix.
DANGER: this trims rows.   Not a memory leak but old row length
not "visibibly" saved.
remove trailing rows without actually giving up the space . The argument give is the new number of rows in the matrix . DANGER : this trims rows . Not a memory leak but old row length not " visibibly " saved .
void Matrix::shorten(int newr)
{
    checkBounds(newr-1, 0, "shorten");   
    maxr = newr;
}
void Matrix :: shorten ( int newr ) { checkBounds ( newr - 1 , 0 , " " ) ; maxr = newr ; }
remove trailing rows without actually giving up the space.
remove trailing rows without actually giving up the space .
// allow newr to equal maxr