I ended up fixing my problem by removing the 'buffering' flag and adding the
'copy' flag to each of the input arrays.
I think that nested_iters might be improved by an operand axes specification
for each layer of nesting like nditer uses, though I suppose that 3 layers
of nesting might be confusin
Some observations and questions about nested_iters. Nested_iters seems to
require that all input arrays have the same number of dimensions (so you
will have to pad some input shapes with 1s). Is there a way to specify how
the axes line are matched together like for nditer?
When I try to run the f
Thanks mark! I think that's exactly what I'm looking for. We even had a
previous discussion about this (oops!) (
http://mail.scipy.org/pipermail/numpy-discussion/2011-January/054421.html).
I didn't find any documentation, I will try to add some once I understand
how it works better.
John
On Sat,
On Sat, Oct 1, 2011 at 1:45 PM, John Salvatier wrote:
> I apologize, I picked a poor example of what I want to do. Your suggestion
> would work for the example I provided, but not for a more complex example.
> My actual task is something like a "group by" operation along a particular
> axis (with
I apologize, I picked a poor example of what I want to do. Your suggestion
would work for the example I provided, but not for a more complex example.
My actual task is something like a "group by" operation along a particular
axis (with a known number of groups).
Let me try again: What I would like
On Fri, Sep 30, 2011 at 8:03 AM, John Salvatier
wrote:
> Using nditer, is it possible to manually handle dimensions with different
> lengths?
>
> For example, lets say I had an array A[5, 100] and I wanted to sample every
> 10 along the second axis so I would end up with an array B[5,10]. Is it
>
Using nditer, is it possible to manually handle dimensions with different
lengths?
For example, lets say I had an array A[5, 100] and I wanted to sample every
10 along the second axis so I would end up with an array B[5,10]. Is it
possible to do this with nditer, handling the iteration over the s