SRC/slartgp.f(3)
π SRC/slartgp.f(3) β Library Functions Manual, bestie edition
okay so this is SRC/slartgp.f(3) from the local function manual and honestly? she's a little icon. let's get into it β¨
πΈ NAME
SRC/slartgp.f β like, the file itself, that's the name, no notes π
π¦ SYNOPSIS
Functions/Subroutines
subroutine slartgp (f, g, cs, sn, r)β SLARTGP generates a plane rotation so that the diagonal is nonnegative. that's the whole vibe π
π 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.
!>
so basically π she's giving slower but more accurate β yes she takes her time, she's thorough, she's that girl. and the differences from SROTG? iconic list, let me read them to you:
FandGare unchanged on return β they come back exactly as they left, no cap π- if
G=0, thenCS=(+/-)1andSN=0 - if
F=0and (G .ne. 0), thenCS=0andSN=(+/-)1 - the sign is chosen so that
R >= 0β nonnegative diagonal, that's the whole assignment π―
π Parameters
Fβ isREAL. the first component of the vector to be rotated. she's component nΓΊmero uno πGβ isREAL. the second component of the vector to be rotated. component dos, standing right behind her πCSβ isREAL. the cosine of the rotation. cos of the situation πSNβ isREAL. the sine of the rotation. sin, obviously, matching set πRβ isREAL. the nonzero component of the rotated vector. the one who actually shows up π
ok and here's a lil note straight from the source, don't skip it: 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's thread-safe, and yes she recomputes the machine parameters on every single entry β that's the trade-off, that's the lore π§
β Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Definition at line 94 of file slartgp.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code. (yes, a robot wrote this and she still ate πΈ)
okay that's the whole page bestie, no crumbs left π«Ά this was LAPACK Version 3.12.0, SRC/slartgp.f(3), and that's the cute lil sign-off β mwah πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms