[Numpy-discussion] random access iterators

Neal Becker ndbecker2 at gmail.com
Sun Dec 30 11:23:13 EST 2007


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?




More information about the NumPy-Discussion mailing list