/home/abui...C/drotmg.f(3)
πΈ NAME πΈ
okay bestie, so this page is from the Library Functions Manual and it's literally all about /home/abui...C/drotmg.f(3) β yes, that whole long path is the name, don't @ me π
. It's the manpage for the Fortran subroutine DROTMG, and she's iconic for constructing modified Givens rotations. periodt.
β¨ SYNOPSIS β¨
here's the whole vibe in one code block, no cap:
subroutine DROTMG (dd1, dd2, dx1, dy1, dparam)
DROTMG
and yes, the subroutine is literally named DROTMG β she said "I'll have my name in the title and in the body, twice" π
π Function/Subroutine Documentation π
π subroutine DROTMG π
subroutine DROTMG (double precision dd1, double precision dd2, double
precision dx1, double precision dy1, double precision, dimension(5)
dparam)
DROTMG
π§ Purpose π§
okay so the whole point, fr fr, is to construct the modified Givens transformation matrix H which zeros the second component of the 2-vector (DSQRT(DD1)*DX1,DSQRT(DD2)*DY2)**T π₯. With DPARAM(1)=DFLAG, H has one of the following formsβ¦ and the way these matrices are formatted is giving linear algebra couture:
DFLAG=-1.D0 DFLAG=0.D0 DFLAG=1.D0 DFLAG=-2.D0
(DH11 DH12) (1.D0 DH12) (DH11 1.D0) (1.D0 0.D0)
H=( ) ( ) ( ) ( )
(DH21 DH22), (DH21 1.D0), (-1.D0 DH22), (0.D0 1.D0).
locations 2-4 of DPARAM contain DH11, DH21, DH12, and DH22 respectively. (values of 1.D0, -1.D0, or 0.D0 implied by the value of DPARAM(1) are not stored in DPARAM.) π
β οΈ also bestie, the values ofGAMSQandRGAMSQset in the DATA statement may be inexact. this is OK as they are only used for testing the size ofDD1andDD2. all actual scaling of data is done usingGAM. so like, don't panic, it's fine π
π Parameters π
DD1βDD1 is DOUBLE PRECISIONDD2βDD2 is DOUBLE PRECISIONDX1βDX1 is DOUBLE PRECISIONDY1βDY1 is DOUBLE PRECISIONDPARAMβDPARAM is DOUBLE PRECISION array, dimension (5)DPARAM(1)=DFLAGDPARAM(2)=DH11DPARAM(3)=DH21DPARAM(4)=DH12DPARAM(5)=DH22
like, every single one is double precision and every single location in DPARAM is accounted for. organized queen π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
definition at line 89 of file drotmg.f. β¨
π Author π
generated automatically by Doxygen for LAPACK from the source code. (yes, this is a second Author section, she's extra like that π )
π«Ά and that's the whole page bestie! LAPACK Version 3.12.0, source file /home/abui...C/drotmg.f(3) β go forth and rotate those Givens, ily! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms