0.5.0 • Published 5 years ago

@odiak/numjs v0.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

NumJS

NumPy-like N-dimensional array implementation for JavaScript. (written in TypeScript)

This project is very in progress, and there are still few APIs. Feature requests and pull requests are welcome.

There are no documentation currently. See spec codes (*.spec.ts) or source codes directly.

Usage

import { createArray, einsum } from '@odiak/numjs'
const a = createArray([[1, 2], [3, 4], [5, 6]])
const b = createArray([[1, 2], [3, 4]])

const c = einsum('i,j; j,k -> i,k', a, b)
c.shape // = [2, 2]
c.get([0, 0]) // = 22
c.get([0, 1]) // = 28
c.get([1, 0]) // = 49
c.get([1, 1]) // = 64

const d = a.sum(0) // summing over axis 0
c.shape // = [2]
c.get(0) // = 9
c.get(1) // = 12
0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.0

6 years ago