Skip to content

Named tuple field names of linear algebra functions #295

Closed
@IvanYashchuk

Description

@IvanYashchuk

Currently linalg.qr and linalg.svd specify the return tuple field names using lower case letters: q, r, u, s, vh.

Are there any previous discussions on the naming convention? It's common in the linear algebra domain to denote the matrices with upper case single letters. Therefore in PyTorch's linear algebra module (that already uses the namedtuple returns) it was chosen to use qr() -> (Q, R) and svd() -> (U, S, Vh) - upper case letters.

In Julia's LinearAlgebra module also upper case letters are used for accessing the result of QR and SVD decompositions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API changeChanges to existing functions or objects in the API.topic: Linear AlgebraLinear algebra.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions