Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
85f00188
Commit
85f00188
authored
Dec 06, 2013
by
Sébastien Villemot
Browse files
Estimation DLL: fix bug with creating MAT files
Similar problem to #446
parent
f6409128
Changes
1
Hide whitespace changes
Inline
Side-by-side
mex/sources/estimation/logMHMCMCposterior.cc
View file @
85f00188
...
@@ -509,7 +509,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
...
@@ -509,7 +509,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
ssFName
<<
resultsFileStem
<<
DIRECTORY_SEPARATOR
<<
"metropolis"
<<
DIRECTORY_SEPARATOR
<<
resultsFileStem
<<
"_mh"
<<
(
size_t
)
NewFileVw
(
b
-
1
)
<<
"_blck"
<<
b
<<
".mat"
;
ssFName
<<
resultsFileStem
<<
DIRECTORY_SEPARATOR
<<
"metropolis"
<<
DIRECTORY_SEPARATOR
<<
resultsFileStem
<<
"_mh"
<<
(
size_t
)
NewFileVw
(
b
-
1
)
<<
"_blck"
<<
b
<<
".mat"
;
mhFName
=
ssFName
.
str
();
mhFName
=
ssFName
.
str
();
drawmat
=
Mat_
Open
(
mhFName
.
c_str
(),
MAT_ACC_RDWR
);
drawmat
=
Mat_
Create
(
mhFName
.
c_str
(),
NULL
);
if
(
drawmat
==
0
)
if
(
drawmat
==
0
)
{
{
mexPrintf
(
"Error in MH: Can not open draws Mat file for writing: %s
\n
"
,
mhFName
.
c_str
());
mexPrintf
(
"Error in MH: Can not open draws Mat file for writing: %s
\n
"
,
mhFName
.
c_str
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment