Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Do you still need the MapIter? #1506

@seberg

Description

@seberg

I was wondering if I can get rid of the MapIter as public API in NumPy thinking that Theano is end-of-life, but Aesara clearly isn't :).

Now, in new NumPy versions simple np.add.at() calls are vastly faster than manual MapIter use. But there are two problems:

  1. The better speed is relatively new (1.25 probably).
  2. It doesn't cover all paths, and the rest of the paths are still terrible so your version is probably at least 5x faster for those for the others, ours is probably 2-5x faster (speed factors are just wild guesses).

So, I guess this is just an FYI that at some point replacing the MapIter use with a direct np.add.at call is probably vastly better. I thought theano also had an advanced-indexing equivalence (which should just use advanced indexing). But I don't see it, so maybe that is already replaced.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions