rumpy
rumpy-core multiplies row-major f64 matrices with Strassen's algorithm.
Library documentation: DOCS.md.
Algorithm
Strassen splits a square into four quadrants and forms seven products instead of eight:
M1 = (A11 + A22) (B11 + B22)
M2 = (A21 + A22) B11
M3 = A11 (B12 - B22)
M4 = A22 (B21 - B11)
M5 = (A11 + A12) B22
M6 = (A21 - A11) (B11 + B12)
M7 = (A12 - A22) (B21 + B22)
The quadrants of the product are
C11 = M1 + M4 - M5 + M7
C12 = M3 + M5
C21 = M2 + M4
C22 = M1 - M2 + M3 + M6
Each product uses the same recurrence until the side is at most leaf_size, then a cache-blocked triple loop. leaf_size == 0 skips Strassen and uses the plain triple loop. matmul_parallel runs the seven products with rayon::join while the side is at least 256.
Padding
The recursive step needs a square whose side is a power of two. matmul accepts any compatible shapes m×k and k×n. Let s be the next power of two of max(m, k, n). Each input is copied into the top-left of an s×s matrix of zeros, those squares are multiplied, and the result is the top-left m×n block. The extra zeros do not change the product. A 5×7 times a 7×3 pads to 8×8 and crops back to 5×3. A square that is already a power of two is copied as itself.
A zero side is not padded. next_power_of_two(0) is 1, which would turn an empty product into a 1×1, so a zero side uses the triple loop on the original shapes. leaf_size == 0 takes that same path.
Python
import nrumpy
nrumpy.matmul([[1.0, 2.0], [3.0, 4.0]], [[5.0, 6.0], [7.0, 8.0]])
matmul accepts nested lists, tuples of rows, and 2-D NumPy arrays. A NumPy left-hand matrix returns a float64 array. Any other left-hand matrix returns a nested list. leaf_size defaults to 64. leaf_size=0 skips Strassen and uses the plain triple loop. Importing nrumpy does not require the extension to be built.
pyproject.toml sets extension-module, so these commands from the repository root pass that feature through:
# editable install, debug
maturin develop
# editable install, release
maturin develop --release
# wheel, then install
maturin build --release
pip install target/wheels/nrumpy-*.whl
make dev, make test, make fmt, and make lint run those steps from the repository root. make dev is maturin develop --release.
Metadata
Release files for nrumpy 0.2.0
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 |
|---|---|---|---|---|
| nrumpy-0.2.0.tar.gz | 29.0 kB | With provenance | Details for nrumpy-0.2.0.tar.gz |
Built distributions (wheels)
Total release size: 3.9 MB
Release files / nrumpy-0.2.0.tar.gz
| Download URL | nrumpy-0.2.0.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5699bcfe63b526a4f99d4b677ca711c4319c92222d3827c0c0cb50e2eb87b378
|
|
BLAKE2b-256 checksum How to use checksums |
602aa3041c70ff9ed5a8b5a5e34bf9d015dccd3fdadb3879b06892622643ebe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp313-cp313-win_amd64.whl
| Download URL | nrumpy-0.2.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 192.8 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
520e5d2556ac87db3d1eb9b6eb9834abae10fbadbfd4740f9996d870a5cd2eb6
|
|
BLAKE2b-256 checksum How to use checksums |
c7d834d13aafdad7a849db82f0d2331bdcabc31e56b25b6a36f7880062448ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp313-cp313-win32.whl
| Download URL | nrumpy-0.2.0-cp313-cp313-win32.whl |
|---|---|
| Size | 177.0 kB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
8a3a8d7c32537b6090a59332a7032413a1ed126da79793b94c126f342d5bd27d
|
|
BLAKE2b-256 checksum How to use checksums |
d3a56632e68cb2c67cf7fe83f3a0015216ac433bcdcf7840ac7229452761907a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nrumpy-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 316.6 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3aef65ad686911bdc469d17d41c96700a3690bd91736d163a3b8a30b1232878c
|
|
BLAKE2b-256 checksum How to use checksums |
49d15072df9ee98169672d8675e63fe470e7fad8d648f21306e2ceac51c14965
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | nrumpy-0.2.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 281.8 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a04ebd48d163a7da192a45ece8a0f9acc3fae51d1fcaf4d3ed25b39b341cc6f3
|
|
BLAKE2b-256 checksum How to use checksums |
58a356ac390fd2bd3bb91f97d31b69af91a48f6dbb18a24839ac1f39a256842b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp312-cp312-win_amd64.whl
| Download URL | nrumpy-0.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 192.8 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
937c991e5ad920edd189374b9f4f5c4eede3202604cf88628eee4b35548c3c12
|
|
BLAKE2b-256 checksum How to use checksums |
c3a366693799a60f92b946f79588e9354583cee61f12836a1e9fe229a2fa39bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp312-cp312-win32.whl
| Download URL | nrumpy-0.2.0-cp312-cp312-win32.whl |
|---|---|
| Size | 177.1 kB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
426e51a770b1fb8ec75e53570de483faecba039d604caf80f89987c10aa9658b
|
|
BLAKE2b-256 checksum How to use checksums |
3017be4b67fb17ae35362e4395855b5f336444f0b7201c154ff951d750e48c01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nrumpy-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 316.4 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
365f1745c8166b59be8655a58610efef2c3b23b28dab009108fea1497fc25592
|
|
BLAKE2b-256 checksum How to use checksums |
af80f795465909a8f9db614aa936c004e69fd72d289c1db3340d78e7ffc21225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | nrumpy-0.2.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 281.7 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
61f478b56309dcfa0df502d08b70673b8b8e80fd7a837328d8fa7373c2242cb2
|
|
BLAKE2b-256 checksum How to use checksums |
f53067097185c611b67c0efffd44cc9c575ce1e8d684aa4592f0b9967f63e370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp311-cp311-win_amd64.whl
| Download URL | nrumpy-0.2.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 196.4 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ba9dc91297db3b315b7d6bf0d511e26ad49dd6e5ec4555b6d43bff21bd8bdacb
|
|
BLAKE2b-256 checksum How to use checksums |
525f3eb1a6b853fc9082ed9932b1b14a3bf95087f7779d130cfc124b48698479
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp311-cp311-win32.whl
| Download URL | nrumpy-0.2.0-cp311-cp311-win32.whl |
|---|---|
| Size | 180.6 kB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
39a35655e59e445e594f4e9c5428a0bf15e797094b88f18e641bc6ef2e3043fc
|
|
BLAKE2b-256 checksum How to use checksums |
9858db44a934c5b20824b868de3df2f22498febce9a0af788aa20ccd0d452b02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nrumpy-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 322.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
2afcd2fa316f290e9010afbf10deb15debb57bc4c36dc73b7bf06e05291c1c1e
|
|
BLAKE2b-256 checksum How to use checksums |
df7865cea13770831389024537c545a3e1494c48e06f017225fffcfbb16d52b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | nrumpy-0.2.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 285.6 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
741a40fa67fa0a506874fc690e79fa96c298fb3198ec5fb60df4d6e49a3b2f09
|
|
BLAKE2b-256 checksum How to use checksums |
e9b9d0e973c71bd7a1a88a3a92e844a0f746fdbd3fcf37831c60049f31cda221
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp310-cp310-win_amd64.whl
| Download URL | nrumpy-0.2.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 196.4 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
41f2ffd225a8e95af0418673b0fd612472854dba24c3925400ba20fabdb802b9
|
|
BLAKE2b-256 checksum How to use checksums |
c92bc28c70fc5915260dbb155f2acf6c2acd9947d9e18ba4c64d93b3b2bd771b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp310-cp310-win32.whl
| Download URL | nrumpy-0.2.0-cp310-cp310-win32.whl |
|---|---|
| Size | 180.7 kB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
5dc692310304f57a79276f344b740e9ec6f7dbd66ece32053c041a12d886b20b
|
|
BLAKE2b-256 checksum How to use checksums |
6c86857246a69996b3485812deef8aeace3da19c6b955a75020b9c398e427eac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nrumpy-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 321.7 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
448cb3875126682784f864341583a4717bf77ec6e3ecb2e9354fe6a6cf90ca1f
|
|
BLAKE2b-256 checksum How to use checksums |
51bd10081697f29bdc1d107a63b41a023e49f436f957f4bcf5b82230cbb83473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / nrumpy-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | nrumpy-0.2.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 286.0 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
831762362afc43590d3830c7c1b63270e1f3298c416dceea65df4065bf53b440
|
|
BLAKE2b-256 checksum How to use checksums |
2bd2dacc04fb3b8f35af8b4d724da5c2e714194d927393bafd6131fe1988592d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for nrumpy 0.2.0
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
All 17 files in this release have been uploaded with provenance metadata.
Attestation for nrumpy-0.2.0.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 Nov 30, 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.