SRC/zhetrd_he2hb.f(3)
๐ SRC/zhetrd_he2hb.f(3) โ LAPACK Library Functions Manual ๐ฆ
okay bestie, so this is one of those LAPACK pages โ it's the zhetrd_he2hb.f man page from the LAPACK library, and honestly? she's kind of a big deal. Buckle up, we're going to talk about reducing complex Hermitian matrices to band-diagonal form and you're going to understand it. ๐
โจ SYNOPSIS โจ
Functions/Subroutines ๐ธ
subroutine zhetrd_he2hb (uplo, n, kd, a, lda, ab, ldab, tau, work,
lwork, info)
ZHETRD_HE2HB โ that's her name, that's her whole brand. ๐
๐ Function/Subroutine Documentation ๐
subroutine zhetrd_he2hb (character uplo, integer n, integer kd, complex*16,
dimension( lda, * ) a, integer lda, complex*16, dimension( ldab, * ) ab,
integer ldab, complex*16, dimension( * ) tau, complex*16, dimension( * )
work, integer lwork, integer info)
ZHETRD_HE2HB ๐ซถ
๐ง Purpose ๐ง
ZHETRD_HE2HB reduces a complex Hermitian matrixAto complex Hermitian band-diagonal formABby a unitary similarity transformation:Q**H * A * Q = AB.
literally that's it, that's the whole vibe. she takes your Hermitian matrix and puts it in band-diagonal form via a unitary similarity transform. no cap. โจ
๐ Parameters ๐
UPLOโ isCHARACTER*1. it tells you which triangle is doing the werk:= 'U': the upper triangle ofAis stored ๐= 'L': the lower triangle ofAis stored ๐
Nโ isINTEGER. the order of the matrixA. constraint era:N >= 0. bestie, zero is allowed, negative is NOT. ๐ซKDโ isINTEGER. the number of superdiagonals of the reduced matrix ifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'. rule of law:KD >= 0. the reduced matrix lives in the arrayAB. ๐Aโ isCOMPLEX*16array, dimension(LDA,N).- on entry: the Hermitian matrix
A. 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 (she's ignored, she's unbothered ๐ ). 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: if
UPLO = 'U', the diagonal and first superdiagonal ofAare overwritten by the corresponding elements of the tridiagonal matrixT, and the elements above the first superdiagonal, with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors. ifUPLO = 'L', the diagonal and first subdiagonal ofAare over-written by the corresponding elements of the tridiagonal matrixT, and the elements below the first subdiagonal, with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors. see Further Details below, iykyk. ๐
- on entry: the Hermitian matrix
LDAโ isINTEGER. the leading dimension of the arrayA. requirement:LDA >= max(1,N). โญABโ isCOMPLEX*16array, dimension(LDAB,N).- on exit: the upper or lower triangle of the Hermitian band matrix
A, stored in the firstKD+1rows of the array. thej-th column ofAis stored in thej-th column of the arrayABas follows:- if
UPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd).
- if
- on exit: the upper or lower triangle of the Hermitian band matrix
LDABโ isINTEGER. the leading dimension of the arrayAB. requirement:LDAB >= KD+1. ๐ธTAUโ isCOMPLEX*16array, dimension(N-KD). the scalar factors of the elementary reflectors (peep Further Details for the lore). ๐ฆWORKโ isCOMPLEX*16array, dimension(MAX(1,LWORK)).- on exit: if
INFO = 0, or ifLWORK = -1,WORK(1)returns the size ofLWORK. ๐ฅ
- on exit: if
LWORKโ isINTEGER. the dimension of the arrayWORKwhich should be calculated by a workspace query.- if
N <= KD+1,LWORK >= 1, elseLWORK = MAX(1, LWORK_QUERY). - if
LWORK = -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 by XERBLA (she's off the hook, don't @ her ๐). LWORK_QUERY = N*KD + N*max(KD,FACTOPTNB) + 2*KD*KDwhereFACTOPTNBis the blocking used by theQRorLQalgorithm, usuallyFACTOPTNB=128is a good choice โ otherwise puttingLWORK=-1will provide the size ofWORK. ๐งฎ
- if
INFOโ isINTEGER. the receipts:= 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
ifUPLO = 'U', the matrixQis represented as a product of elementary reflectorstext Q = H(k)**H . . . H(2)**H H(1)**H, where k = n-kd.
eachH(i)has the formtext H(i) = I - tau * v * v**H
wheretauis a complex scalar, andvis a complex vector withv(1:i+kd-1) = 0andv(i+kd) = 1;conjg(v(i+kd+1:n))is stored on exit inA(i,i+kd+1:n), andtauinTAU(i).
ifUPLO = 'L', the matrixQis represented as a product of elementary reflectorstext Q = H(1) H(2) . . . H(k), where k = n-kd.
eachH(i)has the formtext H(i) = I - tau * v * v**H
wheretauis a complex scalar, andvis a complex vector withv(kd+1:i) = 0andv(i+kd+1) = 1;v(i+kd+2:n)is stored on exit inA(i+kd+2:n,i), andtauinTAU(i).
the contents ofAon exit are illustrated by the following examples withn = 5:
ifUPLO = 'U':ifUPLO = 'L':text ( ab ab/v1 v1 v1 v1 ) ( ab ) ( ab ab/v2 v2 v2 ) ( ab/v1 ab ) ( ab ab/v3 v3 ) ( v1 ab/v2 ab ) ( ab ab/v4 ) ( v1 v2 ab/v3 ab ) ( ab ) ( v1 v2 v3 ab/v4 ab )
wheredandedenote diagonal and off-diagonal elements ofT, andvidenotes an element of the vector definingH(i).
Definition at line 243 of file zhetrd_he2hb.f. ๐
๐ Author (the meta one) ๐
Generated automatically by Doxygen for LAPACK from the source code. she was literally built by a machine, main character energy fr fr ๐ค๐
and that's the whole page, bestie โ LAPACK Version 3.12.0, <rainbow>SRC/zhetrd_he2hb.f(3)</rainbow>, auto-generated with love (and Doxygen) for LAPACK. slay, go reduce some matrices. ๐
โจ๐
๐ฆ 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