1
+ * > \brief \b CBLAT1
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 CBLAT1
12
+ *
13
+ *
14
+ * > \par Purpose:
15
+ * =============
16
+ * >
17
+ * > \verbatim
18
+ * >
19
+ * > Test program for the COMPLEX Level 1 BLAS.
20
+ * > Based upon the original BLAS test routine together with:
21
+ * >
22
+ * > F06GAF 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
+ * > \date April 2012
34
+ *
35
+ * > \ingroup complex_blas_testing
36
+ *
37
+ * =====================================================================
1
38
PROGRAM CBLAT1
2
- * Test program for the COMPLEX Level 1 BLAS.
3
- * Based upon the original BLAS test routine together with:
4
- * F06GAF Example Program Text
39
+ *
40
+ * -- Reference BLAS test routine (version 3.7.0) --
41
+ * -- Reference BLAS is a software package provided by Univ. of Tennessee, --
42
+ * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
43
+ * April 2012
44
+ *
45
+ * =====================================================================
46
+ *
5
47
* .. Parameters ..
6
48
INTEGER NOUT
7
49
PARAMETER (NOUT= 6 )
@@ -114,8 +156,8 @@ SUBROUTINE CHECK1(SFAC)
114
156
+ (5.0E0 ,6.0E0 ), (5.0E0 ,6.0E0 ), (0.1E0 ,0.1E0 ),
115
157
+ (- 0.6E0 ,0.1E0 ), (0.1E0 ,- 0.3E0 ), (7.0E0 ,8.0E0 ),
116
158
+ (7.0E0 ,8.0E0 ), (7.0E0 ,8.0E0 ), (7.0E0 ,8.0E0 ),
117
- + (7.0E0 ,8.0E0 ), (0.3E0 ,0.1E0 ), (0.1E0 ,0.4E0 ),
118
- + (0.4E0 ,0.1E0 ), (0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5 )/ (0.1E0 ,0.1E0 ),
137
179
+ (1.0E0 ,2.0E0 ), (1.0E0 ,2.0E0 ), (1.0E0 ,2.0E0 ),
138
180
+ (1.0E0 ,2.0E0 ), (1.0E0 ,2.0E0 ), (1.0E0 ,2.0E0 ),
@@ -145,8 +187,8 @@ SUBROUTINE CHECK1(SFAC)
145
187
+ (0.11E0 ,- 0.03E0 ), (- 0.17E0 ,0.46E0 ),
146
188
+ (- 0.17E0 ,- 0.19E0 ), (7.0E0 ,8.0E0 ), (7.0E0 ,8.0E0 ),
147
189
+ (7.0E0 ,8.0E0 ), (7.0E0 ,8.0E0 ), (7.0E0 ,8.0E0 ),
148
- + (0.19E0 ,- 0.17E0 ), (0.32E0 , 0.09E0 ),
149
- + (0.23E0 , - 0.24E0 ), (0.18E0 ,0.01E0 ),
190
+ + (0.19E0 ,- 0.17E0 ), (0.20E0 , - 0.35E0 ),
191
+ + (0.35E0 , 0.20E0 ), (0.14E0 ,0.08E0 ),
150
192
+ (2.0E0 ,3.0E0 ), (2.0E0 ,3.0E0 ), (2.0E0 ,3.0E0 ),
151
193
+ (2.0E0 ,3.0E0 )/
152
194
DATA ((CTRUE5(I,J,2 ),I= 1 ,8 ),J= 1 ,5 )/ (0.1E0 ,0.1E0 ),
@@ -162,9 +204,9 @@ SUBROUTINE CHECK1(SFAC)
162
204
+ (- 0.17E0 ,0.46E0 ), (4.0E0 ,7.0E0 ),
163
205
+ (- 0.17E0 ,- 0.19E0 ), (7.0E0 ,2.0E0 ), (7.0E0 ,2.0E0 ),
164
206
+ (7.0E0 ,2.0E0 ), (0.19E0 ,- 0.17E0 ), (5.0E0 ,8.0E0 ),
165
- + (0.32E0 , 0.09E0 ), (6.0E0 ,9.0E0 ),
166
- + (0.23E0 , - 0.24E0 ), (8.0E0 ,3.0E0 ),
167
- + (0.18E0 ,0.01E0 ), (9.0E0 ,4.0E0 )/
207
+ + (0.20E0 , - 0.35E0 ), (6.0E0 ,9.0E0 ),
208
+ + (0.35E0 ,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0 ,0.12E0 ), (6.0E0 ,9.0E0 ), (0.12E0 ,0.03E0 ),
197
- + (8.0E0 ,3.0E0 ), (0.03E0 ,0.06E0 ), (9.0E0 ,4.0E0 )/
238
+ + (0.15E0 ,0.00E0 ), (6.0E0 ,9.0E0 ), (0.00E0 ,0.15E0 ),
239
+ + (8.0E0 ,3.0E0 ), (0.00E0 ,0.06E0 ), (9.0E0 ,4.0E0 )/
198
240
DATA ITRUE3/ 0 , 1 , 2 , 2 , 2 /
199
241
* .. Executable Statements ..
200
242
DO 60 INCX = 1 , 2
@@ -529,7 +571,8 @@ SUBROUTINE STEST(LEN,SCOMP,STRUE,SSIZE,SFAC)
529
571
*
530
572
* .. Parameters ..
531
573
INTEGER NOUT
532
- PARAMETER (NOUT= 6 )
574
+ REAL ZERO
575
+ PARAMETER (NOUT= 6 , ZERO= 0.0E0 )
533
576
* .. Scalar Arguments ..
534
577
REAL SFAC
535
578
INTEGER LEN
@@ -552,7 +595,7 @@ SUBROUTINE STEST(LEN,SCOMP,STRUE,SSIZE,SFAC)
552
595
*
553
596
DO 40 I = 1 , LEN
554
597
SD = SCOMP(I) - STRUE(I)
555
- IF (SDIFF( ABS (SSIZE(I)) + ABS ( SFAC* SD), ABS (SSIZE(I))) .EQ. 0.0E0 )
598
+ IF (ABS (SFAC* SD) .LE. ABS (SSIZE(I))* EPSILON (ZERO) )
556
599
+ GO TO 40
557
600
*
558
601
* HERE SCOMP(I) IS NOT CLOSE TO STRUE(I).
0 commit comments