Commit b9c1badc authored by Jerome Benoit's avatar Jerome Benoit

RC #793998 - eg/test_updating - fix

parent 1c38c3ae
apophenia (0.999e+ds-3) UNRELEASED; urgency=medium
* RC bug fix release (Closes: #793998):
- eg/test_updating FAILURE on some architectures: intricate type conversion
in apop_mcmc.c, unfold.
-- Jerome Benoit <calculus@rezozer.net> Sat, 29 Aug 2015 01:56:36 +0000
apophenia (0.999e+ds-2) unstable; urgency=medium
* RC bug fix release (Closes: #793998), disable extended tests.
......
upstream-bug-793998-eg_test_updating.patch
debianization.patch
debianization-help2man.patch
debianization-documentation.patch
......
Description: upstream -- RC bug fix 793998 -- eg/test_updating
Fix a type conversion bug that failed the eg/test_updating test on some
architectures (e.g., arm64 and ppc64el).
Origin: debian
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2015-08-29
--- a/apop_mcmc.c
+++ b/apop_mcmc.c
@@ -196,13 +196,13 @@
}
-void main_mcmc_loop(apop_data *d, apop_model *m, apop_data *out, gsl_vector *draw,
+void main_mcmc_loop(apop_data *d, apop_model *m, apop_data *out, gsl_vector *draw,
apop_mcmc_settings *s, gsl_rng *rng, int *constraint_fails){
s->accept_count = 0;
+ int out_row = - s->periods*s->burnin;
int block = 0;
- for (s->proposal_count=1; s->proposal_count< s->periods+1; s->proposal_count++){
- one_step(d, draw, m, s, rng, constraint_fails, out, block
- , s->proposal_count-1 - s->periods*s->burnin);
+ for (s->proposal_count=1; s->proposal_count< s->periods+1; s->proposal_count++, out_row++){
+ one_step(d, draw, m, s, rng, constraint_fails, out, block, out_row);
block = (block+1) % s->block_count;
s->proposals[block].adapt_fn(s->proposals+block, s);
//if (constraint_fails>10000) break;
Markdown is supported
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