SRC/iparmq.f(3)
πΈ SRC/iparmq.f(3) β IPARMQ πΈ
okay so bestie, this is the Library Functions Manual page for SRC/iparmq.f(3) β manual name folded in near the top like a lil name tag π«Ά. Itβs the IPARMQ page, and yes she has main character energy in the eigenvalue-parameter department.
πΈ NAME πΈ
SRC/iparmq.f β thatβs the name, no extra lore, periodt π
.
β¨ SYNOPSIS β¨
π Functions/Subroutines π
integer function iparmq (ispec, name, opts, n, ilo, ihi, lwork)
IPARMQ
π Function/Subroutine Documentation π
Hereβs the full signature the docs show, bestie:
integer function iparmq (integer ispec, character, dimension( * ) name,
character, dimension( * ) opts, integer n, integer ilo, integer ihi,
integer lwork)
IPARMQ
π₯ Purpose π₯
This program sets problem- and machine-dependent parameters that are useful for xHSEQR and related subroutines for eigenvalue problems. It is called whenever IPARMQ is called with 12 <= ISPEC <= 16.
and yes, the Purpose block literally says12 <= ISPEC <= 16while the parameter list below rolls outISPEC=17β the source is giving plot twist, Iβm just reporting it π.
π Parameters π
Every parameter below was wearing !> doc-comment markers in the source; Iβve peeled those off for readability but kept the tea exactly π«Ά.
ISPECβISPECisINTEGER; it specifies which tunable parameterIPARMQshould return.ISPEC=12β(INMIN)Matrices of ordernminor less are sent directly toxLAHQR, the implicit double shift QR algorithm.NMINmust be at least11.ISPEC=13β(INWIN)Size of the deflation window. This is best set greater than or equal to the number of simultaneous shiftsNS. Larger matrices benefit from larger deflation windows.ISPEC=14β(INIBL)Determines when to stop nibbling and invest in an (expensive) multi-shift QR sweep. If the aggressive early deflation subroutine findsLDconverged eigenvalues from an orderNWdeflation window andLD > (NW*NIBBLE)/100, then the next QR sweep is skipped and early deflation is applied immediately to the remaining active diagonal block. SettingIPARMQ(ISPEC=14) = 0causesTTQREto skip a multi-shift QR sweep whenever early deflation finds a converged eigenvalue. SettingIPARMQ(ISPEC=14)greater than or equal to100preventsTTQREfrom skipping a multi-shift QR sweep.ISPEC=15β(NSHFTS)The number of simultaneous shifts in a multi-shift QR iteration.ISPEC=16β(IACC22)IPARMQis set to0,1or2with the following meanings.0: During the multi-shift QR/QZ sweep, blocked eigenvalue reordering, blocked Hessenberg-triangular reduction, reflections and/or rotations are not accumulated when updating the far-from-diagonal matrix entries.1: During the multi-shift QR/QZ sweep, blocked eigenvalue reordering, blocked Hessenberg-triangular reduction, reflections and/or rotations are accumulated, and matrix-matrix multiplication is used to update the far-from-diagonal matrix entries.2: During the multi-shift QR/QZ sweep, blocked eigenvalue reordering, blocked Hessenberg-triangular reduction, reflections and/or rotations are accumulated, and 2-by-2 block structure is exploited during matrix-matrix multiplies.- (If
xTRMMis slower thanxGEMM, thenIPARMQ(ISPEC=16)=1may be more efficient thanIPARMQ(ISPEC=16)=2despite the greater level of arithmetic work implied by the latter choice.)
ISPEC=17β(ICOST)An estimate of the relative cost of flops within the near-the-diagonal shift chase compared to flops within the BLAS calls of a QZ sweep.
NAMEβNAMEis aCHARACTERstring; name of the calling subroutine.OPTSβOPTSis aCHARACTERstring; this is a concatenation of the string arguments toTTQRE.NβNisINTEGER;Nis the order of the Hessenberg matrixH.ILOβILOisINTEGER.IHIβIHIisINTEGER; it is assumed thatHis already upper triangular in rows and columns1:ILO-1andIHI+1:N.LWORKβLWORKisINTEGER; the amount of workspace available.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Further Details π¦
Little is known about how best to choose these parameters. It is possible to use different values of the parameters for each of CHSEQR, DHSEQR, SHSEQR and ZHSEQR.
It is probably best to choose different parameters for different matrices and different parameters at different times during the iteration, but this has not been implemented --- yet.
The best choices of most of the parameters depend in an ill-understood way on the relative execution rate of xLAQR3 and xLAQR5 and on the nature of each particular eigenvalue problem. Experiment may be the only practical way to determine which choices are most effective.
Following is a list of default values supplied by IPARMQ. These defaults may be adjusted in order to attain better performance in any particular computational environment.
IPARMQ(ISPEC=12)β ThexLAHQRvsxLAQR0crossover point. Default:75. (Must be at least11.)IPARMQ(ISPEC=13)β Recommended deflation window size. This depends onILO,IHIandNS, the number of simultaneous shifts returned byIPARMQ(ISPEC=15). The default for(IHI-ILO+1) <= 500isNS. The default for(IHI-ILO+1) > 500is3*NS/2.IPARMQ(ISPEC=14)β Nibble crossover point. Default:14.IPARMQ(ISPEC=15)β Number of simultaneous shifts,NS. The source literally follows that witha multi-shift QR iteration.π«
If IHI-ILO+1 is ... greater than or equal to ... but less than ... the default is:
- greater than or equal to
0but less than30βNS = 2+ - greater than or equal to
30but less than60βNS = 4+ - greater than or equal to
60but less than150βNS = 10 - greater than or equal to
150but less than590βNS = ** - greater than or equal to
590but less than3000βNS = 64 - greater than or equal to
3000but less than6000βNS = 128 - greater than or equal to
6000but less thaninfinityβNS = 256 - (+) By default matrices of this order are passed to the implicit double shift routine
xLAHQR. SeeIPARMQ(ISPEC=12)above. These values ofNSare used only in case of a rarexLAHQRfailure. - ()** The asterisks (
**) indicate an ad-hoc function increasing from10to64. IPARMQ(ISPEC=16)β Select structured matrix multiply. (SeeISPEC=16above for details.) Default:3.
yes, the default here literally says3even thoughISPEC=16above lists0,1, and2β Iβm not fixing the source, Iβm just reading it out loud π.
IPARMQ(ISPEC=17)β Relative cost heuristic for blocksize selection. Expressed as a percentage. Default:10.
Definition at line 229 of file iparmq.f.
π Author π (Doxygen edition)
Generated automatically by Doxygen for LAPACK from the source code.
π cute sign-off: this footer says LAPACK, Version 3.12.0, page SRC/iparmq.f(3) β and there is no date in the original footer, so Iβm not inventing one, 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