Sparse type
The Sparse Type module provides tools for creating and manipulating sparse matrices in Nelson.
It supports efficient storage and computation for matrices with a large number of zero elements, including conversion between sparse and full representations, generation of special sparse matrices, and access to nonzero elements.
This module enables memory-efficient handling of large datasets and optimized numerical operations on sparse structures.
Functions
IJV - Returns I,J,V triplets from a sparse matrix.
full - Sparse to full matrix conversion.
nnz - Return the number of nonzero elements.
nzmax - Reserved size for nonzero elements.
sparse - Sparse matrix definition.
speye - Sparse identity matrix.
spones - Replaces non zero sparse matrix elements with ones.
sprand - Sparse uniformly distributed random matrix.
sprandn - Sparse normally distributed random matrix.
Last updated
Was this helpful?