SRC/ssbgvd.f(3)
π SRC/ssbgvd.f(3) π
okay bestie, this is a page from the Library Functions Manual, and it's literally all about SSBGVD β banded generalized symmetric-definite eigenproblems, no cap π
πΈ NAME πΈ
SRC/ssbgvd.f
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine ssbgvd (jobz, uplo, n, ka, kb, ab, ldab, bb, ldbb, w, z, ldz, work, lwork, iwork, liwork, info)βSSBGVD
subroutine ssbgvd (jobz, uplo, n, ka, kb, ab, ldab, bb, ldbb, w, z, ldz,
work, lwork, iwork, liwork, info)
SSBGVD
π§ Function/Subroutine Documentation π§
subroutine ssbgvd (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
lwork, integer, dimension( * ) iwork, integer liwork, integer info)
SSBGVD
π― Purpose π―
okay so SSBGVD 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. 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.
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
AandB.N >= 0.
- The order of the matrices
KAβKA is INTEGER- The number of superdiagonals of the matrix
AifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KA >= 0.
- The number of superdiagonals of the matrix
KBβKB is INTEGER- The number of superdiagonals of the matrix
BifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KB >= 0.
- The number of superdiagonals of the matrix
ABβAB is REAL array, dimension (LDAB, N)- On entry, the upper or lower triangle of the symmetric band matrix
A, stored in the firstka+1rows of the array. The j-th column ofAis stored in the j-th column of the arrayABas follows:- if
UPLO = 'U',AB(ka+1+i-j,j) = A(i,j)formax(1,j-ka)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+ka).
- if
- On exit, the contents of
ABare destroyed π
- On entry, the upper or lower triangle of the symmetric band matrix
LDABβLDAB is INTEGER- The leading dimension of the array
AB.LDAB >= KA+1.
- The leading dimension of the array
BBβBB is REAL array, dimension (LDBB, N)- On entry, the upper or lower triangle of the symmetric band matrix
B, stored in the firstkb+1rows of the array. The j-th column ofBis stored in the j-th column of the arrayBBas follows:- if
UPLO = 'U',BB(ka+1+i-j,j) = B(i,j)formax(1,j-kb)<=i<=j; - if
UPLO = 'L',BB(1+i-j,j) = B(i,j)forj<=i<=min(n,j+kb).
- if
- On exit, the factor
Sfrom the split Cholesky factorizationB = S**T*S, as returned bySPBSTF.
- On entry, the upper or lower triangle of the symmetric band matrix
LDBBβLDBB is INTEGER- The leading dimension of the array
BB.LDBB >= KB+1.
- The leading dimension of the array
WβW is REAL array, dimension (N)- If
INFO = 0, the eigenvalues in ascending order.
- If
ZβZ is REAL array, dimension (LDZ, N)- If
JOBZ = 'V', then ifINFO = 0,Zcontains the matrixZof eigenvectors, with the i-th column ofZholding the eigenvector associated withW(i). The eigenvectors are normalized soZ**T*B*Z = I. - If
JOBZ = 'N', thenZis not referenced.
- If
LDZβLDZ is INTEGER- The leading dimension of the array
Z.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).
- The leading dimension of the array
WORKβWORK is REAL array, dimension (MAX(1,LWORK))- On exit, if
INFO = 0,WORK(1)returns the optimalLWORK.
- On exit, if
LWORKβLWORK is INTEGER- The dimension of the array
WORK. If N <= 1, LWORK >= 1.If JOBZ = 'N' and N > 1, LWORK >= 3*N.If JOBZ = 'V' and N > 1, LWORK >= 1 + 5*N + 2*N**2.- If
LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of theWORKandIWORKarrays, returns these values as the first entries of theWORKandIWORKarrays, and no error message related toLWORKorLIWORKis issued byXERBLA.
- The dimension of the array
IWORKβIWORK is INTEGER array, dimension (MAX(1,LIWORK))- On exit, if
LIWORK > 0,IWORK(1)returns the optimalLIWORK.
- On exit, if
LIWORKβLIWORK is INTEGER- The dimension of the array
IWORK. If JOBZ = 'N' or N <= 1, LIWORK >= 1.If JOBZ = 'V' and N > 1, LIWORK >= 3 + 5*N.- If
LIWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of theWORKandIWORKarrays, returns these values as the first entries of theWORKandIWORKarrays, and no error message related toLWORKorLIWORKis issued byXERBLA.
- The dimension of the array
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 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.
π Contributors: π
- Mark Fahey, Department of Mathematics, Univ. of Kentucky, USA
π Definition at line 219 of file ssbgvd.f. π
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie that's the whole page β LAPACK Version 3.12.0, source page SRC/ssbgvd.f(3), no date on this footer, just vibes and eigenvalues π
β¨ byeee, go slay those banded 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