SQRT01(3)
π SQRT01(3) β LAPACK Library Functions Manual π
okay bestie, this is the <sqrt01.f> page from the LAPACK Library Functions Manual, and itβs here to test some QR factorization behavior. Letβs get into it π«Ά
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/sqrt01.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine SQRT01 (m, n, a, af, q, r, lda, tau, work, lwork, rwork,
result)
SQRT01
π¦ Function/Subroutine Documentation π¦
π subroutine SQRT01
subroutine SQRT01 (integer m, integer n, 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)
SQRT01
π Purpose π
So basically, SQRT01 tests SGEQRF, which computes the QR factorization of an m-by-n matrix A, and it also partially tests SORGQR, which forms the m-by-m orthogonal matrix Q.
SQRT01 compares R with Q'*A, and checks that Q is orthogonal. slay. β¨
π Parameters π
MβMis INTEGER. The number of rows of the matrixA.M >= 0.NβNis INTEGER. The number of columns of the matrixA.N >= 0.AβAis REAL array, dimension(LDA,N). The m-by-n matrixA.AFβAFis REAL array, dimension(LDA,N). Details of the QR factorization ofA, as returned bySGEQRF. SeeSGEQRFfor further details.QβQis REAL array, dimension(LDA,M). The m-by-m orthogonal matrixQ.RβRis REAL array, dimension(LDA,max(M,N)).LDAβLDAis INTEGER. The leading dimension of the arraysA,AF,QandR.LDA >= max(M,N).TAUβTAUis REAL array, dimension(min(M,N)). The scalar factors of the elementary reflectors, as returned bySGEQRF.WORKβWORKis REAL array, dimension(LWORK).LWORKβLWORKis INTEGER. The dimension of the arrayWORK.RWORKβRWORKis REAL array, dimension(M).RESULTβRESULTis REAL array, 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 124 of file sqrt01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π xoxo, bestie β this page signs off with LAPACK Version 3.12.0 and the footer path <hotpink>/home/abui...IN/sqrt01.f(3)</hotpink> π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms