numba-lapack
UNSAFE, zero-overhead Numba intrinsics that expose the full BLAS/LAPACK C-APIs
via SciPy’s __pyx_capi__. Call BLAS/LAPACK directly from @njit in nopython mode.
⚠️ Unsafe means unsafe: raw pointer semantics; you are responsible for valid pointers, shapes, and leading dimensions.
Highlights
- Auto-discovers
scipy.linalg.cython_blasandcython_lapacksymbols at import. - Generates Numba
@intrinsicwrappers with the exact ABI (no Python overhead). - Accepts arrays, typed pointers, or by-ref scalars for pointer parameters.
- Ships type stubs so IDEs can see function names & arg docs.
Quick start
import numpy as np
from numba import njit
from numba_lapack import dgemm
@njit(cache=True)
def gemm_nn(A, B, C, alpha, beta):
m, k = A.shape
_, n = B.shape
dgemm(np.uint8(ord('N')), np.uint8(ord('N')),
m, n, k, alpha, A, m, B, k, beta, C, m)
Metadata
Release files for numba-lapack 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| numba_lapack-0.1.2.tar.gz | 66.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| numba_lapack-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 133.4 kB
Release files / numba_lapack-0.1.2.tar.gz
| Download URL | numba_lapack-0.1.2.tar.gz |
|---|---|
| Size | 66.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4126c6ec0db91c405e625af79021a8c2c7497a68f7d337d8c4dc8b8265221b03
|
|
BLAKE2b-256 checksum How to use checksums |
a3d064d12f52b65d49efb7819cca1d7f9604a1fecc44c44b33fbba5a0d3d33a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Release files / numba_lapack-0.1.2-py3-none-any.whl
| Download URL | numba_lapack-0.1.2-py3-none-any.whl |
|---|---|
| Size | 66.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e64d1edd8c5773024e8640ea9caa1cccb01f4611fa472e5d37f751f27e4f2dc4
|
|
BLAKE2b-256 checksum How to use checksums |
7bfaa89e8b3aa86754441952d66672ced44232d18d3e40030956cad2107a11dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|