CQRT17(3)
β¨ NAME β¨
okay bestie, you're looking at CQRT17(3) from the Library Functions Manual π
β and the source file for this whole thing is literally:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/cqrt17.f
πΈ SYNOPSIS πΈ
π§ Functions/Subroutines π§
real function CQRT17 (trans, iresid, m, n, nrhs, a, lda, x, ldx, b, ldb,
c, work, lwork)
CQRT17
π Function/Subroutine Documentation π
real function CQRT17 (character trans, integer iresid, integer m, integer n,
integer nrhs, complex, dimension( lda, * ) a, integer lda, complex,
dimension( ldx, * ) x, integer ldx, complex, dimension( ldb, * ) b,
integer ldb, complex, dimension( ldb, * ) c, complex, dimension( lwork )
work, integer lwork)
CQRT17
π Purpose π
okay so what does CQRT17 actually compute? It's this ratio, no cap:
norm(R**H * op(A)) / ( norm(A) * alpha * max(M,N,NRHS) * EPS ),
where R = B - op(A)*X, op(A) is A or A**H, depending on TRANS, and EPS is the machine epsilon. Then the alpha tea is:
alpha = norm(B) if IRESID = 1 (zero-residual problem)
alpha = norm(R) if IRESID = 2 (otherwise).
And the norm used is the 1-norm. periodt π
π¦ Parameters π¦
π¦ TRANS
TRANS is CHARACTER*1 and it decides whether the transpose of A is used. The values are:
'N': no transpose, soop(A) = A.'C': conjugate transpose, soop(A) = A**H.
π¦ IRESID
IRESID is INTEGER. The tea is:
IRESID = 1means zero-residual problem.IRESID = 2means non-zero residual.
π¦ M
M is INTEGER.
It's the number of rows of the matrix A.
If TRANS = 'N', it's the number of rows of the matrix B.
If TRANS = 'C', it's the number of rows of the matrix X.
π¦ N
N is INTEGER.
It's the number of columns of the matrix A.
If TRANS = 'N', it's the number of rows of the matrix X.
If TRANS = 'C', it's the number of rows of the matrix B.
π¦ NRHS
NRHS is INTEGER.
It's the number of columns of the matrices X and B.
π¦ A
A is COMPLEX array, dimension (LDA,N).
It's the m-by-n matrix A.
π¦ LDA
LDA is INTEGER.
It's the leading dimension of the array A. LDA >= M.
π¦ X
X is COMPLEX array, dimension (LDX,NRHS).
If TRANS = 'N', it's the n-by-nrhs matrix X.
If TRANS = 'C', it's the m-by-nrhs matrix X.
π¦ LDX
LDX is INTEGER.
It's the leading dimension of the array X.
If TRANS = 'N', LDX >= N.
If TRANS = 'C', LDX >= M.
π¦ B
B is COMPLEX array, dimension (LDB,NRHS).
If TRANS = 'N', it's the m-by-nrhs matrix B.
If TRANS = 'C', it's the n-by-nrhs matrix B.
π¦ LDB
LDB is INTEGER.
It's the leading dimension of the array B.
If TRANS = 'N', LDB >= M.
If TRANS = 'C', LDB >= N.
π¦ C
C is COMPLEX array, dimension (LDB,NRHS).
That's the whole note in the source, bestie β no extra description here.
π¦ WORK
WORK is COMPLEX array, dimension (LWORK).
π¦ LWORK
LWORK is INTEGER.
It's the length of the array WORK. LWORK >= NRHS*(M+N).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 151 of file cqrt17.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
xoxo π β footer tea: source/version is LAPACK Version 3.12.0, and the page path is /home/abui...IN/cqrt17.f(3). date? not printed in this footer, bestie β no fake dates here. π«Άβ¨
π¦ 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