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.
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.
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 ).
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: INORM – 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_INF_NORM)
The -norm.
(NAG_FROBENIUS_NORM)
The Frobenius (or Euclidean) norm.
(NAG_MAX_NORM)
The value (not a norm).
Constraints:
, , , or ;
if , or .
2: M – INTEGERInput
On entry: , the number of rows of the matrix . If on input, F16RBF returns .
3: N – INTEGERInput
On entry: , the number of columns of the matrix . If on input, F16RBF returns .
4: KL – INTEGERInput
On entry: , the number of subdiagonals within the band of . If on input, F16RBF returns .
5: KU – INTEGERInput
On entry: , the number of superdiagonals within the band of . If on input, F16RBF returns .