Using the C++ Math Library    

Sparse Matrix Functions

Elementary Sparse Matrices 
Function
Purpose
spdiags
Sparse matrix formed from diagonals.
speye
Sparse identity matrix.
sprand
Sparse uniformly distributed random matrix.
sprandn
Sparse normally distributed random matrix.
sprandsym
Sparse random symmetric matrix.

Full to Sparse Conversion 
Function
Purpose
find
Find indices of nonzero elements.
full
Convert sparse matrix to full matrix.
sparse
Create sparse matrix.
spconvert
Import from sparse matrix external format.

 Working with Nonzero Entries of Sparse Matrices
Function
Purpose
issparse
True for sparse matrix.
nnz
Number of nonzero matrix elements.
nonzeros
Nonzero matrix elements.
nzmax
Amount of storage allocated for nonzero matrix elements.
spalloc
Allocate space for sparse matrix.
spfun
Apply function to nonzero matrix elements.
spones
Replace nonzero sparse matrix elements with 1's.

Reordering Algorithms
Function
Purpose
colmmd
Column minimum degree permutation.
colperm
Column permutation.
dmperm
Dulmage-Mendelsohn permutation.
randperm
Random permutation.
symmmd
Symmetric minimum degree permutation.
symrcm
Symmetric reverse Cuthill-McKee permutation.

 Linear Algebra
Function
Purpose
cholinc
Incomplete Cholesky factorization.
condest
1-norm condition number estimate.
eigs
A few eigenvalues.
luinc
Incomplete LU factorization.
normest
Estimate the matrix 2-norm.
svds
A few singular values.

 Linear Equations (Iterative Methods)
Function
Purpose
bicg
BiConjugate Gradients Method.
bicgstab
BiConjugate Gradients Stabilized Method.
cgs
Conjugate Gradients Squared Method.
gmres
Generalized Minimum Residual Method.
pcg
Preconditioned Conjugate Gradients Method.
qmr
Quasi-Minimal Residual Method.

 Miscellaneous
Function
Purpose
spaugment
Form least squares augmented system.
spparms
Set parameters for sparse matrix routines.
symbfact
Symbolic factorization analysis.


 Structure Functions Utility Functions