|
NAG[f16rbc] NAG[nag_dgb_norm] - -norm, -norm, Frobenius norm, largest absolute element, real band matrix
|
|
Calling Sequence
f16rbc(norm_type, m, kl, ku, ab, r, 'n'=n, 'fail'=fail)
nag_dgb_norm(. . .)
Parameters
|
norm_type - String;
|
|
|
On entry: specifies the value to be returned.
|
|
or "Nag_OneNorm" The 1-norm.
|
|
The -norm.
|
|
The Frobenius (or Euclidean) norm.
|
|
The value (not a norm).
|
|
Constraint: "Nag_OneNorm", "Nag_InfNorm", "Nag_FrobeniusNorm" or "Nag_MaxNorm". .
|
|
|
m - integer;
|
|
|
On entry: , the number of rows of the matrix .
|
|
Constraint: . .
|
|
|
kl - integer;
|
|
|
On entry: , the number of subdiagonals within the band of .
|
|
Constraint: . .
|
|
|
ku - integer;
|
|
|
On entry: , the number of superdiagonals within the band of .
|
|
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.
|
|
|
r - assignable;
|
|
|
Note: On exit the variable r will have a value of type float.
|
|
On exit: the value of the norm specified by norm.
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the second dimension of the array ab.
|
|
On entry: , the number of columns of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_dgb_norm (f16rbc) calculates the value of the 1-norm, the -norm, the Frobenius norm or the maximum absolute value of the elements of a real by band matrix.
|
|
Description
|
|
Given a real by band matrix, , nag_dgb_norm (f16rbc) calculates one of the values given by
or
|
|
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: .
On entry, . Constraint: .
|
|
Accuracy
|
|
The BLAS standard requires accurate implementations which avoid unnecessary over/underflow (see Section 2.7 of The BLAS Technical Forum Standard (2001)).
|
|
|
Examples
|
|
>
|
norm_type := "Nag_OneNorm":
kl := 2:
ku := 1:
m := 6:
ab := Matrix([[0,1,2,3],[1,2,3,4],[2,3,4,5],[3,4,5,6]], datatype=float[8], order='Fortran_order'):
NAG:-f16rbc(norm_type, m, kl, ku, ab, r):
|
|
|