diff src/ov-base-nd-array.cc @ 3933:f9ea3dcf58ee

[project @ 2002-05-15 03:21:00 by jwe]
author jwe
date Wed, 15 May 2002 03:21:01 +0000
parents 13905c3a24af
children 6e86256e9c54
line wrap: on
line diff
--- a/src/ov-base-nd-array.cc	Tue May 07 18:10:44 2002 +0000
+++ b/src/ov-base-nd-array.cc	Wed May 15 03:21:01 2002 +0000
@@ -50,7 +50,8 @@
 
 template <class AT>
 octave_value
-octave_base_nd_array<AT>::do_index_op (const octave_value_list& idx)
+octave_base_nd_array<AT>::do_index_op (const octave_value_list& idx,
+				       int resize_ok)
 {
   octave_value retval;
 
@@ -61,14 +62,14 @@
       Array<idx_vector> i = idx_list_to_idx_array (idx);
 
       retval
-	= octave_value (new octave_base_nd_array<AT> (AT (array.index (i))));
+	= octave_value (new octave_base_nd_array<AT> (AT (array.index (i, resize_ok))));
     }
   else if (len == 1)
     {
       idx_vector i = idx(0).index_vector ();
 
       retval
-	= octave_value (new octave_base_nd_array<AT> (AT (array.index (i))));
+	= octave_value (new octave_base_nd_array<AT> (AT (array.index (i, resize_ok))));
     }
   else
     {