Re: [Numpy-discussion] fast iteration (I think I've got it)

2008-01-01 Thread Travis E. Oliphant
Neal Becker wrote: > This is a c-api question. > > I'm trying to get iterators that are both fast and reasonably general. I > did confirm that iterating using just the general PyArrayIterObject > protocol is not as fast as using c-style pointers for contiguous arrays. > > Please confirm if my unde

Re: [Numpy-discussion] fast iteration (I think I've got it)

2008-01-01 Thread Neal Becker
Thank you for the response. I'm afraid I haven't explained what I'm doing. I have a lot of c++ code written in a generic c++ interface style. (The code is for signal processing, but that is irrelevant). The code is generic for data types as well as container types. To accomplish this, the int

Re: [Numpy-discussion] fast iteration (I think I've got it)

2008-01-01 Thread Anne Archibald
On 01/01/2008, Neal Becker <[EMAIL PROTECTED]> wrote: > This is a c-api question. > > I'm trying to get iterators that are both fast and reasonably general. I > did confirm that iterating using just the general PyArrayIterObject > protocol is not as fast as using c-style pointers for contiguous ar

[Numpy-discussion] fast iteration (I think I've got it)

2008-01-01 Thread Neal Becker
This is a c-api question. I'm trying to get iterators that are both fast and reasonably general. I did confirm that iterating using just the general PyArrayIterObject protocol is not as fast as using c-style pointers for contiguous arrays. Please confirm if my understanding is correct. There ar