[Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-29 Thread Matthew Brett
Hi, We were teaching today, and found ourselves getting very confused about ravel and shape in numpy. Summary -- There are two separate ideas needed to understand ordering in ravel and reshape: Idea 1): ravel / reshape can proceed from the last axis to the first, or the first to the

Re: [Numpy-discussion] Polar/spherical coordinates handling

2013-03-29 Thread Todd
On Fri, Mar 29, 2013 at 4:33 PM, Angus McMorland wrote: > On 29 March 2013 11:15, Todd wrote: > > From what I can see, numpy doesn't have any functions for handling polar > or > > spherical coordinate to/from cartesian coordinate conversion. I think > such > > methods would be pretty useful. I

Re: [Numpy-discussion] Polar/spherical coordinates handling

2013-03-29 Thread Angus McMorland
On 29 March 2013 11:15, Todd wrote: > From what I can see, numpy doesn't have any functions for handling polar or > spherical coordinate to/from cartesian coordinate conversion. I think such > methods would be pretty useful. I am looking now and it doesn't look that > hard to create functions to

[Numpy-discussion] Polar/spherical coordinates handling

2013-03-29 Thread Todd
>From what I can see, numpy doesn't have any functions for handling polar or spherical coordinate to/from cartesian coordinate conversion. I think such methods would be pretty useful. I am looking now and it doesn't look that hard to create functions to convert between n-dimensional cartesian and