> > what I'm searching for is : > > In [18]: dotprod2(a,b) > Out[18]: array([ 0.28354876, 0.54474092, 0.22986942, 0.42822669, > 0.98179793]) > > where I defined a "classical" (in the way I understand it. I may not > understand it properly ?) dot product between these 2 vectors. > > def dotprod2(a,b): > return sum(a*b,axis=0) >
I think this is your best choice ;) Matthieu
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
