Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &s, const dssmatrix &mat) |
std::ostream& operator<< | ( | std::ostream & | s, |
const dssmatrix & | mat | ||
) | [inline] |
Definition at line 210 of file dssmatrix-io.hpp.
References dssmatrix::data, i(), dssmatrix::n, and dssmatrix::number().
{VERBOSE_REPORT; for(long i=0; i<mat.n; i++){ for(long j=0; j<mat.n; j++){ if( i >= j ){ long c =mat.number(i,j); if(c<0){ s << " x "; } else{ s << " " << mat.data[c].v << " "; } } else{//i<j long c =mat.number(i,j); if(c<0){ s << "{x}"; } else{ s << "{" << mat.data[c].v << "}"; } } } s << std::endl; } return s; }