Chalkboard - v3.0.4
    Preparing search index...

    Function push

    • Returns a matrix with a row or column added (pushed in).

      Parameters

      • matr: ChalkboardMatrix

        The matrix

      • index: number

        The index of the row or column to push

      • axis: 0 | 1

        The axis to push to, which is 0 for the rows or 1 for the columns

      • elements: number[]

        The elements to push

      Returns ChalkboardMatrix

      const result = Chalkboard.matr.push([[1, 2], [3, 4]], 1, 0, [5, 6]); // Inserts a row at index 1