diff src/ov-bool-mat.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 d4b1314a7c31
children e793865ede63
line wrap: on
line diff
--- a/src/ov-bool-mat.h
+++ b/src/ov-bool-mat.h
@@ -175,6 +175,9 @@
 
   octave_value convert_to_str_internal (bool pad, bool force, char type) const;
 
+  // Use matrix_ref here to clear index cache.
+  void invert (void) { matrix_ref ().invert (); }
+
   void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;
 
   bool save_ascii (std::ostream& os);