bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / dgelsd
lapack_function
scipy.linalg._flapack:dgelsd
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def dgelsd(a, b, lwork, size_iwork, cond = -1.0, overwrite_a = 0, overwrite_b = 0)Summary
Solve a least-squares problem by divide-and-conquer SVD (LAPACK dgelsd).
Parameters
a: ndarrayMatrix of shape
(m, n).b: ndarrayRight-hand side(s) with
max(m, n)rows.lwork: intSize of the workspace. Use
gelsd_lworkfor the required value.size_iwork: intSize of the integer workspace, as reported by
gelsd_lwork.cond: float, optionalSingular values below
condtimes the largest are treated as zero. Default is -1.0, which uses machine precision.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
x: ndarrayMinimum-norm solution in the first
nrows.s: ndarraySingular values of
a, in descending order.rank: intEffective rank of
a, determined usingcond.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.dgelsd