type alias numarraymatrix

Union type for numeric, array, or matrix values

Represents a value that can be a scalar number, a 1D array, or a 2D matrix. This type is commonly used in functions that accept flexible input types.

Examples

Example 1

const scalar: numarraymatrix = 5; const vector: numarraymatrix = [1, 2, 3]; const matrix: numarraymatrix = [[1, 2], [3, 4]];

Type Parameters

T = number

Definition

T
| array<T>
| matrix<T>

Usage

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