F01VLF (DTFTTP) (PDF version)
F01 Chapter Contents
F01 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F01VLF (DTFTTP)

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

F01VLF (DTFTTP) copies a real triangular matrix stored in a Rectangular Full Packed (RFP) format to packed 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.

2  Specification

SUBROUTINE F01VLF ( TRANSR, UPLO, N, ARF, AP, INFO)
INTEGER  N, INFO
REAL (KIND=nag_wp)  ARF(N*(N+1)/2), AP(N*(N+1)/2)
CHARACTER(1)  TRANSR, UPLO
The routine may be called by its LAPACK name dtfttp.

3  Description

F01VLF (DTFTTP) packs a real n by n triangular matrix A stored in RFP format to packed format. This routine is intended for possible use in conjunction with routines from Chapters F06 and F07 where some routines that use triangular matrices store them in RFP format.

4  References

None.

5  Parameters

1:     TRANSR – CHARACTER(1)Input
On entry: specifies whether the RFP representation of A is normal or transposed.
TRANSR='N'
The matrix A is stored in normal RFP format.
TRANSR='T'
The matrix A is stored in transposed RFP format.
Constraint: TRANSR='N' or 'T'.
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:     ARF(N×N+1/2) – REAL (KIND=nag_wp) arrayInput
On entry: the triangular matrix A in RFP format, as described in Section 3.3.3 in the F07 Chapter Introduction.
5:     AP(N×N+1/2) – REAL (KIND=nag_wp) arrayOutput
On exit: the n by n triangular matrix A, packed by columns.
More precisely,
  • if UPLO='U', the upper triangle of A is stored with element Aij in APi+jj-1/2 for ij;
  • if UPLO='L', the lower triangle of A is stored with element Aij in APi+2n-jj-1/2 for ij.
6:     INFO – INTEGEROutput
On exit: INFO=0 unless the routine detects an error (see Section 6).

6  Error Indicators and Warnings

Errors or warnings detected by the routine:
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  Further Comments

None.

9  Example

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

9.1  Program Text

Program Text (f01vlfe.f90)

9.2  Program Data

Program Data (f01vlfe.d)

9.3  Program Results

Program Results (f01vlfe.r)


F01VLF (DTFTTP) (PDF version)
F01 Chapter Contents
F01 Chapter Introduction
NAG Library Manual

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