• Home
  • Raw
  • Download

Lines Matching refs:array

24     BOOST_CONCEPT_ASSERT((boost::Container<boost::compute::array<int, 3> >));  in BOOST_AUTO_TEST_CASE()
26 BOOST_CONCEPT_ASSERT((boost::RandomAccessIterator<boost::compute::array<int, 3>::iterator>)); in BOOST_AUTO_TEST_CASE()
27 …BOOST_CONCEPT_ASSERT((boost::RandomAccessIterator<boost::compute::array<int, 3>::const_iterator>)); in BOOST_AUTO_TEST_CASE()
32 boost::compute::array<int, 0> empty_array(context); in BOOST_AUTO_TEST_CASE()
35 boost::compute::array<int, 10> array10(context); in BOOST_AUTO_TEST_CASE()
41 boost::compute::array<int, 3> array(context); in BOOST_AUTO_TEST_CASE() local
42 array[0] = 3; in BOOST_AUTO_TEST_CASE()
43 array[1] = -2; in BOOST_AUTO_TEST_CASE()
44 array[2] = 5; in BOOST_AUTO_TEST_CASE()
45 BOOST_CHECK_EQUAL(array.at(0), 3); in BOOST_AUTO_TEST_CASE()
46 BOOST_CHECK_EQUAL(array.at(1), -2); in BOOST_AUTO_TEST_CASE()
47 BOOST_CHECK_EQUAL(array.at(2), 5); in BOOST_AUTO_TEST_CASE()
48 BOOST_CHECK_THROW(array.at(3), std::out_of_range); in BOOST_AUTO_TEST_CASE()
56 boost::compute::array<int, 4> array(context); in BOOST_AUTO_TEST_CASE() local
57 boost::compute::copy(vector.begin(), vector.end(), array.begin(), queue); in BOOST_AUTO_TEST_CASE()
58 CHECK_RANGE_EQUAL(int, 4, array, (3, 6, 9, 12)); in BOOST_AUTO_TEST_CASE()
63 boost::compute::array<int, 4> array(context); in BOOST_AUTO_TEST_CASE() local
64 array.fill(0); in BOOST_AUTO_TEST_CASE()
65 CHECK_RANGE_EQUAL(int, 4, array, (0, 0, 0, 0)); in BOOST_AUTO_TEST_CASE()
67 array.fill(17); in BOOST_AUTO_TEST_CASE()
68 CHECK_RANGE_EQUAL(int, 4, array, (17, 17, 17, 17)); in BOOST_AUTO_TEST_CASE()
74 boost::compute::array<int, 4> a(context); in BOOST_AUTO_TEST_CASE()
78 boost::compute::array<int, 4> b(context); in BOOST_AUTO_TEST_CASE()