expm_terms function

expm terms of phase-type likelihood using uniformization