diff liboctave/Array.h @ 10674:e3064439d6b4

new Array method for internal use
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 01 Jun 2010 12:34:16 +0200
parents b17a966099ed
children f7f26094021b
line wrap: on
line diff
--- a/liboctave/Array.h
+++ b/liboctave/Array.h
@@ -622,6 +622,11 @@
 
   template <class U> friend class Array;
 
+  // Returns true if this->dims () == dv, and if so, replaces this->dimensions
+  // by a shallow copy of dv. This is useful for maintaining several arrays with
+  // supposedly equal dimensions (e.g. structs in the interpreter).
+  bool optimize_dimensions (const dim_vector& dv);
+
 private:
   static void instantiation_guard ();
 };