Lines Matching refs:array2
86 boost::compute::valarray<float> array2(data, 4); \
99 array1 op##= array2; \
106 array2 op##= array2; \
108 BOOST_CHECK_CLOSE(float(array2[0]), float(1.0f op 1.0f), 1e-4f); \
109 BOOST_CHECK_CLOSE(float(array2[1]), float(2.0f op 2.0f), 1e-4f); \
110 BOOST_CHECK_CLOSE(float(array2[2]), float(3.0f op 3.0f), 1e-4f); \
111 BOOST_CHECK_CLOSE(float(array2[3]), float(4.0f op 4.0f), 1e-4f); \
131 boost::compute::valarray<int> array2(data, 4); \
144 array1 op##= array2; \
151 array2 op##= array2; \
153 BOOST_CHECK_EQUAL(int(array2[0]), int(1 op 1)); \
154 BOOST_CHECK_EQUAL(int(array2[1]), int(2 op 2)); \
155 BOOST_CHECK_EQUAL(int(array2[2]), int(3 op 3)); \
156 BOOST_CHECK_EQUAL(int(array2[3]), int(4 op 4)); \
234 boost::compute::valarray<float> array2(data2, 4); \
251 result = array2 op array1; \
276 boost::compute::valarray<int> array2(data2, 4); \
293 result = array1 op array2; \
317 boost::compute::valarray<int> array2(data2, 4); \
334 result = array1 op array2; \