SRC/dlaqr3.f(3)
π SRC/dlaqr3.f
okay so this is a page from the LAPACK manual (that's the Library Functions Manual, bestie), and today's main character is SRC/dlaqr3.f. buckle up π
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines
subroutine dlaqr3 (wantt, wantz, n, ktop, kbot, nw, h, ldh, iloz, ihiz,
z, ldz, ns, nd, sr, si, v, ldv, nh, t, ldt, nv, wv, ldwv, work,
lwork)
DLAQR3 performs the orthogonal similarity transformation of a Hessenberg matrix to detect and deflate fully converged eigenvalues from a trailing principal submatrix (aggressive early deflation).
like⦠it literally says what it does in the name-adjacent description. iconic.
πΈ Function/Subroutine Documentation πΈ
β subroutine dlaqr3
here's the full glow-up of the signature, every single argument, no cap:
subroutine dlaqr3 (logical wantt, logical wantz, integer n, integer ktop,
integer kbot, integer nw, double precision, dimension( ldh, * ) h,
integer ldh, integer iloz, integer ihiz, double precision, dimension(
ldz, * ) z, integer ldz, integer ns, integer nd, double precision,
dimension( * ) sr, double precision, dimension( * ) si, double
precision, dimension( ldv, * ) v, integer ldv, integer nh, double
precision, dimension( ldt, * ) t, integer ldt, integer nv, double
precision, dimension( ldwv, * ) wv, integer ldwv, double precision,
dimension( * ) work, integer lwork)
DLAQR3 performs the orthogonal similarity transformation of a Hessenberg matrix to detect and deflate fully converged eigenvalues from a trailing principal submatrix (aggressive early deflation).
π¦ Purpose:
!>
!> Aggressive early deflation:
!>
!> DLAQR3 accepts as input an upper Hessenberg matrix
!> H and performs an orthogonal similarity transformation
!> designed to detect and deflate fully converged eigenvalues from
!> a trailing principal submatrix. On output H has been over-
!> written by a new Hessenberg matrix that is a perturbation of
!> an orthogonal similarity transformation of H. It is to be
!> hoped that the final version of H has many zero subdiagonal
!> entries.
!>
so the tea β: DLAQR3 takes an upper Hessenberg matrix H, does an orthogonal similarity transformation on it, and its whole mission is to spot fully converged eigenvalues hanging out in a trailing principal submatrix and deflate them. on the way out, H has been overwritten by a new Hessenberg matrix that's a perturbation of an orthogonal similarity transformation of H β and the hope (very much a hope, not a promise, bestie) is that the final H has lots of zero subdiagonal entries. fingers crossed fr fr π€
π Parameters
WANTTβWANTTisLOGICAL. if.TRUE., then the Hessenberg matrixHis fully updated so that the quasi-triangular Schur factor may be computed (in cooperation with the calling subroutine). if.FALSE., then only enough ofHis updated to preserve the eigenvalues.WANTZβWANTZisLOGICAL. if.TRUE., then the orthogonal matrixZis updated so so that the orthogonal Schur factor may be computed (in cooperation with the calling subroutine). if.FALSE., thenZis not referenced. (yes, the "so so" is in the original, we stan a typo queen π )NβNisINTEGER. the order of the matrixHand (ifWANTZis.TRUE.) the order of the orthogonal matrixZ.KTOPβKTOPisINTEGER. it is assumed that eitherKTOP = 1orH(KTOP,KTOP-1)=0.KBOTandKTOPtogether determine an isolated block along the diagonal of the Hessenberg matrix.KBOTβKBOTisINTEGER. it is assumed without a check that eitherKBOT = NorH(KBOT+1,KBOT)=0.KBOTandKTOPtogether determine an isolated block along the diagonal of the Hessenberg matrix.NWβNWisINTEGER. deflation window size.1 <= NW <= (KBOT-KTOP+1).HβHisDOUBLE PRECISIONarray, dimension(LDH,N). on input the initial N-by-N section ofHstores the Hessenberg matrix undergoing aggressive early deflation. on outputHhas been transformed by an orthogonal similarity transformation, perturbed, and the returned to Hessenberg form that (it is to be hoped) has some zero subdiagonal entries.LDHβLDHisINTEGER. leading dimension ofHjust as declared in the calling subroutine.N <= LDH.ILOZβILOZisINTEGER.IHIZβIHIZisINTEGER. specify the rows ofZto which transformations must be applied ifWANTZis.TRUE..1 <= ILOZ <= IHIZ <= N.ZβZisDOUBLE PRECISIONarray, dimension(LDZ,N). ifWANTZis.TRUE., then on output, the orthogonal similarity transformation mentioned above has been accumulated intoZ(ILOZ:IHIZ,ILOZ:IHIZ)from the right. ifWANTZis.FALSE., thenZis unreferenced.LDZβLDZisINTEGER. the leading dimension ofZjust as declared in the calling subroutine.1 <= LDZ.NSβNSisINTEGER. the number of unconverged (ie approximate) eigenvalues returned inSRandSIthat may be used as shifts by the calling subroutine.NDβNDisINTEGER. the number of converged eigenvalues uncovered by this subroutine.SRβSRisDOUBLE PRECISIONarray, dimension(KBOT).SIβSIisDOUBLE PRECISIONarray, dimension(KBOT). on output, the real and imaginary parts of approximate eigenvalues that may be used for shifts are stored inSR(KBOT-ND-NS+1)throughSR(KBOT-ND)andSI(KBOT-ND-NS+1)throughSI(KBOT), respectively. the real and imaginary parts of converged eigenvalues are stored inSR(KBOT-ND+1)throughSR(KBOT)andSI(KBOT-ND+1)throughSI(KBOT), respectively.VβVisDOUBLE PRECISIONarray, dimension(LDV,NW). an NW-by-NW work array.LDVβLDVisINTEGER. the leading dimension ofVjust as declared in the calling subroutine.NW <= LDV.NHβNHisINTEGER. the number of columns ofT.NH >= NW.TβTisDOUBLE PRECISIONarray, dimension(LDT,NW).LDTβLDTisINTEGER. the leading dimension ofTjust as declared in the calling subroutine.NW <= LDT.NVβNVisINTEGER. the number of rows of work arrayWVavailable for workspace.NV >= NW.WVβWVisDOUBLE PRECISIONarray, dimension(LDWV,NW).LDWVβLDWVisINTEGER. the leading dimension ofWjust as declared in the calling subroutine.NW <= LDV. (that's what it says, don't come for me π)WORKβWORKisDOUBLE PRECISIONarray, dimension(LWORK). on exit,WORK(1)is set to an estimate of the optimal value ofLWORKfor the given values ofN,NW,KTOPandKBOT.LWORKβLWORKisINTEGER. the dimension of the work arrayWORK.LWORK = 2*NWsuffices, but greater efficiency may result from larger values ofLWORK.
π¨ okay important one, bestie: ifLWORK = -1, then a workspace query is assumed;DLAQR3only estimates the optimal workspace size for the given values ofN,NW,KTOPandKBOT. the estimate is returned inWORK(1). no error message related toLWORKis issued byXERBLA. neitherHnorZare accessed. so likeβ¦ it literally doesn't touch your matrices. zero contact. π
π 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 272 of file dlaqr3.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page, periodt π this absolute icon of a doc came from LAPACK Version 3.12.0, filed under SRC/dlaqr3.f(3) β go forth and deflate aggressively (early), 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