Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &s, const _zgsmatrix &mat) |
std::ostream& operator<< | ( | std::ostream & | s, |
const _zgsmatrix & | mat | ||
) | [inline] |
Definition at line 28 of file _zgsmatrix-io.hpp.
References _zgsmatrix::data, _zgsmatrix::destroy(), i(), _zgsmatrix::m, _zgsmatrix::n, and _zgsmatrix::rows.
{VERBOSE_REPORT; for(long i=0; i<mat.m; i++){ for(long j=0; j<mat.n; j++){ std::vector<uint32_t>::iterator q; for(q=mat.rows[i].begin(); q!=mat.rows[i].end(); q++){ if( long(mat.data[*q].j)==j ){ break; } } if(q!=mat.rows[i].end()){ s << " " << mat.data[*q].v; } else{ s << " x"; } } s << std::endl; } mat.destroy(); return s; }