changeset 11540:b0ef6f28e09a

deprecate krylovb function
author John W. Eaton <jwe@octave.org>
date Sat, 15 Jan 2011 03:40:32 -0500
parents 6bac61388876
children 28bae9cd7ea9
files ChangeLog NEWS scripts/ChangeLog scripts/deprecated/krylovb.m scripts/deprecated/module.mk scripts/linear-algebra/krylovb.m scripts/linear-algebra/module.mk
diffstat 7 files changed, 62 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jan 14 18:39:23 2011 -0800
+++ b/ChangeLog	Sat Jan 15 03:40:32 2011 -0500
@@ -1,3 +1,7 @@
+2011-01-15  John W. Eaton  <jwe@octave.org>
+
+	* NEWS: Add krylovb to deprecated function list.
+
 2010-01-14  Rik  <octave@nomad.inbox5.com>
 
 	* NEWS: Add replot to deprecated function list.
--- a/NEWS	Fri Jan 14 18:39:23 2011 -0800
+++ b/NEWS	Sat Jan 15 03:40:32 2011 -0500
@@ -409,8 +409,9 @@
     be removed from Octave 3.8 (or whatever version is the second major
     release after 3.4):
 
-      autocor  betai    dispatch  gammai     values
-      autocov  cellidx  fstat     is_global  replot
+      autocor  cellidx   gammai     replot
+      autocov  dispatch  is_global  values
+      betai    fstat     krylovb
 
 Summary of important user-visible changes for version 3.2:
 ---------------------------------------------------------
--- a/scripts/ChangeLog	Fri Jan 14 18:39:23 2011 -0800
+++ b/scripts/ChangeLog	Sat Jan 15 03:40:32 2011 -0500
@@ -1,3 +1,11 @@
+2011-01-15  John W. Eaton  <jwe@octave.org>
+
+	* deprecated/krylovb: Move here from linear-algebra.
+	* deprecated/module.mk (deprecated_FCN_FILES):
+	Include krylovb.m in the list.
+	* linear-algebra/module.mk (linear_algebra_FCN_FILES):
+	Remove krylovb.m from the list.
+
 2011-01-14  Rik  <octave@nomad.inbox5.com>
 
 	* general/postpad.m, general/prepad.m: Improve docstring.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/deprecated/krylovb.m	Sat Jan 15 03:40:32 2011 -0500
@@ -0,0 +1,46 @@
+## Copyright (C) 1993-2011 A. Scottedward Hodel
+##
+## This file is part of Octave.
+##
+## Octave is free software; you can redistribute it and/or modify it
+## under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 3 of the License, or (at
+## your option) any later version.
+##
+## Octave is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with Octave; see the file COPYING.  If not, see
+## <http://www.gnu.org/licenses/>.
+
+## -*- texinfo -*-
+## @deftypefn {Function File} {[@var{u}, @var{ucols}] =} krylovb (@var{A}, @var{V}, @var{k}, @var{eps1}, @var{pflg})
+## 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);
+    case (4)
+      [Uret, H, Ucols] = krylov (A, V, k, eps1);
+    case (5)
+      [Uret, H, Ucols] = krylov (A, V, k, eps1, pflg);
+    otherwise
+      print_usage ();
+  endswitch
+
+endfunction
--- a/scripts/deprecated/module.mk	Fri Jan 14 18:39:23 2011 -0800
+++ b/scripts/deprecated/module.mk	Sat Jan 15 03:40:32 2011 -0500
@@ -19,6 +19,7 @@
   deprecated/isstr.m \
   deprecated/lchol.m \
   deprecated/loadimage.m \
+  deprecated/krylovb.m \
   deprecated/mark_as_command.m \
   deprecated/mark_as_rawcommand.m \
   deprecated/replot.m \
--- a/scripts/linear-algebra/krylovb.m	Fri Jan 14 18:39:23 2011 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-## Copyright (C) 1993-2011 A. Scottedward Hodel
-##
-## This file is part of Octave.
-##
-## Octave is free software; you can redistribute it and/or modify it
-## under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or (at
-## your option) any later version.
-##
-## Octave is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-## General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with Octave; see the file COPYING.  If not, see
-## <http://www.gnu.org/licenses/>.
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {[@var{u}, @var{ucols}] =} krylovb (@var{A}, @var{V}, @var{k}, @var{eps1}, @var{pflg})
-## See @code{krylov}.
-## @end deftypefn
-
-function [Uret, Ucols] = krylovb (A, V, k, eps1, pflg)
-
-  switch (nargin)
-    case (3)
-      [Uret, H, Ucols] = krylov (A, V, k);
-    case (4)
-      [Uret, H, Ucols] = krylov (A, V, k, eps1);
-    case (5)
-      [Uret, H, Ucols] = krylov (A, V, k, eps1, pflg);
-    otherwise
-      print_usage ();
-  endswitch
-
-endfunction
--- a/scripts/linear-algebra/module.mk	Fri Jan 14 18:39:23 2011 -0800
+++ b/scripts/linear-algebra/module.mk	Sat Jan 15 03:40:32 2011 -0500
@@ -12,7 +12,6 @@
   linear-algebra/ishermitian.m \
   linear-algebra/issymmetric.m \
   linear-algebra/krylov.m \
-  linear-algebra/krylovb.m \
   linear-algebra/logm.m \
   linear-algebra/normest.m \
   linear-algebra/null.m \