Documentation

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

Sparse Matrix Manipulation

Allocate, get information about matrices, process nonzero elements, visualize sparsity pattern

Functions

issparse Determine whether input is sparse
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 sparse matrix elements
spones Replace nonzero sparse matrix elements with ones
spparms Set parameters for sparse matrix routines
spy Visualize sparsity pattern
find Find indices and values of nonzero elements
full Convert sparse matrix to full matrix
Was this topic helpful?