Mercurial > hg > octave-lyh
annotate scripts/linear-algebra/krylovb.m @ 11523:fd0a3ac60b0e
update copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 14 Jan 2011 05:47:45 -0500 |
parents | eb9e0b597d61 |
children |
rev | line source |
---|---|
11523 | 1 ## Copyright (C) 1993-2011 A. Scottedward Hodel |
3427 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
7016 | 6 ## under the terms of the GNU General Public License as published by |
7 ## the Free Software Foundation; either version 3 of the License, or (at | |
8 ## your option) any later version. | |
3427 | 9 ## |
7016 | 10 ## Octave is distributed in the hope that it will be useful, but |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
3427 | 14 ## |
15 ## You should have received a copy of the GNU General Public License | |
7016 | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | |
3211 | 18 |
3459 | 19 ## -*- texinfo -*- |
11470
eb9e0b597d61
Use common names for variables in documentation and code for a few more m-script files.
Rik <octave@nomad.inbox5.com>
parents:
7017
diff
changeset
|
20 ## @deftypefn {Function File} {[@var{u}, @var{ucols}] =} krylovb (@var{A}, @var{V}, @var{k}, @var{eps1}, @var{pflg}) |
3459 | 21 ## See @code{krylov}. |
22 ## @end deftypefn | |
3211 | 23 |
3427 | 24 function [Uret, Ucols] = krylovb (A, V, k, eps1, pflg) |
25 | |
26 switch (nargin) | |
27 case (3) | |
28 [Uret, H, Ucols] = krylov (A, V, k); | |
29 case (4) | |
30 [Uret, H, Ucols] = krylov (A, V, k, eps1); | |
31 case (5) | |
32 [Uret, H, Ucols] = krylov (A, V, k, eps1, pflg); | |
33 otherwise | |
6046 | 34 print_usage (); |
3240 | 35 endswitch |
3211 | 36 |
37 endfunction |