src/GamIO/MatLabFile.cc
/* These functions are just used for testing purposes.  The mirror the binary
   write functions, but instead of writing in binary to a filestream the write
   in ASCII to an output stream.  Thus it is easy to see most of what is
   being written, at least in principle.....  The function overload using
   class matrix should also suffice for GAMMA row_vector and col_vector.     */
These functions are just used for testing purposes.  The mirror the binary
write functions, but instead of writing in binary to a filestream the write
in ASCII to an output stream.  Thus it is easy to see most of what is
being written, at least in principle.....  The function overload using
class matrix should also suffice for GAMMA row_vector and col_vector.
These functions are just used for testing purposes . The mirror the binary write functions but instead of writing in binary to a filestream the write in ASCII to an output stream . Thus it is easy to see most of what is being written at least in principle ..... The function overload using class matrix should also suffice for GAMMA row_vector and col_vector .
void MatLabFile::print(std::ostream& ostr,
                           const matrix& mx, const std::string& N, int cmplx) const 
  {
  if(MATVerOut == 5)
    {
    ML5Hdr.print(ostr);				
    MatLab5DE DE(mx,N,cmplx);			
    DE.print(ostr);				
    }
  else
    {
    MatLab4DE DE(N,mx,cmplx);			
    DE.print(ostr);				
    }
  }
void MatLabFile :: print ( std :: ostream & ostr , const matrix & mx , const std :: string & N , int cmplx ) const { if ( MATVerOut == 5 ) { ML5Hdr . print ( ostr ) ; MatLab5DE DE ( mx , N , cmplx ) ; DE . print ( ostr ) ; } else { MatLab4DE DE ( N , mx , cmplx ) ; DE . print ( ostr ) ; } }
These functions are just used for testing purposes.
These functions are just used for testing purposes .
// Output main header // Construct mx data element // Output the data element  // Output main header // Output the data element 