Skip to content

xpx.create_diagonal was broken for broadcasting #532

@NeilGirdhar

Description

@NeilGirdhar
[utM] In [1]: import array_api_extra as xpx
[utM] In [2]: import numpy as np
[utM] In [4]: x = np.zeros((10, 4))
[utM] In [5]: xpx.create_diagonal(x)

Crashes.

@Enderdead Not sure if it was the delegation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions