Show sparsity pattern of sparse matrices
Project description
betterspy
Show sparsity patterns of sparse matrices or write them to image files.
Example:
import betterspy
A = sparse.rand(20, 20, density=0.1)
betterspy.show(A)
betterspy.write_png(A, 'out.png')
Installation
betterspy is available from the Python Package Index, so simply do
pip install -U betterspy
to install or upgrade. Use sudo -H
to install as root or the --user
option
of pip
to install in $HOME
.
Testing
To run the betterspy unit tests, check out this repository and type
pytest
Distribution
To create a new release
-
bump the
__version__
number, -
publish to PyPi and tag on GitHub:
$ make publish
License
betterspy is published under the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
betterspy-0.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for betterspy-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc843978394dec8fca28dc108845949fa5bd29fe74020cbca0e65cd6f3d84b0 |
|
MD5 | 51a912e13fda9f01f1b854bf21b6335c |
|
BLAKE2b-256 | 93ca4a20e0588825fcfe4f0bf335b59b8e8b83ac8e8e63e6aa10f104c93fbce1 |