type alias matrix

Represents a two-dimensional array of numbers.

This type defines a matrix, which is a two-dimensional array where each sub-array (row) contains numbers. Each row in the matrix must have the same length, and the elements must all be numbers.

Examples

Example 1

const myMatrix: matrix = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ];

Type Parameters

T = number

Definition

T[][]

Usage

import { type matrix } from "types.d.ts";