TESTING/LIN/zqrt02.f(3)
okay so this is the TESTING/LIN/zqrt02.f(3) page from the Library Functions Manual β and it's literally the group chat for ZQRT02, a Fortran testing subroutine. Buckle up, bestie, because we're keeping every single detail π
π NAME π
TESTING/LIN/zqrt02.f β that's the file, and it's the main character of this page. Periodt.
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine zqrt02 (m, n, k, a, af, q, r, lda, tau, work, lwork, rwork,
result)
ZQRT02
π¦ Function/Subroutine Documentation π¦
subroutine zqrt02 (integer m, integer n, integer k, complex*16, dimension(
lda, * ) a, complex*16, dimension( lda, * ) af, complex*16, dimension(
lda, * ) q, complex*16, dimension( lda, * ) r, integer lda, complex*16,
dimension( * ) tau, complex*16, dimension( lwork ) work, integer lwork,
double precision, dimension( * ) rwork, double precision, dimension( * )
result)
ZQRT02
πΈ Purpose πΈ
ZQRT02 tests ZUNGQR, which generates an m-by-n matrix Q with orthonormal columns that is defined as the product of k elementary reflectors.
Given the QR factorization of an m-by-n matrix A, ZQRT02 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.
π Parameters π
MβMisINTEGER. The number of rows of the matrix Q to be generated.M >= 0.NβNisINTEGER. The number of columns of the matrix Q to be generated.M >= N >= 0.KβKisINTEGER. The number of elementary reflectors whose product defines the matrix Q.N >= K >= 0.AβAisCOMPLEX*16array, dimension(LDA,N). The m-by-n matrix A which was factorized byZQRT01.AFβAFisCOMPLEX*16array, dimension(LDA,N). Details of the QR factorization of A, as returned byZGEQRF. SeeZGEQRFfor further details.QβQisCOMPLEX*16array, dimension(LDA,N).RβRisCOMPLEX*16array, dimension(LDA,N).LDAβLDAisINTEGER. The leading dimension of the arrays A, AF, Q and R.LDA >= M.TAUβTAUisCOMPLEX*16array, dimension(N). The scalar factors of the elementary reflectors corresponding to the QR factorization in AF.WORKβWORKisCOMPLEX*16array, dimension(LWORK).LWORKβLWORKisINTEGER. The dimension of the array WORK.RWORKβRWORKisDOUBLE PRECISIONarray, dimension(M).RESULTβRESULTisDOUBLE PRECISIONarray, dimension(2). The test ratios:
RESULT(1) = norm( R - Q'*A ) / ( M * norm(A) * EPS )
RESULT(2) = norm( I - Q'*Q ) / ( M * EPS )
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 133 of file zqrt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, bestie β cute sign-off time: LAPACK Version 3.12.0, source file TESTING/LIN/zqrt02.f(3). The original footer didn't hand me a date, so I'm not making one up β no cap, just the source/version tea π«Άπ
π¦ 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