@thi.ng/sparse
TypeScript icon, indicating that this package has built-in type declarations

0.3.125 • Public • Published

@thi.ng/sparse

npm version npm downloads Mastodon Follow

[!NOTE] This is one of 198 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

Sparse vector & matrix implementations.

Status

ALPHA - bleeding edge / work-in-progress

Search or submit any issues for this package

Support packages

  • @thi.ng/sparse-set - TypedArray-based sparse set implementations with extended ES Set API

Related packages

  • @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

Installation

yarn add @thi.ng/sparse

ESM import:

import * as spa from "@thi.ng/sparse";

Browser ESM import:

<script type="module" src="https://esm.run/@thi.ng/sparse"></script>

JSDelivr documentation

For Node.js REPL:

const spa = await import("@thi.ng/sparse");

Package sizes (brotli'd, pre-treeshake): ESM: 3.40 KB

Dependencies

Note: @thi.ng/api is in most cases a type-only import (not used at runtime)

API

Generated API docs

TODO

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-sparse,
  title = "@thi.ng/sparse",
  author = "Karsten Schmidt",
  note = "https://thi.ng/sparse",
  year = 2018
}

License

© 2018 - 2024 Karsten Schmidt // Apache License 2.0

Package Sidebar

Install

npm i @thi.ng/sparse

Weekly Downloads

416

Version

0.3.125

License

Apache-2.0

Unpacked Size

43.1 kB

Total Files

21

Last publish

Collaborators

  • thi.ng