[Numpy-discussion] Can you enumerate an array?

Arnd Baecker arnd.baecker at web.de
Wed Oct 12 10:29:29 CDT 2005


Hi Chris,

On Wed, 12 Oct 2005, Chris Barker wrote:

> Arnd,
>
> You've written some nice compact code, but it only works for rank-2
> arrays.

Yup - I was aware of this limitation ;-)

> Did you see Travis' solution? I think he's put it (or a C
> version, I'm not sure about that) in scipy_base.

Somehow I missed that -
(his speed of coding is obviously
way too fast for me to follow even in terms of the routines
being added ;-).

> However, not using flat
> is nice, as in Numeric and numarray is sometimes makes a copy, and
> sometimes doesn't.

Whatever is most suitable for the task, at least I learnt
about about iteraters ;-).

Best,

Arnd




More information about the Numpy-discussion mailing list