Published April 27, 2021
| Version 0.4.2
Software
Open
sparsity-pattern: Generate different types of sparsity pattern for sparse matrices.
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
Files
(25.2 kB)
Name | Size | Download all |
---|---|---|
md5:50907196f8297270af8908b3cdf2338c
|
25.2 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/ulf1/sparsity-pattern/tree/0.4.2 (URL)