TESTING/LIN/cqrt02.f(3)
π TESTING/LIN/cqrt02.f(3) β Library Functions Manual π
okay bestie, welcome to the TESTING/LIN/cqrt02.f(3) page from the Library Functions Manual. It's giving βFortran test routine with main character energy,β and we're gonna walk through it together, no cap. π«Άβ¨
β¨ NAME β¨
TESTING/LIN/cqrt02.f
That's the name, bestie β the page is literally about this file. Slay. π
π SYNOPSIS π
π§ Functions/Subroutines π§
subroutine cqrt02 (m, n, k, a, af, q, r, lda, tau, work, lwork, rwork,
result)
CQRT02
π Function/Subroutine Documentation π
subroutine cqrt02 (integer m, integer n, integer k, complex, dimension( lda,
* ) a, complex, dimension( lda, * ) af, complex, dimension( lda, * ) q,
complex, dimension( lda, * ) r, integer lda, complex, dimension( * )
tau, complex, dimension( lwork ) work, integer lwork, real, dimension( *
) rwork, real, dimension( * ) result)
CQRT02
π Purpose π
CQRT02 tests CUNGQR, which generates an m-by-n matrix Q with orthonormal columns that is defined as the product of k elementary reflectors. That's the whole vibe check. π¦
Given the QR factorization of an m-by-n matrix A, CQRT02 generates the orthogonal matrix Q defined by the factorization of the first k columns of A; it compares R(1:n,1:k) with Q(1:m,1:n)'*A(1:m,1:k), and checks that the columns of Q are orthonormal. Iconic behavior, honestly. π
π Parameters π
MβINTEGER. The number of rows of the matrix Q to be generated. Constraint:M >= 0. πNβINTEGER. The number of columns of the matrix Q to be generated. Constraint:M >= N >= 0. πΈKβINTEGER. The number of elementary reflectors whose product defines the matrix Q. Constraint:N >= K >= 0. πAβCOMPLEXarray, dimension(LDA,N). The m-by-n matrix A which was factorized byCQRT01. π«ΆAFβCOMPLEXarray, dimension(LDA,N). Details of the QR factorization of A, as returned byCGEQRF. SeeCGEQRFfor further details. β¨QβCOMPLEXarray, dimension(LDA,N). That's it, bestie β the source just gives us the array and dimension. πRβCOMPLEXarray, dimension(LDA,N). Same energy: array plus dimension, no extra lore. π¦LDAβINTEGER. The leading dimension of the arrays A, AF, Q and R. Constraint:LDA >= M. πTAUβCOMPLEXarray, dimension(N). The scalar factors of the elementary reflectors corresponding to the QR factorization in AF. βWORKβCOMPLEXarray, dimension(LWORK). π«§LWORKβINTEGER. The dimension of the array WORK. πRWORKβREALarray, dimension(M). πΈRESULTβREALarray, dimension(2). The test ratios:RESULT(1) = norm( R - Q'*A ) / ( M * norm(A) * EPS )RESULT(2) = norm( I - Q'*Q ) / ( M * EPS )
π₯ those formulas are the moment.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
The page literally says: Definition at line 133 of file cqrt02.f. Cute line reference, bestie. π
πΈ Author πΈ
Generated automatically by Doxygen for LAPACK from the source code. The robot wrote it, and honestly? It ate. π β¨
okay that's the whole page, bestie! π«Ά Source file: TESTING/LIN/cqrt02.f(3), LAPACK Version 3.12.0. The original footer doesn't show a separate date, so we're not inventing one β just source, version, and impeccable vibes. ππ
π¦ 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