hbevd_2stage(3)

🌸 NAME 🌸

okay bestie, this is the hbevd_2stage(3) page from the Library Functions Manual, and it's all about hbevd_2stage β€” {hb,sb}evd_2stage: eig, divide and conquer. Eigenvalues, divide and conquer, the whole vibe πŸ’…βœ¨

✨ SYNOPSIS ✨

Functions

  • chbevd_2stage β€” CHBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices. subroutine chbevd_2stage (jobz, uplo, n, kd, ab, ldab, w, z, ldz, work, lwork, rwork, lrwork, iwork, liwork, info)
  • dsbevd_2stage β€” DSBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices. subroutine dsbevd_2stage (jobz, uplo, n, kd, ab, ldab, w, z, ldz, work, lwork, iwork, liwork, info)
  • ssbevd_2stage β€” SSBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices. subroutine ssbevd_2stage (jobz, uplo, n, kd, ab, ldab, w, z, ldz, work, lwork, iwork, liwork, info)
  • zhbevd_2stage β€” ZHBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices. subroutine zhbevd_2stage (jobz, uplo, n, kd, ab, ldab, w, z, ldz, work, lwork, rwork, lrwork, iwork, liwork, info)

πŸ’« Detailed Description πŸ’«

The real tea is all in the function docs below, bestie β€” no extra lore hiding up here 🫢

πŸ”₯ Function Documentation πŸ”₯

subroutine chbevd_2stage

subroutine chbevd_2stage (character jobz, character uplo, integer n, integer kd, complex, dimension( ldab, * ) ab, integer ldab, real, dimension( * ) w, complex, dimension( ldz, * ) z, integer ldz, complex, dimension( * ) work, integer lwork, real, dimension( * ) rwork, integer lrwork, integer, dimension( * ) iwork, integer liwork, integer info)

CHBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices.

Purpose: CHBEVD_2STAGE computes all the eigenvalues and, optionally, eigenvectors of a complex Hermitian band matrix A using the 2stage technique for the reduction to tridiagonal. If eigenvectors are desired, it uses a divide and conquer algorithm.

Parameters

JOBZ β€” JOBZ is CHARACTER*1.

  • = 'N': Compute eigenvalues only;
  • = 'V': Compute eigenvalues and eigenvectors. Not available in this release.
bestie, 'V' is giving β€œnot available in this release” energy β€” that's just the rule, no cap πŸ’€

UPLO β€” UPLO is CHARACTER*1.

  • = 'U': Upper triangle of A is stored;
  • = 'L': Lower triangle of A is stored.

N β€” N is INTEGER. The order of the matrix A. N >= 0.

KD β€” KD is INTEGER. The number of superdiagonals of the matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KD >= 0.

AB β€” AB is COMPLEX array, dimension (LDAB, N). On entry, the upper or lower triangle of the Hermitian band matrix A, stored in the first KD+1 rows of the array. The j-th column of A is stored in the j-th column of the array AB as follows:

if UPLO = 'U', AB(kd+1+i-j,j) = A(i,j) for max(1,j-kd)<=i<=j;
if UPLO = 'L', AB(1+i-j,j)    = A(i,j) for j<=i<=min(n,j+kd).

On exit, AB is overwritten by values generated during the reduction to tridiagonal form. If UPLO = 'U', the first superdiagonal and the diagonal of the tridiagonal matrix T are returned in rows KD and KD+1 of AB, and if UPLO = 'L', the diagonal and first subdiagonal of T are returned in the first two rows of AB.

LDAB β€” LDAB is INTEGER. The leading dimension of the array AB. LDAB >= KD + 1.

W β€” W is REAL array, dimension (N). If INFO = 0, the eigenvalues in ascending order.

Z β€” Z is COMPLEX array, dimension (LDZ, N). If JOBZ = 'V', then if INFO = 0, Z contains the orthonormal eigenvectors of the matrix A, with the i-th column of Z holding the eigenvector associated with W(i). If JOBZ = 'N', then Z is not referenced.

LDZ β€” LDZ is INTEGER. The leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N).

WORK β€” WORK is COMPLEX array, dimension (MAX(1,LWORK)). On exit, if INFO = 0, WORK(1) returns the optimal LWORK.

LWORK β€” LWORK is INTEGER. The length of the array WORK. LWORK >= 1, when N <= 1; otherwise:

  • If JOBZ = 'N' and N > 1, LWORK must be queried.
LWORK = MAX(1, dimension) where
dimension = (2KD+1)*N + KD*NTHREADS
where KD is the size of the band.
NTHREADS is the number of threads used when
openMP compilation is enabled, otherwise =1.
  • If JOBZ = 'V' and N > 1, LWORK must be queried. Not yet available.

If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK, RWORK and IWORK arrays, returns these values as the first entries of the WORK, RWORK and IWORK arrays, and no error message related to LWORK or LRWORK or LIWORK is issued by XERBLA.

RWORK β€” RWORK is REAL array, dimension (LRWORK). On exit, if INFO = 0, RWORK(1) returns the optimal LRWORK.

LRWORK β€” LRWORK is INTEGER. The dimension of array RWORK.

  • If N <= 1, LRWORK must be at least 1.
  • If JOBZ = 'N' and N > 1, LRWORK must be at least N.
  • If JOBZ = 'V' and N > 1, LRWORK must be at least 1 + 5*N + 2*N**2.

If LRWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK, RWORK and IWORK arrays, returns these values as the first entries of the WORK, RWORK and IWORK arrays, and no error message related to LWORK or LRWORK or LIWORK is issued by XERBLA.

IWORK β€” IWORK is INTEGER array, dimension (MAX(1,LIWORK)). On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.

LIWORK β€” LIWORK is INTEGER. The dimension of array IWORK.

  • If JOBZ = 'N' or N <= 1, LIWORK must be at least 1.
  • If JOBZ = 'V' and N > 1, LIWORK must be at least 3 + 5*N.

If LIWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK, RWORK and IWORK arrays, returns these values as the first entries of the WORK, RWORK and IWORK arrays, and no error message related to LWORK or LRWORK or LIWORK is issued by XERBLA.

INFO β€” INFO is INTEGER.

  • = 0: successful exit.
  • < 0: if INFO = -i, the i-th argument had an illegal value.
  • > 0: if INFO = i, the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero.

Author

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Further Details:

All details about the 2stage techniques are available in:

  • 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 251 of file chbevd_2stage.f.

subroutine dsbevd_2stage

subroutine dsbevd_2stage (character jobz, character uplo, integer n, integer kd, double precision, dimension( ldab, * ) ab, integer ldab, double precision, dimension( * ) w, double precision, dimension( ldz, * ) z, integer ldz, double precision, dimension( * ) work, integer lwork, integer, dimension( * ) iwork, integer liwork, integer info)

DSBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices.

Purpose: DSBEVD_2STAGE computes all the eigenvalues and, optionally, eigenvectors of a real symmetric band matrix A using the 2stage technique for the reduction to tridiagonal. If eigenvectors are desired, it uses a divide and conquer algorithm.

Parameters

JOBZ β€” JOBZ is CHARACTER*1.

  • = 'N': Compute eigenvalues only;
  • = 'V': Compute eigenvalues and eigenvectors. Not available in this release.

UPLO β€” UPLO is CHARACTER*1.

  • = 'U': Upper triangle of A is stored;
  • = 'L': Lower triangle of A is stored.

N β€” N is INTEGER. The order of the matrix A. N >= 0.

KD

okay so where were we β€” right, the parameters, bestie. buckle up, we're going through every single one πŸ’…

  • KD (INTEGER) β€” the number of superdiagonals of the matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. gotta be KD >= 0, no exceptions 🫢
  • AB (DOUBLE PRECISION array, dimension (LDAB, N)) β€” on entry, this holds the upper or lower triangle of the symmetric band matrix A, stored in the first KD+1 rows of the array. the j-th column of A lives in the j-th column of AB, like this:
if UPLO = 'U', AB(kd+1+i-j,j) = A(i,j) for max(1,j-kd)<=i<=j;
if UPLO = 'L', AB(1+i-j,j)    = A(i,j) for j<=i<=min(n,j+kd).

on exit, AB gets overwritten by values generated during the reduction to tridiagonal form 😭 so don't come crying to me about your original data. if UPLO = 'U', the first superdiagonal and the diagonal of the tridiagonal matrix T are returned in rows KD and KD+1 of AB; if UPLO = 'L', the diagonal and first subdiagonal of T are returned in the first two rows of AB. iconic storage behavior, honestly πŸ‘‘

  • LDAB (INTEGER) β€” the leading dimension of the array AB. rule is simple: LDAB >= KD + 1. that's it, that's the whole vibe check ✨
  • W (DOUBLE PRECISION array, dimension (N)) β€” if INFO = 0, this is where your eigenvalues live, in ascending order 🌸
  • Z (DOUBLE PRECISION array, dimension (LDZ, N)) β€” if JOBZ = 'V', then when INFO = 0, Z contains the orthonormal eigenvectors of the matrix A, with the i-th column of Z holding the eigenvector associated with W(i). if JOBZ = 'N', then Z is simply not referenced β€” literally not even looked at πŸ’€
  • LDZ (INTEGER) β€” the leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', then also LDZ >= max(1,N). both conditions, bestie, not one or the other πŸŽ€
  • WORK (DOUBLE PRECISION array, dimension LWORK) β€” on exit, if INFO = 0, WORK(1) returns the optimal LWORK. cute little self-report, love that for us πŸ¦‹
  • LWORK (INTEGER) β€” the length of the array WORK. LWORK >= 1 when N <= 1; otherwise:
If JOBZ = 'N' and N > 1, LWORK must be queried.
                                 LWORK = MAX(1, dimension) where
                                 dimension = (2KD+1)*N + KD*NTHREADS + N
                                 where KD is the size of the band.
                                 NTHREADS is the number of threads used when
                                 openMP compilation is enabled, otherwise =1.
If JOBZ = 'V' and N > 1, LWORK must be queried. Not yet available.

and if LWORK = -1, then a workspace query is assumed β€” the routine only calculates the optimal sizes of the WORK and IWORK arrays, returns these values as the first entries of the WORK and IWORK arrays, and no error message related to LWORK or LIWORK is issued by XERBLA. iykyk ✨

  • IWORK (INTEGER array, dimension (MAX(1,LIWORK))) β€” on exit, if INFO = 0, IWORK(1) returns the optimal LIWORK. same self-reporting energy 🫢
  • LIWORK (INTEGER) β€” the dimension of the array IWORK.
    • if JOBZ = 'N' or N <= 1, LIWORK must be at least 1.
    • if JOBZ = 'V' and N > 2, LIWORK must be at least 3 + 5*N.

and if LIWORK = -1, then a workspace query is assumed β€” the routine only calculates the optimal sizes of the WORK and IWORK arrays, returns these values as the first entries of the WORK and IWORK arrays, and no error message related to LWORK or LIWORK is issued by XERBLA. same deal as above, fr fr 🌈

  • INFO (INTEGER) β€” the receipts:
    • = 0: successful exit πŸŽ‰
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ™ˆ
    • > 0: if INFO = i, the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero 😭

Author πŸ’œ

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.


Further Details 🧚

All details about the 2stage techniques are available in β€” and yes bestie, we cite our sources, that's main character energy:

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 226 of file dsbevd_2stage.f.


🌈 subroutine ssbevd_2stage

okay so now we meet the sibling, and here's the signature, verbatim, because we do not mess with signatures:

subroutine ssbevd_2stage (character jobz, character uplo, integer n, integer
    kd, real, dimension( ldab, * ) ab, integer ldab, real, dimension( * ) w,
    real, dimension( ldz, * ) z, integer ldz, real, dimension( * ) work,
    integer lwork, integer, dimension( * ) iwork, integer liwork, integer
    info)

SSBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices πŸ‘‘

Purpose ✨

SSBEVD_2STAGE computes all the eigenvalues and, optionally, eigenvectors of a real symmetric band matrix A using the 2stage technique for the reduction to tridiagonal. If eigenvectors are desired, it uses a divide and conquer algorithm. she's thorough, she's efficient, she ate πŸ’…

Parameters πŸŽ€

  • JOBZ (CHARACTER*1) β€”
    • = 'N': compute eigenvalues only;
    • = 'V': compute eigenvalues and eigenvectors. ⚠️ Not available in this release. so don't try it, bestie, it's giving "coming soon" energy 😭
  • UPLO (CHARACTER*1) β€”
    • = 'U': upper triangle of A is stored;
    • = 'L': lower triangle of A is stored.
  • N (INTEGER) β€” the order of the matrix A. N >= 0. zero is allowed, negative is a no 🫢
  • KD (INTEGER) β€” the number of superdiagonals of the matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KD >= 0. same deal as the double precision version, no cap 🌸
  • AB (REAL array, dimension (LDAB, N)) β€” on entry, the upper or lower triangle of the symmetric band matrix A, stored in the first KD+1 rows of the array. the j-th column of A is stored in the j-th column of the array AB as follows:
if UPLO = 'U', AB(kd+1+i-j,j) = A(i,j) for max(1,j-kd)<=i<=j;
if UPLO = 'L', AB(1+i-j,j)    = A(i,j) for j<=i<=min(n,j+kd).

on exit, AB is overwritten by values generated during the reduction to tridiagonal form. if UPLO = 'U', the first superdiagonal and the diagonal of the tridiagonal matrix T are returned in rows KD and KD+1 of AB, and if UPLO = 'L', the diagonal and first subdiagonal of T are returned in the first two rows of AB. yes she overwrites, that's her whole thing πŸ’€

  • LDAB (INTEGER) β€” the leading dimension of the array AB. LDAB >= KD + 1. periodt ✨
  • W (REAL array, dimension (N)) β€” if INFO = 0, the eigenvalues in ascending order. sorted, gorgeous, ascending, we love her 🌈
  • Z (REAL array, dimension (LDZ, N)) β€” if JOBZ = 'V', then if INFO = 0, Z contains the orthonormal eigenvectors of the matrix A, with the i-th column of Z holding the eigenvector associated with W(i). if JOBZ = 'N', then Z is not referenced. not even a glance πŸ¦‹
  • LDZ (INTEGER) β€” the leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N). both, bestie πŸ’œ
  • WORK (REAL array, dimension LWORK) β€” on exit, if INFO = 0, WORK(1) returns the optimal LWORK. little flex, we stan 🫢
  • LWORK (INTEGER) β€” the length of the array WORK. LWORK >= 1 when N <= 1; otherwise:
If JOBZ = 'N' and N > 1, LWORK must be queried.
                                 LWORK = MAX(1, dimension) where
                                 dimension = (2KD+1)*N + KD*NTHREADS + N
                                 where KD is the size of the band.
                                 NTHREADS is the number of threads used when
                                 openMP compilation is enabled, otherwise =1.
If JOBZ = 'V' and N > 1, LWORK must be queried. Not yet available.

and if LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK and IWORK arrays, returns these values as the first entries of the WORK and IWORK arrays, and no error message related to LWORK or LIWORK is issued by XERBLA. same ritual as before, no cap ⭐

  • IWORK (INTEGER array, dimension (MAX(1,LIWORK))) β€” on exit, if INFO = 0, IWORK(1) returns the optimal LIWORK πŸŽ€
  • LIWORK
  • LIWORK β€” INTEGER, the dimension of the <italic>IWORK</italic> array πŸ’…
    • If JOBZ = 'N' or N <= 1, LIWORK must be at least 1.
    • If JOBZ = 'V' and N > 2, LIWORK must be at least 3 + 5*N.
    • If LIWORK = -1, bestie, that's a workspace query ☝️ β€” the routine only calculates the optimal sizes of the WORK and IWORK arrays, returns those values as the first entries of the WORK and IWORK arrays, and no error message related to LWORK or LIWORK is issued by XERBLA.
  • INFO β€” INTEGER, the vibe check at the end 😌
    • = 0: successful exit
    • < 0: if INFO = -i, the i-th argument had an illegal value
    • > 0: if INFO = i, the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero πŸ’€

πŸ‘‘ AUTHOR

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

πŸ”¬ FURTHER DETAILS:

All details about the 2stage techniques are available in β€” like, the actual receipts, the lore, the whole bibliography bestie πŸŽ€:

  • 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 226 of file ssbevd_2stage.f.

πŸ¦‹ subroutine zhbevd_2stage

Okay so now we get to the complex one, and she is so iconic for it πŸ’–:

subroutine zhbevd_2stage (character jobz, character uplo, integer n, integer
    kd, complex*16, dimension( ldab, * ) ab, integer ldab, double precision,
    dimension( * ) w, complex*16, dimension( ldz, * ) z, integer ldz,
    complex*16, dimension( * ) work, integer lwork, double precision,
    dimension( * ) rwork, integer lrwork, integer, dimension( * ) iwork,
    integer liwork, integer info)

ZHBEVD_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices ✨

🎯 PURPOSE:

ZHBEVD_2STAGE computes all the eigenvalues and, optionally, eigenvectors of a complex Hermitian band matrix A using the 2stage technique for the reduction to tridiagonal. If eigenvectors are desired, it uses a divide and conquer algorithm. Slay πŸ’…


🌸 PARAMETERS

  • JOBZ β€” JOBZ is CHARACTER*1
    • = 'N': Compute eigenvalues only;
    • = 'V': Compute eigenvalues and eigenvectors. Not available in this release. 😭 (yeah, we know, we're sad about it too)
  • UPLO β€” UPLO is CHARACTER*1
    • = 'U': Upper triangle of A is stored;
    • = 'L': Lower triangle of A is stored.
  • N β€” N is INTEGER. The order of the matrix A. N >= 0.
  • KD β€” KD is INTEGER. The number of superdiagonals of the matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KD >= 0.
  • AB β€” AB is COMPLEX*16 array, dimension (LDAB, N). On entry, the upper or lower triangle of the Hermitian band matrix A, stored in the first KD+1 rows of the array. The j-th column of A is stored in the j-th column of the array AB as follows:
if UPLO = 'U', AB(kd+1+i-j,j) = A(i,j) for max(1,j-kd)<=i<=j;
if UPLO = 'L', AB(1+i-j,j)    = A(i,j) for j<=i<=min(n,j+kd).

On exit, AB is overwritten by values generated during the reduction to tridiagonal form. If UPLO = 'U', the first superdiagonal and the diagonal of the tridiagonal matrix T are returned in rows KD and KD+1 of AB, and if UPLO = 'L', the diagonal and first subdiagonal of T are returned in the first two rows of AB. She gets a whole glow-up on the way out, periodt πŸ’«

  • LDAB β€” LDAB is INTEGER. The leading dimension of the array AB. LDAB >= KD + 1.
  • W β€” W is DOUBLE PRECISION array, dimension (N). If INFO = 0, the eigenvalues in ascending order. Obsessed with an ordered list πŸŽ€
  • Z β€” Z is COMPLEX*16 array, dimension (LDZ, N). If JOBZ = 'V', then if INFO = 0, Z contains the orthonormal eigenvectors of the matrix A, with the i-th column of Z holding the eigenvector associated with W(i). If JOBZ = 'N', then Z is not referenced. Not even a little bit. She said don't perceive me πŸ™ˆ
  • LDZ β€” LDZ is INTEGER. The leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N).
  • WORK β€” WORK is COMPLEX*16 array, dimension (MAX(1,LWORK)). On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
  • LWORK β€” LWORK is INTEGER. The length of the array WORK. LWORK >= 1, when N <= 1; otherwise:
    • If JOBZ = 'N' and N > 1, LWORK must be queried.
LWORK = MAX(1, dimension) where
dimension = (2KD+1)*N + KD*NTHREADS
where KD is the size of the band.
NTHREADS is the number of threads used when
openMP compilation is enabled, otherwise =1.
  • If JOBZ = 'V' and N > 1, LWORK must be queried. Not yet available. 😭
  • If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK, RWORK and IWORK arrays, returns these values as the first entries of the WORK, RWORK and IWORK arrays, and no error message related to LWORK or LRWORK or LIWORK is issued by XERBLA.
  • RWORK β€” RWORK is DOUBLE PRECISION array, dimension (LRWORK). On exit, if INFO = 0, RWORK(1) returns the optimal LRWORK.
  • LRWORK β€” LRWORK is INTEGER, the dimension of array RWORK πŸ’œ
    • If N <= 1, LRWORK must be at least 1.
    • If JOBZ = 'N' and N > 1, LRWORK must be at least N.
    • If JOBZ = 'V' and N > 1, LRWORK must be at least 1 + 5*N + 2*N**2.
    • If LRWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK, RWORK and IWORK arrays, returns these values as the first entries of the WORK, RWORK and IWORK arrays, and no error message related to LWORK or LRWORK or LIWORK is issued by XERBLA.
  • IWORK β€” IWORK is INTEGER array, dimension (MAX(1,LIWORK)). On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.
  • LIWORK β€” LIWORK is INTEGER, the dimension of array IWORK.
    • If JOBZ = 'N' or N <= 1, LIWORK must be at least 1.
    • If JOBZ = 'V' and N > 1, LIWORK must be at least 3 + 5*N .
    • If LIWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK, RWORK and IWORK arrays, returns these values as the first entries of the WORK, RWORK and IWORK arrays, and no error message related to LWORK or LRWORK or LIWORK is issued by XERBLA.
  • INFO β€” INFO is INTEGER
    • = 0: successful exit.
    • < 0: if INFO = -i, the i-th argument had an illegal value.
    • > 0: if INFO = i, the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero. πŸ’€

πŸ‘‘ AUTHOR

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

πŸ”¬ FURTHER DETAILS:

Same receipts, same legends β€” all details about the 2stage techniques are available in 🫢:

  • 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

...

okay so the very last thing in the Function Documentation is this little breadcrumb, and honestly it's giving "x marks the spot" energy:

  • Definition at line 251 of file zhbevd_2stage.f β€” that's exactly where in the source the good stuff lives, so if you ever wanna read the raw Fortran (iconic behavior, no notes), that's your line number πŸ’…

✨ AUTHOR ✨

Real talk, nobody sat down and hand-wrote this section. It's <italic>Generated automatically by Doxygen for LAPACK from the source code.</italic> β€” Doxygen literally auto-built it out of the LAPACK source code, so it's fr fr a machine-made credit and not some mysterious human author you need to go track down 🫢

Ngl bestie, that means there's no rogue maintainer to @ β€” the docs are just a Doxygen glow-up of the actual source πŸ’–

and that's a wrap on hbevd_2stage(3)!! πŸŽ€ this whole page came to you courtesy of LAPACK, Version 3.12.0, with the footer reading hbevd_2stage(3) all cute in the corner β€” so go forth, call your HBEVD_2STAGE, and slay βœ¨πŸ’œπŸ¦‹

πŸ“¦ where this page comes from