/home/abui.../slartgp.f(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

🌸 SLARTGP β€” the rotation glow-up page 🌸

ok so this is the manual page for slartgp.f(3), straight out of the Library Functions Manual, and honestly? she's a little icon. let's get into it πŸ’…


✨ NAME ✨

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slartgp.f

like, yes bestie, that's the whole name. it's that girl with the full government name energy πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

Functions/Subroutines

  • subroutine SLARTGP (f, g, cs, sn, r) β€” SLARTGP generates a plane rotation so that the diagonal is nonnegative. lowkey iconic behavior, ngl ✨

πŸ‘‘ Function/Subroutine Documentation πŸ‘‘

subroutine SLARTGP (real f, real g, real cs, real sn, real r)

SLARTGP generates a plane rotation so that the diagonal is nonnegative. periodt. πŸ’–

🧚 Purpose:

!>
!> SLARTGP generates a plane rotation so that
!>
!>    [  CS  SN  ]  .  [ F ]  =  [ R ]   where CS**2 + SN**2 = 1.
!>    [ -SN  CS  ]     [ G ]     [ 0 ]
!>
!> This is a slower, more accurate version of the Level 1 BLAS routine SROTG,
!> with the following other differences:
!>    F and G are unchanged on return.
!>    If G=0, then CS=(+/-)1 and SN=0.
!>    If F=0 and (G .ne. 0), then CS=0 and SN=(+/-)1.
!>
!> The sign is chosen so that R >= 0.
!>

ok so real talk β€” she does the exact same rotation job as SROTG but she takes her time, she's the slower and more accurate one. it's giving "I don't rush, I arrive" 🫢

and the differences, spelled out so nobody gets confused:

  • F and G come back unchanged on return β€” not me noticing they're untouched, slay πŸ™ˆ
  • If G=0, then CS=(+/-)1 and SN=0
  • If F=0 and (G .ne. 0), then CS=0 and SN=(+/-)1
  • and the sign is chosen so that R >= 0 β€” nonnegativity supremacy πŸ‘‘

🌈 Parameters

  • F β€” F is REAL, and it's the first component of the vector to be rotated. the main character of the pair ✨
  • G β€” G is REAL, the second component of the vector to be rotated. supporting role but she's serving πŸ’…
  • CS β€” CS is REAL, the cosine of the rotation. cos queen 🌸
  • SN β€” SN is REAL, the sine of the rotation. sin queen, matching set πŸŽ€
  • R β€” R is REAL, the nonzero component of the rotated vector. the payoff, the finale, the moment πŸ”₯
ngl there's a note tucked in here and it matters: this version has a few statements commented out for thread safety (machine parameters are computed on each entry). 10 feb 03, SJH. 🫑 so yes, she recomputes stuff every single time and that's on purpose, bestie, don't come for her.

πŸ’œ Author

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

four whole institutions, it's giving collaborative slay πŸ‘―β€β™€οΈ

Definition at line 94 of file slartgp.f.


⭐ Author (again, yes really) ⭐

Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this page, a robot did, and honestly the robot ate πŸ€–βœ¨


ok bye bestie, go rotate something πŸ’–

LAPACK β€” Version 3.12.0 🌈 and this whole thing lives at /home/abui.../slartgp.f(3), mwah 😘 πŸ¦‹

πŸ“¦ where this page comes from