slartg.f(3)
πΈ NAME πΈ
okay so this is slartg.f(3) from the LAPACK manual, section 3. She's that girl: a plane rotation with real cosine and real sine. Bestie, she's the slower, more accurate one, and she's about to explain herself π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine slartg (F, G, CS, SN, R)
SLARTG generates a plane rotation with real cosine and real sine. periodt β¨
π Function/Subroutine Documentation π
π§ subroutine slartg (real F, real G, real CS, real SN, real R) π§
SLARTG generates a plane rotation with real cosine and real sine. no cap.
π Purpose π
SLARTG generates a plane rotation so that
[ CS SN ] . [ F ] = [ R ] where CS**2 + SN**2 = 1.
[ -SN CS ] [ G ] [ 0 ]
That's the whole assignment: rotate the vector, keep the math cute, and remember CS**2 + SN**2 = 1. π
This is a slower, more accurate version of the BLAS1 routine SROTG, with the following other differences:
FandGare unchanged on return.- If
G=0, thenCS=1andSN=0. - If
F=0and (G .ne. 0), thenCS=0andSN=1without doing any floating point operations (saves work inSBDSQRwhen there are zeros on the diagonal). - If
FexceedsGin magnitude,CSwill be positive.
π Parameters π
FβREAL. The first component of vector to be rotated.GβREAL. The second component of vector to be rotated.CSβREAL. The cosine of the rotation.SNβREAL. The sine of the rotation.RβREAL. The nonzero component of the rotated vector.
π§΅ thread-safety tea: this version has a few statements commented out for thread safety (machine parameters are computed on each entry). 10 feb 03, SJH.
π¦ Author π¦
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Date π
December 2016
Definition at line 99 of file slartg.f.
β Author β
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, bestie π source/version/date energy: LAPACK Version 3.8.0, Tue Nov 14 2017, for slartg.f(3). byeee π«Άβ¨
π¦ where this page comes from
- centos-stream 9: lapack 3.9.0-10.el9 Β· BSD
- centos-stream 9: lapack 3.9.0-10.el9 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms