diff src/ov-intx.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 a04352386a6b
children e793865ede63
line wrap: on
line diff
--- a/src/ov-intx.h	Thu Sep 03 06:59:53 2009 +0200
+++ b/src/ov-intx.h	Thu Sep 03 08:48:51 2009 +0200
@@ -317,6 +317,14 @@
       OCTAVE_INT_T::clear_conv_flag ();
    }
 
+  void changesign (void)
+   { 
+     matrix_ref ().changesign (); 
+     if (OCTAVE_INT_T::get_math_trunc_flag ())
+       gripe_unop_integer_math_truncated ("-", type_name (). c_str ());
+      OCTAVE_INT_T::clear_conv_flag ();
+   }
+
   idx_vector index_vector (void) const 
     { return idx_cache ? *idx_cache : set_idx_cache (idx_vector (matrix)); }