Skip to content

xp.arange(n) in __truediv__ is not array-api compatible #5

@connoraird

Description

@connoraird

Description

Lines such as the below in corr are not array-api compatible as xp.arange(n) produces an integer dtype which is not allowed in __truediv__.

a = (2 * xp.arange(n) + 1) / (4 * xp.pi) * cl

Error message

TypeError: Only floating-point dtypes are allowed in __truediv__

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