Mercurial > hg > octave-lojdl
changeset 12067:310063a87407 release-3-2-x
zero matrix assignment fix
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sun, 23 Aug 2009 11:12:35 +0200 |
parents | 634697062fe1 |
children | 6624d0ac6a52 |
files | liboctave/Array-util.cc liboctave/ChangeLog |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array-util.cc +++ b/liboctave/Array-util.cc @@ -455,6 +455,12 @@ rdv(0) = rhdv(0); rdv(1) = rhdv(1); } + else if (rhdv.length () == 2 + && ! i.is_scalar () && ! j.is_scalar ()) + { + rdv(0) = icol ? rhdv(0) : i.extent (0); + rdv(1) = jcol ? rhdv(1) : j.extent (0); + } else { dim_vector rhdv0 = rhdv;