Skip to main content

numba-lapack

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_blas and cython_lapack symbols at import.
  • Generates Numba @intrinsic wrappers 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)

Source distribution for numba-lapack 0.1.2
File Size Uploaded
numba_lapack-0.1.2.tar.gz 66.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for numba-lapack 0.1.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page