Re: [Numpy-discussion] contributing to numpy

2013-04-18 Thread Andrew Giessel
An update--- I submitted a PR if anyone is interested: https://github.com/numpy/numpy/pull/3262 Secondly, it was pointed out to my by Stefan van der Walt that one could use np.rollaxis() to reorder an array such that the default iterator behavior would yield the same slices of the array: a = np.o

Re: [Numpy-discussion] contributing to numpy

2013-04-17 Thread Andrew Giessel
Chuck- Thank you for the very helpful and encouraging email! I will first try to just add a function, rather than a method on ndarray (which looks to be lower level ie: C). The pointer to numeric.py / test_numeric.py is exactly what I needed. I will of course figure out a good test and document

Re: [Numpy-discussion] contributing to numpy

2013-04-17 Thread Charles R Harris
On Wed, Apr 17, 2013 at 6:29 AM, andrew giessel wrote: > First, my apologies if this isn't the right forum for this question- I > looked for a dev list, but couldn't really find it. > > I have a small method I'd like to contribute to numpy, ideally as a method > on ndarrays and a general function

[Numpy-discussion] contributing to numpy

2013-04-17 Thread andrew giessel
First, my apologies if this isn't the right forum for this question- I looked for a dev list, but couldn't really find it. I have a small method I'd like to contribute to numpy, ideally as a method on ndarrays and a general function in the numpy namespace. I found it on a stackoverflow thread, an