Debian Codegraph @

Modules/ThirdParty/VNL/src/vxl/v3p/netlib/lapack/single/sgeqpf.c

raw symbols SCIP
1 /* lapack/single/sgeqpf.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 SGEQPF( M, N, A, LDA, JPVT, TAU, WORK, INFO ) >*/
23 /* Subroutine */ int sgeqpf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:239:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *m, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *a, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *lda,
24 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *jpvt, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *tau, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *work, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *info)
25 {
26 /* System generated locals */
27 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! a_dim1, a_offset, i__1, i__2, i__3;
28 realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! r__1, r__2;
29
30 /* Builtin functions */
31 double sqrtcxx . . $ sqrt(447c67c6676f75c3).(doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`!);
32
33 /* Local variables */
34 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__, j, ma, mn;
35 realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! aii;
36 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! pvt;
37 realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! temp, temp2;
38 extern doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! snrm2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:267:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *);
39 extern /* Subroutine */ int slarf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:258:9`!(char *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *,
40 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!);
41 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! itemp;
42 extern /* Subroutine */ int sswap_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:283:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *,
43 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *), sgeqr2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:240:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`!
44 *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *), sorm2r_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:270:9`!(char *, char *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`!
45 *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *
46 , integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!), xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!(char *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!),
47 slarfg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:259:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *);
48 extern integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! isamax_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:183:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, realcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:69:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *);
49
50
51 /* -- LAPACK test routine (version 3.0) -- */
52 /* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., */
53 /* Courant Institute, Argonne National Lab, and Rice University */
54 /* March 31, 1993 */
55
56 /* .. Scalar Arguments .. */
57 /*< INTEGER INFO, LDA, M, N >*/
58 /* .. */
59 /* .. Array Arguments .. */
60 /*< INTEGER JPVT( * ) >*/
61 /*< REAL A( LDA, * ), TAU( * ), WORK( * ) >*/
62 /* .. */
63
64 /* Purpose */
65 /* ======= */
66
67 /* This routine is deprecated and has been replaced by routine SGEQP3. */
68
69 /* SGEQPF computes a QR factorization with column pivoting of a */
70 /* real M-by-N matrix A: A*P = Q*R. */
71
72 /* Arguments */
73 /* ========= */
74
75 /* M (input) INTEGER */
76 /* The number of rows of the matrix A. M >= 0. */
77
78 /* N (input) INTEGER */
79 /* The number of columns of the matrix A. N >= 0 */
80
81 /* A (input/output) REAL array, dimension (LDA,N) */
82 /* On entry, the M-by-N matrix A. */
83 /* On exit, the upper triangle of the array contains the */
84 /* min(M,N)-by-N upper triangular matrix R; the elements */
85 /* below the diagonal, together with the array TAU, */
86 /* represent the orthogonal matrix Q as a product of */
87 /* min(m,n) elementary reflectors. */
88
89 /* LDA (input) INTEGER */
90 /* The leading dimension of the array A. LDA >= max(1,M). */
91
92 /* JPVT (input/output) INTEGER array, dimension (N) */
93 /* On entry, if JPVT(i) .ne. 0, the i-th column of A is permuted */
94 /* to the front of A*P (a leading column); if JPVT(i) = 0, */
95 /* the i-th column of A is a free column. */
96 /* On exit, if JPVT(i) = k, then the i-th column of A*P */
97 /* was the k-th column of A. */
98
99 /* TAU (output) REAL array, dimension (min(M,N)) */
100 /* The scalar factors of the elementary reflectors. */
101
102 /* WORK (workspace) REAL array, dimension (3*N) */
103
104 /* INFO (output) INTEGER */
105 /* = 0: successful exit */
106 /* < 0: if INFO = -i, the i-th argument had an illegal value */
107
108 /* Further Details */
109 /* =============== */
110
111 /* The matrix Q is represented as a product of elementary reflectors */
112
113 /* Q = H(1) H(2) . . . H(n) */
114
115 /* Each H(i) has the form */
116
117 /* H = I - tau * v * v' */
118
119 /* where tau is a real scalar, and v is a real vector with */
120 /* v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i). */
121
122 /* The matrix P is represented in jpvt as follows: If */
123 /* jpvt(j) = i */
124 /* then the jth column of P is the ith canonical unit vector. */
125
126 /* ===================================================================== */
127
128 /* .. Parameters .. */
129 /*< REAL ZERO, ONE >*/
130 /*< PARAMETER ( ZERO = 0.0E+0, ONE = 1.0E+0 ) >*/
131 /* .. */
132 /* .. Local Scalars .. */
133 /*< INTEGER I, ITEMP, J, MA, MN, PVT >*/
134 /*< REAL AII, TEMP, TEMP2 >*/
135 /* .. */
136 /* .. External Subroutines .. */
137 /*< EXTERNAL SGEQR2, SLARF, SLARFG, SORM2R, SSWAP, XERBLA >*/
138 /* .. */
139 /* .. Intrinsic Functions .. */
140 /*< INTRINSIC ABS, MAX, MIN, SQRT >*/
141 /* .. */
142 /* .. External Functions .. */
143 /*< INTEGER ISAMAX >*/
144 /*< REAL SNRM2 >*/
145 /*< EXTERNAL ISAMAX, SNRM2 >*/
146 /* .. */
147 /* .. Executable Statements .. */
148
149 /* Test the input arguments */
150
151 /*< INFO = 0 >*/
152 /* Parameter adjustments */
153 a_dim1 = *lda;
154 a_offset = 1 + a_dim1;
155 a -= a_offset;
156 --jpvt;
157 --tau;
158 --work;
159
160 /* Function Body */
161 *info = 0;
162 /*< IF( M.LT.0 ) THEN >*/
163 if (*m < 0) {
164 /*< INFO = -1 >*/
165 *info = -1;
166 /*< ELSE IF( N.LT.0 ) THEN >*/
167 } else if (*n < 0) {
168 /*< INFO = -2 >*/
169 *info = -2;
170 /*< ELSE IF( LDA.LT.MAX( 1, M ) ) THEN >*/
171 } else if (*lda < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) {
172 /*< INFO = -4 >*/
173 *info = -4;
174 /*< END IF >*/
175 }
176 /*< IF( INFO.NE.0 ) THEN >*/
177 if (*info != 0) {
178 /*< CALL XERBLA( 'SGEQPF', -INFO ) >*/
179 i__1 = -(*info);
180 xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!("SGEQPF", &i__1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6);
181 /*< RETURN >*/
182 return 0;
183 /*< END IF >*/
184 }
185
186 /*< MN = MIN( M, N ) >*/
187 mn = mincxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:159:9`!(*m,*n);
188
189 /* Move initial columns up front */
190
191 /*< ITEMP = 1 >*/
192 itemp = 1;
193 /*< DO 10 I = 1, N >*/
194 i__1 = *n;
195 for (i__ = 1; i__ <= i__1; ++i__) {
196 /*< IF( JPVT( I ).NE.0 ) THEN >*/
197 if (jpvt[i__] != 0) {
198 /*< IF( I.NE.ITEMP ) THEN >*/
199 if (i__ != itemp) {
200 /*< CALL SSWAP( M, A( 1, I ), 1, A( 1, ITEMP ), 1 ) >*/
201 sswap_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:283:9`!(m, &a[i__ * a_dim1 + 1], &c__1cxx . . $ c__1., &a[itemp * a_dim1 + 1],
202 &c__1cxx . . $ c__1.);
203 /*< JPVT( I ) = JPVT( ITEMP ) >*/
204 jpvt[i__] = jpvt[itemp];
205 /*< JPVT( ITEMP ) = I >*/
206 jpvt[itemp] = i__;
207 /*< ELSE >*/
208 } else {
209 /*< JPVT( I ) = I >*/
210 jpvt[i__] = i__;
211 /*< END IF >*/
212 }
213 /*< ITEMP = ITEMP + 1 >*/
214 ++itemp;
215 /*< ELSE >*/
216 } else {
217 /*< JPVT( I ) = I >*/
218 jpvt[i__] = i__;
219 /*< END IF >*/
220 }
221 /*< 10 CONTINUE >*/
222 /* L10: */
223 }
224 /*< ITEMP = ITEMP - 1 >*/
225 --itemp;
226
227 /* Compute the QR factorization and update remaining columns */
228
229 /*< IF( ITEMP.GT.0 ) THEN >*/
230 if (itemp > 0) {
231 /*< MA = MIN( ITEMP, M ) >*/
232 ma = mincxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:159:9`!(itemp,*m);
233 /*< CALL SGEQR2( M, MA, A, LDA, TAU, WORK, INFO ) >*/
234 sgeqr2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:240:9`!(m, &ma, &a[a_offset], lda, &tau[1], &work[1], info);
235 /*< IF( MA.LT.N ) THEN >*/
236 if (ma < *n) {
237 /*< >*/
238 i__1 = *n - ma;
239 sorm2r_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:270:9`!("Left", "Transpose", m, &i__1, &ma, &a[a_offset], lda, &
240 tau[1], &a[(ma + 1) * a_dim1 + 1], lda, &work[1], info, (
241 ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)4, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)9);
242 /*< END IF >*/
243 }
244 /*< END IF >*/
245 }
246
247 /*< IF( ITEMP.LT.MN ) THEN >*/
248 if (itemp < mn) {
249
250 /* Initialize partial column norms. The first n elements of */
251 /* work store the exact column norms. */
252
253 /*< DO 20 I = ITEMP + 1, N >*/
254 i__1 = *n;
255 for (i__ = itemp + 1; i__ <= i__1; ++i__) {
256 /*< WORK( I ) = SNRM2( M-ITEMP, A( ITEMP+1, I ), 1 ) >*/
257 i__2 = *m - itemp;
258 work[i__] = snrm2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:267:9`!(&i__2, &a[itemp + 1 + i__ * a_dim1], &c__1cxx . . $ c__1.);
259 /*< WORK( N+I ) = WORK( I ) >*/
260 work[*n + i__] = work[i__];
261 /*< 20 CONTINUE >*/
262 /* L20: */
263 }
264
265 /* Compute factorization */
266
267 /*< DO 40 I = ITEMP + 1, MN >*/
268 i__1 = mn;
269 for (i__ = itemp + 1; i__ <= i__1; ++i__) {
270
271 /* Determine ith pivot column and swap if necessary */
272
273 /*< PVT = ( I-1 ) + ISAMAX( N-I+1, WORK( I ), 1 ) >*/
274 i__2 = *n - i__ + 1;
275 pvt = i__ - 1 + isamax_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:183:9`!(&i__2, &work[i__], &c__1cxx . . $ c__1.);
276
277 /*< IF( PVT.NE.I ) THEN >*/
278 if (pvt != i__) {
279 /*< CALL SSWAP( M, A( 1, PVT ), 1, A( 1, I ), 1 ) >*/
280 sswap_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:283:9`!(m, &a[pvt * a_dim1 + 1], &c__1cxx . . $ c__1., &a[i__ * a_dim1 + 1], &
281 c__1cxx . . $ c__1.);
282 /*< ITEMP = JPVT( PVT ) >*/
283 itemp = jpvt[pvt];
284 /*< JPVT( PVT ) = JPVT( I ) >*/
285 jpvt[pvt] = jpvt[i__];
286 /*< JPVT( I ) = ITEMP >*/
287 jpvt[i__] = itemp;
288 /*< WORK( PVT ) = WORK( I ) >*/
289 work[pvt] = work[i__];
290 /*< WORK( N+PVT ) = WORK( N+I ) >*/
291 work[*n + pvt] = work[*n + i__];
292 /*< END IF >*/
293 }
294
295 /* Generate elementary reflector H(i) */
296
297 /*< IF( I.LT.M ) THEN >*/
298 if (i__ < *m) {
299 /*< CALL SLARFG( M-I+1, A( I, I ), A( I+1, I ), 1, TAU( I ) ) >*/
300 i__2 = *m - i__ + 1;
301 slarfg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:259:9`!(&i__2, &a[i__ + i__ * a_dim1], &a[i__ + 1 + i__ *
302 a_dim1], &c__1cxx . . $ c__1., &tau[i__]);
303 /*< ELSE >*/
304 } else {
305 /*< CALL SLARFG( 1, A( M, M ), A( M, M ), 1, TAU( M ) ) >*/
306 slarfg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:259:9`!(&c__1cxx . . $ c__1., &a[*m + *m * a_dim1], &a[*m + *m * a_dim1], &
307 c__1cxx . . $ c__1., &tau[*m]);
308 /*< END IF >*/
309 }
310
311 /*< IF( I.LT.N ) THEN >*/
312 if (i__ < *n) {
313
314 /* Apply H(i) to A(i:m,i+1:n) from the left */
315
316 /*< AII = A( I, I ) >*/
317 aii = a[i__ + i__ * a_dim1];
318 /*< A( I, I ) = ONE >*/
319 a[i__ + i__ * a_dim1] = (float)1.;
320 /*< >*/
321 i__2 = *m - i__ + 1;
322 i__3 = *n - i__;
323 slarf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:258:9`!("LEFT", &i__2, &i__3, &a[i__ + i__ * a_dim1], &c__1cxx . . $ c__1., &
324 tau[i__], &a[i__ + (i__ + 1) * a_dim1], lda, &work[(*
325 n << 1) + 1], (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)4);
326 /*< A( I, I ) = AII >*/
327 a[i__ + i__ * a_dim1] = aii;
328 /*< END IF >*/
329 }
330
331 /* Update partial column norms */
332
333 /*< DO 30 J = I + 1, N >*/
334 i__2 = *n;
335 for (j = i__ + 1; j <= i__2; ++j) {
336 /*< IF( WORK( J ).NE.ZERO ) THEN >*/
337 if (work[j] != (float)0.) {
338 /*< TEMP = ONE - ( ABS( A( I, J ) ) / WORK( J ) )**2 >*/
339 /* Computing 2nd power */
340 r__2 = (r__1 = a[i__ + j * a_dim1], dabscxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:158:9`!(r__1)) / work[j];
341 temp = (float)1. - r__2 * r__2;
342 /*< TEMP = MAX( TEMP, ZERO ) >*/
343 temp = dmaxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:162:9`!(temp,(float)0.);
344 /*< TEMP2 = ONE + 0.05*TEMP*( WORK( J ) / WORK( N+J ) )**2 >*/
345 /* Computing 2nd power */
346 r__1 = work[j] / work[*n + j];
347 temp2 = temp * (float).05 * (r__1 * r__1) + (float)1.;
348 /*< IF( TEMP2.EQ.ONE ) THEN >*/
349 if (temp2 == (float)1.) {
350 /*< IF( M-I.GT.0 ) THEN >*/
351 if (*m - i__ > 0) {
352 /*< WORK( J ) = SNRM2( M-I, A( I+1, J ), 1 ) >*/
353 i__3 = *m - i__;
354 work[j] = snrm2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:267:9`!(&i__3, &a[i__ + 1 + j * a_dim1],
355 &c__1cxx . . $ c__1.);
356 /*< WORK( N+J ) = WORK( J ) >*/
357 work[*n + j] = work[j];
358 /*< ELSE >*/
359 } else {
360 /*< WORK( J ) = ZERO >*/
361 work[j] = (float)0.;
362 /*< WORK( N+J ) = ZERO >*/
363 work[*n + j] = (float)0.;
364 /*< END IF >*/
365 }
366 /*< ELSE >*/
367 } else {
368 /*< WORK( J ) = WORK( J )*SQRT( TEMP ) >*/
369 work[j] *= sqrtcxx . . $ sqrt(447c67c6676f75c3).(temp);
370 /*< END IF >*/
371 }
372 /*< END IF >*/
373 }
374 /*< 30 CONTINUE >*/
375 /* L30: */
376 }
377
378 /*< 40 CONTINUE >*/
379 /* L40: */
380 }
381 /*< END IF >*/
382 }
383 /*< RETURN >*/
384 return 0;
385
386 /* End of SGEQPF */
387
388 /*< END >*/
389 } /* sgeqpf_ */
390
391 #ifdef __cplusplus
392 }
393 #endif