HISKP-LQCD / sLapH-contractions

Stochastic LapH contraction program
GNU General Public License v3.0
3 stars 3 forks source link

Store used random vector ids in a bitfield #80

Closed martin-ueding closed 5 years ago

martin-ueding commented 5 years ago

We currently use a boost::container::static_vector<RndId, 10> to store the used random vector ids. Then we use set intersection to find whether some id has been used already. Instead we could just use a bitfield where each id is a bit. Intersection is then dead-easy with &. This will take less cycles and also less memory and makes the code easier.