SRC/dpteqr.f(3)
π SRC/dpteqr.f(3) π
Okay bestie, welcome to the SRC/dpteqr.f(3) page from the Library Functions Manual. This is the manual name, and yes, itβs giving βmath girlie with a tridiagonal glow-up.β π
π NAME π
SRC/dpteqr.f β literally the page name, bestie. No cap.
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine dpteqr (compz, n, d, e, z, ldz, work, info)β DPTEQR
πΈ Function/Subroutine Documentation πΈ
Hereβs the full signature, copied exactly because we do not play with code:
subroutine dpteqr (character compz, integer n, double precision, dimension(
* ) d, double precision, dimension( * ) e, double precision, dimension(
ldz, * ) z, integer ldz, double precision, dimension( * ) work, integer
info)
DPTEQR β thatβs the iconβs name, periodt.
π¦ Purpose π¦
So DPTEQR computes all eigenvalues and, optionally, eigenvectors of a symmetric positive definite tridiagonal matrix. The way it does this: first it factors the matrix using DPTTRF, and then it calls DBDSQR to compute the singular values of the bidiagonal factor. Slay. β¨
This routine computes the eigenvalues of the positive definite tridiagonal matrix to high relative accuracy. What that means in group-chat terms: if the eigenvalues range over many orders of magnitude in size, then the small eigenvalues and corresponding eigenvectors will be computed more accurately than, for example, with the standard QR method. Itβs giving precision, honestly. π
The eigenvectors of a full or band symmetric positive definite matrix can also be found if DSYTRD, DSPTRD, or DSBTRD has been used to reduce this matrix to tridiagonal form. β οΈ But plot twist: the reduction to tridiagonal form, however, may preclude the possibility of obtaining high relative accuracy in the small eigenvalues of the original matrix, if these eigenvalues range over many orders of magnitude.
πΈ Parameters πΈ
COMPZβ this one isCHARACTER*1, and it decides what weβre computing:= 'N': Compute eigenvalues only.= 'V': Compute eigenvectors of original symmetric matrix also. ArrayZcontains the orthogonal matrix used to reduce the original matrix to tridiagonal form.= 'I': Compute eigenvectors of tridiagonal matrix also.
NβN is INTEGER. Itβs the order of the matrix.N >= 0.DβD is DOUBLE PRECISION array, dimension (N).- On entry, the
ndiagonal elements of the tridiagonal matrix. - On normal exit,
Dcontains the eigenvalues, in descending order. π
- On entry, the
EβE is DOUBLE PRECISION array, dimension (N-1).- On entry, the
(n-1)subdiagonal elements of the tridiagonal matrix. - On exit,
Ehas been destroyed. π Like, gone-gone.
- On entry, the
ZβZ is DOUBLE PRECISION array, dimension (LDZ, N).- On entry, if
COMPZ = 'V', the orthogonal matrix used in the reduction to tridiagonal form. - On exit, if
COMPZ = 'V', the orthonormal eigenvectors of the original symmetric matrix; - if
COMPZ = 'I', the orthonormal eigenvectors of the tridiagonal matrix. - If
INFO > 0on exit,Zcontains the eigenvectors associated with only the stored eigenvalues. - If
COMPZ = 'N', thenZis not referenced. Not even a little bit. π
- On entry, if
LDZβLDZ is INTEGER. The leading dimension of the arrayZ.LDZ >= 1, and ifCOMPZ = 'V'or'I',LDZ >= max(1,N).WORKβWORK is DOUBLE PRECISION array, dimension (4*N).INFOβINFO is INTEGER.= 0: successful exit. We love a clean exit. π«Ά< 0: ifINFO = -i, thei-th argument had an illegal value.> 0: ifINFO = i, andiis:<= Nthe Cholesky factorization of the matrix could not be performed because the leading principal minor of orderiwas not positive.> Nthe SVD algorithm failed to converge; ifINFO = N+i,ioff-diagonal elements of the bidiagonal factor did not converge to zero.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 144 of file dpteqr.f.
π€ Author π€
Generated automatically by Doxygen for LAPACK from the source code.
π«Ά Footer tea: LAPACK Version 3.12.0, page SRC/dpteqr.f(3); no extra date in the footer, just vibes. Kisses! π
π¦ 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