x04cc is an easy-to-use method to print a real triangular matrix stored in a packed one-dimensional array.
Syntax
C# |
---|
public static void x04cc( string uplo, string diag, int n, double[] a, string title, out int ifail ) |
Visual Basic |
---|
Public Shared Sub x04cc ( _ uplo As String, _ diag As String, _ n As Integer, _ a As Double(), _ title As String, _ <OutAttribute> ByRef ifail As Integer _ ) |
Visual C++ |
---|
public: static void x04cc( String^ uplo, String^ diag, int n, array<double>^ a, String^ title, [OutAttribute] int% ifail ) |
F# |
---|
static member x04cc : uplo : string * diag : string * n : int * a : float[] * title : string * ifail : int byref -> unit |
Parameters
- uplo
- Type: System..::..StringOn entry: indicates the type of the matrix to be printedConstraint: or .
- diag
- Type: System..::..StringOn 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.
Constraint: , or .
- n
- Type: System..::..Int32
- a
- Type: array<System..::..Double>[]()[][]An array of size [dim1]Note: the dimension of the array a must be at least .On entry: the matrix to be printed. Note that a must have space for the diagonal elements of the matrix, even if these are not stored.More precisely,
- if , the upper triangle of must be stored with element in for ;
- if , the lower triangle of must be stored with element in for .
If , the diagonal elements of are assumed to be , and are not referenced; the same storage scheme is used whether or ‘U’.
- title
- Type: System..::..String
- ifail
- Type: System..::..Int32%On exit: unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).
Description
x04cc prints a real triangular matrix stored in packed form. It is an easy-to-use driver for (X04CDF not in this release). The method uses default values for the format in which numbers are printed, for labelling the rows and columns, and for output record length.
The matrix must be packed by column.
x04cc will choose a format code such that numbers will be printed with
an , an or a format
.
The
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 not in this release).
References
None.
Error Indicators and Warnings
Errors or warnings detected by the method:
On entry, or .
On entry, , or .
Accuracy
Not applicable.
Parallelism and Performance
None.
Further Comments
A call to x04cc is equivalent to a call to (X04CDF not in this release) with the following argument values:
Example
The example program calls x04cc twice, first to print a by lower triangular matrix, and then to print a by upper triangular matrix.