Go to the source code of this file.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const _zgsmatrix & |
mat |
|
) |
| |
|
inline |
Definition at line 29 of file _zgsmatrix-io.hpp.
References _zgsmatrix::data, _zgsmatrix::destroy(), i(), _zgsmatrix::m, _zgsmatrix::n, and _zgsmatrix::rows.
31 for(CPPL_INT
i=0;
i<mat.
m;
i++){
32 for(CPPL_INT j=0; j<mat.
n; j++){
33 std::vector<CPPL_INT>::iterator q;
34 const std::vector<CPPL_INT>::iterator mat_rows_i_end =mat.
rows[
i].end();
35 for(q=mat.
rows[
i].begin(); q!=mat_rows_i_end; q++){
36 if( mat.
data[*q].j==j ){
break; }
38 if(q!=mat_rows_i_end){ s <<
" " << mat.
data[*q].v; }
std::vector< std::vector< CPPL_INT > > rows
array of vector to store the entry information of component for each row
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
CPPL_INT m
matrix row size
std::vector< zcomponent > data
matrix data