F06WPF (ZTFSM) (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F06WPF (ZTFSM)

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

F06WPF (ZTFSM) performs one of the matrix-matrix operations
BαA-1B , BαA-HB , BαBA-1   or BαBA-H ,  
where A is a complex triangular matrix stored in Rectangular Full Packed (RFP) format, B is an m by n complex matrix, and α is a complex scalar. A-H  denotes AH-1  or equivalently A-1H .
No test for singularity or near-singularity of A is included in this routine. Such tests must be performed before calling this routine.

2  Specification

SUBROUTINE F06WPF ( TRANSR, SIDE, UPLO, TRANS, DIAG, M, N, ALPHA, AR, B, LDB)
INTEGER  M, N, LDB
COMPLEX (KIND=nag_wp)  ALPHA, AR(*), B(LDB,*)
CHARACTER(1)  TRANSR, SIDE, UPLO, TRANS, DIAG
The routine may be called by its LAPACK name ztfsm.

3  Description

F06WPF (ZTFSM) solves (for X) a triangular linear system of one of the forms
AX=αB , AHX=αB , XA=αB   or XAH=αB ,  
where A is a complex triangular matrix stored in RFP format, B, X are m by n complex matrices, and α is a complex scalar. 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  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 matrix A is stored in normal RFP format.
TRANSR='C'
The conjugate transpose of the RFP representation of the matrix A is stored.
Constraint: TRANSR='N' or 'C'.
2:     SIDE – CHARACTER(1)Input
On entry: specifies whether B is operated on from the left or the right, or similarly whether A (or its transpose) appears to the left or right of the solution matrix in the linear system to be solved.
SIDE='L'
B is pre-multiplied from the left. The system to be solved has the form AX=αB or ATX=αB.
SIDE='R'
B is post-multiplied from the right. The system to be solved has the form XA=αB or XAT=αB.
Constraint: SIDE='L' or 'R'.
3:     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'.
4:     TRANS – CHARACTER(1)Input
On entry: specifies whether the operation involves A-1 or A-H, i.e., whether or not A is transpose conjugated in the linear system to be solved.
TRANS='N'
The operation involves A-1, i.e., A is not transpose conjugated.
TRANS='C'
The operation involves A-H, i.e., A is transpose conjugated.
Constraint: TRANS='N' or 'C'.
5:     DIAG – CHARACTER(1)Input
On entry: specifies whether A has nonunit or unit diagonal elements.
DIAG='N'
The diagonal elements of A are stored explicitly.
DIAG='U'
The diagonal elements of A are assumed to be 1, the corresponding elements of AR are not referenced.
Constraint: DIAG='N' or 'U'.
6:     M – INTEGERInput
On entry: m, the number of rows of the matrix B.
Constraint: M0.
7:     N – INTEGERInput
On entry: n, the number of columns of the matrix B.
Constraint: N0.
8:     ALPHA – COMPLEX (KIND=nag_wp)Input
On entry: the scalar α.
9:     AR* – COMPLEX (KIND=nag_wp) arrayInput
Note: the dimension of the array AR must be at least max1,M×M+1/2 if SIDE='L' and at least max1,N×N+1/2 if SIDE='R'.
On entry: A, the m by m triangular matrix A if SIDE='L' or the n by n triangular matrix A if SIDE='R', stored in RFP format (as specified by TRANSR). The storage format is described in detail in Section 3.3.3 in the F07 Chapter Introduction. If ALPHA=0.0, AR is not referenced.
10:   BLDB* – COMPLEX (KIND=nag_wp) arrayInput/Output
Note: the second dimension of the array B must be at least max1,N.
On entry: the m by n matrix B.
If ALPHA=0, B need not be set.
On exit: the updated matrix B, or similarly the solution matrix X.
11:   LDB – INTEGERInput
On entry: the first dimension of the array B as declared in the (sub)program from which F06WPF (ZTFSM) is called.
Constraint: LDB max1,M .

6  Error Indicators and Warnings

None.

7  Accuracy

Not applicable.

8  Parallelism and Performance

F06WPF (ZTFSM) is not threaded by NAG in any implementation.
F06WPF (ZTFSM) makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.

9  Further Comments

None.

10  Example

This example reads in the upper triangular part of a symmetric matrix A which it converts to RFP format. It also reads in α and a 4 by 3 matrix B and then performs the matrix-matrix operation BαA-1B.

10.1  Program Text

Program Text (f06wpfe.f90)

10.2  Program Data

Program Data (f06wpfe.d)

10.3  Program Results

Program Results (f06wpfe.r)


F06WPF (ZTFSM) (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

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