lahef_rk#
Functions
-
void clahef_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)#
CLAHEF_RK computes a partial factorization of a complex Hermitian 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**H U22**H ) A = ( L11 0 ) ( D 0 ) ( L11**H L21**H ) 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.
CLAHEF_RK is an auxiliary routine called by CHETRF_RK. It uses blocked code (calling Level 3 BLAS) to update the submatrix A11 (if UPLO = ‘U’) or A22 (if UPLO = ‘L’).
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.inoutASingle complex array of dimension
(lda,n). On entry, the Hermitian matrix A. Ifuplo='U', the leading n-by-n upper triangular part contains the upper triangular part of A and the strictly lower triangular part is not referenced. Ifuplo='L', the leading n-by-n lower triangular part contains the lower triangular part of A and the strictly upper triangular part is not referenced. On exit, contains: a) Only diagonal elements of the Hermitian 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 array E), and b) Ifuplo='U': factor U in the superdiagonal part of A. Ifuplo='L': factor L in the subdiagonal part of A.inldaThe leading dimension of A.
lda>=max(1,n).outESingle complex array of dimension
n. On exit, contains the superdiagonal (or subdiagonal) elements of the Hermitian block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks. Ifuplo='U',E[i]isD(i-1,i)for1<=i<nandE[0]is zero. Ifuplo='L',E[i]isD(i+1,i)for0<=i<n-1andE[n-1]is zero.E[k]is zero for a 1-by-1 blockD(k).outipivInteger array of dimension
n. Describes the permutation matrix P and the block structure of D. A non-negativeipiv[k]denotes a 1-by-1 block; a pair of consecutive negative values denotes a 2-by-2 block. For a negative entry, the exchanged 0-based index is-ipiv[k]-1. Foruplo='U', factorization proceeds fromn-1to0and the recovered index is at most k. Foruplo='L', factorization proceeds from 0 to n-1 and the recovered index is at least k.outWSingle complex array of dimension
(ldw,nb).inldwThe leading dimension of 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 because the corresponding diagonal block is zero.
void clahef_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 zlahef_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)#
ZLAHEF_RK computes a partial factorization of a complex Hermitian 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**H U22**H ) A = ( L11 0 ) ( D 0 ) ( L11**H L21**H ) 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.
ZLAHEF_RK is an auxiliary routine called by ZHETRF_RK. It uses blocked code (calling Level 3 BLAS) to update the submatrix A11 (if UPLO = ‘U’) or A22 (if UPLO = ‘L’).
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.inoutADouble complex array of dimension
(lda,n). On entry, the Hermitian matrix A. Ifuplo='U', the leading n-by-n upper triangular part contains the upper triangular part of A and the strictly lower triangular part is not referenced. Ifuplo='L', the leading n-by-n lower triangular part contains the lower triangular part of A and the strictly upper triangular part is not referenced. On exit, contains: a) Only diagonal elements of the Hermitian 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 array E), and b) Ifuplo='U': factor U in the superdiagonal part of A. Ifuplo='L': factor L in the subdiagonal part of A.inldaThe leading dimension of A.
lda>=max(1,n).outEDouble complex array of dimension
n. On exit, contains the superdiagonal (or subdiagonal) elements of the Hermitian block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks. Ifuplo='U',E[i]isD(i-1,i)for1<=i<nandE[0]is zero. Ifuplo='L',E[i]isD(i+1,i)for0<=i<n-1andE[n-1]is zero.E[k]is zero for a 1-by-1 blockD(k).outipivInteger array of dimension
n. Describes the permutation matrix P and the block structure of D. A non-negativeipiv[k]denotes a 1-by-1 block; a pair of consecutive negative values denotes a 2-by-2 block. For a negative entry, the exchanged 0-based index is-ipiv[k]-1. Foruplo='U', factorization proceeds fromn-1to0and the recovered index is at most k. Foruplo='L', factorization proceeds from 0 to n-1 and the recovered index is at least k.outWDouble complex array of dimension
(ldw,nb).inldwThe leading dimension of 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 because the corresponding diagonal block is zero.
void zlahef_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
);