Home
last modified time | relevance | path

Searched refs:binary_op (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/pstl/test/std/numerics/numeric.ops/
H A Dtransform_scan.pass.cpp43 BinaryOp binary_op, T trash) in operator ()()
81 T init, BinaryOperation binary_op) noexcept in transform_inclusive_scan_serial() argument
85 init = binary_op(init, unary_op(*first)); in transform_inclusive_scan_serial()
95 T init, BinaryOperation binary_op) noexcept in transform_exclusive_scan_serial() argument
100 init = binary_op(init, unary_op(*first)); in transform_exclusive_scan_serial()
107 test(UnaryOp unary_op, Out init, BinaryOp binary_op, Out trash) in test() argument
117 tmp = binary_op(tmp, unary_op(in[k])); in test()
123 tmp = binary_op(tmp, unary_op(in[k])); in test()
138 expected.end(), in.size(), unary_op, init, binary_op, trash); in test()
140 expected.end(), in.size(), unary_op, init, binary_op, trash); in test()
[all …]
H A Dscan.pass.cpp42 init = binary_op(init, *first); in exclusive_scan_serial()
54 init = binary_op(init, *first); in inclusive_scan_serial()
68 return inclusive_scan_serial(++first, last, ++result, binary_op, tmp); in inclusive_scan_serial()
142 Iterator3 expected_first, Iterator3, Size n, T init, BinaryOp binary_op, T trash) in operator ()()
146 … auto orr1 = inclusive ? inclusive_scan_serial(in_first, in_last, expected_first, binary_op, init) in operator ()()
147 … : exclusive_scan_serial(in_first, in_last, expected_first, init, binary_op); in operator ()()
149 auto orr = inclusive ? inclusive_scan(exec, in_first, in_last, out_first, binary_op, init) in operator ()()
150 : exclusive_scan(exec, in_first, in_last, out_first, init, binary_op); in operator ()()
166 test_matrix(Out init, BinaryOp binary_op, Out trash) in test_matrix() argument
176 expected.begin(), expected.end(), in.size(), init, binary_op, trash); in test_matrix()
[all …]
H A Dreduce.pass.cpp34 test_long_form(T init, BinaryOp binary_op, F f) in test_long_form() argument
42 expected = binary_op(expected, in[k]); in test_long_form()
46 …T result = transform_reduce_serial(in.cfbegin(), in.cfend(), init, binary_op, [](const T& t) { ret… in test_long_form()
49 …on_all_policies(test_long_forms_for_one_policy(), in.begin(), in.end(), init, binary_op, expected); in test_long_form()
50 …_all_policies(test_long_forms_for_one_policy(), in.cbegin(), in.cend(), init, binary_op, expected); in test_long_form()
/llvm-project-15.0.7/libcxx/include/
H A Dnumeric25 accumulate(InputIterator first, InputIterator last, T init, BinaryOperation binary_op);
37 reduce(InputIterator first, InputIterator last, T init, BinaryOperation binary_op); // C++17
63 BinaryOperation binary_op, UnaryOperation unary_op); // C++17
71 …ial_sum(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation binary_op);
81 OutputIterator result, T init, BinaryOperation binary_op); // C++17
90 OutputIterator result, BinaryOperation binary_op); // C++17
95 OutputIterator result, BinaryOperation binary_op, T init); // C++17
102 BinaryOperation binary_op, UnaryOperation unary_op); // C++17
109 BinaryOperation binary_op, UnaryOperation unary_op); // C++17
116 BinaryOperation binary_op, UnaryOperation unary_op,
[all …]
H A Dalgorithm155 F binary_op, Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
163 F binary_op, Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
1261 OutputIterator result, BinaryOperation binary_op);
/llvm-project-15.0.7/libcxx/include/experimental/
H A Dsimd153 typename V::value_type neutral_element, BinaryOperation binary_op);
156 typename V::value_type reduce(const const_where_expression<M, V>& x, plus<> binary_op = plus<>());
159 typename V::value_type reduce(const const_where_expression<M, V>& x, multiplies<> binary_op);
162 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_and<> binary_op);
165 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_or<> binary_op);
168 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_xor<> binary_op);
/llvm-project-15.0.7/pstl/test/support/
H A Dutils.h1257 transform_reduce_serial(InputIterator first, InputIterator last, T init, BinaryOperation binary_op,
1262 init = binary_op(init, unary_op(*first));