From a05fa888b0118ee0ecd509c99cd1f9e8d1a45b24 Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Mon, 29 Jun 2009 10:52:57 +0000
Subject: [PATCH] trunk preprocessor: M_.NNZDerivatives is now a column vector
 instead of a matrix

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2794 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 preprocessor/DynamicModel.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preprocessor/DynamicModel.cc b/preprocessor/DynamicModel.cc
index 408fc410d..2750a2c19 100644
--- a/preprocessor/DynamicModel.cc
+++ b/preprocessor/DynamicModel.cc
@@ -2348,7 +2348,7 @@ DynamicModel::writeOutput(ostream &output) const
       output << "M_.params = repmat(NaN," << symbol_table.param_nbr() << ", 1);" << endl;
 
     // Write number of non-zero derivatives
-    output << "M_.NNZDerivatives = zeros(3);" << endl
+    output << "M_.NNZDerivatives = zeros(3, 1);" << endl
            << "M_.NNZDerivatives(1) = " << NNZDerivatives[0] << ";" << endl
            << "M_.NNZDerivatives(2) = " << NNZDerivatives[1] << ";" << endl
            << "M_.NNZDerivatives(3) = " << NNZDerivatives[2] << ";" << endl;
-- 
GitLab