CPPLapack
 All Classes Files Functions Variables Friends Pages
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.

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