22 {
23
27
30
33 LDA = *k+1;
35 for( i=0; i<*m; i++ )
36 for( j=0; j<*k; j++ ) {
39 }
40 }
41 else {
42 LDA = *m+1;
44 for( i=0; i<*k; i++ )
45 for( j=0; j<*m; j++ ) {
48 }
49 }
50
52 LDB = *n+1;
54 for( i=0; i<*k; i++ )
55 for( j=0; j<*n; j++ ) {
58 }
59 }
60 else {
61 LDB = *k+1;
63 for( i=0; i<*n; i++ )
64 for( j=0; j<*k; j++ ) {
67 }
68 }
69
70 LDC = *n+1;
72 for( j=0; j<*n; j++ )
73 for( i=0; i<*m; i++ ) {
76 }
78 B, LDB, beta, C, LDC );
79 for( j=0; j<*n; j++ )
80 for( i=0; i<*m; i++ ) {
83 }
84 free(A);
85 free(B);
86 free(C);
87 }
90 b, *ldb, beta, c, *ldc );
91 else
93 b, *ldb, beta, c, *ldc );
94}
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)