From c1b0bb5ee3d5d641b4cca39d18a488e760114268 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 14 Nov 2018 15:02:15 +0100 Subject: [PATCH] initial_estimation_checks.m: Turn vector info into scalar Related to https://git.dynare.org/Dynare/dynare/commit/a5b97a28a0e26fb2448d6dcf37bdcd125e175b40 that needs to be reverted --- matlab/initial_estimation_checks.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m index 05972ef30..1ef5b7a22 100644 --- a/matlab/initial_estimation_checks.m +++ b/matlab/initial_estimation_checks.m @@ -106,7 +106,7 @@ end test_for_deep_parameters_calibration(Model); [lnprior,~,~,info]= priordens(xparam1,BayesInfo.pshape,BayesInfo.p6,BayesInfo.p7,BayesInfo.p3,BayesInfo.p4); -if info +if any(info) fprintf('The prior density evaluated at the initial values is Inf for the following parameters: %s\n',BayesInfo.name{info,1}) error('The initial value of the prior is -Inf') end