Go to the source code of this file.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const _dssmatrix & |
mat |
|
) |
| |
|
inline |
Definition at line 31 of file _dssmatrix-io.hpp.
References _dssmatrix::data, _dssmatrix::destroy(), i(), _dssmatrix::line, and _dssmatrix::n.
33 for(CPPL_INT
i=0;
i<mat.
n;
i++){
34 for(CPPL_INT j=0; j<mat.
n; j++){
36 std::vector<CPPL_INT>::iterator q;
37 const std::vector<CPPL_INT>::iterator mat_line_i_end =mat.
line[
i].end();
38 for(q=mat.
line[
i].begin(); q!=mat_line_i_end; q++){
39 if(mat.
data[*q].j==j){
break; }
41 if(q!=mat_line_i_end){ s <<
" " << mat.
data[*q].v <<
" "; }
45 std::vector<CPPL_INT>::iterator q;
46 const std::vector<CPPL_INT>::iterator mat_line_i_end =mat.
line[
i].end();
47 for(q=mat.
line[
i].begin(); q!=mat_line_i_end; q++){
48 if(mat.
data[*q].j==j){
break; }
50 if(q!=mat_line_i_end){ s <<
"{" << mat.
data[*q].v <<
"}"; }
std::vector< dcomponent > data
matrix data
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
std::vector< std::vector< CPPL_INT > > line
vector of vector to store the entry information of component for each row and column ...