aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArun Isaac2021-02-11 15:31:16 +0530
committerArun Isaac2021-02-11 15:31:16 +0530
commit6ebe3d0004ac8b19cf4a6fcfc3b2fba16bdc6b97 (patch)
tree9e4f3ad3ac7709634c9809b10e9b702f8c9c75bb /include
parent10d4a342fd02f79bdd848a87316c6f7dffc24019 (diff)
downloadnsmc-6ebe3d0004ac8b19cf4a6fcfc3b2fba16bdc6b97.tar.gz
nsmc-6ebe3d0004ac8b19cf4a6fcfc3b2fba16bdc6b97.tar.lz
nsmc-6ebe3d0004ac8b19cf4a6fcfc3b2fba16bdc6b97.zip
Pass extent-oracle-t as pointer.
* include/extent-sampling.h (volume, volume_window, integral, volume_cone, volume_experiment): Pass extent_oracle_t as pointer. * src/extent-sampling.sc: Likewise.
Diffstat (limited to 'include')
-rw-r--r--include/extent-sampling.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/extent-sampling.h b/include/extent-sampling.h
index fd11bc4..27314a3 100644
--- a/include/extent-sampling.h
+++ b/include/extent-sampling.h
@@ -15,27 +15,27 @@ typedef double (*integrand_t) (double, const gsl_vector*);
void init_random (void);
double volume
-(extent_oracle_t extent_oracle, double true_volume,
+(extent_oracle_t *extent_oracle, double true_volume,
const gsl_rng* r, unsigned int dimension, double rtol,
gsl_rstat_workspace* stats);
double volume_window
-(extent_oracle_t extent_oracle, double true_volume,
+(extent_oracle_t *extent_oracle, double true_volume,
const gsl_rng* r, unsigned int dimension, double rtol,
unsigned int* number_of_samples);
double integral
-(integrand_t integrand, extent_oracle_t extent_oracle, double true_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);
double volume_cone
-(extent_oracle_t extent_oracle, const gsl_rng* r,
+(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_experiment
-(extent_oracle_t extent_oracle, const gsl_rng* r,
+(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);