LAPACK
3.6.1
LAPACK: Linear Algebra PACKage
|
real function cqrt17 | ( | character | TRANS, |
integer | IRESID, | ||
integer | M, | ||
integer | N, | ||
integer | NRHS, | ||
complex, dimension( lda, * ) | A, | ||
integer | LDA, | ||
complex, dimension( ldx, * ) | X, | ||
integer | LDX, | ||
complex, dimension( ldb, * ) | B, | ||
integer | LDB, | ||
complex, dimension( ldb, * ) | C, | ||
complex, dimension( lwork ) | WORK, | ||
integer | LWORK | ||
) |
CQRT17
CQRT17 computes the ratio || R'*op(A) ||/(||A||*alpha*max(M,N,NRHS)*eps) where R = op(A)*X - B, op(A) is A or A', and alpha = ||B|| if IRESID = 1 (zero-residual problem) alpha = ||R|| if IRESID = 2 (otherwise).
[in] | TRANS | TRANS is CHARACTER*1 Specifies whether or not the transpose of A is used. = 'N': No transpose, op(A) = A. = 'C': Conjugate transpose, op(A) = A'. |
[in] | IRESID | IRESID is INTEGER IRESID = 1 indicates zero-residual problem. IRESID = 2 indicates non-zero residual. |
[in] | M | M is INTEGER The number of rows of the matrix A. If TRANS = 'N', the number of rows of the matrix B. If TRANS = 'C', the number of rows of the matrix X. |
[in] | N | N is INTEGER The number of columns of the matrix A. If TRANS = 'N', the number of rows of the matrix X. If TRANS = 'C', the number of rows of the matrix B. |
[in] | NRHS | NRHS is INTEGER The number of columns of the matrices X and B. |
[in] | A | A is COMPLEX array, dimension (LDA,N) The m-by-n matrix A. |
[in] | LDA | LDA is INTEGER The leading dimension of the array A. LDA >= M. |
[in] | X | X is COMPLEX array, dimension (LDX,NRHS) If TRANS = 'N', the n-by-nrhs matrix X. If TRANS = 'C', the m-by-nrhs matrix X. |
[in] | LDX | LDX is INTEGER The leading dimension of the array X. If TRANS = 'N', LDX >= N. If TRANS = 'C', LDX >= M. |
[in] | B | B is COMPLEX array, dimension (LDB,NRHS) If TRANS = 'N', the m-by-nrhs matrix B. If TRANS = 'C', the n-by-nrhs matrix B. |
[in] | LDB | LDB is INTEGER The leading dimension of the array B. If TRANS = 'N', LDB >= M. If TRANS = 'C', LDB >= N. |
[out] | C | C is COMPLEX array, dimension (LDB,NRHS) |
[out] | WORK | WORK is COMPLEX array, dimension (LWORK) |
[in] | LWORK | LWORK is INTEGER The length of the array WORK. LWORK >= NRHS*(M+N). |
Definition at line 152 of file cqrt17.f.