nag_dggsvp (f08vec) uses orthogonal transformations to simultaneously reduce the by matrix and the by matrix to upper triangular form. This factorization is usually used as a preprocessing step for computing the generalized singular value decomposition (GSVD).
| #include <nag.h> |
| #include <nagf08.h> |
| void |
nag_dggsvp (Nag_OrderType order,
Nag_ComputeUType jobu,
Nag_ComputeVType jobv,
Nag_ComputeQType jobq,
Integer m,
Integer p,
Integer n,
double a[],
Integer pda,
double b[],
Integer pdb,
double tola,
double tolb,
Integer *k,
Integer *l,
double u[],
Integer pdu,
double v[],
Integer pdv,
double q[],
Integer pdq,
NagError *fail) |
|
nag_dggsvp (f08vec) computes orthogonal matrices
,
and
such that
where the
by
matrix
and
by
matrix
are nonsingular upper triangular;
is
by
upper triangular if
and is
by
upper trapezoidal otherwise.
is the effective numerical rank of the
by
matrix
.
This decomposition is usually used as the preprocessing step for computing the Generalized Singular Value Decomposition (GSVD), see function
nag_dggsvd (f08vac).
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_ENUM_INT_2
On entry, , , .
Constraint: if ,
;
otherwise .
On entry, , and .
Constraint: if , ;
otherwise .
On entry, , and .
Constraint: if , ;
otherwise .
On entry, , and .
Constraint: if , ;
otherwise .
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
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 factorization is nearly the exact factorization for nearby matrices
and
, where
and
is the
machine precision.
The complex analogue of this function is
nag_zggsvp (f08vsc).
This example finds the generalized factorization
of the matrix pair
, where