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
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