NumKong

raw JSON →
7.6.0 verified Mon Apr 27 auth: no python

Portable mixed-precision math, linear-algebra, and retrieval library with 2000+ SIMD kernels for x86, Arm, RISC-V, LoongArch, Power, and WebAssembly. Version 7.6.0, released on a monthly cadence.

pip install numkong
error ModuleNotFoundError: No module named 'numkong'
cause numkong not installed or installed in wrong environment.
fix
Run pip install numkong in your active environment.
error ImportError: cannot import name 'tensor' from 'numkong'
cause Typo or outdated version; the correct symbol is `numkong.tensor` (lowercase).
fix
Use from numkong import tensor.
deprecated In v7.3.0, Arm NEON kernels were hardened; old code using `_x` predicated intrinsics may produce wrong results for non-power-of-two dimensions. Ensure you use v7.3.0+ for Arm SVE/SME.
fix Upgrade to v7.3.0 or later.
gotcha Importing `numkong` does not automatically import `numpy`; if you need both, import them separately.
fix Use `import numkong as nk; import numpy as np`.
gotcha The library uses C extensions; on some platforms (e.g., Alpine Linux), you may need to install gcc and Python headers to compile from source if no wheel is available.
fix Install build dependencies: `apk add gcc musl-dev python3-dev`.