DLAMSH(l)

πŸ“¦ version 1.5, in ubuntu jammy

πŸ’– DLAMSH πŸ’–

okay so bestie, welcome to DLAMSH β€” it's a LAPACK auxiliary routine, version 1.5, and it is lowkey doing the most. it sends multiple shifts through a small (single node) matrix to see how consecutive small subdiagonal elements get modified by subsequent shifts, all in an effort to maximize the number of bulges that can be sent through. yes that's a lot of words. yes it's iconic. let's get into it πŸ’…


✨ SYNOPSIS ✨

SUBROUTINE DLAMSH ( S, LDS, NBULGE, JBLK, H, LDH, N, ULP )

    INTEGER       LDS, NBULGE, JBLK, LDH, N

    DOUBLE        PRECISION ULP

    DOUBLE        PRECISION S(LDS,*), H(LDH,*)

πŸ¦‹ PURPOSE πŸ¦‹

so here's the tea πŸ«– β€” DLAMSH sends multiple shifts through a small (single node) matrix to see how consecutive small subdiagonal elements are modified by subsequent shifts, in an effort to maximize the number of bulges that can be sent through.

and listen, it has rules. DLAMSH should only be called when there are multiple shifts/bulges (NBULGE > 1) and the first shift is starting in the middle of an unreduced Hessenberg matrix, because of two or more consecutive small subdiagonal elements. that's the vibe check. it passes or it doesn't. periodt βœ‹


πŸŽ€ ARGUMENTS πŸŽ€

  • S β€” (local input/output) DOUBLE PRECISION array, (LDS,*). on entry, the matrix of shifts. only the 2x2 diagonal of S is referenced, bestie. it's assumed that S has JBLK double shifts (size 2). on exit, the data is rearranged in the best order for applying. she reorganized herself, main character energy πŸ’…
  • LDS β€” (local input) INTEGER. on entry, the leading dimension of S. unchanged on exit. also, 1 < NBULGE <= JBLK <= LDS/2.
  • NBULGE β€” (local input/output) INTEGER. on entry, the number of bulges to send through H (> 1). NBULGE should be less than the maximum determined (JBLK). 1 < NBULGE <= JBLK <= LDS/2. on exit, the maximum number of bulges that can be sent through. she comes in as a request and leaves as a whole verdict, honestly iconic ✨
  • JBLK β€” (local input) INTEGER. on entry, the number of shifts determined for S. unchanged on exit.
  • H β€” (local input/output) DOUBLE PRECISION array (LDH,N). on entry, the local matrix to apply the shifts on. H should be aligned so that the starting row is 2. on exit, the data is destroyed πŸ’€ yeah. gone. that's not a drill.
  • LDS β€” (local input) INTEGER. on entry, the leading dimension of S. unchanged on exit. (yes, LDS shows up twice in the argument list β€” the original said it twice so we're saying it twice, no cap, not me editing the lore πŸ™ˆ)
  • N β€” (local input) INTEGER. on entry, the size of H. if all the bulges are expected to go through, N should be at least 4*NBULGE+2. otherwise, NBULGE may be reduced by this routine. so either you bring enough room or she starts trimming, your call πŸ“
  • ULP β€” (local input) DOUBLE PRECISION. on entry, machine precision. unchanged on exit.

ok real talk for a sec: H gets destroyed on exit. like, the data is destroyed. if you needed that matrix for something else, that is a you problem and you should have read this part first 😭

🌸 IMPLEMENTED BY 🌸

Implemented by: G. Henry, May 1, 1997


and that's the whole page, bestie 🫢 this was DLAMSH(l) from LAPACK version 1.5, dated 12 May 1997 β€” LAPACK auxiliary routine energy only, we love her, we thank her for her service πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from