Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dynare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
122
Issues
122
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dynare
dynare
Commits
befa1b96
Commit
befa1b96
authored
Dec 09, 2010
by
Sébastien Villemot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Estimation DLL: removed illegal casts from pointer to integer
parent
452e54f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mex/sources/estimation/logMHMCMCposterior.cc
mex/sources/estimation/logMHMCMCposterior.cc
+5
-5
No files found.
mex/sources/estimation/logMHMCMCposterior.cc
View file @
befa1b96
...
...
@@ -130,7 +130,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
Matrix
MinMax
(
npar
,
2
);
const
mxArray
*
InitSizeArrayPtr
=
mexGetVariablePtr
(
"caller"
,
"InitSizeArray"
);
if
(
InitSizeArrayPtr
==
NULL
||
InitSizeArrayPtr
==
0
||
(
long
)
InitSizeArrayPtr
==-
1
)
if
(
InitSizeArrayPtr
==
NULL
)
{
mexPrintf
(
"Metropolis-Hastings myinputs field InitSizeArrayPtr Initialisation failed!
\n
"
);
return
(
-
1
);
...
...
@@ -140,7 +140,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
InitSizeArray
=
InitSizeArrayVw
;
//const mxArray *flinePtr = mxGetField(myinputs, 0, "fline");
const
mxArray
*
flinePtr
=
mexGetVariable
(
"caller"
,
"fline"
);
if
(
flinePtr
==
NULL
||
flinePtr
==
0
||
(
long
)
flinePtr
==-
1
)
if
(
flinePtr
==
NULL
)
{
mexPrintf
(
"Metropolis-Hastings myinputs field fline Initialisation failed!
\n
"
);
return
(
-
1
);
...
...
@@ -148,7 +148,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
VectorView
fline
(
mxGetPr
(
flinePtr
),
nBlocks
,
1
);
mxArray
*
NewFileArrayPtr
=
mexGetVariable
(
"caller"
,
"NewFile"
);
if
(
NewFileArrayPtr
==
NULL
||
NewFileArrayPtr
==
0
||
(
long
)
NewFileArrayPtr
==-
1
)
if
(
NewFileArrayPtr
==
NULL
)
{
mexPrintf
(
"Metropolis-Hastings myinputs fields NewFileArrayPtr Initialisation failed!
\n
"
);
return
(
-
1
);
...
...
@@ -169,13 +169,13 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
const
mxArray
*
record
=
mexGetVariable
(
"caller"
,
"record"
);
//const mxArray *record = mxGetField(myinputs, 0, "record");
if
(
record
==
NULL
||
record
==
0
||
(
long
)
record
==-
1
)
if
(
record
==
NULL
)
{
mexPrintf
(
"Metropolis-Hastings record Initialisation failed!
\n
"
);
return
(
-
1
);
}
mxArray
*
AcceptationRatesPtr
=
mxGetField
(
record
,
0
,
"AcceptationRates"
);
if
(
AcceptationRatesPtr
==
NULL
||
AcceptationRatesPtr
==
0
||
(
long
)
AcceptationRatesPtr
==-
1
)
if
(
AcceptationRatesPtr
==
NULL
)
{
mexPrintf
(
"Metropolis-Hastings record AcceptationRatesPtr Initialisation failed!
\n
"
);
return
(
-
1
);
...
...
Write
Preview
Markdown
is supported
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