F01VBF (ZTRTTP) (PDF version)
F01 Chapter Contents
F01 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F01VBF (ZTRTTP)

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

F01VBF (ZTRTTP) copies a complex triangular matrix, stored in a full format array, to a packed format array.

2  Specification

SUBROUTINE F01VBF ( UPLO, N, A, LDA, AP, INFO)
INTEGER  N, LDA, INFO
COMPLEX (KIND=nag_wp)  A(LDA,*), AP(N*(N+1)/2)
CHARACTER(1)  UPLO
The routine may be called by its LAPACK name ztrttp.

3  Description

F01VBF (ZTRTTP) packs a complex n by n triangular matrix A, stored conventionally in a full format array, into an array of length nn+1/2. The matrix is packed by columns. This routine is intended for possible use in conjunction with routines from Chapters F06, F07, F08 and F16 where some routines use triangular matrices stored in the packed form. Packed storage format is described in Section 3.3.2 in the F07 Chapter Introduction.

4  References

None.

5  Parameters

1:     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'.
2:     N – INTEGERInput
On entry: n, the order of the matrix A.
Constraint: N0.
3:     ALDA* – COMPLEX (KIND=nag_wp) arrayInput
Note: the second dimension of the array A must be at least N.
On entry: 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.
4:     LDA – INTEGERInput
On entry: the first dimension of the array A as declared in the (sub)program from which F01VBF (ZTRTTP) is called.
Constraint: LDAmax1,N.
5:     APN×N+1/2 – COMPLEX (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

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

Not applicable.

9  Further Comments

None.

10  Example

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

10.1  Program Text

Program Text (f01vbfe.f90)

10.2  Program Data

Program Data (f01vbfe.d)

10.3  Program Results

Program Results (f01vbfe.r)


F01VBF (ZTRTTP) (PDF version)
F01 Chapter Contents
F01 Chapter Introduction
NAG Library Manual

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