Skip to content

numx v1.0.0 - First Stable Release

Latest

Choose a tag to compare

@erfanjazebnikoo erfanjazebnikoo released this 05 Jul 19:28
61a99b2

numx v1.0.0 — First Stable Release

The first stable release of numx: a pure C99 scientific computing library for resource-constrained embedded systems. Zero dynamic memory allocation, zero external dependencies, runs identically on ESP32, ARM Cortex-M/A, RISC-V, AVR, and regular x86-64/ARM64 machines.

This release completes the full 4-phase plan and adds post-quantum cryptography support: the Number Theoretic Transform, the algebraic core of CRYSTALS-Kyber and CRYSTALS-Dilithium, the NIST-standardized post-quantum algorithms.

14 modules

Foundation - linalg, stats, roots, integrate, differentiate, interpolate, poly, ode
Signal processing - signal, fft
Unicorn algorithms - autodiff, compressed_sensing, sketch
Post-quantum cryptography - ntt

NTT (post-quantum)

Negacyclic NTT over Z_3329[x]/(x^256+1) with CRYSTALS-Kyber/Dilithium parameters: forward NTT, inverse NTT, pointwise multiplication (basemul), full polynomial multiplication, and Barrett coefficient reduction. Seven Cooley-Tukey / Gentleman-Sande butterfly stages, precomputed twiddle tables, zero heap allocation, 29 unit tests. Every cryptographic constant (384 table entries plus the Barrett and normalization constants) was independently re-derived and verified. See docs/algorithms/ntt.md for the full math and an honest note on the one place the implementation isn't fully constant-time (the Barrett reduction's final canonicalization step).

Hardware validation

  • ARM64 Apple M4 Pro / macOS / Apple clang 21.0.0 — 329/329 tests passing
  • ARM64 Raspberry Pi 4B / Raspbian GNU/Linux 13 / gcc 14.2.0 — 329/329 tests passing
  • Windows x64 / MSVC 14.51 / float64 — 329/329 tests passing
  • Windows x86 (32-bit, i386) / MSVC 19.51 — 329/329 tests passing (new architecture)
  • Linux x86-64 / WSL2 Ubuntu 24.04 / gcc 13.3.0 / float64 — 329/329 tests passing (new environment)
  • Linux x86 (32-bit) / WSL2 Ubuntu 24.04 / gcc 13.3.0 — 329/329 tests passing (new environment)
  • ESP32-S3 / ESP-IDF v5.5.2 — 29/29 NTT tests passing via a standalone example project

Full per-platform results: validation/results/ntt/ntt.md.

Also in this release

  • Raspberry Pi 4B Phase 1 & 2 hardware validation (300/300 tests)
  • Windows and ESP32 benchmark suites, standalone x86/x64 test builds
  • examples/06_ntt.c — polynomial multiplication and the ring's negacyclic wraparound

Full changelog

See CHANGELOG.md for the complete list.

Full diff: v0.1.0...v1.0.0