[project @ 2006-08-26 03:02:39 by jwe]
author |
jwe |
date |
Sat, 26 Aug 2006 03:02:39 +0000 |
parents |
9cc8149f81b0 |
children |
3cbefe88edc6 |
files |
liboctave/ChangeLog liboctave/mx-inlines.cc |
diffstat |
2 files changed, 10 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-25 John W. Eaton <jwe@octave.org>
+
+ * mx-inlines.cc (MX_ND_REDUCTION): Special case for 0x0 arrays.
+
2006-08-23 John W. Eaton <jwe@octave.org>
* dMatrix.cc, dMatrix.h (Matrix::save_ascii): Delete function and decl.
--- a/liboctave/mx-inlines.cc
+++ b/liboctave/mx-inlines.cc
@@ -383,6 +383,12 @@
} \
} \
\
+ if (nd == 2 && dv(0) == 0 && dv(1) == 0) \
+ { \
+ retval.resize (dim_vector (1, 1), INIT_VAL); \
+ return retval; \
+ } \
+ \
/* We need to find first non-singleton dim. */ \
\
if (dim == -1) \