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 63 of file zgbmatrix-io.hpp.

References 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;
  }
  
  return s;
}
 All Classes Files Functions Variables Friends