/home/abui...d_2stage.f(3)
π ZHETRD_2STAGE π
okay bestie, so this is a page straight out of the Library Functions Manual, and the star of the show lives at:
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/SRC/zhetrd_2stage.f
like yes, that's the whole NAME section, it's just the path, she's lowkey just doxxing herself π (it's LAPACK, bestie, she's famous)
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines
subroutine ZHETRD_2STAGE (vect, uplo, n, a, lda, d, e, tau, hous2,
lhous2, work, lwork, info)
ZHETRD_2STAGE π«Ά
π Function/Subroutine Documentation π
subroutine ZHETRD_2STAGE (character vect, character uplo, integer n,
complex*16, dimension( lda, * ) a, integer lda, double precision,
dimension( * ) d, double precision, dimension( * ) e, complex*16,
dimension( * ) tau, complex*16, dimension( * ) hous2, integer lhous2,
complex*16, dimension( * ) work, integer lwork, integer info)
ZHETRD_2STAGE β¨
π Purpose
so, what does she do β ZHETRD_2STAGE reduces a complex Hermitian matrix A to real symmetric tridiagonal form T by a unitary similarity transformation, and the whole vibe is:
Q1**H Q2**H* A * Q2 * Q1 = T
periodt. that's the transformation. she ate. π
π Parameters
VECTβVECT is CHARACTER*1= 'N': no need for the Housholder representation, in particular for the second stage (Band to tridiagonal) and thusLHOUS2is of sizemax(1, 4*N);= 'V': the Householder representation is needed to either generateQ1 Q2or to applyQ1 Q2, thenLHOUS2is to be queried and computed. (NOT AVAILABLE IN THIS RELEASE).
π«Ά note the spelling "Housholder" up there β that's the original's spelling, not mine, I'm just being faithful, okay??
UPLOβUPLO is CHARACTER*1= 'U': Upper triangle ofAis stored;= 'L': Lower triangle ofAis stored.
NβN is INTEGERThe order of the matrixA.N >= 0.AβA is COMPLEX*16 array, dimension (LDA,N)On entry, the Hermitian matrixA. IfUPLO = 'U', the leadingN-by-Nupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingN-by-Nlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. On exit, ifUPLO = 'U', the band superdiagonal ofAare overwritten by the corresponding elements of the internal band-diagonal matrixAB, and the elements above theKDsuperdiagonal, with the arrayTAU, represent the unitary matrixQ1as a product of elementary reflectors; ifUPLO = 'L', the diagonal and band subdiagonal ofAare over-written by the corresponding elements of the internal band-diagonal matrixAB, and the elements below theKDsubdiagonal, with the arrayTAU, represent the unitary matrixQ1as a product of elementary reflectors. See Further Details.LDAβLDA is INTEGERThe leading dimension of the arrayA.LDA >= max(1,N).DβD is DOUBLE PRECISION array, dimension (N)The diagonal elements of the tridiagonal matrixT.EβE is DOUBLE PRECISION array, dimension (N-1)The off-diagonal elements of the tridiagonal matrixT.TAUβTAU is COMPLEX*16 array, dimension (N-KD)The scalar factors of the elementary reflectors of the first stage (see Further Details).HOUS2βHOUS2 is COMPLEX*16 array, dimension (LHOUS2)Stores the Householder representation of the stage2 band to tridiagonal.LHOUS2βLHOUS2 is INTEGERThe dimension of the arrayHOUS2. IfLWORK = -1, orLHOUS2 = -1, then a query is assumed; the routine only calculates the optimal size of theHOUS2array, returns this value as the first entry of theHOUS2array, and no error message related toLHOUS2is issued byXERBLA. IfVECT='N',LHOUS2 = max(1, 4*n); ifVECT='V', option not yet available.WORKβWORK is COMPLEX*16 array, dimension (LWORK)LWORKβLWORK is INTEGERThe dimension of the arrayWORK.LWORK = MAX(1, dimension)IfLWORK = -1, orLHOUS2=-1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.LWORK = MAX(1, dimension)where:
dimension = max(stage1,stage2) + (KD+1)*N
= N*KD + N*max(KD+1,FACTOPTNB)
+ max(2*KD*KD, KD*NTHREADS)
+ (KD+1)*N
where KD is the blocking size of the reduction, FACTOPTNB is the blocking used by the QR or LQ algorithm, usually FACTOPTNB=128 is a good choice, NTHREADS is the number of threads used when openMP compilation is enabled, otherwise =1.
INFOβINFO is INTEGER= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Further Details
Implemented by Azzam Haidar.
All details are available on technical report, SC11, SC13 papers.
Azzam Haidar, Hatem Ltaief, and Jack Dongarra. Parallel reduction to condensed forms for symmetric eigenvalue problems using aggregated fine-grained and memory-aware kernels. In Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis (SC '11), New York, NY, USA, Article 8, 11 pages. http://doi.acm.org/10.1145/2063384.2063394
A. Haidar, J. Kurzak, P. Luszczek, 2013. An improved parallel singular value algorithm and its implementation for multicore hardware, In Proceedings of 2013 International Conference for High Performance Computing, Networking, Storage and Analysis (SC '13). Denver, Colorado, USA, 2013. Article 90, 12 pages. http://doi.acm.org/10.1145/2503210.2503292
A. Haidar, R. Solca, S. Tomov, T. Schulthess and J. Dongarra. A novel hybrid CPU-GPU generalized eigensolver for electronic structure calculations based on fine-grained memory aware tasks. International Journal of High Performance Computing Applications. Volume 28 Issue 2, Pages 196-209, May 2014. http://hpc.sagepub.com/content/28/2/196
β Definition at line 222 of file zhetrd_2stage.f. β
and that's the whole page bestie, mwah π
sign-off time: this lovely thing is LAPACK Version 3.12.0, from /home/abui...d_2stage.f(3), and the whole page was generated automatically by Doxygen for LAPACK from the source code β so like, don't come for me about typos, the robots did it ππ
π¦ 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