Skip to content
Snippets Groups Projects
Commit 07f5de36 authored by MichelJuillard's avatar MichelJuillard
Browse files

remove param derivatives rpp gpp hp g3p

parent 59b064b8
Branches
Tags
No related merge requests found
Pipeline #11815 failed
...@@ -763,22 +763,15 @@ DynamicModel::writeParamsDerivativesFile(const string &basename) const ...@@ -763,22 +763,15 @@ DynamicModel::writeParamsDerivativesFile(const string &basename) const
<< "function dynamic_params_derivs(y, x, params, steady_state, it_," << "function dynamic_params_derivs(y, x, params, steady_state, it_,"
<< "ss_param_deriv, ss_param_2nd_deriv)" << endl << "ss_param_deriv, ss_param_2nd_deriv)" << endl
<< "@inbounds begin" << endl << "@inbounds begin" << endl
<< "T = zeros(" << params_derivs_temporary_terms_idxs.size() << ")" << endl
<< tt_output.str() << tt_output.str()
<< "rp = zeros(" << equations.size() << ", " << "rp = zeros(" << equations.size() << ", "
<< symbol_table.param_nbr() << ");" << endl << symbol_table.param_nbr() << ");" << endl
<< rp_output.str() << rp_output.str()
<< "gp = zeros(" << equations.size() << ", " << getJacobianColsNbr(false) << ", " << symbol_table.param_nbr() << ");" << endl << "gp = zeros(" << equations.size() << ", " << getJacobianColsNbr(false) << ", " << symbol_table.param_nbr() << ");" << endl
<< gp_output.str() << gp_output.str()
<< "rpp = zeros(" << params_derivatives.at({ 0, 2 }).size() << ",4);" << endl
<< rpp_output.str()
<< "gpp = zeros(" << params_derivatives.at({ 1, 2 }).size() << ",5);" << endl
<< gpp_output.str()
<< "hp = zeros(" << params_derivatives.at({ 2, 1 }).size() << ",5);" << endl
<< hp_output.str()
<< "g3p = zeros(" << params_derivatives.at({ 3, 1 }).size() << ",6);" << endl
<< g3p_output.str()
<< "end" << endl << "end" << endl
<< "return (rp, gp, rpp, gpp, hp, g3p)" << endl << "return (rp, gp)" << endl
<< "end" << endl; << "end" << endl;
writeToFileIfModified(output, filesystem::path{basename} / "model" / "julia" / "DynamicParamsDerivs.jl"); writeToFileIfModified(output, filesystem::path{basename} / "model" / "julia" / "DynamicParamsDerivs.jl");
......
...@@ -275,6 +275,7 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const ...@@ -275,6 +275,7 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const
<< "#" << endl << "#" << endl
<< "function static_params_derivs(y, x, params)" << endl << "function static_params_derivs(y, x, params)" << endl
<< "@inbounds begin" << endl << "@inbounds begin" << endl
<< "T = zeros(" << params_derivs_temporary_terms_idxs.size() << ")" << endl
<< tt_output.str() << tt_output.str()
<< "rp = zeros(" << equations.size() << ", " << "rp = zeros(" << equations.size() << ", "
<< symbol_table.param_nbr() << ");" << endl << symbol_table.param_nbr() << ");" << endl
...@@ -282,14 +283,8 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const ...@@ -282,14 +283,8 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const
<< "gp = zeros(" << equations.size() << ", " << symbol_table.endo_nbr() << ", " << "gp = zeros(" << equations.size() << ", " << symbol_table.endo_nbr() << ", "
<< symbol_table.param_nbr() << ");" << endl << symbol_table.param_nbr() << ");" << endl
<< gp_output.str() << gp_output.str()
<< "rpp = zeros(" << params_derivatives.at({ 0, 2 }).size() << ",4);" << endl
<< rpp_output.str()
<< "gpp = zeros(" << params_derivatives.at({ 1, 2 }).size() << ",5);" << endl
<< gpp_output.str()
<< "hp = zeros(" << params_derivatives.at({ 2, 1 }).size() << ",5);" << endl
<< hp_output.str()
<< "end" << endl << "end" << endl
<< "return (rp, gp, rpp, gpp, hp)" << endl << "return (rp, gp)" << endl
<< "end" << endl; << "end" << endl;
writeToFileIfModified(output, filesystem::path{basename} / "model" / "julia" / "StaticParamsDerivs.jl"); writeToFileIfModified(output, filesystem::path{basename} / "model" / "julia" / "StaticParamsDerivs.jl");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment