randRange(-2, 4, ROWS, COLS) randRange(-5, 5) "*" deepZipWith(2, function(a) { return a * SCALAR; }, MAT_A) deepZipWith(2, function(a) { return SCALAR; }, MAT_A) BLUE GREEN PINK printMatrix(MAT_A, MAT_A_COLOR) printMatrix(SCALAR_MAT, SCALAR_COLOR, MAT_A, MAT_A_COLOR, OPERATION) printMatrix(SOLN_MAT, SOLN_MAT_COLOR)
\Large{ \color{SCALAR_COLOR}{SCALAR} OPERATION PRETTY_MAT_A = {?} }

To multiply a matrix by a number, multiply each item of the matrix by the number.

\Large{PRETTY_HINT_MAT}

Now, simplify:

\Large{PRETTY_SOLN_MAT}

elem

2 2
2 3
3 1
3 2