Closed ndunnewind closed 2 years ago
I thought nret
was passed to rep
as times
instead of length
in the original implementation. I just fixed my suggestion, which still significantly improves performance.
user system elapsed
8.17 0.00 8.16
Thanks, merged!
Calculating the CI of e.g. the median of a
flexsurvpline
model takes quite some time.This takes around 11 seconds on my system.
This PR improves the performance of the matrix replications in
dbase.survspline
(based on https://stackoverflow.com/a/13035504), after which thesummary
call takes around 7 seconds.