Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:43:01

0001 // Boost.uBLAS
0002 //
0003 // Copyright (c) 2018 Fady Essam
0004 // Copyright (c) 2018 Stefan Seefeld
0005 //
0006 // Distributed under the Boost Software License, Version 1.0.
0007 // (See accompanying file LICENSE_1_0.txt or
0008 // copy at http://www.boost.org/LICENSE_1_0.txt)
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