Chalkboard - v3.0.4
    Preparing search index...

    Function identity

    • Initializes an identity matrix.

      Parameters

      • size: number

        The number of rows or columns of the matrix

      Returns ChalkboardMatrix

      const result = Chalkboard.matr.identity(3); // Returns the 3-by-3 identity matrix