From 892b565fc8eebd0ffe71169ddb58af32c4085a49 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Fri, 14 Mar 2014 10:21:42 +0100 Subject: [PATCH] Fix comments in header of dynamic and static files Columns and rows were confused --- DynamicModel.cc | 12 ++++++------ StaticModel.cc | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/DynamicModel.cc b/DynamicModel.cc index 1a5de8b9..a1b8c31c 100644 --- a/DynamicModel.cc +++ b/DynamicModel.cc @@ -1525,14 +1525,14 @@ DynamicModel::writeDynamicMFile(const string &dynamic_basename) const << "% residual [M_.endo_nbr by 1] double vector of residuals of the dynamic model equations in order of " << endl << "% declaration of the equations" << endl << "% g1 [M_.endo_nbr by #dynamic variables] double Jacobian matrix of the dynamic model equations;" << endl - << "% columns: equations in order of declaration" << endl - << "% rows: variables in order stored in M_.lead_lag_incidence" << endl + << "% rows: equations in order of declaration" << endl + << "% columns: variables in order stored in M_.lead_lag_incidence" << endl << "% g2 [M_.endo_nbr by (#dynamic variables)^2] double Hessian matrix of the dynamic model equations;" << endl - << "% columns: equations in order of declaration" << endl - << "% rows: variables in order stored in M_.lead_lag_incidence" << endl + << "% rows: equations in order of declaration" << endl + << "% columns: variables in order stored in M_.lead_lag_incidence" << endl << "% g3 [M_.endo_nbr by (#dynamic variables)^3] double Third order derivative matrix of the dynamic model equations;" << endl - << "% columns: equations in order of declaration" << endl - << "% rows: variables in order stored in M_.lead_lag_incidence" << endl + << "% rows: equations in order of declaration" << endl + << "% columns: variables in order stored in M_.lead_lag_incidence" << endl << "%" << endl << "%" << endl << "% Warning : this file is generated automatically by Dynare" << endl diff --git a/StaticModel.cc b/StaticModel.cc index d82efaed..ba1f695d 100644 --- a/StaticModel.cc +++ b/StaticModel.cc @@ -1161,11 +1161,11 @@ StaticModel::writeStaticMFile(const string &func_name) const << "% residual [M_.endo_nbr by 1] double vector of residuals of the static model equations " << endl << "% in order of declaration of the equations" << endl << "% g1 [M_.endo_nbr by M_.endo_nbr] double Jacobian matrix of the static model equations;" << endl - << "% columns: equations in order of declaration" << endl - << "% rows: variables in declaration order" << endl + << "% columns: variables in declaration order" << endl + << "% rows: equations in order of declaration" << endl << "% g2 [M_.endo_nbr by (M_.endo_nbr)^2] double Hessian matrix of the static model equations;" << endl - << "% columns: equations in order of declaration" << endl - << "% rows: variables in declaration order" << endl + << "% columns: variables in declaration order" << endl + << "% rows: equations in order of declaration" << endl << "% g3 [M_.endo_nbr by (M_.endo_nbr)^3] double Third derivatives matrix of the static model equations;" << endl << "% columns: variables in declaration order" << endl << "% rows: equations in order of declaration" << endl