[Numpy-discussion] Row-wise dot product?

Nadav Horesh nadavh@visionsense....
Mon Sep 7 04:56:33 CDT 2009



-----הודעה מקורית-----
מאת: numpy-discussion-bounces@scipy.org בשם T J
נשלח: ב 07-ספטמבר-09 12:34
אל: Discussion of Numerical Python
נושא: [Numpy-discussion] Row-wise dot product?
Is there a better way to achieve the following, perhaps without the
python for loop?

>>> x.shape
>>> y.shape
>>> z = empty(len(x))
>>> for i in range(10000):
...    z[i] = dot(x[i], y[i])
NumPy-Discussion mailing list

More information about the NumPy-Discussion mailing list