# 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](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/ijv) - Returns I,J,V triplets from a sparse matrix.
* [full](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/full) - Sparse to full matrix conversion.
* [nnz](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/nnz) - Return the number of nonzero elements.
* [nzmax](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/nzmax) - Reserved size for nonzero elements.
* [sparse](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/sparse) - Sparse matrix definition.
* [speye](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/speye) - Sparse identity matrix.
* [spones](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/spones) - Replaces non zero sparse matrix elements with ones.
* [sprand](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/sprand) - Sparse uniformly distributed random matrix.
* [sprandn](https://nelson-9.gitbook.io/nelson/markdown/en/sparse/sprandn) - Sparse normally distributed random matrix.
