Home
last modified time | relevance | path

Searched refs:is_sorted (Results 1 – 25 of 38) sorted by relevance

12

/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/is.sorted/
Dis_sorted.pass.cpp29 assert(std::is_sorted(Iter(a), Iter(a))); in test()
30 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
36 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
41 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
46 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test()
51 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
57 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
62 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
67 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test()
72 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
[all …]
Dis_sorted_comp.pass.cpp30 assert(std::is_sorted(Iter(a), Iter(a))); in test()
31 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
37 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
42 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
47 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
52 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
58 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
63 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
68 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
73 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
[all …]
/external/eigen/test/
Dsparse_permutations.cpp23 bool is_sorted(const T& mat) { in is_sorted() function
79 VERIFY( is_sorted( ::eval(mat*p) )); in sparse_permutations()
80 VERIFY( is_sorted( res = mat*p )); in sparse_permutations()
86 VERIFY( is_sorted( ::eval(p*mat) )); in sparse_permutations()
87 VERIFY( is_sorted( res = p*mat )); in sparse_permutations()
92 VERIFY( is_sorted( (mat*p).eval() )); in sparse_permutations()
93 VERIFY( is_sorted( res = mat*p.inverse() )); in sparse_permutations()
98 VERIFY( is_sorted( (p*mat+p*mat).eval() )); in sparse_permutations()
99 VERIFY( is_sorted( res = p.inverse()*mat )); in sparse_permutations()
104 VERIFY( is_sorted( (p * mat * p.inverse()).eval() )); in sparse_permutations()
[all …]
/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
Dsort.pass.cpp40 assert(std::is_sorted(save, save+len)); in test_sort_helper()
96 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
100 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
103 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
107 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
111 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
116 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
Dsort_comp.pass.cpp43 assert(std::is_sorted(v.begin(), v.end())); in main()
52 assert(std::is_sorted(v.begin(), v.end(), indirect_less())); in main()
/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/
Dstable_sort.pass.cpp40 assert(std::is_sorted(save, save+len)); in test_sort_helper()
96 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
100 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
103 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
107 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
111 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
116 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
Dstable_sort_comp.pass.cpp68 assert(std::is_sorted(v.begin(), v.end())); in test()
81 assert(std::is_sorted(v.begin(), v.end(), indirect_less())); in main()
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/
Dsort_heap_comp.pass.cpp43 assert(std::is_sorted(ia, ia+N, std::greater<int>())); in test()
65 assert(std::is_sorted(ia, ia+N, indirect_less())); in main()
Dsort_heap.pass.cpp31 assert(std::is_sorted(ia, ia+N)); in test()
/external/libcxx/test/std/algorithms/alg.sorting/alg.merge/
Dinplace_merge_comp.pass.cpp82 assert(std::is_sorted(ia, ia+N, std::greater<value_type>())); in test_one()
144 assert(std::is_sorted(ia, ia+N, indirect_less())); in main()
Dmerge.pass.cpp47 assert(std::is_sorted(ic, ic+2*N)); in test()
69 assert(std::is_sorted(ic, ic+2*N)); in test()
Dmerge_comp.pass.cpp54 assert(std::is_sorted(ic, ic+2*N, std::greater<int>())); in test()
78 assert(std::is_sorted(ic, ic+2*N, std::greater<int>())); in test()
Dinplace_merge.pass.cpp65 assert(std::is_sorted(ia, ia+N)); in test_one()
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.random.sample/
Dsample.stable.pass.cpp47 unstable |= !std::is_sorted(oa, oa + kSampleSize); in test_stability()
/external/libcxx/test/std/experimental/algorithms/alg.random.sample/
Dsample.stable.pass.cpp45 unstable |= !std::is_sorted(oa, oa + kSampleSize); in test_stability()
/external/llvm/lib/MC/
DSubtargetFeature.cpp232 assert(std::is_sorted(std::begin(CPUTable), std::end(CPUTable)) && in getFeatureBits()
234 assert(std::is_sorted(std::begin(FeatureTable), std::end(FeatureTable)) && in getFeatureBits()
DMCSubtargetInfo.cpp80 assert(std::is_sorted(SchedModels.begin(), SchedModels.end(), in getSchedModelForCPU()
/external/llvm/lib/Target/Mips/
DMipsCCState.cpp34 assert(std::is_sorted(std::begin(LibCalls), std::end(LibCalls), Comp)); in isF128SoftLibCall()
/external/boringssl/src/crypto/x509/
Dx_crl.c464 const int is_sorted = sk_X509_REVOKED_is_sorted(crl->crl->revoked); in def_crl_lookup() local
467 if (!is_sorted) { in def_crl_lookup()
/external/clang/lib/Format/
DSortJavaScriptImports.cpp150 bool ReferencesInOrder = std::is_sorted(Indices.begin(), Indices.end()); in analyze()
/external/clang/lib/Basic/
DDiagnosticIDs.cpp103 assert(std::is_sorted(std::begin(StaticDiagInfo), in GetDiagInfo()
/external/llvm/tools/verify-uselistorder/
Dverify-uselistorder.cpp414 } while (std::is_sorted(V->use_begin(), V->use_end(), compareUses)); in shuffleValueUseLists()
/external/clang/www/
Dlibstdc++4.4-clang0x.patch490 // is_sorted, a predicated testing whether a range is sorted in
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp196 if (std::is_sorted( in predictValueUseListOrderImpl()
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp741 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()

12