File indexing completed on 2025-02-21 10:03:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #ifndef __GSL_MONTE_PLAIN_H__
0025 #define __GSL_MONTE_PLAIN_H__
0026
0027 #include <stdio.h>
0028 #include <gsl/gsl_monte.h>
0029 #include <gsl/gsl_rng.h>
0030
0031 #undef __BEGIN_DECLS
0032 #undef __END_DECLS
0033 #ifdef __cplusplus
0034 # define __BEGIN_DECLS extern "C" {
0035 # define __END_DECLS }
0036 #else
0037 # define __BEGIN_DECLS
0038 # define __END_DECLS
0039 #endif
0040
0041 __BEGIN_DECLS
0042
0043 typedef struct {
0044 size_t dim;
0045 double *x;
0046 } gsl_monte_plain_state;
0047
0048 int
0049 gsl_monte_plain_integrate (const gsl_monte_function * f,
0050 const double xl[], const double xu[],
0051 const size_t dim,
0052 const size_t calls,
0053 gsl_rng * r,
0054 gsl_monte_plain_state * state,
0055 double *result, double *abserr);
0056
0057 gsl_monte_plain_state* gsl_monte_plain_alloc(size_t dim);
0058
0059 int gsl_monte_plain_init(gsl_monte_plain_state* state);
0060
0061 void gsl_monte_plain_free (gsl_monte_plain_state* state);
0062
0063 __END_DECLS
0064
0065 #endif