Skip to content

Commit

Permalink
Remove cumsum broadcast optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs authored Oct 4, 2024
1 parent e101e96 commit 5a429ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EpiAware/src/EpiInfModels/ExpGrowthRate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ I_t = generated_quantities(latent_inf, θ)
"
@model function EpiAwareBase.generate_latent_infs(epi_model::ExpGrowthRate, rt)
init_incidence ~ epi_model.initialisation_prior
return xexpy.(1.0, accumulate(+, rt; init = init_incidence))
return xexpy.(1.0, init_incidence .+ cumsum(rt))
end

0 comments on commit 5a429ca

Please sign in to comment.