numts
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

NumTs

NumTs is a TypeScript library that provides a set of mathematical functions and data structures that aim to reproduce some of the functionalities of NumPy, a popular Python library for numerical computing. NumTs is designed for developers who work with TypeScript and want to perform numerical operations efficiently.

Installation

You can install NumTs via npm:

$ npm install numts

Usage

NumTs provides a range of mathematical functions and data structures that you can use in your TypeScript code. Here's a quick overview of what NumTs offers:

Arrays

NumTs provides an NdArray class that you can use to create and manipulate n-dimensional arrays. Here's an example:

import { NdArray } from 'numts';

const a = await NdArray.From([1, 2, 3, 4, 5, 6], [2, 3], "i8");
const b = await NdArray.From([-1, -2, -3, -4, -5, -6], [2, 3], "i8");
a.add(b);

Support for WebAssembly

NumTs provides a range of functions that you can use to perform linear algebra operations leveraging on webassembly performances. Here's an example:

import { NdArray } from 'numts';

const a = await NdArray.From([1, 2, 3, 4, 5, 6], [2, 3], "i8", "wasm");
const b = await NdArray.From([-1, -2, -3, -4, -5, -6], [2, 3], "i8", "wasm");
a.dot(b);

Contributing

If you'd like to contribute to NumTs, please fork the repository and make your changes. Once you've made your changes, create a pull request, and we'll review your changes.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.00
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.21
1.0.10
1.0.01

Package Sidebar

Install

npm i numts

Weekly Downloads

1

Version

1.1.0

License

Apache-2.0

Unpacked Size

333 kB

Total Files

23

Last publish

Collaborators

  • ansi_code