The
upper trapezoidal matrix
given by
where
is an
upper triangular matrix, is factorized as
where
is an
unitary matrix and
is an
upper triangular matrix.
is given as a sequence of Householder transformation matrices
the
th transformation matrix,
, being used to introduce zeros into the
th row of
.
has the form
where
is a scalar for which
,
is a real scalar and
is an
element vector.
,
and
are chosen to annihilate the elements of the
th row of
and to make the diagonal elements of
real.
The scalar
and the vector
are returned in the
th element of the array
theta and in the
th row of
a, such that
, given by
is in
and the elements of
are in
. The elements of
are returned in the upper triangular part of
a.
For further information on this factorization and its use see Section 6.5 of
Golub and Van Loan (1996).
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
The computed factors
and
satisfy the relation
where
is the
machine precision (see
x02ajf),
is a modest function of
and
, and
denotes the spectral (two) norm.
Background information to multithreading can be found in the
Multithreading documentation.
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.
This example reduces the
matrix
to upper triangular form.