Skip to main content

createEmptyMatrix

Callable

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

  • Creates an empty matrix with given rows and columns


    Type parameters

    • 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