zlartg.f(3)
πΈ NAME πΈ
okay so this is the zlartg.f page from the LAPACK manual, and bestie, itβs giving βtiny subroutine, big rotation energyβ π«. Weβre talking about zlartg β the icon that generates a plane rotation with real cosine and complex sine. Periodt.
β¨ SYNOPSIS β¨
π§ Functions/Subroutines
subroutine zlartg (F, G, CS, SN, R)β ZLARTG generates a plane rotation with real cosine and complex sine.
π Function/Subroutine Documentation π
π subroutine zlartg (complex*16 F, complex*16 G, double precision CS, complex*16 SN, complex*16 R)
ZLARTG generates a plane rotation with real cosine and complex sine. lowkey iconic.
π― Purpose
Okay so ZLARTG generates a plane rotation so that:
[ CS SN ] [ F ] [ R ]
[ __ ] . [ ] = [ ] where CS**2 + |SN|**2 = 1.
[ -SN CS ] [ G ] [ 0 ]
This is a faster version of the BLAS1 routine ZROTG, except for the following differences:
FandGare unchanged on return.- If
G=0, thenCS=1andSN=0. - If
F=0, thenCS=0andSNis chosen so thatRis real.
bestie the vibe check here is: itβs like ZROTG but faster, and with those exact differences. donβt forget them π«Ά
π§Ύ Parameters
FβFisCOMPLEX*16. The first component of vector to be rotated.GβGisCOMPLEX*16. The second component of vector to be rotated.CSβCSisDOUBLE PRECISION. The cosine of the rotation.SNβSNisCOMPLEX*16. The sine of the rotation.RβRisCOMPLEX*16. The nonzero component of the rotated vector.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Date
December 2016
π Further Details
3-5-96 - Modified with a new algorithm by W. Kahan and J. Demmel- This version has a few statements commented out for thread safety (machine parameters are computed on each entry).
10 feb 03, SJH.
Definition at line 105 of file zlartg.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
β¨ cute little sign-off time β¨
This was Version 3.8.0, dated Tue Nov 14 2017 β and yeah, it was generated automatically by Doxygen for LAPACK from the source code. slay, documentation pipeline, slay π π
π¦ 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