NAG Library Routine Document
f08bqf
(ztpmqrt)
1
Purpose
f08bqf (ztpmqrt) multiplies an arbitrary complex matrix
by the complex unitary matrix
from a
factorization computed by
f08bpf (ztpqrt).
2
Specification
Fortran Interface
Subroutine f08bqf ( |
side,
trans,
m,
n,
k,
l,
nb,
v,
ldv,
t,
ldt,
c1,
ldc1,
c2,
ldc2,
work,
info) |
Integer, Intent (In) | :: |
m,
n,
k,
l,
nb,
ldv,
ldt,
ldc1,
ldc2 | Integer, Intent (Out) | :: |
info | Complex (Kind=nag_wp), Intent (In) | :: |
v(ldv,*),
t(ldt,*) | Complex (Kind=nag_wp), Intent (Inout) | :: |
c1(ldc1,*),
c2(ldc2,*),
work(*) | Character (1), Intent (In) | :: |
side,
trans |
|
C Header Interface
#include nagmk26.h
void |
f08bqf_ (
const char *side,
const char *trans,
const Integer *m,
const Integer *n,
const Integer *k,
const Integer *l,
const Integer *nb,
const Complex v[],
const Integer *ldv,
const Complex t[],
const Integer *ldt,
Complex c1[],
const Integer *ldc1,
Complex c2[],
const Integer *ldc2,
Complex work[],
Integer *info,
const Charlen length_side,
const Charlen length_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
factorization of a triangular-pentagonal matrix containing an upper triangular matrix
over a pentagonal matrix
. The unitary matrix
is represented as a product of elementary reflectors.
This routine may be used to form the matrix products
where the complex rectangular
by
matrix
is split into component matrices
and
.
If
is being applied from the left (
or
) then
where
is
by
,
is
by
,
is fixed and
is the number of rows of the matrix
containing the elementary reflectors (i.e.,
m as passed to
f08bpf (ztpqrt)); the number of columns of
is
(i.e.,
n as passed to
f08bpf (ztpqrt)).
If
is being applied from the right (
or
) then
where
is
by
, and
is
by
and
is fixed.
The matrices and 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
Arguments
- 1: – Character(1)Input
-
On entry: indicates how
or
is to be applied to
.
- or is applied to from the left.
- or is applied to from the right.
Constraint:
or .
- 2: – Character(1)Input
-
On entry: indicates whether
or
is to be applied to
.
- is applied to .
- is applied to .
Constraint:
or .
- 3: – IntegerInput
-
On entry: the number of rows of the matrix
, that is,
- if
- then , the number of rows of the matrix ;
- if
- then , the number of rows of the matrix .
Constraint:
.
- 4: – IntegerInput
-
On entry: the number of columns of the matrix
, that is,
- if
- then , the number of columns of the matrix ;
- if
- then , the number of columns of the matrix .
Constraint:
.
- 5: – IntegerInput
-
On entry: , the number of elementary reflectors whose product defines the matrix .
Constraint:
.
- 6: – IntegerInput
-
On entry:
, the number of rows of the upper trapezoidal part of the pentagonal composite matrix
, 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:
.
- 7: – IntegerInput
-
On entry:
, the blocking factor used in a previous call to
f08bpf (ztpqrt) to compute the
factorization of a triangular-pentagonal matrix containing composite matrices
and
.
- 8: – Complex (Kind=nag_wp) arrayInput
-
Note: the second dimension of the array
v
must be at least
.
On entry: the
by
matrix
; this should remain unchanged from the array
b returned by a previous call to
f08bpf (ztpqrt).
- 9: – IntegerInput
-
On entry: the first dimension of the array
v as declared in the (sub)program from which
f08bqf (ztpmqrt) is called.
Constraints:
- if , ;
- if , .
- 10: – Complex (Kind=nag_wp) arrayInput
-
Note: the second dimension of the array
t
must be at least
.
On entry: this must remain unchanged from a previous call to
f08bpf (ztpqrt) (see
t in
f08bpf (ztpqrt)).
- 11: – IntegerInput
-
On entry: the first dimension of the array
t as declared in the (sub)program from which
f08bqf (ztpmqrt) is called.
Constraint:
.
- 12: – Complex (Kind=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
c1
must be at least
if
and at least
if
.
On entry:
, the first part of the composite matrix
:
- if
- then c1 contains the first rows of ;
- if
- then c1 contains the first columns of .
On exit:
c1 is overwritten by the corresponding block of
or
or
or
.
- 13: – IntegerInput
-
On entry: the first dimension of the array
c1 as declared in the (sub)program from which
f08bqf (ztpmqrt) is called.
Constraints:
- if , ;
- if , .
- 14: – Complex (Kind=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
c2
must be at least
.
On entry:
, the second part of the composite matrix
.
- if
- then c2 contains the remaining rows of ;
- if
- then c2 contains the remaining columns of ;
On exit:
c2 is overwritten by the corresponding block of
or
or
or
.
- 15: – IntegerInput
-
On entry: the first dimension of the array
c2 as declared in the (sub)program from which
f08bqf (ztpmqrt) is called.
Constraint:
.
- 16: – Complex (Kind=nag_wp) arrayWorkspace
-
Note: the dimension of the array
work
must be at least
if
and at least
if
.
- 17: – IntegerOutput
On exit:
unless the routine detects an error (see
Section 6).
6
Error Indicators and Warnings
If , argument 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
such that
where
is the
machine precision.
8
Parallelism and Performance
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.
The total number of floating-point operations is approximately if and if .
The real analogue of this routine is
f08bcf (dtpmqrt).
10
Example
See
Section 10 in
f08bpf (ztpqrt).