TESTING/EIG/ssyl01.f(3)
Bestie, this is the TESTING/EIG/ssyl01.f(3) page from the Library Functions Manual, and it's lowkey iconic LAPACK testing content. No cap: it's all about ssyl01.
β¨ NAME β¨
TESTING/EIG/ssyl01.f
π§ SYNOPSIS π§
Functions/Subroutines
subroutine ssyl01 (thresh, nfail, rmax, ninfo, knt)βSSYL01
π¦ Function/Subroutine Documentation π¦
subroutine ssyl01 (real thresh, integer, dimension( 3 ) nfail, real,
dimension( 2 ) rmax, integer, dimension( 2 ) ninfo, integer knt)
SSYL01
πΈ Purpose πΈ
Okay so SSYL01 tests STRSYL and STRSYL3, the routines for solving the Sylvester matrix equation:
op(A)*X + ISGN*X*op(B) = scale*C,
A and B are assumed to be in Schur canonical form, op() represents an optional 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 SGET35 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 residualSTRSYLexceeds thresholdTHRESHNFAIL(2)= No. of times residualSTRSYL3exceeds thresholdTHRESHNFAIL(3)= No. of timesSTRSYL3andSTRSYLdeviate
RMAX
RMAX is REAL, dimension (2).
RMAX(1)= Value of the largest test ratio ofSTRSYLRMAX(2)= Value of the largest test ratio ofSTRSYL3
NINFO
NINFO is INTEGER array, dimension (2).
NINFO(1)= No. of timesSTRSYLreturns an expectedINFONINFO(2)= No. of timesSTRSYL3returns an expectedINFO
KNT
KNT is INTEGER. Total number of examples tested.
Definition at line 88 of file ssyl01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Stay slay, bestie π
β this was LAPACK Version 3.12.0, page TESTING/EIG/ssyl01.f(3). πβ¨
π¦ 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