LAPACK 3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
dblat1.f
Go to the documentation of this file.
1*> \brief \b DBLAT1
2*
3* =========== DOCUMENTATION ===========
4*
5* Online html documentation available at
6* http://www.netlib.org/lapack/explore-html/
7*
8* Definition:
9* ===========
10*
11* PROGRAM DBLAT1
12*
13*
14*> \par Purpose:
15* =============
16*>
17*> \verbatim
18*>
19*> Test program for the DOUBLE PRECISION Level 1 BLAS.
20*>
21*> Based upon the original BLAS test routine together with:
22*> F06EAF Example Program Text
23*> \endverbatim
24*
25* Authors:
26* ========
27*
28*> \author Univ. of Tennessee
29*> \author Univ. of California Berkeley
30*> \author Univ. of Colorado Denver
31*> \author NAG Ltd.
32*
33*> \ingroup double_blas_testing
34*
35* =====================================================================
36 PROGRAM dblat1
37*
38* -- Reference BLAS test routine --
39* -- Reference BLAS is a software package provided by Univ. of Tennessee, --
40* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
41*
42* =====================================================================
43*
44* .. Parameters ..
45 INTEGER nout
46 parameter(nout=6)
47* .. Scalars in Common ..
48 INTEGER icase, incx, incy, n
49 LOGICAL pass
50* .. Local Scalars ..
51 DOUBLE PRECISION sfac
52 INTEGER ic
53* .. External Subroutines ..
54 EXTERNAL check0, check1, check2, check3, header
55* .. Common blocks ..
56 COMMON /combla/icase, n, incx, incy, pass
57* .. Data statements ..
58 DATA sfac/9.765625d-4/
59* .. Executable Statements ..
60 WRITE (nout,99999)
61 DO 20 ic = 1, 13
62 icase = ic
63 CALL header
64*
65* .. Initialize PASS, INCX, and INCY for a new case. ..
66* .. the value 9999 for INCX or INCY will appear in the ..
67* .. detailed output, if any, for cases that do not involve ..
68* .. these parameters ..
69*
70 pass = .true.
71 incx = 9999
72 incy = 9999
73 IF (icase.EQ.3 .OR. icase.EQ.11) THEN
74 CALL check0(sfac)
75 ELSE IF (icase.EQ.7 .OR. icase.EQ.8 .OR. icase.EQ.9 .OR.
76 + icase.EQ.10) THEN
77 CALL check1(sfac)
78 ELSE IF (icase.EQ.1 .OR. icase.EQ.2 .OR. icase.EQ.5 .OR.
79 + icase.EQ.6 .OR. icase.EQ.12 .OR. icase.EQ.13) THEN
80 CALL check2(sfac)
81 ELSE IF (icase.EQ.4) THEN
82 CALL check3(sfac)
83 END IF
84* -- Print
85 IF (pass) WRITE (nout,99998)
86 20 CONTINUE
87 stop
88*
8999999 FORMAT (' Real BLAS Test Program Results',/1x)
9099998 FORMAT (' ----- PASS -----')
91*
92* End of DBLAT1
93*
94 END
95 SUBROUTINE header
96* .. Parameters ..
97 INTEGER NOUT
98 parameter(nout=6)
99* .. Scalars in Common ..
100 INTEGER ICASE, INCX, INCY, N
101 LOGICAL PASS
102* .. Local Arrays ..
103 CHARACTER*6 L(13)
104* .. Common blocks ..
105 COMMON /combla/icase, n, incx, incy, pass
106* .. Data statements ..
107 DATA l(1)/' DDOT '/
108 DATA l(2)/'DAXPY '/
109 DATA l(3)/'DROTG '/
110 DATA l(4)/' DROT '/
111 DATA l(5)/'DCOPY '/
112 DATA l(6)/'DSWAP '/
113 DATA l(7)/'DNRM2 '/
114 DATA l(8)/'DASUM '/
115 DATA l(9)/'DSCAL '/
116 DATA l(10)/'IDAMAX'/
117 DATA l(11)/'DROTMG'/
118 DATA l(12)/'DROTM '/
119 DATA l(13)/'DSDOT '/
120* .. Executable Statements ..
121 WRITE (nout,99999) icase, l(icase)
122 RETURN
123*
12499999 FORMAT (/' Test of subprogram number',i3,12x,a6)
125*
126* End of HEADER
127*
128 END
129 SUBROUTINE check0(SFAC)
130* .. Parameters ..
131 INTEGER NOUT
132 parameter(nout=6)
133* .. Scalar Arguments ..
134 DOUBLE PRECISION SFAC
135* .. Scalars in Common ..
136 INTEGER ICASE, INCX, INCY, N
137 LOGICAL PASS
138* .. Local Scalars ..
139 DOUBLE PRECISION SA, SB, SC, SS, D12
140 INTEGER I, K
141* .. Local Arrays ..
142 DOUBLE PRECISION DA1(8), DATRUE(8), DB1(8), DBTRUE(8), DC1(8),
143 $ DS1(8), DAB(4,9), DTEMP(9), DTRUE(9,9)
144* .. External Subroutines ..
145 EXTERNAL drotg, drotmg, stest, stest1
146* .. Common blocks ..
147 COMMON /combla/icase, n, incx, incy, pass
148* .. Data statements ..
149 DATA da1/0.3d0, 0.4d0, -0.3d0, -0.4d0, -0.3d0, 0.0d0,
150 + 0.0d0, 1.0d0/
151 DATA db1/0.4d0, 0.3d0, 0.4d0, 0.3d0, -0.4d0, 0.0d0,
152 + 1.0d0, 0.0d0/
153 DATA dc1/0.6d0, 0.8d0, -0.6d0, 0.8d0, 0.6d0, 1.0d0,
154 + 0.0d0, 1.0d0/
155 DATA ds1/0.8d0, 0.6d0, 0.8d0, -0.6d0, 0.8d0, 0.0d0,
156 + 1.0d0, 0.0d0/
157 DATA datrue/0.5d0, 0.5d0, 0.5d0, -0.5d0, -0.5d0,
158 + 0.0d0, 1.0d0, 1.0d0/
159 DATA dbtrue/0.0d0, 0.6d0, 0.0d0, -0.6d0, 0.0d0,
160 + 0.0d0, 1.0d0, 0.0d0/
161* INPUT FOR MODIFIED GIVENS
162 DATA dab/ .1d0,.3d0,1.2d0,.2d0,
163 a .7d0, .2d0, .6d0, 4.2d0,
164 b 0.d0,0.d0,0.d0,0.d0,
165 c 4.d0, -1.d0, 2.d0, 4.d0,
166 d 6.d-10, 2.d-2, 1.d5, 10.d0,
167 e 4.d10, 2.d-2, 1.d-5, 10.d0,
168 f 2.d-10, 4.d-2, 1.d5, 10.d0,
169 g 2.d10, 4.d-2, 1.d-5, 10.d0,
170 h 4.d0, -2.d0, 8.d0, 4.d0 /
171* TRUE RESULTS FOR MODIFIED GIVENS
172 DATA dtrue/0.d0,0.d0, 1.3d0, .2d0, 0.d0,0.d0,0.d0, .5d0, 0.d0,
173 a 0.d0,0.d0, 4.5d0, 4.2d0, 1.d0, .5d0, 0.d0,0.d0,0.d0,
174 b 0.d0,0.d0,0.d0,0.d0, -2.d0, 0.d0,0.d0,0.d0,0.d0,
175 c 0.d0,0.d0,0.d0, 4.d0, -1.d0, 0.d0,0.d0,0.d0,0.d0,
176 d 0.d0, 15.d-3, 0.d0, 10.d0, -1.d0, 0.d0, -1.d-4,
177 e 0.d0, 1.d0,
178 f 0.d0,0.d0, 6144.d-5, 10.d0, -1.d0, 4096.d0, -1.d6,
179 g 0.d0, 1.d0,
180 h 0.d0,0.d0,15.d0,10.d0,-1.d0, 5.d-5, 0.d0,1.d0,0.d0,
181 i 0.d0,0.d0, 15.d0, 10.d0, -1. d0, 5.d5, -4096.d0,
182 j 1.d0, 4096.d-6,
183 k 0.d0,0.d0, 7.d0, 4.d0, 0.d0,0.d0, -.5d0, -.25d0, 0.d0/
184* 4096 = 2 ** 12
185 DATA d12 /4096.d0/
186 dtrue(1,1) = 12.d0 / 130.d0
187 dtrue(2,1) = 36.d0 / 130.d0
188 dtrue(7,1) = -1.d0 / 6.d0
189 dtrue(1,2) = 14.d0 / 75.d0
190 dtrue(2,2) = 49.d0 / 75.d0
191 dtrue(9,2) = 1.d0 / 7.d0
192 dtrue(1,5) = 45.d-11 * (d12 * d12)
193 dtrue(3,5) = 4.d5 / (3.d0 * d12)
194 dtrue(6,5) = 1.d0 / d12
195 dtrue(8,5) = 1.d4 / (3.d0 * d12)
196 dtrue(1,6) = 4.d10 / (1.5d0 * d12 * d12)
197 dtrue(2,6) = 2.d-2 / 1.5d0
198 dtrue(8,6) = 5.d-7 * d12
199 dtrue(1,7) = 4.d0 / 150.d0
200 dtrue(2,7) = (2.d-10 / 1.5d0) * (d12 * d12)
201 dtrue(7,7) = -dtrue(6,5)
202 dtrue(9,7) = 1.d4 / d12
203 dtrue(1,8) = dtrue(1,7)
204 dtrue(2,8) = 2.d10 / (1.5d0 * d12 * d12)
205 dtrue(1,9) = 32.d0 / 7.d0
206 dtrue(2,9) = -16.d0 / 7.d0
207* .. Executable Statements ..
208*
209* Compute true values which cannot be prestored
210* in decimal notation
211*
212 dbtrue(1) = 1.0d0/0.6d0
213 dbtrue(3) = -1.0d0/0.6d0
214 dbtrue(5) = 1.0d0/0.6d0
215*
216 DO 20 k = 1, 8
217* .. Set N=K for identification in output if any ..
218 n = k
219 IF (icase.EQ.3) THEN
220* .. DROTG ..
221 IF (k.GT.8) GO TO 40
222 sa = da1(k)
223 sb = db1(k)
224 CALL drotg(sa,sb,sc,ss)
225 CALL stest1(sa,datrue(k),datrue(k),sfac)
226 CALL stest1(sb,dbtrue(k),dbtrue(k),sfac)
227 CALL stest1(sc,dc1(k),dc1(k),sfac)
228 CALL stest1(ss,ds1(k),ds1(k),sfac)
229 ELSEIF (icase.EQ.11) THEN
230* .. DROTMG ..
231 DO i=1,4
232 dtemp(i)= dab(i,k)
233 dtemp(i+4) = 0.0
234 END DO
235 dtemp(9) = 0.0
236 CALL drotmg(dtemp(1),dtemp(2),dtemp(3),dtemp(4),dtemp(5))
237 CALL stest(9,dtemp,dtrue(1,k),dtrue(1,k),sfac)
238 ELSE
239 WRITE (nout,*) ' Shouldn''t be here in CHECK0'
240 stop
241 END IF
242 20 CONTINUE
243 40 RETURN
244*
245* End of CHECK0
246*
247 END
248 SUBROUTINE check1(SFAC)
249* .. Parameters ..
250 DOUBLE PRECISION THRESH
251 INTEGER NOUT
252 parameter(nout=6, thresh=10.0d0)
253* .. Scalar Arguments ..
254 DOUBLE PRECISION SFAC
255* .. Scalars in Common ..
256 INTEGER ICASE, INCX, INCY, N
257 LOGICAL PASS
258* .. Local Scalars ..
259 INTEGER I, IX, LEN, NP1
260* .. Local Arrays ..
261 DOUBLE PRECISION DTRUE1(5), DTRUE3(5), DTRUE5(8,5,2), DV(8,5,2),
262 + DVR(8), SA(10), STEMP(1), STRUE(8), SX(8),
263 + SXR(15)
264 INTEGER ITRUE2(5), ITRUEC(5)
265* .. External Functions ..
266 DOUBLE PRECISION DASUM, DNRM2
267 INTEGER IDAMAX
268 EXTERNAL dasum, dnrm2, idamax
269* .. External Subroutines ..
270 EXTERNAL itest1, db1nrm2, dscal, stest, stest1
271* .. Intrinsic Functions ..
272 INTRINSIC max
273* .. Common blocks ..
274 COMMON /combla/icase, n, incx, incy, pass
275* .. Data statements ..
276 DATA sa/0.3d0, -1.0d0, 0.0d0, 1.0d0, 0.3d0, 0.3d0,
277 + 0.3d0, 0.3d0, 0.3d0, 0.3d0/
278 DATA dv/0.1d0, 2.0d0, 2.0d0, 2.0d0, 2.0d0, 2.0d0,
279 + 2.0d0, 2.0d0, 0.3d0, 3.0d0, 3.0d0, 3.0d0, 3.0d0,
280 + 3.0d0, 3.0d0, 3.0d0, 0.3d0, -0.4d0, 4.0d0,
281 + 4.0d0, 4.0d0, 4.0d0, 4.0d0, 4.0d0, 0.2d0,
282 + -0.6d0, 0.3d0, 5.0d0, 5.0d0, 5.0d0, 5.0d0,
283 + 5.0d0, 0.1d0, -0.3d0, 0.5d0, -0.1d0, 6.0d0,
284 + 6.0d0, 6.0d0, 6.0d0, 0.1d0, 8.0d0, 8.0d0, 8.0d0,
285 + 8.0d0, 8.0d0, 8.0d0, 8.0d0, 0.3d0, 9.0d0, 9.0d0,
286 + 9.0d0, 9.0d0, 9.0d0, 9.0d0, 9.0d0, 0.3d0, 2.0d0,
287 + -0.4d0, 2.0d0, 2.0d0, 2.0d0, 2.0d0, 2.0d0,
288 + 0.2d0, 3.0d0, -0.6d0, 5.0d0, 0.3d0, 2.0d0,
289 + 2.0d0, 2.0d0, 0.1d0, 4.0d0, -0.3d0, 6.0d0,
290 + -0.5d0, 7.0d0, -0.1d0, 3.0d0/
291 DATA dvr/8.0d0, -7.0d0, 9.0d0, 5.0d0, 9.0d0, 8.0d0,
292 + 7.0d0, 7.0d0/
293 DATA dtrue1/0.0d0, 0.3d0, 0.5d0, 0.7d0, 0.6d0/
294 DATA dtrue3/0.0d0, 0.3d0, 0.7d0, 1.1d0, 1.0d0/
295 DATA dtrue5/0.10d0, 2.0d0, 2.0d0, 2.0d0, 2.0d0,
296 + 2.0d0, 2.0d0, 2.0d0, -0.3d0, 3.0d0, 3.0d0,
297 + 3.0d0, 3.0d0, 3.0d0, 3.0d0, 3.0d0, 0.0d0, 0.0d0,
298 + 4.0d0, 4.0d0, 4.0d0, 4.0d0, 4.0d0, 4.0d0,
299 + 0.20d0, -0.60d0, 0.30d0, 5.0d0, 5.0d0, 5.0d0,
300 + 5.0d0, 5.0d0, 0.03d0, -0.09d0, 0.15d0, -0.03d0,
301 + 6.0d0, 6.0d0, 6.0d0, 6.0d0, 0.10d0, 8.0d0,
302 + 8.0d0, 8.0d0, 8.0d0, 8.0d0, 8.0d0, 8.0d0,
303 + 0.09d0, 9.0d0, 9.0d0, 9.0d0, 9.0d0, 9.0d0,
304 + 9.0d0, 9.0d0, 0.09d0, 2.0d0, -0.12d0, 2.0d0,
305 + 2.0d0, 2.0d0, 2.0d0, 2.0d0, 0.06d0, 3.0d0,
306 + -0.18d0, 5.0d0, 0.09d0, 2.0d0, 2.0d0, 2.0d0,
307 + 0.03d0, 4.0d0, -0.09d0, 6.0d0, -0.15d0, 7.0d0,
308 + -0.03d0, 3.0d0/
309 DATA itrue2/0, 1, 2, 2, 3/
310 DATA itruec/0, 1, 1, 1, 1/
311* .. Executable Statements ..
312 DO 80 incx = 1, 2
313 DO 60 np1 = 1, 5
314 n = np1 - 1
315 len = 2*max(n,1)
316* .. Set vector arguments ..
317 DO 20 i = 1, len
318 sx(i) = dv(i,np1,incx)
319 20 CONTINUE
320*
321 IF (icase.EQ.7) THEN
322* .. DNRM2 ..
323* Test scaling when some entries are tiny or huge
324 CALL db1nrm2(n,(incx-2)*2,thresh)
325 CALL db1nrm2(n,incx,thresh)
326* Test with hardcoded mid range entries
327 stemp(1) = dtrue1(np1)
328 CALL stest1(dnrm2(n,sx,incx),stemp(1),stemp,sfac)
329 ELSE IF (icase.EQ.8) THEN
330* .. DASUM ..
331 stemp(1) = dtrue3(np1)
332 CALL stest1(dasum(n,sx,incx),stemp(1),stemp,sfac)
333 ELSE IF (icase.EQ.9) THEN
334* .. DSCAL ..
335 CALL dscal(n,sa((incx-1)*5+np1),sx,incx)
336 DO 40 i = 1, len
337 strue(i) = dtrue5(i,np1,incx)
338 40 CONTINUE
339 CALL stest(len,sx,strue,strue,sfac)
340 ELSE IF (icase.EQ.10) THEN
341* .. IDAMAX ..
342 CALL itest1(idamax(n,sx,incx),itrue2(np1))
343 DO 100 i = 1, len
344 sx(i) = 42.0d0
345 100 CONTINUE
346 CALL itest1(idamax(n,sx,incx),itruec(np1))
347 ELSE
348 WRITE (nout,*) ' Shouldn''t be here in CHECK1'
349 stop
350 END IF
351 60 CONTINUE
352 IF (icase.EQ.10) THEN
353 n = 8
354 ix = 1
355 DO 120 i = 1, n
356 sxr(ix) = dvr(i)
357 ix = ix + incx
358 120 CONTINUE
359 CALL itest1(idamax(n,sxr,incx),3)
360 END IF
361 80 CONTINUE
362 RETURN
363*
364* End of CHECK1
365*
366 END
367 SUBROUTINE check2(SFAC)
368* .. Parameters ..
369 INTEGER NOUT
370 parameter(nout=6)
371* .. Scalar Arguments ..
372 DOUBLE PRECISION SFAC
373* .. Scalars in Common ..
374 INTEGER ICASE, INCX, INCY, N
375 LOGICAL PASS
376* .. Local Scalars ..
377 DOUBLE PRECISION SA
378 INTEGER I, J, KI, KN, KNI, KPAR, KSIZE, LENX, LENY,
379 $ LINCX, LINCY, MX, MY
380* .. Local Arrays ..
381 DOUBLE PRECISION DT10X(7,4,4), DT10Y(7,4,4), DT7(4,4),
382 $ DT8(7,4,4), DX1(7),
383 $ DY1(7), SSIZE1(4), SSIZE2(14,2), SSIZE(7),
384 $ STX(7), STY(7), SX(7), SY(7),
385 $ DPAR(5,4), DT19X(7,4,16),DT19XA(7,4,4),
386 $ DT19XB(7,4,4), DT19XC(7,4,4),DT19XD(7,4,4),
387 $ DT19Y(7,4,16), DT19YA(7,4,4),DT19YB(7,4,4),
388 $ DT19YC(7,4,4), DT19YD(7,4,4), DTEMP(5),
389 $ STY0(1), SX0(1), SY0(1)
390 INTEGER INCXS(4), INCYS(4), LENS(4,2), NS(4)
391* .. External Functions ..
392 DOUBLE PRECISION DDOT, DSDOT
393 EXTERNAL ddot, dsdot
394* .. External Subroutines ..
395 EXTERNAL daxpy, dcopy, drotm, dswap, stest, stest1,
396 $ testdsdot
397* .. Intrinsic Functions ..
398 INTRINSIC abs, min
399* .. Common blocks ..
400 COMMON /combla/icase, n, incx, incy, pass
401* .. Data statements ..
402 equivalence(dt19x(1,1,1),dt19xa(1,1,1)),(dt19x(1,1,5),
403 a dt19xb(1,1,1)),(dt19x(1,1,9),dt19xc(1,1,1)),
404 b (dt19x(1,1,13),dt19xd(1,1,1))
405 equivalence(dt19y(1,1,1),dt19ya(1,1,1)),(dt19y(1,1,5),
406 a dt19yb(1,1,1)),(dt19y(1,1,9),dt19yc(1,1,1)),
407 b (dt19y(1,1,13),dt19yd(1,1,1))
408
409 DATA sa/0.3d0/
410 DATA incxs/1, 2, -2, -1/
411 DATA incys/1, -2, 1, -2/
412 DATA lens/1, 1, 2, 4, 1, 1, 3, 7/
413 DATA ns/0, 1, 2, 4/
414 DATA dx1/0.6d0, 0.1d0, -0.5d0, 0.8d0, 0.9d0, -0.3d0,
415 + -0.4d0/
416 DATA dy1/0.5d0, -0.9d0, 0.3d0, 0.7d0, -0.6d0, 0.2d0,
417 + 0.8d0/
418 DATA dt7/0.0d0, 0.30d0, 0.21d0, 0.62d0, 0.0d0,
419 + 0.30d0, -0.07d0, 0.85d0, 0.0d0, 0.30d0, -0.79d0,
420 + -0.74d0, 0.0d0, 0.30d0, 0.33d0, 1.27d0/
421 DATA dt8/0.5d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
422 + 0.0d0, 0.68d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
423 + 0.0d0, 0.0d0, 0.68d0, -0.87d0, 0.0d0, 0.0d0,
424 + 0.0d0, 0.0d0, 0.0d0, 0.68d0, -0.87d0, 0.15d0,
425 + 0.94d0, 0.0d0, 0.0d0, 0.0d0, 0.5d0, 0.0d0,
426 + 0.0d0, 0.0d0, 0.0d0, 0.0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, 0.0d0,
470 + -0.4d0, 0.9d0, -0.5d0, 0.6d0, 0.0d0, 0.0d0,
471 + 0.0d0, 0.5d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
472 + 0.0d0, 0.6d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
473 + 0.0d0, 0.6d0, -0.9d0, 0.1d0, 0.0d0, 0.0d0,
474 + 0.0d0, 0.0d0, 0.6d0, -0.9d0, 0.1d0, 0.7d0,
475 + -0.5d0, 0.2d0, 0.8d0/
476 DATA ssize1/0.0d0, 0.3d0, 1.6d0, 3.2d0/
477 DATA ssize2/0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
478 + 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
479 + 0.0d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0,
480 + 1.17d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0,
481 + 1.17d0, 1.17d0, 1.17d0/
482*
483* FOR DROTM
484*
485 DATA dpar/-2.d0, 0.d0,0.d0,0.d0,0.d0,
486 a -1.d0, 2.d0, -3.d0, -4.d0, 5.d0,
487 b 0.d0, 0.d0, 2.d0, -3.d0, 0.d0,
488 c 1.d0, 5.d0, 2.d0, 0.d0, -4.d0/
489* TRUE X RESULTS F0R ROTATIONS DROTM
490 DATA dt19xa/.6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
491 a .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
492 b .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
493 c .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
494 d .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
495 e -.8d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
496 f -.9d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
497 g 3.5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
498 h .6d0, .1d0, 0.d0,0.d0,0.d0,0.d0,0.d0,
499 i -.8d0, 3.8d0, 0.d0,0.d0,0.d0,0.d0,0.d0,
500 j -.9d0, 2.8d0, 0.d0,0.d0,0.d0,0.d0,0.d0,
501 k 3.5d0, -.4d0, 0.d0,0.d0,0.d0,0.d0,0.d0,
502 l .6d0, .1d0, -.5d0, .8d0, 0.d0,0.d0,0.d0,
503 m -.8d0, 3.8d0, -2.2d0, -1.2d0, 0.d0,0.d0,0.d0,
504 n -.9d0, 2.8d0, -1.4d0, -1.3d0, 0.d0,0.d0,0.d0,
505 o 3.5d0, -.4d0, -2.2d0, 4.7d0, 0.d0,0.d0,0.d0/
506*
507 DATA dt19xb/.6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
508 a .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
509 b .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
510 c .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
511 d .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
512 e -.8d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
513 f -.9d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
514 g 3.5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
515 h .6d0, .1d0, -.5d0, 0.d0,0.d0,0.d0,0.d0,
516 i 0.d0, .1d0, -3.0d0, 0.d0,0.d0,0.d0,0.d0,
517 j -.3d0, .1d0, -2.0d0, 0.d0,0.d0,0.d0,0.d0,
518 k 3.3d0, .1d0, -2.0d0, 0.d0,0.d0,0.d0,0.d0,
519 l .6d0, .1d0, -.5d0, .8d0, .9d0, -.3d0, -.4d0,
520 m -2.0d0, .1d0, 1.4d0, .8d0, .6d0, -.3d0, -2.8d0,
521 n -1.8d0, .1d0, 1.3d0, .8d0, 0.d0, -.3d0, -1.9d0,
522 o 3.8d0, .1d0, -3.1d0, .8d0, 4.8d0, -.3d0, -1.5d0 /
523*
524 DATA dt19xc/.6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
525 a .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
526 b .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
527 c .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
528 d .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
529 e -.8d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
530 f -.9d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
531 g 3.5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
532 h .6d0, .1d0, -.5d0, 0.d0,0.d0,0.d0,0.d0,
533 i 4.8d0, .1d0, -3.0d0, 0.d0,0.d0,0.d0,0.d0,
534 j 3.3d0, .1d0, -2.0d0, 0.d0,0.d0,0.d0,0.d0,
535 k 2.1d0, .1d0, -2.0d0, 0.d0,0.d0,0.d0,0.d0,
536 l .6d0, .1d0, -.5d0, .8d0, .9d0, -.3d0, -.4d0,
537 m -1.6d0, .1d0, -2.2d0, .8d0, 5.4d0, -.3d0, -2.8d0,
538 n -1.5d0, .1d0, -1.4d0, .8d0, 3.6d0, -.3d0, -1.9d0,
539 o 3.7d0, .1d0, -2.2d0, .8d0, 3.6d0, -.3d0, -1.5d0 /
540*
541 DATA dt19xd/.6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
542 a .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
543 b .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
544 c .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
545 d .6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
546 e -.8d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
547 f -.9d0, 0.d0,0.d0,0.d0,0.d0,0.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, -.7d0, -.7d0, 2.3d0, 0.d0,0.d0,0.d0,
573 o -2.6d0, 3.5d0, -.7d0, -3.6d0, 0.d0,0.d0,0.d0/
574*
575 DATA dt19yb/.5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
576 a .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
577 b .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
578 c .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
579 d .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
580 e .7d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
581 f 1.7d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
582 g -2.6d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
583 h .5d0, -.9d0, .3d0, 0.d0,0.d0,0.d0,0.d0,
584 i 4.0d0, -.9d0, -.3d0, 0.d0,0.d0,0.d0,0.d0,
585 j -.5d0, -.9d0, 1.5d0, 0.d0,0.d0,0.d0,0.d0,
586 k -1.5d0, -.9d0, -1.8d0, 0.d0,0.d0,0.d0,0.d0,
587 l .5d0, -.9d0, .3d0, .7d0, -.6d0, .2d0, .8d0,
588 m 3.7d0, -.9d0, -1.2d0, .7d0, -1.5d0, .2d0, 2.2d0,
589 n -.3d0, -.9d0, 2.1d0, .7d0, -1.6d0, .2d0, 2.0d0,
590 o -1.6d0, -.9d0, -2.1d0, .7d0, 2.9d0, .2d0, -3.8d0 /
591*
592 DATA dt19yc/.5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
593 a .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
594 b .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
595 c .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
596 d .5d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0.d0,
597 e .7d0, 0.d0,0.d0,0.d0,0.d0,0.d0,0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, 1.6d0,
623 n 1.7d0, -.9d0, .5d0, .7d0, -1.6d0, .2d0, 2.4d0,
624 o -2.6d0, -.9d0, -1.3d0, .7d0, 2.9d0, .2d0, -4.0d0 /
625*
626* .. Executable Statements ..
627*
628 DO 120 ki = 1, 4
629 incx = incxs(ki)
630 incy = incys(ki)
631 mx = abs(incx)
632 my = abs(incy)
633*
634 DO 100 kn = 1, 4
635 n = ns(kn)
636 ksize = min(2,kn)
637 lenx = lens(kn,mx)
638 leny = lens(kn,my)
639* .. Initialize all argument arrays ..
640 DO 20 i = 1, 7
641 sx(i) = dx1(i)
642 sy(i) = dy1(i)
643 20 CONTINUE
644*
645 IF (icase.EQ.1) THEN
646* .. DDOT ..
647 CALL stest1(ddot(n,sx,incx,sy,incy),dt7(kn,ki),ssize1(kn)
648 + ,sfac)
649 ELSE IF (icase.EQ.2) THEN
650* .. DAXPY ..
651 CALL daxpy(n,sa,sx,incx,sy,incy)
652 DO 40 j = 1, leny
653 sty(j) = dt8(j,kn,ki)
654 40 CONTINUE
655 CALL stest(leny,sy,sty,ssize2(1,ksize),sfac)
656 ELSE IF (icase.EQ.5) THEN
657* .. DCOPY ..
658 DO 60 i = 1, 7
659 sty(i) = dt10y(i,kn,ki)
660 60 CONTINUE
661 CALL dcopy(n,sx,incx,sy,incy)
662 CALL stest(leny,sy,sty,ssize2(1,1),1.0d0)
663 IF (ki.EQ.1) THEN
664 sx0(1) = 42.0d0
665 sy0(1) = 43.0d0
666 IF (n.EQ.0) THEN
667 sty0(1) = sy0(1)
668 ELSE
669 sty0(1) = sx0(1)
670 END IF
671 lincx = incx
672 incx = 0
673 lincy = incy
674 incy = 0
675 CALL dcopy(n,sx0,incx,sy0,incy)
676 CALL stest(1,sy0,sty0,ssize2(1,1),1.0d0)
677 incx = lincx
678 incy = lincy
679 END IF
680 ELSE IF (icase.EQ.6) THEN
681* .. DSWAP ..
682 CALL dswap(n,sx,incx,sy,incy)
683 DO 80 i = 1, 7
684 stx(i) = dt10x(i,kn,ki)
685 sty(i) = dt10y(i,kn,ki)
686 80 CONTINUE
687 CALL stest(lenx,sx,stx,ssize2(1,1),1.0d0)
688 CALL stest(leny,sy,sty,ssize2(1,1),1.0d0)
689 ELSE IF (icase.EQ.12) THEN
690* .. DROTM ..
691 kni=kn+4*(ki-1)
692 DO kpar=1,4
693 DO i=1,7
694 sx(i) = dx1(i)
695 sy(i) = dy1(i)
696 stx(i)= dt19x(i,kpar,kni)
697 sty(i)= dt19y(i,kpar,kni)
698 END DO
699*
700 DO i=1,5
701 dtemp(i) = dpar(i,kpar)
702 END DO
703*
704 DO i=1,lenx
705 ssize(i)=stx(i)
706 END DO
707* SEE REMARK ABOVE ABOUT DT11X(1,2,7)
708* AND DT11X(5,3,8).
709 IF ((kpar .EQ. 2) .AND. (kni .EQ. 7))
710 $ ssize(1) = 2.4d0
711 IF ((kpar .EQ. 3) .AND. (kni .EQ. 8))
712 $ ssize(5) = 1.8d0
713*
714 CALL drotm(n,sx,incx,sy,incy,dtemp)
715 CALL stest(lenx,sx,stx,ssize,sfac)
716 CALL stest(leny,sy,sty,sty,sfac)
717 END DO
718 ELSE IF (icase.EQ.13) THEN
719* .. DSDOT ..
720 CALL testdsdot(real(dsdot(n,real(sx),incx,real(sy),incy)),
721 $ real(dt7(kn,ki)),real(ssize1(kn)), .3125e-1)
722 ELSE
723 WRITE (nout,*) ' Shouldn''t be here in CHECK2'
724 stop
725 END IF
726 100 CONTINUE
727 120 CONTINUE
728 RETURN
729*
730* End of CHECK2
731*
732 END
733 SUBROUTINE check3(SFAC)
734* .. Parameters ..
735 INTEGER NOUT
736 parameter(nout=6)
737* .. Scalar Arguments ..
738 DOUBLE PRECISION SFAC
739* .. Scalars in Common ..
740 INTEGER ICASE, INCX, INCY, N
741 LOGICAL PASS
742* .. Local Scalars ..
743 DOUBLE PRECISION SC, SS
744 INTEGER I, K, KI, KN, KSIZE, LENX, LENY, MX, MY
745* .. Local Arrays ..
746 DOUBLE PRECISION COPYX(5), COPYY(5), DT9X(7,4,4), DT9Y(7,4,4),
747 + DX1(7), DY1(7), MWPC(11), MWPS(11), MWPSTX(5),
748 + MWPSTY(5), MWPTX(11,5), MWPTY(11,5), MWPX(5),
749 + MWPY(5), SSIZE2(14,2), STX(7), STY(7), SX(7),
750 + SY(7)
751 INTEGER INCXS(4), INCYS(4), LENS(4,2), MWPINX(11),
752 + MWPINY(11), MWPN(11), NS(4)
753* .. External Subroutines ..
754 EXTERNAL drot, stest
755* .. Intrinsic Functions ..
756 INTRINSIC abs, min
757* .. Common blocks ..
758 COMMON /combla/icase, n, incx, incy, pass
759* .. Data statements ..
760 DATA incxs/1, 2, -2, -1/
761 DATA incys/1, -2, 1, -2/
762 DATA lens/1, 1, 2, 4, 1, 1, 3, 7/
763 DATA ns/0, 1, 2, 4/
764 DATA dx1/0.6d0, 0.1d0, -0.5d0, 0.8d0, 0.9d0, -0.3d0,
765 + -0.4d0/
766 DATA dy1/0.5d0, -0.9d0, 0.3d0, 0.7d0, -0.6d0, 0.2d0,
767 + 0.8d0/
768 DATA sc, ss/0.8d0, 0.6d0/
769 DATA dt9x/0.6d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
770 + 0.0d0, 0.78d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
771 + 0.0d0, 0.0d0, 0.78d0, -0.46d0, 0.0d0, 0.0d0,
772 + 0.0d0, 0.0d0, 0.0d0, 0.78d0, -0.46d0, -0.22d0,
773 + 1.06d0, 0.0d0, 0.0d0, 0.0d0, 0.6d0, 0.0d0,
774 + 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.78d0,
775 + 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
776 + 0.66d0, 0.1d0, -0.1d0, 0.0d0, 0.0d0, 0.0d0,
777 + 0.0d0, 0.96d0, 0.1d0, -0.76d0, 0.8d0, 0.90d0,
778 + -0.3d0, -0.02d0, 0.6d0, 0.0d0, 0.0d0, 0.0d0,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.20d0, 0.0d0, 0.0d0, 0.0d0, 0.5d0,
802 + 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
803 + 0.04d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
804 + 0.0d0, 0.04d0, -0.9d0, 0.18d0, 0.0d0, 0.0d0,
805 + 0.0d0, 0.0d0, 0.04d0, -0.9d0, 0.18d0, 0.7d0,
806 + -0.18d0, 0.2d0, 0.16d0/
807 DATA ssize2/0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
808 + 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0, 0.0d0,
809 + 0.0d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0,
810 + 1.17d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0, 1.17d0,
811 + 1.17d0, 1.17d0, 1.17d0/
812* .. Executable Statements ..
813*
814 DO 60 ki = 1, 4
815 incx = incxs(ki)
816 incy = incys(ki)
817 mx = abs(incx)
818 my = abs(incy)
819*
820 DO 40 kn = 1, 4
821 n = ns(kn)
822 ksize = min(2,kn)
823 lenx = lens(kn,mx)
824 leny = lens(kn,my)
825*
826 IF (icase.EQ.4) THEN
827* .. DROT ..
828 DO 20 i = 1, 7
829 sx(i) = dx1(i)
830 sy(i) = dy1(i)
831 stx(i) = dt9x(i,kn,ki)
832 sty(i) = dt9y(i,kn,ki)
833 20 CONTINUE
834 CALL drot(n,sx,incx,sy,incy,sc,ss)
835 CALL stest(lenx,sx,stx,ssize2(1,ksize),sfac)
836 CALL stest(leny,sy,sty,ssize2(1,ksize),sfac)
837 ELSE
838 WRITE (nout,*) ' Shouldn''t be here in CHECK3'
839 stop
840 END IF
841 40 CONTINUE
842 60 CONTINUE
843*
844 mwpc(1) = 1
845 DO 80 i = 2, 11
846 mwpc(i) = 0
847 80 CONTINUE
848 mwps(1) = 0
849 DO 100 i = 2, 6
850 mwps(i) = 1
851 100 CONTINUE
852 DO 120 i = 7, 11
853 mwps(i) = -1
854 120 CONTINUE
855 mwpinx(1) = 1
856 mwpinx(2) = 1
857 mwpinx(3) = 1
858 mwpinx(4) = -1
859 mwpinx(5) = 1
860 mwpinx(6) = -1
861 mwpinx(7) = 1
862 mwpinx(8) = 1
863 mwpinx(9) = -1
864 mwpinx(10) = 1
865 mwpinx(11) = -1
866 mwpiny(1) = 1
867 mwpiny(2) = 1
868 mwpiny(3) = -1
869 mwpiny(4) = -1
870 mwpiny(5) = 2
871 mwpiny(6) = 1
872 mwpiny(7) = 1
873 mwpiny(8) = -1
874 mwpiny(9) = -1
875 mwpiny(10) = 2
876 mwpiny(11) = 1
877 DO 140 i = 1, 11
878 mwpn(i) = 5
879 140 CONTINUE
880 mwpn(5) = 3
881 mwpn(10) = 3
882 DO 160 i = 1, 5
883 mwpx(i) = i
884 mwpy(i) = i
885 mwptx(1,i) = i
886 mwpty(1,i) = i
887 mwptx(2,i) = i
888 mwpty(2,i) = -i
889 mwptx(3,i) = 6 - i
890 mwpty(3,i) = i - 6
891 mwptx(4,i) = i
892 mwpty(4,i) = -i
893 mwptx(6,i) = 6 - i
894 mwpty(6,i) = i - 6
895 mwptx(7,i) = -i
896 mwpty(7,i) = i
897 mwptx(8,i) = i - 6
898 mwpty(8,i) = 6 - i
899 mwptx(9,i) = -i
900 mwpty(9,i) = i
901 mwptx(11,i) = i - 6
902 mwpty(11,i) = 6 - i
903 160 CONTINUE
904 mwptx(5,1) = 1
905 mwptx(5,2) = 3
906 mwptx(5,3) = 5
907 mwptx(5,4) = 4
908 mwptx(5,5) = 5
909 mwpty(5,1) = -1
910 mwpty(5,2) = 2
911 mwpty(5,3) = -2
912 mwpty(5,4) = 4
913 mwpty(5,5) = -3
914 mwptx(10,1) = -1
915 mwptx(10,2) = -3
916 mwptx(10,3) = -5
917 mwptx(10,4) = 4
918 mwptx(10,5) = 5
919 mwpty(10,1) = 1
920 mwpty(10,2) = 2
921 mwpty(10,3) = 2
922 mwpty(10,4) = 4
923 mwpty(10,5) = 3
924 DO 200 i = 1, 11
925 incx = mwpinx(i)
926 incy = mwpiny(i)
927 DO 180 k = 1, 5
928 copyx(k) = mwpx(k)
929 copyy(k) = mwpy(k)
930 mwpstx(k) = mwptx(i,k)
931 mwpsty(k) = mwpty(i,k)
932 180 CONTINUE
933 CALL drot(mwpn(i),copyx,incx,copyy,incy,mwpc(i),mwps(i))
934 CALL stest(5,copyx,mwpstx,mwpstx,sfac)
935 CALL stest(5,copyy,mwpsty,mwpsty,sfac)
936 200 CONTINUE
937 RETURN
938*
939* End of CHECK3
940*
941 END
942 SUBROUTINE stest(LEN,SCOMP,STRUE,SSIZE,SFAC)
943* ********************************* STEST **************************
944*
945* THIS SUBR COMPARES ARRAYS SCOMP() AND STRUE() OF LENGTH LEN TO
946* SEE IF THE TERM BY TERM DIFFERENCES, MULTIPLIED BY SFAC, ARE
947* NEGLIGIBLE.
948*
949* C. L. LAWSON, JPL, 1974 DEC 10
950*
951* .. Parameters ..
952 INTEGER NOUT
953 DOUBLE PRECISION ZERO
954 parameter(nout=6, zero=0.0d0)
955* .. Scalar Arguments ..
956 DOUBLE PRECISION SFAC
957 INTEGER LEN
958* .. Array Arguments ..
959 DOUBLE PRECISION SCOMP(LEN), SSIZE(LEN), STRUE(LEN)
960* .. Scalars in Common ..
961 INTEGER ICASE, INCX, INCY, N
962 LOGICAL PASS
963* .. Local Scalars ..
964 DOUBLE PRECISION SD
965 INTEGER I
966* .. External Functions ..
967 DOUBLE PRECISION SDIFF
968 EXTERNAL sdiff
969* .. Intrinsic Functions ..
970 INTRINSIC abs
971* .. Common blocks ..
972 COMMON /combla/icase, n, incx, incy, pass
973* .. Executable Statements ..
974*
975 DO 40 i = 1, len
976 sd = scomp(i) - strue(i)
977 IF (abs(sfac*sd) .LE. abs(ssize(i))*epsilon(zero))
978 + GO TO 40
979*
980* HERE SCOMP(I) IS NOT CLOSE TO STRUE(I).
981*
982 IF ( .NOT. pass) GO TO 20
983* PRINT FAIL MESSAGE AND HEADER.
984 pass = .false.
985 WRITE (nout,99999)
986 WRITE (nout,99998)
987 20 WRITE (nout,99997) icase, n, incx, incy, i, scomp(i),
988 + strue(i), sd, ssize(i)
989 40 CONTINUE
990 RETURN
991*
99299999 FORMAT (' FAIL')
99399998 FORMAT (/' CASE N INCX INCY I ',
994 + ' COMP(I) TRUE(I) DIFFERENCE',
995 + ' SIZE(I)',/1x)
99699997 FORMAT (1x,i4,i3,2i5,i3,2d36.8,2d12.4)
997*
998* End of STEST
999*
1000 END
1001 SUBROUTINE testdsdot(SCOMP,STRUE,SSIZE,SFAC)
1002* ********************************* STEST **************************
1003*
1004* THIS SUBR COMPARES ARRAYS SCOMP() AND STRUE() OF LENGTH LEN TO
1005* SEE IF THE TERM BY TERM DIFFERENCES, MULTIPLIED BY SFAC, ARE
1006* NEGLIGIBLE.
1007*
1008* C. L. LAWSON, JPL, 1974 DEC 10
1009*
1010* .. Parameters ..
1011 INTEGER NOUT
1012 REAL ZERO
1013 parameter(nout=6, zero=0.0e0)
1014* .. Scalar Arguments ..
1015 REAL SFAC, SCOMP, SSIZE, STRUE
1016* .. Scalars in Common ..
1017 INTEGER ICASE, INCX, INCY, N
1018 LOGICAL PASS
1019* .. Local Scalars ..
1020 REAL SD
1021* .. Intrinsic Functions ..
1022 INTRINSIC abs
1023* .. Common blocks ..
1024 COMMON /combla/icase, n, incx, incy, pass
1025* .. Executable Statements ..
1026*
1027 sd = scomp - strue
1028 IF (abs(sfac*sd) .LE. abs(ssize) * epsilon(zero))
1029 + GO TO 40
1030*
1031* HERE SCOMP(I) IS NOT CLOSE TO STRUE(I).
1032*
1033 IF ( .NOT. pass) GO TO 20
1034* PRINT FAIL MESSAGE AND HEADER.
1035 pass = .false.
1036 WRITE (nout,99999)
1037 WRITE (nout,99998)
1038 20 WRITE (nout,99997) icase, n, incx, incy, scomp,
1039 + strue, sd, ssize
1040 40 CONTINUE
1041 RETURN
1042*
104399999 FORMAT (' FAIL')
104499998 FORMAT (/' CASE N INCX INCY ',
1045 + ' COMP(I) TRUE(I) DIFFERENCE',
1046 + ' SIZE(I)',/1x)
104799997 FORMAT (1x,i4,i3,1i5,i3,2e36.8,2e12.4)
1048*
1049* End of TESTDSDOT
1050*
1051 END
1052 SUBROUTINE stest1(SCOMP1,STRUE1,SSIZE,SFAC)
1053* ************************* STEST1 *****************************
1054*
1055* THIS IS AN INTERFACE SUBROUTINE TO ACCOMMODATE THE FORTRAN
1056* REQUIREMENT THAT WHEN A DUMMY ARGUMENT IS AN ARRAY, THE
1057* ACTUAL ARGUMENT MUST ALSO BE AN ARRAY OR AN ARRAY ELEMENT.
1058*
1059* C.L. LAWSON, JPL, 1978 DEC 6
1060*
1061* .. Scalar Arguments ..
1062 DOUBLE PRECISION SCOMP1, SFAC, STRUE1
1063* .. Array Arguments ..
1064 DOUBLE PRECISION SSIZE(*)
1065* .. Local Arrays ..
1066 DOUBLE PRECISION SCOMP(1), STRUE(1)
1067* .. External Subroutines ..
1068 EXTERNAL stest
1069* .. Executable Statements ..
1070*
1071 scomp(1) = scomp1
1072 strue(1) = strue1
1073 CALL stest(1,scomp,strue,ssize,sfac)
1074*
1075 RETURN
1076*
1077* End of STEST1
1078*
1079 END
1080 DOUBLE PRECISION FUNCTION sdiff(SA,SB)
1081* ********************************* SDIFF **************************
1082* COMPUTES DIFFERENCE OF TWO NUMBERS. C. L. LAWSON, JPL 1974 FEB 15
1083*
1084* .. Scalar Arguments ..
1085 DOUBLE PRECISION sa, sb
1086* .. Executable Statements ..
1087 sdiff = sa - sb
1088 RETURN
1089*
1090* End of SDIFF
1091*
1092 END
1093 SUBROUTINE itest1(ICOMP,ITRUE)
1094* ********************************* ITEST1 *************************
1095*
1096* THIS SUBROUTINE COMPARES THE VARIABLES ICOMP AND ITRUE FOR
1097* EQUALITY.
1098* C. L. LAWSON, JPL, 1974 DEC 10
1099*
1100* .. Parameters ..
1101 INTEGER NOUT
1102 parameter(nout=6)
1103* .. Scalar Arguments ..
1104 INTEGER ICOMP, ITRUE
1105* .. Scalars in Common ..
1106 INTEGER ICASE, INCX, INCY, N
1107 LOGICAL PASS
1108* .. Local Scalars ..
1109 INTEGER ID
1110* .. Common blocks ..
1111 COMMON /combla/icase, n, incx, incy, pass
1112* .. Executable Statements ..
1113*
1114 IF (icomp.EQ.itrue) GO TO 40
1115*
1116* HERE ICOMP IS NOT EQUAL TO ITRUE.
1117*
1118 IF ( .NOT. pass) GO TO 20
1119* PRINT FAIL MESSAGE AND HEADER.
1120 pass = .false.
1121 WRITE (nout,99999)
1122 WRITE (nout,99998)
1123 20 id = icomp - itrue
1124 WRITE (nout,99997) icase, n, incx, incy, icomp, itrue, id
1125 40 CONTINUE
1126 RETURN
1127*
112899999 FORMAT (' FAIL')
112999998 FORMAT (/' CASE N INCX INCY ',
1130 + ' COMP TRUE DIFFERENCE',
1131 + /1x)
113299997 FORMAT (1x,i4,i3,2i5,2i36,i12)
1133*
1134* End of ITEST1
1135*
1136 END
1137 SUBROUTINE db1nrm2(N,INCX,THRESH)
1138* Compare NRM2 with a reference computation using combinations
1139* of the following values:
1140*
1141* 0, very small, small, ulp, 1, 1/ulp, big, very big, infinity, NaN
1142*
1143* one of these values is used to initialize x(1) and x(2:N) is
1144* filled with random values from [-1,1] scaled by another of
1145* these values.
1146*
1147* This routine is adapted from the test suite provided by
1148* Anderson E. (2017)
1149* Algorithm 978: Safe Scaling in the Level 1 BLAS
1150* ACM Trans Math Softw 44:1--28
1151* https://doi.org/10.1145/3061665
1152*
1153* .. Scalar Arguments ..
1154 INTEGER INCX, N
1155 DOUBLE PRECISION THRESH
1156*
1157* =====================================================================
1158* .. Parameters ..
1159 INTEGER NMAX, NOUT, NV
1160 parameter(nmax=20, nout=6, nv=10)
1161 DOUBLE PRECISION HALF, ONE, TWO, ZERO
1162 parameter(half=0.5d+0, one=1.0d+0, two= 2.0d+0,
1163 & zero=0.0d+0)
1164* .. External Functions ..
1165 DOUBLE PRECISION DNRM2
1166 EXTERNAL dnrm2
1167* .. Intrinsic Functions ..
1168 INTRINSIC abs, dble, max, min, sqrt
1169* .. Model parameters ..
1170 DOUBLE PRECISION BIGNUM, SAFMAX, SAFMIN, SMLNUM, ULP
1171 parameter(bignum=0.99792015476735990583d+292,
1172 & safmax=0.44942328371557897693d+308,
1173 & safmin=0.22250738585072013831d-307,
1174 & smlnum=0.10020841800044863890d-291,
1175 & ulp=0.22204460492503130808d-015)
1176* .. Local Scalars ..
1177 DOUBLE PRECISION ROGUE, SNRM, TRAT, V0, V1, WORKSSQ, Y1, Y2,
1178 & YMAX, YMIN, YNRM, ZNRM
1179 INTEGER I, IV, IW, IX
1180 LOGICAL FIRST
1181* .. Local Arrays ..
1182 DOUBLE PRECISION VALUES(NV), WORK(NMAX), X(NMAX), Z(NMAX)
1183* .. Executable Statements ..
1184 values(1) = zero
1185 values(2) = two*safmin
1186 values(3) = smlnum
1187 values(4) = ulp
1188 values(5) = one
1189 values(6) = one / ulp
1190 values(7) = bignum
1191 values(8) = safmax
1192 values(9) = dxvals(v0,2)
1193 values(10) = dxvals(v0,3)
1194 rogue = -1234.5678d+0
1195 first = .true.
1196*
1197* Check that the arrays are large enough
1198*
1199 IF (n*abs(incx).GT.nmax) THEN
1200 WRITE (nout,99) "DNRM2", nmax, incx, n, n*abs(incx)
1201 RETURN
1202 END IF
1203*
1204* Zero-sized inputs are tested in STEST1.
1205 IF (n.LE.0) THEN
1206 RETURN
1207 END IF
1208*
1209* Generate (N-1) values in (-1,1).
1210*
1211 DO i = 2, n
1212 CALL random_number(work(i))
1213 work(i) = one - two*work(i)
1214 END DO
1215*
1216* Compute the sum of squares of the random values
1217* by an unscaled algorithm.
1218*
1219 workssq = zero
1220 DO i = 2, n
1221 workssq = workssq + work(i)*work(i)
1222 END DO
1223*
1224* Construct the test vector with one known value
1225* and the rest from the random work array multiplied
1226* by a scaling factor.
1227*
1228 DO iv = 1, nv
1229 v0 = values(iv)
1230 IF (abs(v0).GT.one) THEN
1231 v0 = v0*half
1232 END IF
1233 z(1) = v0
1234 DO iw = 1, nv
1235 v1 = values(iw)
1236 IF (abs(v1).GT.one) THEN
1237 v1 = (v1*half) / sqrt(dble(n))
1238 END IF
1239 DO i = 2, n
1240 z(i) = v1*work(i)
1241 END DO
1242*
1243* Compute the expected value of the 2-norm
1244*
1245 y1 = abs(v0)
1246 IF (n.GT.1) THEN
1247 y2 = abs(v1)*sqrt(workssq)
1248 ELSE
1249 y2 = zero
1250 END IF
1251 ymin = min(y1, y2)
1252 ymax = max(y1, y2)
1253*
1254* Expected value is NaN if either is NaN. The test
1255* for YMIN == YMAX avoids further computation if both
1256* are infinity.
1257*
1258 IF ((y1.NE.y1).OR.(y2.NE.y2)) THEN
1259* Add to propagate NaN
1260 ynrm = y1 + y2
1261 ELSE IF (ymax == zero) THEN
1262 ynrm = zero
1263 ELSE IF (ymin == ymax) THEN
1264 ynrm = sqrt(two)*ymax
1265 ELSE
1266 ynrm = ymax*sqrt(one + (ymin / ymax)**2)
1267 END IF
1268*
1269* Fill the input array to DNRM2 with steps of incx
1270*
1271 DO i = 1, n
1272 x(i) = rogue
1273 END DO
1274 ix = 1
1275 IF (incx.LT.0) ix = 1 - (n-1)*incx
1276 DO i = 1, n
1277 x(ix) = z(i)
1278 ix = ix + incx
1279 END DO
1280*
1281* Call DNRM2 to compute the 2-norm
1282*
1283 snrm = dnrm2(n,x,incx)
1284*
1285* Compare SNRM and ZNRM. Roundoff error grows like O(n)
1286* in this implementation so we scale the test ratio accordingly.
1287*
1288 IF (incx.EQ.0) THEN
1289 znrm = sqrt(dble(n))*abs(x(1))
1290 ELSE
1291 znrm = ynrm
1292 END IF
1293*
1294* The tests for NaN rely on the compiler not being overly
1295* aggressive and removing the statements altogether.
1296 IF ((snrm.NE.snrm).OR.(znrm.NE.znrm)) THEN
1297 IF ((snrm.NE.snrm).NEQV.(znrm.NE.znrm)) THEN
1298 trat = one / ulp
1299 ELSE
1300 trat = zero
1301 END IF
1302 ELSE IF (snrm == znrm) THEN
1303 trat = zero
1304 ELSE IF (znrm == zero) THEN
1305 trat = snrm / ulp
1306 ELSE
1307 trat = (abs(snrm-znrm) / znrm) / (dble(n)*ulp)
1308 END IF
1309 IF ((trat.NE.trat).OR.(trat.GE.thresh)) THEN
1310 IF (first) THEN
1311 first = .false.
1312 WRITE(nout,99999)
1313 END IF
1314 WRITE (nout,98) "DNRM2", n, incx, iv, iw, trat
1315 END IF
1316 END DO
1317 END DO
131899999 FORMAT (' FAIL')
1319 99 FORMAT ( ' Not enough space to test ', a6, ': NMAX = ',i6,
1320 + ', INCX = ',i6,/,' N = ',i6,', must be at least ',i6 )
1321 98 FORMAT( 1x, a6, ': N=', i6,', INCX=', i4, ', IV=', i2, ', IW=',
1322 + i2, ', test=', e15.8 )
1323 RETURN
1324 CONTAINS
1325 DOUBLE PRECISION FUNCTION dxvals(XX,K)
1326* .. Scalar Arguments ..
1327 DOUBLE PRECISION XX
1328 INTEGER K
1329* .. Local Scalars ..
1330 DOUBLE PRECISION X, Y, YY, Z
1331* .. Intrinsic Functions ..
1332 INTRINSIC huge
1333* .. Executable Statements ..
1334 y = huge(xx)
1335 z = yy
1336 IF (k.EQ.1) THEN
1337 x = -z
1338 ELSE IF (k.EQ.2) THEN
1339 x = z
1340 ELSE IF (k.EQ.3) THEN
1341 x = z / z
1342 END IF
1343 dxvals = x
1344 RETURN
1345 END
1346 END
subroutine stest(len, scomp, strue, ssize, sfac)
Definition cblat1.f:614
subroutine stest1(scomp1, strue1, ssize, sfac)
Definition cblat1.f:673
subroutine itest1(icomp, itrue)
Definition cblat1.f:748
subroutine header
Definition cblat1.f:91
real function sdiff(sa, sb)
Definition cblat1.f:701
subroutine check2(sfac)
Definition cblat1.f:348
subroutine check1(sfac)
Definition cblat1.f:122
subroutine check0(sfac)
Definition dblat1.f:130
subroutine testdsdot(scomp, strue, ssize, sfac)
Definition dblat1.f:1002
subroutine check3(sfac)
Definition dblat1.f:734
program dblat1
DBLAT1
Definition dblat1.f:36
subroutine db1nrm2(n, incx, thresh)
Definition dblat1.f:1138
subroutine daxpy(n, da, dx, incx, dy, incy)
DAXPY
Definition daxpy.f:89
subroutine dcopy(n, dx, incx, dy, incy)
DCOPY
Definition dcopy.f:82
subroutine drot(n, dx, incx, dy, incy, c, s)
DROT
Definition drot.f:92
subroutine drotg(a, b, c, s)
DROTG
Definition drotg.f90:92
subroutine drotm(n, dx, incx, dy, incy, dparam)
DROTM
Definition drotm.f:96
subroutine drotmg(dd1, dd2, dx1, dy1, dparam)
DROTMG
Definition drotmg.f:90
subroutine dscal(n, da, dx, incx)
DSCAL
Definition dscal.f:79
subroutine dswap(n, dx, incx, dy, incy)
DSWAP
Definition dswap.f:82