From bug-octave-request at che dot utexas dot edu Sat Oct 30 01:37:10 1993 Subject: DiagMatrix column extraction bug From: Sangjoon Kim To: bug-octave at che dot utexas dot edu Date: Sat, 30 Oct 93 2:35:05 EDT The following program does not produce what's expected. I haven't checked the row(i) function, but that may suffer from the same problem? Regards, Sangjoon ---------- #include #include main() { vector a(3); a(0) = 1; a(1) = 2; a(2) = 3; DiagMatrix ee(a); cout << ee << endl; for (int i=0; i<3; i++) cout << ee.column(i) << endl; return 0; } I get: 100 020 003 0 0 0 0 0 0 0 0 0