CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
zgbmatrix-io.hpp File Reference

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const zgbmatrix &mat)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const zgbmatrix mat 
)
inline

Definition at line 63 of file zgbmatrix-io.hpp.

References i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.

64 {CPPL_VERBOSE_REPORT;
65  for(CPPL_INT i=0; i<mat.m; i++){
66  for(CPPL_INT j=0; j<mat.n; j++){
67  if( i-j>mat.kl || j-i>mat.ku ){ s << " x"; }
68  else{ s << " " << mat(i,j); }
69  }
70  s << std::endl;
71  }
72 
73  return s;
74 }
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: zgbmatrix.hpp:10
CPPL_INT ku
upper band width
Definition: zgbmatrix.hpp:12
CPPL_INT m
matrix row size
Definition: zgbmatrix.hpp:9
CPPL_INT kl
lower band width
Definition: zgbmatrix.hpp:11