Skip to content
Snippets Groups Projects
Verified Commit 5b6c3bb4 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

k_order_perturbation MEX: small simplification in handling of NameLists

parent aaaa897a
Branches
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ KordpDynare::KordpDynare(const std::vector<std::string> &endo,
nYs{npred + nboth}, nYss{nboth + nforw}, nY{nstat + npred + nboth + nforw},
nJcols{nExog+nY+nYs+nYss}, NNZD{nnzd}, nSteps{nsteps},
nOrder{norder}, journal{jr}, ySteady{ysteady}, params{inParams}, vCov{vcov},
md{1}, dnl{*this, endo}, denl{*this, exo}, dsnl{*this, dnl, denl},
md{1}, dnl{endo}, denl{exo}, dsnl{*this, dnl, denl},
ll_Incidence{llincidence},
dynamicModelFile{std::move(dynamicModelFile_arg)}
{
......@@ -223,7 +223,7 @@ KordpDynare::push_back_md(const mxArray *m)
dyn_md.emplace_back(ConstTwoDMatrix{m});
}
DynareNameList::DynareNameList(const KordpDynare &dynare, std::vector<std::string> names_arg)
DynareNameList::DynareNameList(std::vector<std::string> names_arg)
: names(std::move(names_arg))
{
}
......
......@@ -35,12 +35,12 @@
class KordpDynare;
// instantiations of pure abstract class NameList in dynamic_model.h
// Trivial implementation of pure abstract class NameList in dynamic_model.h
class DynareNameList : public NameList
{
std::vector<std::string> names;
public:
DynareNameList(const KordpDynare &dynare, std::vector<std::string> names_arg);
DynareNameList(std::vector<std::string> names_arg);
int
getNum() const override
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment