f16ubf calculates the value of the -norm, the -norm, the Frobenius norm or the maximum absolute value of the elements of a complex 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.
The routine may be called by the names f16ubf or nagf_blast_zgb_norm.
3Description
Given a complex 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 ).
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, 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 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:
.
6Error Indicators and Warnings
If any constraint on an input parameter is violated, an error message is printed and program execution is terminated.