nag_zungrq (f08cwc) generates all or part of the complex
by
unitary matrix
from an
factorization computed by
nag_zgerqf (f08cvc).
nag_zungrq (f08cwc) is intended to be used following a call to
nag_zgerqf (f08cvc), which performs an
factorization of a complex matrix
and represents the unitary matrix
as a product of
elementary reflectors of order
.
Usually
is determined from the
factorization of a
by
matrix
with
. The whole of
may be computed by:
nag_zungrq(order,n,n,p,a,pda,tau,info)
(note that the matrix
must have at least
rows), or its trailing
rows as:
nag_zungrq(order,p,n,p,a,pda,tau,info)
The rows of
returned by the last call form an orthonormal basis for the space spanned by the rows of
; thus
nag_zgerqf (f08cvc) followed by nag_zungrq (f08cwc) can be used to orthogonalise the rows of
.
The information returned by
nag_zgerqf (f08cvc) also yields the
factorization of the trailing
rows of
, where
. The unitary matrix arising from this factorization can be computed by:
nag_zungrq(order,n,n,k,a,pda,tau,info)
or its leading
columns by:
nag_zungrq(order,k,n,k,a,pda,tau,info)
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
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
- NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
The computed matrix
differs from an exactly unitary matrix by a matrix
such that
and
is the
machine precision.
The real analogue of this function is
nag_dorgrq (f08cjc).
This example generates the first four rows of the matrix
of the
factorization of
as returned by
nag_zgerqf (f08cvc), where