k_order_perturbation MEX: small simplification in handling of NameLists

time-shift
Sébastien Villemot 2019-07-09 17:26:27 +02:00
parent aaaa897a2a
commit 5b6c3bb452
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 4 additions and 4 deletions

View File

@ -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))
{
}

View File

@ -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
{