replace mex.h with dynmex.h
parent
59f53bc8ea
commit
4ac3a6c5a4
|
@ -27,7 +27,7 @@
|
||||||
#include "LogPosteriorDensity.hh"
|
#include "LogPosteriorDensity.hh"
|
||||||
#include "RandomWalkMetropolisHastings.hh"
|
#include "RandomWalkMetropolisHastings.hh"
|
||||||
|
|
||||||
#include "mex.h"
|
#include <dynmex.h>
|
||||||
#if defined MATLAB_MEX_FILE
|
#if defined MATLAB_MEX_FILE
|
||||||
# include "mat.h"
|
# include "mat.h"
|
||||||
#else // OCTAVE_MEX_FILE e.t.c.
|
#else // OCTAVE_MEX_FILE e.t.c.
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
#include "Matrix.hh"
|
#include "Matrix.hh"
|
||||||
#include "LogPosteriorDensity.hh"
|
#include "LogPosteriorDensity.hh"
|
||||||
|
|
||||||
#include "dynmex.h"
|
#include <dynmex.h>
|
||||||
#include "mex.h"
|
|
||||||
|
|
||||||
class LogposteriorMexErrMsgTxtException
|
class LogposteriorMexErrMsgTxtException
|
||||||
{
|
{
|
||||||
|
@ -155,7 +154,7 @@ logposterior(const VectorConstView &estParams, const MatrixConstView &data,
|
||||||
std::bind2nd(std::minus<size_t>(), 1));
|
std::bind2nd(std::minus<size_t>(), 1));
|
||||||
|
|
||||||
if (data.getRows() != n_varobs)
|
if (data.getRows() != n_varobs)
|
||||||
throw LogposteriorMexErrMsgTxtException("Data has not as many rows as there are observed variables");
|
throw LogposteriorMexErrMsgTxtException("Data does not have as many rows as there are observed variables");
|
||||||
|
|
||||||
std::vector<EstimationSubsample> estSubsamples;
|
std::vector<EstimationSubsample> estSubsamples;
|
||||||
estSubsamples.push_back(EstimationSubsample(0, data.getCols() - 1));
|
estSubsamples.push_back(EstimationSubsample(0, data.getCols() - 1));
|
||||||
|
|
Loading…
Reference in New Issue