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
Fortran Interface
Subroutine f08bcf ( |
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 | Real (Kind=nag_wp), Intent (In) | :: |
v(ldv,*),
t(ldt,*) | Real (Kind=nag_wp), Intent (Inout) | :: |
c1(ldc1,*),
c2(ldc2,*),
work(*) | Character (1), Intent (In) | :: |
side,
trans |
|
C Header Interface
#include nagmk26.h
void |
f08bcf_ (
const char *side,
const char *trans,
const Integer *m,
const Integer *n,
const Integer *k,
const Integer *l,
const Integer *nb,
const double v[],
const Integer *ldv,
const double t[],
const Integer *ldt,
double c1[],
const Integer *ldc1,
double c2[],
const Integer *ldc2,
double work[],
Integer *info,
const Charlen length_side,
const Charlen length_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
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
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
v
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) 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).