Multiply a matrix by a scalar value with ease.
Enter the dimensions of the matrix and a scalar value to compute the result.
Scalar multiplication involves multiplying each element of a matrix \( A \) by a scalar \( k \). The result matrix \( C \) has elements:
Example: For \( A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \) and scalar \( k = 2 \), the result is \( \begin{bmatrix} 2 & 4 \\ 6 & 8 \end{bmatrix} \).