spgv#
Functions
-
void sspgv(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, INT *info)#
SSPGV 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.
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, dimension (3*n).
outinfo= 0: success; < 0: illegal argument; > 0: SPPTRF/SSPEV error.
void sspgv(
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,
INT* info
);
Functions
-
void dspgv(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, INT *info)#
DSPGV 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.
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, dimension (3*n).
outinfo= 0: success; < 0: illegal argument; > 0: DPPTRF/DSPEV error.
void dspgv(
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,
INT* info
);