import { Matrix } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/utils/mod.ts";
Class for 2D Arrays. This is not akin to a mathematical Matrix (a collection of column vectors). This is a collection of row vectors. A special case of Tensor for 2D data.
Properties
Methods
Filter the matrix by rows
setAdd()
row: number,
col: number,
val: number | bigint,
Add a value to an existing element Will throw an error if the types mismatch
setCell()
row: number,
col: number,
val: number,
Set a value in the matrix
setCol(col: number, val: ArrayLike<number>): number
Replace a column
setRow(row: number, val: ArrayLike<number> | ArrayLike<bigint>)
Replace a row
[Symbol.for("Jupyter.display")](): Record<string, string>