Mercurial > hg > octave-shane
changeset 10466:c0c24219fccf
eigs-base.cc: avoid warning about deprecated Array constructor
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 25 Mar 2010 18:19:19 -0400 |
parents | e6126483297a |
children | 13c1f15c67fa |
files | liboctave/ChangeLog liboctave/eigs-base.cc |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2010-03-25 John W. Eaton <jwe@octave.org> + + * eigs-base.cc (EigsComplexNonSymmetricFunc): Avoid warning + about deprecated Array constructor. + 2010-03-25 John W. Eaton <jwe@octave.org> * cmd-edit.cc, file-ops.cc, lo-math.h, lo-utils.cc, oct-env.cc,
--- a/liboctave/eigs-base.cc +++ b/liboctave/eigs-base.cc @@ -3554,7 +3554,7 @@ // long as the HOWMNY arg is not "S", the logical array // is just workspace for ARPACK, so use int type to // avoid problems. - Array<octave_idx_type> s (p); + Array<octave_idx_type> s (p, 1); octave_idx_type *sel = s.fortran_vec (); eig_vec.resize (n, k);