ZLAED7(3)
π ZLAED7(3) β the eigenproblem glow-up routine π
Okay bestie, so this is a page straight out of LAPACK (that's the Linear Algebra PACKage, the blueprint of iconic numeric tea), and the routine lives at SRC/zlaed7.f inside the source tree (zlaed7.f, definition at line 245). LAPACK itself is chilling at Version 3.12.0. It got auto-generated by Doxygen from the source code, so ngl the original is giving β¨machine-madeβ¨ energy β but we're about to make it make sense fr fr. π«Ά
β¨ SYNOPSIS β¨
Like, here's the whole main-character lineup of the subroutine β every argument, in order, no skips:
subroutine ZLAED7 (n, cutpnt, qsiz, tlvls, curlvl, curpbm, d, q, ldq,
rho, indxq, qstore, qptr, prmptr, perm, givptr, givcol, givnum,
work, rwork, iwork, info)
The full signature, typed out with all the declarations, is literally:
subroutine ZLAED7 (integer n, integer cutpnt, integer qsiz, integer tlvls,
integer curlvl, integer curpbm, double precision, dimension( * ) d,
complex*16, dimension( ldq, * ) q, integer ldq, double precision rho,
integer, dimension( * ) indxq, double precision, dimension( * ) qstore,
integer, dimension( * ) qptr, integer, dimension( * ) prmptr, integer,
dimension( * ) perm, integer, dimension( * ) givptr, integer, dimension(
2, * ) givcol, double precision, dimension( 2, * ) givnum, complex*16,
dimension( * ) work, double precision, dimension( * ) rwork, integer,
dimension( * ) iwork, integer info)
So what's the vibe? ZLAED7 is used by ZSTEDC. It computes the updated eigensystem of a diagonal matrix after modification by a rank-one symmetric matrix, and it gets called when the original matrix is dense. Basically it's the glowing-up eigensystem machine. π
π¦ Function/Subroutine Documentation π¦
Bestie. Real talk. Here's what this icon actually does. π
π Purpose π
ZLAED7 computes the updated eigensystem of a diagonal matrix after modification by a rank-one symmetric matrix. This routine is used only for the eigenproblem which requires all eigenvalues and optionally eigenvectors of a dense or banded Hermitian matrix that has been reduced to tridiagonal form.
And here's the equation doing its whole main character moment:
T = Q(in) ( D(in) + RHO * Z*Z**H ) Q**H(in) = Q(out) * D(out) * Q**H(out)
where Z = Q**Hu, and u is a vector of length N with ones in the CUTPNT and CUTPNT + 1 th elements and zeros elsewhere. Slay. β¨
The eigenvectors of the original matrix are stored in Q, and the eigenvalues are in D. The algorithm consists of three stages β and yes, each one is iconic:
- The first stage consists of deflating the size of the problem when there are multiple eigenvalues or if there is a zero in the
Zvector. For each such occurrence the dimension of the secular equation problem is reduced by one. This stage is performed by the routineDLAED2. - The second stage consists of calculating the updated eigenvalues. This is done by finding the roots of the secular equation via the routine
DLAED4(as called bySLAED3). This routine also calculates the eigenvectors of the current problem. - The final stage consists of computing the updated eigenvectors directly using the updated eigenvalues. The eigenvectors for the current problem are multiplied with the eigenvectors from the overall problem.
πΈ Parameters πΈ
Every single one, bestie, with the specs untouched. π
Nβ INTEGER. The dimension of the symmetric tridiagonal matrix.N >= 0.CUTPNTβ INTEGER. Contains the location of the last eigenvalue in the leading sub-matrix.min(1,N) <= CUTPNT <= N.QSIZβ INTEGER. The dimension of the unitary matrix used to reduce the full matrix to tridiagonal form.QSIZ >= N.TLVLSβ INTEGER. The total number of merging levels in the overall divide and conquer tree.CURLVLβ INTEGER. The current level in the overall merge routine,0 <= curlvl <= tlvls.CURPBMβ INTEGER. The current problem in the current level in the overall merge routine (counting from upper left to lower right).Dβ DOUBLE PRECISION array, dimension (N). On entry, the eigenvalues of the rank-1-perturbed matrix. On exit, the eigenvalues of the repaired matrix.Qβ COMPLEX*16 array, dimension (LDQ,N). On entry, the eigenvectors of the rank-1-perturbed matrix. On exit, the eigenvectors of the repaired tridiagonal matrix.LDQβ INTEGER. The leading dimension of the arrayQ.LDQ >= max(1,N).RHOβ DOUBLE PRECISION. Contains the subdiagonal element used to create the rank-1 modification.INDXQβ INTEGER array, dimension (N). This contains the permutation which will reintegrate the subproblem just solved back into sorted order, ie.D( INDXQ( I = 1, N ) )will be in ascending order.IWORKβ INTEGER array, dimension (4*N).RWORKβ DOUBLE PRECISION array, dimension (3*N+2*QSIZ*N).WORKβ COMPLEX*16 array, dimension (QSIZ*N).QSTOREβ DOUBLE PRECISION array, dimension (N**2+1). Stores eigenvectors of submatrices encountered during divide and conquer, packed together.QPTRpoints to beginning of the submatrices.QPTRβ INTEGER array, dimension (N+2). List of indices pointing to beginning of submatrices stored inQSTORE. The submatrices are numbered starting at the bottom left of the divide and conquer tree, from left to right and bottom to top.PRMPTRβ INTEGER array, dimension (N lg N). Contains a list of pointers which indicate where inPERMa level's permutation is stored.PRMPTR(i+1) - PRMPTR(i)indicates the size of the permutation and also the size of the full, non-deflated problem.PERMβ INTEGER array, dimension (N lg N). Contains the permutations (from deflation and sorting) to be applied to each eigenblock.GIVPTRβ INTEGER array, dimension (N lg N). Contains a list of pointers which indicate where inGIVCOLa level's Givens rotations are stored.GIVPTR(i+1) - GIVPTR(i)indicates the number of Givens rotations.GIVCOLβ INTEGER array, dimension (2, N lg N). Each pair of numbers indicates a pair of columns to take place in a Givens rotation.GIVNUMβ DOUBLE PRECISION array, dimension (2, N lg N). Each number indicates theSvalue to be used in the corresponding Givens rotation.INFOβ INTEGER. Okay so this one's important, bestie:= 0: successful exit. π< 0: ifINFO = -i, the i-th argument had an illegal value. π> 0: ifINFO = 1, an eigenvalue did not converge. π
Lowkey watch out for thatINFO > 0case βINFO = 1means an eigenvalue did not converge, and that's the "it's giving unbothered, but we are in fact bothered" moment. π
π Author π
The absolute legends behind this routine:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Sign-off π
Definition at line 245 of file zlaed7.f, and this page itself was generated automatically by Doxygen for LAPACK from the source code β LAPACK Version 3.12.0, dated /home/abui...RC/zlaed7.f(3) (that truncated path is just the build machine's business, don't stress it π). Periodt. π
β¨
π¦ 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