Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do simd reductions allow binary ops on T? #67

Open
mattkretz opened this issue Mar 28, 2018 · 0 comments
Open

Why do simd reductions allow binary ops on T? #67

mattkretz opened this issue Mar 28, 2018 · 0 comments
Labels
Parallelism 2 TS issues that may need to be handled in the TS

Comments

@mattkretz
Copy link
Owner

template <class T, class Abi, class BinaryOperation = plus<>>
T reduce(const simd<T, Abi>& x, BinaryOperation binary_op = {});

Requires: binary_op shall be callable with two arguments of type T returning T, or callable with two arguments of type simd<T, A1> returning simd<T, A1> for every A1 that is an ABI tag type.

Why isn't this “Requires: binary_op shall be callable with two arguments of type simd<T, A1> returning simd<T, A1> for every A1 that is an ABI tag type.”?

@mattkretz mattkretz added the Parallelism 2 TS issues that may need to be handled in the TS label Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parallelism 2 TS issues that may need to be handled in the TS
Projects
None yet
Development

No branches or pull requests

1 participant