scipy.linalg.lapack.zgeqp3#

scipy.linalg.lapack.zgeqp3(a, lwork=3 * n + 1, overwrite_a=0) = <flapack function zgeqp3>#

Compute a QR factorization with column pivoting (LAPACK zgeqp3).

Parameters:
andarray

Matrix of shape (m, n).

lworkint, optional

Size of the workspace. Default is 3 * (n + 1). Use the value reported in work[0] for the optimal value.

overwrite_aint, optional

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

Returns:
qrndarray

R in the upper triangle; below it, the reflectors that define Q.

jpvtndarray

Column pivots, 1-based as LAPACK numbers them: column jpvt[i] - 1 of a became column i of a @ p.

taundarray

Scalar factors of the elementary reflectors that define Q.

workndarray

Workspace actually used; work[0] is the optimal lwork.

infoint

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