Skip to content

numpy.argmax() doesn't behave intuitively with complex vectors #10469

@giladbeeri

Description

@giladbeeri

Numpy 1.12.1, calling numpy.argmax() on a complex vector doesn't return the index of the complex item with the biggest magnitude. Calling numpy.argmax(numpy.abs()) does work.

If this isn't a bug, I think it should be documented.

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