eigen/blas/xerbla.cpp

24 lines
364 B
C++
Raw Normal View History

2015-02-11 02:22:05 +08:00
#include <stdio.h>
#if (defined __GNUC__) && (!defined __MINGW32__)
2011-12-11 02:30:36 +08:00
#define EIGEN_WEAK_LINKING __attribute__ ((weak))
#else
#define EIGEN_WEAK_LINKING
#endif
#ifdef __cplusplus
extern "C"
{
#endif
2011-12-11 02:30:36 +08:00
EIGEN_WEAK_LINKING int xerbla_(const char * msg, int *info, int)
{
2015-02-11 02:22:05 +08:00
printf("Eigen BLAS ERROR #%i: %s\n", *info, msg );
return 0;
}
#ifdef __cplusplus
}
#endif