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 188 of file zgsmatrix-io.hpp.
References zgsmatrix::data, 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>::const_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; } return s; }