view test/bug-38576.tst @ 17846:42453dcfa95e

eigs.m: Fix regression when numeric sigma is used and eig() is called instead of __eigs__. * scripts/sparse/eigs.m: Return k eigenvalues closest to sigma when sigma is numeric. Replace double quotes with single quotes in error messages to avoid having to escape double quote characters so frequently.
author Rik <rik@octave.org>
date Mon, 04 Nov 2013 10:38:32 -0800
parents 11115c237231
children 730bc06134f9
line wrap: on
line source

%!function r = f1 ()
%!  ls = svd (1);
%!  r = eval ("ls -1;");
%!endfunction
%!function r = f2 ()
%!  [u,ls,v] = svd (1);
%!  r = eval ("ls -1;");
%!endfunction
%!function r = f3 (ls)
%!  r = eval ("ls -1;");
%!endfunction

%!assert (f1 (), 0);
%!assert (f2 (), 0);
%!assert (ischar (f3 ()), true);
%!assert (f3 (1), 0);