Home
last modified time | relevance | path

Searched refs:array_t (Results 1 – 20 of 20) sorted by relevance

/external/python/pybind11/tests/
Dtest_numpy_array.cpp79 using arr_t = py::array_t<uint16_t, 0>;
186 sm.def("make_f_array", [] { return py::array_t<float>({ 2, 2 }, { 4, 8 }); }); in TEST_SUBMODULE()
187 sm.def("make_c_array", [] { return py::array_t<float>({ 2, 2 }, { 8, 4 }); }); in TEST_SUBMODULE()
216 return py::array_t<int>({2}, {4}, a.data, obj); in TEST_SUBMODULE()
228 return py::isinstance<py::array_t<double>>(o) && !py::isinstance<py::array_t<int>>(o); in TEST_SUBMODULE()
235 "array_t<int32>"_a=py::array_t<std::int32_t>(), in TEST_SUBMODULE()
236 "array_t<double>"_a=py::array_t<double>() in TEST_SUBMODULE()
242 "array_t<int32>"_a=py::array_t<std::int32_t>(o), in TEST_SUBMODULE()
243 "array_t<double>"_a=py::array_t<double>(o) in TEST_SUBMODULE()
248 sm.def("overloaded", [](py::array_t<double>) { return "double"; }); in TEST_SUBMODULE()
[all …]
Dtest_numpy_vectorize.cpp29 [](py::array_t<int> x, py::array_t<float> y, float z) { in TEST_SUBMODULE()
41 … m.def("selective_func", [](py::array_t<int, py::array::c_style>) { return "Int branch taken."; }); in TEST_SUBMODULE()
42 …m.def("selective_func", [](py::array_t<float, py::array::c_style>) { return "Float branch taken.";… in TEST_SUBMODULE()
43 …m.def("selective_func", [](py::array_t<std::complex<float>, py::array::c_style>) { return "Complex… in TEST_SUBMODULE()
57 …[](double *a, double b, py::array_t<double> c, const int &d, int &e, NonPODClass f, const double g… in TEST_SUBMODULE()
82 py::array_t<int, py::array::forcecast> arg1, in TEST_SUBMODULE()
83 py::array_t<float, py::array::forcecast> arg2, in TEST_SUBMODULE()
84 py::array_t<double, py::array::forcecast> arg3 in TEST_SUBMODULE()
Dtest_numpy_dtypes.cpp156 py::array_t<S, 0> create_recarray(size_t n) { in create_recarray()
167 py::list print_recarray(py::array_t<S, 0> arr) { in print_recarray()
179 py::array_t<int32_t, 0> test_array_ctors(int i) { in test_array_ctors()
180 using arr_t = py::array_t<int32_t, 0>; in test_array_ctors()
317 py::array_t<NestedStruct, 0> arr = mkarray_via_buffer<NestedStruct>(n); in TEST_SUBMODULE()
328 py::array_t<PartialNestedStruct, 0> arr = mkarray_via_buffer<PartialNestedStruct>(n); in TEST_SUBMODULE()
397 py::array_t<StringStruct, 0> arr = mkarray_via_buffer<StringStruct>(non_empty ? 4 : 0); in TEST_SUBMODULE()
418 py::array_t<ArrayStruct, 0> arr = mkarray_via_buffer<ArrayStruct>(n); in TEST_SUBMODULE()
438 py::array_t<EnumStruct, 0> arr = mkarray_via_buffer<EnumStruct>(n); in TEST_SUBMODULE()
450 py::array_t<ComplexStruct, 0> arr = mkarray_via_buffer<ComplexStruct>(n); in TEST_SUBMODULE()
/external/llvm-project/clang/test/CodeGenCXX/
Dvla-consruct.cpp48 S array_t[n][n + 1]; in test() local
62 int sizeof_array_t_0_0 = sizeof(array_t[0][0]); in test()
63 int sizeof_array_t_0 = sizeof(array_t[0]); in test()
64 int sizeof_array_t = sizeof(array_t); in test()
Dvla.cpp42 typedef short array_t[n][n+1]; in test0() typedef
47 array_t &ref = *(array_t*) array; in test0()
/external/clang/test/SemaCXX/
Dvla-consruct.cpp24 S array_t[n][n+1]; in test() local
30 int sizeof_array_t_0_0 = sizeof(array_t[0][0]); in test()
31 int sizeof_array_t_0 = sizeof(array_t[0]); in test()
32 int sizeof_array_t = sizeof(array_t); in test()
/external/clang/test/CodeGenCXX/
Dvla-consruct.cpp44 S array_t[n][n + 1]; in test() local
58 int sizeof_array_t_0_0 = sizeof(array_t[0][0]); in test()
59 int sizeof_array_t_0 = sizeof(array_t[0]); in test()
60 int sizeof_array_t = sizeof(array_t); in test()
Dvla.cpp33 typedef short array_t[n][n+1]; in test0() typedef
38 array_t &ref = *(array_t*) array; in test0()
/external/llvm-project/clang/test/SemaCXX/
Dvla-construct.cpp24 S array_t[n][n+1]; in test() local
30 int sizeof_array_t_0_0 = sizeof(array_t[0][0]); in test()
31 int sizeof_array_t_0 = sizeof(array_t[0]); in test()
32 int sizeof_array_t = sizeof(array_t); in test()
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dtuple_array_template_depth.pass.cpp30 typedef std::array<char, 1256> array_t; typedef
31 typedef std::tuple<array_t> tuple_t;
35 array_t arr; in main()
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dtuple_array_template_depth.pass.cpp29 typedef std::array<char, 1256> array_t; typedef
30 typedef std::tuple<array_t> tuple_t;
34 array_t arr; in main()
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/
Dtuple_array_template_depth.pass.cpp27 typedef std::array<char, 1256> array_t; typedef
28 typedef std::tuple<array_t> tuple_t;
32 array_t arr; in main()
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/
Dtuple_array_template_depth.pass.cpp26 typedef std::array<char, 1256> array_t; typedef
27 typedef std::tuple<array_t> tuple_t;
31 array_t arr; in main()
/external/python/pybind11/docs/advanced/pycpp/
Dnumpy.rst143 array of a certain data type. This is possible via the ``py::array_t<T>``
149 void f(py::array_t<double> array);
167 void f(py::array_t<double, py::array::c_style | py::array::forcecast> array);
177 In order for ``py::array_t`` to work with structured (record) types, we first
200 /* now both A and B can be used as template arguments to py::array_t */
265 py::array_t<double> add_arrays(py::array_t<double> input1, py::array_t<double> input2) {
275 auto result = py::array_t<double>(buf1.size);
304 valid. To avoid such checks, the ``array`` class and ``array_t<T>`` template
311 m.def("sum_3d", [](py::array_t<double> x) {
320 m.def("increment_3d", [](py::array_t<double> x) {
Dobject.rst16 :class:`array`, and :class:`array_t`.
207 py::array_t<float> arr = np.attr("ones")(3, "dtype"_a="float32");
/external/python/pybind11/include/pybind11/
Dnumpy.h835 template <typename T, int ExtraFlags = array::forcecast> class array_t : public array {
839array_t(private_ctor, ShapeContainer &&shape, StridesContainer &&strides, const T *ptr, handle bas…
846 array_t() : array(0, static_cast<const T *>(nullptr)) {}
847 array_t(handle h, borrowed_t) : array(h, borrowed_t{}) { }
848 array_t(handle h, stolen_t) : array(h, stolen_t{}) { }
851 array_t(handle h, bool is_borrowed) : array(raw_array_t(h.ptr()), stolen_t{}) {
856 array_t(const object &o) : array(raw_array_t(o.ptr()), stolen_t{}) {
860 explicit array_t(const buffer_info& info, handle base = handle()) : array(info, base) { }
862array_t(ShapeContainer shape, StridesContainer strides, const T *ptr = nullptr, handle base = hand…
865 explicit array_t(ShapeContainer shape, const T *ptr = nullptr, handle base = handle())
[all …]
Deigen.h258 if (!convert && !isinstance<array_t<Scalar>>(src))
411 using Array = array_t<Scalar, array::forcecast |
564 auto values = array_t<Scalar>((object) obj.attr("data"));
565 auto innerIndices = array_t<StorageIndex>((object) obj.attr("indices"));
566 auto outerIndices = array_t<StorageIndex>((object) obj.attr("indptr"));
/external/harfbuzz_ng/src/
Dhb-ot-layout-gsubgpos.hh652 typedef hb_vector_t<hb_applicable_t> array_t; typedef
665 hb_get_subtables_context_t (array_t &array_) : in hb_get_subtables_context_t()
669 array_t &array;
2838 hb_get_subtables_context_t::array_t subtables;
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_compiler.cc419 [](py::array_t<int> array) -> StatusOr<DeviceAssignment> { in BuildXlaCompilerSubmodule()
/external/python/pybind11/docs/
Dchangelog.rst354 * Bug fixed where ``py::array_t`` could accept arrays that did not match the
1285 7. Added constructors for ``array`` and ``array_t`` explicitly accepting shape
1524 * Added an ``ExtraFlags`` template argument to the NumPy ``array_t<>`` wrapper