Skip to content

Commit

Permalink
updated README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
NippunSharma committed Dec 19, 2022
1 parent 78b5eb7 commit ace5b95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ npm install "@ml.js/linalg"

### Basic usage.
```typescript
import { mljsInit } from "@ml.js/core";
import { Matrix } from "@ml.js/linalg";

await mljsInit(); // initialize mljs-core.

async getMatrix() {
const A: Matrix<number> = new Matrix<number>({ n_rows: 2, n_cols: 2 }, "float");
await A.init();
return A;
}

Expand Down

0 comments on commit ace5b95

Please sign in to comment.