BLAS/SRC/drotmg.f(3)
π BLAS/SRC/drotmg.f π
okay bestie, welcome to the LAPACK docs β yes, that LAPACK, the linear algebra royalty π. today's main character is BLAS/SRC/drotmg.f, and she's giving "quietly essential rotation-builder" energy, no cap. pull up a chair, grab a strawberry π, and let's get into it.
β¨ NAME β¨
BLAS/SRC/drotmg.f β that's the file, that's the vibe, periodt. π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine drotmg (dd1, dd2, dx1, dy1, dparam)β literally justDROTMG, serving cunt in double precision π¦
π Function/Subroutine Documentation π
subroutine drotmg (double precision dd1, double precision dd2, double precision dx1, double precision dy1, double precision, dimension(5) dparam)
DROTMG
bestie. she's here. she's iconic. she does exactly one thing and does it flawlessly.
π₯ Purpose π₯
okay so the whole assignment is this: CONSTRUCT THE MODIFIED GIVENS TRANSFORMATION MATRIX H WHICH ZEROS THE SECOND COMPONENT OF THE 2-VECTOR (DSQRT(DD1)*DX1,DSQRT(DD2)*DY2)**T.
and with DPARAM(1)=DFLAG, H has one of these forms, and honestly the way she shapeshifts based on a single flag? main character behavior:
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).
so LOCATIONS 2-4 OF DPARAM CONTAIN DH11, DH21, DH12, AND DH22 RESPECTIVELY. and listen β the values of 1.D0, -1.D0, or 0.D0 that are implied by the value of DPARAM(1)? they are NOT STORED IN DPARAM. she's efficient like that, she doesn't do redundancy π
also real talk, a little caveat: THE VALUES OF GAMSQ AND RGAMSQ SET IN THE DATA STATEMENT MAY BE INEXACT. and that's fine actually, because they are only used for testing the size of DD1 and DD2. all actual scaling of data is done using GAM. so like, don't stress, the imprecision is intentional and harmless, no cap π
π Parameters π
DD1βDD1isDOUBLE PRECISIONβ¨DD2βDD2isDOUBLE PRECISIONβ¨DX1βDX1isDOUBLE PRECISIONβ¨DY1βDY1isDOUBLE PRECISIONβ¨DPARAMβDPARAMisDOUBLE PRECISION array, dimension (5)and she comes pre-loaded with the whole squad:DPARAM(1)=DFLAGDPARAM(2)=DH11DPARAM(3)=DH21DPARAM(4)=DH12DPARAM(5)=DH22
π Author π
the legends behind this masterpiece, say thank you:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π«Ά Definition at line 89 of file drotmg.f. β yes she's got a specific address, she's not hard to find, iykyk.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. β so technically the docs wrote themselves, which is very slay of them π β¨
and that's the whole page bestie!! Version 3.12.0 β Tue Nov 28 2023 12:08:41 π that's the version and the timestamp, and honestly? that date deserves its own moment. mwah. go build your rotations, you absolute icon π¦π
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms