/third_party/python/Lib/test/decimaltestdata/ |
D | dqReduce.decTest | 30 dqred001 reduce '1' -> '1' 31 dqred002 reduce '-1' -> '-1' 32 dqred003 reduce '1.00' -> '1' 33 dqred004 reduce '-1.00' -> '-1' 34 dqred005 reduce '0' -> '0' 35 dqred006 reduce '0.00' -> '0' 36 dqred007 reduce '00.0' -> '0' 37 dqred008 reduce '00.00' -> '0' 38 dqred009 reduce '00' -> '0' 39 dqred010 reduce '0E+1' -> '0' [all …]
|
D | ddReduce.decTest | 29 ddred001 reduce '1' -> '1' 30 ddred002 reduce '-1' -> '-1' 31 ddred003 reduce '1.00' -> '1' 32 ddred004 reduce '-1.00' -> '-1' 33 ddred005 reduce '0' -> '0' 34 ddred006 reduce '0.00' -> '0' 35 ddred007 reduce '00.0' -> '0' 36 ddred008 reduce '00.00' -> '0' 37 ddred009 reduce '00' -> '0' 38 ddred010 reduce '0E+1' -> '0' [all …]
|
D | reduce.decTest | 2 -- reduce.decTest -- remove trailing zeros -- 30 redx001 reduce '1' -> '1' 31 redx002 reduce '-1' -> '-1' 32 redx003 reduce '1.00' -> '1' 33 redx004 reduce '-1.00' -> '-1' 34 redx005 reduce '0' -> '0' 35 redx006 reduce '0.00' -> '0' 36 redx007 reduce '00.0' -> '0' 37 redx008 reduce '00.00' -> '0' 38 redx009 reduce '00' -> '0' [all …]
|
/third_party/boost/libs/histogram/test/ |
D | algorithm_reduce_test.cpp | 47 BOOST_TEST_THROWS((void)reduce(h, slice(10, 2, 3)), std::invalid_argument); in run_tests() 49 BOOST_TEST_THROWS((void)reduce(h, slice(1, 0, 2), slice(1, 1, 3)), in run_tests() 52 BOOST_TEST_THROWS((void)reduce(h, rebin(0, 2), rebin(0, 2)), std::invalid_argument); in run_tests() 54 BOOST_TEST_THROWS((void)reduce(h, slice_and_rebin(0, 1, 3, 2), rebin(0, 2)), in run_tests() 56 BOOST_TEST_THROWS((void)reduce(h, shrink(1, 0, 2), crop(1, 0, 2)), in run_tests() 59 BOOST_TEST_THROWS((void)reduce(h, slice(0, 1, 1)), std::invalid_argument); in run_tests() 60 BOOST_TEST_THROWS((void)reduce(h, slice(0, 2, 1)), std::invalid_argument); in run_tests() 62 BOOST_TEST_THROWS((void)reduce(h, shrink(0, 0, 0)), std::invalid_argument); in run_tests() 64 BOOST_TEST_THROWS((void)reduce(h, crop(0, 0, 0)), std::invalid_argument); in run_tests() 66 BOOST_TEST_THROWS((void)reduce(h, shrink(0, 10, 11)), std::invalid_argument); in run_tests() [all …]
|
/third_party/spirv-tools/source/reduce/ |
D | BUILD.gn | 31 "//third_party/spirv-tools/source/reduce/change_operand_reduction_opportunity.cpp", 32 "//third_party/spirv-tools/source/reduce/change_operand_to_undef_reduction_opportunity.cpp", 33 …"//third_party/spirv-tools/source/reduce/conditional_branch_to_simple_conditional_branch_opportuni… 34 …"//third_party/spirv-tools/source/reduce/conditional_branch_to_simple_conditional_branch_reduction… 35 "//third_party/spirv-tools/source/reduce/merge_blocks_reduction_opportunity.cpp", 36 "//third_party/spirv-tools/source/reduce/merge_blocks_reduction_opportunity_finder.cpp", 37 "//third_party/spirv-tools/source/reduce/operand_to_const_reduction_opportunity_finder.cpp", 38 …"//third_party/spirv-tools/source/reduce/operand_to_dominating_id_reduction_opportunity_finder.cpp… 39 "//third_party/spirv-tools/source/reduce/operand_to_undef_reduction_opportunity_finder.cpp", 40 "//third_party/spirv-tools/source/reduce/reducer.cpp", [all …]
|
D | CMakeLists.txt | 81 add_library(SPIRV-Tools-reduce ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_TOOLS_REDUCE_SOURCES}) 83 spvtools_default_compile_options(SPIRV-Tools-reduce) 84 target_include_directories(SPIRV-Tools-reduce 92 target_link_libraries(SPIRV-Tools-reduce 96 set_property(TARGET SPIRV-Tools-reduce PROPERTY FOLDER "SPIRV-Tools libraries") 97 spvtools_check_symbol_exports(SPIRV-Tools-reduce) 100 install(TARGETS SPIRV-Tools-reduce EXPORT SPIRV-Tools-reduceTargets 106 spvtools_config_package_dir(SPIRV-Tools-reduce PACKAGE_DIR) 110 spvtools_generate_config_file(SPIRV-Tools-reduce)
|
/third_party/jerryscript/tests/jerry/ |
D | array-prototype-reduce.js | 23 [0].reduce(new Object()); 32 [].reduce(func); 40 assert ([].reduce(func, 1) === 1); 42 assert ([].reduce(func, undefined) === undefined); 44 assert ([0].reduce(func) === 0); 46 assert ([0, 1].reduce(func) === 1); 48 assert ([0, 1].reduce(func, 1) === 2); 50 assert ([0, 1, 2, 3].reduce(func, 1) === 7); 52 assert (["A","B"].reduce(func) === "AB"); 54 assert (["A","B"].reduce(func, "Init:") === "Init:AB"); [all …]
|
/third_party/boost/libs/compute/test/ |
D | test_reduce.cpp | 34 compute::reduce(vector.begin(), vector.end(), &sum, compute::plus<int>(), queue); in BOOST_AUTO_TEST_CASE() 38 compute::reduce(vector.begin(), vector.end(), &product, compute::multiplies<int>(), queue); in BOOST_AUTO_TEST_CASE() 47 compute::reduce(vector.begin(), vector.end(), &sum, queue); in BOOST_AUTO_TEST_CASE() 58 boost::compute::reduce(vec.begin(), vec.end(), &sum, queue); in BOOST_AUTO_TEST_CASE() 72 compute::reduce(vector.begin(), vector.end(), &sum, compute::plus<uint_>(), queue); in BOOST_AUTO_TEST_CASE() 76 compute::reduce(vector.begin(), vector.end(), &product, compute::multiplies<uint_>(), queue); in BOOST_AUTO_TEST_CASE() 85 compute::reduce(input.begin(), input.begin() + 4, result.begin(), queue); in BOOST_AUTO_TEST_CASE() 86 compute::reduce(input.begin() + 4, input.end(), result.end() - 1, queue); in BOOST_AUTO_TEST_CASE() 95 compute::reduce( in BOOST_AUTO_TEST_CASE() 105 compute::reduce( in BOOST_AUTO_TEST_CASE() [all …]
|
/third_party/boost/boost/algorithm/cxx17/ |
D | reduce.hpp | 26 T reduce(InputIterator first, InputIterator last, T init, BinaryOperation bOp) in reduce() function 35 T reduce(InputIterator first, InputIterator last, T init) in reduce() function 38 return boost::algorithm::reduce(first, last, init, std::plus<VT>()); in reduce() 43 reduce(InputIterator first, InputIterator last) in reduce() function 45 return boost::algorithm::reduce(first, last, in reduce() 51 reduce(const Range &r) in reduce() function 53 return boost::algorithm::reduce(boost::begin(r), boost::end(r)); in reduce() 58 T reduce(const Range &r, T init) in reduce() function 60 return boost::algorithm::reduce(boost::begin (r), boost::end (r), init); in reduce() 66 T reduce(const Range &r, T init, BinaryOperation bOp) in reduce() function [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | anyInferenceAnonymousFunctions.symbols | 5 paired.reduce(function (a1, a2) { 6 >paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(… 8 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5… 17 paired.reduce((b1, b2) => { 18 >paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(… 20 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5… 29 paired.reduce((b3, b4) => b3.concat({}), []); 30 >paired.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(… 32 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5…
|
D | returnTypeParameterWithModules.js | 3 export function reduce<A>(ar, f, e?): Array<A> { 4 return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]); method in Array 10 A.reduce(arguments, compose2); 20 function reduce(ar, f, e) { function 21 return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]); method in Array 23 M1.reduce = reduce; 31 A.reduce(arguments, compose2);
|
D | returnTypeParameterWithModules.symbols | 5 export function reduce<A>(ar, f, e?): Array<A> { 6 >reduce : Symbol(reduce, Decl(returnTypeParameterWithModules.ts, 0, 11)) 14 return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]); 15 >Array.prototype.reduce.apply : Symbol(Function.apply, Decl(lib.es5.d.ts, --, --)) 16 >Array.prototype.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, -… 20 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5… 40 A.reduce(arguments, compose2); 41 >A.reduce : Symbol(A.reduce, Decl(returnTypeParameterWithModules.ts, 0, 11)) 43 >reduce : Symbol(A.reduce, Decl(returnTypeParameterWithModules.ts, 0, 11))
|
D | anyInferenceAnonymousFunctions.js | 4 paired.reduce(function (a1, a2) { 10 paired.reduce((b1, b2) => { 15 paired.reduce((b3, b4) => b3.concat({}), []); 22 paired.reduce(function (a1, a2) { 25 paired.reduce(function (b1, b2) { 28 paired.reduce(function (b3, b4) { return b3.concat({}); }, []);
|
D | returnTypeParameterWithModules.types | 5 export function reduce<A>(ar, f, e?): Array<A> { 6 >reduce : <A>(ar: any, f: any, e?: any) => Array<A> 11 return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]); 12 >Array.prototype.reduce.apply(ar, e ? [f, e] : [f]) : any 13 >Array.prototype.reduce.apply : (this: Function, thisArg: any, argArray?: any) => any 14 >Array.prototype.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: numb… 18 >reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]… 41 A.reduce(arguments, compose2); 42 >A.reduce(arguments, compose2) : unknown[] 43 >A.reduce : <A>(ar: any, f: any, e?: any) => A[] [all …]
|
D | destructuringTuple.symbols | 22 const [oops1] = [1, 2, 3].reduce((accu, el) => accu.concat(el), []); 24 >[1, 2, 3].reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), De… 25 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5… 33 const [oops2] = [1, 2, 3].reduce((acc: number[], e) => acc.concat(e), []); 35 >[1, 2, 3].reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), De… 36 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5…
|
D | duplicateOverloadInTypeAugmentation1.symbols | 6 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, 7 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5… 23 … reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, 24 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5… 45 var r5 = a.reduce((x, y) => x + y); 47 >a.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.e… 49 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5…
|
D | anyInferenceAnonymousFunctions.types | 5 paired.reduce(function (a1, a2) { 6 >paired.reduce(function (a1, a2) { return a1.concat({});} , []) : any 7 >paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array… 9 >reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]… 24 paired.reduce((b1, b2) => { 25 >paired.reduce((b1, b2) => { return b1.concat({});} , []) : any 26 >paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array… 28 >reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]… 43 paired.reduce((b3, b4) => b3.concat({}), []); 44 >paired.reduce((b3, b4) => b3.concat({}), []) : any [all …]
|
D | genericContextualTypingSpecialization.symbols | 5 b.reduce<number>((c, d) => c + d, 0); // should not error on '+' 6 >b.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.e… 8 >reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5…
|
D | unionOfClassCalls.js | 29 arr.reduce((acc: Array<string>, a: number | string, index: number) => { 41 arr1.reduce((acc: number[], a: number, index: number) => { 52 arr2.reduce((acc: string[], a: string, index: number) => { 94 arr.reduce(function (acc, a, index) { 103 arr1.reduce(function (acc, a, index) { 112 arr2.reduce(function (acc, a, index) {
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
D | spirv_reduce_mutator.cc | 63 spvtools::reduce:: in SpirvReduceMutator() 65 MaybeAddFinder<spvtools::reduce::MergeBlocksReductionOpportunityFinder>(); in SpirvReduceMutator() 67 spvtools::reduce::OperandToConstReductionOpportunityFinder>(); in SpirvReduceMutator() 69 spvtools::reduce::OperandToDominatingIdReductionOpportunityFinder>(); in SpirvReduceMutator() 71 spvtools::reduce::OperandToUndefReductionOpportunityFinder>(); in SpirvReduceMutator() 72 MaybeAddFinder<spvtools::reduce::RemoveBlockReductionOpportunityFinder>(); in SpirvReduceMutator() 74 spvtools::reduce::RemoveFunctionReductionOpportunityFinder>(); in SpirvReduceMutator() 76 spvtools::reduce::RemoveSelectionReductionOpportunityFinder>(); in SpirvReduceMutator() 78 spvtools::reduce::RemoveUnusedInstructionReductionOpportunityFinder>( in SpirvReduceMutator() 81 spvtools::reduce::RemoveUnusedStructMemberReductionOpportunityFinder>(); in SpirvReduceMutator() [all …]
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/fp32/ |
D | reduce_fp32_coder.cc | 62 std::string reduce; in DoCode() local 66 reduce = "ReduceSum"; in DoCode() 70 reduce = "ReduceMean"; in DoCode() 74 reduce = "ReduceMax"; in DoCode() 78 reduce = "ReduceMin"; in DoCode() 82 reduce = "ReduceProd"; in DoCode() 87 reduce = "ReduceSumSquare"; in DoCode() 107 …code.CodeFunction(reduce, outer_size_, inner_size_, axis_size_, src_addr, dst_addr, 0, thread_num_… in DoCode()
|
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/ |
D | prefer-reduce-type-parameter.md | 1 # Prefer using type parameter when calling `Array#reduce` instead of casting (`prefer-reduce-type-p… 3 It's common to call `Array#reduce` with a generic type, such as an array or object, as the initial … 12 A better (and lesser known) solution is to pass the type in as a generic parameter to `Array#reduce… 17 This rule looks for calls to `Array#reduce`, and warns if an initial value is being passed & casted, 18 suggesting instead to pass the cast type to `Array#reduce` as its generic parameter. 23 [1, 2, 3].reduce((arr, num) => arr.concat(num * 2), [] as number[]); 25 ['a', 'b'].reduce( 37 [1, 2, 3].reduce<number[]>((arr, num) => arr.concat(num * 2), []); 39 ['a', 'b'].reduce<Record<string, boolean>>(
|
/third_party/boost/libs/mpi/example/ |
D | reduce_performance_test.cpp | 84 reduce(world, value, result, std::plus<int>(), 0); in main() 85 reduce(world, value, result, add_int(), 0); in main() 86 reduce(world, wi_value, wi_result, std::plus<wrapped_int>(), 0); in main() 87 reduce(world, si_value, si_result, std::plus<serialized_int>(), 0); in main() 101 reduce(world, value, result, std::plus<int>(), 0); in main() 108 reduce(world, value, result, add_int(), 0); in main() 115 reduce(world, wi_value, wi_result, std::plus<wrapped_int>(), 0); in main() 122 reduce(world, si_value, si_result, std::plus<serialized_int>(), 0); in main()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/ |
D | CMakeLists.txt | 85 add_library(SPIRV-Tools-reduce ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_TOOLS_REDUCE_SOURCES}) 87 spvtools_default_compile_options(SPIRV-Tools-reduce) 88 target_include_directories(SPIRV-Tools-reduce 96 target_link_libraries(SPIRV-Tools-reduce 100 set_property(TARGET SPIRV-Tools-reduce PROPERTY FOLDER "SPIRV-Tools libraries") 101 spvtools_check_symbol_exports(SPIRV-Tools-reduce) 104 install(TARGETS SPIRV-Tools-reduce EXPORT SPIRV-Tools-reduceTargets 110 spvtools_config_package_dir(SPIRV-Tools-reduce PACKAGE_DIR) 114 spvtools_generate_config_file(SPIRV-Tools-reduce)
|
/third_party/skia/third_party/externals/spirv-tools/source/reduce/ |
D | CMakeLists.txt | 85 add_library(SPIRV-Tools-reduce ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_TOOLS_REDUCE_SOURCES}) 87 spvtools_default_compile_options(SPIRV-Tools-reduce) 88 target_include_directories(SPIRV-Tools-reduce 96 target_link_libraries(SPIRV-Tools-reduce 100 set_property(TARGET SPIRV-Tools-reduce PROPERTY FOLDER "SPIRV-Tools libraries") 101 spvtools_check_symbol_exports(SPIRV-Tools-reduce) 104 install(TARGETS SPIRV-Tools-reduce EXPORT SPIRV-Tools-reduceTargets 110 spvtools_config_package_dir(SPIRV-Tools-reduce PACKAGE_DIR) 114 spvtools_generate_config_file(SPIRV-Tools-reduce)
|