High-performance numerical toolkit backed by Rust
Project description
RMath: Silicon-Speed Numerical Computing for Python
RMath is a high-performance numerical toolkit backed by a high-concurrency Rust engine. It provides NumPy-equivalent APIs with significant speedups in multi-threaded environments, leveraging Rayon for data-parallelism and PyO3 for zero-overhead FFI.
🚀 Why RMath?
- Zero-GIL Parallelism: Perform heavy matrix operations and statistical calculations without blocking the Python Global Interpreter Lock.
- Rust Precision: Built on
faer,matrixmultiply, andndarrayfor industrial-grade accuracy. - Triple-Tier Storage: Automatic selection between Inline-Stack, Heap, and Memory-Mapped storage based on data size.
- No Compiler Required: Distributed as pre-compiled wheels for all major platforms.
🛠 Features & Modules
1. rmath.array & rmath.vector
Core N-dimensional array processing engine.
import rmath as rm
import rmath.vector as rv
# SIMD-accelerated vector ops
v1 = rv.Vector([1.0, 2.0, 3.0])
v2 = v1.exp().sin() # Parallelized element-wise ops
2. rmath.linalg
Advanced matrix solvers and decompositions.
- Solvers: LU, QR, Cholesky, and SVD.
- Inversion: High-speed matrix inversion via partial pivoting.
3. rmath.stats
Real-time descriptive and inferential statistics.
- Uses Welford’s Algorithm for single-pass, numerically stable variance/mean calculation.
- Full support for regression, p-value approximations, and distributions (Normal, Gamma, Beta).
📦 Installation
Install the pre-compiled binaries via pip:
pip install rmath
📖 Modern Documentation Portal
For the full API reference, architectural deep-dives, and performance benchmarks, visit our premium documentation portal:
👉 https://Ay-developerweb.github.io/rmath/
⚡ Quick Start
import rmath as rm
# Generate a 1000x1000 matrix
arr = rm.Array.randn(1000, 1000)
# High-speed parallel stats
avg = arr.mean()
std = arr.std()
# Linear Algebra Solver
b = rm.Array.ones(1000, 1)
x = rm.linalg.solve(arr, b)
print(f"Residual Sum: {x.sum()}")
🤝 Contributing
RMath is built in Rust (src/) and exposed to Python via PyO3.
- Rust: Core logic, SIMD, and Parallelism.
- Python: High-level API and Type Stubs (
.pyi).
📜 License
Dual-licensed under MIT and Apache 2.0.
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 Distributions
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 rmath_engine-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8c37789eef66acff624305c3169639549122e8a68c4fde786d8cf4ddf049ec5
|
|
| MD5 |
22ab55c1804af7f3f6c80e4c9f519733
|
|
| BLAKE2b-256 |
30832911592cfbd5172602c77f1d6401b6133bd52f37fa78fa830991b134e9f5
|
File details
Details for the file rmath_engine-0.1.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98800e16e0f7ca78b06a7fd1f5d3979f47b82b082859871cb3078dfbc3910d1d
|
|
| MD5 |
415fd00c99cbab35094a0bd67d44e831
|
|
| BLAKE2b-256 |
718214309b0847908d311a72fefeac4f8736bc0793bb5b3d58745ba17b42c7e3
|
File details
Details for the file rmath_engine-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c64188bfe9f0792ab62cd60c75fecf43b73f6e465a8ddd962fe2aeb3e8fcfff8
|
|
| MD5 |
54214f188907d9a10aebbf9751a0221a
|
|
| BLAKE2b-256 |
df28d6ff0741adbfe4325c628ff292a7514f2c510fc1f87afc8b9f3505f8c1fc
|
File details
Details for the file rmath_engine-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86b05f8383151657b324e5d6482790b72511f0ad9a994223b410287f487ad65f
|
|
| MD5 |
b7997e45cb78d6dee53d82ddd53fbddd
|
|
| BLAKE2b-256 |
5ea48363df00fc993f306b3c3e568607299aa3a5e12568be93a1245064aa2c37
|
File details
Details for the file rmath_engine-0.1.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9405c953f11376b2b6c2a62809a8fd152b20a7101755991cf0df2c495866ca6
|
|
| MD5 |
90218f1da5eb02aa5c6424bc10020f5f
|
|
| BLAKE2b-256 |
7922bb3a44fdb6ebdd1eadee80e9604fb412445650d435e9f764d5befd152be0
|
File details
Details for the file rmath_engine-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7640cae4e613cb8feb143dfaf232cdfae0f1ca6fb7d8a1cfb29267b37fa5f89
|
|
| MD5 |
254c846a01c1b145f46cbc79ba6a6ec9
|
|
| BLAKE2b-256 |
af59c45878de0f7b11487c812dc9ffe3693a2ec9fa90fd6074dffad0aec465d5
|
File details
Details for the file rmath_engine-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3a2d97462916130b63f8d7838c51b35b6594d1ee15cc7f7743874dc2eb303d8
|
|
| MD5 |
dd2ea1161c0d0beb35a59a4574737f0c
|
|
| BLAKE2b-256 |
3e948db538f195b95989e90ed2db824a5b0ab26f938aa4f342ce55455e84c767
|
File details
Details for the file rmath_engine-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8817abf3ddf5be018a04b9df54cfb0bd7a93f8ab06ee5a85c3d1bcfb5a0d0259
|
|
| MD5 |
5ab0068c515bdecdcb4bafbd77d8569c
|
|
| BLAKE2b-256 |
f1a38b907fd32a3befa66079055d6de3f2062b6d46c242716baf734ae528e4f9
|
File details
Details for the file rmath_engine-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d17160c17da35c276537b2d69bc379f26ebe0dc784e5e27bd10094f9b17aa16
|
|
| MD5 |
a179a0eac7e6d0f50fa67aeba01c6009
|
|
| BLAKE2b-256 |
370b52f7ab1309009c8d2342bda636793dab07b03fe04f96d32d9d697f275889
|
File details
Details for the file rmath_engine-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e69aa98b076f6cd6be159a1cedaec53ed1395daa262472e612a0cff4b44ca259
|
|
| MD5 |
29a4b17a4d21caa37929c0dcbe1c2be1
|
|
| BLAKE2b-256 |
186b31d45affb0c65b4ce54c201375ff295c4c519b67d3f63156fda244f99cdc
|
File details
Details for the file rmath_engine-0.1.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c6eb7079364d09aa142f2943d7a6e8b555855df1b9c026c93a4bda8023f53d3
|
|
| MD5 |
18c267145c8e1934f46bef1aa007e97b
|
|
| BLAKE2b-256 |
9db1dd98d0b4b454d0851d36bfa367d1e47a0eaeb18f4fd561ceba737913e1ae
|
File details
Details for the file rmath_engine-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b5d0cbc4ce19b88b2e3db2e6cb119208be241eb762cb603d23107ec7978f38a
|
|
| MD5 |
bdf13fb09cf6f16b1d696658f64f7565
|
|
| BLAKE2b-256 |
bbf32bf90ad42214e3969898f2bad44c2521c4ab34d6d3c9aacdbdbad4248a23
|
File details
Details for the file rmath_engine-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef267313d264ec40fd556c4f1d6a44f07f6ab195494c25224f91a945e1e905e4
|
|
| MD5 |
8440f0295bf89a701a24fcf008be1b79
|
|
| BLAKE2b-256 |
b557176650449b9b4355bff0a65ee880c0198e3d6c9ac495cdb0a0390bdfa86d
|
File details
Details for the file rmath_engine-0.1.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb15390b7ede5f120d59eda4ab0eac019356de477ac2a6f42b44707645c424c7
|
|
| MD5 |
171d38374e67f3fab4ec8cfef5746836
|
|
| BLAKE2b-256 |
d2f6c5c5981846082e4ca54874d2a66c76c28f0ebd5af198b149a3d09dd5130f
|
File details
Details for the file rmath_engine-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39ae8123bbdfa5afe49546b2ccfc918fd711e53026e590cc76f16d61a9ad9cbc
|
|
| MD5 |
85f1f35ba93e1bb725233f14e4eb5c72
|
|
| BLAKE2b-256 |
afef5e045df4296aecc34e2ca3541a923a229894b2bb0b53ebde28711503fc65
|
File details
Details for the file rmath_engine-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66bd1b71109377c84a90a8250e70ba8c4e307594be4e70c2b7b916fa5093b031
|
|
| MD5 |
78d696acb857eb90b2cac30103f9ca43
|
|
| BLAKE2b-256 |
dc7169b557f16f487dabea17f83462a74c2b5f47a328b5018090eaff337c7eba
|
File details
Details for the file rmath_engine-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d3f96805b07b97d1d7e787956075393ecb813ed9d71b88de14eb2e6923569f2
|
|
| MD5 |
4f13f5bd878d3d87666fc52287a6f7e4
|
|
| BLAKE2b-256 |
1d4d97e0b29013cab6e6cd4bd1c3805308cf63c01f88274e033b256cea57c8d0
|
File details
Details for the file rmath_engine-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rmath_engine-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08e5170723cea9cbe11e3d8af9191d3e113218d97e59bff6623744287ee6e7bf
|
|
| MD5 |
31cd5343467201e5814454add3083b9d
|
|
| BLAKE2b-256 |
e1dda383900b811b5b986f7da71ffe40353264ebe40139551bf2db1b15fd4b48
|