diff liboctave/boolNDArray.cc @ 7113:a018c140f8aa

[project @ 2007-11-07 00:28:01 by dbateman]
author dbateman
date Wed, 07 Nov 2007 00:28:01 +0000
parents a1dbe9d80eee
children 36594d5bbe13
line wrap: on
line diff
--- a/liboctave/boolNDArray.cc	Wed Nov 07 00:24:12 2007 +0000
+++ b/liboctave/boolNDArray.cc	Wed Nov 07 00:28:01 2007 +0000
@@ -57,6 +57,12 @@
   MX_ND_ANY_ALL_REDUCTION (MX_ND_ANY_EVAL (MX_ND_ANY_EXPR), false);
 }
 
+boolNDArray 
+boolNDArray::sum (int dim) const
+{
+  MX_ND_REDUCTION (retval(result_idx) |= elem (iter_idx), true, boolNDArray);
+}
+
 boolNDArray
 boolNDArray::concat (const boolNDArray& rb, const Array<octave_idx_type>& ra_idx)
 {