From 6c37f6def8ec52d9e069f60c42b63f3afaf6e9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 27 Apr 2011 12:07:13 +0200 Subject: [PATCH] Preprocessor: use NaN() for initializing vector of parameters --- DynamicModel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicModel.cc b/DynamicModel.cc index 9c030b12..e30fec77 100644 --- a/DynamicModel.cc +++ b/DynamicModel.cc @@ -2519,7 +2519,7 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de << "oo_.exo_det_steady_state = zeros(" << symbol_table.exo_det_nbr() << ", 1);" << endl; } if (symbol_table.param_nbr()) - output << "M_.params = repmat(NaN," << symbol_table.param_nbr() << ", 1);" << endl; + output << "M_.params = NaN(" << symbol_table.param_nbr() << ", 1);" << endl; // Write number of non-zero derivatives // Use -1 if the derivatives have not been computed