scipy.linalg.lapack.cgelsy#

scipy.linalg.lapack.cgelsy(a, b, jptv, cond, lwork, overwrite_a=0, overwrite_b=0) = <flapack function cgelsy>#

Solve a least-squares problem by complete orthogonal factorization (LAPACK cgelsy).

Parameters:
andarray

Matrix of shape (m, n).

bndarray

Right-hand side(s) with max(m, n) rows.

jptvndarray

Column pivots: a nonzero entry pins that column of a to the front. Modified in place and returned. Use zeros to let the routine choose freely.

condfloat

Columns are treated as dependent when the estimated condition number of the leading block would exceed 1 / cond.

lworkint

Size of the workspace. Use gelsy_lwork for the optimal value.

overwrite_aint, optional

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

overwrite_bint, optional

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

Returns:
vndarray

The complete orthogonal factorization of a, as LAPACK leaves it.

xndarray

Minimum-norm solution in the first n rows.

jptvndarray

Column pivots actually used, 1-based as LAPACK numbers them.

rankint

Effective rank of a, determined using cond.

infoint

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