The function may be called by the names: x04dac, nag_file_print_matrix_complex_gen or nag_gen_complx_mat_print.
x04dac prints a Complex matrix. It is an easy-to-use driver for x04dbc. The function uses default values for the format in which numbers are printed, for labelling the rows and columns, and for output record length.
x04dac will choose a format code such that numbers will be printed with
a , a or a format.
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 chosen code is used to print each complex element of the matrix with the real part above the imaginary part.
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: – Nag_MatrixTypeInput
On entry: indicates the part of the matrix to be printed.
The whole of the rectangular matrix.
The lower triangle of the matrix, or the lower trapezium if the matrix has more rows than columns.
The upper triangle of the matrix, or the upper trapezium if the matrix has more columns than rows.
, or .
3: – Nag_DiagTypeInput
On entry: indicates whether the diagonal elements of the matrix are to be printed.
The diagonal elements of the matrix are not referenced and not printed.
The diagonal elements of the matrix are not referenced, but are assumed all to be unity, and are printed as such.
The diagonal elements of the matrix are referenced and printed.