Re: [Numpy-discussion] Chaining apply_over_axis for multiple axes.

2015-05-25 Thread Nathaniel Smith
On May 25, 2015 4:05 AM, "Andrew Nelson" wrote: > > I have a function that operates over a 1D array, to return an array of a similar size. To use it in a 2D fashion I would have to do something like the following: > > for row in range(np.size(arr, 0): > arr_out[row] = func(arr[row]) > for col

Re: [Numpy-discussion] Chaining apply_over_axis for multiple axes.

2015-05-25 Thread Sebastian Berg
On Mo, 2015-05-25 at 21:02 +1000, Andrew Nelson wrote: > I have a function that operates over a 1D array, to return an array of > a similar size. To use it in a 2D fashion I would have to do > something like the following: > > > for row in range(np.size(arr, 0): > arr_out[row] = func(arr[row

Re: [Numpy-discussion] Backwards-incompatible improvements to numpy.random.RandomState

2015-05-25 Thread Daπid
On 24 May 2015 at 22:30, Sturla Molden wrote: > Personally I think we should only make guarantees about the data types, > array shapes, and things like that, but not about the values. Those who > need a particular version of NumPy for exact reproducibility should > install the version of Python a

[Numpy-discussion] Chaining apply_over_axis for multiple axes.

2015-05-25 Thread Andrew Nelson
I have a function that operates over a 1D array, to return an array of a similar size. To use it in a 2D fashion I would have to do something like the following: for row in range(np.size(arr, 0): arr_out[row] = func(arr[row]) for col in range(np.size(arr, 1): arr_out[:, col] = func(arr[:,