Published April 27, 2021
| Version 0.4.2
Software
Open
sparsity-pattern: Generate different types of sparsity pattern for sparse matrices.
Authors/Creators
Description
The packages offers the following types of sparsity pattern. (1) 'diag', a diagonal matrix, (2) 'nodiag', a dense matrix without main diagonal elements, (3) 'block', a block matrix, (4) 'circle', i.e. circular shift of the main diagonal, (5) 'tril' and 'triu', i.e. the lower or upper triangle matrix; The sparsity patter is representated as index pairs, and demo examples are provided how to use it with other python APIs (e.g. scipy.sparse.lil_matrix, torch.sparse_coo_tensor, or tensorflow.sparse.SparseTensor)
Files
ulf1/sparsity-pattern-0.4.2.zip
Additional details
Related works
- Is supplement to
- https://github.com/ulf1/sparsity-pattern/tree/0.4.2 (URL)