comparison src/pt-mat.cc @ 5144:25b090e1be9f

[project @ 2005-02-15 12:06:05 by jwe]
author jwe
date Tue, 15 Feb 2005 12:06:44 +0000
parents e35b034d3523
children 57077d0ddc8e
comparison
equal deleted inserted replaced
5143:d6e99e773993 5144:25b090e1be9f
601 if (error_state) 601 if (error_state)
602 goto done; 602 goto done;
603 603
604 // Now, extract the values from the individual elements and 604 // Now, extract the values from the individual elements and
605 // insert them in the result matrix. 605 // insert them in the result matrix.
606 Array<int> ra_idx (dv.length (), 0); 606 int dv_len = dv.length ();
607 Array<int> ra_idx (dv_len > 1 ? dv_len : 2, 0);
607 for (tm_const::iterator p = tmp.begin (); p != tmp.end (); p++) 608 for (tm_const::iterator p = tmp.begin (); p != tmp.end (); p++)
608 { 609 {
609 tm_row_const row = *p; 610 tm_row_const row = *p;
610 for (tm_row_const::iterator q = row.begin (); q != row.end (); q++) 611 for (tm_row_const::iterator q = row.begin (); q != row.end (); q++)
611 { 612 {