lartgp(3)
π lartgp(3) β Library Functions Manual π
okay so bestie, welcome to the lartgp(3) page. It's giving two Fortran subroutines that generate plane rotations, and they're the more accurate-but-slower besties of the BLAS rot routines. No cap. π
πΈ NAME πΈ
lartgp β lartgp: generate plane rotation, more accurate than BLAS rot
β¨ SYNOPSIS β¨
π Functions
subroutine dlartgp (f, g, cs, sn, r)β DLARTGP generates a plane rotation so that the diagonal is nonnegative.subroutine slartgp (f, g, cs, sn, r)β SLARTGP generates a plane rotation so that the diagonal is nonnegative.
π₯ Detailed Description π₯
This page is the home of both subroutines. The full function tea is in the next section. Scroll down, bestie. π«Ά
π«Ά Function Documentation π«Ά
π subroutine dlartgp (double precision f, double precision g, double precision cs, double precision sn, double precision r)
DLARTGP generates a plane rotation so that the diagonal is nonnegative. Periodt.
π Purpose
!> DLARTGP 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 DROTG,
!> 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.
!>
π Parameters
FβFisDOUBLE PRECISION. The first component of vector to be rotated.GβGisDOUBLE PRECISION. The second component of vector to be rotated.CSβCSisDOUBLE PRECISION. The cosine of the rotation.SNβSNisDOUBLE PRECISION. The sine of the rotation.RβRisDOUBLE PRECISION. The nonzero component of the rotated vector.
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.
π Definition
Definition at line 94 of file dlartgp.f.
π subroutine slartgp (real f, real g, real cs, real sn, real r)
SLARTGP generates a plane rotation so that the diagonal is nonnegative. Iconic behavior, honestly. π
π 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.
!>
π Parameters
FβFisREAL. The first component of vector to be rotated.GβGisREAL. The second component of vector to be rotated.CSβCSisREAL. The cosine of the rotation.SNβSNisREAL. The sine of the rotation.RβRisREAL. The nonzero component of the rotated vector.
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.
π Definition
Definition at line 94 of file slartgp.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
source/version sign-off, bestie: this is LAPACK, Version 3.12.0, on the lartgp(3) page β and the footer has no date listed, so no invented date, bestie. Byeee! ππ
π¦ 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