|
vir-simd 0.4.189
Parallelism TS 2 extensions and simd fallback implementation
|
Reduces the range along with the initial value init over op.
More...
Functions | |
| template<detail::simd_execution_policy ExecutionPolicy, detail::simd_execution_iterator It, typename F> | |
| constexpr int | vir::count_if (ExecutionPolicy pol, It first, It last, F &&pred) |
Count the elements in the input range matching pred (iterator overload) | |
| template<detail::simd_execution_policy ExecutionPolicy, detail::simd_execution_range R, typename F> | |
| constexpr int | vir::count_if (ExecutionPolicy pol, R &&rg, F &&pred) |
Count the elements in the input range matching pred (range overload) | |
| template<vir::detail::simd_execution_policy ExecutionPolicy, vir::detail::simd_execution_iterator It, typename F> | |
| constexpr int | std::count_if (ExecutionPolicy pol, It first, It last, F &&fun) |
| Overloads std::count_if for vir::execution::simd. | |
Reduces the range along with the initial value init over op.
| pol | Needs to be vir::execution::simd or one of the derived types returned from its modifiers. (vir::detail::simd_execution_policy) |
| first,last | Iterator pair modelling vir::detail::simd_execution_iterator. |
| rg | Input ranges modelling vir::detail::simd_execution_range. |
| pred | Callable that is invoked with multiple input elements in a simd object, returning a simd_mask indicating the elements to be counted. |
true values in all simd_mask objects returned from invocations of pred.