Verified Commit 1c33af48 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix bug introduced in bfd93f4a with correlations in estim_params

For correlations, there is one extra columns (since there are two symbol
indices). MATLAB automatically adds the missing column, while Octave is
stricter when verifying dimensions.

By the way, add a missing comma.
parent bfd93f4a
Pipeline #239 passed with stage
in 1 minute and 23 seconds
......@@ -1393,8 +1393,8 @@ EstimatedParamsStatement::writeOutput(ostream &output, const string &basename, b
{
output << "estim_params_.var_exo = zeros(0, 10);" << endl
<< "estim_params_.var_endo = zeros(0, 10);" << endl
<< "estim_params_.corrx = zeros(0, 10);" << endl
<< "estim_params_.corrn = zeros(0, 10);" << endl
<< "estim_params_.corrx = zeros(0, 11);" << endl
<< "estim_params_.corrn = zeros(0, 11);" << endl
<< "estim_params_.param_vals = zeros(0, 10);" << endl;
for (const auto & it : estim_params_list)
......@@ -1420,7 +1420,7 @@ EstimatedParamsStatement::writeOutput(ostream &output, const string &basename, b
output << "estim_params_.corrx = [estim_params_.corrx; ";
else if (symb_type == SymbolType::endogenous)
output << "estim_params_.corrn = [estim_params_.corrn; ";
output << symb_id << " " << symbol_table.getTypeSpecificID(it.name2)+1;
output << symb_id << ", " << symbol_table.getTypeSpecificID(it.name2)+1;
break;
}
output << ", ";
......
Supports Markdown
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