scipy.linalg.lapack.sgeqrfp#

scipy.linalg.lapack.sgeqrfp(a, lwork=``max(1, n)``, overwrite_a=0) = <flapack function sgeqrfp>#

Compute a QR factorization whose R has a nonnegative diagonal (LAPACK sgeqrfp).

Parameters:
andarray

Matrix of shape (m, n).

lworkint, optional

Size of the workspace. Default is max(1, n). Use geqrfp_lwork 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, with diag(R) >= 0; below it, the reflectors that define Q.

taundarray

Scalar factors of the elementary reflectors that define Q.

infoint

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