Note: before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.
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 Parameters
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.