nag_zgesdd (f08krc) computes the singular value decomposition (SVD) of a complex by matrix , optionally computing the left and/or right singular vectors, by using a divide-and-conquer method.
The SVD is written as
where
is an
by
matrix which is zero except for its
diagonal elements,
is an
by
unitary matrix, and
is an
by
unitary matrix. The diagonal elements of
are the singular values of
; they are real and non-negative, and are returned in descending order. The first
columns of
and
are the left and right singular vectors of
.
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_CONVERGENCE
nag_zgesdd (f08krc) did not converge, the updating process failed.
- NE_ENUM_INT_3
On entry, , , and .
Constraint: if or and , ;
if , ;
otherwise .
On entry, , , and .
Constraint: if or and ,
;
if ,
;
otherwise .
On entry, , , and .
Constraint: if or and , ;
if , ;
otherwise .
On entry, , , and .
Constraint: if or and ,
;
if ,
;
otherwise .
- NE_INT
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: .
- 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 singular value decomposition is nearly the exact singular value decomposition for a nearby matrix
, where
and
is the
machine precision. In addition, the computed singular vectors are nearly orthogonal to working precision. See Section 4.9 of
Anderson et al. (1999) for further details.
The singular values are returned in descending order.
The real analogue of this function is
nag_dgesdd (f08kdc).
This example finds the singular values and left and right singular vectors of the
by
matrix
together with approximate error bounds for the computed singular values and vectors.
The example program for
nag_zgesvd (f08kpc) illustrates finding a singular value decomposition for the case
.