NAG Library Routine Document
F08LSF (ZGBBRD)
1 Purpose
F08LSF (ZGBBRD) reduces a complex by band matrix to real upper bidiagonal form.
2 Specification
SUBROUTINE F08LSF ( |
VECT, M, N, NCC, KL, KU, AB, LDAB, D, E, Q, LDQ, PT, LDPT, C, LDC, WORK, RWORK, INFO) |
INTEGER |
M, N, NCC, KL, KU, LDAB, LDQ, LDPT, LDC, INFO |
REAL (KIND=nag_wp) |
D(min(M,N)), E(min(M,N)-1), RWORK(max(M,N)) |
COMPLEX (KIND=nag_wp) |
AB(LDAB,*), Q(LDQ,*), PT(LDPT,*), C(LDC,*), WORK(max(M,N)) |
CHARACTER(1) |
VECT |
|
The routine may be called by its
LAPACK
name zgbbrd.
3 Description
F08LSF (ZGBBRD) reduces a complex by band matrix to real upper bidiagonal form by a unitary transformation: . The unitary matrices and , of order and respectively, are determined as a product of Givens rotation matrices, and may be formed explicitly by the routine if required. A matrix may also be updated to give .
The routine uses a vectorizable form of the reduction.
4 References
None.
5 Parameters
- 1: – CHARACTER(1)Input
-
On entry: indicates whether the matrices
and/or
are generated.
- Neither nor is generated.
- is generated.
- is generated.
- Both and are generated.
Constraint:
, , or .
- 2: – INTEGERInput
-
On entry: , the number of rows of the matrix .
Constraint:
.
- 3: – INTEGERInput
-
On entry: , the number of columns of the matrix .
Constraint:
.
- 4: – INTEGERInput
-
On entry: , the number of columns of the matrix .
Constraint:
.
- 5: – INTEGERInput
-
On entry: the number of subdiagonals, , within the band of .
Constraint:
.
- 6: – INTEGERInput
-
On entry: the number of superdiagonals, , within the band of .
Constraint:
.
- 7: – COMPLEX (KIND=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
AB
must be at least
.
On entry: the original
by
band matrix
.
The matrix is stored in rows
to
, more precisely, the element
must be stored in
On exit:
AB is overwritten by values generated during the reduction.
- 8: – INTEGERInput
-
On entry: the first dimension of the array
AB as declared in the (sub)program from which F08LSF (ZGBBRD) is called.
Constraint:
.
- 9: – REAL (KIND=nag_wp) arrayOutput
-
On exit: the diagonal elements of the bidiagonal matrix .
- 10: – REAL (KIND=nag_wp) arrayOutput
-
On exit: the superdiagonal elements of the bidiagonal matrix .
- 11: – COMPLEX (KIND=nag_wp) arrayOutput
-
Note: the second dimension of the array
Q
must be at least
if
or
, and at least
otherwise.
On exit: if
or
, contains the
by
unitary matrix
.
If
or
,
Q is not referenced.
- 12: – INTEGERInput
-
On entry: the first dimension of the array
Q as declared in the (sub)program from which F08LSF (ZGBBRD) is called.
Constraints:
- if or , ;
- otherwise .
- 13: – COMPLEX (KIND=nag_wp) arrayOutput
-
Note: the second dimension of the array
PT
must be at least
if
or
, and at least
otherwise.
On exit: the
by
unitary matrix
, if
or
. If
or
,
PT is not referenced.
- 14: – INTEGERInput
-
On entry: the first dimension of the array
PT as declared in the (sub)program from which F08LSF (ZGBBRD) is called.
Constraints:
- if or , ;
- otherwise .
- 15: – COMPLEX (KIND=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
C
must be at least
.
On entry: an by matrix .
On exit:
C is overwritten by
. If
,
C is not referenced.
- 16: – INTEGERInput
-
On entry: the first dimension of the array
C as declared in the (sub)program from which F08LSF (ZGBBRD) is called.
Constraints:
- if , ;
- if , .
- 17: – COMPLEX (KIND=nag_wp) arrayWorkspace
-
- 18: – REAL (KIND=nag_wp) arrayWorkspace
-
- 19: – 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 bidiagonal form
satisfies
, where
is a modestly increasing function of
, and
is the
machine precision.
The elements of themselves may be sensitive to small perturbations in or to rounding errors in the computation, but this does not affect the stability of the singular values and vectors.
The computed matrix
differs from an exactly unitary matrix by a matrix
such that
A similar statement holds for the computed matrix
.
8 Parallelism and Performance
F08LSF (ZGBBRD) is not threaded by NAG in any implementation.
F08LSF (ZGBBRD) 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 real floating-point operations is approximately the sum of:
- , if and , and
- , if is updated, and
- , if either or is generated (double this if both),
where
, assuming
. For this section we assume that
.
The real analogue of this routine is
F08LEF (DGBBRD).
10 Example
This example reduces the matrix
to upper bidiagonal form, where
10.1 Program Text
Program Text (f08lsfe.f90)
10.2 Program Data
Program Data (f08lsfe.d)
10.3 Program Results
Program Results (f08lsfe.r)