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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 28 of file _dsymatrix-io.hpp.

References _dsymatrix::destroy(), i(), and _dsymatrix::n.

29 {CPPL_VERBOSE_REPORT;
30  for(CPPL_INT i=0; i<mat.n; i++){
31  for(CPPL_INT j=0; j<mat.n; j++){
32  if( i >= j ){
33  s << " " << mat(i,j) << " ";
34  } else {
35  s << "{" << mat(i,j) << "} ";
36  }
37  }
38  s << std::endl;
39  }
40 
41  mat.destroy();
42  return s;
43 }
void destroy() const
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: _dsymatrix.hpp:11