We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
we could vectorize computations, like the one below, using the SSE instructions. How does one do that? Is there any advantage?
for (std::size_t i = 0; i != tmpa_.num_elements(); ++i) { tmpa_.data()[i] = std::conj(tmpa_.data()[i]) * (tmpb_.data()[i]); }
The text was updated successfully, but these errors were encountered:
This link:
https://users.ece.cmu.edu/~franzf/teaching/slides-18-645-simd.pdf
has some relevant bits around slide 25. Basically there is a cool addsub instruction that helps with complex number arithmetic.
addsub
Also check:
https://en.wikipedia.org/wiki/SSE3#New_instructions
Sorry, something went wrong.
No branches or pull requests
we could vectorize computations, like the one below, using the SSE instructions. How does one do that? Is there any advantage?
The text was updated successfully, but these errors were encountered: