epiverse-trace / finalsize

R package to calculate the final size of an SIR epidemic in populations with heterogeneity in social contacts and disease susceptibility
https://epiverse-trace.github.io/finalsize/
Other
11 stars 7 forks source link

Vectorise contact_matrix filling in iterative solver #51

Closed pratikunterwegs closed 2 years ago

pratikunterwegs commented 2 years ago

Iterative solver loop from L. 42 onwards can probably be vectorised which would be quicker if so.

_Originally posted by @TimTaylor in https://github.com/epiverse-trace/finalsize/pull/42#discussion_r983980261_