The routine may be called by the names x04cef or nagf_file_print_matrix_real_band.
x04cef prints a real band matrix stored in
It is an easy-to-use driver for x04cff. The routine uses default values for the format in which numbers are printed, for labelling the rows and columns, and for output record length.
x04cef will choose a format code such that numbers will be printed with
an , an or a
code is chosen if the sizes of all the matrix elements to be printed lie between and . The
code is chosen if the sizes of all the matrix elements to be printed lie between and . Otherwise the
code is chosen.
The matrix is printed with integer row and column labels, and with a maximum record length of .
The matrix is output to the unit defined by x04abf.
1: – IntegerInput
2: – IntegerInput
On entry: the number of rows and columns of the band matrix, respectively, to be printed.
If either m or n is less than , x04cef will exit immediately after printing title; no row or column labels are printed.
3: – IntegerInput
On entry: the number of subdiagonals of the band matrix .
4: – IntegerInput
On entry: the number of superdiagonals of the band matrix .
5: – Real (Kind=nag_wp) arrayInput
Note: the second dimension of the array a
must be at least
On entry: the band matrix to be printed.
The matrix is stored in rows to , more precisely, the element must be stored in
6: – IntegerInput
On entry: the first dimension of the array a as declared in the (sub)program from which x04cef is called.
7: – Character(*)Input
On entry: a title to be printed above the matrix.
If , no title (and no blank line) will be printed.
If title contains more than characters, the contents of title will be wrapped onto more than one line, with the break after characters.
Any trailing blank characters in title are ignored.
8: – IntegerInput/Output
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).
Errors or warnings detected by the routine:
On entry, .
On entry, .
An unexpected error has been triggered by this routine. Please
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.
8Parallelism and Performance
x04cef is not threaded in any implementation.
A call to x04cef is equivalent to a call to x04cff with the following argument values:
The example program calls x04cef to print a band matrix with one subdiagonal and one superdiagonal.