Re: [Numpy-discussion] help with vectorization

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 1:24 PM, Mathew Yeates wrote: > I should add, I'm starting with N rotation angles. So I should rephrase > and say I'm starting with N angles and N xy pairs. > > > > Mathew Yeates wrote: > > I know this must be trivial but I can't seem to get it right > > > > I have N 2x2 a

Re: [Numpy-discussion] help with vectorization

2009-04-27 Thread Mathew Yeates
I should add, I'm starting with N rotation angles. So I should rephrase and say I'm starting with N angles and N xy pairs. Mathew Yeates wrote: > I know this must be trivial but I can't seem to get it right > > I have N 2x2 arrays which perform a rotation. I also have N xy pairs to > transpos

[Numpy-discussion] help with vectorization

2009-04-27 Thread Mathew Yeates
I know this must be trivial but I can't seem to get it right I have N 2x2 arrays which perform a rotation. I also have N xy pairs to transpose. What is the simplest way to perform the transformation without looping? Thanks from someone about to punch their screen. __