lasyf_rk#
Functions
-
void slasyf_rk(const char *uplo, const INT n, const INT nb, INT *kb, f32 *restrict A, const INT lda, f32 *restrict E, INT *restrict ipiv, f32 *restrict W, const INT ldw, INT *info)#
SLASYF_RK computes a partial factorization of a real symmetric matrix A using the bounded Bunch-Kaufman (rook) diagonal pivoting method.
The partial factorization has the form:
A = ( I U12 ) ( A11 0 ) ( I 0 ) if UPLO = 'U', or: ( 0 U22 ) ( 0 D ) ( U12**T U22**T ) A = ( L11 0 ) ( D 0 ) ( L11**T L21**T ) if UPLO = 'L', ( L21 I ) ( 0 A22 ) ( 0 I )where the order of D is at most NB. The actual order is returned in the argument KB, and is either NB or NB-1, or N if N <= NB.
SLASYF_RK is an auxiliary routine called by SSYTRF_RK. It uses blocked code (calling Level 3 BLAS) to update the submatrix A11 (if UPLO = ‘U’) or A22 (if UPLO = ‘L’).
On exit, contains:
Only diagonal elements of the symmetric block diagonal matrix D on the diagonal of A, i.e.
D(k,k)=A(k,k); (superdiagonal (or subdiagonal) elements of D are stored on exit in arrayE), andIf
uplo='U': factor U in the superdiagonal part of A. Ifuplo='L': factor L in the subdiagonal part of A.
For a 1-by-1 diagonal block
D(k), the elementE[k]is set to 0 in bothuplo='U'oruplo='L'cases.
If
uplo='U'(in factorization order,kdecreases fromn-1to0):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,n-kb:n-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k-1]<0means:D(k-1:k,k-1:k)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the matrixA(0:n-1,n-kb:n-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k-1]-1!=k-1, rows and columnsk-1and-ipiv[k-1]-1were interchanged in the submatrixA(0:n-1,n-kb:n-1); if-ipiv[k-1]-1=k-1, no interchange occurred.In both cases, the recovered partner index is always
<=k.
If
uplo='L'(in factorization order,kincreases from0ton-1):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,0:kb-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k+1]<0means:D(k:k+1,k:k+1)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k+1]-1!=k+1, rows and columnsk+1and-ipiv[k+1]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k+1]-1=k+1, no interchange occurred.In both cases, the recovered partner index is always
>=k.
Parameters
inuplo'U': Upper triangular'L': Lower triangular
innThe order of the matrix A.
n>=0.innbThe maximum number of columns of the matrix A that should be factored.
nbshould be at least 2 to allow for 2-by-2 pivot blocks.outkbThe number of columns of A that were actually factored.
kbis eithernb-1ornb, ornifn<=nb.inoutAArray of dimension
(lda,n). On entry, the symmetric matrix A. Ifuplo='U': the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L': the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.inldaThe leading dimension of the array A.
lda>=max(1,n).outEArray of dimension
n. On exit, contains the superdiagonal (or subdiagonal) elements of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks, where ifuplo='U':E[i]=D(i-1,i),i=1:n-1,E[0]is set to 0; ifuplo='L':E[i]=D(i+1,i),i=0:n-2,E[n-1]is set to 0.outipivArray of dimension
n.ipivdescribes the permutation matrix P in the factorization of matrix A as follows. The absolute value ofipiv[k](recovered as-ipiv[k]-1whenipiv[k]<0, oripiv[k]itself whenipiv[k]>=0) represents the index of the row and column that were interchanged with the k-th row and column. The value ofuplodescribes the order in which the interchanges were applied. Also, the sign ofipiv[k]represents the block structure of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks which correspond to 1 or 2 interchanges at each factorization step.outWArray of dimension
(ldw,nb).inldwThe leading dimension of the array W.
ldw>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the matrix A is singular.
void slasyf_rk(
const char* uplo,
const INT n,
const INT nb,
INT* kb,
f32* restrict A,
const INT lda,
f32* restrict E,
INT* restrict ipiv,
f32* restrict W,
const INT ldw,
INT* info
);
Functions
-
void dlasyf_rk(const char *uplo, const INT n, const INT nb, INT *kb, f64 *restrict A, const INT lda, f64 *restrict E, INT *restrict ipiv, f64 *restrict W, const INT ldw, INT *info)#
DLASYF_RK computes a partial factorization of a real symmetric matrix A using the bounded Bunch-Kaufman (rook) diagonal pivoting method.
The partial factorization has the form:
A = ( I U12 ) ( A11 0 ) ( I 0 ) if UPLO = 'U', or: ( 0 U22 ) ( 0 D ) ( U12**T U22**T ) A = ( L11 0 ) ( D 0 ) ( L11**T L21**T ) if UPLO = 'L', ( L21 I ) ( 0 A22 ) ( 0 I )where the order of D is at most NB. The actual order is returned in the argument KB, and is either NB or NB-1, or N if N <= NB.
DLASYF_RK is an auxiliary routine called by DSYTRF_RK. It uses blocked code (calling Level 3 BLAS) to update the submatrix A11 (if UPLO = ‘U’) or A22 (if UPLO = ‘L’).
On exit, contains:
Only diagonal elements of the symmetric block diagonal matrix D on the diagonal of A, i.e.
D(k,k)=A(k,k); (superdiagonal (or subdiagonal) elements of D are stored on exit in arrayE), andIf
uplo='U': factor U in the superdiagonal part of A. Ifuplo='L': factor L in the subdiagonal part of A.
For a 1-by-1 diagonal block
D(k), the elementE[k]is set to 0 in bothuplo='U'oruplo='L'cases.
If
uplo='U'(in factorization order,kdecreases fromn-1to0):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,n-kb:n-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k-1]<0means:D(k-1:k,k-1:k)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the matrixA(0:n-1,n-kb:n-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k-1]-1!=k-1, rows and columnsk-1and-ipiv[k-1]-1were interchanged in the submatrixA(0:n-1,n-kb:n-1); if-ipiv[k-1]-1=k-1, no interchange occurred.In both cases, the recovered partner index is always
<=k.
If
uplo='L'(in factorization order,kincreases from0ton-1):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,0:kb-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k+1]<0means:D(k:k+1,k:k+1)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k+1]-1!=k+1, rows and columnsk+1and-ipiv[k+1]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k+1]-1=k+1, no interchange occurred.In both cases, the recovered partner index is always
>=k.
Parameters
inuplo'U': Upper triangular'L': Lower triangular
innThe order of the matrix A.
n>=0.innbThe maximum number of columns of the matrix A that should be factored.
nbshould be at least 2 to allow for 2-by-2 pivot blocks.outkbThe number of columns of A that were actually factored.
kbis eithernb-1ornb, ornifn<=nb.inoutAArray of dimension
(lda,n). On entry, the symmetric matrix A. Ifuplo='U': the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L': the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.inldaThe leading dimension of the array A.
lda>=max(1,n).outEArray of dimension
n. On exit, contains the superdiagonal (or subdiagonal) elements of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks, where ifuplo='U':E[i]=D(i-1,i),i=1:n-1,E[0]is set to 0; ifuplo='L':E[i]=D(i+1,i),i=0:n-2,E[n-1]is set to 0.outipivArray of dimension
n.ipivdescribes the permutation matrix P in the factorization of matrix A as follows. The absolute value ofipiv[k](recovered as-ipiv[k]-1whenipiv[k]<0, oripiv[k]itself whenipiv[k]>=0) represents the index of the row and column that were interchanged with the k-th row and column. The value ofuplodescribes the order in which the interchanges were applied. Also, the sign ofipiv[k]represents the block structure of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks which correspond to 1 or 2 interchanges at each factorization step.outWArray of dimension
(ldw,nb).inldwThe leading dimension of the array W.
ldw>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the matrix A is singular.
void dlasyf_rk(
const char* uplo,
const INT n,
const INT nb,
INT* kb,
f64* restrict A,
const INT lda,
f64* restrict E,
INT* restrict ipiv,
f64* restrict W,
const INT ldw,
INT* info
);
Functions
-
void clasyf_rk(const char *uplo, const INT n, const INT nb, INT *kb, c64 *restrict A, const INT lda, c64 *restrict E, INT *restrict ipiv, c64 *restrict W, const INT ldw, INT *info)#
CLASYF_RK computes a partial factorization of a complex symmetric matrix A using the bounded Bunch-Kaufman (rook) diagonal pivoting method.
The partial factorization has the form:
A = ( I U12 ) ( A11 0 ) ( I 0 ) if UPLO = 'U', or: ( 0 U22 ) ( 0 D ) ( U12**T U22**T ) A = ( L11 0 ) ( D 0 ) ( L11**T L21**T ) if UPLO = 'L', ( L21 I ) ( 0 A22 ) ( 0 I )where the order of D is at most NB. The actual order is returned in the argument KB, and is either NB or NB-1, or N if N <= NB.
CLASYF_RK is an auxiliary routine called by CSYTRF_RK. It uses blocked code (calling Level 3 BLAS) to update the submatrix A11 (if UPLO = ‘U’) or A22 (if UPLO = ‘L’).
On exit, contains:
Only diagonal elements of the symmetric block diagonal matrix D on the diagonal of A, i.e.
D(k,k)=A(k,k); (superdiagonal (or subdiagonal) elements of D are stored on exit in arrayE), andIf
uplo='U': factor U in the superdiagonal part of A. Ifuplo='L': factor L in the subdiagonal part of A.
For a 1-by-1 diagonal block
D(k), the elementE[k]is set to 0 in bothuplo='U'oruplo='L'cases.
If
uplo='U'(in factorization order,kdecreases fromn-1to0):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,n-kb:n-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k-1]<0means:D(k-1:k,k-1:k)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the matrixA(0:n-1,n-kb:n-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k-1]-1!=k-1, rows and columnsk-1and-ipiv[k-1]-1were interchanged in the submatrixA(0:n-1,n-kb:n-1); if-ipiv[k-1]-1=k-1, no interchange occurred.In both cases, the recovered partner index is always
<=k.
If
uplo='L'(in factorization order,kincreases from0ton-1):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,0:kb-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k+1]<0means:D(k:k+1,k:k+1)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k+1]-1!=k+1, rows and columnsk+1and-ipiv[k+1]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k+1]-1=k+1, no interchange occurred.In both cases, the recovered partner index is always
>=k.
Parameters
inuplo'U': Upper triangular'L': Lower triangular
innThe order of the matrix A.
n>=0.innbThe maximum number of columns of the matrix A that should be factored.
nbshould be at least 2 to allow for 2-by-2 pivot blocks.outkbThe number of columns of A that were actually factored.
kbis eithernb-1ornb, ornifn<=nb.inoutAComplex array of dimension
(lda,n). On entry, the symmetric matrix A. Ifuplo='U': the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L': the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.inldaThe leading dimension of the array A.
lda>=max(1,n).outEComplex array of dimension
n. On exit, contains the superdiagonal (or subdiagonal) elements of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks, where ifuplo='U':E[i]=D(i-1,i),i=1:n-1,E[0]is set to 0; ifuplo='L':E[i]=D(i+1,i),i=0:n-2,E[n-1]is set to 0.outipivArray of dimension
n.ipivdescribes the permutation matrix P in the factorization of matrix A as follows. The absolute value ofipiv[k](recovered as-ipiv[k]-1whenipiv[k]<0, oripiv[k]itself whenipiv[k]>=0) represents the index of the row and column that were interchanged with the k-th row and column. The value ofuplodescribes the order in which the interchanges were applied. Also, the sign ofipiv[k]represents the block structure of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks which correspond to 1 or 2 interchanges at each factorization step.outWComplex array of dimension
(ldw,nb).inldwThe leading dimension of the array W.
ldw>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the matrix A is singular.
void clasyf_rk(
const char* uplo,
const INT n,
const INT nb,
INT* kb,
c64* restrict A,
const INT lda,
c64* restrict E,
INT* restrict ipiv,
c64* restrict W,
const INT ldw,
INT* info
);
Functions
-
void zlasyf_rk(const char *uplo, const INT n, const INT nb, INT *kb, c128 *restrict A, const INT lda, c128 *restrict E, INT *restrict ipiv, c128 *restrict W, const INT ldw, INT *info)#
ZLASYF_RK computes a partial factorization of a complex symmetric matrix A using the bounded Bunch-Kaufman (rook) diagonal pivoting method.
The partial factorization has the form:
A = ( I U12 ) ( A11 0 ) ( I 0 ) if UPLO = 'U', or: ( 0 U22 ) ( 0 D ) ( U12**T U22**T ) A = ( L11 0 ) ( D 0 ) ( L11**T L21**T ) if UPLO = 'L', ( L21 I ) ( 0 A22 ) ( 0 I )where the order of D is at most NB. The actual order is returned in the argument KB, and is either NB or NB-1, or N if N <= NB.
ZLASYF_RK is an auxiliary routine called by ZSYTRF_RK. It uses blocked code (calling Level 3 BLAS) to update the submatrix A11 (if UPLO = ‘U’) or A22 (if UPLO = ‘L’).
On exit, contains:
Only diagonal elements of the symmetric block diagonal matrix D on the diagonal of A, i.e.
D(k,k)=A(k,k); (superdiagonal (or subdiagonal) elements of D are stored on exit in arrayE), andIf
uplo='U': factor U in the superdiagonal part of A. Ifuplo='L': factor L in the subdiagonal part of A.
For a 1-by-1 diagonal block
D(k), the elementE[k]is set to 0 in bothuplo='U'oruplo='L'cases.
If
uplo='U'(in factorization order,kdecreases fromn-1to0):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,n-kb:n-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k-1]<0means:D(k-1:k,k-1:k)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the matrixA(0:n-1,n-kb:n-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k-1]-1!=k-1, rows and columnsk-1and-ipiv[k-1]-1were interchanged in the submatrixA(0:n-1,n-kb:n-1); if-ipiv[k-1]-1=k-1, no interchange occurred.In both cases, the recovered partner index is always
<=k.
If
uplo='L'(in factorization order,kincreases from0ton-1):A single non-negative entry
ipiv[k]>=0means:D(k,k)is a 1-by-1 diagonal block. Ifipiv[k]!=k, rows and columnskandipiv[k]were interchanged in the submatrixA(0:n-1,0:kb-1); ifipiv[k]=k, no interchange occurred.A pair of consecutive negative entries
ipiv[k]<0andipiv[k+1]<0means:D(k:k+1,k:k+1)is a 2-by-2 diagonal block. (Negative entries inipivappear only in pairs.) 1) If-ipiv[k]-1!=k, rows and columnskand-ipiv[k]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k]-1=k, no interchange occurred. 2) If-ipiv[k+1]-1!=k+1, rows and columnsk+1and-ipiv[k+1]-1were interchanged in the submatrixA(0:n-1,0:kb-1); if-ipiv[k+1]-1=k+1, no interchange occurred.In both cases, the recovered partner index is always
>=k.
Parameters
inuplo'U': Upper triangular'L': Lower triangular
innThe order of the matrix A.
n>=0.innbThe maximum number of columns of the matrix A that should be factored.
nbshould be at least 2 to allow for 2-by-2 pivot blocks.outkbThe number of columns of A that were actually factored.
kbis eithernb-1ornb, ornifn<=nb.inoutAComplex array of dimension
(lda,n). On entry, the symmetric matrix A. Ifuplo='U': the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L': the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.inldaThe leading dimension of the array A.
lda>=max(1,n).outEComplex array of dimension
n. On exit, contains the superdiagonal (or subdiagonal) elements of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks, where ifuplo='U':E[i]=D(i-1,i),i=1:n-1,E[0]is set to 0; ifuplo='L':E[i]=D(i+1,i),i=0:n-2,E[n-1]is set to 0.outipivArray of dimension
n.ipivdescribes the permutation matrix P in the factorization of matrix A as follows. The absolute value ofipiv[k](recovered as-ipiv[k]-1whenipiv[k]<0, oripiv[k]itself whenipiv[k]>=0) represents the index of the row and column that were interchanged with the k-th row and column. The value ofuplodescribes the order in which the interchanges were applied. Also, the sign ofipiv[k]represents the block structure of the symmetric block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks which correspond to 1 or 2 interchanges at each factorization step.outWComplex array of dimension
(ldw,nb).inldwThe leading dimension of the array W.
ldw>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the matrix A is singular.
void zlasyf_rk(
const char* uplo,
const INT n,
const INT nb,
INT* kb,
c128* restrict A,
const INT lda,
c128* restrict E,
INT* restrict ipiv,
c128* restrict W,
const INT ldw,
INT* info
);