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.