Mercurial > octave-nkf
diff src/ls-mat5.cc @ 10350:12884915a8e4
merge MArray classes & improve Array interface
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 23 Jan 2010 21:41:03 +0100 |
parents | d4d13389c957 |
children | 0e98fb2068fc |
line wrap: on
line diff
--- a/src/ls-mat5.cc Mon Feb 22 23:07:21 2010 -0500 +++ b/src/ls-mat5.cc Sat Jan 23 21:41:03 2010 +0100 @@ -701,7 +701,7 @@ NDArray re; if (imag) { - re = NDArray (dim_vector (nnz)); + re = NDArray (dim_vector (nnz, 1)); data = re.fortran_vec (); } @@ -720,7 +720,7 @@ // imaginary data subelement if (imag) { - NDArray im (dim_vector (static_cast<int> (nnz))); + NDArray im (dim_vector (static_cast<int> (nnz), 1)); if (read_mat5_tag (is, swap, type, len)) {