Re: how to multiply two matrices with different size?

2016-11-18 Thread Ian Kelly
On Fri, Nov 18, 2016 at 6:51 PM, wrote: > Hi :) > I'm trying to multiply two matrices that has different size. > > -code- > > import numpy as np > > a = np.random.randn(4, 3) > b = np.random.randn(4, 1) > > print

how to multiply two matrices with different size?

2016-11-18 Thread limetree377
Hi :) I'm trying to multiply two matrices that has different size. -code- import numpy as np a = np.random.randn(4, 3) b = np.random.randn(4, 1) print a print b -code- How