changeset 4871:9c89c1408c32

[project @ 2004-04-21 19:05:28 by jwe]
author jwe
date Wed, 21 Apr 2004 19:05:28 +0000
parents 2cbc6f37b0c2
children fe71c458f438
files liboctave/ChangeLog liboctave/mx-inlines.cc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Wed Apr 21 17:30:52 2004 +0000
+++ b/liboctave/ChangeLog	Wed Apr 21 19:05:28 2004 +0000
@@ -1,3 +1,7 @@
+2004-04-21  John W. Eaton  <jwe@octave.org>
+
+	* mx-inlines.cc (MX_ND_REDUCTION): Chop trailing singletons.
+
 2004-04-06  David Bateman  <dbateman@free.fr>
 
 	* Array.cc (Array<T>::resize_no_fill (const dim_vector& dv),
--- a/liboctave/mx-inlines.cc	Wed Apr 21 17:30:52 2004 +0000
+++ b/liboctave/mx-inlines.cc	Wed Apr 21 19:05:28 2004 +0000
@@ -482,6 +482,8 @@
       increment_index (iter_idx, dv); \
     } \
  \
+  retval.chop_trailing_singletons (); \
+ \
   return retval
 
 #define MX_ND_REAL_OP_REDUCTION(ASN_EXPR, INIT_VAL) \