A drop in replacement for sksparse for sparse Cholseky factorization
Project description
sksparse_minimal
This project is forked from https://github.com/rgl-epfl/cholespy
Changes made:
- Add support for all solving modes (CHOLMOD_A, CHOLMOD_L, CHOLMOD_Lt, CHOLMOD_P, etc)
- Remove support for GPU solving (because I didn't want to bother implementing it for all modes and I didn't need it)
- Emulate sksparse API for ease of use
- Change CHOLMOD configuration to match sksparse
- Update build to match recommendations from https://nanobind.readthedocs.io/en/latest/building.html
Installing
With PyPI (recommended)
pip install sksparse_minimal
From source
git clone --recursive https://github.com/tansey-lab/sksparse_minimal.git
pip install .
Example usage
import numpy as np
from sksparse_minimal import SparseCholesky
from scipy.sparse import csc_matrix
M = np.array([[4, 12, -16],
[12, 37, -43],
[-16, -43, 98]], dtype=np.float64)
M = csc_matrix(M)
sparse_cholesky = SparseCholesky(M)
b = np.array([1, 2, 3], dtype=np.float64)
sparse_cholesky.solve_A(b)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sksparse-minimal-0.2.tar.gz.
File metadata
- Download URL: sksparse-minimal-0.2.tar.gz
- Upload date:
- Size: 6.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcefe7a8eddf5a5976c8440a32a2de6f6dc767b69c1f943049adb0c81d63ef3b
|
|
| MD5 |
39f3374595c0ca1ff31333d1e9958b97
|
|
| BLAKE2b-256 |
93c4c28aa14e9c4e2b8eb3b613a8a611d77f8f60f4ef159b0bf609595d5e65c3
|
File details
Details for the file sksparse_minimal-0.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b275168e95820b850fdb9d2f39c79084cf48375df433688d3ee9f9cc692f494b
|
|
| MD5 |
3f714b72f5bee69f3d0a267e7d5d6ef4
|
|
| BLAKE2b-256 |
f0880eb434c41960cc638789bc3df2cef8c5a1dde6ab68b78da98595dd74b8bd
|
File details
Details for the file sksparse_minimal-0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a540908a57f224f3ef909b06795af9dfd32ed3f5c05eda1c1a1cb8a9072ad2f
|
|
| MD5 |
d9ab52e9d76968e40cf99dffa499fffe
|
|
| BLAKE2b-256 |
ed3b9482046910054328c7bb0a56327528931e0858b3b6955f20e3a757bbe370
|
File details
Details for the file sksparse_minimal-0.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 987.4 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08364d871e4b0dc2f190fe012ca51a0e9badcc4c8089543906ca955fd8715df7
|
|
| MD5 |
9d2b4bc8ebca6e5a654523af28e69ccd
|
|
| BLAKE2b-256 |
f07952687b4db4936701393a8fb488c45810e1c28b1bf418eca0a9a233dcc716
|
File details
Details for the file sksparse_minimal-0.2-cp311-cp311-macosx_10_14_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp311-cp311-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffe2842ff5f0374b06eaefecc251411a4cfc1923bbae8df7af15eaa368c087db
|
|
| MD5 |
5323aeecce4da3103d4021ff77231e84
|
|
| BLAKE2b-256 |
2a74c8c286befaba558d2b5a66280706f6756f4decec43cec643a3afc2d0c6af
|
File details
Details for the file sksparse_minimal-0.2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
354f975d1341adddd0c5d43a553ed9555eadc06c0b3cd624f2898a42b58ce9d8
|
|
| MD5 |
54df252d8b22ea57cbf796c6608556dc
|
|
| BLAKE2b-256 |
d7a4c09dda45b6790a204368ead7e9f98f9a62d82c20bc8906e7428beabdfc74
|
File details
Details for the file sksparse_minimal-0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
281a27739534245764ffb799861e6361f7ff7069e5b4a8e3937c3a03bb53e02b
|
|
| MD5 |
f354efc0059c7f79e0b0fd189ff766f6
|
|
| BLAKE2b-256 |
ecd479a172b1660ca813003a1bbebfa2f5f9b0b7a90ba0fdc26fb7287f8e3b1f
|
File details
Details for the file sksparse_minimal-0.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 987.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f307624a722b29dd093340dbbb24eef4bf3fa55be12ed3a3312b24f6f79b9da
|
|
| MD5 |
dce9c0d768b3fb81aa738bd1be3b2a88
|
|
| BLAKE2b-256 |
3c919ef6339e6057d0fa48b0ebfd99eca0d353a811274853f7b7d70310f2fe81
|
File details
Details for the file sksparse_minimal-0.2-cp310-cp310-macosx_10_14_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp310-cp310-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98adae3f10d50c3bd8f9f5da9a936fdab850579b33885e67c305f7741784ea90
|
|
| MD5 |
e79c4b2691ab66d91ea8cecc10044c82
|
|
| BLAKE2b-256 |
ee2d7bebd9830218d43b30db1d60566027ae1f48252251d2c734004e0062ed4a
|
File details
Details for the file sksparse_minimal-0.2-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4e3457c453729e9f58c5e33f85a2c0650b589f1d848194260275ce921d09345
|
|
| MD5 |
32f88decc5b271b251661069154ce21d
|
|
| BLAKE2b-256 |
55ae05ab7b1dcad5a090dde583998a1cefcc897ff3312f144ad7615641ce65fc
|
File details
Details for the file sksparse_minimal-0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33dd8dcddf8c162a52ea72067c85411e19ea18c0c5441ebdc9bfeaa692222467
|
|
| MD5 |
756cf776a042d92fc79616ac47b4a212
|
|
| BLAKE2b-256 |
cec83c5135c6564c9841dbfc042605c742dea393a1f6ea44b7f4964526593d2d
|
File details
Details for the file sksparse_minimal-0.2-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 987.8 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc6cbff755ac5f70ece2510de7902bde54b607ee94e4a0f34b693128fa694d70
|
|
| MD5 |
53a81f2beaf72e7488a639994f99ef16
|
|
| BLAKE2b-256 |
68a7f245b8f48287fd9dbc0bc43ebbf8553aae987d68c230cdc91b005bc595c7
|
File details
Details for the file sksparse_minimal-0.2-cp39-cp39-macosx_10_14_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp39-cp39-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e34de5d518c12625dad1ba78eab788c1861c46c3de579d180bd9ec9a6b9ac70
|
|
| MD5 |
ff70698be8c772e8a33613de75e94bff
|
|
| BLAKE2b-256 |
6ec42109e1e60ab42407f539567642e27a4e2382ec451e7e2679aaa448abe8f0
|
File details
Details for the file sksparse_minimal-0.2-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96c8604e6acd4973929be53295beea4eb4cc92d006016a78cb353f96815ead82
|
|
| MD5 |
bf05836afa51301c9db6c0b89f04f639
|
|
| BLAKE2b-256 |
7290b2dfed36e56c6eb8990f73881f5c2754e26dc355182004bf272e3c6eb53b
|
File details
Details for the file sksparse_minimal-0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bebd2cf9f2978fa9d389475be0dc4b55327ec26f4c0d6a579faa1d1268ddf3f3
|
|
| MD5 |
8c65a32ca9e9956434c7863a2d4b600f
|
|
| BLAKE2b-256 |
14ac6324d93bcca2fd28265ad28348f74a280fa477da216adc8071b8050bd5dc
|
File details
Details for the file sksparse_minimal-0.2-cp38-cp38-macosx_10_14_x86_64.whl.
File metadata
- Download URL: sksparse_minimal-0.2-cp38-cp38-macosx_10_14_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03ea12e9ef205e6ace0ed4b9a024e0af4e8019bb3566b7636b22d648e2854bef
|
|
| MD5 |
c3b0fd90c3b884d66f736a2d2ba1692c
|
|
| BLAKE2b-256 |
872e7ecf87e7d71057dc49ab08d711c11e62d8a5af030ff8a25ce83bcd1aa5d3
|