#ifndef TEST_OPENCL_HEADER_HH #define TEST_OPENCL_HEADER_HH #include #define BOOST_UBLAS_ENABLE_OPENCL #include #include #include #include namespace ublas = boost::numeric::ublas; namespace opencl = boost::numeric::ublas::opencl; namespace compute = boost::compute; template > class test_opencl { public: static bool compare(ublas::matrix& a, ublas::matrix& b) { typedef typename ublas::matrix::size_type size_type; if ((a.size1() != b.size1()) || (a.size2() != b.size2())) return false; for (size_type i = 0; i& a, ublas::vector& b) { typedef typename ublas::vector::size_type size_type; if (a.size() != b.size()) return false; for (size_type i = 0; i& m, int max_value) { typedef typename ublas::matrix::size_type size_type; for (size_type i = 0; i < m.size1(); i++) { for (size_type j = 0; j& v, int max_value) { typedef typename ublas::vector::size_type size_type; for (size_type i = 0; i