NAG Library Routine Document
F08BCF (DTPMQRT)
1 Purpose
F08BCF (DTPMQRT) multiplies an arbitrary real matrix
by the real orthogonal matrix
from a
factorization computed by
F08BBF (DTPQRT).
2 Specification
SUBROUTINE F08BCF ( |
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 |
REAL (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 dtpmqrt.
3 Description
F08BCF (DTPMQRT) is intended to be used after a call to
F08BBF (DTPQRT) which performs a
factorization of a triangular-pentagonal matrix containing an upper triangular matrix
over a pentagonal matrix
. The orthogonal matrix
is represented as a product of elementary reflectors.
This routine may be used to form the matrix products
where the real 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
F08BBF (DTPQRT)); the number of columns of
is
(i.e.,
N as passed to
F08BBF (DTPQRT)).
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 F08BBF (DTPQRT).
4 References
Golub G H and Van Loan C F (2012) Matrix Computations (4th Edition) Johns Hopkins University Press, Baltimore
5 Parameters
- 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
F08BBF (DTPQRT). This must be the same value used in the previous call to
F08BBF (DTPQRT) (see
L in
F08BBF (DTPQRT)).
Constraint:
.
- 7: – INTEGERInput
-
On entry:
, the blocking factor used in a previous call to
F08BBF (DTPQRT) to compute the
factorization of a triangular-pentagonal matrix containing composite matrices
and
.
- 8: – REAL (KIND=nag_wp) arrayInput
-
Note: the second dimension of the array
LDV
must be at least
.
On entry: the
by
matrix
; this should remain unchanged from the array
B returned by a previous call to
F08BBF (DTPQRT).
- 9: – INTEGERInput
-
On entry: the first dimension of the array
V as declared in the (sub)program from which F08BCF (DTPMQRT) is called.
Constraints:
- if , ;
- if , .
- 10: – REAL (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
F08BBF (DTPQRT) (see
T in
F08BBF (DTPQRT)).
- 11: – INTEGERInput
-
On entry: the first dimension of the array
T as declared in the (sub)program from which F08BCF (DTPMQRT) is called.
Constraint:
.
- 12: – REAL (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 F08BCF (DTPMQRT) is called.
Constraints:
- if , ;
- if , .
- 14: – REAL (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 F08BCF (DTPMQRT) is called.
Constraint:
.
- 16: – REAL (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
F08BCF (DTPMQRT) is not threaded by NAG in any implementation.
F08BCF (DTPMQRT) 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 complex analogue of this routine is
F08BQF (ZTPMQRT).
10 Example
See
Section 10 in F08BBF (DTPQRT).