You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the proposed data parallel types are conceptually not arrays, they still provide the subscript operator and can at least be treated similarly to arrays. A notable missing piece is the ability to destructure data parallel types, possibly into packs:
intmain() {
auto s = std::experimental::native_simd<double>{[](auto ic) -> float { return ic * 2; }};
auto& [a, b, c, d] = s; // only with e.g. AVX2constauto [...parts] = s; // generic, P1061
}
Although the proposed data parallel types are conceptually not arrays, they still provide the subscript operator and can at least be treated similarly to arrays. A notable missing piece is the ability to destructure data parallel types, possibly into packs:
The implementation should not be too hard, here is a sketch: https://godbolt.org/z/zGYx1vezv
The text was updated successfully, but these errors were encountered: