Multiply matrix by scalar (#670)

Multiply matrix by scalar (#670)

Multiply each element of the matrix by the scalar.