Sparse vector & matrix implementations
npm install @thi.ng/sparse
!npm downloads

> [!NOTE]
> This is one of 214 standalone projects, maintained as part
> of the @thi.ng/umbrella monorepo
> and anti-framework.
>
> 🚀 Please help me to work full-time on these projects by sponsoring me on
> GitHub. Thank you! ❤️
- About
- Status
- Support packages
- Related packages
- Installation
- Dependencies
- API
- Authors
- License
Sparse vector & matrix implementations.
ALPHA - bleeding edge / work-in-progress
Search or submit any issues for this package
- @thi.ng/sparse-set - TypedArray-based sparse set implementations with extended ES Set API
- @thi.ng/matrices - Matrix & quaternion operations for 2D/3D geometry processing
- @thi.ng/vectors - Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
``bash`
yarn add @thi.ng/sparse
ESM import:
`ts`
import * as spa from "@thi.ng/sparse";
Browser ESM import:
`html`
For Node.js REPL:
`js`
const spa = await import("@thi.ng/sparse");
Package sizes (brotli'd, pre-treeshake): ESM: 3.76 KB
- @thi.ng/api
- @thi.ng/errors
- @thi.ng/transducers
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
TODO
If this project contributes to an academic publication, please cite it as:
`bibtex``
@misc{thing-sparse,
title = "@thi.ng/sparse",
author = "Karsten Schmidt",
note = "https://thi.ng/sparse",
year = 2018
}
© 2018 - 2026 Karsten Schmidt // Apache License 2.0