Introduction
numlin is a numerical computing library implemented in pure TypeScript.
It provides primitives for vector and matrix operations designed for
Just-In-Time (JIT) execution environments like Node.js.
Functionality
The library includes support for Universal Broadcasting, Logical Masks, and Numerically Stable Statistics.
Key Characteristics
- Mechanical Sympathy: Kernels utilizing loop unrolling and instruction-level parallelism.
- In-Place Operations: Supports
_suffixed methods (e.g.,add_) to reduce heap allocations. - DType Consistency: Type promotion ensuring mathematical correctness across
float64,int32, anduint8. - Memory Model: Manipulation methods like
reshapeandflattenshare the underlying memory buffer.