diff liboctave/CNDArray.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 1beb23d2b892
children b29504415a2e
line wrap: on
line diff
--- a/liboctave/CNDArray.h	Thu Sep 03 06:59:53 2009 +0200
+++ b/liboctave/CNDArray.h	Thu Sep 03 08:48:51 2009 +0200
@@ -138,6 +138,12 @@
 
   ComplexNDArray diag (octave_idx_type k = 0) const;
 
+  ComplexNDArray& changesign (void) 
+    { 
+      MArrayN<Complex>::changesign (); 
+      return *this; 
+    }
+
   typedef double (*dmapper) (const Complex&);
   typedef Complex (*cmapper) (const Complex&);
   typedef bool (*bmapper) (const Complex&);