mat.cpp
// assert matrix doesn't have negative dimensions
assert matrix doesn't have negative dimensions
assert matrix doesn ' t have negative dimensions
void Matrix::assertUsableSize(std::string msg) const
{
    if (maxr < 0 || maxc < 0) {
        if (name.length()==0)
            printf("ERROR(%s): Matrix is of unusable size %d X %d\n", msg.c_str(), maxr, maxc);
        else
            printf("ERROR(%s): Matrix \"%s\" is of unusable size %d X %d\n",
                   msg.c_str(), name.c_str(), maxr, maxc);
        exit(1);
    }
}
void Matrix :: assertUsableSize ( std :: string msg ) const { if ( maxr < 0 || maxc < 0 ) { if ( name . length ( ) == 0 ) printf ( " \n " , msg . c_str ( ) , maxr , maxc ) ; else printf ( " \" \" \n " , msg . c_str ( ) , name . c_str ( ) , maxr , maxc ) ; exit ( 1 ) ; } }
assert matrix doesn't have negative dimensions
assert matrix doesn ' t have negative dimensions