hecon_rook#

Functions

void checon_rook(
    const char*          uplo,
    const INT            n,
    const c64*  restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
    const f32            anorm,
          f32*           rcond,
          c64*  restrict work,
          INT*           info
);
void checon_rook(const char *uplo, const INT n, const c64 *restrict A, const INT lda, const INT *restrict ipiv, const f32 anorm, f32 *rcond, c64 *restrict work, INT *info)#

CHECON_ROOK estimates the reciprocal of the condition number (in the 1-norm) of a complex Hermitian matrix A using the factorization A = U*D*U**H or A = L*D*L**H computed by chetrf_rook.

An estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))).

Parameters

in
uplo

  • 'U': Upper triangular, form is A = U*D*U**H

  • 'L': Lower triangular, form is A = L*D*L**H

in
n

The order of the matrix A. n>=0.

in
A

Single complex array of dimension (lda,n). The block diagonal matrix D and the multipliers used to obtain U or L, as computed by chetrf_rook.

in
lda

The leading dimension of A. lda>=max(1,n).

in
ipiv

Integer array of dimension n. Details of the interchanges and block structure of D determined by chetrf_rook.

in
anorm

The 1-norm of the original matrix A.

out
rcond

The reciprocal condition number, computed as rcond=1/(anorm*ainvnm), where ainvnm estimates the 1-norm of inv(A).

out
work

Single complex workspace of dimension 2*n.

out
info

  • info=0: successful exit

  • info<0: if info=-i, the i-th argument had an illegal value

Functions

void zhecon_rook(
    const char*          uplo,
    const INT            n,
    const c128* restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
    const f64            anorm,
          f64*           rcond,
          c128* restrict work,
          INT*           info
);
void zhecon_rook(const char *uplo, const INT n, const c128 *restrict A, const INT lda, const INT *restrict ipiv, const f64 anorm, f64 *rcond, c128 *restrict work, INT *info)#

ZHECON_ROOK estimates the reciprocal of the condition number (in the 1-norm) of a complex Hermitian matrix A using the factorization A = U*D*U**H or A = L*D*L**H computed by zhetrf_rook.

An estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))).

Parameters

in
uplo

  • 'U': Upper triangular, form is A = U*D*U**H

  • 'L': Lower triangular, form is A = L*D*L**H

in
n

The order of the matrix A. n>=0.

in
A

Double complex array of dimension (lda,n). The block diagonal matrix D and the multipliers used to obtain U or L, as computed by zhetrf_rook.

in
lda

The leading dimension of A. lda>=max(1,n).

in
ipiv

Integer array of dimension n. Details of the interchanges and block structure of D determined by zhetrf_rook.

in
anorm

The 1-norm of the original matrix A.

out
rcond

The reciprocal condition number, computed as rcond=1/(anorm*ainvnm), where ainvnm estimates the 1-norm of inv(A).

out
work

Double complex workspace of dimension 2*n.

out
info

  • info=0: successful exit

  • info<0: if info=-i, the i-th argument had an illegal value