Mercurial > hg > octave-nkf
diff liboctave/CMatrix.h @ 11570:57632dea2446
attempt better backward compatibility for Array constructors
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 19 Jan 2011 17:55:56 -0500 |
parents | fd0a3ac60b0e |
children | a83bad07f7e3 |
line wrap: on
line diff
--- a/liboctave/CMatrix.h +++ b/liboctave/CMatrix.h @@ -45,10 +45,11 @@ ComplexMatrix (void) : MArray<Complex> () { } - ComplexMatrix (octave_idx_type r, octave_idx_type c) : MArray<Complex> (r, c) { } + ComplexMatrix (octave_idx_type r, octave_idx_type c) + : MArray<Complex> (dim_vector (r, c)) { } ComplexMatrix (octave_idx_type r, octave_idx_type c, const Complex& val) - : MArray<Complex> (r, c, val) { } + : MArray<Complex> (dim_vector (r, c), val) { } ComplexMatrix (const dim_vector& dv) : MArray<Complex> (dv.redim (2)) { }