naginterfaces.library.lapackeig.zhbgvx¶
- naginterfaces.library.lapackeig.zhbgvx(jobz, erange, uplo, n, ka, kb, ab, bb, vl, vu, il, iu, abstol)[source]¶
zhbgvx
computes selected the eigenvalues and, optionally, the eigenvectors of a complex generalized Hermitian-definite banded eigenproblem, of the formwhere and are Hermitian and banded, and is also positive definite. Eigenvalues and eigenvectors can be selected by specifying either all eigenvalues, a range of values or a range of indices for the desired eigenvalues.
For full information please refer to the NAG Library document for f08up
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f08/f08upf.html
- Parameters
- jobzstr, length 1
Indicates whether eigenvectors are computed.
Only eigenvalues are computed.
Eigenvalues and eigenvectors are computed.
- erangestr, length 1
If , all eigenvalues will be found.
If , all eigenvalues in the half-open interval will be found.
If , the th to th eigenvalues will be found.
- uplostr, length 1
If , the upper triangles of and are stored.
If , the lower triangles of and are stored.
- nint
, the order of the matrices and .
- kaint
If , the number of superdiagonals, , of the matrix .
If , the number of subdiagonals, , of the matrix .
- kbint
If , the number of superdiagonals, , of the matrix .
If , the number of subdiagonals, , of the matrix .
- abcomplex, array-like, shape
The upper or lower triangle of the Hermitian band matrix .
- bbcomplex, array-like, shape
The upper or lower triangle of the Hermitian positive definite band matrix .
- vlfloat
If , the lower and upper bounds of the interval to be searched for eigenvalues.
If or , and are not referenced.
- vufloat
If , the lower and upper bounds of the interval to be searched for eigenvalues.
If or , and are not referenced.
- ilint
If , and specify the indices (in ascending order) of the smallest and largest eigenvalues to be returned, respectively.
If or , and are not referenced.
- iuint
If , and specify the indices (in ascending order) of the smallest and largest eigenvalues to be returned, respectively.
If or , and are not referenced.
- abstolfloat
The absolute error tolerance for the eigenvalues. An approximate eigenvalue is accepted as converged when it is determined to lie in an interval of width less than or equal to
where is the machine precision. If is less than or equal to zero, then will be used in its place, where is the tridiagonal matrix obtained by reducing to tridiagonal form. Eigenvalues will be computed most accurately when is set to twice the underflow threshold , not zero. If this function returns with = 1 … , indicating that some eigenvectors did not converge, try setting to . See Demmel and Kahan (1990).
- Returns
- abcomplex, ndarray, shape
The contents of are overwritten.
- bbcomplex, ndarray, shape
The factor from the split Cholesky factorization , as returned by
zpbstf()
.- qcomplex, ndarray, shape
If , the matrix, used in the reduction of the standard form, i.e., , from symmetric banded to tridiagonal form.
If , is not referenced.
- mint
The total number of eigenvalues found. .
If , .
If , .
- wfloat, ndarray, shape
The eigenvalues in ascending order.
- zcomplex, ndarray, shape
If , then
if no exception or warning is raised, the first columns of contain the eigenvectors corresponding to the selected eigenvalues, with the th column of holding the eigenvector associated with . The eigenvectors are normalized so that ;
if an eigenvector fails to converge ( = 1 … ), then that column of contains the latest approximation to the eigenvector, and the index of the eigenvector is returned in .
If , is not referenced.
Note: you must ensure that at least columns are supplied in the array ; if , the exact value of is not known in advance and an upper bound of at least must be used.
- jfailint, ndarray, shape
If , then
if no exception or warning is raised, the first elements of are zero;
if = 1 … , the first elements of contains the indices of the eigenvectors that failed to converge.
If , is not referenced.
- Raises
- NagValueError
- (errno )
On entry, error in parameter .
Constraint: or .
- (errno )
On entry, error in parameter .
Constraint: , or .
- (errno )
On entry, error in parameter .
Constraint: or .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
- (errno )
On entry, error in parameter .
- (errno )
If , for ,
zpbstf()
returned : is not positive definite. The factorization of could not be completed and no eigenvalues or eigenvectors were computed.
- Warns
- NagAlgorithmicWarning
- (errno )
The algorithm failed to converge; eigenvectors did not converge. Their indices are stored in array .
- Notes
The generalized Hermitian-definite band problem
is first reduced to a standard band Hermitian problem
where is a Hermitian band matrix, using Wilkinson’s modification to Crawford’s algorithm (see Crawford (1973) and Wilkinson (1977)). The Hermitian eigenvalue problem is then solved for the required eigenvalues and eigenvectors, and the eigenvectors are then backtransformed to the eigenvectors of the original problem.
The eigenvectors are normalized so that
- References
Anderson, E, Bai, Z, Bischof, C, Blackford, S, Demmel, J, Dongarra, J J, Du Croz, J J, Greenbaum, A, Hammarling, S, McKenney, A and Sorensen, D, 1999, LAPACK Users’ Guide, (3rd Edition), SIAM, Philadelphia, https://www.netlib.org/lapack/lug
Crawford, C R, 1973, Reduction of a band-symmetric generalized eigenvalue problem, Comm. ACM (16), 41–44
Demmel, J W and Kahan, W, 1990, Accurate singular values of bidiagonal matrices, SIAM J. Sci. Statist. Comput. (11), 873–912
Golub, G H and Van Loan, C F, 1996, Matrix Computations, (3rd Edition), Johns Hopkins University Press, Baltimore
Wilkinson, J H, 1977, Some recent advances in numerical linear algebra, The State of the Art in Numerical Analysis, (ed D A H Jacobs), Academic Press