pnnl / SHAD

Scalable High-performance Algorithms and Data-structures
Apache License 2.0
122 stars 35 forks source link

[#147] Propose a specialized trait for random access iterators. #148

Closed mminutoli closed 5 years ago

mminutoli commented 5 years ago

The function contiguos_block_list returns a sequence of triples (l,b,e) where l is the Locality, b is a global iterator to the start of a local block in l, and e i the end of a local block in l. The list contains one element for each and every blocks that are in the input range.

mminutoli commented 5 years ago

It is just a proof of concept. Before merging, I'll implement it for the array.

mminutoli commented 5 years ago

@droccom : I have implemented the trait with the vector trick. Let's try it. I'll write the range in the generator range in parallel.

mminutoli commented 5 years ago

@droccom : it should be fixed now.