TESTING/EIG/sslect.f(3)
π TESTING/EIG/sslect.f
ok so this page lives under TESTING/EIG/sslect.f(3) β that's the LAPACK testing-suite corner of the manual, bestie. It's giving "small file, big job." Let's get into it π«Ά
β¨ SYNOPSIS β¨
Functions/Subroutines
logical function sslect (zr, zi)β literally the whole personality of this file. It'sSSLECT.
π Function/Subroutine Documentation π
logical function sslect (real zr, real zi)
SSLECT β no cap, that's the name π
πΈ Purpose:
!>
!> SSLECT returns .TRUE. if the eigenvalue ZR+sqrt(-1)*ZI is to be
!> selected, and otherwise it returns .FALSE.
!> It is used by SCHK41 to test if SGEES successfully sorts eigenvalues,
!> and by SCHK43 to test if SGEESX successfully sorts eigenvalues.
!>
!> The common block /SSLCT/ controls how eigenvalues are selected.
!> If SELOPT = 0, then SSLECT return .TRUE. when ZR is less than zero,
!> and .FALSE. otherwise.
!> If SELOPT is at least 1, SSLECT returns SELVAL(SELOPT) and adds 1
!> to SELOPT, cycling back to 1 at SELMAX.
!>
So here's the vibe check π§ β SSLECT hands back .TRUE. if the eigenvalue ZR+sqrt(-1)*ZI is one we want to select, and .FALSE. if it's not it, bestie.
It's the little gremlin behind two bigger checks: SCHK41 uses it to test whether SGEES successfully sorts eigenvalues, and SCHK43 uses it to test whether SGEESX successfully sorts eigenvalues. Iconic teamwork, honestly π₯
The common block /SSLCT/ is the main character controlling how eigenvalues get selected:
- If
SELOPT = 0, thenSSLECTreturns.TRUE.whenZRis less than zero, and.FALSE.otherwise. Simple. Clean. Slay. - If
SELOPTis at least 1,SSLECTreturnsSELVAL(SELOPT)and adds 1 toSELOPT, cycling back to 1 atSELMAX. That's the rotation, periodt π«
π Parameters π
ZRβZRisREAL. It's the real part of a complex eigenvalueZR + i*ZI. The down-to-earth half π
!> ZR is REAL
!> The real part of a complex eigenvalue ZR + i*ZI.
!>
ZIβZIisREAL. It's the imaginary part of a complex eigenvalueZR + i*ZI. The dramatic half, as imaginary parts do π
!> ZI is REAL
!> The imaginary part of a complex eigenvalue ZR + i*ZI.
!>
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 61 of file sslect.f. Yes, line 61 β mark it, iykyk π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (Not me writing my own autobiography β Doxygen did that π)
β okay that's the whole page, bestie β LAPACK, Version 3.12.0, from the source file TESTING/EIG/sslect.f(3). Go sort some eigenvalues, you absolute icon ππ¦πΈ
π¦ 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