Mercurial > hg > octave-nkf
annotate scripts/deprecated/luinc.m @ 20511:eca5aa3225f4
imshow.m: Add support for 'parent' property (bug #45473).
* imshow.m: Add cell variable prop_val_args{:} when calling image or imagesc.
Populate prop_val_args with {"parent", hparent} when "parent" argument given
to imshow. Remove code commented out in 2015/05/1 which has not caused any
problems. Add warning that arguments "border" and "reduce" are not supported.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 05 Jul 2015 13:55:56 -0700 |
parents | 4197fc428c7d |
children | fb6fe9b45c41 |
rev | line source |
---|---|
19898
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19842
diff
changeset
|
1 ## Copyright (C) 2014-2015 John W. Eaton |
19340 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
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. | |
9 ## | |
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. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
16 ## along with Octave; see the file COPYING. If not, see | |
17 ## <http://www.gnu.org/licenses/>. | |
18 | |
19 ## @deftypefn {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, '0') | |
20 ## @deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{droptol}) | |
21 ## @deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{opts}) | |
22 ## | |
19842
ebd27d8c63fd
update default branch to release as 4.0
John W. Eaton <jwe@octave.org>
parents:
19794
diff
changeset
|
23 ## @code{luinc} is deprecated and will be removed in Octave version 4.4. |
19340 | 24 ## Please use @code{ilu} or @code{ichol} in all new code. |
25 ## | |
26 ## Produce the incomplete LU@tie{}factorization of the sparse matrix @var{A}. | |
27 ## Two types of incomplete factorization are possible, and the type | |
28 ## is determined by the second argument to @code{luinc}. | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
29 ## |
19340 | 30 ## Called with a second argument of @qcode{'0'}, the zero-level incomplete |
31 ## LU@tie{}factorization is produced. This creates a factorization of @var{A} | |
32 ## where the position of the nonzero arguments correspond to the same | |
33 ## positions as in the matrix @var{A}. | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
34 ## |
19340 | 35 ## Alternatively, the fill-in of the incomplete LU@tie{}factorization can |
36 ## be controlled through the variable @var{droptol} or the structure | |
37 ## @var{opts}. The @sc{umfpack} multifrontal factorization code by Tim A. | |
38 ## Davis is used for the incomplete LU@tie{}factorization, (availability | |
39 ## @url{http://www.cise.ufl.edu/research/sparse/umfpack/}) | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
40 ## |
19340 | 41 ## @var{droptol} determines the values below which the values in the |
42 ## LU@tie{} factorization are dropped and replaced by zero. It must be a | |
43 ## positive scalar, and any values in the factorization whose absolute value | |
44 ## are less than this value are dropped, expect if leaving them increase the | |
45 ## sparsity of the matrix. Setting @var{droptol} to zero results in a complete | |
46 ## LU@tie{}factorization which is the default. | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
47 ## |
19340 | 48 ## @var{opts} is a structure containing one or more of the fields |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
49 ## |
19340 | 50 ## @table @code |
51 ## @item droptol | |
52 ## The drop tolerance as above. If @var{opts} only contains @code{droptol} | |
53 ## then this is equivalent to using the variable @var{droptol}. | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
54 ## |
19340 | 55 ## @item milu |
56 ## A logical variable flagging whether to use the modified incomplete | |
57 ## LU@tie{} factorization. In the case that @code{milu} is true, the dropped | |
58 ## values are subtracted from the diagonal of the matrix @var{U} of the | |
59 ## factorization. The default is @code{false}. | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
60 ## |
19340 | 61 ## @item udiag |
62 ## A logical variable that flags whether zero elements on the diagonal of | |
63 ## @var{U} should be replaced with @var{droptol} to attempt to avoid singular | |
64 ## factors. The default is @code{false}. | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
65 ## |
19340 | 66 ## @item thresh |
67 ## Defines the pivot threshold in the interval [0,1]. Values outside that | |
68 ## range are ignored. | |
69 ## @end table | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
70 ## |
19340 | 71 ## All other fields in @var{opts} are ignored. The outputs from @code{luinc} |
72 ## are the same as for @code{lu}. | |
19794
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19355
diff
changeset
|
73 ## |
19340 | 74 ## Given the string argument @qcode{\"vector\"}, @code{luinc} returns the |
75 ## values of @var{p} @var{q} as vector values. | |
76 ## @seealso{ilu, ichol, lu, sparse} | |
77 ## @end deftypefn | |
78 | |
19842
ebd27d8c63fd
update default branch to release as 4.0
John W. Eaton <jwe@octave.org>
parents:
19794
diff
changeset
|
79 ## Deprecated in version 4.0 |
19340 | 80 |
19355
71da5cce37d6
luinc.m: Fix number of output args in deprecation cset e278c939a419.
Rik <rik@octave.org>
parents:
19340
diff
changeset
|
81 function [L, U, P, Q] = luinc (varargin) |
19340 | 82 |
83 persistent warned = false; | |
84 if (! warned) | |
85 warned = true; | |
86 warning ("Octave:deprecated-function", | |
87 "luinc is obsolete and will be removed from a future version of Octave, please use ilu or ichol instead"); | |
88 endif | |
89 | |
19355
71da5cce37d6
luinc.m: Fix number of output args in deprecation cset e278c939a419.
Rik <rik@octave.org>
parents:
19340
diff
changeset
|
90 [L, U, P, Q] = __luinc__ (varargin{:}); |
19340 | 91 |
92 endfunction | |
93 |