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

Go to the source code of this file.

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const dgbmatrix mat 
) [inline]

Definition at line 62 of file dgbmatrix-io.hpp.

References i(), dgbmatrix::kl, dgbmatrix::ku, dgbmatrix::m, and dgbmatrix::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