Re: [Numpy-discussion] random access iterators

2007-12-30 Thread Travis E. Oliphant
Neal Becker wrote: > I'm looking at writing some c++ code to interoperate with numpy. A c++ > random access iterator must include a 'distance' function. distance (i1, > i2) must return the number of times i1 has to be incremented to reach i2. > > Is there a way to get this from PyArrayIterObject?

[Numpy-discussion] random access iterators

2007-12-30 Thread Neal Becker
I'm looking at writing some c++ code to interoperate with numpy. A c++ random access iterator must include a 'distance' function. distance (i1, i2) must return the number of times i1 has to be incremented to reach i2. Is there a way to get this from PyArrayIterObject? __