diff options
Diffstat (limited to 'blas/xerbla.cpp')
-rw-r--r-- | blas/xerbla.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/blas/xerbla.cpp b/blas/xerbla.cpp new file mode 100644 index 000000000..0d57710fe --- /dev/null +++ b/blas/xerbla.cpp @@ -0,0 +1,23 @@ + +#include <iostream> + +#if (defined __GNUC__) +#define EIGEN_WEAK_LINKING __attribute__ ((weak)) +#else +#define EIGEN_WEAK_LINKING +#endif + +#ifdef __cplusplus +extern "C" +{ +#endif + +EIGEN_WEAK_LINKING int xerbla_(const char * msg, int *info, int) +{ + std::cerr << "Eigen BLAS ERROR #" << *info << ": " << msg << "\n"; + return 0; +} + +#ifdef __cplusplus +} +#endif |