f16ubf calculates the value of the -norm, the -norm, the Frobenius norm or the maximum absolute value of the elements of a complex by band matrix stored in banded packed form.
It can also be used to compute the value of the -norm of a row -vector or a column -vector.
Given a complex by band matrix, ,
f16ubf 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 f16ubf can calculate the value (the -norm of ).
4
References
Basic Linear Algebra Subprograms Technical (BLAST) Forum (2001) Basic Linear Algebra Subprograms Technical (BLAST) Forum Standard University of Tennessee, Knoxville, Tennessee http://www.netlib.org/blas/blast-forum/blas-report.pdf
5
Arguments
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, f16ubf returns .
3: – IntegerInput
On entry: , the number of columns of the matrix . If on input, f16ubf returns .
4: – IntegerInput
On entry: , the number of subdiagonals within the band of . If on input, f16ubf returns .
5: – IntegerInput
On entry: , the number of superdiagonals within the band of . If on input, f16ubf returns .
6: – Complex (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 f16ubf is called.
Constraint:
.
6
Error Indicators and Warnings
If any constraint on an input parameter is violated, an error message is printed and program execution is terminated.