17 {
18
22
25
28 LDA = *k+1;
30 for( i=0; i<*m; i++ )
31 for( j=0; j<*k; j++ ) {
34 }
35 }
36 else {
37 LDA = *m+1;
39 for( i=0; i<*k; i++ )
40 for( j=0; j<*m; j++ ) {
43 }
44 }
45
47 LDB = *n+1;
49 for( i=0; i<*k; i++ )
50 for( j=0; j<*n; j++ ) {
53 }
54 }
55 else {
56 LDB = *k+1;
58 for( i=0; i<*n; i++ )
59 for( j=0; j<*k; j++ ) {
62 }
63 }
64
65 LDC = *n+1;
67 for( j=0; j<*n; j++ )
68 for( i=0; i<*m; i++ ) {
71 }
73 B, LDB, beta, C, LDC );
74 for( j=0; j<*n; j++ )
75 for( i=0; i<*m; i++ ) {
78 }
79 free(A);
80 free(B);
81 free(C);
82 }
85 b, *ldb, beta, c, *ldc );
86 else
88 b, *ldb, beta, c, *ldc );
89}
void cblas_zgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const CBLAS_INT M, const CBLAS_INT N, const CBLAS_INT K, const void *alpha, const void *A, const CBLAS_INT lda, const void *B, const CBLAS_INT ldb, const void *beta, void *C, const CBLAS_INT ldc)
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)