Mercurial > hg > octave-nkf
diff src/ov-base-mat.h @ 4676:c0aa75a64635
[project @ 2003-12-16 16:47:52 by jwe]
author | jwe |
---|---|
date | Tue, 16 Dec 2003 16:47:52 +0000 |
parents | 12b6fbd57436 |
children | 35bfb4e0b96b |
line wrap: on
line diff
--- a/src/ov-base-mat.h +++ b/src/ov-base-mat.h @@ -56,7 +56,11 @@ : octave_base_value () { } octave_base_matrix (const MT& m) - : octave_base_value (), matrix (m) { } + : octave_base_value (), matrix (m) + { + if (matrix.ndims () == 0) + matrix.resize (dim_vector (0, 0)); + } octave_base_matrix (const octave_base_matrix& m) : octave_base_value (), matrix (m.matrix) { }