blocktrix
A JAX library for efficiently solving block tri-diagonal matrix systems on GPUs.
Author: Philip Mocz (@pmocz)
Implements both a block Thomas (serial) solver and a block cyclic reduction B-cyclic (parallel) solver.
⚠️ Warning: Work in Progress ⚠️
This library is still under active development and is not guaranteed to work at this point XXX.
Installation
pip install blocktrix
Usage
import jax
from blocktrix import solve_block_tridiagonal_bcyclic, random_block_tridiagonal
# Generate a random test system
key = jax.random.PRNGKey(42)
n_blocks, block_size = 8, 4
lower, diag, upper, rhs = random_block_tridiagonal(key, n_blocks, block_size)
# Solve the system
x = solve_block_tridiagonal_bcyclic(n_blocks, lower, diag, upper, rhs)
It's fast!
Links
Cite this repository
If you use this software, please cite it as below.
@software{Mocz_Blocktrix_2026,
author = {Mocz, Philip},
doi = {https://doi.org/10.5281/zenodo.18226420},
month = jan,
title = {{Blocktrix}},
url = {https://github.com/pmocz/blocktrix},
version = {0.0.4},
year = {2026}
}
Metadata
Release files for blocktrix 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blocktrix-0.0.5.tar.gz | 10.6 kB | With provenance | Details for blocktrix-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blocktrix-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for blocktrix-0.0.5-py3-none-any.whl |
Total release size: 19.6 kB
Release files / blocktrix-0.0.5.tar.gz
| Download URL | blocktrix-0.0.5.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9559a300c7ee6e25cc4c8c46bf16c6ee7a9c24daa2c210990311bc710f105065
|
|
BLAKE2b-256 checksum How to use checksums |
9beddd18d2768bf6efd5f78bf50568ba7f585965c2953fd221c2badc9b95d0a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 13, 2026.
Transparency logRelease files / blocktrix-0.0.5-py3-none-any.whl
| Download URL | blocktrix-0.0.5-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ebe8500d89b8cb8de95d0accc8d5e836ee7edb6a08fd9f9c1238b129556043c
|
|
BLAKE2b-256 checksum How to use checksums |
3d27b6b677f20fa617ce188c40b26ffdcefaf774b835694caa359cd7deff5006
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 13, 2026.
Transparency logSecurity for blocktrix 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for blocktrix-0.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.