Skip to content

Commit 4144345

Browse files
authored
Merge pull request #53 from vandenman/fix_adaMala_debug
2 parents 669768a + d00ae6c commit 4144345

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/bgmCompare_sampler.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,12 @@ SamplerOutput run_gibbs_sampler_for_bgmCompare(
670670
const arma::uvec& is_ordinal_variable,
671671
const arma::ivec& baseline_category,
672672
const bool difference_selection,//new
673-
const arma::imat main_effect_indices,
674-
const arma::imat pairwise_effect_indices,
673+
const arma::imat& main_effect_indices,
674+
const arma::imat& pairwise_effect_indices,
675675
const double target_accept,
676676
const int nuts_max_depth,
677677
const bool learn_mass_matrix,
678-
const arma::mat projection,//new
678+
const arma::mat& projection,//new
679679
const arma::ivec& group_membership,//new
680680
const arma::imat& group_indices,//new
681681
const arma::imat& interaction_index_matrix,//new

src/bgmCompare_sampler.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@
77
SamplerOutput run_gibbs_sampler_for_bgmCompare(
88
int chain_id,
99
arma::imat observations,
10-
int num_groups,
10+
const int num_groups,
1111
std::vector<arma::imat> num_obs_categories,
1212
std::vector<arma::imat> sufficient_blume_capel,
1313
std::vector<arma::mat> sufficient_pairwise,
1414
const arma::ivec& num_categories,
15-
double main_alpha,
16-
double main_beta,
17-
double pairwise_scale,
18-
double difference_scale,
19-
double difference_selection_alpha,
20-
double difference_selection_beta,
15+
const double main_alpha,
16+
const double main_beta,
17+
const double pairwise_scale,
18+
const double difference_scale,
19+
const double difference_selection_alpha,
20+
const double difference_selection_beta,
2121
const std::string& difference_prior,
22-
int iter,
23-
int burnin,
24-
bool na_impute,
22+
const int iter,
23+
const int burnin,
24+
const bool na_impute,
2525
const arma::imat& missing_data_indices,
2626
const arma::uvec& is_ordinal_variable,
2727
const arma::ivec& baseline_category,
28-
bool difference_selection,
28+
const bool difference_selection,
2929
const arma::imat& main_effect_indices,
3030
const arma::imat& pairwise_effect_indices,
31-
double target_accept,
32-
int nuts_max_depth,
33-
bool learn_mass_matrix,
31+
const double target_accept,
32+
const int nuts_max_depth,
33+
const bool learn_mass_matrix,
3434
const arma::mat& projection,
3535
const arma::ivec& group_membership,
3636
const arma::imat& group_indices,

0 commit comments

Comments
 (0)