epiverse-trace / epidemics

A library of published compartmental epidemic models, and classes to represent demographic structure, non-pharmaceutical interventions, and vaccination regimes, to compose epidemic scenarios.
https://epiverse-trace.github.io/epidemics/
Other
8 stars 2 forks source link

vectorise prob_discrete_erlang #171

Closed TimTaylor closed 6 months ago

TimTaylor commented 6 months ago

Not sure how much this improves performance but there were some opportunities to vectorise this (at expense of more memory usage). Have also preallocated one of the outputs - not sure if that will help or not.

pratikunterwegs commented 6 months ago

Leaving the comment re: sufficient length in as a reminder to revisit the issue.