I need a simple and fast function to multiply each row of numpy array 'a' to array 'b' a , b have same 2d dimention like the result of this is example(c): but I want a numpy function insted of this loop
a=np.arange(6).reshape(3,2)
b=np.arange(6,12).reshape(3,2)
c=np.array([[a[i,:]@b[i,:]]for i in range(a.shape[0])])