Home
last modified time | relevance | path

Searched refs:to_array (Results 1 – 25 of 70) sorted by relevance

123

/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/array/array.creation/
Dto_array.pass.cpp30 auto arr = std::to_array({1, 2, 3}); in tests()
39 auto arr = std::to_array({1L, 4L, 9L, l1}); in tests()
49 auto arr = std::to_array("meow"); in tests()
60 auto arr = std::to_array(source); in tests()
69 auto arr = std::to_array(std::move(source)); in tests()
79 auto arr = std::to_array(std::move(source)); in tests()
88 auto arr = std::to_array((int[]){3, 4}); in tests()
97 auto arr = std::to_array<long>({1, 2, 3}); in tests()
110 auto arr = std::to_array<A>({{3, .1}}); in tests()
Dto_array.fail.cpp25 std::to_array(source); // expected-note {{requested here}} in main()
32 std::to_array(mo); // expected-note {{requested here}} in main()
39 std::to_array(std::move(cmo)); // expected-note {{requested here}} in main()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dremove_trivial_passthrough.cc46 Array& to_array = model->GetOrCreateArray(to); in Reroute() local
48 if (from_array.minmax && !to_array.minmax) { in Reroute()
49 to_array.GetOrCreateMinMax() = from_array.GetMinMax(); in Reroute()
52 to_array.narrow_range = from_array.narrow_range; in Reroute()
57 to_array.final_data_type == ArrayDataType::kNone) { in Reroute()
58 to_array.final_data_type = from_array.final_data_type; in Reroute()
/external/pigweed/pw_containers/
Dto_array_test.cc26 std::array<char, sizeof("literally!")> array = to_array("literally!"); in TEST()
31 constexpr std::array<int, 3> kArray = to_array({1, 2, 3}); in TEST()
38 std::array<char, sizeof("array!")> array = to_array(c_array); in TEST()
56 std::array<MoveOnly, 2> array = to_array(std::move(c_array)); in TEST()
DBUILD.bazel95 name = "to_array",
96 hdrs = ["public/pw_containers/to_array.h"],
151 deps = [":to_array"],
DCMakeLists.txt60 pw_add_library(pw_containers.to_array INTERFACE
62 public/pw_containers/to_array.h
135 pw_containers.to_array
DBUILD.gn63 pw_source_set("to_array") {
65 public = [ "public/pw_containers/to_array.h" ]
130 deps = [ ":to_array" ]
Ddocs.rst184 pw::containers::to_array
186 ``pw::containers::to_array`` is a C++14-compatible implementation of C++20's
187 `std::to_array <https://en.cppreference.com/w/cpp/container/array/to_array>`_.
188 In C++20, it is an alias for ``std::to_array``. It converts a C array to a
/external/pigweed/pw_containers/public/pw_containers/
Dto_array.h27 using std::to_array;
50 constexpr std::array<std::remove_cv_t<T>, kSize> to_array(T (&values)[kSize]) {
55 constexpr std::array<std::remove_cv_t<T>, kSize> to_array(T (&&values)[kSize]) {
/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/
Dtokenize_string.h54 domain_(containers::to_array(domain)), in PW_PACKED()
55 string_(containers::to_array(string)) {} in PW_PACKED()
/external/pigweed/pw_polyfill/
Ddocs.rst83 - ``std::to_array``
86 - ``pw_containers/to_array.h``
87 - ``pw::containers::to_array``
/external/rust/crates/glam/src/f32/sse2/
Dmat3a.rs108 let [x_axis_x, x_axis_y, x_axis_z] = self.x_axis.to_array();
109 let [y_axis_x, y_axis_y, y_axis_z] = self.y_axis.to_array();
110 let [z_axis_x, z_axis_y, z_axis_z] = self.z_axis.to_array();
135 self.x_axis.to_array(),
136 self.y_axis.to_array(),
137 self.z_axis.to_array(),
Dmat4.rs126 let [x_axis_x, x_axis_y, x_axis_z, x_axis_w] = self.x_axis.to_array();
127 let [y_axis_x, y_axis_y, y_axis_z, y_axis_w] = self.y_axis.to_array();
128 let [z_axis_x, z_axis_y, z_axis_z, z_axis_w] = self.z_axis.to_array();
129 let [w_axis_x, w_axis_y, w_axis_z, w_axis_w] = self.w_axis.to_array();
155 self.x_axis.to_array(),
156 self.y_axis.to_array(),
157 self.z_axis.to_array(),
158 self.w_axis.to_array(),
167 let [x, y, z, w] = diagonal.to_array(); in from_diagonal()
/external/rust/crates/glam/src/f32/coresimd/
Dmat3a.rs105 let [x_axis_x, x_axis_y, x_axis_z] = self.x_axis.to_array();
106 let [y_axis_x, y_axis_y, y_axis_z] = self.y_axis.to_array();
107 let [z_axis_x, z_axis_y, z_axis_z] = self.z_axis.to_array();
132 self.x_axis.to_array(),
133 self.y_axis.to_array(),
134 self.z_axis.to_array(),
Dmat4.rs123 let [x_axis_x, x_axis_y, x_axis_z, x_axis_w] = self.x_axis.to_array();
124 let [y_axis_x, y_axis_y, y_axis_z, y_axis_w] = self.y_axis.to_array();
125 let [z_axis_x, z_axis_y, z_axis_z, z_axis_w] = self.z_axis.to_array();
126 let [w_axis_x, w_axis_y, w_axis_z, w_axis_w] = self.w_axis.to_array();
152 self.x_axis.to_array(),
153 self.y_axis.to_array(),
154 self.z_axis.to_array(),
155 self.w_axis.to_array(),
164 let [x, y, z, w] = diagonal.to_array(); in from_diagonal()
Dvec3a.rs97 pub const fn to_array(&self) -> [f32; 3] { in to_array() method
1030 unsafe { *(v.0.to_array().as_ptr() as *const Self) } in from()
1044 unsafe { *(v.0.to_array().as_ptr() as *const Self) } in from()
1068 unsafe { *(v.0.to_array().as_ptr() as *const Self) } in from()
Dvec4.rs100 pub const fn to_array(&self) -> [f32; 4] { in to_array() method
942 v.0.to_array() in from()
956 unsafe { *(v.0.to_array().as_ptr() as *const Self) } in from()
/external/rust/crates/glam/src/f32/wasm32/
Dmat3a.rs105 let [x_axis_x, x_axis_y, x_axis_z] = self.x_axis.to_array();
106 let [y_axis_x, y_axis_y, y_axis_z] = self.y_axis.to_array();
107 let [z_axis_x, z_axis_y, z_axis_z] = self.z_axis.to_array();
132 self.x_axis.to_array(),
133 self.y_axis.to_array(),
134 self.z_axis.to_array(),
Dmat4.rs123 let [x_axis_x, x_axis_y, x_axis_z, x_axis_w] = self.x_axis.to_array();
124 let [y_axis_x, y_axis_y, y_axis_z, y_axis_w] = self.y_axis.to_array();
125 let [z_axis_x, z_axis_y, z_axis_z, z_axis_w] = self.z_axis.to_array();
126 let [w_axis_x, w_axis_y, w_axis_z, w_axis_w] = self.w_axis.to_array();
152 self.x_axis.to_array(),
153 self.y_axis.to_array(),
154 self.z_axis.to_array(),
155 self.w_axis.to_array(),
164 let [x, y, z, w] = diagonal.to_array(); in from_diagonal()
/external/cronet/buildtools/third_party/libc++/trunk/include/
Darray94 constexpr array<remove_cv_t<T>, N> to_array(T (&a)[N]); // C++20
96 constexpr array<remove_cv_t<T>, N> to_array(T (&&a)[N]); // C++20
517 to_array(_Tp (&__arr)[_Size]) noexcept(is_nothrow_constructible_v<_Tp, _Tp&>) {
520 "[array.creation]/1: to_array does not accept multidimensional arrays.");
523 "[array.creation]/1: to_array requires copy constructible elements.");
529 to_array(_Tp(&&__arr)[_Size]) noexcept(is_nothrow_move_constructible_v<_Tp>) {
532 "[array.creation]/4: to_array does not accept multidimensional arrays.");
535 "[array.creation]/4: to_array requires move constructible elements.");
/external/rust/crates/glam/tests/
Daffine2.rs46 assert_eq!(MATRIX2D[0], a.x_axis.to_array());
47 assert_eq!(MATRIX2D[1], a.y_axis.to_array());
48 assert_eq!(MATRIX2D[2], a.z_axis.to_array());
Daffine3.rs54 assert_eq!(MATRIX2D[0], a.x_axis.to_array());
55 assert_eq!(MATRIX2D[1], a.y_axis.to_array());
56 assert_eq!(MATRIX2D[2], a.z_axis.to_array());
57 assert_eq!(MATRIX2D[3], a.w_axis.to_array());
/external/pigweed/pw_spi/public/pw_spi/
Dinitiator_mock.h120 return containers::to_array(transactions); in MakeExpectedTransactionArray()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/alg.modifying.operations/alg.transform/
Dranges.transform.unary.pass.cpp92 assert((std::to_array(b) == std::array{2, 4, 6, 8, 10})); in test_iterators()
103 assert((std::to_array(b) == std::array{2, 4, 6, 8, 10})); in test_iterators()
/external/rust/crates/glam/src/f64/
Ddmat3.rs133 self.x_axis.to_array(),
134 self.y_axis.to_array(),
135 self.z_axis.to_array(),

123