changeset 3795:a982fe0256f1

[project @ 2001-02-10 05:19:33 by jwe]
author jwe
date Sat, 10 Feb 2001 05:19:33 +0000
parents e42e28db4dda
children c34164f566f6
files liboctave/ChangeLog src/ChangeLog src/data.cc
diffstat 3 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Sat Feb 10 05:15:42 2001 +0000
+++ b/liboctave/ChangeLog	Sat Feb 10 05:19:33 2001 +0000
@@ -125,7 +125,7 @@
 
 2000-10-12  Cai Jianming <caijianming@yahoo.co.uk>
 
-	dMatrix.cc (Matrix::cumprod (int) const): New arg, DIM.
+	* dMatrix.cc (Matrix::cumprod (int) const): New arg, DIM.
 	(Matrix::cumsum (int) const): Likewise.
 	(Matrix::prod (int) const): Likewise.
 	(Matrix::sum (int) const): Likewise.
--- a/src/ChangeLog	Sat Feb 10 05:15:42 2001 +0000
+++ b/src/ChangeLog	Sat Feb 10 05:19:33 2001 +0000
@@ -1,3 +1,7 @@
+2001-02-09  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x).
+
 2001-02-06  Mumit Khan  <khan@nanotech.wisc.edu>
 
 	* oct-stream.cc (octave_scan): Partially implement and specialize
--- a/src/data.cc	Sat Feb 10 05:15:42 2001 +0000
+++ b/src/data.cc	Sat Feb 10 05:19:33 2001 +0000
@@ -263,6 +263,9 @@
  \
       int dim = (nargin == 1 ? 0 : args(1).int_value (true) - 1); \
  \
+      if (dim == -1) \
+        dim = 0; \
+ \
       if (! error_state) \
 	{ \
 	  if (dim == 0 || dim == 1) \