Mercurial > hg > octave-nkf
diff scripts/linear-algebra/krylov.m @ 7795:df9519e9990c
Handle single precision eps values
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 12 May 2008 22:57:11 +0200 |
parents | ffca9912dc82 |
children | bc982528de11 |
line wrap: on
line diff
--- a/scripts/linear-algebra/krylov.m +++ b/scripts/linear-algebra/krylov.m @@ -59,7 +59,11 @@ function [Uret, H, nu] = krylov (A, V, k, eps1, pflg); - defeps = 1e-12; + if (isa (A, "single") || isa (V, "single")) + defeps = 1e-6 + else + defeps = 1e-12; + endif if (nargin < 3 || nargin > 5) print_usage ();