# mm6

> Mathematics & Matrix Library

Latest version **0.1.0** (published 2019-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install mm6
pnpm add mm6
yarn add mm6
bun add mm6
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-10-10 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 163.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ccckmit |
| Maintainers | ccckmit |
| Keywords | mathematics, numeric, matrix, tensor, vector, statistics, probability, calculus |

## Links

- npm: https://www.npmjs.com/package/mm6
- npm.io page: https://npm.io/package/mm6

## Dependencies (2)

- [se6](https://npm.io/package/se6.md) ^1.0.0
- [uu6](https://npm.io/package/uu6.md) ^1.0.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-10-10
- 0.0.1 — 2019-10-10

## README

# mm6 -- Mathematics & Matrix Library

mm6 is a mathematics library for javascript, include package

1. vector
2. matrix
3. tensor
4. statistics
5. probability
6. function
7. calculus
8. geometry
9. optimize
10. polynomial

## Install

```
$ npm install mm6
```

## Example

```js
const uu6 = require('uu6')
const mm6 = require('../src')
const {T} = mm6

let shape = [2,2,3], idx=[1,1,2]
let v = uu6.range(0,12)
console.log('v=%j', v)

let t = T.new({r:v, shape:shape})
console.log('t.get(%j)=', idx, T.get(t, ...idx))
console.log('t=%s', T.str(t))

T.reshape(t, [3,4])

console.log('t=%s', T.str(t))

let nd = T.tensor2ndarray(t)
console.log('nd=%j', nd)

let t2 = T.ndarray2tensor(nd)
console.log('t2=%j', t2)

let t3 = T.add(t, t)
console.log('t3=%j', t3)

let t4 = T.sub(t, t)
console.log('t4=%j', t4)
```

Run

```
$ node tensor1.js
v=[0,1,2,3,4,5,6,7,8,9,10,11]
t.get([1,1,2])= { r: 11, i: 0 }
t=[[[0,1,2],[3,4,5]],[[6,7,8],[9,10,11]]]
t=[[0,1,2,3],[4,5,6,7],[8,9,10,11]]
nd=[[0,1,2,3],[4,5,6,7],[8,9,10,11]]
t2={"r":[0,1,2,3,4,5,6,7,8,9,10,11],"i":[],"shape":[3,4]}
t3={"r":[0,2,4,6,8,10,12,14,16,18,20,22],"i":[],"shape":[3,4]}
t4={"r":[0,0,0,0,0,0,0,0,0,0,0,0],"i":[],"shape":[3,4]}
```

---
_Source: https://npm.io/package/mm6 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
