Mercurial > octave-nkf
diff liboctave/sparse-dmsolve.cc @ 11574:a83bad07f7e3
attempt better backward compatibility for Array resize functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 00:12:05 -0500 |
parents | 57632dea2446 |
children | 12df7854fa7c |
line wrap: on
line diff
--- a/liboctave/sparse-dmsolve.cc Wed Jan 19 20:29:11 2011 -0800 +++ b/liboctave/sparse-dmsolve.cc Thu Jan 20 00:12:05 2011 -0500 @@ -279,7 +279,7 @@ octave_idx_type b_nr = b.rows (); octave_idx_type b_nc = b.cols (); const T *Bx = b.fortran_vec(); - a.resize(b_nr, b_nc); + a.resize (dim_vector (b_nr, b_nc)); RT *Btx = a.fortran_vec(); for (octave_idx_type j = 0; j < b_nc; j++) {