DLASORTE(l)
β¨ DLASORTE β¨
okay bestie, gather round, because today we're talking about DLASORTE from LAPACK β she's a routine that sorts eigenpairs so that real eigenpairs are together and complex are together. lowkey a matchmaker fr fr π
πΈ NAME πΈ
DLASORTE β sorts eigenpairs so that real eigenpairs are together and complex are together π¦
π SYNOPSIS π
SUBROUTINE DLASORTE ( S, LDS, J, OUT, INFO )
INTEGER INFO, J, LDS
DOUBLE PRECISION OUT( J, * ), S( LDS, * )
π PURPOSE π
so here's the tea: DLASORTE sorts eigenpairs so that real eigenpairs are together and complex are together. the whole point? it means you can employ 2x2 shifts easily, since every 2nd subdiagonal is guaranteed to be zero. iconic behaviour, honestly π
and like, important to know: this routine does no parallel work and makes no calls. she's a lone wolf, a solo main character, no entourage. πΊβ¨
π«Ά ARGUMENTS π«Ά
Sβ (local input/output)DOUBLE PRECISIONarray, dimensionLDS. on entry, it's a matrix already in Schur form. on exit, the diagonal blocks ofShave been rewritten to pair the eigenvalues. and bestie, listen: the resulting matrix is no longer similar to the input. she's changed. she's different now. πLDSβ (local input)INTEGER. on entry, the leading dimension of the local arrayS. unchanged on exit β she stays exactly as she is, periodt.Jβ (local input)INTEGER. on entry, the order of the matrixS. unchanged on exit, no notes.OUTβ (local input/output)DOUBLE PRECISIONarray, dimensionJx2. this is the work buffer that this routine requires. it's giving backstage crew, doing the real work behind the scenes π¬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 matrixSwas not originally in Schur form.0means successful completion β we love a happy ending. β¨
π§ implemented by: G. Henry, May 1, 1997 β shoutout to the legend, thank you for your service π«‘π
and that's the whole vibe check, bestie π this was LAPACK version 1.5, dated 12 May 1997 β yes she's an elder icon and yes she still ate. slay, no cap. πππ
π¦ 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