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
Johannes Pfeifer
dynare
Commits
f38a1eda
Commit
f38a1eda
authored
Jun 08, 2021
by
Johannes Pfeifer
Browse files
posterior_sampler.m: trap case where record.ProposalCovariance is not filled (slice sampler)
parent
765109ee
Pipeline
#5457
passed with stages
in 55 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
matlab/posterior_sampler.m
View file @
f38a1eda
...
...
@@ -156,8 +156,10 @@ else
record
.
FunctionEvalPerIteration
(
offset
+
1
:
sum
(
nBlockPerCPU
(
1
:
j
)))
=
fout
(
j
)
.
record
.
FunctionEvalPerIteration
(
offset
+
1
:
sum
(
nBlockPerCPU
(
1
:
j
)));
record
.
LastSeeds
(
offset
+
1
:
sum
(
nBlockPerCPU
(
1
:
j
)))
=
fout
(
j
)
.
record
.
LastSeeds
(
offset
+
1
:
sum
(
nBlockPerCPU
(
1
:
j
)));
if
j
==
1
record
.
ProposalCovariance
=
fout
(
j
)
.
record
.
ProposalCovariance
;
record
.
ProposalScaleVec
=
fout
(
j
)
.
record
.
ProposalScaleVec
;
if
isfield
(
fout
(
j
)
.
record
,
'ProposalCovariance'
)
&&
isfield
(
fout
(
j
)
.
record
,
'ProposalScaleVec'
)
record
.
ProposalCovariance
=
fout
(
j
)
.
record
.
ProposalCovariance
;
record
.
ProposalScaleVec
=
fout
(
j
)
.
record
.
ProposalScaleVec
;
end
end
end
options_
.
parallel_info
.
parallel_recover
=
0
;
...
...
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