bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / cgelsy
lapack_function
scipy.linalg._flapack:cgelsy
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def cgelsy(a, b, jptv, cond, lwork, overwrite_a = 0, overwrite_b = 0)Summary
Solve a least-squares problem by complete orthogonal factorization (LAPACK cgelsy).
Parameters
a: ndarrayMatrix of shape
(m, n).b: ndarrayRight-hand side(s) with
max(m, n)rows.jptv: ndarrayColumn pivots: a nonzero entry pins that column of
ato the front. Modified in place and returned. Use zeros to let the routine choose freely.cond: floatColumns are treated as dependent when the estimated condition number of the leading block would exceed
1 / cond.lwork: intSize of the workspace. Use
gelsy_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 complete orthogonal factorization of
a, as LAPACK leaves it.x: ndarrayMinimum-norm solution in the first
nrows.jptv: ndarrayColumn pivots actually used, 1-based as LAPACK numbers them.
rank: intEffective rank of
a, determined usingcond.info: int0 on success; if negative, the
-info-th argument had an illegal value.
Aliases
scipy.linalg._flapack.cgelsy