diff --git a/matlab/check_posterior_sampler_options.m b/matlab/check_posterior_sampler_options.m index 5f0cd7b7d..acaff8da9 100644 --- a/matlab/check_posterior_sampler_options.m +++ b/matlab/check_posterior_sampler_options.m @@ -73,6 +73,10 @@ if strcmp(options_.posterior_sampling_method,'slice') if options_.load_mh_file, posterior_sampler_options.slice_initialize_with_mode = 0; + else + if ~posterior_sampler_options.slice_initialize_with_mode, + posterior_sampler_options.invhess=[]; + end end if posterior_sampler_options.rotated,