Bug #972

Matrix print method does not work consistently

Added by C. Emmerich about 12 years ago. Updated about 12 years ago.

Status:ResolvedStart date:03/27/2012
Priority:NormalDue date:
Assignee:M. Rolf% Done:

100%

Category:-
Target version:NemoMath 0.4

Description

Following code snippet

    ofstream file;
    RealMatrix m1(dim(5, 5), 0.0);
    file.open("/tmp/m1.txt");
    file << m1;
    file.close();

    RealMatrix m2(dim(5, 3), 0.0);
    file.open("/tmp/m2.txt");
    file << m2;
    file.close();

leads to files:

m1.txt

[0,    0,    0,    0,    0;
 0,    0,    0,    0,    0;
 0,    0,    0,    0,    0;
 0,    0,    0,    0,    0;
 0,    0,    0,    0,    0]

m2.txt

[0,    0,    0;
 0,    0,    0;
 0,    0,    0]
 0,    0,    0]
 0,    0,    0]

History

#1 Updated by M. Rolf about 12 years ago

  • Status changed from New to Resolved
  • Assignee set to M. Rolf
  • Target version set to NemoMath 0.4
  • % Done changed from 0 to 100

Also available in: Atom PDF