|
NAG[f07tuc] NAG[nag_ztrcon] - Estimate condition number of complex triangular matrix
|
|
Calling Sequence
f07tuc(norm_type, uplo, diag, a, rcond, 'n'=n, 'fail'=fail)
nag_ztrcon(. . .)
Parameters
|
norm_type - String;
|
|
|
On entry: indicates whether or is estimated.
|
|
is estimated.
|
|
Constraint: , "Nag_OneNorm" or "Nag_InfNorm". .
|
|
|
uplo - String;
|
|
|
On entry: indicates whether is upper or lower triangular.
|
|
is upper triangular.
|
|
is lower triangular.
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
diag - String;
|
|
|
On entry: indicates whether is a non-unit or unit triangular matrix.
|
|
is a non-unit triangular matrix.
|
|
Constraint: "Nag_NonUnitDiag" or "Nag_UnitDiag". .
|
|
|
a - Matrix(1..dim1, 1..dim2, datatype=complex[8], order=order);
|
|
|
Note: this array may be supplied in Fortran_order or C_order , as specified by order. All array parameters must use a consistent order.
|
|
If , is upper triangular and the elements of the array below the diagonal are not referenced.
|
|
If , is lower triangular and the elements of the array above the diagonal are not referenced.
|
|
|
rcond - assignable;
|
|
|
Note: On exit the variable rcond will have a value of type float.
|
|
On exit: an estimate of the reciprocal of the condition number of . rcond is set to zero if exact singularity is detected or the estimate underflows. If rcond is less than machine precision, is singular to working precision.
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array a.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_ztrcon (f07tuc) estimates the condition number of a complex triangular matrix.
|
|
Error Indicators and Warnings
|
|
"NE_ALLOC_FAIL"
Dynamic memory allocation failed.
"NE_BAD_PARAM"
On entry, argument had an illegal value.
"NE_INT"
On entry, . Constraint: .
"NE_INTERNAL_ERROR"
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please consult NAG for assistance.
|
|
Accuracy
|
|
The computed estimate rcond is never less than the true value , and in practice is nearly always less than , although examples can be constructed where rcond is much larger.
|
|
Further Comments
|
|
A call to nag_ztrcon (f07tuc) involves solving a number of systems of linear equations of the form or ; the number is usually 5 and never more than 11. Each solution involves approximately real floating-point operations but takes considerably longer than a call to f07tsc (nag_ztrtrs) with one right-hand side, because extra care is taken to avoid overflow when is approximately singular.
The real analogue of this function is f07tgc (nag_dtrcon).
|
|
|
Examples
|
|
>
|
norm_type := "Nag_OneNorm":
uplo := "Nag_Lower":
diag := "Nag_NonUnitDiag":
n := 4:
a := Matrix([[4.78 +4.56*I , 0 +0*I , 0 +0*I , 0 +0*I ], [2 -0.3*I , -4.11 +1.25*I , 0 +0*I , 0 +0*I ], [2.89 -1.34*I , 2.36 -4.25*I , 4.15 +0.8*I , 0 +0*I ], [-1.89 +1.15*I , 0.04 -3.69*I , -0.02 +0.46*I , 0.33 -0.26*I ]], datatype=complex[8], order='C_order'):
NAG:-f07tuc(norm_type, uplo, diag, a, rcond, 'n' = n):
|
|
|