2D matrix multiplication with scalar

I would like to multiply a 2D matrix by a scalar (say 0.016) and at the end have a 2D matrix as the result. What is the best way to do this? Thanks in advance!

k * X is the operation you are looking for, where, X is your 2D matrix and k is the scalar value.

1 Like

thank you very much!

I still have one question:

if k is a scalar value and X is a 2D matrix.
Can I also use X * k (which means does the * operator work in both directions?)