hbgv(3)

πŸ’– NAME πŸ’–

hbgv β€” {hb,sb}gv: eig, QR iteration.

okay bestie, welcome to the hbgv(3) page from the Library Functions Manual. This is the group chat for the {hb,sb}gv routines, and we are keeping every detail. no cap. ✨


✨ SYNOPSIS ✨

🌟 Functions 🌟

   Functions
       subroutine chbgv (jobz, uplo, n, ka, kb, ab, ldab, bb, ldbb, w, z, ldz,
           work, rwork, info)
           CHBGV
       subroutine dsbgv (jobz, uplo, n, ka, kb, ab, ldab, bb, ldbb, w, z, ldz,
           work, info)
           DSBGV
       subroutine ssbgv (jobz, uplo, n, ka, kb, ab, ldab, bb, ldbb, w, z, ldz,
           work, info)
           SSBGV
       subroutine zhbgv (jobz, uplo, n, ka, kb, ab, ldab, bb, ldbb, w, z, ldz,
           work, rwork, info)
           ZHBGV

πŸ’… Detailed Description πŸ’…

okay so the actual function tea lives in the docs below. No extra lore here, just the signatures and the parameter breakdowns. 🫢


πŸŽ€ Function Documentation πŸŽ€

πŸ’– subroutine chbgv β€” CHBGV πŸ’–

   subroutine chbgv (character jobz, character uplo, integer n, integer ka,
       integer kb, complex, dimension( ldab, * ) ab, integer ldab, complex,
       dimension( ldbb, * ) bb, integer ldbb, real, dimension( * ) w, complex,
       dimension( ldz, * ) z, integer ldz, complex, dimension( * ) work, real,
       dimension( * ) rwork, integer info)

CHBGV

🎯 Purpose

okay so CHBGV computes all the eigenvalues, and optionally, the eigenvectors, of a complex generalized Hermitian-definite banded eigenproblem, of the form A*x=(lambda)*B*x. Here A and B are assumed to be Hermitian and banded, and B is also positive definite. That's the whole assignment, bestie. πŸ’…

🧾 Parameters

  • JOBZ β€” JOBZ is CHARACTER*1. = 'N': compute eigenvalues only; = 'V': compute eigenvalues and eigenvectors. Pick your fighter. ✨
  • UPLO β€” UPLO is CHARACTER*1. = 'U': upper triangles of A and B are stored; = 'L': lower triangles of A and B are stored. no cap.
  • N β€” N is INTEGER. The order of the matrices A and B. N >= 0.
  • KA β€” KA is INTEGER. The number of superdiagonals of the matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KA >= 0.
  • KB β€” KB is INTEGER. The number of superdiagonals of the matrix B if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KB >= 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 ka+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(ka+1+i-j,j) = A(i,j) for max(1,j-ka)<=i<=j;
    • if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+ka).
⚠️ On exit, the contents of AB are destroyed. not me forgetting to warn you, bestie. 😭
  • LDAB β€” LDAB is INTEGER. The leading dimension of the array AB. LDAB >= KA+1.
  • BB β€” BB is COMPLEX array, dimension (LDBB, N). On entry, the upper or lower triangle of the Hermitian band matrix B, stored in the first kb+1 rows of the array. The j-th column of B is stored in the j-th column of the array BB as follows:
    • if UPLO = 'U', BB(kb+1+i-j,j) = B(i,j) for max(1,j-kb)<=i<=j;
    • if UPLO = 'L', BB(1+i-j,j) = B(i,j) for j<=i<=min(n,j+kb). On exit, the factor S from the split Cholesky factorization B = S**H*S, as returned by CPBSTF. iconic.
  • LDBB β€” LDBB is INTEGER. The leading dimension of the array BB. LDBB >= KB+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 matrix Z of eigenvectors, with the i-th column of Z holding the eigenvector associated with W(i). The eigenvectors are normalized so that Z**H*B*Z = 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 >= N.
  • WORK β€” WORK is COMPLEX array, dimension (N).
  • RWORK β€” RWORK is REAL array, dimension (3*N).
  • INFO β€” INFO is INTEGER. = 0: successful exit. < 0: if INFO = -i, the i-th argument had an illegal value. > 0: if INFO = i, and i is:
    • <= N: the algorithm failed to converge: i off-diagonal elements of an intermediate tridiagonal form did not converge to zero;
    • > N: if INFO = N + i, for 1 <= i <= N, then CPBSTF returned INFO = i: B is not positive definite. The factorization of B could not be completed and no eigenvalues or eigenvectors were computed.

πŸ‘‘ Author

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

πŸ“ Definition at line 181 of file chbgv.f.


πŸ’– subroutine dsbgv β€” DSBGV πŸ’–

   subroutine dsbgv (character jobz, character uplo, integer n, integer ka,
       integer kb, double precision, dimension( ldab, * ) ab, integer ldab,
       double precision, dimension( ldbb, * ) bb, integer ldbb, double
       precision, dimension( * ) w, double precision, dimension( ldz, * ) z,
       integer ldz, double precision, dimension( * ) work, integer info)

DSBGV

🎯 Purpose

okay so DSBGV computes all the eigenvalues, and optionally, the eigenvectors, of a real generalized symmetric-definite banded eigenproblem, of the form A*x=(lambda)*B*x. Here A and B are assumed to be symmetric and banded, and B is also positive definite. periodt. πŸ’œ

🧾 Parameters

  • JOBZ β€” JOBZ is CHARACTER*1. = 'N': compute eigenvalues only; = 'V': compute eigenvalues and eigenvectors.
  • UPLO β€” UPLO is CHARACTER*1. = 'U': upper triangles of A and B are stored; = 'L': lower triangles of A and B are stored.
  • N β€” N is INTEGER. The order of the matrices A and B. N >= 0.
  • KA β€” KA is INTEGER. The number of superdiagonals of the matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KA >= 0.
  • KB β€” KB is INTEGER. The number of superdiagonals of the matrix B if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KB >= 0.
  • AB β€” AB is DOUBLE PRECISION array, dimension (LDAB, N). On entry, the upper or lower triangle of the symmetric band matrix A, stored in the first ka+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(ka+1+i-j,j) = A(i,j) for max(1,j-ka)<=i<=j;
    • if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+ka).
⚠️ On exit, the contents of AB are destroyed. it's giving "say bye to your data." πŸ’€
  • LDAB β€” LDAB is INTEGER. The leading dimension of the array AB. LDAB >= KA+1.
  • BB β€” BB is DOUBLE PRECISION array, dimension (LDBB, N). On entry, the upper or lower triangle of the symmetric band matrix B, stored in the first kb+1 rows of the array. The j-th column of B is stored in the j-th column of the array BB as follows:
    • if UPLO = 'U', BB(kb+1+i-j,j) = B(i,j) for max(1,j-kb)<=i<=j;
    • if UPLO = 'L', BB(1+i-j,j) = B(i,j) for j<=i<=min(n,j+kb). On exit, the factor S from the split Cholesky factorization B = S**T*S, as returned by DPBSTF.
  • LDBB β€” LDBB is INTEGER. The leading dimension of the array BB. LDBB >= KB+1.
  • W β€” W is DOUBLE PRECISION array, dimension (N). If INFO = 0, the eigenvalues in ascending order.
  • Z β€” Z is DOUBLE PRECISION array, dimension (LDZ, N). If JOBZ = 'V', then if INFO = 0, Z contains the matrix Z of eigenvectors, with the i-th column of Z holding the eigenvector associated with W(i). The eigenvectors are normalized so that Z**T*B*Z = 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 >= N.
  • WORK β€” WORK is DOUBLE PRECISION array, dimension (3*N).
  • INFO β€” INFO is INTEGER. = 0: successful exit. < 0: if INFO = -i, the i-th argument had an illegal value. > 0: if INFO = i, and i is:
    • <= N: the algorithm failed to converge: i off-diagonal elements of an intermediate tridiagonal form did not converge to zero;
    • > N: if INFO = N + i, for 1 <= i <= N, then DPBSTF returned INFO = i: B is not positive definite. The factorization of B could not be completed and no eigenvalues or eigenvectors were computed.

πŸ‘‘ Author

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

πŸ“ Definition at line 175 of file dsbgv.f.


πŸ’– subroutine ssbgv β€” SSBGV πŸ’–

   subroutine ssbgv (character jobz, character uplo, integer n, integer ka,
       integer kb, real, dimension( ldab, * ) ab, integer ldab, real,
       dimension( ldbb, * ) bb, integer ldbb, real, dimension( * ) w, real,
       dimension( ldz, * ) z, integer ldz, real, dimension( * ) work, integer
       info)

SSBGV

🎯 Purpose

okay so SSBGV computes all the eigenvalues, and optionally, the eigenvectors, of a real generalized symmetric-definite banded eigenproblem, of the form A*x=(lambda)*B*x. Here A and B are assumed to be symmetric and banded, and B is also positive definite. πŸ¦‹

✨ Parameters ✨ (ssbgv bestie edition)

  • JOBZ β€” type CHARACTER*1. The vibe selector, fr:
    • 'N' β†’ compute eigenvalues only;
    • 'V' β†’ compute eigenvalues and eigenvectors.
  • UPLO β€” type CHARACTER*1. Tells us which triangle is living in the array:
    • 'U' β†’ upper triangles of A and B are stored;
    • 'L' β†’ lower triangles of A and B are stored.
  • N β€” type INTEGER. The order of matrices A and B. Constraint: N >= 0.
  • KA β€” type INTEGER. The number of superdiagonals of matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. Constraint: KA >= 0.
  • KB β€” type INTEGER. The number of superdiagonals of matrix B if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. Constraint: KB >= 0.
  • AB β€” type REAL array, dimension (LDAB, N). On entry, this holds the upper or lower triangle of the symmetric band matrix A, stored in the first ka+1 rows of the array. The j-th column of A is stored in the j-th column of the array AB like this:
    • if UPLO = 'U', AB(ka+1+i-j,j) = A(i,j) for max(1,j-ka)<=i<=j;
    • if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+ka).

On exit, the contents of AB are destroyed. Not me forgetting to warn you β€” that’s literally the manpage energy. πŸ’€

  • LDAB β€” type INTEGER. The leading dimension of the array AB. Constraint: LDAB >= KA+1.
  • BB β€” type REAL array, dimension (LDBB, N). On entry, this holds the upper or lower triangle of the symmetric band matrix B, stored in the first kb+1 rows of the array. The j-th column of B is stored in the j-th column of the array BB like this:
    • if UPLO = 'U', BB(kb+1+i-j,j) = B(i,j) for max(1,j-kb)<=i<=j;
    • if UPLO = 'L', BB(1+i-j,j) = B(i,j) for j<=i<=min(n,j+kb).

On exit, this holds the factor S from the split Cholesky factorization B = S**T*S, as returned by SPBSTF. Slay. ✨

  • LDBB β€” type INTEGER. The leading dimension of the array BB. Constraint: LDBB >= KB+1.
  • W β€” type REAL array, dimension (N). If INFO = 0, this holds the eigenvalues in ascending order. Cute and sorted, we love to see it.
  • Z β€” type REAL array, dimension (LDZ, N). If JOBZ = 'V', then if INFO = 0, Z contains the matrix Z of eigenvectors, with the i-th column of Z holding the eigenvector associated with W(i). The eigenvectors are normalized so that Z**T*B*Z = I. If JOBZ = 'N', then Z is not referenced. Respect the boundaries, bestie. 🫢
  • LDZ β€” type INTEGER. The leading dimension of the array Z. Constraint: LDZ >= 1, and if JOBZ = 'V', LDZ >= N.
  • WORK β€” type REAL array, dimension (3*N). The work array. It’s giving backstage crew β€” not the main character, but nothing happens without it.
  • INFO β€” type INTEGER. The receipts:
    • = 0: successful exit;
    • < 0: if INFO = -i, the i-th argument had an illegal value;
    • > 0: if INFO = i, and i is:
      • <= N: the algorithm failed to converge: i off-diagonal elements of an intermediate tridiagonal form did not converge to zero;
      • > N: if INFO = N + i, for 1 <= i <= N, then SPBSTF returned INFO = i: B is not positive definite. The factorization of B could not be completed and no eigenvalues or eigenvectors were computed.

πŸ‘‘ Author πŸ‘‘

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

Definition at line 175 of file ssbgv.f.


πŸ’œ zhbgv subroutine πŸ’œ

   subroutine zhbgv (character jobz, character uplo, integer n, integer ka,
       integer kb, complex*16, dimension( ldab, * ) ab, integer ldab,
       complex*16, dimension( ldbb, * ) bb, integer ldbb, double precision,
       dimension( * ) w, complex*16, dimension( ldz, * ) z, integer ldz,
       complex*16, dimension( * ) work, double precision, dimension( * ) rwork,
       integer info)

🌈 ZHBGV 🌈

πŸ’« Purpose πŸ’«

ZHBGV computes all the eigenvalues, and optionally, the eigenvectors of a complex generalized Hermitian-definite banded eigenproblem, of the form A*x=(lambda)*B*x. Here A and B are assumed to be Hermitian and banded, and B is also positive definite. It’s giving complex eigenvalues with main character energy β€” but the math is doing the actual slaying. πŸ’…

✨ Parameters ✨ (zhbgv edition)

  • JOBZ β€” type CHARACTER*1. Same selector energy:
    • 'N' β†’ compute eigenvalues only;
    • 'V' β†’ compute eigenvalues and eigenvectors.
  • UPLO β€” type CHARACTER*1. Which triangle are we storing?
    • 'U' β†’ upper triangles of A and B are stored;
    • 'L' β†’ lower triangles of A and B are stored.
  • N β€” type INTEGER. The order of matrices A and B. Constraint: N >= 0.
  • KA β€” type INTEGER. The number of superdiagonals of matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. Constraint: KA >= 0.
  • KB β€” type INTEGER. The number of superdiagonals of matrix B if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. Constraint: KB >= 0.
  • AB β€” type COMPLEX*16 array, dimension (LDAB, N). On entry, this holds the upper or lower triangle of the Hermitian band matrix A, stored in the first ka+1 rows of the array. The j-th column of A is stored in the j-th column of the array AB like this:
    • if UPLO = 'U', AB(ka+1+i-j,j) = A(i,j) for max(1,j-ka)<=i<=j;
    • if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+ka).

On exit, the contents of AB are destroyed. Yes, bestie, it gets cooked. πŸ”₯

  • LDAB β€” type INTEGER. The leading dimension of the array AB. Constraint: LDAB >= KA+1.
  • BB β€” type COMPLEX*16 array, dimension (LDBB, N). On entry, this holds the upper or lower triangle of the Hermitian band matrix B, stored in the first kb+1 rows of the array. The j-th column of B is stored in the j-th column of the array BB like this:
    • if UPLO = 'U', BB(kb+1+i-j,j) = B(i,j) for max(1,j-kb)<=i<=j;
    • if UPLO = 'L', BB(1+i-j,j) = B(i,j) for j<=i<=min(n,j+kb).

On exit, this holds the factor S from the split Cholesky factorization B = S**H*S, as returned by ZPBSTF. Iconic factorization behavior. 🌟

  • LDBB β€” type INTEGER. The leading dimension of the array BB. Constraint: LDBB >= KB+1.
  • W β€” type DOUBLE PRECISION array, dimension (N). If INFO = 0, this holds the eigenvalues in ascending order.
  • Z β€” type COMPLEX*16 array, dimension (LDZ, N). If JOBZ = 'V', then if INFO = 0, Z contains the matrix Z of eigenvectors, with the i-th column of Z holding the eigenvector associated with W(i). The eigenvectors are normalized so that Z**H*B*Z = I. If JOBZ = 'N', then Z is not referenced. We stan a normalized eigenvector. πŸŽ€
  • LDZ β€” type INTEGER. The leading dimension of the array Z. Constraint: LDZ >= 1, and if JOBZ = 'V', LDZ >= N.
  • WORK β€” type COMPLEX*16 array, dimension (N). Work array. Essential, even if it doesn’t get a shoutout in the group chat.
  • RWORK β€” type DOUBLE PRECISION array, dimension (3*N). Real work array. Different lane, same mission.
  • INFO β€” type INTEGER. The final receipts:
    • = 0: successful exit;
    • < 0: if INFO = -i, the i-th argument had an illegal value;
    • > 0: if INFO = i, and i is:
      • <= N: the algorithm failed to converge: i off-diagonal elements of an intermediate tridiagonal form did not converge to zero;
      • > N: if INFO = N + i, for 1 <= i <= N, then ZPBSTF returned INFO = i: B is not positive definite. The factorization of B could not be completed and no eigenvalues or eigenvectors were computed.

🌟 Author 🌟

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

Definition at line 181 of file zhbgv.f.

🧚 Author 🧚

Generated automatically by Doxygen for LAPACK from the source code.


πŸ’– That’s the footer tea, bestie: LAPACK, Version 3.12.0, hbgv(3) β€” periodt. 🫢✨

πŸ“¦ where this page comes from