@thi.ng/sparse
Version:
Sparse vector & matrix implementations
109 lines (73 loc) • 3.24 kB
Markdown
<!-- This file is generated - DO NOT EDIT! -->
<!-- Please see: https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#changes-to-readme-files -->
# 
[](https://www.npmjs.com/package/@thi.ng/sparse)

[](https://mastodon.thi.ng/@toxi)
> [!NOTE]
> This is one of 216 standalone projects. LLM-free, human-made and
> cared for software, maintained as part of the
> [.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem and
> anti-framework.
>
> 🚀 Please help me to work full-time on these projects by [sponsoring
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
> Thank you! ❤️
- [About](#about)
- [Status](#status)
- [Support packages](#support-packages)
- [Related packages](#related-packages)
- [Installation](#installation)
- [Dependencies](#dependencies)
- [API](#api)
- [Authors](#authors)
- [License](#license)
## About
Sparse vector & matrix implementations.
## Status
**ALPHA** - bleeding edge / work-in-progress
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bsparse%5D)
## Support packages
- [.ng/sparse-set](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/sparse-set) - TypedArray-based sparse set implementations with extended ES Set API
## Related packages
- [.ng/matrices](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/matrices) - Matrix & quaternion operations for 2D/3D geometry processing
- [.ng/vectors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/vectors) - Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
## Installation
```bash
yarn add .ng/sparse
```
ESM import:
```ts
import * as spa from "@thi.ng/sparse";
```
Browser ESM import:
```html
<script type="module" src="https://esm.run/@thi.ng/sparse"></script>
```
[JSDelivr documentation](https://www.jsdelivr.com/)
For Node.js REPL:
```js
const spa = await import("@thi.ng/sparse");
```
Package sizes (brotli'd, pre-treeshake): ESM: 3.76 KB
## Dependencies
- [.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
- [.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
- [.ng/transducers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers)
Note: .ng/api is in _most_ cases a type-only import (not used at runtime)
## API
[Generated API docs](https://docs.thi.ng/umbrella/sparse/)
TODO
## Authors
- [Karsten Schmidt](https://thi.ng)
If this project contributes to an academic publication, please cite it as:
```bibtex
{thing-sparse,
title = "@thi.ng/sparse",
author = "Karsten Schmidt",
note = "https://thi.ng/sparse",
year = 2018
}
```
## License
© 2018 - 2026 Karsten Schmidt // Apache License 2.0