Skip to content
Snippets Groups Projects
Commit c99935dd authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Revert "k_order mex: added derivatives as members of KorderpDynare"

This reverts commit 1424cf2e.
parent f4c2c2c6
Branches
Tags
No related merge requests found
......@@ -89,8 +89,10 @@ KordpDynare::evaluateSystem(Vector &out, const Vector &yym, const Vector &yy,
void
KordpDynare::calcDerivativesAtSteady() throw (DynareException)
{
g1p = new TwoDMatrix(nY, nJcols);
g1p->zeros();
TwoDMatrix g1(nY, nJcols);
g1.zeros();
TwoDMatrix *g2p = NULL, *g3p = NULL;
if (nOrder > 1)
{
......@@ -113,10 +115,9 @@ KordpDynare::calcDerivativesAtSteady() throw (DynareException)
Vector llxSteady(nJcols-nExog);
LLxSteady(ySteady, llxSteady);
dynamicModelFile->eval(llxSteady, xx, params, ySteady, out, g1p, g2p, g3p);
dynamicModelFile->eval(llxSteady, xx, params, ySteady, out, &g1, g2p, g3p);
populateDerivativesContainer(*g1p, 1, JacobianIndices);
delete g1p;
populateDerivativesContainer(g1, 1, JacobianIndices);
if (nOrder > 1)
{
......
......@@ -113,10 +113,6 @@ class KordpDynare : public DynamicModel
const TwoDMatrix &ll_Incidence;
double qz_criterium;
vector<int> JacobianIndices;
TwoDMatrix *g1p;
TwoDMatrix *g2p;
TwoDMatrix *g3p;
public:
KordpDynare(const vector<string> &endo, int num_endo,
const vector<string> &exo, int num_exo, int num_par,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment