Skip to content

Strange behaviour for miniexpr path #579

@lshaw8317

Description

@lshaw8317

When taking the miniexpr path, arr = -1 + a gives 0, but -1 when taking the normal numexpr path. When taking the miniexpr path for arr2 = a - 1 the correct -1 answer is returned though.

a = xp.asarray((0,))
arr = -1 + a
arr2 = a - 1
assert arr[0] == arr[()] # fails
assert arr[()] == arr2[()] # fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions