How can I multiply a column vector with a matrix element wise in Numpy
You can transpose X and then multiply it by sub_res using numpy.dot and finally transpose the final result.
I have a numpy array X with shape (100,3) and a numpy array sub_res with shape (100,). How can I multiply sub_res element-wise with X so that I can get the resultant shape (100,3)? I want to avoid loop usage.