On Friday, 20 February 2015 at 09:44:36 UTC, John Colvin wrote:
Eh? Knowing the ordering and that the distribution is uniform* isn't going to be enough to iterate by SIMD. You need to know the complete iteration scheme.

That's the point of a "concept". The concept provides constraints that in turn provides certain guarantees. E.g.

1. that the addresses of elements provided by the iterator (or range) are in order
2. that they are evenly spaced
3. a means to obtain the stride (distance between elements)

So if you obtain the address of a start element and and end element you can iterate using SIMD.

*what do you even mean by that? Jargon is only useful when it's used with precision.

That elements are evenly spaced in storage.

Reply via email to