TESTING/LIN/srqt02.f(3)
π NAME π
Okay so this is TESTING/LIN/srqt02.f(3) β the manual name is the Library Functions Manual, and the page itself is all about TESTING/LIN/srqt02.f. Itβs giving very specific βtest the linear algebra routineβ energy, and honestly? Iconic. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine srqt02 (m, n, k, a, af, q, r, lda, tau, work, lwork, rwork,
result)
SRQT02
π§ Function/Subroutine Documentation π§
Meet the full signature, bestie β every type and dimension exactly as written:
subroutine srqt02 (integer m, integer n, integer k, real, dimension( lda, *
) a, real, dimension( lda, * ) af, real, dimension( lda, * ) q, real,
dimension( lda, * ) r, integer lda, real, dimension( * ) tau, real,
dimension( lwork ) work, integer lwork, real, dimension( * ) rwork,
real, dimension( * ) result)
The routineβs name is SRQT02, periodt. π«Ά
π― Purpose π―
SRQT02 tests SORGRQ, which generates an m-by-n matrix Q with orthonormal rows that is defined as the product of k elementary reflectors.
Given the RQ factorization of an m-by-n matrix A, SRQT02 generates the orthogonal matrix Q defined by the factorization of the last k rows of A; it compares R(m-k+1:m,n-m+1:n) with A(m-k+1:m,1:n)*Q(n-m+1:n,1:n)', and checks that the rows of Q are orthonormal. β¨
π Parameters π
MβM is INTEGER. The number of rows of the matrixQto be generated.M >= 0.NβN is INTEGER. The number of columns of the matrixQto be generated.N >= M >= 0.KβK is INTEGER. The number of elementary reflectors whose product defines the matrixQ.M >= K >= 0.AβA is REAL array, dimension (LDA,N). Them-by-nmatrixAwhich was factorized bySRQT01.AFβAF is REAL array, dimension (LDA,N). Details of the RQ factorization ofA, as returned bySGERQF. SeeSGERQFfor further details.QβQ is REAL array, dimension (LDA,N).RβR is REAL array, dimension (LDA,M).LDAβLDA is INTEGER. The leading dimension of the arraysA,AF,QandL.LDA >= N.TAUβTAU is REAL array, dimension (M). The scalar factors of the elementary reflectors corresponding to the RQ factorization inAF.WORKβWORK is REAL array, dimension (LWORK).LWORKβLWORK is INTEGER. The dimension of the arrayWORK.RWORKβRWORK is REAL array, dimension (M).RESULTβRESULT is REAL array, dimension (2). The test ratios:RESULT(1) = norm( R - A*Q' ) / ( N * norm(A) * EPS )RESULT(2) = norm( I - Q*Q' ) / ( N * EPS )
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 134 of file srqt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Bye bestie! Footer vibes: source/version is LAPACK Version 3.12.0, page is TESTING/LIN/srqt02.f(3) β and thereβs no date printed in this footer, so Iβm not inventing one πΈπ
π¦ 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