[Numpy-discussion] multiply array

wilson wilson.t.thompson at gmail.com
Fri Apr 4 03:28:22 EDT 2008


> #of shape (1,6)
> eval=array([[3.,3.2,1.,1.1,5.,0.5]])
>

eval.shape=(-1,)

please not the correction..i need to multiply first row of egimgs with
3.0 ,second row with 3.2,....last(sixth) row with 0.5 ..For that
purpose i made the above into a 1 dimensional array.
A for loop seems inefficient in the case of big arrays
W



More information about the NumPy-Discussion mailing list