4 #include "cblas_test.h"
6 int cblas_ok, cblas_lerr, cblas_info;
11 void F77_xerbla(F77_Char F77_srname, void *vinfo);
13 void F77_xerbla(char *srname, void *vinfo);
17 extern int cblas_ok, cblas_lerr, cblas_info;
18 extern int link_xerbla;
19 extern char *cblas_rout;
20 if (cblas_lerr == 1 ) {
21 printf("***** ILLEGAL VALUE OF PARAMETER NUMBER %d NOT DETECTED BY %s *****\n", cblas_info, cblas_rout);
27 void F77_d2chke(char *rout) {
29 double A[2] = {0.0,0.0},
33 extern int cblas_info, cblas_lerr, cblas_ok;
34 extern int RowMajorStrg;
35 extern char *cblas_rout;
37 if (link_xerbla) /* call these first to link */
39 cblas_xerbla(cblas_info,cblas_rout,"");
40 F77_xerbla(cblas_rout,&cblas_info);
46 if (strncmp( sf,"cblas_dgemv",11)==0) {
47 cblas_rout = "cblas_dgemv";
49 cblas_dgemv(INVALID, CblasNoTrans, 0, 0,
50 ALPHA, A, 1, X, 1, BETA, Y, 1 );
52 cblas_info = 2; RowMajorStrg = FALSE;
53 cblas_dgemv(CblasColMajor, INVALID, 0, 0,
54 ALPHA, A, 1, X, 1, BETA, Y, 1 );
56 cblas_info = 3; RowMajorStrg = FALSE;
57 cblas_dgemv(CblasColMajor, CblasNoTrans, INVALID, 0,
58 ALPHA, A, 1, X, 1, BETA, Y, 1 );
60 cblas_info = 4; RowMajorStrg = FALSE;
61 cblas_dgemv(CblasColMajor, CblasNoTrans, 0, INVALID,
62 ALPHA, A, 1, X, 1, BETA, Y, 1 );
64 cblas_info = 7; RowMajorStrg = FALSE;
65 cblas_dgemv(CblasColMajor, CblasNoTrans, 2, 0,
66 ALPHA, A, 1, X, 1, BETA, Y, 1 );
68 cblas_info = 9; RowMajorStrg = FALSE;
69 cblas_dgemv(CblasColMajor, CblasNoTrans, 0, 0,
70 ALPHA, A, 1, X, 0, BETA, Y, 1 );
72 cblas_info = 12; RowMajorStrg = FALSE;
73 cblas_dgemv(CblasColMajor, CblasNoTrans, 0, 0,
74 ALPHA, A, 1, X, 1, BETA, Y, 0 );
77 cblas_info = 2; RowMajorStrg = TRUE; RowMajorStrg = TRUE;
78 cblas_dgemv(CblasRowMajor, INVALID, 0, 0,
79 ALPHA, A, 1, X, 1, BETA, Y, 1 );
81 cblas_info = 3; RowMajorStrg = TRUE;
82 cblas_dgemv(CblasRowMajor, CblasNoTrans, INVALID, 0,
83 ALPHA, A, 1, X, 1, BETA, Y, 1 );
85 cblas_info = 4; RowMajorStrg = TRUE;
86 cblas_dgemv(CblasRowMajor, CblasNoTrans, 0, INVALID,
87 ALPHA, A, 1, X, 1, BETA, Y, 1 );
89 cblas_info = 7; RowMajorStrg = TRUE;
90 cblas_dgemv(CblasRowMajor, CblasNoTrans, 0, 2,
91 ALPHA, A, 1, X, 1, BETA, Y, 1 );
93 cblas_info = 9; RowMajorStrg = TRUE;
94 cblas_dgemv(CblasRowMajor, CblasNoTrans, 0, 0,
95 ALPHA, A, 1, X, 0, BETA, Y, 1 );
97 cblas_info = 12; RowMajorStrg = TRUE;
98 cblas_dgemv(CblasRowMajor, CblasNoTrans, 0, 0,
99 ALPHA, A, 1, X, 1, BETA, Y, 0 );
101 } else if (strncmp( sf,"cblas_dgbmv",11)==0) {
102 cblas_rout = "cblas_dgbmv";
103 cblas_info = 1; RowMajorStrg = FALSE;
104 cblas_dgbmv(INVALID, CblasNoTrans, 0, 0, 0, 0,
105 ALPHA, A, 1, X, 1, BETA, Y, 1 );
107 cblas_info = 2; RowMajorStrg = FALSE;
108 cblas_dgbmv(CblasColMajor, INVALID, 0, 0, 0, 0,
109 ALPHA, A, 1, X, 1, BETA, Y, 1 );
111 cblas_info = 3; RowMajorStrg = FALSE;
112 cblas_dgbmv(CblasColMajor, CblasNoTrans, INVALID, 0, 0, 0,
113 ALPHA, A, 1, X, 1, BETA, Y, 1 );
115 cblas_info = 4; RowMajorStrg = FALSE;
116 cblas_dgbmv(CblasColMajor, CblasNoTrans, 0, INVALID, 0, 0,
117 ALPHA, A, 1, X, 1, BETA, Y, 1 );
119 cblas_info = 5; RowMajorStrg = FALSE;
120 cblas_dgbmv(CblasColMajor, CblasNoTrans, 0, 0, INVALID, 0,
121 ALPHA, A, 1, X, 1, BETA, Y, 1 );
123 cblas_info = 6; RowMajorStrg = FALSE;
124 cblas_dgbmv(CblasColMajor, CblasNoTrans, 2, 0, 0, INVALID,
125 ALPHA, A, 1, X, 1, BETA, Y, 1 );
127 cblas_info = 9; RowMajorStrg = FALSE;
128 cblas_dgbmv(CblasColMajor, CblasNoTrans, 0, 0, 1, 0,
129 ALPHA, A, 1, X, 1, BETA, Y, 1 );
131 cblas_info = 11; RowMajorStrg = FALSE;
132 cblas_dgbmv(CblasColMajor, CblasNoTrans, 0, 0, 0, 0,
133 ALPHA, A, 1, X, 0, BETA, Y, 1 );
135 cblas_info = 14; RowMajorStrg = FALSE;
136 cblas_dgbmv(CblasColMajor, CblasNoTrans, 0, 0, 0, 0,
137 ALPHA, A, 1, X, 1, BETA, Y, 0 );
139 cblas_info = 2; RowMajorStrg = TRUE;
140 cblas_dgbmv(CblasRowMajor, INVALID, 0, 0, 0, 0,
141 ALPHA, A, 1, X, 1, BETA, Y, 1 );
143 cblas_info = 3; RowMajorStrg = TRUE;
144 cblas_dgbmv(CblasRowMajor, CblasNoTrans, INVALID, 0, 0, 0,
145 ALPHA, A, 1, X, 1, BETA, Y, 1 );
147 cblas_info = 4; RowMajorStrg = TRUE;
148 cblas_dgbmv(CblasRowMajor, CblasNoTrans, 0, INVALID, 0, 0,
149 ALPHA, A, 1, X, 1, BETA, Y, 1 );
151 cblas_info = 5; RowMajorStrg = TRUE;
152 cblas_dgbmv(CblasRowMajor, CblasNoTrans, 0, 0, INVALID, 0,
153 ALPHA, A, 1, X, 1, BETA, Y, 1 );
155 cblas_info = 6; RowMajorStrg = TRUE;
156 cblas_dgbmv(CblasRowMajor, CblasNoTrans, 2, 0, 0, INVALID,
157 ALPHA, A, 1, X, 1, BETA, Y, 1 );
159 cblas_info = 9; RowMajorStrg = TRUE;
160 cblas_dgbmv(CblasRowMajor, CblasNoTrans, 0, 0, 1, 0,
161 ALPHA, A, 1, X, 1, BETA, Y, 1 );
163 cblas_info = 11; RowMajorStrg = TRUE;
164 cblas_dgbmv(CblasRowMajor, CblasNoTrans, 0, 0, 0, 0,
165 ALPHA, A, 1, X, 0, BETA, Y, 1 );
167 cblas_info = 14; RowMajorStrg = TRUE;
168 cblas_dgbmv(CblasRowMajor, CblasNoTrans, 0, 0, 0, 0,
169 ALPHA, A, 1, X, 1, BETA, Y, 0 );
171 } else if (strncmp( sf,"cblas_dsymv",11)==0) {
172 cblas_rout = "cblas_dsymv";
173 cblas_info = 1; RowMajorStrg = FALSE;
174 cblas_dsymv(INVALID, CblasUpper, 0,
175 ALPHA, A, 1, X, 1, BETA, Y, 1 );
177 cblas_info = 2; RowMajorStrg = FALSE;
178 cblas_dsymv(CblasColMajor, INVALID, 0,
179 ALPHA, A, 1, X, 1, BETA, Y, 1 );
181 cblas_info = 3; RowMajorStrg = FALSE;
182 cblas_dsymv(CblasColMajor, CblasUpper, INVALID,
183 ALPHA, A, 1, X, 1, BETA, Y, 1 );
185 cblas_info = 6; RowMajorStrg = FALSE;
186 cblas_dsymv(CblasColMajor, CblasUpper, 2,
187 ALPHA, A, 1, X, 1, BETA, Y, 1 );
189 cblas_info = 8; RowMajorStrg = FALSE;
190 cblas_dsymv(CblasColMajor, CblasUpper, 0,
191 ALPHA, A, 1, X, 0, BETA, Y, 1 );
193 cblas_info = 11; RowMajorStrg = FALSE;
194 cblas_dsymv(CblasColMajor, CblasUpper, 0,
195 ALPHA, A, 1, X, 1, BETA, Y, 0 );
197 cblas_info = 2; RowMajorStrg = TRUE;
198 cblas_dsymv(CblasRowMajor, INVALID, 0,
199 ALPHA, A, 1, X, 1, BETA, Y, 1 );
201 cblas_info = 3; RowMajorStrg = TRUE;
202 cblas_dsymv(CblasRowMajor, CblasUpper, INVALID,
203 ALPHA, A, 1, X, 1, BETA, Y, 1 );
205 cblas_info = 6; RowMajorStrg = TRUE;
206 cblas_dsymv(CblasRowMajor, CblasUpper, 2,
207 ALPHA, A, 1, X, 1, BETA, Y, 1 );
209 cblas_info = 8; RowMajorStrg = TRUE;
210 cblas_dsymv(CblasRowMajor, CblasUpper, 0,
211 ALPHA, A, 1, X, 0, BETA, Y, 1 );
213 cblas_info = 11; RowMajorStrg = TRUE;
214 cblas_dsymv(CblasRowMajor, CblasUpper, 0,
215 ALPHA, A, 1, X, 1, BETA, Y, 0 );
217 } else if (strncmp( sf,"cblas_dsbmv",11)==0) {
218 cblas_rout = "cblas_dsbmv";
219 cblas_info = 1; RowMajorStrg = FALSE;
220 cblas_dsbmv(INVALID, CblasUpper, 0, 0,
221 ALPHA, A, 1, X, 1, BETA, Y, 1 );
223 cblas_info = 2; RowMajorStrg = FALSE;
224 cblas_dsbmv(CblasColMajor, INVALID, 0, 0,
225 ALPHA, A, 1, X, 1, BETA, Y, 1 );
227 cblas_info = 3; RowMajorStrg = FALSE;
228 cblas_dsbmv(CblasColMajor, CblasUpper, INVALID, 0,
229 ALPHA, A, 1, X, 1, BETA, Y, 1 );
231 cblas_info = 4; RowMajorStrg = FALSE;
232 cblas_dsbmv(CblasColMajor, CblasUpper, 0, INVALID,
233 ALPHA, A, 1, X, 1, BETA, Y, 1 );
235 cblas_info = 7; RowMajorStrg = FALSE;
236 cblas_dsbmv(CblasColMajor, CblasUpper, 0, 1,
237 ALPHA, A, 1, X, 1, BETA, Y, 1 );
239 cblas_info = 9; RowMajorStrg = FALSE;
240 cblas_dsbmv(CblasColMajor, CblasUpper, 0, 0,
241 ALPHA, A, 1, X, 0, BETA, Y, 1 );
243 cblas_info = 12; RowMajorStrg = FALSE;
244 cblas_dsbmv(CblasColMajor, CblasUpper, 0, 0,
245 ALPHA, A, 1, X, 1, BETA, Y, 0 );
247 cblas_info = 2; RowMajorStrg = TRUE;
248 cblas_dsbmv(CblasRowMajor, INVALID, 0, 0,
249 ALPHA, A, 1, X, 1, BETA, Y, 1 );
251 cblas_info = 3; RowMajorStrg = TRUE;
252 cblas_dsbmv(CblasRowMajor, CblasUpper, INVALID, 0,
253 ALPHA, A, 1, X, 1, BETA, Y, 1 );
255 cblas_info = 4; RowMajorStrg = TRUE;
256 cblas_dsbmv(CblasRowMajor, CblasUpper, 0, INVALID,
257 ALPHA, A, 1, X, 1, BETA, Y, 1 );
259 cblas_info = 7; RowMajorStrg = TRUE;
260 cblas_dsbmv(CblasRowMajor, CblasUpper, 0, 1,
261 ALPHA, A, 1, X, 1, BETA, Y, 1 );
263 cblas_info = 9; RowMajorStrg = TRUE;
264 cblas_dsbmv(CblasRowMajor, CblasUpper, 0, 0,
265 ALPHA, A, 1, X, 0, BETA, Y, 1 );
267 cblas_info = 12; RowMajorStrg = TRUE;
268 cblas_dsbmv(CblasRowMajor, CblasUpper, 0, 0,
269 ALPHA, A, 1, X, 1, BETA, Y, 0 );
271 } else if (strncmp( sf,"cblas_dspmv",11)==0) {
272 cblas_rout = "cblas_dspmv";
273 cblas_info = 1; RowMajorStrg = FALSE;
274 cblas_dspmv(INVALID, CblasUpper, 0,
275 ALPHA, A, X, 1, BETA, Y, 1 );
277 cblas_info = 2; RowMajorStrg = FALSE;
278 cblas_dspmv(CblasColMajor, INVALID, 0,
279 ALPHA, A, X, 1, BETA, Y, 1 );
281 cblas_info = 3; RowMajorStrg = FALSE;
282 cblas_dspmv(CblasColMajor, CblasUpper, INVALID,
283 ALPHA, A, X, 1, BETA, Y, 1 );
285 cblas_info = 7; RowMajorStrg = FALSE;
286 cblas_dspmv(CblasColMajor, CblasUpper, 0,
287 ALPHA, A, X, 0, BETA, Y, 1 );
289 cblas_info = 10; RowMajorStrg = FALSE;
290 cblas_dspmv(CblasColMajor, CblasUpper, 0,
291 ALPHA, A, X, 1, BETA, Y, 0 );
293 cblas_info = 2; RowMajorStrg = TRUE;
294 cblas_dspmv(CblasRowMajor, INVALID, 0,
295 ALPHA, A, X, 1, BETA, Y, 1 );
297 cblas_info = 3; RowMajorStrg = TRUE;
298 cblas_dspmv(CblasRowMajor, CblasUpper, INVALID,
299 ALPHA, A, X, 1, BETA, Y, 1 );
301 cblas_info = 7; RowMajorStrg = TRUE;
302 cblas_dspmv(CblasRowMajor, CblasUpper, 0,
303 ALPHA, A, X, 0, BETA, Y, 1 );
305 cblas_info = 10; RowMajorStrg = TRUE;
306 cblas_dspmv(CblasRowMajor, CblasUpper, 0,
307 ALPHA, A, X, 1, BETA, Y, 0 );
309 } else if (strncmp( sf,"cblas_dtrmv",11)==0) {
310 cblas_rout = "cblas_dtrmv";
311 cblas_info = 1; RowMajorStrg = FALSE;
312 cblas_dtrmv(INVALID, CblasUpper, CblasNoTrans,
313 CblasNonUnit, 0, A, 1, X, 1 );
315 cblas_info = 2; RowMajorStrg = FALSE;
316 cblas_dtrmv(CblasColMajor, INVALID, CblasNoTrans,
317 CblasNonUnit, 0, A, 1, X, 1 );
319 cblas_info = 3; RowMajorStrg = FALSE;
320 cblas_dtrmv(CblasColMajor, CblasUpper, INVALID,
321 CblasNonUnit, 0, A, 1, X, 1 );
323 cblas_info = 4; RowMajorStrg = FALSE;
324 cblas_dtrmv(CblasColMajor, CblasUpper, CblasNoTrans,
325 INVALID, 0, A, 1, X, 1 );
327 cblas_info = 5; RowMajorStrg = FALSE;
328 cblas_dtrmv(CblasColMajor, CblasUpper, CblasNoTrans,
329 CblasNonUnit, INVALID, A, 1, X, 1 );
331 cblas_info = 7; RowMajorStrg = FALSE;
332 cblas_dtrmv(CblasColMajor, CblasUpper, CblasNoTrans,
333 CblasNonUnit, 2, A, 1, X, 1 );
335 cblas_info = 9; RowMajorStrg = FALSE;
336 cblas_dtrmv(CblasColMajor, CblasUpper, CblasNoTrans,
337 CblasNonUnit, 0, A, 1, X, 0 );
339 cblas_info = 2; RowMajorStrg = TRUE;
340 cblas_dtrmv(CblasRowMajor, INVALID, CblasNoTrans,
341 CblasNonUnit, 0, A, 1, X, 1 );
343 cblas_info = 3; RowMajorStrg = TRUE;
344 cblas_dtrmv(CblasRowMajor, CblasUpper, INVALID,
345 CblasNonUnit, 0, A, 1, X, 1 );
347 cblas_info = 4; RowMajorStrg = TRUE;
348 cblas_dtrmv(CblasRowMajor, CblasUpper, CblasNoTrans,
349 INVALID, 0, A, 1, X, 1 );
351 cblas_info = 5; RowMajorStrg = TRUE;
352 cblas_dtrmv(CblasRowMajor, CblasUpper, CblasNoTrans,
353 CblasNonUnit, INVALID, A, 1, X, 1 );
355 cblas_info = 7; RowMajorStrg = TRUE;
356 cblas_dtrmv(CblasRowMajor, CblasUpper, CblasNoTrans,
357 CblasNonUnit, 2, A, 1, X, 1 );
359 cblas_info = 9; RowMajorStrg = TRUE;
360 cblas_dtrmv(CblasRowMajor, CblasUpper, CblasNoTrans,
361 CblasNonUnit, 0, A, 1, X, 0 );
363 } else if (strncmp( sf,"cblas_dtbmv",11)==0) {
364 cblas_rout = "cblas_dtbmv";
365 cblas_info = 1; RowMajorStrg = FALSE;
366 cblas_dtbmv(INVALID, CblasUpper, CblasNoTrans,
367 CblasNonUnit, 0, 0, A, 1, X, 1 );
369 cblas_info = 2; RowMajorStrg = FALSE;
370 cblas_dtbmv(CblasColMajor, INVALID, CblasNoTrans,
371 CblasNonUnit, 0, 0, A, 1, X, 1 );
373 cblas_info = 3; RowMajorStrg = FALSE;
374 cblas_dtbmv(CblasColMajor, CblasUpper, INVALID,
375 CblasNonUnit, 0, 0, A, 1, X, 1 );
377 cblas_info = 4; RowMajorStrg = FALSE;
378 cblas_dtbmv(CblasColMajor, CblasUpper, CblasNoTrans,
379 INVALID, 0, 0, A, 1, X, 1 );
381 cblas_info = 5; RowMajorStrg = FALSE;
382 cblas_dtbmv(CblasColMajor, CblasUpper, CblasNoTrans,
383 CblasNonUnit, INVALID, 0, A, 1, X, 1 );
385 cblas_info = 6; RowMajorStrg = FALSE;
386 cblas_dtbmv(CblasColMajor, CblasUpper, CblasNoTrans,
387 CblasNonUnit, 0, INVALID, A, 1, X, 1 );
389 cblas_info = 8; RowMajorStrg = FALSE;
390 cblas_dtbmv(CblasColMajor, CblasUpper, CblasNoTrans,
391 CblasNonUnit, 0, 1, A, 1, X, 1 );
393 cblas_info = 10; RowMajorStrg = FALSE;
394 cblas_dtbmv(CblasColMajor, CblasUpper, CblasNoTrans,
395 CblasNonUnit, 0, 0, A, 1, X, 0 );
397 cblas_info = 2; RowMajorStrg = TRUE;
398 cblas_dtbmv(CblasRowMajor, INVALID, CblasNoTrans,
399 CblasNonUnit, 0, 0, A, 1, X, 1 );
401 cblas_info = 3; RowMajorStrg = TRUE;
402 cblas_dtbmv(CblasRowMajor, CblasUpper, INVALID,
403 CblasNonUnit, 0, 0, A, 1, X, 1 );
405 cblas_info = 4; RowMajorStrg = TRUE;
406 cblas_dtbmv(CblasRowMajor, CblasUpper, CblasNoTrans,
407 INVALID, 0, 0, A, 1, X, 1 );
409 cblas_info = 5; RowMajorStrg = TRUE;
410 cblas_dtbmv(CblasRowMajor, CblasUpper, CblasNoTrans,
411 CblasNonUnit, INVALID, 0, A, 1, X, 1 );
413 cblas_info = 6; RowMajorStrg = TRUE;
414 cblas_dtbmv(CblasRowMajor, CblasUpper, CblasNoTrans,
415 CblasNonUnit, 0, INVALID, A, 1, X, 1 );
417 cblas_info = 8; RowMajorStrg = TRUE;
418 cblas_dtbmv(CblasRowMajor, CblasUpper, CblasNoTrans,
419 CblasNonUnit, 0, 1, A, 1, X, 1 );
421 cblas_info = 10; RowMajorStrg = TRUE;
422 cblas_dtbmv(CblasRowMajor, CblasUpper, CblasNoTrans,
423 CblasNonUnit, 0, 0, A, 1, X, 0 );
425 } else if (strncmp( sf,"cblas_dtpmv",11)==0) {
426 cblas_rout = "cblas_dtpmv";
427 cblas_info = 1; RowMajorStrg = FALSE;
428 cblas_dtpmv(INVALID, CblasUpper, CblasNoTrans,
429 CblasNonUnit, 0, A, X, 1 );
431 cblas_info = 2; RowMajorStrg = FALSE;
432 cblas_dtpmv(CblasColMajor, INVALID, CblasNoTrans,
433 CblasNonUnit, 0, A, X, 1 );
435 cblas_info = 3; RowMajorStrg = FALSE;
436 cblas_dtpmv(CblasColMajor, CblasUpper, INVALID,
437 CblasNonUnit, 0, A, X, 1 );
439 cblas_info = 4; RowMajorStrg = FALSE;
440 cblas_dtpmv(CblasColMajor, CblasUpper, CblasNoTrans,
441 INVALID, 0, A, X, 1 );
443 cblas_info = 5; RowMajorStrg = FALSE;
444 cblas_dtpmv(CblasColMajor, CblasUpper, CblasNoTrans,
445 CblasNonUnit, INVALID, A, X, 1 );
447 cblas_info = 8; RowMajorStrg = FALSE;
448 cblas_dtpmv(CblasColMajor, CblasUpper, CblasNoTrans,
449 CblasNonUnit, 0, A, X, 0 );
451 cblas_info = 2; RowMajorStrg = TRUE;
452 cblas_dtpmv(CblasRowMajor, INVALID, CblasNoTrans,
453 CblasNonUnit, 0, A, X, 1 );
455 cblas_info = 3; RowMajorStrg = TRUE;
456 cblas_dtpmv(CblasRowMajor, CblasUpper, INVALID,
457 CblasNonUnit, 0, A, X, 1 );
459 cblas_info = 4; RowMajorStrg = TRUE;
460 cblas_dtpmv(CblasRowMajor, CblasUpper, CblasNoTrans,
461 INVALID, 0, A, X, 1 );
463 cblas_info = 5; RowMajorStrg = TRUE;
464 cblas_dtpmv(CblasRowMajor, CblasUpper, CblasNoTrans,
465 CblasNonUnit, INVALID, A, X, 1 );
467 cblas_info = 8; RowMajorStrg = TRUE;
468 cblas_dtpmv(CblasRowMajor, CblasUpper, CblasNoTrans,
469 CblasNonUnit, 0, A, X, 0 );
471 } else if (strncmp( sf,"cblas_dtrsv",11)==0) {
472 cblas_rout = "cblas_dtrsv";
473 cblas_info = 1; RowMajorStrg = FALSE;
474 cblas_dtrsv(INVALID, CblasUpper, CblasNoTrans,
475 CblasNonUnit, 0, A, 1, X, 1 );
477 cblas_info = 2; RowMajorStrg = FALSE;
478 cblas_dtrsv(CblasColMajor, INVALID, CblasNoTrans,
479 CblasNonUnit, 0, A, 1, X, 1 );
481 cblas_info = 3; RowMajorStrg = FALSE;
482 cblas_dtrsv(CblasColMajor, CblasUpper, INVALID,
483 CblasNonUnit, 0, A, 1, X, 1 );
485 cblas_info = 4; RowMajorStrg = FALSE;
486 cblas_dtrsv(CblasColMajor, CblasUpper, CblasNoTrans,
487 INVALID, 0, A, 1, X, 1 );
489 cblas_info = 5; RowMajorStrg = FALSE;
490 cblas_dtrsv(CblasColMajor, CblasUpper, CblasNoTrans,
491 CblasNonUnit, INVALID, A, 1, X, 1 );
493 cblas_info = 7; RowMajorStrg = FALSE;
494 cblas_dtrsv(CblasColMajor, CblasUpper, CblasNoTrans,
495 CblasNonUnit, 2, A, 1, X, 1 );
497 cblas_info = 9; RowMajorStrg = FALSE;
498 cblas_dtrsv(CblasColMajor, CblasUpper, CblasNoTrans,
499 CblasNonUnit, 0, A, 1, X, 0 );
501 cblas_info = 2; RowMajorStrg = TRUE;
502 cblas_dtrsv(CblasRowMajor, INVALID, CblasNoTrans,
503 CblasNonUnit, 0, A, 1, X, 1 );
505 cblas_info = 3; RowMajorStrg = TRUE;
506 cblas_dtrsv(CblasRowMajor, CblasUpper, INVALID,
507 CblasNonUnit, 0, A, 1, X, 1 );
509 cblas_info = 4; RowMajorStrg = TRUE;
510 cblas_dtrsv(CblasRowMajor, CblasUpper, CblasNoTrans,
511 INVALID, 0, A, 1, X, 1 );
513 cblas_info = 5; RowMajorStrg = TRUE;
514 cblas_dtrsv(CblasRowMajor, CblasUpper, CblasNoTrans,
515 CblasNonUnit, INVALID, A, 1, X, 1 );
517 cblas_info = 7; RowMajorStrg = TRUE;
518 cblas_dtrsv(CblasRowMajor, CblasUpper, CblasNoTrans,
519 CblasNonUnit, 2, A, 1, X, 1 );
521 cblas_info = 9; RowMajorStrg = TRUE;
522 cblas_dtrsv(CblasRowMajor, CblasUpper, CblasNoTrans,
523 CblasNonUnit, 0, A, 1, X, 0 );
525 } else if (strncmp( sf,"cblas_dtbsv",11)==0) {
526 cblas_rout = "cblas_dtbsv";
527 cblas_info = 1; RowMajorStrg = FALSE;
528 cblas_dtbsv(INVALID, CblasUpper, CblasNoTrans,
529 CblasNonUnit, 0, 0, A, 1, X, 1 );
531 cblas_info = 2; RowMajorStrg = FALSE;
532 cblas_dtbsv(CblasColMajor, INVALID, CblasNoTrans,
533 CblasNonUnit, 0, 0, A, 1, X, 1 );
535 cblas_info = 3; RowMajorStrg = FALSE;
536 cblas_dtbsv(CblasColMajor, CblasUpper, INVALID,
537 CblasNonUnit, 0, 0, A, 1, X, 1 );
539 cblas_info = 4; RowMajorStrg = FALSE;
540 cblas_dtbsv(CblasColMajor, CblasUpper, CblasNoTrans,
541 INVALID, 0, 0, A, 1, X, 1 );
543 cblas_info = 5; RowMajorStrg = FALSE;
544 cblas_dtbsv(CblasColMajor, CblasUpper, CblasNoTrans,
545 CblasNonUnit, INVALID, 0, A, 1, X, 1 );
547 cblas_info = 6; RowMajorStrg = FALSE;
548 cblas_dtbsv(CblasColMajor, CblasUpper, CblasNoTrans,
549 CblasNonUnit, 0, INVALID, A, 1, X, 1 );
551 cblas_info = 8; RowMajorStrg = FALSE;
552 cblas_dtbsv(CblasColMajor, CblasUpper, CblasNoTrans,
553 CblasNonUnit, 0, 1, A, 1, X, 1 );
555 cblas_info = 10; RowMajorStrg = FALSE;
556 cblas_dtbsv(CblasColMajor, CblasUpper, CblasNoTrans,
557 CblasNonUnit, 0, 0, A, 1, X, 0 );
559 cblas_info = 2; RowMajorStrg = TRUE;
560 cblas_dtbsv(CblasRowMajor, INVALID, CblasNoTrans,
561 CblasNonUnit, 0, 0, A, 1, X, 1 );
563 cblas_info = 3; RowMajorStrg = TRUE;
564 cblas_dtbsv(CblasRowMajor, CblasUpper, INVALID,
565 CblasNonUnit, 0, 0, A, 1, X, 1 );
567 cblas_info = 4; RowMajorStrg = TRUE;
568 cblas_dtbsv(CblasRowMajor, CblasUpper, CblasNoTrans,
569 INVALID, 0, 0, A, 1, X, 1 );
571 cblas_info = 5; RowMajorStrg = TRUE;
572 cblas_dtbsv(CblasRowMajor, CblasUpper, CblasNoTrans,
573 CblasNonUnit, INVALID, 0, A, 1, X, 1 );
575 cblas_info = 6; RowMajorStrg = TRUE;
576 cblas_dtbsv(CblasRowMajor, CblasUpper, CblasNoTrans,
577 CblasNonUnit, 0, INVALID, A, 1, X, 1 );
579 cblas_info = 8; RowMajorStrg = TRUE;
580 cblas_dtbsv(CblasRowMajor, CblasUpper, CblasNoTrans,
581 CblasNonUnit, 0, 1, A, 1, X, 1 );
583 cblas_info = 10; RowMajorStrg = TRUE;
584 cblas_dtbsv(CblasRowMajor, CblasUpper, CblasNoTrans,
585 CblasNonUnit, 0, 0, A, 1, X, 0 );
587 } else if (strncmp( sf,"cblas_dtpsv",11)==0) {
588 cblas_rout = "cblas_dtpsv";
589 cblas_info = 1; RowMajorStrg = FALSE;
590 cblas_dtpsv(INVALID, CblasUpper, CblasNoTrans,
591 CblasNonUnit, 0, A, X, 1 );
593 cblas_info = 2; RowMajorStrg = FALSE;
594 cblas_dtpsv(CblasColMajor, INVALID, CblasNoTrans,
595 CblasNonUnit, 0, A, X, 1 );
597 cblas_info = 3; RowMajorStrg = FALSE;
598 cblas_dtpsv(CblasColMajor, CblasUpper, INVALID,
599 CblasNonUnit, 0, A, X, 1 );
601 cblas_info = 4; RowMajorStrg = FALSE;
602 cblas_dtpsv(CblasColMajor, CblasUpper, CblasNoTrans,
603 INVALID, 0, A, X, 1 );
605 cblas_info = 5; RowMajorStrg = FALSE;
606 cblas_dtpsv(CblasColMajor, CblasUpper, CblasNoTrans,
607 CblasNonUnit, INVALID, A, X, 1 );
609 cblas_info = 8; RowMajorStrg = FALSE;
610 cblas_dtpsv(CblasColMajor, CblasUpper, CblasNoTrans,
611 CblasNonUnit, 0, A, X, 0 );
613 cblas_info = 2; RowMajorStrg = TRUE;
614 cblas_dtpsv(CblasRowMajor, INVALID, CblasNoTrans,
615 CblasNonUnit, 0, A, X, 1 );
617 cblas_info = 3; RowMajorStrg = TRUE;
618 cblas_dtpsv(CblasRowMajor, CblasUpper, INVALID,
619 CblasNonUnit, 0, A, X, 1 );
621 cblas_info = 4; RowMajorStrg = TRUE;
622 cblas_dtpsv(CblasRowMajor, CblasUpper, CblasNoTrans,
623 INVALID, 0, A, X, 1 );
625 cblas_info = 5; RowMajorStrg = TRUE;
626 cblas_dtpsv(CblasRowMajor, CblasUpper, CblasNoTrans,
627 CblasNonUnit, INVALID, A, X, 1 );
629 cblas_info = 8; RowMajorStrg = TRUE;
630 cblas_dtpsv(CblasRowMajor, CblasUpper, CblasNoTrans,
631 CblasNonUnit, 0, A, X, 0 );
633 } else if (strncmp( sf,"cblas_dger",10)==0) {
634 cblas_rout = "cblas_dger";
635 cblas_info = 1; RowMajorStrg = FALSE;
636 cblas_dger(INVALID, 0, 0, ALPHA, X, 1, Y, 1, A, 1 );
638 cblas_info = 2; RowMajorStrg = FALSE;
639 cblas_dger(CblasColMajor, INVALID, 0, ALPHA, X, 1, Y, 1, A, 1 );
641 cblas_info = 3; RowMajorStrg = FALSE;
642 cblas_dger(CblasColMajor, 0, INVALID, ALPHA, X, 1, Y, 1, A, 1 );
644 cblas_info = 6; RowMajorStrg = FALSE;
645 cblas_dger(CblasColMajor, 0, 0, ALPHA, X, 0, Y, 1, A, 1 );
647 cblas_info = 8; RowMajorStrg = FALSE;
648 cblas_dger(CblasColMajor, 0, 0, ALPHA, X, 1, Y, 0, A, 1 );
650 cblas_info = 10; RowMajorStrg = FALSE;
651 cblas_dger(CblasColMajor, 2, 0, ALPHA, X, 1, Y, 1, A, 1 );
653 cblas_info = 2; RowMajorStrg = TRUE;
654 cblas_dger(CblasRowMajor, INVALID, 0, ALPHA, X, 1, Y, 1, A, 1 );
656 cblas_info = 3; RowMajorStrg = TRUE;
657 cblas_dger(CblasRowMajor, 0, INVALID, ALPHA, X, 1, Y, 1, A, 1 );
659 cblas_info = 6; RowMajorStrg = TRUE;
660 cblas_dger(CblasRowMajor, 0, 0, ALPHA, X, 0, Y, 1, A, 1 );
662 cblas_info = 8; RowMajorStrg = TRUE;
663 cblas_dger(CblasRowMajor, 0, 0, ALPHA, X, 1, Y, 0, A, 1 );
665 cblas_info = 10; RowMajorStrg = TRUE;
666 cblas_dger(CblasRowMajor, 0, 2, ALPHA, X, 1, Y, 1, A, 1 );
668 } else if (strncmp( sf,"cblas_dsyr2",11)==0) {
669 cblas_rout = "cblas_dsyr2";
670 cblas_info = 1; RowMajorStrg = FALSE;
671 cblas_dsyr2(INVALID, CblasUpper, 0, ALPHA, X, 1, Y, 1, A, 1 );
673 cblas_info = 2; RowMajorStrg = FALSE;
674 cblas_dsyr2(CblasColMajor, INVALID, 0, ALPHA, X, 1, Y, 1, A, 1 );
676 cblas_info = 3; RowMajorStrg = FALSE;
677 cblas_dsyr2(CblasColMajor, CblasUpper, INVALID, ALPHA, X, 1, Y, 1, A, 1 );
679 cblas_info = 6; RowMajorStrg = FALSE;
680 cblas_dsyr2(CblasColMajor, CblasUpper, 0, ALPHA, X, 0, Y, 1, A, 1 );
682 cblas_info = 8; RowMajorStrg = FALSE;
683 cblas_dsyr2(CblasColMajor, CblasUpper, 0, ALPHA, X, 1, Y, 0, A, 1 );
685 cblas_info = 10; RowMajorStrg = FALSE;
686 cblas_dsyr2(CblasColMajor, CblasUpper, 2, ALPHA, X, 1, Y, 1, A, 1 );
688 cblas_info = 2; RowMajorStrg = TRUE;
689 cblas_dsyr2(CblasRowMajor, INVALID, 0, ALPHA, X, 1, Y, 1, A, 1 );
691 cblas_info = 3; RowMajorStrg = TRUE;
692 cblas_dsyr2(CblasRowMajor, CblasUpper, INVALID, ALPHA, X, 1, Y, 1, A, 1 );
694 cblas_info = 6; RowMajorStrg = TRUE;
695 cblas_dsyr2(CblasRowMajor, CblasUpper, 0, ALPHA, X, 0, Y, 1, A, 1 );
697 cblas_info = 8; RowMajorStrg = TRUE;
698 cblas_dsyr2(CblasRowMajor, CblasUpper, 0, ALPHA, X, 1, Y, 0, A, 1 );
700 cblas_info = 10; RowMajorStrg = TRUE;
701 cblas_dsyr2(CblasRowMajor, CblasUpper, 2, ALPHA, X, 1, Y, 1, A, 1 );
703 } else if (strncmp( sf,"cblas_dspr2",11)==0) {
704 cblas_rout = "cblas_dspr2";
705 cblas_info = 1; RowMajorStrg = FALSE;
706 cblas_dspr2(INVALID, CblasUpper, 0, ALPHA, X, 1, Y, 1, A );
708 cblas_info = 2; RowMajorStrg = FALSE;
709 cblas_dspr2(CblasColMajor, INVALID, 0, ALPHA, X, 1, Y, 1, A );
711 cblas_info = 3; RowMajorStrg = FALSE;
712 cblas_dspr2(CblasColMajor, CblasUpper, INVALID, ALPHA, X, 1, Y, 1, A );
714 cblas_info = 6; RowMajorStrg = FALSE;
715 cblas_dspr2(CblasColMajor, CblasUpper, 0, ALPHA, X, 0, Y, 1, A );
717 cblas_info = 8; RowMajorStrg = FALSE;
718 cblas_dspr2(CblasColMajor, CblasUpper, 0, ALPHA, X, 1, Y, 0, A );
720 cblas_info = 2; RowMajorStrg = TRUE;
721 cblas_dspr2(CblasRowMajor, INVALID, 0, ALPHA, X, 1, Y, 1, A );
723 cblas_info = 3; RowMajorStrg = TRUE;
724 cblas_dspr2(CblasRowMajor, CblasUpper, INVALID, ALPHA, X, 1, Y, 1, A );
726 cblas_info = 6; RowMajorStrg = TRUE;
727 cblas_dspr2(CblasRowMajor, CblasUpper, 0, ALPHA, X, 0, Y, 1, A );
729 cblas_info = 8; RowMajorStrg = TRUE;
730 cblas_dspr2(CblasRowMajor, CblasUpper, 0, ALPHA, X, 1, Y, 0, A );
732 } else if (strncmp( sf,"cblas_dsyr",10)==0) {
733 cblas_rout = "cblas_dsyr";
734 cblas_info = 1; RowMajorStrg = FALSE;
735 cblas_dsyr(INVALID, CblasUpper, 0, ALPHA, X, 1, A, 1 );
737 cblas_info = 2; RowMajorStrg = FALSE;
738 cblas_dsyr(CblasColMajor, INVALID, 0, ALPHA, X, 1, A, 1 );
740 cblas_info = 3; RowMajorStrg = FALSE;
741 cblas_dsyr(CblasColMajor, CblasUpper, INVALID, ALPHA, X, 1, A, 1 );
743 cblas_info = 6; RowMajorStrg = FALSE;
744 cblas_dsyr(CblasColMajor, CblasUpper, 0, ALPHA, X, 0, A, 1 );
746 cblas_info = 8; RowMajorStrg = FALSE;
747 cblas_dsyr(CblasColMajor, CblasUpper, 2, ALPHA, X, 1, A, 1 );
749 cblas_info = 2; RowMajorStrg = TRUE;
750 cblas_dsyr(CblasRowMajor, INVALID, 0, ALPHA, X, 1, A, 1 );
752 cblas_info = 3; RowMajorStrg = TRUE;
753 cblas_dsyr(CblasRowMajor, CblasUpper, INVALID, ALPHA, X, 1, A, 1 );
755 cblas_info = 6; RowMajorStrg = TRUE;
756 cblas_dsyr(CblasRowMajor, CblasUpper, 0, ALPHA, X, 0, A, 1 );
758 cblas_info = 8; RowMajorStrg = TRUE;
759 cblas_dsyr(CblasRowMajor, CblasUpper, 2, ALPHA, X, 1, A, 1 );
761 } else if (strncmp( sf,"cblas_dspr",10)==0) {
762 cblas_rout = "cblas_dspr";
763 cblas_info = 1; RowMajorStrg = FALSE;
764 cblas_dspr(INVALID, CblasUpper, 0, ALPHA, X, 1, A );
766 cblas_info = 2; RowMajorStrg = FALSE;
767 cblas_dspr(CblasColMajor, INVALID, 0, ALPHA, X, 1, A );
769 cblas_info = 3; RowMajorStrg = FALSE;
770 cblas_dspr(CblasColMajor, CblasUpper, INVALID, ALPHA, X, 1, A );
772 cblas_info = 6; RowMajorStrg = FALSE;
773 cblas_dspr(CblasColMajor, CblasUpper, 0, ALPHA, X, 0, A );
775 cblas_info = 2; RowMajorStrg = FALSE;
776 cblas_dspr(CblasColMajor, INVALID, 0, ALPHA, X, 1, A );
778 cblas_info = 3; RowMajorStrg = FALSE;
779 cblas_dspr(CblasColMajor, CblasUpper, INVALID, ALPHA, X, 1, A );
781 cblas_info = 6; RowMajorStrg = FALSE;
782 cblas_dspr(CblasColMajor, CblasUpper, 0, ALPHA, X, 0, A );
785 if (cblas_ok == TRUE)
786 printf(" %-12s PASSED THE TESTS OF ERROR-EXITS\n", cblas_rout);
788 printf("******* %s FAILED THE TESTS OF ERROR-EXITS *******\n",cblas_rout);