bundles / scipy latest / scipy / linalg / _flapack / zgglse
lapack_function
scipy.linalg._flapack:zgglse
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Summary
Solve an equality-constrained least squares problem (LAPACK zgglse).
Extended Summary
Minimizes norm(c - a @ x) subject to b @ x == d.
Parameters
a: ndarrayLeast squares matrix, shape
(m, n).b: ndarrayConstraint matrix, shape
(p, n)withn - m <= p <= n.c: ndarrayLeast squares right-hand side, length
m.d: ndarrayConstraint right-hand side, length
p; empty when there are no constraints.lwork: int, optionalWorkspace size; -1 requests the query. Default is
m + n + p.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.overwrite_c: int, optionalIf nonzero,
cmay be overwritten in place. Default is 0.overwrite_d: int, optionalIf nonzero, d may be overwritten in place. Default is 0.
Returns
t: ndarrayThe generalized RQ factorization left in a.
r: ndarrayThe triangular factor left in b.
res: ndarrayThe residual information left in c.
x: ndarrayThe solution, length
n.info: int0 on success; if negative, the
-info-th argument had an illegal value.
Aliases
scipy.linalg._flapack.zgglse