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

logMHMCMCposterior: minor compatibility fix for Octave (the 3rd arg of...

logMHMCMCposterior: minor compatibility fix for Octave (the 3rd arg of mexPutVariable() is not marked "const" under Octave)
parent 8d3d0041
......@@ -128,7 +128,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
const mxArray *flinePtr = mxGetField(myinputs, 0, "fline");
VectorView fline(mxGetPr(flinePtr), nBlocks, 1);
const mxArray *NewFileArrayPtr = mxGetField(myinputs, 0, "NewFile");
mxArray *NewFileArrayPtr = mxGetField(myinputs, 0, "NewFile");
VectorView NewFileVw(mxGetPr(NewFileArrayPtr), nBlocks, 1);
Vector NewFile(NewFileVw.getSize());
NewFile = NewFileVw;
......@@ -146,7 +146,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
VectorView FirstLogLiK(mxGetPr(mxFirstLogLikPtr), nBlocks, 1);
const mxArray *record = mxGetField(myinputs, 0, "record");
const mxArray *AcceptationRatesPtr = mxGetField(record, 0, "AcceptationRates");
mxArray *AcceptationRatesPtr = mxGetField(record, 0, "AcceptationRates");
VectorView AcceptationRates(mxGetPr(AcceptationRatesPtr), nBlocks, 1);
mxArray *mxLastParametersPtr = mxGetField(record, 0, "LastParameters");
......
Supports Markdown
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