TESTING/LIN/dqlt02.f(3)
π
TESTING/LIN/dqlt02.f(3) β the DQLT02 glow-up π
okay so bestie, welcome to the TESTING/LIN/dqlt02.f page from the LAPACK manual β¨ this one's a testing routine, and honestly? it's giving "quietly holding the whole QL factorization together" energy π
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines
subroutine dqlt02 (m, n, k, a, af, q, l, lda, tau, work, lwork, rwork, result)β DQLT02 π«Ά
π Function/Subroutine Documentation π
π§ subroutine dqlt02 (integer m, integer n, integer k, double precision, dimension( lda, * ) a, double precision, dimension( lda, * ) af, double precision, dimension( lda, * ) q, double precision, dimension( lda, * ) l, integer lda, double precision, dimension( * ) tau, double precision, dimension( lwork ) work, integer lwork, double precision, dimension( * ) rwork, double precision, dimension( * ) result)
DQLT02 β
π¦ Purpose:
!>
!> DQLT02 tests DORGQL, which generates an m-by-n matrix Q with
!> orthonormal columns that is defined as the product of k elementary
!> reflectors.
!>
!> Given the QL factorization of an m-by-n matrix A, DQLT02 generates
!> the orthogonal matrix Q defined by the factorization of the last k
!> columns of A; it compares L(m-n+1:m,n-k+1:n) with
!> Q(1:m,m-n+1:m)'*A(1:m,n-k+1:n), and checks that the columns of Q are
!> orthonormal.
!>
so basically, it's lowkey the vibe-check routine for DORGQL π
it generates that m-by-n Q with orthonormal columns made from k elementary reflectors, then it compares L(m-n+1:m,n-k+1:n) against Q(1:m,m-n+1:m)'*A(1:m,n-k+1:n) β and on top of that it checks that Q's columns are actually orthonormal. no cap, that's the whole assignment π«Ά
π Parameters π
MβM is INTEGERπΈThe number of rows of the matrix Q to be generated. M >= 0.like, how tallQis, and it's gotta be at least0.NβN is INTEGERβ¨The number of columns of the matrix Q to be generated.andM >= N >= 0.soNcan never ghost pastM, periodt.KβK is INTEGERπThe number of elementary reflectors whose product defines thematrix Q. N >= K >= 0.the reflector count, sandwiched betweenNand0.AβA is DOUBLE PRECISION array, dimension (LDA,N)π¦The m-by-n matrix A which was factorized by DQLT01.the original matrix, already been throughDQLT01's whole thing.AFβAF is DOUBLE PRECISION array, dimension (LDA,N)πDetails of the QL factorization of A, as returned by DGEQLF.See DGEQLF for further details.iykyk, the factorization receipts live in here.QβQ is DOUBLE PRECISION array, dimension (LDA,N)π the star of the show, bestie πLβL is DOUBLE PRECISION array, dimension (LDA,N)β also iconic, also living itsLDAbyNlife.LDAβLDA is INTEGERπΈThe leading dimension of the arrays A, AF, Q and L. LDA >= M.it's the leading-dim glow-up for all four of those arrays, andLDAbetter be>= Mor we riot πTAUβTAU is DOUBLE PRECISION array, dimension (N)π§The scalar factors of the elementary reflectors correspondingto the QL factorization in AF.the little scalar-factor besties chilling with theAFfactorization.WORKβWORK is DOUBLE PRECISION array, dimension (LWORK)π scratch space, dimension(LWORK).LWORKβLWORK is INTEGERπThe dimension of the array WORK.literally just that, bestie.RWORKβRWORK is DOUBLE PRECISION array, dimension (M)π¦ another workspace, dimension(M)this time.RESULTβRESULT is DOUBLE PRECISION array, dimension (2)π₯The test ratios:the tea β, two of them:
!> RESULT(1) = norm( L - Q'*A ) / ( M * norm(A) * EPS )
!> RESULT(2) = norm( I - Q'*Q ) / ( M * EPS )
like, RESULT(1) is the accuracy ratio for the L vs Q'*A comparison, and RESULT(2) is the orthonormality check on Q β the I - Q'*Q ratio. both scaled by M and EPS of course π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 134 of file dqlt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π yes it's autogenerated, don't come for her π
and that's a wrap, bestie! π«Ά the footer energy is giving LAPACK, Version 3.12.0, and this little page is dated back to its TESTING/LIN/dqlt02.f(3) era β mwah π go forth and test those QL factorizations, queen ππ
π¦ 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