f01ve copies a real triangular matrix stored in full format in a two-dimensional array to Rectangular Full Packed (RFP) format. The RFP storage format is described in [] in the F07 class Chapter Introduction.

# Syntax

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

#### Parameters

transr
Type: System..::..String
On entry: specifies whether the RFP representation of $A$ is normal or transposed.
${\mathbf{transr}}=\text{"N"}$
The matrix $A$ is stored in normal RFP format.
${\mathbf{transr}}=\text{"T"}$
The matrix $A$ is stored in transposed RFP format.
Constraint: ${\mathbf{transr}}=\text{"N"}$ or $\text{"T"}$.
uplo
Type: System..::..String
On entry: specifies whether $A$ is upper or lower triangular.
${\mathbf{uplo}}=\text{"U"}$
$A$ is upper triangular.
${\mathbf{uplo}}=\text{"L"}$
$A$ is lower triangular.
Constraint: ${\mathbf{uplo}}=\text{"U"}$ or $\text{"L"}$.
n
Type: System..::..Int32
On entry: $n$, the order of the matrix $A$.
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{n}}\right)$
Note: the second dimension of the array a must be at least ${\mathbf{n}}$.
On entry: the triangular matrix $A$.
• If ${\mathbf{uplo}}=\text{"U"}$, $A$ is upper triangular and the elements of the array below the diagonal are not referenced.
• If ${\mathbf{uplo}}=\text{"L"}$, $A$ is lower triangular and the elements of the array above the diagonal are not referenced.
arf
Type: array<System..::..Double>[]()[][]
An array of size [${\mathbf{n}}×\left({\mathbf{n}}+1\right)/2$]
On exit: the triangular matrix $A$ in RFP format, as described in [] in the F07 class Chapter Introduction.
info
Type: System..::..Int32%
On exit: ${\mathbf{info}}=0$ unless the method detects an error (see [Error Indicators and Warnings]).

# Description

f01ve packs a real $n$ by $n$ triangular matrix $A$, stored conventionally in a two-dimensional array into RFP format. This method is intended for possible use in conjunction with methods from F06 class F07 class where some methods that use triangular matrices store them in RFP format.

None.

# Error Indicators and Warnings

Some error messages may refer to parameters that are dropped from this interface (LDA) In these cases, an error in another parameter has usually caused an incorrect value to be inferred.
${\mathbf{info}}<0$
If ${\mathbf{info}}=-i$, argument $i$ had an illegal value. An explanatory message is output, and execution of the program is terminated.
${\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}}〉$

Not applicable.

None.

None.

# Example

This example reads in a triangular matrix and copies it to RFP format.

Example program (C#): f01vee.cs

Example program data: f01vee.d

Example program results: f01vee.r