CSYL01(3)
Hey bestie π welcome to csyl01.f(3) from the Library Functions Manual β this is the whole page for CSYL01, a LAPACK testing subroutine, and it's lowkey iconic.
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/csyl01.f
That's the NAME, bestie β literally the full file path. Full-path main character energy, no cap β¨.
π¦ SYNOPSIS π¦
π«Ά Functions/Subroutines π«Ά
subroutine CSYL01 (thresh, nfail, rmax, ninfo, knt)
CSYL01
π§ Function/Subroutine Documentation π§
subroutine CSYL01 (real thresh, integer, dimension( 3 ) nfail, real,
dimension( 2 ) rmax, integer, dimension( 2 ) ninfo, integer knt)
CSYL01
πΈ Purpose πΈ
Okay so CSYL01 tests CTRSYL and CTRSYL3, the routines for solving the Sylvester matrix equation:
op(A)*X + ISGN*X*op(B) = scale*C,
where op(A) and op(B) are both upper triangular form, op() represents an optional conjugate transpose, and ISGN can be -1 or +1. Scale is an output less than or equal to 1, chosen to avoid overflow in X.
The test code verifies that the following residual does not exceed the provided threshold:
norm(op(A)*X + ISGN*X*op(B) - scale*C) /
(EPS*max(norm(A),norm(B))*norm(X))
This routine complements CGET35 by testing with larger, random matrices, of which some require rescaling of X to avoid overflow π
.
π Parameters π
THRESH
THRESH is REAL.
A test will count as if the residual, computed as described above, exceeds THRESH.
NFAIL
NFAIL is INTEGER array, dimension (3).
NFAIL(1)= No. of times residualCTRSYLexceeds thresholdTHRESHNFAIL(2)= No. of times residualCTRSYL3exceeds thresholdTHRESHNFAIL(3)= No. of timesCTRSYL3andCTRSYLdeviate
RMAX
RMAX is DOUBLE PRECISION array, dimension (2).
The signature above saysrealforrmax, and this parameter blurb saysDOUBLE PRECISIONβ I'm just reporting the source, bestie, not fixing it π.
RMAX(1)= Value of the largest test ratio ofCTRSYLRMAX(2)= Value of the largest test ratio ofCTRSYL3
NINFO
NINFO is INTEGER array, dimension (2).
NINFO(1)= No. of timesCTRSYLwhereINFOis nonzeroNINFO(2)= No. of timesCTRSYL3whereINFOis nonzero
KNT
KNT is INTEGER.
Total number of examples tested π.
Definition at line 88 of file csyl01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
LAPACK Version 3.12.0, footer file stamp /home/abui...IG/csyl01.f(3), and the footer has no date printed β mwah πβ¨ stay slay, bestie π«Ά
π¦ 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