Menu

Commit [r87]  Maximize  Restore  History

*dgsmatrix::operator<< was modified.

yonishi 2007-09-04

changed /trunk/include/_dgsmatrix-/_dgsmatrix-io.hpp
changed /trunk/include/dgsmatrix-/dgsmatrix-io.hpp
/trunk/include/_dgsmatrix-/_dgsmatrix-io.hpp Diff Switch to side-by-side view
--- a/trunk/include/_dgsmatrix-/_dgsmatrix-io.hpp
+++ b/trunk/include/_dgsmatrix-/_dgsmatrix-io.hpp
@@ -44,8 +44,8 @@
       for(q=mat.Rows[i].begin(); q!=mat.Rows[i].end(); q++){
         if(q->first==j){ break; }
       }
-      if(q!=mat.Rows[i].end()){ s << mat.Array[q->second] << " "; }
-      else{ s << "x "; }
+      if(q!=mat.Rows[i].end()){ s << " " << mat.Array[q->second]; }
+      else{ s << " x"; }
     }
     s << std::endl;
   }
/trunk/include/dgsmatrix-/dgsmatrix-io.hpp Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.