File: node96.html

package info (click to toggle)
lapack 3.0.20000531a-28
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 61,920 kB
  • ctags: 46,200
  • sloc: fortran: 584,835; perl: 8,226; makefile: 2,331; awk: 71; sh: 45
file content (483 lines) | stat: -rw-r--r-- 12,812 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.2 beta6 (August 14th, 1998)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Error Bounds for the Singular Value Decomposition</TITLE>
<META NAME="description" CONTENT="Error Bounds for the Singular Value Decomposition">
<META NAME="keywords" CONTENT="lug_l2h">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="lug_l2h.css">
<LINK REL="next" HREF="node98.html">
<LINK REL="previous" HREF="node91.html">
<LINK REL="up" HREF="node72.html">
<LINK REL="next" HREF="node97.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html5537"
 HREF="node97.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="next_motif.png"></A> 
<A NAME="tex2html5531"
 HREF="node72.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="up_motif.png"></A> 
<A NAME="tex2html5525"
 HREF="node95.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="previous_motif.png"></A> 
<A NAME="tex2html5533"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="contents_motif.png"></A> 
<A NAME="tex2html5535"
 HREF="node152.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="index_motif.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5538"
 HREF="node97.html">Further Details: Error Bounds</A>
<B> Up:</B> <A NAME="tex2html5532"
 HREF="node72.html">Accuracy and Stability</A>
<B> Previous:</B> <A NAME="tex2html5526"
 HREF="node95.html">Computing s and</A>
 &nbsp <B>  <A NAME="tex2html5534"
 HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html5536"
 HREF="node152.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION03490000000000000000"></A><A NAME="secsvd"></A>
<BR>
Error Bounds for the Singular Value Decomposition
</H1>

<P>
The singular<A NAME="11684"></A> value decomposition (SVD) of a
real <B><I>m</I></B>-by-<B><I>n</I></B> matrix <B><I>A</I></B> is defined as follows. Let 
<!-- MATH
 $r = \min (m,n)$
 -->
<IMG
 WIDTH="112" HEIGHT="34" ALIGN="MIDDLE" BORDER="0"
 SRC="img159.png"
 ALT="$r = \min (m,n)$">.
The SVD of <B><I>A</I></B> is 
<!-- MATH
 $A=U \Sigma V^T$
 -->
<IMG
 WIDTH="92" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img157.png"
 ALT="$A=U \Sigma V^T$">
(
<!-- MATH
 $A=U \Sigma V^H$
 -->
<IMG
 WIDTH="94" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img161.png"
 ALT="$A=U \Sigma V^H$">
in the complex case),
where
<B><I>U</I></B> and <B><I>V</I></B> are orthogonal (unitary) matrices and

<!-- MATH
 $\Sigma = {\mbox {\rm diag}}( \sigma_1 , \ldots , \sigma_{r} )$
 -->
<IMG
 WIDTH="159" HEIGHT="34" ALIGN="MIDDLE" BORDER="0"
 SRC="img158.png"
 ALT="$\Sigma = {\mbox {\rm diag}}( \sigma_1 , \ldots , \sigma_r )$">
is diagonal,
with 
<!-- MATH
 $\sigma_1 \geq \sigma_2 \geq \cdots \geq \sigma_{r} \geq 0$
 -->
<IMG
 WIDTH="179" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
 SRC="img629.png"
 ALT="$\sigma_1 \geq \sigma_2 \geq \cdots \geq \sigma_{r} \geq 0$">.
The <IMG
 WIDTH="20" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
 SRC="img36.png"
 ALT="$\sigma _ i $">
are the <B>singular values</B> of <B><I>A</I></B> and the leading
<B><I>r</I></B> columns <B><I>u</I><SUB><I>i</I></SUB></B> of <B><I>U</I></B> and <B><I>v</I><SUB><I>i</I></SUB></B> of <B><I>V</I></B> the
<B>left and right singular vectors,</B> respectively.
The SVD of a general matrix is computed by xGESVD or xGESDD
<A NAME="11689"></A><A NAME="11690"></A><A NAME="11691"></A><A NAME="11692"></A>
<A NAME="11693"></A><A NAME="11694"></A><A NAME="11695"></A><A NAME="11696"></A>
(see subsection <A HREF="node29.html#subsecdriveeig">2.3.4</A>).

<P>
The approximate error
bounds<A NAME="footfnm 0"><SUP>4.10</SUP></A>for the computed singular values

<!-- MATH
 $\hat{\sigma}_1 \geq \cdots \geq \hat{\sigma}_{r}$
 -->
<IMG
 WIDTH="106" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img630.png"
 ALT="$\hat{\sigma}_1 \geq \cdots \geq \hat{\sigma}_{r}$">
are
<BR><P></P>
<DIV ALIGN="CENTER">

<!-- MATH
 \begin{displaymath}
| \hat{\sigma}_i - \sigma_i | \leq {\tt SERRBD} \; \; .
\end{displaymath}
 -->


<IMG
 WIDTH="153" HEIGHT="31" BORDER="0"
 SRC="img631.png"
 ALT="\begin{displaymath}
\vert \hat{\sigma}_i - \sigma_i \vert \leq {\tt SERRBD} \; \; .
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
The approximate error bounds for the computed singular vectors
<IMG
 WIDTH="18" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img564.png"
 ALT="$\hat{v}_i$">
and <IMG
 WIDTH="20" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img632.png"
 ALT="$\hat{u}_i$">,
which bound the acute angles between the computed singular vectors and true
singular vectors <B><I>v</I><SUB><I>i</I></SUB></B> and <B><I>u</I><SUB><I>i</I></SUB></B>, are
<A NAME="11706"></A>
<A NAME="11707"></A>
<BR><P></P>
<DIV ALIGN="CENTER">
<IMG
 WIDTH="194" HEIGHT="58" BORDER="0"
 SRC="img633.png"
 ALT="\begin{eqnarray*}
\theta ( \hat{v}_i , v_i ) &amp; \leq &amp; {\tt VERRBD}(i) \\
\theta ( \hat{u}_i , u_i ) &amp; \leq &amp; {\tt UERRBD}(i) \; \; .
\end{eqnarray*}">
</DIV><P></P>
<BR CLEAR="ALL">
These bounds can be computing by the following code fragment.
<A NAME="11714"></A>
<A NAME="11715"></A>

<P>
 
<P>
<PRE>
      EPSMCH = SLAMCH( 'E' )
*     Compute singular value decomposition of A
*     The singular values are returned in S
*     The left singular vectors are returned in U
*     The transposed right singular vectors are returned in VT
      CALL  SGESVD( 'S', 'S', M, N, A, LDA, S, U, LDU, VT, LDVT,
     $              WORK, LWORK, INFO )
      IF( INFO.GT.0 ) THEN
         PRINT *,'SGESVD did not converge'
      ELSE IF ( MIN(M,N) .GT. 0 ) THEN
         SERRBD  = EPSMCH * S(1)
*        Compute reciprocal condition numbers for singular vectors
         CALL SDISNA( 'Left', M, N, S, RCONDU, INFO )
         CALL SDISNA( 'Right', M, N, S, RCONDV, INFO )
         DO 10 I = 1, MIN(M,N)
            VERRBD( I ) = EPSMCH*( S(1)/RCONDV( I ) )
            UERRBD( I ) = EPSMCH*( S(1)/RCONDU( I ) )
10       CONTINUE
      END IF
</PRE>

<P>
For example<A NAME="footfnm 0"><SUP>4.11</SUP></A>,
if

<!-- MATH
 ${\tt SLAMCH('E')} = 2^{-24} = 5.961 \cdot 10^{-8}$
 -->
<IMG
 WIDTH="259" HEIGHT="37" ALIGN="MIDDLE" BORDER="0"
 SRC="img397.png"
 ALT="${\tt SLAMCH('E')} = 2^{-24} = 5.961 \cdot 10^{-8}$">
and
<BR><P></P>
<DIV ALIGN="CENTER">

<!-- MATH
 \begin{displaymath}
A = \left( \begin{array}{ccc} 4 & 3 & 5 \\2 & 5 & 8 \\3 & 6 & 10 \\4 & 5 & 11 \end{array} \right) \; ,
\end{displaymath}
 -->


<IMG
 WIDTH="158" HEIGHT="93" BORDER="0"
 SRC="img634.png"
 ALT="\begin{displaymath}
A = \left( \begin{array}{ccc} 4 &amp; 3 &amp; 5 \\ 2 &amp; 5 &amp; 8 \\ 3 &amp; 6 &amp; 10 \\ 4 &amp; 5 &amp; 11 \end{array} \right) \; ,
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
then the singular values, approximate error bounds, and true errors are given below.

<P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="CENTER"><B><I>i</I></B></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $\hat{\sigma}_i$
 -->
<IMG
 WIDTH="20" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img635.png"
 ALT="$\hat{\sigma}_i$"></TD>
<TD ALIGN="CENTER"><TT> SERRBD</TT></TD>
<TD ALIGN="CENTER">true 
<!-- MATH
 $| \hat{\sigma}_i - \sigma_i |$
 -->
<IMG
 WIDTH="66" HEIGHT="34" ALIGN="MIDDLE" BORDER="0"
 SRC="img636.png"
 ALT="$\vert \hat{\sigma}_i - \sigma_i \vert$"></TD>
<TD ALIGN="CENTER"><TT> VERRBD</TT>(<B><I>i</I></B>)</TD>
<TD ALIGN="CENTER">true 
<!-- MATH
 $\theta ( \hat{v}_i , v_i )$
 -->
<IMG
 WIDTH="62" HEIGHT="34" ALIGN="MIDDLE" BORDER="0"
 SRC="img568.png"
 ALT="$\theta ( \hat{v}_i , v_i )$"></TD>
<TD ALIGN="CENTER"><TT> UERRBD</TT>(<B><I>i</I></B>)</TD>
<TD ALIGN="CENTER">true 
<!-- MATH
 $\theta ( \hat{u}_i , u_i )$
 -->
<IMG
 WIDTH="65" HEIGHT="34" ALIGN="MIDDLE" BORDER="0"
 SRC="img637.png"
 ALT="$\theta ( \hat{u}_i , u_i )$"></TD>
</TR>
<TR><TD ALIGN="CENTER">1</TD>
<TD ALIGN="CENTER">21.05</TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.3 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img638.png"
 ALT="$1.3 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.7 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img639.png"
 ALT="$1.7 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $6.7 \cdot 10^{-8}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img640.png"
 ALT="$6.7 \cdot 10^{-8}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $8.1 \cdot 10^{-8}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img641.png"
 ALT="$8.1 \cdot 10^{-8}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $6.7 \cdot 10^{-8}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img640.png"
 ALT="$6.7 \cdot 10^{-8}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.5 \cdot 10^{-7}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img642.png"
 ALT="$1.5 \cdot 10^{-7}$"></TD>
</TR>
<TR><TD ALIGN="CENTER">2</TD>
<TD ALIGN="CENTER">2.370</TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.3 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img638.png"
 ALT="$1.3 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $5.8 \cdot 10^{-7}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img643.png"
 ALT="$5.8 \cdot 10^{-7}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.0 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img644.png"
 ALT="$1.0 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $2.9 \cdot 10^{-7}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img645.png"
 ALT="$2.9 \cdot 10^{-7}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.0 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img644.png"
 ALT="$1.0 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $2.4 \cdot 10^{-7}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img646.png"
 ALT="$2.4 \cdot 10^{-7}$"></TD>
</TR>
<TR><TD ALIGN="CENTER">3</TD>
<TD ALIGN="CENTER">1.143</TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.3 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img638.png"
 ALT="$1.3 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $3.2 \cdot 10^{-7}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img536.png"
 ALT="$3.2 \cdot 10^{-7}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.0 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img644.png"
 ALT="$1.0 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $3.0 \cdot 10^{-7}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img647.png"
 ALT="$3.0 \cdot 10^{-7}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $1.1 \cdot 10^{-6}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img648.png"
 ALT="$1.1 \cdot 10^{-6}$"></TD>
<TD ALIGN="CENTER">
<!-- MATH
 $2.4 \cdot 10^{-7}$
 -->
<IMG
 WIDTH="75" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
 SRC="img646.png"
 ALT="$2.4 \cdot 10^{-7}$"></TD>
</TR>
</TABLE>
</DIV>

<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"></A>

<UL>
<LI><A NAME="tex2html5539"
 HREF="node97.html">Further Details:  Error Bounds for the Singular Value Decomposition</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html5537"
 HREF="node97.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="next_motif.png"></A> 
<A NAME="tex2html5531"
 HREF="node72.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="up_motif.png"></A> 
<A NAME="tex2html5525"
 HREF="node95.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="previous_motif.png"></A> 
<A NAME="tex2html5533"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="contents_motif.png"></A> 
<A NAME="tex2html5535"
 HREF="node152.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="index_motif.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5538"
 HREF="node97.html">Further Details: Error Bounds</A>
<B> Up:</B> <A NAME="tex2html5532"
 HREF="node72.html">Accuracy and Stability</A>
<B> Previous:</B> <A NAME="tex2html5526"
 HREF="node95.html">Computing s and</A>
 &nbsp <B>  <A NAME="tex2html5534"
 HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html5536"
 HREF="node152.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
<I>Susan Blackford</I>
<BR><I>1999-10-01</I>
</ADDRESS>
</BODY>
</HTML>