heevd(3)

heevd(3) โ€” Library Functions Manual ๐ŸŽ€

โœจ NAME โœจ

heevd โ€” {he,sy}evd: eig, divide and conquer. The whole Hermitian/symmetric eigenvalue squad, together in one manual page ๐Ÿ’…

๐ŸŒธ SYNOPSIS ๐ŸŒธ

๐Ÿฆ‹ Functions

  • cheevd โ€” CHEEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for HE matrices.
subroutine cheevd (jobz, uplo, n, a, lda, w, work, lwork, rwork, lrwork, iwork, liwork, info)
  • dsyevd โ€” DSYEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for SY matrices.
subroutine dsyevd (jobz, uplo, n, a, lda, w, work, lwork, iwork, liwork, info)
  • ssyevd โ€” SSYEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for SY matrices.
subroutine ssyevd (jobz, uplo, n, a, lda, w, work, lwork, iwork, liwork, info)
  • zheevd โ€” ZHEEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for HE matrices.
subroutine zheevd (jobz, uplo, n, a, lda, w, work, lwork, rwork, lrwork, iwork, liwork, info)

๐Ÿ’– Detailed Description ๐Ÿ’–

Okay so this is the function-by-function tea, bestie. Function Documentation is literally right below, no cap โœจ

๐ŸŽ€ Function Documentation ๐ŸŽ€

๐Ÿฆ‹ subroutine cheevd

subroutine cheevd (character jobz, character uplo, integer n, complex, dimension( lda, * ) a, integer lda, real, dimension( * ) w, complex, dimension( * ) work, integer lwork, real, dimension( * ) rwork, integer lrwork, integer, dimension( * ) iwork, integer liwork, integer info)

CHEEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for HE matrices.

๐Ÿ’œ Purpose

CHEEVD computes all eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix A. If eigenvectors are desired, it uses a divide and conquer algorithm. Iconic. ๐Ÿ’…

๐Ÿ“ Parameters

  • JOBZ โ€” JOBZ is CHARACTER*1:
    • = 'N': Compute eigenvalues only;
    • = 'V': Compute eigenvalues and eigenvectors.
  • 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.
  • A โ€” A is COMPLEX array, dimension (LDA, N). On entry, the Hermitian matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A. On exit, if JOBZ = 'V', then if INFO = 0, A contains the orthonormal eigenvectors of the matrix A. If JOBZ = 'N', then on exit the lower triangle (if UPLO='L') or the upper triangle (if UPLO='U') of A, including the diagonal, is destroyed. Gone. Periodt. ๐Ÿ’€
  • LDA โ€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,N).
  • W โ€” W is REAL array, dimension (N). If INFO = 0, the eigenvalues in ascending order.
  • 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.
    • If N <= 1, LWORK must be at least 1.
    • If JOBZ = 'N' and N > 1, LWORK must be at least N + 1.
    • If JOBZ = 'V' and N > 1, LWORK must be at least 2*N + N**2.
    • 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 (MAX(1,LRWORK)). On exit, if INFO = 0, RWORK(1) returns the optimal LRWORK.
  • LRWORK โ€” LRWORK is INTEGER. The dimension of the 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 the array IWORK.
    • If N <= 1, LIWORK must be at least 1.
    • If JOBZ = 'N' and 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 and JOBZ = 'N', then the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero; if INFO = i and JOBZ = 'V', then the algorithm failed to compute an eigenvalue while working on the submatrix lying in rows and columns INFO/(N+1) through mod(INFO,N+1).

๐Ÿ’œ Author

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

๐Ÿฆ‹ Further Details

Modified description of INFO. Sven, 16 Feb 05.

๐ŸŒธ Contributors

Jeff Rutter, Computer Science Division, University of California at Berkeley, USA

Definition at line 196 of file cheevd.f.


๐Ÿฆ‹ subroutine dsyevd

subroutine dsyevd (character jobz, character uplo, integer n, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( * ) w, double precision, dimension( * ) work, integer lwork, integer, dimension( * ) iwork, integer liwork, integer info)

DSYEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for SY matrices.

๐Ÿ’œ Purpose

DSYEVD computes all eigenvalues and, optionally, eigenvectors of a real symmetric matrix A. If eigenvectors are desired, it uses a divide and conquer algorithm.

Because of large use of BLAS of level 3, DSYEVD needs N**2 more workspace than DSYEVX. She's hungry for workspace, bestie. ๐Ÿ˜ญ

๐Ÿ“ Parameters

  • JOBZ โ€” JOBZ is CHARACTER*1:
    • = 'N': Compute eigenvalues only;
    • = 'V': Compute eigenvalues and eigenvectors.
  • 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.
  • A โ€” A is DOUBLE PRECISION array, dimension (LDA, N). On entry, the symmetric matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A. On exit, if JOBZ = 'V', then if INFO = 0, A contains the orthonormal eigenvectors of the matrix A. If JOBZ = 'N', then on exit the lower triangle (if UPLO='L') or the upper triangle (if UPLO='U') of A, including the diagonal, is destroyed. Say bye to that triangle ๐Ÿ‘‹๐Ÿ’€
  • LDA โ€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(1,N).
  • W โ€” W is DOUBLE PRECISION array, dimension (N). If INFO = 0, the eigenvalues in ascending order.
  • WORK โ€” WORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
  • LWORK โ€” LWORK is INTEGER. The dimension of the array WORK.
    • If N <= 1, LWORK must be at least 1.
    • If JOBZ = 'N' and N > 1, LWORK must be at least 2*N+1.
    • If JOBZ = 'V' and N > 1, LWORK must be at least 1 + 6*N + 2*N**2.
    • 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.
  • IWORK โ€” IWORK is INTEGER array, dimension (MAX(1,LIWORK)). On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.

๐Ÿ“ LIWORK

  • LIWORK (INTEGER) โ€” the dimension of the IWORK array, i.e. how much integer scratch space you're handing over. The minimums are:
    • if N <= 1, LIWORK must be at least 1
    • if JOBZ = 'N' and N > 1, LIWORK must be at least 1
    • if JOBZ = 'V' and N > 1, LIWORK must be at least 3 + 5*N
๐Ÿ”ฎ and if LIWORK = -1, that's a workspace query bestie! The routine then only calculates the optimal sizes of the WORK and IWORK arrays, hands those values back as the first entries of the WORK and IWORK arrays, and XERBLA stays completely quiet โ€” no error message related to LWORK or LIWORK gets thrown at you.
  • INFO (INTEGER) โ€” the vibe report, aka did it work:
    • 0 โ€” slay, successful exit ๐Ÿ’…
    • < 0 โ€” if INFO = -i, the i-th argument had an illegal value (you passed something cursed)
    • > 0 โ€” if INFO = i and JOBZ = 'N', then the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero
    • > 0 โ€” if INFO = i and JOBZ = 'V', then the algorithm failed to compute an eigenvalue while working on the submatrix lying in rows and columns INFO/(N+1) through mod(INFO,N+1)

๐ŸŒธ Author ๐ŸŒธ

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

๐Ÿซถ Contributors ๐Ÿซถ

  • Jeff Rutter, Computer Science Division, University of California at Berkeley, USA
  • Modified by Francoise Tisseur, University of Tennessee
  • Modified description of INFO. Sven, 16 Feb 05.
๐Ÿ“ Definition at line 175 of file dsyevd.f.

โœจ subroutine ssyevd โœจ

subroutine ssyevd (character jobz, character uplo, integer n, real,
    dimension( lda, * ) a, integer lda, real, dimension( * ) w, real,
    dimension( * ) work, integer lwork, integer, dimension( * ) iwork,
    integer liwork, integer info)

SSYEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for SY matrices. Single precision edition, let's go ๐ŸŽ€

๐Ÿ’œ Purpose ๐Ÿ’œ

okay so here's the whole point: SSYEVD computes all eigenvalues and, optionally, eigenvectors of a real symmetric matrix A. If eigenvectors are desired, it uses a divide and conquer algorithm. Fancy, iconic, we love her ๐ŸŒˆ

Because of large use of BLAS of level 3, SSYEVD needs N**2 more workspace than SSYEVX. Not a glow-up that comes for free, bestie โ€” that's the trade ๐Ÿ’€

๐ŸŽ€ Parameters ๐ŸŽ€

  • JOBZ (CHARACTER1)* โ€” what you actually want out of this:
    • 'N' โ€” compute eigenvalues only
    • 'V' โ€” compute eigenvalues and eigenvectors
  • UPLO (CHARACTER1)* โ€” which triangle of A you've actually filled in:
    • '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, don't come for me.)
  • A (REAL array, dimension (LDA, N)) โ€” the star of the show:
    • on entry, the symmetric matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A.
    • on exit, if JOBZ = 'V', then if INFO = 0, A contains the orthonormal eigenvectors of the matrix A ๐Ÿฆ‹
    • if JOBZ = 'N', then on exit the lower triangle (if UPLO='L') or the upper triangle (if UPLO='U') of A, including the diagonal, is destroyed ๐Ÿ’€
โš ๏ธ yeah, "destroyed" is the actual word in the docs. Your input matrix does not survive JOBZ = 'N'. Copy it first if you're attached to it.
  • LDA (INTEGER) โ€” the leading dimension of the array A. LDA >= max(1,N).
  • W (REAL array, dimension (N)) โ€” if INFO = 0, the eigenvalues in ascending order โญ
  • WORK (REAL array, dimension (MAX(1,LWORK))) โ€” on exit, if INFO = 0, WORK(1) returns the optimal LWORK ๐Ÿ‘‘
  • LWORK (INTEGER) โ€” the dimension of the array WORK:
    • if N <= 1, LWORK must be at least 1
    • if JOBZ = 'N' and N > 1, LWORK must be at least 2*N+1
    • if JOBZ = 'V' and N > 1, LWORK must be at least 1 + 6*N + 2*N**2
๐Ÿ”ฎ 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.
  • IWORK (INTEGER array, dimension (MAX(1,LIWORK))) โ€” on exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.
  • LIWORK (INTEGER) โ€” the dimension of the array IWORK:
    • if N <= 1, LIWORK must be at least 1
    • if JOBZ = 'N' and N > 1, LIWORK must be at least 1
    • if JOBZ = 'V' and N > 1, LIWORK must be at least 3 + 5*N
๐Ÿ”ฎ and if LIWORK = -1, a workspace query is assumed again: the routine only calculates the optimal sizes of the WORK and IWORK arrays, returns them as the first entries of the WORK and IWORK arrays, and XERBLA issues no error message related to LWORK or LIWORK.
  • INFO (INTEGER):
    • = 0 โ€” successful exit โœ…
    • < 0 โ€” if INFO = -i, the i-th argument had an illegal value
    • > 0 โ€” if INFO = i and JOBZ = 'N', then the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero
    • > 0 โ€” if INFO = i and JOBZ = 'V', then the algorithm failed to compute an eigenvalue while working on the submatrix lying in rows and columns INFO/(N+1) through mod(INFO,N+1)

๐ŸŒธ Author ๐ŸŒธ

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

๐Ÿซถ Contributors ๐Ÿซถ

  • Jeff Rutter, Computer Science Division, University of California at Berkeley, USA
  • Modified by Francoise Tisseur, University of Tennessee
  • Modified description of INFO. Sven, 16 Feb 05.
๐Ÿ“ Definition at line 173 of file ssyevd.f.

๐Ÿ‘‘ subroutine zheevd ๐Ÿ‘‘

subroutine zheevd (character jobz, character uplo, integer n, complex*16,
    dimension( lda, * ) a, integer lda, double precision, dimension( * ) w,
    complex*16, dimension( * ) work, integer lwork, double precision,
    dimension( * ) rwork, integer lrwork, integer, dimension( * ) iwork,
    integer liwork, integer info)

ZHEEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for HE matrices. Complex double precision, our most extra version yet ๐Ÿ’…โœจ

๐Ÿ’œ Purpose ๐Ÿ’œ

ZHEEVD computes all eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix A. If eigenvectors are desired, it uses a divide and conquer algorithm. Same iconic energy as her siblings ๐Ÿฆ‹

๐ŸŽ€ Parameters ๐ŸŽ€

  • JOBZ (CHARACTER1)* โ€” pick your fighter:
    • 'N' โ€” compute eigenvalues only
    • 'V' โ€” compute eigenvalues and eigenvectors
  • UPLO (CHARACTER1)*:
    • 'U' โ€” upper triangle of A is stored
    • 'L' โ€” lower triangle of A is stored
  • N (INTEGER) โ€” the order of the matrix A. N >= 0.
  • A (COMPLEX16 array, dimension (LDA, N))*:
    • on entry, the Hermitian matrix A. If UPLO = 'U', the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A. If UPLO = 'L', the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A.
    • on exit, if JOBZ = 'V', then if INFO = 0, A contains the orthonormal eigenvectors of the matrix A ๐Ÿฆ‹
    • if JOBZ = 'N', then on exit the lower triangle (if UPLO='L') or the upper triangle (if UPLO='U') of A, including the diagonal, is destroyed ๐Ÿ’€
  • LDA (INTEGER) โ€” the leading dimension of the array A. LDA >= max(1,N).
  • W (DOUBLE PRECISION array, dimension (N)) โ€” if INFO = 0, the eigenvalues in ascending order โญ
  • WORK (COMPLEX16 array, dimension (MAX(1,LWORK)))* โ€” on exit, if INFO = 0, WORK(1) returns the optimal LWORK ๐Ÿ‘‘
  • LWORK (INTEGER) โ€” the length of the array WORK:
    • if N <= 1, LWORK must be at least 1
    • if JOBZ = 'N' and N > 1, LWORK must be at least N + 1
    • if JOBZ = 'V' and N > 1, LWORK must be at least 2*N + N**2
๐Ÿ”ฎ and if LWORK = -1, 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. Three arrays, one query, no drama.
  • RWORK (DOUBLE PRECISION array, dimension (MAX(1,LRWORK))) โ€” on exit, if INFO = 0, RWORK(1) returns the optimal LRWORK.
  • LRWORK (INTEGER) โ€” the dimension of the 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, 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

โ€ฆand that's exactly where this chunk runs out, bestie โ€” IWORK's whole breakdown picks up in the next part, don't go anywhere ๐Ÿซถ

  • IWORK โ€” okay so this one is an INTEGER array, dimension (MAX(1,LIWORK)). On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK. It's literally telling you what it wishes it had. ๐Ÿ’–
  • LIWORK โ€” INTEGER. It's the dimension of the array IWORK. The minimums are giving:
    • If N <= 1, LIWORK must be at least 1.
    • If JOBZ = 'N' and 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 โ€” INTEGER. Exit-status tea:
    • = 0: successful exit โ€” periodt.
    • < 0: if INFO = -i, the i-th argument had an illegal value.
    • > 0: if INFO = i and JOBZ = 'N', then the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero; if INFO = i and JOBZ = 'V', then the algorithm failed to compute an eigenvalue while working on the submatrix lying in rows and columns INFO/(N+1) through mod(INFO,N+1).

๐Ÿ‘‘ Author

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

๐Ÿ” Further Details:

Modified description of INFO. Sven, 16 Feb 05.

๐Ÿซถ Contributors:

Jeff Rutter, Computer Science Division, University of California at Berkeley, USA

๐Ÿ“Œ Definition

Definition at line 196 of file zheevd.f.

๐Ÿงš Author

Generated automatically by Doxygen for LAPACK from the source code.


Okay that's the whole heevd(3) page, bestie. ๐Ÿ’– Cute sign-off / footer vibe: source is LAPACK, version is Version 3.12.0, and the page is heevd(3) โ€” that's the tea. ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from