Search code examples
namingpytorch

Pytorch function name demystification: gels for least squares estimation


What does "gels" stand for in Pytorch? It solves least squares, but what does the name stand for?

It is hard to get comfortable with a function without getting its name and it is surprising that these are not explained in the documentation.


Solution

  • gels is actually a function from LAPACK (Linear Algebra Package) and stands for GEneralalized Least Squares meaning that it works on general matrices:

    General matrix

    A general real or complex m by n matrix is represented by a real or complex matrix of size (m, n).