CPPLapack
 All Classes Files Functions Variables Friends
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 23 of file _zgbmatrix-io.hpp.

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

{VERBOSE_REPORT;
  for(long i=0; i<mat.m; i++){
    for(long j=0; j<mat.n; j++){
      if( i-j>mat.kl || j-i>mat.ku ){ s << " x"; }
      else{ s << " " << mat(i,j); }
    }
    s << std::endl;
  }
  
  mat.destroy();
  return s;
}
 All Classes Files Functions Variables Friends