Skip to content

Avoid rechunk in argmin/argmax with axis=None #936

Description

@tomwhite

Currently argmin and argmax (and their nan equivalents) implement the axis=None case by flattening the array first. This is potentially very expensive since it does a full rechunk. It should be possible to use block_id and offset calculations to figure out the array index of the min/max element.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions