Go to the source code of this file.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const zgsmatrix & |
mat |
|
) |
| |
|
inline |
Definition at line 200 of file zgsmatrix-io.hpp.
References zgsmatrix::data, i(), zgsmatrix::m, zgsmatrix::n, and zgsmatrix::rows.
201 {CPPL_VERBOSE_REPORT;
202 for(CPPL_INT
i=0;
i<mat.
m;
i++){
203 const std::vector<CPPL_INT>::const_iterator mat_rows_i_end =mat.
rows[
i].end();
204 for(CPPL_INT j=0; j<mat.
n; j++){
205 std::vector<CPPL_INT>::const_iterator q;
206 for(q=mat.
rows[
i].begin(); q!=mat_rows_i_end; q++){
207 if(mat.
data[*q].j==j){
break; }
209 if(q!=mat_rows_i_end){ s <<
" " << mat.
data[*q].v; }
_dgematrix i(const _dgbmatrix &mat)
std::vector< std::vector< CPPL_INT > > rows
array of vector to store the entry information of component for each row
std::vector< zcomponent > data
matrix data
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size