SRC/cgeqr2.f(3)
π SRC/cgeqr2.f(3) π
okay bestie, welcome to the Library Functions Manual β this page is literally all about SRC/cgeqr2.f, and itβs giving βtiny but mighty LAPACK routineβ energy. π
π NAME π
SRC/cgeqr2.f β the file this page is about, no cap.
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
subroutine cgeqr2 (m, n, a, lda, tau, work, info)β CGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm.
πΈ Function/Subroutine Documentation πΈ
subroutine cgeqr2 (integer m, integer n, complex, dimension( lda, * ) a,
integer lda, complex, dimension( * ) tau, complex, dimension( * ) work,
integer info)
CGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm.
π₯ Purpose π₯
CGEQR2 computes a QR factorization of a complex m-by-n matrix A:
A = Q * ( R ),
( 0 )
where:
Qis am-by-morthogonal matrix;Ris an upper-triangularn-by-nmatrix;0is a(m-n)-by-nzero matrix, ifm > n.
π Parameters π
MβMis INTEGER. The number of rows of the matrixA.M >= 0.NβNis INTEGER. The number of columns of the matrixA.N >= 0.AβAis COMPLEX array, dimension(LDA,N). On entry, thembynmatrixA. On exit, the elements on and above the diagonal of the array contain themin(m,n)bynupper trapezoidal matrixR(Ris upper triangular ifm >= n); the elements below the diagonal, with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors (see Further Details).LDAβLDAis INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUβTAUis COMPLEX array, dimension(min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKis COMPLEX array, dimension(N).INFOβINFOis INTEGER.= 0: successful exit.< 0: ifINFO = -i, thei-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).
Definition at line 129 of file cgeqr2.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π
okay thatβs the whole page, bestie β LAPACK Version 3.12.0, source/page SRC/cgeqr2.f(3). mwah π
π¦ 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