mrc-ide / covid-sim

This is the COVID-19 CovidSim microsimulation model developed by the MRC Centre for Global Infectious Disease Analysis hosted at Imperial College, London.
GNU General Public License v3.0
1.23k stars 257 forks source link

Separate out the distance calculations #444

Open zebmason opened 3 years ago

zebmason commented 3 years ago

By removing branching this may make the calculations faster (branch prediction may disagree). Can add in unit tests.

@weshinsley Let me know if you are interested and I'll do further development.

zebmason commented 3 years ago

This fixes #447