28 A = (
double *)malloc( (*m)*LDA*
sizeof( double ) );
31 A[i*LDA+j]=a[j*(*lda)+i];
35 A = (
double* )malloc( LDA*(*k)*
sizeof( double ) );
38 A[i*LDA+j]=a[j*(*lda)+i];
42 B = (
double* )malloc( (*k)*LDB*
sizeof( double ) );
45 B[i*LDB+j]=b[j*(*ldb)+i];
49 B = (
double* )malloc( LDB*(*n)*
sizeof( double ) );
52 B[i*LDB+j]=b[j*(*ldb)+i];
55 C = (
double* )malloc( (*m)*LDC*
sizeof( double ) );
58 C[i*LDC+j]=c[j*(*ldc)+i];
61 B, LDB, *beta, C, LDC );
64 c[j*(*ldc)+i]=C[i*LDC+j];
71 b, *ldb, *beta, c, *ldc );
74 b, *ldb, *beta, c, *ldc );
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
void cblas_dgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, const int M, const int N, const int K, const double alpha, const double *A, const int lda, const double *B, const int ldb, const double beta, double *C, const int ldc)