generator function

Build the generator matrix of a continuous-time Markov chain