Skip to content

eye should support other diagonals than the main one #70910

@pmeier

Description

@pmeier

The array API specification stipulates that the diagonal does not have to be the main one. This is controlled by the k parameter. Positive values correspond to upper diagonals whereas negative values correspond to lower diagonals. By default k=0 which is the main diagonal and thus our current behavior.

cc @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: python array apiIssues related to the Python Array APImodule: tensor creationtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions