|
NAG[f07vgc] NAG[nag_dtbcon] - Estimate condition number of real band triangular matrix
|
|
Calling Sequence
f07vgc(norm_type, uplo, diag, kd, ab, rcond, 'n'=n, 'fail'=fail)
nag_dtbcon(. . .)
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". .
|
|
|
kd - integer;
|
|
|
Constraint: . .
|
|
|
ab - Matrix(1..dim1, 1..dim2, datatype=float[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.
|
|
|
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 second dimension of the array ab.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_dtbcon (f07vgc) estimates the condition number of a real triangular band 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: .
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.
|
|
|
Examples
|
|
>
|
norm_type := "Nag_OneNorm":
uplo := "Nag_Lower":
diag := "Nag_NonUnitDiag":
n := 4:
kd := 1:
ab := Matrix([[0, -4.16], [-2.25, 4.78], [5.86, 6.32], [-4.82, 0.16]], datatype=float[8], order='C_order'):
NAG:-f07vgc(norm_type, uplo, diag, kd, ab, rcond, 'n' = n):
|
|
|