sytrd_sy2sb#
Functions
-
void ssytrd_sy2sb(const char *uplo, const INT n, const INT kd, f32 *A, const INT lda, f32 *AB, const INT ldab, f32 *tau, f32 *work, const INT lwork, INT *info)#
SSYTRD_SY2SB reduces a real symmetric matrix
Ato real symmetric band-diagonal formABby an orthogonal similarity transformation:Q**T * A * Q = AB.- Further Details:
Implemented by Azzam Haidar.
All details are available on technical report, SC11, SC13 papers.
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
If
uplo= ‘U’, the matrix Q is represented as a product of elementary reflectorsQ = H(k-1)**T . . . H(1)**T H(0)**T, where k = n-kd. Each H(i) has the form H(i) = I - tau * v * v**T where tau is a real scalar, and v is a real vector with v[0:i+kd-1] = 0 and v[i+kd] = 1; conjg(v[i+kd+1:n-1]) is stored on exit in A[i, i+kd+1:n-1], and tau in tau[i].
If
uplo= ‘L’, the matrix Q is represented as a product of elementary reflectorsQ = H(0) H(1) . . . H(k-1), where k = n-kd. Each H(i) has the form H(i) = I - tau * v * v**T where tau is a real scalar, and v is a real vector with v[kd:i] = 0 and v[i+kd+1] = 1; v[i+kd+2:n-1] is stored on exit in A[i+kd+2:n-1, i], and tau in tau[i].
The contents of A on exit are illustrated by the following examples with n = 5:
if UPLO = 'U': if UPLO = 'L': ( ab ab/v0 v0 v0 v0 ) ( ab ) ( ab ab/v1 v1 v1 ) ( ab/v0 ab ) ( ab ab/v2 v2 ) ( v0 ab/v1 ab ) ( ab ab/v3 ) ( v0 v1 ab/v2 ab ) ( ab ) ( v0 v1 v2 ab/v3 ab ) where d and e denote diagonal and off-diagonal elements of T, and vi denotes an element of the vector defining H(i).
Parameters
inuplo'U': Upper triangle ofAis stored;'L': Lower triangle ofAis stored.innThe order of the matrix
A.n>=0.inkdThe number of superdiagonals of the reduced matrix if
uplo='U', or the number of subdiagonals ifuplo='L'.kd>=0. The reduced matrix is stored in the arrayAB.inoutAOn entry, the symmetric matrix
A. Ifuplo='U', the leadingn-by-nupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. Ifuplo='L', the leadingn-by-nlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. On exit, ifuplo='U', the diagonal and first superdiagonal ofAare overwritten by the corresponding elements of the tridiagonal matrix T, and the elements above the first superdiagonal, with the arraytau, represent the orthogonal matrix Q as a product of elementary reflectors; ifuplo='L', the diagonal and first subdiagonal ofAare overwritten by the corresponding elements of the tridiagonal matrix T, and the elements below the first subdiagonal, with the arraytau, represent the orthogonal matrix Q as a product of elementary reflectors. See Further Details.inldaThe leading dimension of the array
A.lda>=max(1,n).outABOn exit, the upper or lower triangle of the symmetric band matrix A, stored in the first
kd+1rows of the array. The j-th column of A is stored in the j-th column of the arrayABas follows: ifuplo='U',AB[kd+i-j,j]=A[i,j]formax(0,j-kd)<=i<=j; ifuplo='L',AB[i-j,j]=A[i,j]forj<=i<=min(n-1,j+kd).inldabThe leading dimension of the array
AB.ldab>=kd+1.outtauArray of dimension (
n-kd). The scalar factors of the elementary reflectors (see Further Details).outworkArray of dimension (
max(1,lwork)). On exit, ifinfo=0, or iflwork=-1,work[0]returns the size oflwork.inlworkThe dimension of the array
workwhich should be calculated by a workspace query. Ifn<=kd+1,lwork>=1, elselwork = max(1, LWORK_QUERY). Iflwork=-1, then a workspace query is assumed; the routine only calculates the optimal size of theworkarray, returns this value as the first entry of theworkarray.LWORK_QUERY = n*kd + n*max(kd,FACTOPTNB) + 2*kd*kdwhere FACTOPTNB is the blocking used by the QR or LQ algorithm, usually FACTOPTNB=128 is a good choice otherwise puttinglwork=-1will provide the size ofwork.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal value
void ssytrd_sy2sb(
const char* uplo,
const INT n,
const INT kd,
f32* A,
const INT lda,
f32* AB,
const INT ldab,
f32* tau,
f32* work,
const INT lwork,
INT* info
);
Functions
-
void dsytrd_sy2sb(const char *uplo, const INT n, const INT kd, f64 *A, const INT lda, f64 *AB, const INT ldab, f64 *tau, f64 *work, const INT lwork, INT *info)#
DSYTRD_SY2SB reduces a real symmetric matrix
Ato real symmetric band-diagonal formABby an orthogonal similarity transformation:Q**T * A * Q = AB.- Further Details:
Implemented by Azzam Haidar.
All details are available on technical report, SC11, SC13 papers.
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
If
uplo= ‘U’, the matrix Q is represented as a product of elementary reflectorsQ = H(k-1)**T . . . H(1)**T H(0)**T, where k = n-kd. Each H(i) has the form H(i) = I - tau * v * v**T where tau is a real scalar, and v is a real vector with v[0:i+kd-1] = 0 and v[i+kd] = 1; conjg(v[i+kd+1:n-1]) is stored on exit in A[i, i+kd+1:n-1], and tau in tau[i].
If
uplo= ‘L’, the matrix Q is represented as a product of elementary reflectorsQ = H(0) H(1) . . . H(k-1), where k = n-kd. Each H(i) has the form H(i) = I - tau * v * v**T where tau is a real scalar, and v is a real vector with v[kd:i] = 0 and v[i+kd+1] = 1; v[i+kd+2:n-1] is stored on exit in A[i+kd+2:n-1, i], and tau in tau[i].
The contents of A on exit are illustrated by the following examples with n = 5:
if UPLO = 'U': if UPLO = 'L': ( ab ab/v0 v0 v0 v0 ) ( ab ) ( ab ab/v1 v1 v1 ) ( ab/v0 ab ) ( ab ab/v2 v2 ) ( v0 ab/v1 ab ) ( ab ab/v3 ) ( v0 v1 ab/v2 ab ) ( ab ) ( v0 v1 v2 ab/v3 ab ) where d and e denote diagonal and off-diagonal elements of T, and vi denotes an element of the vector defining H(i).
Parameters
inuplo'U': Upper triangle ofAis stored;'L': Lower triangle ofAis stored.innThe order of the matrix
A.n>=0.inkdThe number of superdiagonals of the reduced matrix if
uplo='U', or the number of subdiagonals ifuplo='L'.kd>=0. The reduced matrix is stored in the arrayAB.inoutAOn entry, the symmetric matrix
A. Ifuplo='U', the leadingn-by-nupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. Ifuplo='L', the leadingn-by-nlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. On exit, ifuplo='U', the diagonal and first superdiagonal ofAare overwritten by the corresponding elements of the tridiagonal matrix T, and the elements above the first superdiagonal, with the arraytau, represent the orthogonal matrix Q as a product of elementary reflectors; ifuplo='L', the diagonal and first subdiagonal ofAare overwritten by the corresponding elements of the tridiagonal matrix T, and the elements below the first subdiagonal, with the arraytau, represent the orthogonal matrix Q as a product of elementary reflectors. See Further Details.inldaThe leading dimension of the array
A.lda>=max(1,n).outABOn exit, the upper or lower triangle of the symmetric band matrix A, stored in the first
kd+1rows of the array. The j-th column of A is stored in the j-th column of the arrayABas follows: ifuplo='U',AB[kd+i-j,j]=A[i,j]formax(0,j-kd)<=i<=j; ifuplo='L',AB[i-j,j]=A[i,j]forj<=i<=min(n-1,j+kd).inldabThe leading dimension of the array
AB.ldab>=kd+1.outtauArray of dimension (
n-kd). The scalar factors of the elementary reflectors (see Further Details).outworkArray of dimension (
max(1,lwork)). On exit, ifinfo=0, or iflwork=-1,work[0]returns the size oflwork.inlworkThe dimension of the array
workwhich should be calculated by a workspace query. Ifn<=kd+1,lwork>=1, elselwork = max(1, LWORK_QUERY). Iflwork=-1, then a workspace query is assumed; the routine only calculates the optimal size of theworkarray, returns this value as the first entry of theworkarray.LWORK_QUERY = n*kd + n*max(kd,FACTOPTNB) + 2*kd*kdwhere FACTOPTNB is the blocking used by the QR or LQ algorithm, usually FACTOPTNB=128 is a good choice otherwise puttinglwork=-1will provide the size ofwork.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal value
void dsytrd_sy2sb(
const char* uplo,
const INT n,
const INT kd,
f64* A,
const INT lda,
f64* AB,
const INT ldab,
f64* tau,
f64* work,
const INT lwork,
INT* info
);