Example
#include <experimental/simd>
int main() {
std::experimental::simd<int> s{};
s = 1;
for (auto i = 0; i < std::size(s); ++i) {
std::print("{}", int(s[i])); // prints 1111 (depending on the arch)
}
}
Puzzle
- **Can you show use cases for all simd constructors?
// TODO simd constructors
Solutions