File indexing completed on 2025-01-18 09:43:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef boost_numeric_ublas_opencl_library_hpp_
0011 #define boost_numeric_ublas_opencl_library_hpp_
0012
0013 #include <clBLAS.h>
0014 #include <type_traits>
0015 #include <complex>
0016
0017 namespace boost { namespace numeric { namespace ublas { namespace opencl {
0018
0019 class library
0020 {
0021 public:
0022 library() { clblasSetup();}
0023 ~library() { clblasTeardown();}
0024 };
0025
0026 template <typename T>
0027 struct is_numeric
0028 {
0029 static bool const value =
0030 std::is_same<T, float>::value |
0031 std::is_same<T, double>::value |
0032 std::is_same<T, std::complex<float>>::value |
0033 std::is_same<T, std::complex<double>>::value;
0034 };
0035
0036 }}}}
0037
0038 #endif