• Initializes a diagonal matrix.

    Parameters

    • size: number

      The number of rows or columns

    • Rest ...elements: number[]

      The elements on the main diagonal

    Returns ChalkboardMatrix

Generated using TypeDoc