assign3/mat.cpp
// helper function that swaps two rows and does not assertions
helper function that swaps two rows and does not assertions
helper function that swaps two rows and does not assertions
void Matrix::swapRows(int i, int j)
{
    for (int c=0; c<maxc; c++) {
        double tmp;
        tmp = m[i][c]; m[i][c] = m[j][c]; m[j][c] = tmp;
    }
}
void Matrix :: swapRows ( int i , int j ) { for ( int c = 0 ; c < maxc ; c ++ ) { double tmp ; tmp = m [ i ] [ c ] ; m [ i ] [ c ] = m [ j ] [ c ] ; m [ j ] [ c ] = tmp ; } }
helper function that swaps two rows and does not assertions
helper function that swaps two rows and does not assertions
//    assertDefined("swapRows");