|
NAG[f07buc] NAG[nag_zgbcon] - Estimate condition number of complex band matrix, matrix already factorized by f07brc (nag_zgbtrf)
|
|
Calling Sequence
f07buc(norm_type, kl, ku, ab, ipiv, anorm, rcond, 'n'=n, 'fail'=fail)
nag_zgbcon(. . .)
Parameters
|
norm_type - String;
|
|
|
On entry: indicates whether or is estimated.
|
|
is estimated.
|
|
Constraint: , "Nag_OneNorm" or "Nag_InfNorm". .
|
|
|
kl - integer;
|
|
|
On entry: , the number of subdiagonals within the band of the matrix .
|
|
Constraint: . .
|
|
|
ku - integer;
|
|
|
On entry: , the number of superdiagonals within the band of the matrix .
|
|
Constraint: . .
|
|
|
ab - 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.
|
|
|
ipiv - Vector(1..dim, datatype=integer[kernelopts('wordsize')/8]);
|
|
|
Note: the dimension, dim, of the array ipiv must be at least .
|
|
|
anorm - float;
|
|
|
anorm must be computed either before calling f07brc (nag_zgbtrf) or else from a copy of the original matrix .
|
|
Constraint: . .
|
|
|
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_zgbcon (f07buc) estimates the condition number of a complex band matrix , where has been factorized by f07brc (nag_zgbtrf).
|
|
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: .
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.
"NE_REAL"
On entry, . Constraint: .
|
|
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":
n := 4:
kl := 1:
ku := 2:
anorm := 15.47935040206279:
ab := Matrix([[0 +0*I , 0 +6.3*I , -1.48 -1.75*I , -3.99 +4.01*I , 0.59 -0.48*I ], [0.3587301587301587 +0.2619047619047619*I , -0.77 +2.83*I , -1.06 +1.94*I , 3.33 -1.04*I , 0 +0*I ], [0.2314260728743743 +0.6357648842047455*I , 4.930266941175471 -3.008563740627192*I , -1.769209381609681 -1.858747281945787*I , 0 +0*I , 0 +0*I ], [0.7604226619635511 +0.2429442589267133*I , 0.4337749265901603 +0.123252818156083*I , 0 +0*I , 0 +0*I , 0 +0*I ]], datatype=complex[8], order='C_order'):
ipiv := Vector([2, 3, 3, 4], datatype=integer[kernelopts('wordsize')/8]):
NAG:-f07buc(norm_type, kl, ku, ab, ipiv, anorm, rcond, 'n' = n):
|
|
|