Debian Codegraph @

Modules/ThirdParty/VNL/src/vxl/v3p/netlib/linpack/dqrsl.c

raw symbols SCIP
1 /* linpack/dqrsl.f -- translated by f2c (version 20050501).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
7 cc *.o -lf2c -lm
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10 http://www.netlib.org/f2c/libf2c.zip
11 */
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 #include "v3p_netlib.h"cxx . . $ `<file>/Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib.h`/
17
18 /* Table of constant values */
19
20 static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__1cxx . . $ c__1. = 1;
21
22 /*< subroutine dqrsl(x,ldx,n,k,qraux,y,qy,qty,b,rsd,xb,job,info) >*/
23 /* Subroutine */ int dqrsl_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:124:9`!(doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *x, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldx, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *
24 k, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *qraux, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *y, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *qy, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *qty,
25 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *b, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *rsd, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *xb, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *job, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`!
26 *info)
27 {
28 /* System generated locals */
29 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! x_dim1, x_offset, i__1, i__2;
30
31 /* Local variables */
32 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__, j;
33 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! t;
34 logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! cb;
35 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! jj;
36 logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! cr;
37 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! ju, kp1;
38 logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! cxb, cqy;
39 extern doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! ddot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:43:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *,
40 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *);
41 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! temp;
42 logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! cqty;
43 extern /* Subroutine */ int dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *,
44 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *), daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *,
45 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *);
46
47 /*< integer ldx,n,k,job,info >*/
48 /*< >*/
49
50 /* dqrsl applies the output of dqrdc to compute coordinate */
51 /* transformations, projections, and least squares solutions. */
52 /* for k .le. min(n,p), let xk be the matrix */
53
54 /* xk = (x(jpvt(1)),x(jpvt(2)), ... ,x(jpvt(k))) */
55
56 /* formed from columns jpvt(1), ... ,jpvt(k) of the original */
57 /* n x p matrix x that was input to dqrdc (if no pivoting was */
58 /* done, xk consists of the first k columns of x in their */
59 /* original order). dqrdc produces a factored orthogonal matrix q */
60 /* and an upper triangular matrix r such that */
61
62 /* xk = q * (r) */
63 /* (0) */
64
65 /* this information is contained in coded form in the arrays */
66 /* x and qraux. */
67
68 /* on entry */
69
70 /* x double precision(ldx,p). */
71 /* x contains the output of dqrdc. */
72
73 /* ldx integer. */
74 /* ldx is the leading dimension of the array x. */
75
76 /* n integer. */
77 /* n is the number of rows of the matrix xk. it must */
78 /* have the same value as n in dqrdc. */
79
80 /* k integer. */
81 /* k is the number of columns of the matrix xk. k */
82 /* must nnot be greater than min(n,p), where p is the */
83 /* same as in the calling sequence to dqrdc. */
84
85 /* qraux double precision(p). */
86 /* qraux contains the auxiliary output from dqrdc. */
87
88 /* y double precision(n) */
89 /* y contains an n-vector that is to be manipulated */
90 /* by dqrsl. */
91
92 /* job integer. */
93 /* job specifies what is to be computed. job has */
94 /* the decimal expansion abcde, with the following */
95 /* meaning. */
96
97 /* if a.ne.0, compute qy. */
98 /* if b,c,d, or e .ne. 0, compute qty. */
99 /* if c.ne.0, compute b. */
100 /* if d.ne.0, compute rsd. */
101 /* if e.ne.0, compute xb. */
102
103 /* note that a request to compute b, rsd, or xb */
104 /* automatically triggers the computation of qty, for */
105 /* which an array must be provided in the calling */
106 /* sequence. */
107
108 /* on return */
109
110 /* qy double precision(n). */
111 /* qy conntains q*y, if its computation has been */
112 /* requested. */
113
114 /* qty double precision(n). */
115 /* qty contains trans(q)*y, if its computation has */
116 /* been requested. here trans(q) is the */
117 /* transpose of the matrix q. */
118
119 /* b double precision(k) */
120 /* b contains the solution of the least squares problem */
121
122 /* minimize norm2(y - xk*b), */
123
124 /* if its computation has been requested. (note that */
125 /* if pivoting was requested in dqrdc, the j-th */
126 /* component of b will be associated with column jpvt(j) */
127 /* of the original matrix x that was input into dqrdc.) */
128
129 /* rsd double precision(n). */
130 /* rsd contains the least squares residual y - xk*b, */
131 /* if its computation has been requested. rsd is */
132 /* also the orthogonal projection of y onto the */
133 /* orthogonal complement of the column space of xk. */
134
135 /* xb double precision(n). */
136 /* xb contains the least squares approximation xk*b, */
137 /* if its computation has been requested. xb is also */
138 /* the orthogonal projection of y onto the column space */
139 /* of x. */
140
141 /* info integer. */
142 /* info is zero unless the computation of b has */
143 /* been requested and r is exactly singular. in */
144 /* this case, info is the index of the first zero */
145 /* diagonal element of r and b is left unaltered. */
146
147 /* the parameters qy, qty, b, rsd, and xb are not referenced */
148 /* if their computation is not requested and in this case */
149 /* can be replaced by dummy variables in the calling program. */
150 /* to save storage, the user may in some cases use the same */
151 /* array for different parameters in the calling sequence. a */
152 /* frequently occurring example is when one wishes to compute */
153 /* any of b, rsd, or xb and does not need y or qty. in this */
154 /* case one may identify y, qty, and one of b, rsd, or xb, while */
155 /* providing separate arrays for anything else that is to be */
156 /* computed. thus the calling sequence */
157
158 /* call dqrsl(x,ldx,n,k,qraux,y,dum,y,b,y,dum,110,info) */
159
160 /* will result in the computation of b and rsd, with rsd */
161 /* overwriting y. more generally, each item in the following */
162 /* list contains groups of permissible identifications for */
163 /* a single callinng sequence. */
164
165 /* 1. (y,qty,b) (rsd) (xb) (qy) */
166
167 /* 2. (y,qty,rsd) (b) (xb) (qy) */
168
169 /* 3. (y,qty,xb) (b) (rsd) (qy) */
170
171 /* 4. (y,qy) (qty,b) (rsd) (xb) */
172
173 /* 5. (y,qy) (qty,rsd) (b) (xb) */
174
175 /* 6. (y,qy) (qty,xb) (b) (rsd) */
176
177 /* in any group the value returned in the array allocated to */
178 /* the group corresponds to the last member of the group. */
179
180 /* linpack. this version dated 08/14/78 . */
181 /* g.w. stewart, university of maryland, argonne national lab. */
182
183 /* dqrsl uses the following functions and subprograms. */
184
185 /* blas daxpy,dcopy,ddot */
186 /* fortran dabs,min0,mod */
187
188 /* internal variables */
189
190 /*< integer i,j,jj,ju,kp1 >*/
191 /*< double precision ddot,t,temp >*/
192 /*< logical cb,cqy,cqty,cr,cxb >*/
193
194
195 /* set info flag. */
196
197 /*< info = 0 >*/
198 /* Parameter adjustments */
199 x_dim1 = *ldx;
200 x_offset = 1 + x_dim1;
201 x -= x_offset;
202 --qraux;
203 --y;
204 --qy;
205 --qty;
206 --b;
207 --rsd;
208 --xb;
209
210 /* Function Body */
211 *info = 0;
212
213 /* determine what is to be computed. */
214
215 /*< cqy = job/10000 .ne. 0 >*/
216 cqy = *job / 10000 != 0;
217 /*< cqty = mod(job,10000) .ne. 0 >*/
218 cqty = *job % 10000 != 0;
219 /*< cb = mod(job,1000)/100 .ne. 0 >*/
220 cb = *job % 1000 / 100 != 0;
221 /*< cr = mod(job,100)/10 .ne. 0 >*/
222 cr = *job % 100 / 10 != 0;
223 /*< cxb = mod(job,10) .ne. 0 >*/
224 cxb = *job % 10 != 0;
225 /*< ju = min0(k,n-1) >*/
226 /* Computing MIN */
227 i__1 = *k, i__2 = *n - 1;
228 ju = mincxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:159:9`!(i__1,i__2);
229
230 /* special action when n=1. */
231
232 /*< if (ju .ne. 0) go to 40 >*/
233 if (ju != 0) {
234 goto L40;
235 }
236 /*< if (cqy) qy(1) = y(1) >*/
237 if (cqy) {
238 qy[1] = y[1];
239 }
240 /*< if (cqty) qty(1) = y(1) >*/
241 if (cqty) {
242 qty[1] = y[1];
243 }
244 /*< if (cxb) xb(1) = y(1) >*/
245 if (cxb) {
246 xb[1] = y[1];
247 }
248 /*< if (.not.cb) go to 30 >*/
249 if (! cb) {
250 goto L30;
251 }
252 /*< if (x(1,1) .ne. 0.0d0) go to 10 >*/
253 if (x[x_dim1 + 1] != 0.) {
254 goto L10;
255 }
256 /*< info = 1 >*/
257 *info = 1;
258 /*< go to 20 >*/
259 goto L20;
260 /*< 10 continue >*/
261 L10:
262 /*< b(1) = y(1)/x(1,1) >*/
263 b[1] = y[1] / x[x_dim1 + 1];
264 /*< 20 continue >*/
265 L20:
266 /*< 30 continue >*/
267 L30:
268 /*< if (cr) rsd(1) = 0.0d0 >*/
269 if (cr) {
270 rsd[1] = 0.;
271 }
272 /*< go to 250 >*/
273 goto L250;
274 /*< 40 continue >*/
275 L40:
276
277 /* set up to compute qy or qty. */
278
279 /*< if (cqy) call dcopy(n,y,1,qy,1) >*/
280 if (cqy) {
281 dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(n, &y[1], &c__1cxx . . $ c__1., &qy[1], &c__1cxx . . $ c__1.);
282 }
283 /*< if (cqty) call dcopy(n,y,1,qty,1) >*/
284 if (cqty) {
285 dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(n, &y[1], &c__1cxx . . $ c__1., &qty[1], &c__1cxx . . $ c__1.);
286 }
287 /*< if (.not.cqy) go to 70 >*/
288 if (! cqy) {
289 goto L70;
290 }
291
292 /* compute qy. */
293
294 /*< do 60 jj = 1, ju >*/
295 i__1 = ju;
296 for (jj = 1; jj <= i__1; ++jj) {
297 /*< j = ju - jj + 1 >*/
298 j = ju - jj + 1;
299 /*< if (qraux(j) .eq. 0.0d0) go to 50 >*/
300 if (qraux[j] == 0.) {
301 goto L50;
302 }
303 /*< temp = x(j,j) >*/
304 temp = x[j + j * x_dim1];
305 /*< x(j,j) = qraux(j) >*/
306 x[j + j * x_dim1] = qraux[j];
307 /*< t = -ddot(n-j+1,x(j,j),1,qy(j),1)/x(j,j) >*/
308 i__2 = *n - j + 1;
309 t = -ddot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:43:9`!(&i__2, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &qy[j], &c__1cxx . . $ c__1.) / x[j + j
310 * x_dim1];
311 /*< call daxpy(n-j+1,t,x(j,j),1,qy(j),1) >*/
312 i__2 = *n - j + 1;
313 daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &t, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &qy[j], &c__1cxx . . $ c__1.);
314 /*< x(j,j) = temp >*/
315 x[j + j * x_dim1] = temp;
316 /*< 50 continue >*/
317 L50:
318 /*< 60 continue >*/
319 /* L60: */
320 ;
321 }
322 /*< 70 continue >*/
323 L70:
324 /*< if (.not.cqty) go to 100 >*/
325 if (! cqty) {
326 goto L100;
327 }
328
329 /* compute trans(q)*y. */
330
331 /*< do 90 j = 1, ju >*/
332 i__1 = ju;
333 for (j = 1; j <= i__1; ++j) {
334 /*< if (qraux(j) .eq. 0.0d0) go to 80 >*/
335 if (qraux[j] == 0.) {
336 goto L80;
337 }
338 /*< temp = x(j,j) >*/
339 temp = x[j + j * x_dim1];
340 /*< x(j,j) = qraux(j) >*/
341 x[j + j * x_dim1] = qraux[j];
342 /*< t = -ddot(n-j+1,x(j,j),1,qty(j),1)/x(j,j) >*/
343 i__2 = *n - j + 1;
344 t = -ddot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:43:9`!(&i__2, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &qty[j], &c__1cxx . . $ c__1.) / x[j +
345 j * x_dim1];
346 /*< call daxpy(n-j+1,t,x(j,j),1,qty(j),1) >*/
347 i__2 = *n - j + 1;
348 daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &t, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &qty[j], &c__1cxx . . $ c__1.);
349 /*< x(j,j) = temp >*/
350 x[j + j * x_dim1] = temp;
351 /*< 80 continue >*/
352 L80:
353 /*< 90 continue >*/
354 /* L90: */
355 ;
356 }
357 /*< 100 continue >*/
358 L100:
359
360 /* set up to compute b, rsd, or xb. */
361
362 /*< if (cb) call dcopy(k,qty,1,b,1) >*/
363 if (cb) {
364 dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(k, &qty[1], &c__1cxx . . $ c__1., &b[1], &c__1cxx . . $ c__1.);
365 }
366 /*< kp1 = k + 1 >*/
367 kp1 = *k + 1;
368 /*< if (cxb) call dcopy(k,qty,1,xb,1) >*/
369 if (cxb) {
370 dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(k, &qty[1], &c__1cxx . . $ c__1., &xb[1], &c__1cxx . . $ c__1.);
371 }
372 /*< if (cr .and. k .lt. n) call dcopy(n-k,qty(kp1),1,rsd(kp1),1) >*/
373 if (cr && *k < *n) {
374 i__1 = *n - *k;
375 dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&i__1, &qty[kp1], &c__1cxx . . $ c__1., &rsd[kp1], &c__1cxx . . $ c__1.);
376 }
377 /*< if (.not.cxb .or. kp1 .gt. n) go to 120 >*/
378 if (! cxb || kp1 > *n) {
379 goto L120;
380 }
381 /*< do 110 i = kp1, n >*/
382 i__1 = *n;
383 for (i__ = kp1; i__ <= i__1; ++i__) {
384 /*< xb(i) = 0.0d0 >*/
385 xb[i__] = 0.;
386 /*< 110 continue >*/
387 /* L110: */
388 }
389 /*< 120 continue >*/
390 L120:
391 /*< if (.not.cr) go to 140 >*/
392 if (! cr) {
393 goto L140;
394 }
395 /*< do 130 i = 1, k >*/
396 i__1 = *k;
397 for (i__ = 1; i__ <= i__1; ++i__) {
398 /*< rsd(i) = 0.0d0 >*/
399 rsd[i__] = 0.;
400 /*< 130 continue >*/
401 /* L130: */
402 }
403 /*< 140 continue >*/
404 L140:
405 /*< if (.not.cb) go to 190 >*/
406 if (! cb) {
407 goto L190;
408 }
409
410 /* compute b. */
411
412 /*< do 170 jj = 1, k >*/
413 i__1 = *k;
414 for (jj = 1; jj <= i__1; ++jj) {
415 /*< j = k - jj + 1 >*/
416 j = *k - jj + 1;
417 /*< if (x(j,j) .ne. 0.0d0) go to 150 >*/
418 if (x[j + j * x_dim1] != 0.) {
419 goto L150;
420 }
421 /*< info = j >*/
422 *info = j;
423 /* ......exit */
424 /*< go to 180 >*/
425 goto L180;
426 /*< 150 continue >*/
427 L150:
428 /*< b(j) = b(j)/x(j,j) >*/
429 b[j] /= x[j + j * x_dim1];
430 /*< if (j .eq. 1) go to 160 >*/
431 if (j == 1) {
432 goto L160;
433 }
434 /*< t = -b(j) >*/
435 t = -b[j];
436 /*< call daxpy(j-1,t,x(1,j),1,b,1) >*/
437 i__2 = j - 1;
438 daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &t, &x[j * x_dim1 + 1], &c__1cxx . . $ c__1., &b[1], &c__1cxx . . $ c__1.);
439 /*< 160 continue >*/
440 L160:
441 /*< 170 continue >*/
442 /* L170: */
443 ;
444 }
445 /*< 180 continue >*/
446 L180:
447 /*< 190 continue >*/
448 L190:
449 /*< if (.not.cr .and. .not.cxb) go to 240 >*/
450 if (! cr && ! cxb) {
451 goto L240;
452 }
453
454 /* compute rsd or xb as required. */
455
456 /*< do 230 jj = 1, ju >*/
457 i__1 = ju;
458 for (jj = 1; jj <= i__1; ++jj) {
459 /*< j = ju - jj + 1 >*/
460 j = ju - jj + 1;
461 /*< if (qraux(j) .eq. 0.0d0) go to 220 >*/
462 if (qraux[j] == 0.) {
463 goto L220;
464 }
465 /*< temp = x(j,j) >*/
466 temp = x[j + j * x_dim1];
467 /*< x(j,j) = qraux(j) >*/
468 x[j + j * x_dim1] = qraux[j];
469 /*< if (.not.cr) go to 200 >*/
470 if (! cr) {
471 goto L200;
472 }
473 /*< t = -ddot(n-j+1,x(j,j),1,rsd(j),1)/x(j,j) >*/
474 i__2 = *n - j + 1;
475 t = -ddot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:43:9`!(&i__2, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &rsd[j], &c__1cxx . . $ c__1.) / x[j +
476 j * x_dim1];
477 /*< call daxpy(n-j+1,t,x(j,j),1,rsd(j),1) >*/
478 i__2 = *n - j + 1;
479 daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &t, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &rsd[j], &c__1cxx . . $ c__1.);
480 /*< 200 continue >*/
481 L200:
482 /*< if (.not.cxb) go to 210 >*/
483 if (! cxb) {
484 goto L210;
485 }
486 /*< t = -ddot(n-j+1,x(j,j),1,xb(j),1)/x(j,j) >*/
487 i__2 = *n - j + 1;
488 t = -ddot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:43:9`!(&i__2, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &xb[j], &c__1cxx . . $ c__1.) / x[j + j
489 * x_dim1];
490 /*< call daxpy(n-j+1,t,x(j,j),1,xb(j),1) >*/
491 i__2 = *n - j + 1;
492 daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &t, &x[j + j * x_dim1], &c__1cxx . . $ c__1., &xb[j], &c__1cxx . . $ c__1.);
493 /*< 210 continue >*/
494 L210:
495 /*< x(j,j) = temp >*/
496 x[j + j * x_dim1] = temp;
497 /*< 220 continue >*/
498 L220:
499 /*< 230 continue >*/
500 /* L230: */
501 ;
502 }
503 /*< 240 continue >*/
504 L240:
505 /*< 250 continue >*/
506 L250:
507 /*< return >*/
508 return 0;
509 /*< end >*/
510 } /* dqrsl_ */
511
512 #ifdef __cplusplus
513 }
514 #endif