Name | numba-lapack JSON |
Version |
0.1.2
JSON |
| download |
home_page | None |
Summary | UNSAFE Numba intrinsics for BLAS/LAPACK via SciPy C-API |
upload_time | 2025-08-29 04:22:39 |
maintainer | None |
docs_url | None |
author | Mikołaj Tadeusz Żychowicz |
requires_python | >=3.9 |
license | Copyright (c) 2025, Mikołaj Tadeusz Żychowicz
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
keywords |
numba
blas
lapack
scipy
jit
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<p align="center">
<picture>
<source srcset="https://raw.githubusercontent.com/MTZ-dev/numba-lapack/main/docs/_static/logo.svg" type="image/svg+xml">
<img src="https://raw.githubusercontent.com/MTZ-dev/numba-lapack/main/docs/_static/logo.png"
alt="numba-lapack"
width="180">
</picture>
</p>
# 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
```python
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)
Raw data
{
"_id": null,
"home_page": null,
"name": "numba-lapack",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "numba, blas, lapack, scipy, jit",
"author": "Miko\u0142aj Tadeusz \u017bychowicz",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/a3/d0/64d12f52b65d49efb7819cca1d7f9604a1fecc44c44b33fbba5a0d3d33a5/numba_lapack-0.1.2.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n <picture>\n <source srcset=\"https://raw.githubusercontent.com/MTZ-dev/numba-lapack/main/docs/_static/logo.svg\" type=\"image/svg+xml\">\n <img src=\"https://raw.githubusercontent.com/MTZ-dev/numba-lapack/main/docs/_static/logo.png\"\n alt=\"numba-lapack\"\n width=\"180\">\n </picture>\n</p>\n\n# numba-lapack\n\nUNSAFE, zero-overhead Numba intrinsics that expose the full BLAS/LAPACK C-APIs\nvia SciPy\u2019s `__pyx_capi__`. Call BLAS/LAPACK directly from `@njit` in nopython mode.\n\n> \u26a0\ufe0f **Unsafe means unsafe**: raw pointer semantics; you are responsible for valid pointers, shapes, and leading dimensions.\n\n## Highlights\n\n- Auto-discovers `scipy.linalg.cython_blas` and `cython_lapack` symbols at import.\n- Generates Numba `@intrinsic` wrappers with the *exact* ABI (no Python overhead).\n- Accepts arrays, typed pointers, or by-ref scalars for pointer parameters.\n- Ships type stubs so IDEs can see function names & arg docs.\n\n## Quick start\n\n```python\nimport numpy as np\nfrom numba import njit\nfrom numba_lapack import dgemm\n\n@njit(cache=True)\ndef gemm_nn(A, B, C, alpha, beta):\n m, k = A.shape\n _, n = B.shape\n dgemm(np.uint8(ord('N')), np.uint8(ord('N')),\n m, n, k, alpha, A, m, B, k, beta, C, m)\n",
"bugtrack_url": null,
"license": "Copyright (c) 2025, Miko\u0142aj Tadeusz \u017bychowicz\n All rights reserved.\n \n Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n \n 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
"summary": "UNSAFE Numba intrinsics for BLAS/LAPACK via SciPy C-API",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/MTZ-dev/numba-lapack",
"Issues": "https://github.com/MTZ-dev/numba-lapack/issues"
},
"split_keywords": [
"numba",
" blas",
" lapack",
" scipy",
" jit"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7bfaa89e8b3aa86754441952d66672ced44232d18d3e40030956cad2107a11dd",
"md5": "8870725a933fc476b70d7c9b35d004bc",
"sha256": "e64d1edd8c5773024e8640ea9caa1cccb01f4611fa472e5d37f751f27e4f2dc4"
},
"downloads": -1,
"filename": "numba_lapack-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8870725a933fc476b70d7c9b35d004bc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 66697,
"upload_time": "2025-08-29T04:22:37",
"upload_time_iso_8601": "2025-08-29T04:22:37.956268Z",
"url": "https://files.pythonhosted.org/packages/7b/fa/a89e8b3aa86754441952d66672ced44232d18d3e40030956cad2107a11dd/numba_lapack-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a3d064d12f52b65d49efb7819cca1d7f9604a1fecc44c44b33fbba5a0d3d33a5",
"md5": "4f61032fe46c5bb4c46206ee74466c39",
"sha256": "4126c6ec0db91c405e625af79021a8c2c7497a68f7d337d8c4dc8b8265221b03"
},
"downloads": -1,
"filename": "numba_lapack-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "4f61032fe46c5bb4c46206ee74466c39",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 66747,
"upload_time": "2025-08-29T04:22:39",
"upload_time_iso_8601": "2025-08-29T04:22:39.129916Z",
"url": "https://files.pythonhosted.org/packages/a3/d0/64d12f52b65d49efb7819cca1d7f9604a1fecc44c44b33fbba5a0d3d33a5/numba_lapack-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-29 04:22:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MTZ-dev",
"github_project": "numba-lapack",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "numba-lapack"
}