nag_dorgbr (f08kfc) generates one of the real orthogonal matrices
or
which were determined by
nag_dgebrd (f08kec) when reducing a real matrix to bidiagonal form.
nag_dorgbr (f08kfc) is intended to be used after a call to
nag_dgebrd (f08kec), which reduces a real rectangular matrix
to bidiagonal form
by an orthogonal transformation:
.
nag_dgebrd (f08kec) represents the matrices
and
as products of elementary reflectors.
The various possibilities are specified by the arguments
vect,
m,
n and
k. The appropriate values to cover the most likely cases are as follows (assuming that
was an
by
matrix):
- To form the full by matrix :
nag_dorgbr(order,Nag_FormQ,m,m,n,...)
(note that the array a must have at least columns).
- If , to form the leading columns of :
nag_dorgbr(order,Nag_FormQ,m,n,n,...)
- To form the full by matrix :
nag_dorgbr(order,Nag_FormP,n,n,m,...)
(note that the array a must have at least rows).
- If , to form the leading rows of :
nag_dorgbr(order,Nag_FormP,m,n,m,...)
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_ENUM_INT_3
On entry, , , and .
Constraint: and
if and , ;
if and , ;
if and , ;
if and , .
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
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
where
is the
machine precision. A similar statement holds for the computed matrix
.
The total number of floating point operations for the cases listed in
Section 3 are approximately as follows:
- To form the whole of :
- if ,
- if ;
- To form the leading columns of when :
- To form the whole of :
- if ,
- if ;
- To form the leading rows of when :
The complex analogue of this function is
nag_zungbr (f08ktc).
For this function two examples are presented, both of which involve computing the singular value decomposition of a matrix
, where
in the first example and
in the second.
must first be reduced to tridiagonal form by
nag_dgebrd (f08kec). The program then calls nag_dorgbr (f08kfc) twice to form
and
, and passes these matrices to
nag_dbdsqr (f08mec), which computes the singular value decomposition of
.