TESTING/LIN/cqrt01.f(3)
πΈ NAME πΈ
okay so this page is TESTING/LIN/cqrt01.f(3), from the Library Functions Manual β and itβs all about the CQRT01 subroutine, bestie. π
β¨ SYNOPSIS β¨
Functions/Subroutines
hereβs the whole callable situation:
subroutine cqrt01 (m, n, a, af, q, r, lda, tau, work, lwork, rwork,
result)
CQRT01
π¦ Function/Subroutine Documentation π¦
the full signature is giving βI know exactly what Iβm doingβ energy:
subroutine cqrt01 (integer m, integer n, 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)
CQRT01
Purpose
so CQRT01 is out here testing CGEQRF, which computes the QR factorization of an m-by-n matrix A, and it also partially tests CUNGQR, which forms the m-by-m orthogonal matrix Q. π«Ά
and then it compares R with Q'*A, and checks that Q is orthogonal. thatβs the whole vibe check, no cap.
Parameters
MβINTEGER; the number of rows of the matrixA. it has to satisfyM >= 0. β¨NβINTEGER; the number of columns of the matrixA. it has to satisfyN >= 0. πΈAβCOMPLEX array, dimension (LDA,N); this is the m-by-n matrixA. πAFβCOMPLEX array, dimension (LDA,N); details of the QR factorization ofA, as returned byCGEQRF. seeCGEQRFfor further details. π¦QβCOMPLEX array, dimension (LDA,M); the m-by-m orthogonal matrixQ. πRβCOMPLEX array, dimension (LDA,max(M,N)). thatβs it, thatβs the whole description. πLDAβINTEGER; the leading dimension of the arraysA,AF,QandR. must satisfyLDA >= max(M,N). βTAUβCOMPLEX array, dimension (min(M,N)); the scalar factors of the elementary reflectors, as returned byCGEQRF. πWORKβCOMPLEX array, dimension (LWORK). π§LWORKβINTEGER; the dimension of the arrayWORK. πRWORKβREAL array, dimension (M). πRESULTβREAL array, dimension (2); the test ratios, and they are literally these:
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 124 of file cqrt01.f.
π Author π
this page was generated automatically by Doxygen for LAPACK from the source code, so itβs giving auto-generated but still iconic. π
π sign-off time: the footer is LAPACK Version 3.12.0 + TESTING/LIN/cqrt01.f(3), and thereβs no separate date printed on this footer β just that source/version and page-name combo, periodt π
π¦ 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