diff liboctave/fCMatrix.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/fCMatrix.h
+++ b/liboctave/fCMatrix.h
@@ -156,6 +156,12 @@
 
   FloatComplexColumnVector column (octave_idx_type i) const;
 
+  void resize (octave_idx_type nr, octave_idx_type nc,
+               const FloatComplex& rfv = resize_fill_value ())
+  {
+    MArray<FloatComplex>::resize (dim_vector (nr, nc), rfv);
+  }
+
 private:
   FloatComplexMatrix tinverse (MatrixType &mattype, octave_idx_type& info,
                           float& rcon, int force, int calc_cond) const;