F01VKF (ZTPTTF) (PDF version)
F01 Chapter Contents
F01 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F01VKF (ZTPTTF)

Note:  before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.

 Contents

    1  Purpose
    7  Accuracy

1  Purpose

F01VKF (ZTPTTF) copies a complex triangular matrix, stored in a standard packed format array, to a Rectangular Full Packed (RFP) format array.

2  Specification

SUBROUTINE F01VKF ( TRANSR, UPLO, N, AP, AR, INFO)
INTEGER  N, INFO
COMPLEX (KIND=nag_wp)  AP(N*(N+1)/2), AR(N*(N+1)/2)
CHARACTER(1)  TRANSR, UPLO
The routine may be called by its LAPACK name ztpttf.

3  Description

F01VKF (ZTPTTF) copies a complex n by n triangular matrix, A, stored in packed format, to RFP format. 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 and the packed storage format is described in Section 3.3.2 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  Parameters

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 – INTEGERInput
On entry: n, the order of the matrix A.
Constraint: N0.
4:     APN×N+1/2 – COMPLEX (KIND=nag_wp) arrayInput
On entry: the n by n triangular matrix A, packed by columns.
More precisely,
  • if UPLO='U', the upper triangle of A must be stored with element Aij in APi+jj-1/2 for ij;
  • if UPLO='L', the lower triangle of A must be stored with element Aij in APi+2n-jj-1/2 for ij.
5:     ARN×N+1/2 – COMPLEX (KIND=nag_wp) arrayOutput
On exit: 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.
6:     INFO – INTEGEROutput
On exit: INFO=0 unless the routine detects an error (see Section 6).

6  Error Indicators and Warnings

-999<INFO<0
If INFO=-i, argument i had an illegal value. An explanatory message is output, and execution of the program is terminated.
INFO=-999
Dynamic memory allocation failed.

7  Accuracy

Not applicable.

8  Parallelism and Performance

Not applicable.

9  Further Comments

None.

10  Example

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

10.1  Program Text

Program Text (f01vkfe.f90)

10.2  Program Data

Program Data (f01vkfe.d)

10.3  Program Results

Program Results (f01vkfe.r)


F01VKF (ZTPTTF) (PDF version)
F01 Chapter Contents
F01 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2015