Home
last modified time | relevance | path

Searched refs:arr_t (Results 1 – 9 of 9) sorted by relevance

/external/python/pybind11/tests/
Dtest_numpy_array.cpp79 using arr_t = py::array_t<uint16_t, 0>; typedef
80 static_assert(std::is_same<arr_t::value_type, uint16_t>::value, "");
86 template<typename... Ix> arr data_t(const arr_t& a, Ix... index) { in data_t()
97 template<typename... Ix> arr_t& mutate_data_t(arr_t& a, Ix... index) { in mutate_data_t()
105 template<typename... Ix> py::ssize_t index_at_t(const arr_t& a, Ix... idx) { return a.index_at(idx.… in index_at_t()
107 template<typename... Ix> py::ssize_t offset_at_t(const arr_t& a, Ix... idx) { return a.offset_at(id… in offset_at_t()
108 template<typename... Ix> py::ssize_t at_t(const arr_t& a, Ix... idx) { return a.at(idx...); } in at_t()
109 template<typename... Ix> arr_t& mutate_at_t(arr_t& a, Ix... idx) { a.mutable_at(idx...)++; return a… in mutate_at_t()
173 def_index_fn(index_at_t, const arr_t&); in TEST_SUBMODULE()
175 def_index_fn(offset_at_t, const arr_t&); in TEST_SUBMODULE()
[all …]
Dtest_numpy_dtypes.cpp180 using arr_t = py::array_t<int32_t, 0>; in test_array_ctors() typedef
203 case 10: return arr_t(shape, strides, ptr); in test_array_ctors()
206 case 13: return arr_t(shape, ptr); in test_array_ctors()
209 case 16: return arr_t(buf_ndim2); in test_array_ctors()
212 case 20: return fill(arr_t(shape, strides)); in test_array_ctors()
215 case 23: return fill(arr_t(shape)); in test_array_ctors()
218 case 26: return fill(arr_t(buf_ndim2_null)); in test_array_ctors()
221 case 30: return arr_t(6, ptr); in test_array_ctors()
224 case 33: return arr_t(buf_ndim1); in test_array_ctors()
227 case 40: return fill(arr_t(6)); in test_array_ctors()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dbtf_dump_test_case_multidim.c9 typedef int arr_t[2]; typedef
22 arr_t _1;
Dtest_core_reloc_mods.c22 typedef const int arr_t[7]; typedef
40 arr_t f;
Dcore_reloc_types.h472 typedef const int arr_t[7]; typedef
490 arr_t f;
502 arr_t e;
/external/llvm-project/llvm/test/CodeGen/BPF/CORE/
Doffset-reloc-typedef-array.ll6 ; typedef const int arr_t[7];
7 ; typedef arr_t __arr;
91 !18 = !DIDerivedType(tag: DW_TAG_typedef, name: "arr_t", file: !1, line: 1, baseType: !19)
Doffset-reloc-typedef.ll10 ; typedef __u arr_t[7];
11 ; typedef arr_t __arr;
96 !13 = !DIDerivedType(tag: DW_TAG_typedef, name: "arr_t", file: !1, line: 5, baseType: !14)
/external/tensorflow/tensorflow/core/kernels/
Dbincount_op.cc176 const Tensor& arr_t = ctx->input(0); in Compute() local
187 const auto arr = arr_t.flat<int32>(); in Compute()
/external/python/pybind11/docs/advanced/pycpp/
Dnumpy.rst333 dimensions template parameter (i.e. calling ``arr_t.unchecked()`` or