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

Go to the source code of this file.

Functions

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

Function Documentation

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

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

References _dgematrix::destroy(), i(), _dgematrix::m, and _dgematrix::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 }
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT m
matrix row size
Definition: _dgematrix.hpp:9
CPPL_INT n
matrix column size
Definition: _dgematrix.hpp:10
void destroy() const