8000 svd requires positive-size matrices · Issue #5419 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

svd requires positive-size matrices #5419

@argriffing

Description

@argriffing

If I'm using svd to help compute the norm of a matrix by looking at its singular values, then I want a size-0 matrix to have a length-0 sequence of singular values whose aggregate function (e.g. max, sum) will be 0. But numpy explicitly forbids empty inputs with _assertNoEmpty2d(a).

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

      0