geqr2p(3)
β¨ NAME β¨
okay so this is geqr2p(3) β the whole family of geqr2p routines β and the tagline the page gives it is literally geqr2p: QR factor, diag( R ) β₯ 0, level 2. bestie that's QR factorization with a non-negative diagonal, level 2, no cap π
β¨ SYNOPSIS β¨
πΈ Functions πΈ
subroutine cgeqr2p (m, n, a, lda, tau, work, info)βCGEQR2Pcomputes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm. πsubroutine dgeqr2p (m, n, a, lda, tau, work, info)βDGEQR2Pcomputes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm.subroutine sgeqr2p (m, n, a, lda, tau, work, info)βSGEQR2Pcomputes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm.subroutine zgeqr2p (m, n, a, lda, tau, work, info)βZGEQR2Pcomputes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm. π¦
β¨ Detailed Description β¨
so like, four routines, same energy, different precision. each one does the same unblocked QR thing but with non-negative diagonal entries β that's the whole p situation, iykyk π
β¨ Function Documentation β¨
π subroutine cgeqr2p (integer m, integer n, complex, dimension( lda, * ) a, integer lda, complex, dimension( * ) tau, complex, dimension( * ) work, integer info) π
CGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm.
π Purpose: π
so CGEQR2P computes a QR factorization of a complex m-by-n matrix A, like this:
A = Q * ( R ),
( 0 )
where, in the page's own words:
Qis a m-by-m orthogonal matrix;Ris an upper-triangular n-by-n matrix with nonnegative diagonal entries;0is a (m-n)-by-n zero matrix, if m > n.
that's it, that's the whole vibe β¨
π Parameters π
MβMisINTEGER. The number of rows of the matrixA.M >= 0. lowkey the most important number here, no pressure π«ΆNβNisINTEGER. The number of columns of the matrixA.N >= 0.AβAisCOMPLEXarray, dimension(LDA,N). On entry, the m by n matrixA. On exit, the elements on and above the diagonal of the array contain themin(m,n)by n upper trapezoidal matrixR(Ris upper triangular ifm >= n). The diagonal entries ofRare real and nonnegative; the elements below the diagonal, with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors (see Further Details). π like she does a whole transformation on the way outLDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,M). respect the leading dimension bestie π¨TAUβTAUisCOMPLEXarray, dimension(min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKisCOMPLEXarray, dimension(N).INFOβINFOisINTEGER.= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ Further Details: π§
The matrix Q is represented as a product of elementary reflectors:
Q = H(1) H(2) . . . H(k), where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**H
where tau is a complex scalar, and v is a complex vector with v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i), and tau in TAU(i).
See Lapack Working Note 203 for details. β
Definition at line 133 of file cgeqr2p.f.
π¦ subroutine dgeqr2p (integer m, integer n, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( * ) tau, double precision, dimension( * ) work, integer info) π¦
DGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm.
π Purpose: π
DGEQR2P computes a QR factorization of a real m-by-n matrix A:
A = Q * ( R ),
( 0 )
where:
Qis a m-by-m orthogonal matrix;Ris an upper-triangular n-by-n matrix with nonnegative diagonal entries;0is a (m-n)-by-n zero matrix, if m > n.
same energy, double the precision, we love to see it π
π Parameters π
MβMisINTEGER. The number of rows of the matrixA.M >= 0.NβNisINTEGER. The number of columns of the matrixA.N >= 0.AβAisDOUBLE PRECISIONarray, dimension(LDA,N). On entry, the m by n matrixA. On exit, the elements on and above the diagonal of the array contain themin(m,n)by n upper trapezoidal matrixR(Ris upper triangular ifm >= n). The diagonal entries ofRare nonnegative; the elements below the diagonal, with the arrayTAU, represent the orthogonal matrixQas a product of elementary reflectors (see Further Details).LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUβTAUisDOUBLE PRECISIONarray, dimension(min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKisDOUBLE PRECISIONarray, dimension(N).INFOβINFOisINTEGER.= 0: successful exit β¨< 0: ifINFO = -i, the i-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ Further Details: π§
The matrix Q is represented as a product of elementary reflectors:
Q = H(1) H(2) . . . H(k), where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**T
where tau is a real scalar, and v is a real vector with v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i), and tau in TAU(i).
See Lapack Working Note 203 for details. πΈ
Definition at line 133 of file dgeqr2p.f.
π subroutine sgeqr2p (integer m, integer n, real, dimension( lda, * ) a, integer lda, real, dimension( * ) tau, real, dimension( * ) work, integer info) π
SGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm.
π Purpose: π
SGEQR2P computes a QR factorization of a real m-by-n matrix A:
A = Q * ( R ),
( 0 )
where:
Qis a m-by-m orthogonal matrix;Ris an upper-triangular n-by-n matrix with nonnegative diagonal entries;0is a (m-n)-by-n zero matrix, if m > n.
single precision but the confidence is at least double, fr fr π₯
π Parameters π
MβMisINTEGER. The number of rows of the matrixA.M >= 0.NβNisINTEGER. The number of columns of the matrixA.N >= 0.AβAisREALarray, dimension(LDA,N). On entry, the m by n matrixA. On exit, the elements on and above the diagonal of the array contain themin(m,n)by n upper trapezoidal matrixR(Ris upper triangular ifm >= n). The diagonal entries ofRare nonnegative; the elements below the diagonal, with the arrayTAU, represent the orthogonal matrixQas a product of elementary reflectors (see Further Details).LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUβTAUisREALarray, dimension(min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKisREALarray, dimension(N).INFOβINFOisINTEGER.= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ Further Details: π§
The matrix Q is represented as a product of elementary reflectors:
Q = H(1) H(2) . . . H(k), where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**T
where tau is a real scalar, and v is a real vector with v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i), and tau in TAU(i).
See Lapack Working Note 203 for details. π«Ά
Definition at line 133 of file sgeqr2p.f.
π subroutine zgeqr2p (integer m, integer n, complex*16, dimension( lda, * ) a, integer lda, complex*16, dimension( * ) tau, complex*16, dimension( * ) work, integer info) π
ZGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm.
π Purpose: π
ZGEQR2P computes a QR factorization of a complex m-by-n matrix A:
A = Q * ( R ),
( 0 )
where:
Qis a m-by-m orthogonal matrix;Ris an upper-triangular n-by-n matrix with nonnegative diagonal entries;0is a (m-n)-by-n zero matrix, if m > n.
double complex, double drama, zero notes π
π Parameters π
MβMisINTEGER. The number of rows of the matrixA.M >= 0.NβNisINTEGER. The number of columns of the matrixA.N >= 0.AβAisCOMPLEX*16array, dimension(LDA,N)β¦
(and the rest of A β plus LDA, TAU, WORK, INFO, the Author block, the Further Details and the definition line β rolls on into part 2, bestie, don't go anywhere π
)
AβCOMPLEX*16array, dimension(LDA,N), bestie. On entry it's the m by n matrixA. On exit, the elements on and above the diagonal of the array hold the min(m,n) by n upper trapezoidal matrixR(andRis upper triangular ifm >= n, iykyk). The diagonal entries ofRare real and nonnegative; the elements below the diagonal, together with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors (see Further Details, it's cute down there π ).LDAβINTEGER, no cap. The leading dimension of the arrayA. Constraint:LDA >= max(1,M). That's the vibe check, don't fail it π.TAUβCOMPLEX*16array, dimension(min(M,N)). The scalar factors of the elementary reflectors (again: Further Details β¨).WORKβCOMPLEX*16array, dimension(N). That's it, that's the whole job. She's just a workspace π«Ά.INFOβINTEGER, and the receipts:= 0: successful exit π slay< 0: ifINFO = -i, the i-th argument had an illegal value π
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
(like, a whole squad of authors, main character energy all around π)
π Further Details:
So here's the lore, and it is literally iconic:
Q = H(1) H(2) . . . H(k), where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**H
where tau is a complex scalar, and v is a complex vector with v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i), and tau in TAU(i). No cap, that's just how she's built π¦.
See Lapack Working Note 203 for details π.
Definition at line 133 of file zgeqr2p.f.
πΈ Author
Generated automatically by Doxygen for LAPACK from the source code. (The robots wrote this one, not me. Respect tho π€π)
Heads up bestie: this page is auto-generated, so the "author" of the page is Doxygen and the authors of the code are the whole university lineup above. Both are serving π
Okay that's the whole page, you made it to the end, I'm so proud π₯Ήπ«Ά This treasure dropped as LAPACK Version 3.12.0, filed under geqr2p(3) β go forth and factorize, my love β¨πβ
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms