MATLAB Function Reference | ![]() ![]() |
Set parameters for sparse matrix routines
Syntax
spparms('key',
value) spparms values = spparms [keys,
values] = spparms spparms(values) value = spparms('key') spparms('default') spparms('tight')
Description
spparms('key',value)
sets one or more of the tunable parameters used in the sparse routines, particularly the minimum degree orderings, colmmd
and symmmd
. In ordinary use, you should never need to deal with this function.
The meanings of the key
parameters are
Note
Cholesky-based \ and / on symmetric positive definite matrices use symmmd .LU-based \ and / (UMFPACK) on square matrices use a modified colamd .QR-based \ and / on rectangular matrices use colmmd .
|
spparms,
by itself, prints a description of the current settings.
values = spparms
returns a vector whose components give the current settings.
[keys,values] = spparms
returns that vector, and also returns a character matrix whose rows are the keywords for the parameters.
spparms(values),
with no output argument, sets all the parameters to the values specified by the argument vector.
value = spparms('key')
returns the current setting of one parameter.
spparms('default')
sets all the parameters to their default settings.
spparms('tight')
sets the minimum degree ordering parameters to their tight settings, which can lead to orderings with less fill-in, but which make the ordering functions themselves use more execution time.
The key parameters for default
and tight
settings are
Notes
Sparse A\b
on symmetric positive definite A
uses symmmd
and chol
.
Sparse A\b
on general square A
uses UMFPACK and its modified colamd
reordering. colamd
does not used the parameters above, other than 'autoamd'
which turns the preordering on or off, and 'piv_tol'
which controls the pivot tolerance. UMFPACK also responds to 'spumoni'
, as do the majority of the built-in sparse matrix functions.
See Also
\
, chol
, colamd
, colmmd
, symmmd
References
[1] Gilbert, John R., Cleve Moler, and Robert Schreiber, "Sparse Matrices in MATLAB: Design and Implementation," SIAM Journal on Matrix Analysis and Applications, Vol. 13, 1992, pp. 333-356.
[2] Davis, T. A., UMFPACK Version 4.0 User Guide (http://www.cise.ufl.edu/research/sparse/umfpack/v4.0/UserGuide.pdf), Dept. of Computer and Information Science and Engineering, Univ. of Florida, Gainesville, FL, 2002.
![]() | spones | sprand | ![]() |