diff liboctave/Array2.h @ 8290:7cbe01c21986

improve dense array indexing
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 20 Oct 2008 16:54:28 +0200
parents 82be108cc558
children 655193554ad2
line wrap: on
line diff
--- a/liboctave/Array2.h
+++ b/liboctave/Array2.h
@@ -92,10 +92,11 @@
       return *this;
     }
 
-  void resize (octave_idx_type r, octave_idx_type c) { this->resize_no_fill (r, c); }
+  void resize (octave_idx_type r, octave_idx_type c)
+    { Array<T>::resize_fill (r, c, Array<T>::resize_fill_value ()); }
 
   void resize (octave_idx_type r, octave_idx_type c, const T& val)
-    { this->resize_and_fill (r, c, val); }
+    { Array<T>::resize_fill (r, c, val); }
 
   Array2<T>& insert (const Array2<T>& a, octave_idx_type r, octave_idx_type c)
     {