Skip to content

Boil down vmap! variants, extend to reduce & mapreduce #154

@stillyslalom

Description

@stillyslalom

There's a whole menagerie of vmap-related functions exported, corresponding to mutating/non-mutating, temporal/non-temporal stores, and singlethreaded/multithreaded. Eight versions of the same function are maintainable, but if some other boolean switch is added, that's sixteen, which could get unwieldy. Wrapper types might allow for a more Julian interface - something like

map!(Threaded(+), Nontemporal(out), a, b)

to replace

vmapntt!(+, out, a, b)

The introduction of Threaded(f) could be extended to reduce & mapreduce for a simple multithreaded reduction interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions