trunk preprocessor: output the number of non-zero derivatives in main M-file
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2792 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
421b8d4f65
commit
e749a3f979
|
@ -2346,6 +2346,12 @@ DynamicModel::writeOutput(ostream &output) const
|
||||||
}
|
}
|
||||||
if (symbol_table.param_nbr())
|
if (symbol_table.param_nbr())
|
||||||
output << "M_.params = repmat(NaN," << symbol_table.param_nbr() << ", 1);" << endl;
|
output << "M_.params = repmat(NaN," << symbol_table.param_nbr() << ", 1);" << endl;
|
||||||
|
|
||||||
|
// Write number of non-zero derivatives
|
||||||
|
output << "M_.NNZDerivatives = zeros(3);" << endl
|
||||||
|
<< "M_.NNZDerivatives(1) = " << NNZDerivatives[0] << ";" << endl
|
||||||
|
<< "M_.NNZDerivatives(2) = " << NNZDerivatives[1] << ";" << endl
|
||||||
|
<< "M_.NNZDerivatives(3) = " << NNZDerivatives[2] << ";" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue