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 77 of file dsymatrix-io.hpp.

References i(), and dsymatrix::n.

78 {CPPL_VERBOSE_REPORT;
79  for(CPPL_INT i=0; i<mat.n; i++){
80  for(CPPL_INT j=0; j<=i; j++){
81  s << " " << mat(i,j) << " ";
82  }
83  for(CPPL_INT j=i+1; j<mat.n; j++){
84  s << "{" << mat(i,j) << "}";
85  }
86  s << std::endl;
87  }
88  return s;
89 }
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: dsymatrix.hpp:10