ndarray: Modular multidimensional arrays for JavaScript
summary
Implements strided multidimensional arrays in JavaScript with typed array backing and an explicit data/shape/stride/offset API that gives constant-time slicing and zero-copy views; supports custom get/set stores for sparse data. Elementwise operations use cwise with function.toString JIT codegen and a cache-oblivious JIT loops strategy to match cache layouts. Demonstrations include real-time image filters, audio time-stretching, Gray–Scott PDE, voxelization, an ND marching-cubes extractor and a Burrows–Wheeler demo; modules run in browser and Node.
AI-written summary · about
chapters (13)
- 0:00Introduction and motivation
- 1:05Live demos of ndarray applications
- 3:51Array implementation approaches
- 8:20Introducing ndarray core
- 10:25How ndarray works
- 13:53Slicing and transformations demo
- 16:22Sparse arrays and extensions
- 17:24Extending functionality with modules
- 19:09Cwise code generation
- 21:38WebGL and utility modules
- 23:44Burrows-Wheeler transform demo
- 26:33Future plans and conclusion
- 28:47Q&A session
