Matrix interface

A two-dimensional matrix.

Signature:

export declare interface Matrix 

Properties

PropertyTypeDescription
columnsnumberThe number of columns.
datanumber[]The values as a flattened one-dimensional array.
rowsnumberThe number of rows.

Matrix.columns

The number of columns.

Signature:

columns: number;

Matrix.data

The values as a flattened one-dimensional array.

Signature:

data: number[];

Matrix.rows

The number of rows.

Signature:

rows: number;