lartgs(3)
π lartgs β the group-chat guide to a LAPACK manual page
ok so this is the lartgs page from the Library Functions Manual β it's the C/Fortran library reference for LAPACK, and honestly? It's short, it's sweet, and it does exactly one (1) thing. Let's get into it, bestie π
β¨ NAME β¨
lartgs β like, the whole vibe is: generate a plane rotation for bidiag SVD. That's it. That's the function. π
πΈ SYNOPSIS πΈ
π«Ά Functions
subroutine dlartgs (x, y, sigma, cs, sn)
DLARTGS generates a plane rotation designed to introduce a bulge in implicit QR iteration for the bidiagonal SVD problem.
subroutine slartgs (x, y, sigma, cs, sn)
SLARTGS generates a plane rotation designed to introduce a bulge in implicit QR iteration for the bidiagonal SVD problem.
notice how the two are literally twins π same args, same job β the only glow-up is the precision.d= double precision,s= real. iconic sibling energy fr fr.
π¦ Detailed Description π¦
ok there's genuinely nothing here, the heading is doing all the work π β the actual content lives in the Function Documentation section right below. scroll with me π«‘
π Function Documentation π
π subroutine dlartgs (double precision x, double precision y, double precision sigma, double precision cs, double precision sn)
DLARTGS generates a plane rotation designed to introduce a bulge in implicit QR iteration for the bidiagonal SVD problem.
β Purpose:
!>
!> DLARTGS generates a plane rotation designed to introduce a bulge in
!> Golub-Reinsch-style implicit QR iteration for the bidiagonal SVD
!> problem. X and Y are the top-row entries, and SIGMA is the shift.
!> The computed CS and SN define a plane rotation satisfying
!>
!> [ CS SN ] . [ X^2 - SIGMA ] = [ R ],
!> [ -SN CS ] [ X * Y ] [ 0 ]
!>
!> with R nonnegative. If X^2 - SIGMA and X * Y are 0, then the
!> rotation is by PI/2.
!>
so yeah β <italic>X</italic> and <italic>Y</italic> are the top-row entries, <italic>SIGMA</italic> is the shift, and the <italic>CS</italic> / <italic>SN</italic> they compute out are the plane rotation that satisfies that matrix equation up there β¬οΈ. And note: <italic>R</italic> is nonnegative. Also, if X^2 - SIGMA and X * Y are both 0, then the rotation is by PI/2. no cap, that's the special case π―
π Parameters
Xβ!> X is DOUBLE PRECISION!> The (1,1) entry of an upper bidiagonal matrix.!>Yβ!> Y is DOUBLE PRECISION!> The (1,2) entry of an upper bidiagonal matrix.!>SIGMAβ!> SIGMA is DOUBLE PRECISION!> The shift.!>CSβ!> CS is DOUBLE PRECISION!> The cosine of the rotation.!>SNβ!> SN is DOUBLE PRECISION!> The sine of the rotation.!>
π§ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition
Definition at line 89 of file dlartgs.f.
π subroutine slartgs (real x, real y, real sigma, real cs, real sn)
SLARTGS generates a plane rotation designed to introduce a bulge in implicit QR iteration for the bidiagonal SVD problem.
β Purpose:
!>
!> SLARTGS generates a plane rotation designed to introduce a bulge in
!> Golub-Reinsch-style implicit QR iteration for the bidiagonal SVD
!> problem. X and Y are the top-row entries, and SIGMA is the shift.
!> The computed CS and SN define a plane rotation satisfying
!>
!> [ CS SN ] . [ X^2 - SIGMA ] = [ R ],
!> [ -SN CS ] [ X * Y ] [ 0 ]
!>
!> with R nonnegative. If X^2 - SIGMA and X * Y are 0, then the
!> rotation is by PI/2.
!>
same story, single-precision edition π«Ά <italic>X</italic> and <italic>Y</italic> = top-row entries, <italic>SIGMA</italic> = the shift, <italic>CS</italic> and <italic>SN</italic> = the rotation. <italic>R</italic> stays nonnegative, and if X^2 - SIGMA and X * Y are both 0, the rotation is by PI/2. periodt π
π Parameters
Xβ!> X is REAL!> The (1,1) entry of an upper bidiagonal matrix.!>Yβ!> Y is REAL!> The (1,2) entry of an upper bidiagonal matrix.!>SIGMAβ!> SIGMA is REAL!> The shift.!>CSβ!> CS is REAL!> The cosine of the rotation.!>SNβ!> SN is REAL!> The sine of the rotation.!>
π§ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition
Definition at line 89 of file slartgs.f.
π₯ Author π₯
Generated automatically by Doxygen for LAPACK from the source code.
ok that's the whole page, you ate that π and for the sign-off: this masterpiece is LAPACK, Version 3.12.0, stamped with the date on the original footer. go forth and rotate those planes, bestie ππ
π¦ 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