scipy.linalg.lapack.sgeqrfp#
- scipy.linalg.lapack.sgeqrfp(a, lwork=``max(1, n)``, overwrite_a=0) = <flapack function sgeqrfp>#
Compute a QR factorization whose
Rhas a nonnegative diagonal (LAPACKsgeqrfp).- Parameters:
- andarray
Matrix of shape
(m, n).- lworkint, optional
Size of the workspace. Default is
max(1, n). Usegeqrfp_lworkfor the optimal value.- overwrite_aint, optional
If nonzero, a may be overwritten in place. Default is 0.
- Returns:
- qrndarray
Rin the upper triangle, withdiag(R) >= 0; below it, the reflectors that defineQ.- taundarray
Scalar factors of the elementary reflectors that define
Q.- infoint
0 on success; if negative, the
-info-th argument had an illegal value.