Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/denosaurs/algebra

➗ Powerful math library for Deno (WIP)
https://github.com/denosaurs/algebra

algebra deno math ndarray scientific-computing

Last synced: about 9 hours ago
JSON representation

➗ Powerful math library for Deno (WIP)

Awesome Lists containing this project

README

        

# algebra

---
> ⚠️ This project is work in progress. Expect breaking changes.
---

```typescript
import * as ab from "https://deno.land/x/algebra/nd.ts";

let a = ab.arange(0, 2, 0.5);
console.log(a.string());

a = a.reshape([2, 2]);
console.log(a.string());
console.log(a.idx([1, 1]));

let b = ab.random([8, 8, 8]);
console.log(b.string());

const slice = Array(b.ndim()).fill(ab.Range(2, 6, 1));
let c = b.slice(slice);
console.log(c.string());

let d = ab.array([]);
console.log(d.mean())