/third_party/boost/libs/range/test/ |
D | array.cpp | 32 typedef int array_t[sz]; in check_array() typedef 34 const array_t ca = { 1,2,3,4,5,6,7,8,10 }; in check_array() 40 BOOST_STATIC_ASSERT(( is_same< range_value<array_t>::type, int >::value )); in check_array() 41 BOOST_STATIC_ASSERT(( is_same< range_iterator<array_t>::type, int* >::value )); in check_array() 42 BOOST_STATIC_ASSERT(( is_same< range_const_iterator<array_t>::type, const int* >::value )); in check_array() 43 BOOST_STATIC_ASSERT(( is_same< range_difference<array_t>::type, std::ptrdiff_t >::value )); in check_array() 44 BOOST_STATIC_ASSERT(( is_same< range_size<array_t>::type, std::size_t >::value )); in check_array() 45 BOOST_STATIC_ASSERT(( is_same< range_iterator<array_t>::type, int* >::value )); in check_array() 46 BOOST_STATIC_ASSERT(( is_same< range_iterator<const array_t>::type, const int* >::value )); in check_array() 48 BOOST_STATIC_ASSERT(( is_same< range_value<const array_t>::type, const int >::value )); in check_array() [all …]
|
D | string.cpp | 44 typedef value_type array_t[Length]; typedef in __anona39702460111::test_string
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/ |
D | data_type.cc | 132 if (py::isinstance<py::array_t<bool>>(arr)) { in FromNpArray() 134 } else if (py::isinstance<py::array_t<std::int8_t>>(arr)) { in FromNpArray() 136 } else if (py::isinstance<py::array_t<std::uint8_t>>(arr)) { in FromNpArray() 138 } else if (py::isinstance<py::array_t<std::int16_t>>(arr)) { in FromNpArray() 140 } else if (py::isinstance<py::array_t<std::uint16_t>>(arr)) { in FromNpArray() 142 } else if (py::isinstance<py::array_t<std::int32_t>>(arr)) { in FromNpArray() 144 } else if (py::isinstance<py::array_t<std::uint32_t>>(arr)) { in FromNpArray() 146 } else if (py::isinstance<py::array_t<std::int64_t>>(arr)) { in FromNpArray() 148 } else if (py::isinstance<py::array_t<std::uint64_t>>(arr)) { in FromNpArray() 150 } else if (py::isinstance<py::array_t<float16>>(arr)) { in FromNpArray() [all …]
|
D | tensor.cc | 792 *data = py::array_t<bool>(shape_.AsVector(), reinterpret_cast<bool *>(data_)); in GetDataAsNumpy() 794 *data = py::array_t<int8_t>(shape_.AsVector(), reinterpret_cast<int8_t *>(data_)); in GetDataAsNumpy() 796 *data = py::array_t<int16_t>(shape_.AsVector(), reinterpret_cast<int16_t *>(data_)); in GetDataAsNumpy() 798 *data = py::array_t<int32_t>(shape_.AsVector(), reinterpret_cast<int32_t *>(data_)); in GetDataAsNumpy() 800 *data = py::array_t<int64_t>(shape_.AsVector(), reinterpret_cast<int64_t *>(data_)); in GetDataAsNumpy() 802 *data = py::array_t<uint8_t>(shape_.AsVector(), reinterpret_cast<uint8_t *>(data_)); in GetDataAsNumpy() 804 *data = py::array_t<uint16_t>(shape_.AsVector(), reinterpret_cast<uint16_t *>(data_)); in GetDataAsNumpy() 806 *data = py::array_t<uint32_t>(shape_.AsVector(), reinterpret_cast<uint32_t *>(data_)); in GetDataAsNumpy() 808 *data = py::array_t<uint64_t>(shape_.AsVector(), reinterpret_cast<uint64_t *>(data_)); in GetDataAsNumpy() 810 *data = py::array_t<float16>(shape_.AsVector(), reinterpret_cast<float16 *>(data_)); in GetDataAsNumpy() [all …]
|
D | pybind_support.h | 37 using Array = array_t<T>;
|
/third_party/json/test/src/ |
D | unit-reference_access.cpp | 69 CHECK_THROWS_AS(value.get_ref<json::array_t&>(), json::type_error&); 70 CHECK_THROWS_WITH(value.get_ref<json::array_t&>(), 105 using test_type = json::array_t; 121 CHECK_NOTHROW(value.get_ref<json::array_t&>()); 157 CHECK_THROWS_AS(value.get_ref<json::array_t&>(), json::type_error&); 158 CHECK_THROWS_WITH(value.get_ref<json::array_t&>(), 193 CHECK_THROWS_AS(value.get_ref<json::array_t&>(), json::type_error&); 194 CHECK_THROWS_WITH(value.get_ref<json::array_t&>(), 229 CHECK_THROWS_AS(value.get_ref<json::array_t&>(), json::type_error&); 230 CHECK_THROWS_WITH(value.get_ref<json::array_t&>(), [all …]
|
D | unit-pointer_access.cpp | 57 CHECK(value.get_ptr<json::array_t*>() == nullptr); 86 CHECK(value.get_ptr<const json::array_t*>() == nullptr); 97 using test_type = json::array_t; 115 CHECK(value.get_ptr<json::array_t*>() != nullptr); 126 using test_type = const json::array_t; 144 CHECK(value.get_ptr<const json::array_t*>() != nullptr); 173 CHECK(value.get_ptr<json::array_t*>() == nullptr); 202 CHECK(value.get_ptr<const json::array_t*>() == nullptr); 231 CHECK(value.get_ptr<json::array_t*>() == nullptr); 260 CHECK(value.get_ptr<const json::array_t*>() == nullptr); [all …]
|
D | unit-conversions.cpp | 238 json::array_t a_reference{json(1), json(1u), json(2.2), 244 json::array_t a = j.get<json::array_t>(); 310 CHECK_THROWS_AS(json(json::value_t::null).get<json::array_t>(), 312 CHECK_THROWS_AS(json(json::value_t::object).get<json::array_t>(), 314 CHECK_THROWS_AS(json(json::value_t::string).get<json::array_t>(), 316 CHECK_THROWS_AS(json(json::value_t::boolean).get<json::array_t>(), 318 CHECK_THROWS_AS(json(json::value_t::number_integer).get<json::array_t>(), 320 CHECK_THROWS_AS(json(json::value_t::number_unsigned).get<json::array_t>(), 322 CHECK_THROWS_AS(json(json::value_t::number_float).get<json::array_t>(), 329 json(json::value_t::null).get<json::array_t>(), [all …]
|
D | unit-constructor1.cpp | 233 json::array_t a; 240 json::array_t a {json(1), json(1u), json(2.2), json(false), json("string"), json()}; 249 … json::array_t a_reference {json(1), json(1u), json(2.2), json(false), json("string"), json()}; 947 json j(json::initializer_list_t {json(json::array_t())}); 953 json j {json::array_t()}; 1053 … json j(json::initializer_list_t {1, 1u, 42.23, true, nullptr, json::object_t(), json::array_t()}); 1059 json j {1, 1u, 42.23, true, nullptr, json::object_t(), json::array_t()}; 1144 json::array_t source = {1, 2, 3}; 1150 CHECK(j[0].get_ref<json::array_t const&>().data() == source_addr); 1156 CHECK(j["key"].get_ref<json::array_t const&>().data() == source_addr); [all …]
|
D | unit-allocator.cpp | 276 j["test"] = bad_alloc_json::array_t();
|
/third_party/boost/libs/multi_array/test/ |
D | assert.cpp | 45 typedef multi_array<int,2> array_t; in main() typedef 47 array_t A(extents[2][2]); in main() 49 array_t B(extents[3][3]); in main()
|
/third_party/mindspore/tests/ut/cpp/ir/ |
D | meta_tensor_test.cc | 99 py::array_t<float, py::array::c_style> BuildInputTensor() { in BuildInputTensor() 101 py::array_t<float, py::array::c_style> input = py::array_t<float, py::array::c_style>({2, 3}); in BuildInputTensor() 114 py::array data = py::array_t<int64_t, py::array::c_style>(dimensions); in TEST_F() 250 py::array_t<float, py::array::c_style> input({2, 3}); in TEST_F() 316 py::array_t<float> data = py::cast<py::array_t<float>>(TensorPy::AsNumpy(*tensor)); in TEST_F() 326 py::array_t<float, py::array::c_style> input({2, 3}); in TEST_F() 354 py::array_t<float> data = py::cast<py::array_t<float>>(TensorPy::AsNumpy(tensor)); in TEST_F()
|
/third_party/pixman/pixman/dither/ |
D | make-blue-noise.c | 202 typedef struct array_t { struct 206 } array_t; argument 209 array_init (array_t *array, int width, int height) in array_init() 229 array_get (array_t *array, int x, int y) in array_get() 235 array_save_ppm (array_t *array, const char *filename) in array_save_ppm() 277 array_save (array_t *array, const char *filename) in array_save() 324 array_destroy (array_t *array) in array_destroy() 512 generate_dither_array (array_t *array, in generate_dither_array() 579 array_t array; in generate()
|
/third_party/json/include/nlohmann/detail/conversions/ |
D | to_json.hpp | 131 static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr) in construct() 139 static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr) in construct() 147 … enable_if_t < !std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value, 154 j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr)); in construct() 304 void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr) in to_json()
|
D | from_json.hpp | 174 void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, priority_ta… in from_json_array_impl() 176 arr = *j.template get_ptr<const typename BasicJsonType::array_t*>(); in from_json_array_impl()
|
/third_party/boost/boost/range/detail/ |
D | common.hpp | 85 pair_t >::type array_t; typedef in boost::range_detail::range 88 array_t >::type string_t;
|
/third_party/json/include/nlohmann/detail/iterators/ |
D | internal_iterator.hpp | 20 typename BasicJsonType::array_t::iterator array_iterator {};
|
D | iter_impl.hpp | 48 using array_t = typename BasicJsonType::array_t; typedef in nlohmann::detail::iter_impl 99 m_it.array_iterator = typename array_t::iterator(); in iter_impl()
|
/third_party/json/doc/examples/ |
D | swap__array_t.cpp | 12 json::array_t array = {"Snap", "Crackle", "Pop"}; in main()
|
D | basic_json__CompatibleType.cpp | 64 json::array_t array_value = {"one", "two", 3, 4.5, false}; in main()
|
/third_party/json/include/nlohmann/ |
D | json.hpp | 549 using array_t = ArrayType<basic_json, AllocatorType<basic_json>>; typedef in nlohmann::basic_json 967 array_t* array; 1004 array = create<array_t>(); in json_value() 1087 json_value(const array_t& value) in json_value() 1089 array = create<array_t>(value); in json_value() 1093 json_value(array_t&& value) in json_value() 1095 array = create<array_t>(std::move(value)); in json_value() 1183 AllocatorType<array_t> alloc; in destroy() 1484 using other_array_t = typename BasicJsonType::array_t; in basic_json() 1645 m_value.array = create<array_t>(init.begin(), init.end()); in basic_json() [all …]
|
/third_party/json/doc/mkdocs/docs/features/ |
D | types.md | 38 array_t* array 53 + <u>typedef</u> array_t 94 using array_t = ArrayType<basic_json, AllocatorType<basic_json>>; 161 …ayType* (`std::vector`) and *AllocatorType* (`std::allocator`), the default value for `array_t` is: 180 …_json` type. That is, for any access to array values, a pointer of type `array_t*` must be derefer…
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/ |
D | tensor_py.h | 40 using Array = array_t<T>;
|
/third_party/boost/libs/pfr/include/boost/pfr/detail/ |
D | core14_classic.hpp | 337 typedef size_array<N> array_t; in get_type_offsets() typedef 338 array_t sizes{}; in get_type_offsets() 342 array_t offsets{{0}}; in get_type_offsets()
|
/third_party/boost/boost/pfr/detail/ |
D | core14_classic.hpp | 337 typedef size_array<N> array_t; in get_type_offsets() typedef 338 array_t sizes{}; in get_type_offsets() 342 array_t offsets{{0}}; in get_type_offsets()
|