spgvd#
Functions
-
void sspgvd(const INT itype, const char *jobz, const char *uplo, const INT n, f32 *restrict AP, f32 *restrict BP, f32 *restrict W, f32 *restrict Z, const INT ldz, f32 *restrict work, const INT lwork, INT *restrict iwork, const INT liwork, INT *info)#
SSPGVD computes all the eigenvalues, and optionally, the eigenvectors of a real generalized symmetric-definite eigenproblem, of the form A*x=(lambda)*B*x, A*B*x=(lambda)*x, or B*A*x=(lambda)*x.
Here A and B are assumed to be symmetric, stored in packed format, and B is also positive definite. If eigenvectors are desired, it uses a divide and conquer algorithm.
Parameters
initype= 1: A*x = lambda*B*x; = 2: A*B*x = lambda*x; = 3: B*A*x = lambda*x
injobz= ‘N’: eigenvalues only; = ‘V’: eigenvalues and eigenvectors
inuplo= ‘U’: upper triangles stored; = ‘L’: lower triangles stored
innThe order of the matrices A and B. n >= 0.
inoutAPPacked symmetric matrix A. On exit, destroyed.
inoutBPPacked symmetric positive definite B. On exit, Cholesky factor.
outWEigenvalues in ascending order.
outZEigenvectors if jobz=’V’; not referenced if jobz=’N’.
inldzLeading dimension of Z. ldz >= 1, or ldz >= n if jobz=’V’.
outworkWorkspace array. On exit, work[0] = required LWORK.
inlworkLength of work. See documentation for requirements.
outiworkInteger workspace. On exit, iwork[0] = required LIWORK.
inliworkLength of iwork. See documentation for requirements.
outinfo= 0: success; < 0: illegal argument; > 0: SPPTRF/SSPEVD error.
void sspgvd(
const INT itype,
const char* jobz,
const char* uplo,
const INT n,
f32* restrict AP,
f32* restrict BP,
f32* restrict W,
f32* restrict Z,
const INT ldz,
f32* restrict work,
const INT lwork,
INT* restrict iwork,
const INT liwork,
INT* info
);
Functions
-
void dspgvd(const INT itype, const char *jobz, const char *uplo, const INT n, f64 *restrict AP, f64 *restrict BP, f64 *restrict W, f64 *restrict Z, const INT ldz, f64 *restrict work, const INT lwork, INT *restrict iwork, const INT liwork, INT *info)#
DSPGVD computes all the eigenvalues, and optionally, the eigenvectors of a real generalized symmetric-definite eigenproblem, of the form A*x=(lambda)*B*x, A*B*x=(lambda)*x, or B*A*x=(lambda)*x.
Here A and B are assumed to be symmetric, stored in packed format, and B is also positive definite. If eigenvectors are desired, it uses a divide and conquer algorithm.
Parameters
initype= 1: A*x = lambda*B*x; = 2: A*B*x = lambda*x; = 3: B*A*x = lambda*x
injobz= ‘N’: eigenvalues only; = ‘V’: eigenvalues and eigenvectors
inuplo= ‘U’: upper triangles stored; = ‘L’: lower triangles stored
innThe order of the matrices A and B. n >= 0.
inoutAPPacked symmetric matrix A. On exit, destroyed.
inoutBPPacked symmetric positive definite B. On exit, Cholesky factor.
outWEigenvalues in ascending order.
outZEigenvectors if jobz=’V’; not referenced if jobz=’N’.
inldzLeading dimension of Z. ldz >= 1, or ldz >= n if jobz=’V’.
outworkWorkspace array. On exit, work[0] = required LWORK.
inlworkLength of work. See documentation for requirements.
outiworkInteger workspace. On exit, iwork[0] = required LIWORK.
inliworkLength of iwork. See documentation for requirements.
outinfo= 0: success; < 0: illegal argument; > 0: DPPTRF/DSPEVD error.
void dspgvd(
const INT itype,
const char* jobz,
const char* uplo,
const INT n,
f64* restrict AP,
f64* restrict BP,
f64* restrict W,
f64* restrict Z,
const INT ldz,
f64* restrict work,
const INT lwork,
INT* restrict iwork,
const INT liwork,
INT* info
);