template<class F>
ostream& operator<< ostream &  os,
const NumMat< F > &  mat
[inline]
 

Provides a way for streaming out contents of a matrix mat

Definition at line 114 of file nummat.hpp.

00115 {
00116   os<<mat.m()<<" "<<mat.n()<<endl;
00117   os.setf(ios_base::scientific, ios_base::floatfield);
00118   for(int i=0; i<mat.m(); i++) {
00119          for(int j=0; j<mat.n(); j++)
00120                 os<<" "<<mat(i,j);
00121          os<<endl;
00122   }
00123   return os;
00124 }


Generated on Sun Dec 4 18:13:13 2005 for common by  doxygen 1.4.5