LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
c_s3chke.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <string.h>
3#include "cblas.h"
4#include "cblas_test.h"
5
9
10#ifdef F77_Char
11void F77_xerbla(F77_Char F77_srname, void *vinfo
12#else
13void F77_xerbla(char *srname, void *vinfo
14#endif
16 , FORTRAN_STRLEN srname_len
17#endif
18);
19
20void chkxer(void) {
23 extern char *cblas_rout;
24 if (cblas_lerr == 1 ) {
25 printf("***** ILLEGAL VALUE OF PARAMETER NUMBER %d NOT DETECTED BY %s *****\n", cblas_info, cblas_rout);
26 cblas_ok = 0 ;
27 }
28 cblas_lerr = 1 ;
29}
30
31void F77_s3chke(char *rout
33 , FORTRAN_STRLEN rout_len
34#endif
35) {
36 char *sf = ( rout ) ;
37 float A[2] = {0.0,0.0},
38 B[2] = {0.0,0.0},
39 C[2] = {0.0,0.0},
40 ALPHA=0.0, BETA=0.0;
42 extern int RowMajorStrg;
43 extern char *cblas_rout;
44
45#ifndef HAS_ATTRIBUTE_WEAK_SUPPORT
46 if (link_xerbla) /* call these first to link */
47 {
50 }
51#endif
52
53 cblas_ok = TRUE ;
55
56 if (strncmp( sf,"cblas_sgemmtr" ,13)==0) {
57 cblas_rout = "cblas_sgemmtr" ;
58
59 cblas_info = 1;
61 ALPHA, A, 1, B, 1, BETA, C, 1 );
62 chkxer();
63 cblas_info = 1;
65 ALPHA, A, 1, B, 1, BETA, C, 1 );
66 chkxer();
67 cblas_info = 1;
69 ALPHA, A, 1, B, 1, BETA, C, 1 );
70 chkxer();
71 cblas_info = 1;
73 ALPHA, A, 1, B, 1, BETA, C, 1 );
74 chkxer();
75
76 cblas_info = 1;
78 ALPHA, A, 1, B, 1, BETA, C, 1 );
79 chkxer();
80 cblas_info = 1;
82 ALPHA, A, 1, B, 1, BETA, C, 1 );
83 chkxer();
84 cblas_info = 1;
86 ALPHA, A, 1, B, 1, BETA, C, 1 );
87 chkxer();
88 cblas_info = 1;
90 ALPHA, A, 1, B, 1, BETA, C, 1 );
91 chkxer();
92
95 ALPHA, A, 1, B, 1, BETA, C, 1 );
96 chkxer();
99 ALPHA, A, 1, B, 1, BETA, C, 1 );
100 chkxer();
101
104 ALPHA, A, 1, B, 1, BETA, C, 1 );
105 chkxer();
108 ALPHA, A, 1, B, 1, BETA, C, 1 );
109 chkxer();
110
113 ALPHA, A, 1, B, 1, BETA, C, 1 );
114 chkxer();
117 ALPHA, A, 1, B, 1, BETA, C, 1 );
118 chkxer();
119
120
123 ALPHA, A, 1, B, 1, BETA, C, 1 );
124 chkxer();
127 ALPHA, A, 1, B, 1, BETA, C, 1 );
128 chkxer();
131 ALPHA, A, 1, B, 1, BETA, C, 1 );
132 chkxer();
135 ALPHA, A, 1, B, 1, BETA, C, 1 );
136 chkxer();
137
140 ALPHA, A, 1, B, 1, BETA, C, 1 );
141 chkxer();
144 ALPHA, A, 1, B, 1, BETA, C, 1 );
145 chkxer();
148 ALPHA, A, 1, B, 1, BETA, C, 1 );
149 chkxer();
152 ALPHA, A, 1, B, 1, BETA, C, 1 );
153 chkxer();
154
155
158 ALPHA, A, 1, B, 1, BETA, C, 2 );
159 chkxer();
162 ALPHA, A, 1, B, 1, BETA, C, 2 );
163 chkxer();
166 ALPHA, A, 1, B, 2, BETA, C, 1 );
167 chkxer();
170 ALPHA, A, 1, B, 1, BETA, C, 1 );
171 chkxer();
172
175 ALPHA, A, 1, B, 1, BETA, C, 1 );
176 chkxer();
179 ALPHA, A, 2, B, 1, BETA, C, 1 );
180 chkxer();
183 ALPHA, A, 1, B, 1, BETA, C, 1 );
184 chkxer();
185
188 ALPHA, A, 2, B, 1, BETA, C, 1 );
189 chkxer();
192 ALPHA, A, 2, B, 2, BETA, C, 1 );
193 chkxer();
194
197 ALPHA, A, 2, B, 1, BETA, C, 1 );
198 chkxer();
201 ALPHA, A, 2, B, 2, BETA, C, 1 );
202 chkxer();
203
204 /* Row Major */
207 ALPHA, A, 1, B, 1, BETA, C, 1 );
208 chkxer();
211 ALPHA, A, 1, B, 1, BETA, C, 1 );
212 chkxer();
215 ALPHA, A, 1, B, 1, BETA, C, 1 );
216 chkxer();
219 ALPHA, A, 1, B, 1, BETA, C, 1 );
220 chkxer();
221
224 ALPHA, A, 1, B, 1, BETA, C, 1 );
225 chkxer();
228 ALPHA, A, 1, B, 1, BETA, C, 1 );
229 chkxer();
232 ALPHA, A, 1, B, 1, BETA, C, 1 );
233 chkxer();
236 ALPHA, A, 1, B, 1, BETA, C, 1 );
237 chkxer();
238
241 ALPHA, A, 1, B, 1, BETA, C, 2 );
242 chkxer();
245 ALPHA, A, 1, B, 2, BETA, C, 2 );
246 chkxer();
249 ALPHA, A, 1, B, 2, BETA, C, 1 );
250 chkxer();
253 ALPHA, A, 1, B, 1, BETA, C, 1 );
254 chkxer();
255
258 ALPHA, A, 1, B, 1, BETA, C, 1 );
259 chkxer();
262 ALPHA, A, 2, B, 1, BETA, C, 1 );
263 chkxer();
266 ALPHA, A, 1, B, 1, BETA, C, 1 );
267 chkxer();
268
271 ALPHA, A, 2, B, 2, BETA, C, 1 );
272 chkxer();
275 ALPHA, A, 2, B, 1, BETA, C, 1 );
276 chkxer();
279 ALPHA, A, 2, B, 2, BETA, C, 1 );
280 chkxer();
283 ALPHA, A, 2, B, 2, BETA, C, 1 );
284 chkxer();
285
286 } else if (strncmp( sf,"cblas_sgemm" ,11)==0) {
287 cblas_rout = "cblas_sgemm" ;
288 cblas_info = 1;
290 ALPHA, A, 1, B, 1, BETA, C, 1 );
291 chkxer();
292 cblas_info = 1;
294 ALPHA, A, 1, B, 1, BETA, C, 1 );
295 chkxer();
296 cblas_info = 1;
298 ALPHA, A, 1, B, 1, BETA, C, 1 );
299 chkxer();
300 cblas_info = 1;
302 ALPHA, A, 1, B, 1, BETA, C, 1 );
303 chkxer();
306 ALPHA, A, 1, B, 1, BETA, C, 1 );
307 chkxer();
310 ALPHA, A, 1, B, 1, BETA, C, 1 );
311 chkxer();
314 ALPHA, A, 1, B, 1, BETA, C, 1 );
315 chkxer();
318 ALPHA, A, 1, B, 1, BETA, C, 1 );
319 chkxer();
322 ALPHA, A, 1, B, 1, BETA, C, 1 );
323 chkxer();
326 ALPHA, A, 1, B, 1, BETA, C, 1 );
327 chkxer();
330 ALPHA, A, 1, B, 1, BETA, C, 1 );
331 chkxer();
334 ALPHA, A, 1, B, 1, BETA, C, 1 );
335 chkxer();
338 ALPHA, A, 1, B, 1, BETA, C, 1 );
339 chkxer();
342 ALPHA, A, 1, B, 1, BETA, C, 1 );
343 chkxer();
346 ALPHA, A, 1, B, 1, BETA, C, 1 );
347 chkxer();
350 ALPHA, A, 1, B, 1, BETA, C, 1 );
351 chkxer();
354 ALPHA, A, 1, B, 1, BETA, C, 1 );
355 chkxer();
358 ALPHA, A, 1, B, 1, BETA, C, 1 );
359 chkxer();
362 ALPHA, A, 1, B, 1, BETA, C, 1 );
363 chkxer();
366 ALPHA, A, 1, B, 1, BETA, C, 1 );
367 chkxer();
370 ALPHA, A, 1, B, 1, BETA, C, 2 );
371 chkxer();
374 ALPHA, A, 1, B, 1, BETA, C, 2 );
375 chkxer();
378 ALPHA, A, 1, B, 2, BETA, C, 1 );
379 chkxer();
382 ALPHA, A, 1, B, 1, BETA, C, 1 );
383 chkxer();
386 ALPHA, A, 1, B, 1, BETA, C, 1 );
387 chkxer();
390 ALPHA, A, 2, B, 1, BETA, C, 1 );
391 chkxer();
394 ALPHA, A, 1, B, 1, BETA, C, 1 );
395 chkxer();
398 ALPHA, A, 1, B, 1, BETA, C, 1 );
399 chkxer();
402 ALPHA, A, 2, B, 1, BETA, C, 1 );
403 chkxer();
406 ALPHA, A, 2, B, 1, BETA, C, 1 );
407 chkxer();
410 ALPHA, A, 1, B, 1, BETA, C, 1 );
411 chkxer();
414 ALPHA, A, 1, B, 1, BETA, C, 1 );
415 chkxer();
416
419 ALPHA, A, 1, B, 1, BETA, C, 1 );
420 chkxer();
423 ALPHA, A, 1, B, 1, BETA, C, 1 );
424 chkxer();
427 ALPHA, A, 1, B, 1, BETA, C, 1 );
428 chkxer();
431 ALPHA, A, 1, B, 1, BETA, C, 1 );
432 chkxer();
435 ALPHA, A, 1, B, 1, BETA, C, 1 );
436 chkxer();
439 ALPHA, A, 1, B, 1, BETA, C, 1 );
440 chkxer();
443 ALPHA, A, 1, B, 1, BETA, C, 1 );
444 chkxer();
447 ALPHA, A, 1, B, 1, BETA, C, 1 );
448 chkxer();
451 ALPHA, A, 1, B, 1, BETA, C, 1 );
452 chkxer();
455 ALPHA, A, 1, B, 1, BETA, C, 1 );
456 chkxer();
459 ALPHA, A, 1, B, 1, BETA, C, 1 );
460 chkxer();
463 ALPHA, A, 1, B, 1, BETA, C, 1 );
464 chkxer();
467 ALPHA, A, 1, B, 1, BETA, C, 2 );
468 chkxer();
471 ALPHA, A, 1, B, 2, BETA, C, 2 );
472 chkxer();
475 ALPHA, A, 1, B, 2, BETA, C, 1 );
476 chkxer();
479 ALPHA, A, 1, B, 1, BETA, C, 1 );
480 chkxer();
483 ALPHA, A, 1, B, 1, BETA, C, 1 );
484 chkxer();
487 ALPHA, A, 2, B, 1, BETA, C, 1 );
488 chkxer();
491 ALPHA, A, 2, B, 1, BETA, C, 1 );
492 chkxer();
495 ALPHA, A, 1, B, 1, BETA, C, 1 );
496 chkxer();
499 ALPHA, A, 1, B, 2, BETA, C, 1 );
500 chkxer();
503 ALPHA, A, 1, B, 1, BETA, C, 1 );
504 chkxer();
507 ALPHA, A, 1, B, 2, BETA, C, 1 );
508 chkxer();
511 ALPHA, A, 1, B, 1, BETA, C, 1 );
512 chkxer();
513
514 } else if (strncmp( sf,"cblas_ssymm" ,11)==0) {
515 cblas_rout = "cblas_ssymm" ;
516
517 cblas_info = 1;
519 ALPHA, A, 1, B, 1, BETA, C, 1 );
520 chkxer();
523 ALPHA, A, 1, B, 1, BETA, C, 1 );
524 chkxer();
527 ALPHA, A, 1, B, 1, BETA, C, 1 );
528 chkxer();
531 ALPHA, A, 1, B, 1, BETA, C, 1 );
532 chkxer();
535 ALPHA, A, 1, B, 1, BETA, C, 1 );
536 chkxer();
539 ALPHA, A, 1, B, 1, BETA, C, 1 );
540 chkxer();
543 ALPHA, A, 1, B, 1, BETA, C, 1 );
544 chkxer();
547 ALPHA, A, 1, B, 1, BETA, C, 1 );
548 chkxer();
551 ALPHA, A, 1, B, 1, BETA, C, 1 );
552 chkxer();
555 ALPHA, A, 1, B, 1, BETA, C, 1 );
556 chkxer();
559 ALPHA, A, 1, B, 1, BETA, C, 1 );
560 chkxer();
563 ALPHA, A, 1, B, 2, BETA, C, 2 );
564 chkxer();
567 ALPHA, A, 1, B, 1, BETA, C, 1 );
568 chkxer();
571 ALPHA, A, 1, B, 2, BETA, C, 2 );
572 chkxer();
575 ALPHA, A, 1, B, 1, BETA, C, 1 );
576 chkxer();
579 ALPHA, A, 2, B, 1, BETA, C, 1 );
580 chkxer();
583 ALPHA, A, 1, B, 1, BETA, C, 1 );
584 chkxer();
587 ALPHA, A, 2, B, 1, BETA, C, 1 );
588 chkxer();
591 ALPHA, A, 1, B, 1, BETA, C, 1 );
592 chkxer();
595 ALPHA, A, 2, B, 2, BETA, C, 1 );
596 chkxer();
599 ALPHA, A, 1, B, 2, BETA, C, 1 );
600 chkxer();
603 ALPHA, A, 2, B, 2, BETA, C, 1 );
604 chkxer();
607 ALPHA, A, 1, B, 2, BETA, C, 1 );
608 chkxer();
609
612 ALPHA, A, 1, B, 1, BETA, C, 1 );
613 chkxer();
616 ALPHA, A, 1, B, 1, BETA, C, 1 );
617 chkxer();
620 ALPHA, A, 1, B, 1, BETA, C, 1 );
621 chkxer();
624 ALPHA, A, 1, B, 1, BETA, C, 1 );
625 chkxer();
628 ALPHA, A, 1, B, 1, BETA, C, 1 );
629 chkxer();
632 ALPHA, A, 1, B, 1, BETA, C, 1 );
633 chkxer();
636 ALPHA, A, 1, B, 1, BETA, C, 1 );
637 chkxer();
640 ALPHA, A, 1, B, 1, BETA, C, 1 );
641 chkxer();
644 ALPHA, A, 1, B, 2, BETA, C, 2 );
645 chkxer();
648 ALPHA, A, 1, B, 1, BETA, C, 1 );
649 chkxer();
652 ALPHA, A, 1, B, 2, BETA, C, 2 );
653 chkxer();
656 ALPHA, A, 1, B, 1, BETA, C, 1 );
657 chkxer();
660 ALPHA, A, 2, B, 1, BETA, C, 1 );
661 chkxer();
664 ALPHA, A, 2, B, 1, BETA, C, 1 );
665 chkxer();
668 ALPHA, A, 2, B, 1, BETA, C, 1 );
669 chkxer();
672 ALPHA, A, 2, B, 1, BETA, C, 1 );
673 chkxer();
676 ALPHA, A, 1, B, 2, BETA, C, 1 );
677 chkxer();
680 ALPHA, A, 2, B, 2, BETA, C, 1 );
681 chkxer();
684 ALPHA, A, 1, B, 2, BETA, C, 1 );
685 chkxer();
688 ALPHA, A, 2, B, 2, BETA, C, 1 );
689 chkxer();
690
691 } else if (strncmp( sf,"cblas_strmm" ,11)==0) {
692 cblas_rout = "cblas_strmm" ;
693
694 cblas_info = 1;
696 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
697 chkxer();
700 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
701 chkxer();
704 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
705 chkxer();
708 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
709 chkxer();
712 INVALID, 0, 0, ALPHA, A, 1, B, 1 );
713 chkxer();
716 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
717 chkxer();
720 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
721 chkxer();
724 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
725 chkxer();
728 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
729 chkxer();
732 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
733 chkxer();
736 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
737 chkxer();
740 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
741 chkxer();
744 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
745 chkxer();
748 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
749 chkxer();
752 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
753 chkxer();
756 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
757 chkxer();
760 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
761 chkxer();
764 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
765 chkxer();
768 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
769 chkxer();
772 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
773 chkxer();
776 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
777 chkxer();
780 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
781 chkxer();
784 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
785 chkxer();
788 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
789 chkxer();
792 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
793 chkxer();
796 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
797 chkxer();
800 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
801 chkxer();
804 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
805 chkxer();
808 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
809 chkxer();
812 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
813 chkxer();
816 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
817 chkxer();
820 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
821 chkxer();
824 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
825 chkxer();
828 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
829 chkxer();
832 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
833 chkxer();
836 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
837 chkxer();
840 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
841 chkxer();
842
845 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
846 chkxer();
849 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
850 chkxer();
853 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
854 chkxer();
857 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
858 chkxer();
861 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
862 chkxer();
865 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
866 chkxer();
869 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
870 chkxer();
873 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
874 chkxer();
877 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
878 chkxer();
881 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
882 chkxer();
885 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
886 chkxer();
889 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
890 chkxer();
893 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
894 chkxer();
897 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
898 chkxer();
901 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
902 chkxer();
905 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
906 chkxer();
909 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
910 chkxer();
913 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
914 chkxer();
917 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
918 chkxer();
921 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
922 chkxer();
925 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
926 chkxer();
929 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
930 chkxer();
933 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
934 chkxer();
937 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
938 chkxer();
941 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
942 chkxer();
945 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
946 chkxer();
949 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
950 chkxer();
953 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
954 chkxer();
957 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
958 chkxer();
961 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
962 chkxer();
965 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
966 chkxer();
969 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
970 chkxer();
971
972 } else if (strncmp( sf,"cblas_strsm" ,11)==0) {
973 cblas_rout = "cblas_strsm" ;
974
975 cblas_info = 1;
977 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
978 chkxer();
981 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
982 chkxer();
985 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
986 chkxer();
989 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
990 chkxer();
993 INVALID, 0, 0, ALPHA, A, 1, B, 1 );
994 chkxer();
997 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
998 chkxer();
1001 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1002 chkxer();
1005 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1006 chkxer();
1009 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1010 chkxer();
1013 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1014 chkxer();
1017 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1018 chkxer();
1021 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1022 chkxer();
1025 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1026 chkxer();
1029 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1030 chkxer();
1033 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1034 chkxer();
1037 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1038 chkxer();
1041 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1042 chkxer();
1045 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1046 chkxer();
1049 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1050 chkxer();
1053 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1054 chkxer();
1057 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1058 chkxer();
1061 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1062 chkxer();
1065 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1066 chkxer();
1069 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1070 chkxer();
1073 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1074 chkxer();
1077 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1078 chkxer();
1081 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1082 chkxer();
1085 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1086 chkxer();
1089 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1090 chkxer();
1093 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1094 chkxer();
1097 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1098 chkxer();
1101 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1102 chkxer();
1105 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1106 chkxer();
1109 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1110 chkxer();
1113 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1114 chkxer();
1117 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1118 chkxer();
1121 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1122 chkxer();
1123
1126 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1127 chkxer();
1130 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1131 chkxer();
1134 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1135 chkxer();
1138 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1139 chkxer();
1142 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1143 chkxer();
1146 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1147 chkxer();
1150 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1151 chkxer();
1154 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1155 chkxer();
1158 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1159 chkxer();
1162 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1163 chkxer();
1166 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1167 chkxer();
1170 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1171 chkxer();
1174 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1175 chkxer();
1178 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1179 chkxer();
1182 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1183 chkxer();
1186 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1187 chkxer();
1190 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1191 chkxer();
1194 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1195 chkxer();
1198 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1199 chkxer();
1202 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1203 chkxer();
1206 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1207 chkxer();
1210 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1211 chkxer();
1214 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1215 chkxer();
1218 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1219 chkxer();
1222 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1223 chkxer();
1226 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1227 chkxer();
1230 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1231 chkxer();
1234 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1235 chkxer();
1238 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1239 chkxer();
1242 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1243 chkxer();
1246 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1247 chkxer();
1250 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1251 chkxer();
1252
1253 } else if (strncmp( sf,"cblas_ssyrk" ,11)==0) {
1254 cblas_rout = "cblas_ssyrk" ;
1255
1256 cblas_info = 1;
1258 0, 0, ALPHA, A, 1, BETA, C, 1 );
1259 chkxer();
1262 0, 0, ALPHA, A, 1, BETA, C, 1 );
1263 chkxer();
1266 0, 0, ALPHA, A, 1, BETA, C, 1 );
1267 chkxer();
1270 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1271 chkxer();
1274 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1275 chkxer();
1278 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1279 chkxer();
1282 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1283 chkxer();
1286 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1287 chkxer();
1290 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1291 chkxer();
1294 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1295 chkxer();
1298 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1299 chkxer();
1302 0, 2, ALPHA, A, 1, BETA, C, 2 );
1303 chkxer();
1306 2, 0, ALPHA, A, 1, BETA, C, 1 );
1307 chkxer();
1310 0, 2, ALPHA, A, 1, BETA, C, 2 );
1311 chkxer();
1314 2, 0, ALPHA, A, 1, BETA, C, 1 );
1315 chkxer();
1318 2, 0, ALPHA, A, 1, BETA, C, 2 );
1319 chkxer();
1322 0, 2, ALPHA, A, 1, BETA, C, 1 );
1323 chkxer();
1326 2, 0, ALPHA, A, 1, BETA, C, 2 );
1327 chkxer();
1330 0, 2, ALPHA, A, 1, BETA, C, 1 );
1331 chkxer();
1334 2, 0, ALPHA, A, 1, BETA, C, 1 );
1335 chkxer();
1338 2, 0, ALPHA, A, 2, BETA, C, 1 );
1339 chkxer();
1342 2, 0, ALPHA, A, 1, BETA, C, 1 );
1343 chkxer();
1346 2, 0, ALPHA, A, 2, BETA, C, 1 );
1347 chkxer();
1350 2, 0, ALPHA, A, 2, BETA, C, 1 );
1351 chkxer();
1354 2, 0, ALPHA, A, 1, BETA, C, 1 );
1355 chkxer();
1358 2, 0, ALPHA, A, 2, BETA, C, 1 );
1359 chkxer();
1362 2, 0, ALPHA, A, 1, BETA, C, 1 );
1363 chkxer();
1364
1365 } else if (strncmp( sf,"cblas_ssyr2k" ,12)==0) {
1366 cblas_rout = "cblas_ssyr2k" ;
1367
1368 cblas_info = 1;
1370 0, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1371 chkxer();
1374 0, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1375 chkxer();
1378 0, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1379 chkxer();
1382 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1383 chkxer();
1386 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1387 chkxer();
1390 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1391 chkxer();
1394 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1395 chkxer();
1398 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1399 chkxer();
1402 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1403 chkxer();
1406 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1407 chkxer();
1410 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1411 chkxer();
1414 0, 2, ALPHA, A, 1, B, 2, BETA, C, 2 );
1415 chkxer();
1418 2, 0, ALPHA, A, 1, B, 2, BETA, C, 1 );
1419 chkxer();
1422 0, 2, ALPHA, A, 1, B, 2, BETA, C, 2 );
1423 chkxer();
1426 2, 0, ALPHA, A, 1, B, 2, BETA, C, 1 );
1427 chkxer();
1430 2, 0, ALPHA, A, 1, B, 1, BETA, C, 2 );
1431 chkxer();
1434 0, 2, ALPHA, A, 1, B, 1, BETA, C, 1 );
1435 chkxer();
1438 2, 0, ALPHA, A, 1, B, 1, BETA, C, 2 );
1439 chkxer();
1442 0, 2, ALPHA, A, 1, B, 1, BETA, C, 1 );
1443 chkxer();
1446 0, 2, ALPHA, A, 2, B, 1, BETA, C, 2 );
1447 chkxer();
1450 2, 0, ALPHA, A, 2, B, 1, BETA, C, 1 );
1451 chkxer();
1454 0, 2, ALPHA, A, 2, B, 1, BETA, C, 2 );
1455 chkxer();
1458 2, 0, ALPHA, A, 2, B, 1, BETA, C, 1 );
1459 chkxer();
1462 2, 0, ALPHA, A, 2, B, 1, BETA, C, 2 );
1463 chkxer();
1466 0, 2, ALPHA, A, 2, B, 1, BETA, C, 1 );
1467 chkxer();
1470 2, 0, ALPHA, A, 2, B, 1, BETA, C, 2 );
1471 chkxer();
1474 0, 2, ALPHA, A, 2, B, 1, BETA, C, 1 );
1475 chkxer();
1478 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1479 chkxer();
1482 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1483 chkxer();
1486 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1487 chkxer();
1490 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1491 chkxer();
1494 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1495 chkxer();
1498 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1499 chkxer();
1502 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1503 chkxer();
1506 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1507 chkxer();
1508 }
1509 if (cblas_ok == TRUE )
1510 printf(" %-13s PASSED THE TESTS OF ERROR-EXITS\n", cblas_rout);
1511 else
1512 printf("***** %s FAILED THE TESTS OF ERROR-EXITS *******\n",cblas_rout);
1513}
CBLAS_INT cblas_lerr
Definition c_s3chke.c:6
void chkxer(void)
Definition c_s3chke.c:20
CBLAS_INT cblas_ok
Definition c_s3chke.c:6
CBLAS_INT cblas_info
Definition c_s3chke.c:6
char * cblas_rout
Definition c_s3chke.c:8
CBLAS_INT link_xerbla
Definition c_s3chke.c:7
void cblas_ssyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const CBLAS_INT N, const CBLAS_INT K, const float alpha, const float *A, const CBLAS_INT lda, const float beta, float *C, const CBLAS_INT ldc)
Definition cblas_ssyrk.c:12
void cblas_sgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const CBLAS_INT M, const CBLAS_INT N, const CBLAS_INT K, const float alpha, const float *A, const CBLAS_INT lda, const float *B, const CBLAS_INT ldb, const float beta, float *C, const CBLAS_INT ldc)
Definition cblas_sgemm.c:12
void cblas_strsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, float *B, const CBLAS_INT ldb)
Definition cblas_strsm.c:12
@ CblasLower
Definition cblas.h:41
@ CblasUpper
Definition cblas.h:41
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)
void cblas_sgemmtr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const CBLAS_INT N, const CBLAS_INT K, const float alpha, const float *A, const CBLAS_INT lda, const float *B, const CBLAS_INT ldb, const float beta, float *C, const CBLAS_INT ldc)
@ CblasNoTrans
Definition cblas.h:40
@ CblasTrans
Definition cblas.h:40
@ CblasRight
Definition cblas.h:43
@ CblasLeft
Definition cblas.h:43
void cblas_ssymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, const float *B, const CBLAS_INT ldb, const float beta, float *C, const CBLAS_INT ldc)
Definition cblas_ssymm.c:12
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
void cblas_strmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, float *B, const CBLAS_INT ldb)
Definition cblas_strmm.c:12
@ CblasNonUnit
Definition cblas.h:42
void cblas_ssyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const CBLAS_INT N, const CBLAS_INT K, const float alpha, const float *A, const CBLAS_INT lda, const float *B, const CBLAS_INT ldb, const float beta, float *C, const CBLAS_INT ldc)
#define CBLAS_INT
Definition cblas.h:24
#define INVALID
#define BLAS_FORTRAN_STRLEN_END
Definition cblas_f77.h:18
#define FORTRAN_STRLEN
Definition cblas_f77.h:21
#define F77_xerbla(...)
Definition cblas_f77.h:578
int RowMajorStrg
#define TRUE
Definition cblas_test.h:19
#define FALSE
Definition cblas_test.h:23
#define F77_s3chke
Definition cblas_test.h:159
#define PASSED
Definition cblas_test.h:20