Commit b7b1b38e authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'complex_data' into 'master'

initial_estimation_checks.m: error out if data is complex

See merge request Dynare/dynare!1879
parents 53abaf5b b2c6a6f7
......@@ -218,6 +218,10 @@ if DynareOptions.ramsey_policy
end
end
if ~isreal(DynareDataset.data)
error('initial_estimation_checks: the data contains complex values.')
end
% Evaluate the likelihood.
ana_deriv = DynareOptions.analytic_derivation;
DynareOptions.analytic_derivation=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment