heemod
heemod copied to clipboard
Optimize matrix evaluation
With big transition matrices (especially with state expansion) the matrix evaluation step in dplyr::mutate_()
is very slow.
This could be optimized by using a sparse matrix approach: in state expansion situations most of the matrix is composed of 0. If only the non-0 cells were in the uneval_matrix
object then the evaluation time would be greatly accelerated.