00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #define FORTRAN_FUNC(x) x ## _
00017
00018
00019
00020
00021 extern "C"
00022 {
00023 #ifdef USE_CBLAS
00024
00025
00026
00027
00028 #include "cblas.h"
00029
00030 #else
00031
00032
00033
00034
00035
00036 int FORTRAN_FUNC(dgemm)(const char* transa, const char* transb,
00037 const int* m, const int* n, const int* k,
00038 const double* alpha, const double* a, const int* lda,
00039 const double* b, const int* ldb, const double* beta,
00040 double* c, const int* ldc);
00041 int FORTRAN_FUNC(sgemm)(const char* transa, const char* transb,
00042 const int* m, const int* n, const int* k,
00043 const float* alpha, const float* a, const int* lda,
00044 const float* b, const int* ldb, const float* beta,
00045 float* c, const int* ldc);
00046 double FORTRAN_FUNC(ddot)(const int* N, const double *X, const int* incX,
00047 const double *Y, const int* incY);
00048 float FORTRAN_FUNC(sdot)(const int* N, const float *X, const int* incX,
00049 const float *Y, const int* incY);
00050
00051 void FORTRAN_FUNC(daxpy)(const int* N, const double *a,
00052 const double * x, const int* incx,
00053 double *y, const int* incy);
00054 #endif
00055 }