assign3/mat.cpp
// helper function that compares two rows and does not assertions
helper function that compares two rows and does not assertions
helper function that compares two rows and does not assertions
bool Matrix::lessRows(int i, int j) const
{
    for (int c=0; c<maxc; c++) {
        if (m[i][c] > m[j][c]) return false;
        if (m[i][c] < m[j][c]) return true;
    }
    return false;
}
bool Matrix :: lessRows ( int i , int j ) const { for ( int c = 0 ; c < maxc ; c ++ ) { if ( m [ i ] [ c ] > m [ j ] [ c ] ) return false ; if ( m [ i ] [ c ] < m [ j ] [ c ] ) return true ; } return false ; }
helper function that compares two rows and does not assertions
helper function that compares two rows and does not assertions
//    assertDefined("lessRows");