LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
c_d3chke.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_d3chke(char *rout
33 , FORTRAN_STRLEN rout_len
34#endif
35) {
36 char *sf = ( rout ) ;
37 double 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_dgemmtr" ,13)==0) {
57 cblas_rout = "cblas_dgemmtr" ;
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_dgemm" ,11)==0) {
287 cblas_rout = "cblas_dgemm" ;
288
289 cblas_info = 1;
291 ALPHA, A, 1, B, 1, BETA, C, 1 );
292 chkxer();
293 cblas_info = 1;
295 ALPHA, A, 1, B, 1, BETA, C, 1 );
296 chkxer();
297 cblas_info = 1;
299 ALPHA, A, 1, B, 1, BETA, C, 1 );
300 chkxer();
301 cblas_info = 1;
303 ALPHA, A, 1, B, 1, BETA, C, 1 );
304 chkxer();
307 ALPHA, A, 1, B, 1, BETA, C, 1 );
308 chkxer();
311 ALPHA, A, 1, B, 1, BETA, C, 1 );
312 chkxer();
315 ALPHA, A, 1, B, 1, BETA, C, 1 );
316 chkxer();
319 ALPHA, A, 1, B, 1, BETA, C, 1 );
320 chkxer();
323 ALPHA, A, 1, B, 1, BETA, C, 1 );
324 chkxer();
327 ALPHA, A, 1, B, 1, BETA, C, 1 );
328 chkxer();
331 ALPHA, A, 1, B, 1, BETA, C, 1 );
332 chkxer();
335 ALPHA, A, 1, B, 1, BETA, C, 1 );
336 chkxer();
339 ALPHA, A, 1, B, 1, BETA, C, 1 );
340 chkxer();
343 ALPHA, A, 1, B, 1, BETA, C, 1 );
344 chkxer();
347 ALPHA, A, 1, B, 1, BETA, C, 1 );
348 chkxer();
351 ALPHA, A, 1, B, 1, BETA, C, 1 );
352 chkxer();
355 ALPHA, A, 1, B, 1, BETA, C, 1 );
356 chkxer();
359 ALPHA, A, 1, B, 1, BETA, C, 1 );
360 chkxer();
363 ALPHA, A, 1, B, 1, BETA, C, 1 );
364 chkxer();
367 ALPHA, A, 1, B, 1, BETA, C, 1 );
368 chkxer();
371 ALPHA, A, 1, B, 1, BETA, C, 2 );
372 chkxer();
375 ALPHA, A, 1, B, 1, BETA, C, 2 );
376 chkxer();
379 ALPHA, A, 1, B, 2, BETA, C, 1 );
380 chkxer();
383 ALPHA, A, 1, B, 1, BETA, C, 1 );
384 chkxer();
387 ALPHA, A, 1, B, 1, BETA, C, 1 );
388 chkxer();
391 ALPHA, A, 2, B, 1, BETA, C, 1 );
392 chkxer();
395 ALPHA, A, 1, B, 1, BETA, C, 1 );
396 chkxer();
399 ALPHA, A, 1, B, 1, BETA, C, 1 );
400 chkxer();
403 ALPHA, A, 2, B, 1, BETA, C, 1 );
404 chkxer();
407 ALPHA, A, 2, B, 1, BETA, C, 1 );
408 chkxer();
411 ALPHA, A, 1, B, 1, BETA, C, 1 );
412 chkxer();
415 ALPHA, A, 1, B, 1, BETA, C, 1 );
416 chkxer();
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_dsymm" ,11)==0) {
515 cblas_rout = "cblas_dsymm" ;
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();
611 ALPHA, A, 1, B, 1, BETA, C, 1 );
612 chkxer();
615 ALPHA, A, 1, B, 1, BETA, C, 1 );
616 chkxer();
619 ALPHA, A, 1, B, 1, BETA, C, 1 );
620 chkxer();
623 ALPHA, A, 1, B, 1, BETA, C, 1 );
624 chkxer();
627 ALPHA, A, 1, B, 1, BETA, C, 1 );
628 chkxer();
631 ALPHA, A, 1, B, 1, BETA, C, 1 );
632 chkxer();
635 ALPHA, A, 1, B, 1, BETA, C, 1 );
636 chkxer();
639 ALPHA, A, 1, B, 1, BETA, C, 1 );
640 chkxer();
643 ALPHA, A, 1, B, 2, BETA, C, 2 );
644 chkxer();
647 ALPHA, A, 1, B, 1, BETA, C, 1 );
648 chkxer();
651 ALPHA, A, 1, B, 2, BETA, C, 2 );
652 chkxer();
655 ALPHA, A, 1, B, 1, BETA, C, 1 );
656 chkxer();
659 ALPHA, A, 2, B, 1, BETA, C, 1 );
660 chkxer();
663 ALPHA, A, 2, B, 1, BETA, C, 1 );
664 chkxer();
667 ALPHA, A, 2, B, 1, BETA, C, 1 );
668 chkxer();
671 ALPHA, A, 2, B, 1, BETA, C, 1 );
672 chkxer();
675 ALPHA, A, 1, B, 2, BETA, C, 1 );
676 chkxer();
679 ALPHA, A, 2, B, 2, BETA, C, 1 );
680 chkxer();
683 ALPHA, A, 1, B, 2, BETA, C, 1 );
684 chkxer();
687 ALPHA, A, 2, B, 2, BETA, C, 1 );
688 chkxer();
689
690 } else if (strncmp( sf,"cblas_dtrmm" ,11)==0) {
691 cblas_rout = "cblas_dtrmm" ;
692
693 cblas_info = 1;
695 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
696 chkxer();
699 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
700 chkxer();
703 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
704 chkxer();
707 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
708 chkxer();
711 INVALID, 0, 0, ALPHA, A, 1, B, 1 );
712 chkxer();
715 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
716 chkxer();
719 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
720 chkxer();
723 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
724 chkxer();
727 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
728 chkxer();
731 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
732 chkxer();
735 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
736 chkxer();
739 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
740 chkxer();
743 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
744 chkxer();
747 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
748 chkxer();
751 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
752 chkxer();
755 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
756 chkxer();
759 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
760 chkxer();
763 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
764 chkxer();
767 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
768 chkxer();
771 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
772 chkxer();
775 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
776 chkxer();
779 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
780 chkxer();
783 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
784 chkxer();
787 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
788 chkxer();
791 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
792 chkxer();
795 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
796 chkxer();
799 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
800 chkxer();
803 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
804 chkxer();
807 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
808 chkxer();
811 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
812 chkxer();
815 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
816 chkxer();
819 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
820 chkxer();
823 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
824 chkxer();
827 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
828 chkxer();
831 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
832 chkxer();
835 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
836 chkxer();
839 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
840 chkxer();
843 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
844 chkxer();
847 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
848 chkxer();
851 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
852 chkxer();
855 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
856 chkxer();
859 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
860 chkxer();
863 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
864 chkxer();
867 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
868 chkxer();
871 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
872 chkxer();
875 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
876 chkxer();
879 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
880 chkxer();
883 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
884 chkxer();
887 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
888 chkxer();
891 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
892 chkxer();
895 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
896 chkxer();
899 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
900 chkxer();
903 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
904 chkxer();
907 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
908 chkxer();
911 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
912 chkxer();
915 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
916 chkxer();
919 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
920 chkxer();
923 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
924 chkxer();
927 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
928 chkxer();
931 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
932 chkxer();
935 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
936 chkxer();
939 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
940 chkxer();
943 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
944 chkxer();
947 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
948 chkxer();
951 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
952 chkxer();
955 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
956 chkxer();
959 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
960 chkxer();
963 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
964 chkxer();
967 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
968 chkxer();
969
970 } else if (strncmp( sf,"cblas_dtrsm" ,11)==0) {
971 cblas_rout = "cblas_dtrsm" ;
972
973 cblas_info = 1;
975 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
976 chkxer();
979 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
980 chkxer();
983 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
984 chkxer();
987 CblasNonUnit, 0, 0, ALPHA, A, 1, B, 1 );
988 chkxer();
991 INVALID, 0, 0, ALPHA, A, 1, B, 1 );
992 chkxer();
995 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
996 chkxer();
999 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1000 chkxer();
1003 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1004 chkxer();
1007 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1008 chkxer();
1011 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1012 chkxer();
1015 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1016 chkxer();
1019 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1020 chkxer();
1023 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1024 chkxer();
1027 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1028 chkxer();
1031 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1032 chkxer();
1035 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1036 chkxer();
1039 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1040 chkxer();
1043 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1044 chkxer();
1047 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1048 chkxer();
1051 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1052 chkxer();
1055 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1056 chkxer();
1059 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1060 chkxer();
1063 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1064 chkxer();
1067 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1068 chkxer();
1071 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1072 chkxer();
1075 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1076 chkxer();
1079 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 2 );
1080 chkxer();
1083 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1084 chkxer();
1087 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1088 chkxer();
1091 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1092 chkxer();
1095 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1096 chkxer();
1099 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1100 chkxer();
1103 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1104 chkxer();
1107 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1108 chkxer();
1111 CblasNonUnit, 2, 0, ALPHA, A, 2, B, 1 );
1112 chkxer();
1115 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1116 chkxer();
1119 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1120 chkxer();
1121
1124 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1125 chkxer();
1128 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1129 chkxer();
1132 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1133 chkxer();
1136 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1137 chkxer();
1140 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1141 chkxer();
1144 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1145 chkxer();
1148 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1149 chkxer();
1152 CblasNonUnit, INVALID, 0, ALPHA, A, 1, B, 1 );
1153 chkxer();
1156 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1157 chkxer();
1160 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1161 chkxer();
1164 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1165 chkxer();
1168 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1169 chkxer();
1172 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1173 chkxer();
1176 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1177 chkxer();
1180 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1181 chkxer();
1184 CblasNonUnit, 0, INVALID, ALPHA, A, 1, B, 1 );
1185 chkxer();
1188 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1189 chkxer();
1192 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1193 chkxer();
1196 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1197 chkxer();
1200 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1201 chkxer();
1204 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1205 chkxer();
1208 CblasNonUnit, 2, 0, ALPHA, A, 1, B, 1 );
1209 chkxer();
1212 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1213 chkxer();
1216 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 2 );
1217 chkxer();
1220 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1221 chkxer();
1224 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1225 chkxer();
1228 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1229 chkxer();
1232 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1233 chkxer();
1236 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1237 chkxer();
1240 CblasNonUnit, 0, 2, ALPHA, A, 1, B, 1 );
1241 chkxer();
1244 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1245 chkxer();
1248 CblasNonUnit, 0, 2, ALPHA, A, 2, B, 1 );
1249 chkxer();
1250
1251 } else if (strncmp( sf,"cblas_dsyrk" ,11)==0) {
1252 cblas_rout = "cblas_dsyrk" ;
1253
1254 cblas_info = 1;
1256 0, 0, ALPHA, A, 1, BETA, C, 1 );
1257 chkxer();
1260 0, 0, ALPHA, A, 1, BETA, C, 1 );
1261 chkxer();
1264 0, 0, ALPHA, A, 1, BETA, C, 1 );
1265 chkxer();
1268 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1269 chkxer();
1272 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1273 chkxer();
1276 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1277 chkxer();
1280 INVALID, 0, ALPHA, A, 1, BETA, C, 1 );
1281 chkxer();
1284 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1285 chkxer();
1288 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1289 chkxer();
1292 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1293 chkxer();
1296 0, INVALID, ALPHA, A, 1, BETA, C, 1 );
1297 chkxer();
1300 0, 2, ALPHA, A, 1, BETA, C, 2 );
1301 chkxer();
1304 2, 0, ALPHA, A, 1, BETA, C, 1 );
1305 chkxer();
1308 0, 2, ALPHA, A, 1, BETA, C, 2 );
1309 chkxer();
1312 2, 0, ALPHA, A, 1, BETA, C, 1 );
1313 chkxer();
1316 2, 0, ALPHA, A, 1, BETA, C, 2 );
1317 chkxer();
1320 0, 2, ALPHA, A, 1, BETA, C, 1 );
1321 chkxer();
1324 2, 0, ALPHA, A, 1, BETA, C, 2 );
1325 chkxer();
1328 0, 2, ALPHA, A, 1, BETA, C, 1 );
1329 chkxer();
1332 2, 0, ALPHA, A, 1, BETA, C, 1 );
1333 chkxer();
1336 2, 0, ALPHA, A, 2, BETA, C, 1 );
1337 chkxer();
1340 2, 0, ALPHA, A, 1, BETA, C, 1 );
1341 chkxer();
1344 2, 0, ALPHA, A, 2, BETA, C, 1 );
1345 chkxer();
1348 2, 0, ALPHA, A, 2, BETA, C, 1 );
1349 chkxer();
1352 2, 0, ALPHA, A, 1, BETA, C, 1 );
1353 chkxer();
1356 2, 0, ALPHA, A, 2, BETA, C, 1 );
1357 chkxer();
1360 2, 0, ALPHA, A, 1, BETA, C, 1 );
1361 chkxer();
1362
1363 } else if (strncmp( sf,"cblas_dsyr2k" ,12)==0) {
1364 cblas_rout = "cblas_dsyr2k" ;
1365
1366 cblas_info = 1;
1368 0, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1369 chkxer();
1372 0, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1373 chkxer();
1376 0, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1377 chkxer();
1380 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1381 chkxer();
1384 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1385 chkxer();
1388 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1389 chkxer();
1392 INVALID, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1393 chkxer();
1396 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1397 chkxer();
1400 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1401 chkxer();
1404 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1405 chkxer();
1408 0, INVALID, ALPHA, A, 1, B, 1, BETA, C, 1 );
1409 chkxer();
1412 0, 2, ALPHA, A, 1, B, 2, BETA, C, 2 );
1413 chkxer();
1416 2, 0, ALPHA, A, 1, B, 2, BETA, C, 1 );
1417 chkxer();
1420 0, 2, ALPHA, A, 1, B, 2, BETA, C, 2 );
1421 chkxer();
1424 2, 0, ALPHA, A, 1, B, 2, BETA, C, 1 );
1425 chkxer();
1428 2, 0, ALPHA, A, 1, B, 1, BETA, C, 2 );
1429 chkxer();
1432 0, 2, ALPHA, A, 1, B, 1, BETA, C, 1 );
1433 chkxer();
1436 2, 0, ALPHA, A, 1, B, 1, BETA, C, 2 );
1437 chkxer();
1440 0, 2, ALPHA, A, 1, B, 1, BETA, C, 1 );
1441 chkxer();
1444 0, 2, ALPHA, A, 2, B, 1, BETA, C, 2 );
1445 chkxer();
1448 2, 0, ALPHA, A, 2, B, 1, BETA, C, 1 );
1449 chkxer();
1452 0, 2, ALPHA, A, 2, B, 1, BETA, C, 2 );
1453 chkxer();
1456 2, 0, ALPHA, A, 2, B, 1, BETA, C, 1 );
1457 chkxer();
1460 2, 0, ALPHA, A, 2, B, 1, BETA, C, 2 );
1461 chkxer();
1464 0, 2, ALPHA, A, 2, B, 1, BETA, C, 1 );
1465 chkxer();
1468 2, 0, ALPHA, A, 2, B, 1, BETA, C, 2 );
1469 chkxer();
1472 0, 2, ALPHA, A, 2, B, 1, BETA, C, 1 );
1473 chkxer();
1476 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1477 chkxer();
1480 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1481 chkxer();
1484 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1485 chkxer();
1488 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1489 chkxer();
1492 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1493 chkxer();
1496 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1497 chkxer();
1500 2, 0, ALPHA, A, 2, B, 2, BETA, C, 1 );
1501 chkxer();
1504 2, 0, ALPHA, A, 1, B, 1, BETA, C, 1 );
1505 chkxer();
1506 }
1507 if (cblas_ok == TRUE )
1508 printf(" %-13s PASSED THE TESTS OF ERROR-EXITS\n", cblas_rout);
1509 else
1510 printf("***** %s FAILED THE TESTS OF ERROR-EXITS *******\n",cblas_rout);
1511}
CBLAS_INT cblas_lerr
Definition c_d3chke.c:6
void chkxer(void)
Definition c_d3chke.c:20
CBLAS_INT cblas_ok
Definition c_d3chke.c:6
CBLAS_INT cblas_info
Definition c_d3chke.c:6
char * cblas_rout
Definition c_d3chke.c:8
CBLAS_INT link_xerbla
Definition c_d3chke.c:7
void cblas_dsymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT lda, const double *B, const CBLAS_INT ldb, const double beta, double *C, const CBLAS_INT ldc)
Definition cblas_dsymm.c:12
void cblas_dtrsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT lda, double *B, const CBLAS_INT ldb)
Definition cblas_dtrsm.c:12
@ CblasLower
Definition cblas.h:41
@ CblasUpper
Definition cblas.h:41
void cblas_dtrmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT lda, double *B, const CBLAS_INT ldb)
Definition cblas_dtrmm.c:12
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)
@ CblasNoTrans
Definition cblas.h:40
@ CblasTrans
Definition cblas.h:40
@ CblasRight
Definition cblas.h:43
@ CblasLeft
Definition cblas.h:43
void cblas_dsyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const CBLAS_INT N, const CBLAS_INT K, const double alpha, const double *A, const CBLAS_INT lda, const double beta, double *C, const CBLAS_INT ldc)
Definition cblas_dsyrk.c:12
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
void cblas_dgemmtr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const CBLAS_INT N, const CBLAS_INT K, const double alpha, const double *A, const CBLAS_INT lda, const double *B, const CBLAS_INT ldb, const double beta, double *C, const CBLAS_INT ldc)
@ CblasNonUnit
Definition cblas.h:42
#define CBLAS_INT
Definition cblas.h:24
void cblas_dsyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE Trans, const CBLAS_INT N, const CBLAS_INT K, const double alpha, const double *A, const CBLAS_INT lda, const double *B, const CBLAS_INT ldb, const double beta, double *C, const CBLAS_INT ldc)
void cblas_dgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const CBLAS_INT M, const CBLAS_INT N, const CBLAS_INT K, const double alpha, const double *A, const CBLAS_INT lda, const double *B, const CBLAS_INT ldb, const double beta, double *C, const CBLAS_INT ldc)
Definition cblas_dgemm.c:12
#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_d3chke
Definition cblas_test.h:160
#define PASSED
Definition cblas_test.h:20