Function matscale

  • Scale a matrix by a scalar.

    Parameters

    • matrix: number[][]

      The matrix to scale.

    • amount: number

      The amount to scale by.

    Returns number[][]

    The scalar multiple.