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

{VERBOSE_REPORT;
  for(long i=0; i<mat.n; i++){
    for(long j=0; j<mat.n; j++){
      if( i >= j ){
        s << " " << mat(i,j) << "  ";
      } else {
        s << "{" << mat(i,j) << "} ";
      }
    }
    s << std::endl;
  }
  
  mat.destroy();
  return s;
}
 All Classes Files Functions Variables Friends