SRC/cgeqr2p.f(3)
π NAME π
ok so bestie, welcome to the Library Functions Manual entry for SRC/cgeqr2p.f β yes that's the whole name, it's giving "my parents named me after the file path" energy but we move π
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines
subroutine cgeqr2p (m, n, a, lda, tau, work, info)β CGEQR2P computes the QR factorization of a general rectangular matrix with non-negative diagonal elements using an unblocked algorithm.
π Function/Subroutine 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
ok so here's the whole vibe β CGEQR2P computes a QR factorization of a complex m-by-n matrix A:
A = Q * ( R ),
( 0 )
where:
Q is a m-by-m orthogonal matrix;
R is an upper-triangular n-by-n matrix with nonnegative diagonal
entries;
0 is a (m-n)-by-n zero matrix, if m > n.
no notes, iconic behavior fr fr β¨
π§ Parameters
MβMisINTEGER. It's the number of rows of the matrix A.M >= 0. (zero rows? valid, we support you π«Ά)NβNisINTEGER. It's the number of columns of the matrix A.N >= 0. (same deal,N >= 0and not a drop more, bestie)AβAisCOMPLEX array, dimension (LDA,N).- On entry, the m by n matrix A. π
- On exit, the elements on and above the diagonal of the array contain the
min(m,n)by n upper trapezoidal matrix R (R is upper triangular ifm >= n). The diagonal entries of R are real and nonnegative; the elements below the diagonal, with the array TAU, represent the unitary matrix Q as a product of elementary reflectors (see Further Details). so yeah she contains multitudes π
LDAβLDAisINTEGER. The leading dimension of the array A.LDA >= max(1,M). respect the leading dimension or perish πTAUβTAUisCOMPLEX array, dimension (min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKisCOMPLEX array, dimension (N). that's it, that's the whole parameter, she's just a workspace πINFOβINFOisINTEGER.= 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.
π₯ Further Details:
ok so 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). lowkey elegant, highkey obsessed π¦
See Lapack Working Note 203 for details.
Definition at line 133 of file cgeqr2p.f.
πΈ Author πΈ
Generated automatically by Doxygen for LAPACK from the source code. (not me writing my own manpage, a robot did it, and honestly? she ate π€π)
and that's the whole page bestie!! LAPACK, Version 3.12.0, from SRC/cgeqr2p.f(3) β go forth and factorize responsibly, 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