Changeset 2748
 Timestamp:
 Jun 18, 2012, 7:33:22 AM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/utility/Matrix.cc
r2735 r2748 543 543 std::streamsize precision = s.precision(); 544 544 s.precision(std::numeric_limits<double>().digits10); 545 for(size_t i=0, j=0; i<m.rows(); i++) 546 for (j=0; j<m.columns(); j++) { 547 s << m(i,j); 548 if (j<m.columns()1) 549 s << s.fill(); 550 else if (i<m.rows()1) 551 s << "\n"; 552 } 545 for(size_t i=0, j=0; i<m.rows(); i++) { 546 s << m(i,0); 547 for (j=1; j<m.columns(); ++j) 548 s << s.fill() << m(i,j); 549 if (i<m.rows()1) 550 s << "\n"; 551 } 553 552 s.precision(precision); 554 553 return s;
Note: See TracChangeset
for help on using the changeset viewer.