Vectorized way of calculating row-wise dot product two matrices with Scipy Vectorized way of calculating row-wise dot product two matrices with Scipy numpy numpy