Commit 9ef3a279 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Preprocessor: use NaN() for initializing vector of parameters

parent dc8a3c98
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment