This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

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 : ndarray

Least squares matrix, shape (m, n).

b : ndarray

Constraint matrix, shape (p, n) with n - m <= p <= n.

c : ndarray

Least squares right-hand side, length m.

d : ndarray

Constraint right-hand side, length p; empty when there are no constraints.

lwork : int, optional

Workspace size; -1 requests the query. Default is m + n + p.

overwrite_a : int, optional

If nonzero, a may be overwritten in place. Default is 0.

overwrite_b : int, optional

If nonzero, b may be overwritten in place. Default is 0.

overwrite_c : int, optional

If nonzero, c may be overwritten in place. Default is 0.

overwrite_d : int, optional

If nonzero, d may be overwritten in place. Default is 0.

Returns

t : ndarray

The generalized RQ factorization left in a.

r : ndarray

The triangular factor left in b.

res : ndarray

The residual information left in c.

x : ndarray

The solution, length n.

info : int

0 on success; if negative, the -info-th argument had an illegal value.

Aliases

  • scipy.linalg._flapack.zgglse