f06qh forms the real m by n rectangular or trapezoidal matrix A given by
aij=diagif i=jconstif ij.

Syntax

C#
public static void f06qh(
	string matrix,
	int m,
	int n,
	double con,
	double diag,
	double[,] a,
	out int ifail
)
Visual Basic
Public Shared Sub f06qh ( _
	matrix As String, _
	m As Integer, _
	n As Integer, _
	con As Double, _
	diag As Double, _
	a As Double(,), _
	<OutAttribute> ByRef ifail As Integer _
)
Visual C++
public:
static void f06qh(
	String^ matrix, 
	int m, 
	int n, 
	double con, 
	double diag, 
	array<double,2>^ a, 
	[OutAttribute] int% ifail
)
F#
static member f06qh : 
        matrix : string * 
        m : int * 
        n : int * 
        con : float * 
        diag : float * 
        a : float[,] * 
        ifail : int byref -> unit 

Parameters

matrix
Type: System..::..String
On entry: the matrix type.
matrix="G"
General matrix.
matrix="U"
Upper trapezoidal matrix (upper triangular if m=n).
matrix="L"
Lower trapezoidal matrix (lower triangular if m=n).
Constraint: matrix="G", "U" or "L".
m
Type: System..::..Int32
On entry: m, the number of rows of the matrix A.
Constraint: m0.
n
Type: System..::..Int32
On entry: n, the number of columns of the matrix A.
Constraint: n0.
con
Type: System..::..Double
On entry: the value to be assigned to the off-diagonal elements of A.
diag
Type: System..::..Double
On entry: the value to be assigned to the diagonal elements of A.
a
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint: dim1max1,m
Note: the second dimension of the array a must be at least n.
On exit: the m by n general or trapezoidal matrix A.
  • If matrix="U", A is upper trapezoidal and the elements of the array below the diagonal are not referenced.
  • If matrix="L", A is lower trapezoidal and the elements of the array above the diagonal are not referenced.
ifail
Type: System..::..Int32%
On exit: ifail=0 unless the method detects an error (see [Error Indicators and Warnings]).

Description

None.

References

None.

Error Indicators and Warnings

ifail=-9000
An error occured, see message report.
ifail=-6000
Invalid Parameters value
ifail=-4000
Invalid dimension for array value
ifail=-8000
Negative dimension for array value
ifail=-6000
Invalid Parameters value
ifail=-6000
Invalid Parameters value

Accuracy

Not applicable.

Parallelism and Performance

None.

Further Comments

None.

Example

See Also