/home/abui.../slartgp.f(3)
πΈ 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:
FandGcome back unchanged on return β not me noticing they're untouched, slay π- If
G=0, thenCS=(+/-)1andSN=0 - If
F=0and (G .ne. 0), thenCS=0andSN=(+/-)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
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms