diff liboctave/Sparse-op-defs.h @ 7350:288614c6634d

[project @ 2008-01-07 16:50:34 by jwe]
author jwe
date Mon, 07 Jan 2008 16:51:31 +0000
parents 4571f691b0ce
children 1a446f28ce68
line wrap: on
line diff
--- a/liboctave/Sparse-op-defs.h	Mon Jan 07 14:40:24 2008 +0000
+++ b/liboctave/Sparse-op-defs.h	Mon Jan 07 16:51:31 2008 +0000
@@ -1694,12 +1694,13 @@
 			SPARSE_REDUCTION_OP_COL_EXPR (OP), \
 			INIT_VAL, MT_RESULT)
 
+
+// Don't break from this loop if the test succeeds because
+// we are looping over the rows and not the columns in the inner
+// loop.
 #define SPARSE_ANY_ALL_OP_ROW_CODE(TEST_OP, TEST_TRUE_VAL) \
   if (data (i) TEST_OP 0.0) \
-    { \
-      tmp[ridx(i)] = TEST_TRUE_VAL; \
-      break; \
-    }
+    tmp[ridx(i)] = TEST_TRUE_VAL; \
 
 #define SPARSE_ANY_ALL_OP_COL_CODE(TEST_OP, TEST_TRUE_VAL) \
   if (data (i) TEST_OP 0.0) \