nag_zgerqf (f08cvc) forms the
factorization of an arbitrary rectangular real
by
matrix. If
, the factorization is given by
where
is an
by
lower triangular matrix and
is an
by
unitary matrix. If
the factorization is given by
where
is an
by
upper trapezoidal matrix and
is again an
by
unitary matrix. In the case where
the factorization can be expressed as
where
consists of the first
rows of
and
the remaining
rows.
The matrix
is not formed explicitly, but is represented as a product of
elementary reflectors (see the
f08 Chapter Introduction for details). Functions are provided to work with
in this representation (see
Section 8).
Anderson E, Bai Z, Bischof C, Blackford S, Demmel J, Dongarra J J, Du Croz J J, Greenbaum A, Hammarling S, McKenney A and Sorensen D (1999)
LAPACK Users' Guide (3rd Edition) SIAM, Philadelphia
http://www.netlib.org/lapack/lug
The computed factorization is the exact factorization of a nearby matrix
, where
and
is the
machine precision.
To form the unitary matrix
nag_zgerqf (f08cvc) may be followed by a call to
nag_zungrq (f08cwc):
nag_zungrq(order, n, n, minmn, a, pda, tau, &fail)
where
,
but note that the first dimension of the array
a must be at least
n, which may be larger than was required by nag_zgerqf (f08cvc). When
, it is often only the first
rows of
that are required and they may be formed by the call:
nag_zungrq(order, m, n, m, a, pda, tau, c, pdc, &fail)
To apply
to an arbitrary real rectangular matrix
, nag_zgerqf (f08cvc) may be followed by a call to
nag_zunmrq (f08cxc). For example:
nag_zunmrq(Nag_LeftSide, Nag_ConjTrans, n, p, minmn, a, pda, tau, c, pdc, &fail)
forms
, where
is
by
.
The real analogue of this function is
nag_dgerqf (f08chc).
This example finds the minimum norm solution to the underdetermined equations
where
and