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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 23 of file _zgematrix-io.hpp.

References _zgematrix::destroy(), i(), _zgematrix::m, and _zgematrix::n.

24 {CPPL_VERBOSE_REPORT;
25  for(CPPL_INT i=0; i<mat.m; i++){
26  for(CPPL_INT j=0; j<mat.n; j++){
27  s << " " << mat(i,j);
28  }
29  s << std::endl;
30  }
31 
32  mat.destroy();
33  return s;
34 }
CPPL_INT m
matrix row size
Definition: _zgematrix.hpp:9
_dgematrix i(const _dgbmatrix &mat)
void destroy() const
CPPL_INT n
matrix column size
Definition: _zgematrix.hpp:10