The function may be called by the names: x04cec, nag_file_print_matrix_real_band or nag_band_real_mat_print.
x04cec prints a double band matrix stored in
It is an easy-to-use driver for x04cfc. The function uses default values for the format in which numbers are printed, for labelling the rows and columns, and for output record length.
x04cec will choose a format code such that numbers will be printed with
a , a 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 file specified by outfile or,
by default, to standard output.
1: – Nag_OrderTypeInput
On entry: the order argument specifies the two-dimensional storage scheme being used, i.e., row-major ordering or column-major ordering. C language defined storage is specified by . See Section 3.1.3 in the Introduction to the NAG Library CL Interface for a more detailed explanation of the use of this argument.
2: – IntegerInput
3: – 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 , x04cec will exit immediately after printing title; no row or column labels are printed.
4: – IntegerInput
On entry: the number of subdiagonals of the band matrix .
5: – IntegerInput
On entry: the number of superdiagonals of the band matrix .
6: – const doubleInput
Note: the dimension, dim, of the array a
must be at least
On entry: the band matrix to be printed.
This is stored as a notional two-dimensional array with row elements or column elements stored contiguously. The storage of elements , for row and column , depends on the order argument as follows:
if , is stored as ;
if , is stored as .
7: – IntegerInput
On entry: the stride separating row or column elements (depending on the value of order) of the matrix in the array
8: – const char *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.
9: – const char *Input
On entry: the name of a file to which output will be directed. If outfile is NULL the output will be directed to standard output.
10: – NagError *Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).
6Error Indicators and Warnings
Memory allocation failed.
On entry, argument had an illegal value.
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
Cannot open file for appending.
Cannot close file .
Cannot open file for writing.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
x04cec is not threaded in any implementation.
A call to x04cec is equivalent to a call to x04cfc with the following argument values: