f16rbf calculates the value of the -norm, the -norm, the Frobenius norm or the maximum absolute value of the elements of a real by band matrix stored in banded form.
It can also be used to compute the value of the -norm of a row -vector or a column -vector.
The routine may be called by the names f16rbf or nagf_blast_dgb_norm.
3Description
Given a real by banded matrix, ,
f16rbf calculates one of the values given by
(the -norm of ),
(the -norm of ),
(the Frobenius norm of ), or
(the maximum absolute element value of ).
If or is then additionally f16rbf can calculate the value (the -norm of ).
4References
Basic Linear Algebra Subprograms Technical (BLAST) Forum (2001) Basic Linear Algebra Subprograms Technical (BLAST) Forum Standard University of Tennessee, Knoxville, Tennessee https://www.netlib.org/blas/blast-forum/blas-report.pdf
5Arguments
1: – IntegerInput
On entry: specifies the value to be returned. The integer codes shown below can be replaced by the equivalent named constants of the form NAG_?_NORM. These named constants are available via the nag_library module and are also used in the example program for clarity.
(NAG_ONE_NORM)
The -norm.
(NAG_TWO_NORM)
The -norm of a row or column vector.
(NAG_FROBENIUS_NORM)
The Frobenius (or Euclidean) norm.
(NAG_INF_NORM)
The -norm.
(NAG_MAX_NORM)
The value (not a norm).
Constraints:
, , , or ;
if , or .
2: – IntegerInput
On entry: , the number of rows of the matrix . If on input, f16rbf returns .
3: – IntegerInput
On entry: , the number of columns of the matrix . If on input, f16rbf returns .
4: – IntegerInput
On entry: , the number of subdiagonals within the band of . If on input, f16rbf returns .
5: – IntegerInput
On entry: , the number of superdiagonals within the band of . If on input, f16rbf returns .
6: – Real (Kind=nag_wp) arrayInput
Note: the second dimension of the array ab
must be at least
.
On entry: the by band matrix .
The matrix is stored in rows to , more precisely, the element must be stored in
7: – IntegerInput
On entry: the first dimension of the array ab as declared in the (sub)program from which f16rbf is called.
Constraint:
.
6Error Indicators and Warnings
If any constraint on an input parameter is violated, an error message is printed and program execution is terminated.