Re: [Numpy-discussion] Any idea to run the dot-product on many arrays

2011-01-13 Thread Pascal
On 01/13/2011 05:04 PM, EMMEL Thomas wrote: > Hi, > > I need to rotate many vectors (x,y,z) with a given rotation matrix (3x3). > I can always do > > for v in vectors: > tv += np.dot(mat, v) > > where mat is my fixed matrix (or array of arrays) and v is a single array. > Is there any efficient

[Numpy-discussion] Any idea to run the dot-product on many arrays

2011-01-13 Thread EMMEL Thomas
Hi, I need to rotate many vectors (x,y,z) with a given rotation matrix (3x3). I can always do for v in vectors: tv += np.dot(mat, v) where mat is my fixed matrix (or array of arrays) and v is a single array. Is there any efficient way to use an array of vectors to do the transfomation for al