When you divide a matrix by a single number in R, every element in the matrix will be divided by this number.
In matrix calculus in R, all computations are done element-wise.
In vector calculus in R, computations are not done element-wise.
When you multiply a matrix and a vector in R, you will end up with a vector.