NAG FL Interface
f01vhf (ztfttr)

1 Purpose

f01vhf unpacks a complex triangular matrix, stored in a Rectangular Full Packed (RFP) format array, to a full format array.

2 Specification

Fortran Interface
Subroutine f01vhf ( transr, uplo, n, ar, a, lda, info)
Integer, Intent (In) :: n, lda
Integer, Intent (Out) :: info
Complex (Kind=nag_wp), Intent (In) :: ar(n*(n+1)/2)
Complex (Kind=nag_wp), Intent (Inout) :: a(lda,*)
Character (1), Intent (In) :: transr, uplo
C Header Interface
#include <nag.h>
void  f01vhf_ (const char *transr, const char *uplo, const Integer *n, const Complex ar[], Complex a[], const Integer *lda, Integer *info, const Charlen length_transr, const Charlen length_uplo)
The routine may be called by the names f01vhf, nagf_matop_ztfttr or its LAPACK name ztfttr.

3 Description

f01vhf unpacks a complex n by n triangular matrix A, stored in RFP format to conventional storage in a full format array. This routine is intended for possible use in conjunction with routines from Chapters F06, F07 and F16 where some routines that use triangular matrices store them in RFP format. The RFP storage format is described in Section 3.3.3 in the F07 Chapter Introduction.

4 References

Gustavson F G, Waśniewski J, Dongarra J J and Langou J (2010) Rectangular full packed format for Cholesky's algorithm: factorization, solution, and inversion ACM Trans. Math. Software 37, 2

5 Arguments

1: transr Character(1) Input
On entry: specifies whether the normal RFP representation of A or its conjugate transpose is stored.
transr='N'
The RFP representation of the matrix A is stored.
transr='C'
The conjugate transpose of the RFP representation of the matrix A is stored.
Constraint: transr='N' or 'C'.
2: uplo Character(1) Input
On entry: specifies whether A is upper or lower triangular.
uplo='U'
A is upper triangular.
uplo='L'
A is lower triangular.
Constraint: uplo='U' or 'L'.
3: n Integer Input
On entry: n, the order of the matrix A.
Constraint: n0.
4: arn×n+1/2 Complex (Kind=nag_wp) array Input
On entry: the upper or lower n by n triangular matrix A (as specified by uplo) in either normal or transposed RFP format (as specified by transr). The storage format is described in Section 3.3.3 in the F07 Chapter Introduction.
5: alda* Complex (Kind=nag_wp) array Output
Note: the second dimension of the array a must be at least n.
On exit: the triangular matrix A.
  • If uplo='U', A is upper triangular and the elements of the array below the diagonal are not referenced.
  • If uplo='L', A is lower triangular and the elements of the array above the diagonal are not referenced.
6: lda Integer Input
On entry: the first dimension of the array a as declared in the (sub)program from which f01vhf is called.
Constraint: ldamax1,n.
7: info Integer Output
On exit: info=0 unless the routine detects an error (see Section 6).

6 Error Indicators and Warnings

info<0
If info=-i, argument i had an illegal value. An explanatory message is output, and execution of the program is terminated.

7 Accuracy

Not applicable.

8 Parallelism and Performance

f01vhf is not threaded in any implementation.

9 Further Comments

None.

10 Example

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

10.1 Program Text

Program Text (f01vhfe.f90)

10.2 Program Data

Program Data (f01vhfe.d)

10.3 Program Results

Program Results (f01vhfe.r)