File: MB02NY.html

package info (click to toggle)
slicot 5.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,528 kB
  • sloc: fortran: 148,076; makefile: 964; sh: 57
file content (200 lines) | stat: -rw-r--r-- 6,968 bytes parent folder | download | duplicates (5)
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
<HTML>
<HEAD><TITLE>MB02NY - SLICOT Library Routine Documentation</TITLE>
</HEAD>
<BODY>

<H2><A Name="MB02NY">MB02NY</A></H2>
<H3>
Separation of a zero singular value of a bidiagonal submatrix
</H3>
<A HREF ="#Specification"><B>[Specification]</B></A>
<A HREF ="#Arguments"><B>[Arguments]</B></A>
<A HREF ="#Method"><B>[Method]</B></A>
<A HREF ="#References"><B>[References]</B></A>
<A HREF ="#Comments"><B>[Comments]</B></A>
<A HREF ="#Example"><B>[Example]</B></A>

<P>
<B><FONT SIZE="+1">Purpose</FONT></B>
<PRE>
  To separate a zero singular value of a bidiagonal submatrix of
  order k, k &lt;= p, of the bidiagonal matrix

            |Q(1) E(1)  0    ...   0   |
            | 0   Q(2) E(2)        .   |
        J = | .                    .   |
            | .                  E(p-1)|
            | 0   ...  ...   ...  Q(p) |

  with p = MIN(M,N), by annihilating one or two superdiagonal
  elements E(i-1) (if i &gt; 1) and/or E(i) (if i &lt; k).

</PRE>
<A name="Specification"><B><FONT SIZE="+1">Specification</FONT></B></A>
<PRE>
      SUBROUTINE MB02NY( UPDATU, UPDATV, M, N, I, K, Q, E, U, LDU, V,
     $                   LDV, DWORK )
C     .. Scalar Arguments ..
      LOGICAL           UPDATU, UPDATV
      INTEGER           I, K, LDU, LDV, M, N
C     .. Array Arguments ..
      DOUBLE PRECISION  DWORK(*), E(*), Q(*), U(LDU,*), V(LDV,*)

</PRE>
<A name="Arguments"><B><FONT SIZE="+1">Arguments</FONT></B></A>
<P>

<B>Mode Parameters</B>
<PRE>
  UPDATU  LOGICAL
          Indicates whether the user wishes to accumulate in a
          matrix U the left-hand Givens rotations S, as follows:
          = .FALSE.:  Do not form U;
          = .TRUE. :  The given matrix U is updated (postmultiplied)
                      by the left-hand Givens rotations S.

  UPDATV  LOGICAL
          Indicates whether the user wishes to accumulate in a
          matrix V the right-hand Givens rotations T, as follows:
          = .FALSE.:  Do not form V;
          = .TRUE. :  The given matrix V is updated (postmultiplied)
                      by the right-hand Givens rotations T.

</PRE>
<B>Input/Output Parameters</B>
<PRE>
  M       (input) INTEGER
          The number of rows of the matrix U.  M &gt;= 0.

  N       (input) INTEGER
          The number of rows of the matrix V.  N &gt;= 0.

  I       (input) INTEGER
          The index of the negligible diagonal entry Q(I) of the
          bidiagonal matrix J, I &lt;= p.

  K       (input) INTEGER
          The index of the last diagonal entry of the considered
          bidiagonal submatrix of J, i.e., E(K-1) is considered
          negligible, K &lt;= p.

  Q       (input/output) DOUBLE PRECISION array, dimension (p)
          where p = MIN(M,N).
          On entry, Q must contain the diagonal entries of the
          bidiagonal matrix J.
          On exit, Q contains the diagonal entries of the
          transformed bidiagonal matrix S' J T.

  E       (input/output) DOUBLE PRECISION array, dimension (p-1)
          On entry, E must contain the superdiagonal entries of J.
          On exit, E contains the superdiagonal entries of the
          transformed bidiagonal matrix S' J T.

  U       (input/output) DOUBLE PRECISION array, dimension (LDU,p)
          On entry, if UPDATU = .TRUE., U must contain the M-by-p
          left transformation matrix.
          On exit, if UPDATU = .TRUE., the Givens rotations S on the
          left, annihilating E(i) if i &lt; k, have been postmultiplied
          into U.
          U is not referenced if UPDATU = .FALSE..

  LDU     INTEGER
          The leading dimension of the array U.
          LDU &gt;= max(1,M) if UPDATU = .TRUE.;
          LDU &gt;= 1        if UPDATU = .FALSE..

  V       (input/output) DOUBLE PRECISION array, dimension (LDV,p)
          On entry, if UPDATV = .TRUE., V must contain the N-by-p
          right transformation matrix.
          On exit, if UPDATV = .TRUE., the Givens rotations T on the
          right, annihilating E(i-1) if i &gt; 1,  have been
          postmultiplied into V.
          V is not referenced if UPDATV = .FALSE..

  LDV     INTEGER
          The leading dimension of the array V.
          LDV &gt;= max(1,N) if UPDATV = .TRUE.;
          LDV &gt;= 1        if UPDATV = .FALSE..

</PRE>
<B>Workspace</B>
<PRE>
  DWORK   DOUBLE PRECISION array, dimension (MAX(1,LDWORK))
          LDWORK &gt;= 2*MAX(K-I,I-1),  if UPDATV = UPDATU = .TRUE.;
          LDWORK &gt;= 2*(K-I), if UPDATU = .TRUE., UPDATV = .FALSE.;
          LDWORK &gt;= 2*(I-1), if UPDATV = .TRUE., UPDATU = .FALSE.;
          LDWORK &gt;= 1,       if UPDATU = UPDATV = .FALSE..

</PRE>
<A name="Method"><B><FONT SIZE="+1">Method</FONT></B></A>
<PRE>
  Let the considered bidiagonal submatrix be

            |Q(1) E(1)  0                    ...   0   |
            | 0   Q(2) E(2)                        .   |
            | .                                    .   |
            | .           Q(i-1) E(i-1)            .   |
       Jk = | .                   Q(i) E(i)        .   |.
            | .                       Q(i+1) .     .   |
            | .                              ..    .   |
            | .                                  E(k-1)|
            | 0    ...                       ...  Q(k) |

  A zero singular value of Jk manifests itself by a zero diagonal
  entry Q(i) or in practice, a negligible value of Q(i).
  When a negligible diagonal element Q(i) in Jk is present, the
  bidiagonal submatrix Jk is split by the routine into 2 or 3
  unreduced bidiagonal submatrices by annihilating E(i) (if i &lt; k)
  using Givens rotations S on the left and by annihilating E(i-1)
  (if i &gt; 1) using Givens rotations T on the right until Jk is
  reduced to the form:

            |Q(1) E(1)  0                ...   0   |
            | 0         .                ...   .   |
            | .                          ...   .   |
            | .       Q(i-1) 0                 .   |
  S' Jk T = | .              0   0             .   |.
            | .                 Q(i+1)   .     .   |
            | .                          ..    .   |
            | .                              E(k-1)|
            | 0    ...                   ...  Q(k) |

  For more details, see [1, pp.11.12-11.14].

</PRE>
<A name="References"><B><FONT SIZE="+1">References</FONT></B></A>
<PRE>
  [1] Dongarra, J.J., Bunch, J.R., Moler C.B. and Stewart, G.W.
      LINPACK User's Guide.
      SIAM, Philadelphia, 1979.

</PRE>
<A name="Numerical Aspects"><B><FONT SIZE="+1">Numerical Aspects</FONT></B></A>
<PRE>
  The algorithm is backward stable.

</PRE>

<A name="Comments"><B><FONT SIZE="+1">Further Comments</FONT></B></A>
<PRE>
  None
</PRE>

<A name="Example"><B><FONT SIZE="+1">Example</FONT></B></A>
<P>
<B>Program Text</B>
<PRE>
  None
</PRE>
<B>Program Data</B>
<PRE>
  None
</PRE>
<B>Program Results</B>
<PRE>
  None
</PRE>

<HR>
<A HREF=support.html><B>Return to Supporting Routines index</B></A></BODY>
</HTML>