bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / zgelss
lapack_function
scipy.linalg._flapack:zgelss
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def zgelss(a, b, cond = -1.0, lwork = Ellipsis, overwrite_a = 0, overwrite_b = 0)Summary
Solve a least-squares problem by singular value decomposition (LAPACK zgelss).
Parameters
a: ndarrayMatrix of shape
(m, n).b: ndarrayRight-hand side(s) with
max(m, n)rows.cond: float, optionalSingular values below
condtimes the largest are treated as zero. Default is -1.0, which uses machine precision.lwork: int, optionalSize of the workspace. Default is routine-specific. Use
gelss_lworkfor the optimal value.overwrite_a: int, optionalIf nonzero, a may be overwritten in place. Default is 0.
overwrite_b: int, optionalIf nonzero,
bmay be overwritten in place. Default is 0.
Returns
v: ndarrayThe first
min(m, n)right singular vectors ofa, as LAPACK leaves them.x: ndarrayMinimum-norm solution in the first
nrows.s: ndarraySingular values of
a, in descending order.rank: intEffective rank of
a, determined usingcond.work: ndarrayWorkspace actually used;
work[0]is the optimal lwork.info: int0 on success; if negative, the
-info-th argument had an illegal value; if positive, the algorithm failed to converge.
Aliases
scipy.linalg._flapack.zgelss