Home
last modified time | relevance | path

Searched refs:nth_element (Results 1 – 25 of 67) sorted by relevance

123

/external/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/alg.sorting/alg.nth.element/
Dranges_nth_element.pass.cpp43 std::ranges::nth_element(first, nth, last, comp);
56 std::ranges::nth_element(range, nth, comp);
105 std::same_as<Iter> decltype(auto) last = std::ranges::nth_element(b, nth, e);
120 std::same_as<Iter> decltype(auto) last = std::ranges::nth_element(range, nth);
196 auto last = std::ranges::nth_element(in.begin(), in.begin() + 1, in.end(), comp); in test()
203 auto last = std::ranges::nth_element(in, in.begin() + 1, comp); in test()
219 auto last = std::ranges::nth_element(in.begin(), in.begin() + 1, in.end(), {}, &A::a); in test()
226 auto last = std::ranges::nth_element(in, in.begin() + 1, {}, &A::a); in test()
247 …auto last = std::ranges::nth_element(in.begin(), in.begin() + 1, in.end(), &S::comparator, &S::pro… in test()
254 auto last = std::ranges::nth_element(in, in.begin() + 1, &S::comparator, &S::projection); in test()
[all …]
Dnth_element.pass.cpp30 std::nth_element(Iter(work), Iter(work+m), Iter(work+n)); in test()
46 std::nth_element(Iter(input), Iter(input+4), Iter(input+7)); in test()
53 std::nth_element(Iter(input), Iter(input + 6), Iter(input + 8)); in test()
60 std::nth_element(Iter(input), Iter(input + 1), Iter(input + 8)); in test()
Dnth_element_comp.pass.cpp31 std::nth_element(Iter(work), Iter(work+m), Iter(work+n), std::greater<T>()); in test()
47 std::nth_element(Iter(input), Iter(input+4), Iter(input+7), std::greater<T>()); in test()
54 std::nth_element(Iter(input), Iter(input + 6), Iter(input + 8), std::greater<T>()); in test()
61 std::nth_element(Iter(input), Iter(input + 1), Iter(input + 8), std::greater<T>()); in test()
/external/tensorflow/tensorflow/python/kernel_tests/nn_ops/
Dnth_element_op_test.py36 values_op = nn_ops.nth_element(inputs_op, n, reverse=reverse)
116 nn_ops.nth_element(5, 0)
123 nn_ops.nth_element(v, 0).eval(feed_dict={v: 5})
128 nn_ops.nth_element([5], -1)
131 nn_ops.nth_element([5, 6, 3], [1])
137 values = nn_ops.nth_element([5], n)
145 nn_ops.nth_element(inputs, 2)
151 values = nn_ops.nth_element(inputs, n)
171 values = nn_ops.nth_element(inputs, 3)
179 values = nn_ops.nth_element(inputs, 3)
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/algorithms/
Dnth_element_stability.pass.cpp49 std::nth_element(v.begin(), v.begin() + kSize / 2, v.end()); in test_randomization()
68 std::nth_element(v.begin(), v.begin() + kSize / 2, v.end()); in test_same()
69 std::nth_element(snapshot_v.begin(), snapshot_v.begin() + kSize / 2, snapshot_v.end()); in test_same()
70 …std::nth_element(snapshot_custom_v.begin(), snapshot_custom_v.begin() + kSize / 2, snapshot_custom… in test_same()
89 std::nth_element(v.begin(), v.begin() + 5, v.end()); in test_constexpr()
Drobust_against_cpp20_hostile_iterators.compile.pass.cpp164 (void) std::nth_element(it, it, it); in test()
165 (void) std::nth_element(it, it, it, pred); in test()
/external/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/
Dnth_element_comp.pass.cpp46 std::nth_element(array, array+M, array+N, std::greater<int>()); in test_one()
48 std::nth_element(array, array+N, array+N, std::greater<int>()); // begin, end, end in test_one()
70 std::nth_element(&d, &d, &d); in main()
85 std::nth_element(v.begin(), v.begin() + v.size()/2, v.end(), indirect_less()); in main()
Dnth_element.pass.cpp33 std::nth_element(array, array+M, array+N); in test_one()
35 std::nth_element(array, array+N, array+N); // begin, end, end in test_one()
57 std::nth_element(&d, &d, &d); in main()
/external/cronet/buildtools/third_party/libc++/trunk/include/__algorithm/
Dnth_element.h244 void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator … in nth_element() function
251 void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator … in nth_element() function
252 std::nth_element(std::move(__first), std::move(__nth), std::move(__last), __less<typename in nth_element()
Dranges_nth_element.h72 inline constexpr auto nth_element = __nth_element::__fn{};
/external/libcxx/fuzzing/
DRoutineNames.txt8 nth_element
Dfuzzing.h30 int nth_element (const uint8_t *data, size_t size);
Dfuzz_test.cpp116 {"nth_element", fuzzing::nth_element},
Dfuzzing.cpp266 int nth_element (const uint8_t *data, size_t size) in nth_element() function
272 std::nth_element(working.begin(), partition_iter, working.end()); in nth_element()
/external/libcxx/test/libcxx/fuzzing/
Dnth_element.cpp35 assert(0 == fuzzing::nth_element(data, size)); in main()
/external/libcxx/utils/google-benchmark/src/
Dstatistics.cc42 std::nth_element(copy.begin(), center, copy.end()); in StatisticsMedian()
50 std::nth_element(copy.begin(), center2, copy.end()); in StatisticsMedian()
/external/google-benchmark/src/
Dstatistics.cc42 std::nth_element(copy.begin(), center, copy.end()); in StatisticsMedian()
50 std::nth_element(copy.begin(), center2, copy.end()); in StatisticsMedian()
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/fuzzing/
Dnth_element.pass.cpp24 std::nth_element(working.begin(), partition_iter, working.end()); in LLVMFuzzerTestOneInput()
/external/eigen/unsupported/Eigen/src/BVH/
DKdBVH.h194 std::nth_element(objCenters.begin() + from, objCenters.begin() + mid,
204 nth_element(objCenters.begin() + from, objCenters.begin() + mid,
/external/tensorflow/tensorflow/core/grappler/costs/
Drobust_stats.cc42 std::nth_element(values.begin(), middle, values.end()); in Median()
/external/tensorflow/tensorflow/core/kernels/
Dnth_element_op.cc109 std::nth_element(buf.begin(), buf.begin() + n, buf.end()); in operator ()()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/
Drobust_re_difference_type.compile.pass.cpp195 (void)std::nth_element(first, mid, last); in all_the_algorithms()
196 (void)std::nth_element(first, mid, last, std::less<void*>()); in all_the_algorithms()
/external/cronet/buildtools/third_party/libc++/trunk/docs/DesignDocs/
DDebugMode.rst68 partition after calling ``std::nth_element``. This effort helps migrating to potential
DUnspecifiedBehaviorRandomization.rst83 * ``std::nth_element``, there is no guarantee on the order from both sides of the
/external/catch2/include/internal/benchmark/detail/
Dcatch_stats.cpp121 std::nth_element(first, first + j, last); in weighted_average_quantile()

123