Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Eye

import { Eye } from "https://git.sr.ht/~ruivieira/deno-experiments/blob/master/mentat/linalg/core.ts";

Creates a n x n identity matrix

function Eye(n: number): Matrix;
§
Eye(n: number): Matrix
[src]

§Parameters

§
n: number
[src]

number of rows and columns

§Return Type

§

const n = 3; const diagonal = Eye(n);