Mercurial > hg > octave-lyh
diff scripts/deprecated/krylovb.m @ 11540:b0ef6f28e09a
deprecate krylovb function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 15 Jan 2011 03:40:32 -0500 |
parents | scripts/linear-algebra/krylovb.m@fd0a3ac60b0e |
children | 72c96de7a403 |
line wrap: on
line diff
copy from scripts/linear-algebra/krylovb.m copy to scripts/deprecated/krylovb.m --- a/scripts/linear-algebra/krylovb.m +++ b/scripts/deprecated/krylovb.m @@ -21,8 +21,17 @@ ## See @code{krylov}. ## @end deftypefn +## Deprecated in version 3.4 + function [Uret, Ucols] = krylovb (A, V, k, eps1, pflg) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "krylovb is obsolete and will be removed from a future version of Octave; please use [Uret, ~, Ucols] = krylov (...) instead"); + endif + switch (nargin) case (3) [Uret, H, Ucols] = krylov (A, V, k);