Functions

f
diag(
x: array | matrix,
k?: number
): array | matrix
4 overloads

Diagonal matrix creation and extraction of diagonals from a matrix.

Usage

import * as mod from "matarrs/diag.ts";