Named tuple field names of linear algebra functions #295
Labels
API change
Changes to existing functions or objects in the API.
topic: Linear Algebra
Linear algebra.
Milestone
Currently
linalg.qr
andlinalg.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)
andsvd() -> (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.
The text was updated successfully, but these errors were encountered: