Skip to main content

Function: createEmptyMatrix()

createEmptyMatrix<T>(rows, columns): Matrix<T>

Defined in: src/matrix.ts:12

Creates an empty matrix with given rows and columns

Type Parameters​

T​

T

Parameters​

rows​

number

integer, the amount of rows the matrix should have

columns​

number

integer, the amount of columns the matrix should have

Returns​

Matrix<T>

an empty matrix with given rows and columns