syevd_2stage#
Functions
-
void ssyevd_2stage(const char *jobz, const char *uplo, const INT n, f32 *A, const INT lda, f32 *W, f32 *work, const INT lwork, INT *iwork, const INT liwork, INT *info)#
SSYEVD_2STAGE computes all eigenvalues and, optionally, eigenvectors of a real symmetric matrix
Ausing the 2stage technique for the reduction to tridiagonal.If eigenvectors are desired, it uses a divide and conquer algorithm.
- Further Details:
All details about the 2stage techniques are available in:
Azzam Haidar, Hatem Ltaief, and Jack Dongarra. Parallel reduction to condensed forms for symmetric eigenvalue problems using aggregated fine-grained and memory-aware kernels. In Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis (SC ‘11), New York, NY, USA, Article 8 , 11 pages. https://doi.org/10.1145/2063384.2063394
A. Haidar, J. Kurzak, P. Luszczek, 2013. An improved parallel singular value algorithm and its implementation for multicore hardware, In Proceedings of 2013 International Conference for High Performance Computing, Networking, Storage and Analysis (SC ‘13). Denver, Colorado, USA, 2013. Article 90, 12 pages. https://doi.org/10.1145/2503210.2503292
A. Haidar, R. Solca, S. Tomov, T. Schulthess and J. Dongarra. A novel hybrid CPU-GPU generalized eigensolver for electronic structure calculations based on fine-grained memory aware tasks. International Journal of High Performance Computing Applications. Volume 28 Issue 2, Pages 196-209, May 2014. https://doi.org/10.1177/1094342013502097
Parameters
injobz'N': Compute eigenvalues only;'V': Compute eigenvalues and eigenvectors. Not available in this release.inuplo'U': Upper triangle ofAis stored;'L': Lower triangle ofAis stored.innThe order of the matrix
A.n>=0.inoutAOn entry, the symmetric matrix
A. Ifuplo='U', the leadingn-by-nupper triangular part ofAcontains the upper triangular part of the matrixA. Ifuplo='L', the leadingn-by-nlower triangular part ofAcontains the lower triangular part of the matrixA. On exit, ifjobz='V', then ifinfo=0,Acontains the orthonormal eigenvectors of the matrixA. Ifjobz='N', then on exit the lower triangle (ifuplo='L') or the upper triangle (ifuplo='U') ofA, including the diagonal, is destroyed.inldaThe leading dimension of the array
A.lda>=max(1,n).outWArray of dimension (
n). Ifinfo=0, the eigenvalues in ascending order.outworkArray of dimension (
lwork). On exit, ifinfo=0,work[0]returns the optimallwork.inlworkThe dimension of the array
work. Ifn<=1,lworkmust be at least 1. Ifjobz='N'andn>1,lworkmust be queried.wherelwork = MAX(1, dimension) where dimension = max(stage1,stage2) + (kd+1)*n + 2*n+1 = n*kd + n*max(kd+1,FACTOPTNB) + max(2*kd*kd, kd*NTHREADS) + (kd+1)*n + 2*n+1kdis the blocking size of the reduction, FACTOPTNB is the blocking used by the QR or LQ algorithm, usually FACTOPTNB=128 is a good choice, NTHREADS is the number of threads used when openMP compilation is enabled, otherwise =1. Ifjobz='V'andn>1,lworkmust be at least1 + 6*n + 2*n**2. Iflwork=-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.outiworkInteger array, dimension (
max(1,liwork)). On exit, ifinfo=0,iwork[0]returns the optimalliwork.inliworkThe dimension of the array
iwork. Ifn<=1,liworkmust be at least 1. Ifjobz='N'andn>1,liworkmust be at least 1. Ifjobz='V'andn>1,liworkmust be at least3 + 5*n. Ifliwork=-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.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=iandjobz='N', then the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero; ifinfo=iandjobz='V', then the algorithm failed to compute an eigenvalue while working on the submatrix lying in rows and columnsinfo/(n+1)throughmod(info,n+1).
void ssyevd_2stage(
const char* jobz,
const char* uplo,
const INT n,
f32* A,
const INT lda,
f32* W,
f32* work,
const INT lwork,
INT* iwork,
const INT liwork,
INT* info
);
Functions
-
void dsyevd_2stage(const char *jobz, const char *uplo, const INT n, f64 *A, const INT lda, f64 *W, f64 *work, const INT lwork, INT *iwork, const INT liwork, INT *info)#
DSYEVD_2STAGE computes all eigenvalues and, optionally, eigenvectors of a real symmetric matrix
Ausing the 2stage technique for the reduction to tridiagonal.If eigenvectors are desired, it uses a divide and conquer algorithm.
- Further Details:
All details about the 2stage techniques are available in:
Azzam Haidar, Hatem Ltaief, and Jack Dongarra. Parallel reduction to condensed forms for symmetric eigenvalue problems using aggregated fine-grained and memory-aware kernels. In Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis (SC ‘11), New York, NY, USA, Article 8 , 11 pages. https://doi.org/10.1145/2063384.2063394
A. Haidar, J. Kurzak, P. Luszczek, 2013. An improved parallel singular value algorithm and its implementation for multicore hardware, In Proceedings of 2013 International Conference for High Performance Computing, Networking, Storage and Analysis (SC ‘13). Denver, Colorado, USA, 2013. Article 90, 12 pages. https://doi.org/10.1145/2503210.2503292
A. Haidar, R. Solca, S. Tomov, T. Schulthess and J. Dongarra. A novel hybrid CPU-GPU generalized eigensolver for electronic structure calculations based on fine-grained memory aware tasks. International Journal of High Performance Computing Applications. Volume 28 Issue 2, Pages 196-209, May 2014. https://doi.org/10.1177/1094342013502097
Parameters
injobz'N': Compute eigenvalues only;'V': Compute eigenvalues and eigenvectors. Not available in this release.inuplo'U': Upper triangle ofAis stored;'L': Lower triangle ofAis stored.innThe order of the matrix
A.n>=0.inoutAOn entry, the symmetric matrix
A. Ifuplo='U', the leadingn-by-nupper triangular part ofAcontains the upper triangular part of the matrixA. Ifuplo='L', the leadingn-by-nlower triangular part ofAcontains the lower triangular part of the matrixA. On exit, ifjobz='V', then ifinfo=0,Acontains the orthonormal eigenvectors of the matrixA. Ifjobz='N', then on exit the lower triangle (ifuplo='L') or the upper triangle (ifuplo='U') ofA, including the diagonal, is destroyed.inldaThe leading dimension of the array
A.lda>=max(1,n).outWArray of dimension (
n). Ifinfo=0, the eigenvalues in ascending order.outworkArray of dimension (
lwork). On exit, ifinfo=0,work[0]returns the optimallwork.inlworkThe dimension of the array
work. Ifn<=1,lworkmust be at least 1. Ifjobz='N'andn>1,lworkmust be queried.wherelwork = MAX(1, dimension) where dimension = max(stage1,stage2) + (kd+1)*n + 2*n+1 = n*kd + n*max(kd+1,FACTOPTNB) + max(2*kd*kd, kd*NTHREADS) + (kd+1)*n + 2*n+1kdis the blocking size of the reduction, FACTOPTNB is the blocking used by the QR or LQ algorithm, usually FACTOPTNB=128 is a good choice, NTHREADS is the number of threads used when openMP compilation is enabled, otherwise =1. Ifjobz='V'andn>1,lworkmust be at least1 + 6*n + 2*n**2. Iflwork=-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.outiworkInteger array, dimension (
max(1,liwork)). On exit, ifinfo=0,iwork[0]returns the optimalliwork.inliworkThe dimension of the array
iwork. Ifn<=1,liworkmust be at least 1. Ifjobz='N'andn>1,liworkmust be at least 1. Ifjobz='V'andn>1,liworkmust be at least3 + 5*n. Ifliwork=-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.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=iandjobz='N', then the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero; ifinfo=iandjobz='V', then the algorithm failed to compute an eigenvalue while working on the submatrix lying in rows and columnsinfo/(n+1)throughmod(info,n+1).
void dsyevd_2stage(
const char* jobz,
const char* uplo,
const INT n,
f64* A,
const INT lda,
f64* W,
f64* work,
const INT lwork,
INT* iwork,
const INT liwork,
INT* info
);