diff --git a/matlab/check_posterior_sampler_options.m b/matlab/check_posterior_sampler_options.m index 5f0cd7b7d39f88527bd81181b17d5c137dc21aac..acaff8da9409e699d31ddac8ce488931748e754a 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,