﻿ f06qf Method
f06qf performs the matrix-copy operation
 $B←A$
where $A$ and $B$ are $m$ by $n$ real general or trapezoidal matrices.

# Syntax

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

#### Parameters

matrix
Type: System..::..String
On entry: the matrix type.
${\mathbf{matrix}}=\text{"G"}$
General matrix.
${\mathbf{matrix}}=\text{"U"}$
Upper trapezoidal matrix (upper triangular if $m=n$).
${\mathbf{matrix}}=\text{"L"}$
Lower trapezoidal matrix (lower triangular if $m=n$).
Constraint: ${\mathbf{matrix}}=\text{"G"}$, $\text{"U"}$ or $\text{"L"}$.
m
Type: System..::..Int32
On entry: $m$, the number of rows of the matrices $A$ and $B$.
Constraint: ${\mathbf{m}}\ge 0$.
n
Type: System..::..Int32
On entry: $n$, the number of columns of the matrices $A$ and $B$.
Constraint: ${\mathbf{n}}\ge 0$.
a
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint: $\mathrm{dim1}\ge \mathrm{max}\phantom{\rule{0.125em}{0ex}}\left(1,{\mathbf{m}}\right)$
Note: the second dimension of the array a must be at least ${\mathbf{n}}$.
On entry: the $m$ by $n$ general or trapezoidal matrix $A$.
• If ${\mathbf{matrix}}=\text{"U"}$, $A$ is upper trapezoidal and the elements of the array below the diagonal are not referenced.
• If ${\mathbf{matrix}}=\text{"L"}$, $A$ is lower trapezoidal and the elements of the array above the diagonal are not referenced.
b
Type: array<System..::..Double,2>[,](,)[,][,]
An array of size [dim1, dim2]
Note: dim1 must satisfy the constraint: $\mathrm{dim1}\ge \mathrm{max}\phantom{\rule{0.125em}{0ex}}\left(1,{\mathbf{m}}\right)$
Note: the second dimension of the array b must be at least ${\mathbf{n}}$.
On exit: the $m$ by $n$ general or trapezoidal matrix $B$.
• If ${\mathbf{matrix}}=\text{"U"}$, $B$ is upper trapezoidal and the elements of the array below the diagonal are not referenced.
• If ${\mathbf{matrix}}=\text{"L"}$, $B$ is lower trapezoidal and the elements of the array above the diagonal are not referenced.
ifail
Type: System..::..Int32%
On exit: $\mathbf{ifail}=0$ unless the method detects an error (see [Error Indicators and Warnings]).

None.

None.

# Error Indicators and Warnings

${\mathbf{ifail}}=-9000$
An error occured, see message report.
${\mathbf{ifail}}=-6000$
Invalid Parameters $〈\mathit{\text{value}}〉$
${\mathbf{ifail}}=-4000$
Invalid dimension for array $〈\mathit{\text{value}}〉$
${\mathbf{ifail}}=-8000$
Negative dimension for array $〈\mathit{\text{value}}〉$
${\mathbf{ifail}}=-6000$
Invalid Parameters $〈\mathit{\text{value}}〉$
${\mathbf{ifail}}=-6000$
Invalid Parameters $〈\mathit{\text{value}}〉$

Not applicable.

None.