This branch adds the slice sampler by factorizing at the same time posterior sampling iteration.
This means all samplers [RW metropolis, independent metropolis and slice] use the same routines to run:
posterior_sampler_iteration triggers the individual sampler at each iteration.
@JohannesPfeifer in principle this could be done also for TaRB, but I did not added yet TaRB steps into
posterior_sampler_iteration, so I still call TaRB from
Under this setting, any new posterior sampler (including slice) is already automatically parallelized.
If things are OK, the following routines become isolated and no longer used:
The new routines
are already merged merged with recent new commits by @JohannesPfeifer in particular about
I was unsure whether it would have been better just a renaming of the parent routines
from which I started to develop