heemod icon indicating copy to clipboard operation
heemod copied to clipboard

Optimize matrix evaluation

Open pierucci opened this issue 7 years ago • 1 comments

With big transition matrices (especially with state expansion) the matrix evaluation step in dplyr::mutate_() is very slow.

pierucci avatar Feb 01 '17 14:02 pierucci

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.

pierucci avatar Feb 01 '17 14:02 pierucci