nag_dorgrq (f08cjc) generates all or part of the real
by
orthogonal matrix
from an
factorization computed by
nag_dgerqf (f08chc).
nag_dorgrq (f08cjc) is intended to be used following a call to
nag_dgerqf (f08chc), which performs an
factorization of a real matrix
and represents the orthogonal 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_dorgrq(order,n,n,p,a,pda,tau,info)
(note that the matrix
must have at least
rows), or its trailing
rows as:
nag_dorgrq(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_dgerqf (f08chc) followed by nag_dorgrq (f08cjc) can be used to orthogonalise the rows of
.
The information returned by
nag_dgerqf (f08chc) also yields the
factorization of the trailing
rows of
, where
. The orthogonal matrix arising from this factorization can be computed by:
nag_dorgrq(order,n,n,k,a,pda,tau,info)
or its leading
columns by:
nag_dorgrq(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 orthogonal matrix by a matrix
such that
and
is the
machine precision.
The complex analogue of this function is
nag_zungrq (f08cwc).
This example generates the first four rows of the matrix
of the
factorization of
as returned by
nag_dgerqf (f08chc), where