https://github.com/stacksjs/ts-ndarray
π Multidimensional arrays for JavaScript & TypeScript.
https://github.com/stacksjs/ts-ndarray
arrays library multidimensional multidimensional-arrays typescript
Last synced: 7 months ago
JSON representation
π Multidimensional arrays for JavaScript & TypeScript.
- Host: GitHub
- URL: https://github.com/stacksjs/ts-ndarray
- Owner: stacksjs
- License: mit
- Created: 2025-02-10T20:25:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-18T18:13:14.000Z (7 months ago)
- Last Synced: 2025-09-18T21:11:45.313Z (7 months ago)
- Topics: arrays, library, multidimensional, multidimensional-arrays, typescript
- Language: TypeScript
- Homepage:
- Size: 391 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README

[![npm version][npm-version-src]][npm-version-href]
[![GitHub Actions][github-actions-src]][github-actions-href]
[](http://commitizen.github.io/cz-cli/)
# ts-ndarray
> A TypeScript library for working with n-dimensional arrays.
## Features
- **N-dimensional**: Create and manipulate n-dimensional arrays.
- **Multilinear** Bilinear and trilinear interpolation for ndarrays.
- **Images** Utilities to read an image into an ndarray.
- **Simple**: A simple API for working with n-dimensional arrays.
- **Fast**: Built with performance in mind.
- **Typed**: Written in TypeScript.
## Get Started
### Installation
```bash
npm install ts-ndarray
# bun i ts-ndarray
```
### Usage
```ts
import { NdArray } from 'ts-ndarray'
```
## Testing
```bash
bun test
```
## Changelog
Please see our [releases](https://github.com/stackjs/ts-ndarray/releases) page for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
[Discussions on GitHub](https://github.com/stacksjs/ts-starter/discussions)
For casual chit-chat with others using this package:
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
## Postcardware
βSoftware that is free, but hopes for a postcard.β We love receiving postcards from around the world showing where `ts-ndarray` is being used! We showcase them on our website too.
Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States π
## Credits
- Thanks to [Mikola Lysenko](https://github.com/mikolalysenko) for the original [`ndarray`](https://github.com/scijs/ndarray) library, [`ndarray-linear-interpolate`](https://github.com/scijs/ndarray-linear-interpolate), [`ndarray-pack`](https://github.com/scijs/ndarray-pack), and [`get-pixels`](https://github.com/scijs/get-pixels).
## Sponsors
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
- [JetBrains](https://www.jetbrains.com/)
- [The Solana Foundation](https://solana.com/)
## License
The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.
Made with π
[npm-version-src]: https://img.shields.io/npm/v/ts-ndarray?style=flat-square
[npm-version-href]: https://npmjs.com/package/ts-ndarray
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/stacksjs/ts-starter/ci.yml?style=flat-square&branch=main
[github-actions-href]: https://github.com/stacksjs/ts-starter/actions?query=workflow%3Aci