diff liboctave/fMatrix.h @ 11574:a83bad07f7e3

attempt better backward compatibility for Array resize functions
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 00:12:05 -0500
parents 57632dea2446
children 12df7854fa7c
line wrap: on
line diff
--- a/liboctave/fMatrix.h
+++ b/liboctave/fMatrix.h
@@ -126,6 +126,12 @@
 
   FloatColumnVector column (octave_idx_type i) const;
 
+  void resize (octave_idx_type nr, octave_idx_type nc,
+               float rfv = resize_fill_value ())
+  {
+    MArray<float>::resize (dim_vector (nr, nc), rfv);
+  }
+
 private:
   FloatMatrix tinverse (MatrixType &mattype, octave_idx_type& info, float& rcon, 
                    int force, int calc_cond) const;