nag_zungqr (f08atc) generates all or part of the complex unitary matrix
from a
factorization computed by
nag_zgeqrf (f08asc),
nag_zgeqpf (f08bsc) or
nag_zgeqp3 (f08btc).
nag_zungqr (f08atc) is intended to be used after a call to
nag_zgeqrf (f08asc),
nag_zgeqpf (f08bsc) or
nag_zgeqp3 (f08btc), which perform a
factorization of a complex matrix
. The unitary matrix
is represented as a product of elementary reflectors.
Usually
is determined from the
factorization of an
by
matrix
with
. The whole of
may be computed by:
nag_zungqr(order,m,m,p,&a,pda,tau,&fail)
(note that the array
a must have at least
columns) or its leading
columns by:
nag_zungqr(order,m,p,p,&a,pda,tau,&fail)
The columns of
returned by the last call form an orthonormal basis for the space spanned by the columns of
; thus
nag_zgeqrf (f08asc) followed by nag_zungqr (f08atc) can be used to orthogonalise the columns of
.
The information returned by the
factorization functions also yields the
factorization of the leading
columns of
, where
. The unitary matrix arising from this factorization can be computed by:
nag_zungqr(order,m,m,k,&a,pda,tau,&fail)
or its leading
columns by:
nag_zungqr(order,m,k,k,&a,pda,tau,&fail)
- 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
where
is the
machine precision.
The real analogue of this function is
nag_dorgqr (f08afc).
This example forms the leading
columns of the unitary matrix
from the
factorization of the matrix
, where
The columns of
form an orthonormal basis for the space spanned by the columns of
.