SLASORTE(l)
π SLASORTE π
ok so bestie, gather round, because we're talking about SLASORTE β a LAPACK routine (version 1.5, yes she's vintage, yes she still slays) that does exactly one job and does it with main character energy. no cap.
β¨ NAME β¨
SLASORTE β she sorts eigenpairs so that the real ones are all cozy together and the complex ones are all cozy together. it's giving organized friend group.
πΈ SYNOPSIS πΈ
SUBROUTINE SLASORTE ( S, LDS, J, OUT, INFO )
INTEGER INFO, J, LDS
REAL OUT( J, * ), S( LDS, * )
π¦ PURPOSE π¦
okay so here's the vibe. SLASORTE sorts eigenpairs so that real eigenpairs are together and complex are together. the way that this is useful?? bestie. it means you can employ 2x2 shifts easily, because every 2nd subdiagonal is guaranteed to be zero. iconic behavior honestly.
and listen β this routine does no parallel work and makes no calls. she's a lone wolf. a solo act. no entourage. π
π ARGUMENTS π
Sβ (local input/output)REAL array, dimensionLDS
on entry: a matrix already in Schur form. on exit: the diagonal blocks of S have been rewritten to pair the eigenvalues. and here's the tea, bestie β the resulting matrix is no longer similar to the input. she changed. she's not the same girl. π
LDSβ (local input)INTEGER
on entry: the leading dimension of the local array S. unchanged on exit. she stays exactly as she is. π
Jβ (local input)INTEGER
on entry: the order of the matrix S. unchanged on exit. also not going anywhere.
OUTβ (local input/output)REAL array, dimensionJx2
this is the work buffer required by this routine. the little helper holding her bag. π«Ά
INFOβ (local input)INTEGER
this gets set if the input matrix had an odd number of real eigenvalues and things couldn't be paired β or if the input matrix S was not originally in Schur form. a 0 indicates successful completion, i.e. she ate and left no crumbs. π
ngl the odd-eigenvalue situation is real. if you show up with an unpaired real eigenvalue, bestie, there is nothing to pair it with. that's just math being math.
Implemented by: G. Henry, May 1, 1997 β shoutout to the og, we love her legacy. π
π SEE ALSO π
no see-also section, she's mysterious like that π
<div align="center">
πβ¨ that's the whole page, bestie β¨π
LAPACK version 1.5 β dated 12 May 1997. yeah she's older than you and she's still out here sorting eigenpairs. periodt. ππ¦πΈ
</div>
π¦ where this page comes from
- ubuntu jammy: scalapack-doc 1.5-11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms