naginterfaces.library.lapackeig.dspgst¶
- naginterfaces.library.lapackeig.dspgst(itype, uplo, n, ap, bp)[source]¶
dspgst
reduces a real symmetric-definite generalized eigenproblem , or to the standard form , where is a real symmetric matrix and has been factorized bylapacklin.dpptrf
, using packed storage.For full information please refer to the NAG Library document for f08te
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/f08/f08tef.html
- Parameters
- itypeint
Indicates how the standard form is computed.
if , ;
if , .
or
if , ;
if , .
- uplostr, length 1
Indicates whether the upper or lower triangular part of is stored and how has been factorized.
The upper triangular part of is stored and .
The lower triangular part of is stored and .
- nint
, the order of the matrices and .
- apfloat, array-like, shape
The upper or lower triangle of the symmetric matrix , packed by columns.
- bpfloat, array-like, shape
The Cholesky factor of as specified by and returned by
lapacklin.dpptrf
.
- Returns
- apfloat, ndarray, shape
The upper or lower triangle of is overwritten by the corresponding upper or lower triangle of as specified by and , using the same packed storage format as described above.
- 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: .
- Notes
To reduce the real symmetric-definite generalized eigenproblem , or to the standard form using packed storage,
dspgst
must be preceded by a call tolapacklin.dpptrf
which computes the Cholesky factorization of ; must be positive definite.The different problem types are specified by the argument , as indicated in the table below. The table shows how is computed by the function, and also how the eigenvectors of the original problem can be recovered from the eigenvectors of the standard form.
Problem
‘U’ ‘L’
‘U’ ‘L’
‘U’ ‘L’
- References
Golub, G H and Van Loan, C F, 1996, Matrix Computations, (3rd Edition), Johns Hopkins University Press, Baltimore