From fb92e453de4c5317d8f1304dece8281dce859cb4 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 7 May 2021 17:08:13 +0530 Subject: Treat extent oracles and integrands as const arguments. * include/extent-sampling.h (volume, volume_cone, volume_importance, integral): Pass extent oracle and integrand as const arguments. * src/extent-sampling.sc (volume, volume_cone, volume_importance, integral, integral-per-direction): Likewise. --- include/extent-sampling.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/extent-sampling.h b/include/extent-sampling.h index 376a52f..d1736b8 100644 --- a/include/extent-sampling.h +++ b/include/extent-sampling.h @@ -39,22 +39,22 @@ typedef struct { void init_random (void); void volume -(extent_oracle_t *extent_oracle, double true_volume, +(const extent_oracle_t *extent_oracle, double true_volume, const gsl_rng* r, unsigned int dimension, double rtol, gsl_rstat_workspace* stats); void integral -(integrand_t *integrand, extent_oracle_t *extent_oracle, double true_integral, +(const integrand_t *integrand, const extent_oracle_t *extent_oracle, double true_integral, const gsl_rng* r, unsigned int dimension, double rtol, gsl_rstat_workspace* stats); double volume_cone -(extent_oracle_t *extent_oracle, const gsl_rng* r, +(const extent_oracle_t *extent_oracle, const gsl_rng* r, const gsl_vector* mean, double omega_min, double omega_max, unsigned int number_of_samples, double* variance); double volume_importance -(extent_oracle_t *extent_oracle, const gsl_rng* r, +(const extent_oracle_t *extent_oracle, const gsl_rng* r, const gsl_vector* mean, unsigned int samples_per_cone, double solid_angle_factor, double solid_angle_threshold_exponent_factor, unsigned int* number_of_samples); -- cgit v1.2.3