[Numpy-discussion] Vectorization of the product of several matrices ?
oc-spam66
oc-spam66@laposte....
Sun Sep 28 10:47:27 CDT 2008
Hello,
I have two lists of numpy matrices : LM = [M_i, i=1..N] and LN = [N_i, i =1..N]
and I would like to compute the list of the products : LP = [M_i * N_i, i=1..N].
I can do :
P=[]
for i in range(N) :
P.append(LM[i]*LN[i])
But this is not vectorized. Is there a faster solution ?
Can I vectorize this operation ? How ?
Will it be more efficient than the code above ?
Thank you for your help,
--
O.C.
Créez votre adresse électronique prenom.nom@laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080928/916d8ff8/attachment.html
More information about the Numpy-discussion
mailing list