SRC/dlaqr1.f(3)
π SRC/dlaqr1.f π
okay bestie, this page is from the Library Functions Manual, and itβs all about a Fortran subroutine that does one very specific little job. No cap, itβs giving βsmall but iconicβ π .
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine dlaqr1 (n, h, ldh, sr1, si1, sr2, si2, v)βDLAQR1sets a scalar multiple of the first column of the product of a 2-by-2 or 3-by-3 matrixHand the specified shifts. Slay.
π¦ Function/Subroutine Documentation π¦
πΈ Function signature πΈ
subroutine dlaqr1 (integer n, double precision, dimension( ldh, * ) h,
integer ldh, double precision sr1, double precision si1, double
precision sr2, double precision si2, double precision, dimension( * ) v)
DLAQR1 sets a scalar multiple of the first column of the product of a 2-by-2 or 3-by-3 matrix H and the specified shifts. Thatβs the whole assignment, and it ate π.
π Purpose π
Given a 2-by-2 or 3-by-3 matrix H, DLAQR1 sets v to a scalar multiple of the first column of the product
(*) K = (H - (sr1 + i*si1)*I)*(H - (sr2 + i*si2)*I)
and it does this scaling to avoid overflows and most underflows. Very βprotect the math at all costsβ energy, honestly π«Ά.
It is assumed that either
1) sr1 = sr2 and si1 = -si2
or
2) si1 = si2 = 0.
This is useful for starting double implicit shift bulges in the QR algorithm. Yes bestie, βdouble implicit shift bulgesβ is the real phrase, and itβs lowkey iconic π.
π Parameters π
NβINTEGER. Order of the matrixH.Nmust be either2or3.HβDOUBLE PRECISIONarray, dimension(LDH,N). The 2-by-2 or 3-by-3 matrixHin(*).LDHβINTEGER. The leading dimension ofHas declared in the calling procedure.LDH >= N.SR1βDOUBLE PRECISION.SI1βDOUBLE PRECISION.SR2βDOUBLE PRECISION.SI2βDOUBLE PRECISION. The shifts in(*).VβDOUBLE PRECISIONarray, dimension(N). A scalar multiple of the first column of the matrixKin(*).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ Contributors π
Karen Braman and Ralph Byers, Department of Mathematics, University of Kansas, USA.
Definition at line 120 of file dlaqr1.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
Cute sign-off, bestie: this footer says LAPACK, Version 3.12.0, and SRC/dlaqr1.f(3) β no separate date shown, just the source/version vibe check πβ¨.
π¦ 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