diff liboctave/intNDArray.h @ 9607:1be3c73ed7b5

reuse temporary arrays in nested expressions
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 03 Sep 2009 08:48:51 +0200
parents 9f870f73ab7d
children 192d94cff6c1
line wrap: on
line diff
--- a/liboctave/intNDArray.h
+++ b/liboctave/intNDArray.h
@@ -68,6 +68,12 @@
 
   intNDArray diag (octave_idx_type k = 0) const;
 
+  intNDArray& changesign (void) 
+    { 
+      MArrayN<T>::changesign (); 
+      return *this; 
+    }
+
   // FIXME -- this is not quite the right thing.
 
   boolNDArray all (int dim = -1) const;