F08BQF (ZTPMQRT) (PDF version)
F08 Chapter Contents
F08 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F08BQF (ZTPMQRT)

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
    10  Example

1  Purpose

F08BQF (ZTPMQRT) multiplies an arbitrary complex matrix C by the complex unitary matrix Q from a QR factorization computed by F08BPF (ZTPQRT).

2  Specification

SUBROUTINE F08BQF ( SIDE, TRANS, M, N, K, L, NB, V, LDV, T, LDT, C1, LDC1, C2, LDC2, WORK, INFO)
INTEGER  M, N, K, L, NB, LDV, LDT, LDC1, LDC2, INFO
COMPLEX (KIND=nag_wp)  V(LDV,*), T(LDT,*), C1(LDC1,*), C2(LDC2,*), WORK(*)
CHARACTER(1)  SIDE, TRANS
The routine may be called by its LAPACK name ztpmqrt.

3  Description

F08BQF (ZTPMQRT) is intended to be used after a call to F08BPF (ZTPQRT) which performs a QR factorization of a triangular-pentagonal matrix containing an upper triangular matrix A over a pentagonal matrix B. The unitary matrix Q is represented as a product of elementary reflectors.
This routine may be used to form the matrix products
QC , QHC , CQ ​ or ​ CQH ,  
where the complex rectangular mc by nc matrix C is split into component matrices C1 and C2.
If Q is being applied from the left (QC or QHC) then
C = C1 C2  
where C1 is k by nc, C2 is mv by nc, mc=k+mv is fixed and mv is the number of rows of the matrix V containing the elementary reflectors (i.e., M as passed to F08BPF (ZTPQRT)); the number of columns of V is nv (i.e., N as passed to F08BPF (ZTPQRT)).
If Q is being applied from the right (CQ or CQH) then
C = C1 C2  
where C1 is mc by k, and C2 is mc by mv and nc=k+mv is fixed.
The matrices C1 and C2 are overwriten by the result of the matrix product.
A common application of this routine is in updating the solution of a linear least squares problem as illustrated in Section 10 in F08BPF (ZTPQRT).

4  References

Golub G H and Van Loan C F (2012) Matrix Computations (4th Edition) Johns Hopkins University Press, Baltimore

5  Parameters

1:     SIDE – CHARACTER(1)Input
On entry: indicates how Q or QH is to be applied to C.
SIDE='L'
Q or QH is applied to C from the left.
SIDE='R'
Q or QH is applied to C from the right.
Constraint: SIDE='L' or 'R'.
2:     TRANS – CHARACTER(1)Input
On entry: indicates whether Q or QH is to be applied to C.
TRANS='N'
Q is applied to C.
TRANS='C'
QH is applied to C.
Constraint: TRANS='N' or 'C'.
3:     M – INTEGERInput
On entry: the number of rows of the matrix C2, that is,
if SIDE='L'
then mv, the number of rows of the matrix V;
if SIDE='R'
then mc, the number of rows of the matrix C.
Constraint: M0.
4:     N – INTEGERInput
On entry: the number of columns of the matrix C2, that is,
if SIDE='L'
then nc, the number of columns of the matrix C;
if SIDE='R'
then nv, the number of columns of the matrix V.
Constraint: N0.
5:     K – INTEGERInput
On entry: k, the number of elementary reflectors whose product defines the matrix Q.
Constraint: K0.
6:     L – INTEGERInput
On entry: l, the number of rows of the upper trapezoidal part of the pentagonal composite matrix V, passed (as B) in a previous call to F08BPF (ZTPQRT). This must be the same value used in the previous call to F08BPF (ZTPQRT) (see L in F08BPF (ZTPQRT)).
Constraint: 0LK.
7:     NB – INTEGERInput
On entry: nb, the blocking factor used in a previous call to F08BPF (ZTPQRT) to compute the QR factorization of a triangular-pentagonal matrix containing composite matrices A and B.
Constraints:
  • NB1;
  • if K>0, NBK.
8:     VLDV* – COMPLEX (KIND=nag_wp) arrayInput
Note: the second dimension of the array LDV must be at least max1,K.
On entry: the mv by nv matrix V; this should remain unchanged from the array B returned by a previous call to F08BPF (ZTPQRT).
9:     LDV – INTEGERInput
On entry: the first dimension of the array V as declared in the (sub)program from which F08BQF (ZTPMQRT) is called.
Constraints:
  • if SIDE='L', LDV max1,M ;
  • if SIDE='R', LDV max1,N .
10:   TLDT* – COMPLEX (KIND=nag_wp) arrayInput
Note: the second dimension of the array T must be at least max1,K.
On entry: this must remain unchanged from a previous call to F08BPF (ZTPQRT) (see T in F08BPF (ZTPQRT)).
11:   LDT – INTEGERInput
On entry: the first dimension of the array T as declared in the (sub)program from which F08BQF (ZTPMQRT) is called.
Constraint: LDTNB.
12:   C1LDC1* – COMPLEX (KIND=nag_wp) arrayInput/Output
Note: the second dimension of the array C1 must be at least max1,N if SIDE='L' and at least max1,K if SIDE='R'.
On entry: C1, the first part of the composite matrix C.
if SIDE='L'
then C1 contains the first k rows of C;
if SIDE='R'
then C1 contains the first k columns of C.
On exit: C1 is overwritten by the corresponding block of QC or QHC or CQ or CQH.
13:   LDC1 – INTEGERInput
On entry: the first dimension of the array C1 as declared in the (sub)program from which F08BQF (ZTPMQRT) is called.
Constraints:
  • if SIDE='L', LDC1 max1,K ;
  • if SIDE='R', LDC1 max1,M .
14:   C2LDC2* – COMPLEX (KIND=nag_wp) arrayInput/Output
Note: the second dimension of the array C2 must be at least max1,N.
On entry: C2, the second part of the composite matrix C.
if SIDE='L'
then C2 contains the remaining mv rows of C;
if SIDE='R'
then C2 contains the remaining mv columns of C;
On exit: C2 is overwritten by the corresponding block of QC or QHC or CQ or CQH.
15:   LDC2 – INTEGERInput
On entry: the first dimension of the array C2 as declared in the (sub)program from which F08BQF (ZTPMQRT) is called.
Constraint: LDC2 max1,M .
16:   WORK* – COMPLEX (KIND=nag_wp) arrayWorkspace
Note: the dimension of the array WORK must be at least N×NB if SIDE='L' and at least M×NB if SIDE='R'.
17:   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

The computed result differs from the exact result by a matrix E such that
E2 = Oε C2 ,  
where ε is the machine precision.

8  Parallelism and Performance

F08BQF (ZTPMQRT) is not threaded by NAG in any implementation.
F08BQF (ZTPMQRT) 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

The total number of floating-point operations is approximately 2nk 2m-k  if SIDE='L' and 2mk 2n-k  if SIDE='R'.
The real analogue of this routine is F08BCF (DTPMQRT).

10  Example

See Section 10 in F08BPF (ZTPQRT).

F08BQF (ZTPMQRT) (PDF version)
F08 Chapter Contents
F08 Chapter Introduction
NAG Library Manual

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