From fa8fd4b94d5d03eda98a34fb6039925f2f9cd90e Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 20 Apr 2021 17:03:28 +0530 Subject: Do not return volume or integral estimate. We are already passing in the true volume or integral, and checking that the estimate is within the required tolerance. What is the point in returning the estimate to the caller. * include/extent-sampling.h (volume, integral): Return nothing. * src/extent-sampling.sc (volume, integral): Return nothing. * scm/nsmc/wrap.scm (volume, integral): Accept no return value from C function. --- include/extent-sampling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/extent-sampling.h b/include/extent-sampling.h index edf8b19..376a52f 100644 --- a/include/extent-sampling.h +++ b/include/extent-sampling.h @@ -38,12 +38,12 @@ typedef struct { void init_random (void); -double volume +void volume (extent_oracle_t *extent_oracle, double true_volume, const gsl_rng* r, unsigned int dimension, double rtol, gsl_rstat_workspace* stats); -double integral +void integral (integrand_t *integrand, extent_oracle_t *extent_oracle, double true_integral, const gsl_rng* r, unsigned int dimension, double rtol, gsl_rstat_workspace* stats); -- cgit v1.2.3