| 1 | /* Author: G. Jungman |
| 2 | */ |
| 3 | #ifndef __GSL_QRNG_H__ |
| 4 | #define __GSL_QRNG_H__cxx . . $ `external/gsl/gsl_qrng.h:4:9`! |
| 5 | |
| 6 | #include <stdlib.h> |
| 7 | #include "gsl_types.h"cxx . . $ `<file>/external/gsl/gsl_types.h`/ |
| 8 | #include "gsl_errno.h"cxx . . $ `<file>/external/gsl/gsl_errno.h`/ |
| 9 | |
| 10 | #undef __BEGIN_DECLScxx . . $ `external/gsl/gsl_errno.h:33:10`! |
| 11 | #undef __END_DECLScxx . . $ `external/gsl/gsl_errno.h:34:10`! |
| 12 | #ifdef __cplusplus |
| 13 | # define __BEGIN_DECLS extern "C" { |
| 14 | # define __END_DECLS } |
| 15 | #else |
| 16 | # define __BEGIN_DECLScxx . . $ `external/gsl/gsl_qrng.h:16:10`! /* empty */ |
| 17 | # define __END_DECLScxx . . $ `external/gsl/gsl_qrng.h:17:10`! /* empty */ |
| 18 | #endif |
| 19 | |
| 20 | __BEGIN_DECLScxx . . $ `external/gsl/gsl_qrng.h:16:10`! |
| 21 | |
| 22 | |
| 23 | /* Once again, more inane C-style OOP... kill me now. */ |
| 24 | |
| 25 | /* Structure describing a type of generator. |
| 26 | */ |
| 27 | typedef structcxx . . $ $anonymous_type_a6b11103b538dc27_0# |
| 28 | { |
| 29 | const char * namecxx . . $ $anonymous_type_a6b11103b538dc27_0#name.; |
| 30 | unsigned int max_dimensioncxx . . $ $anonymous_type_a6b11103b538dc27_0#max_dimension.; |
| 31 | size_t (*state_sizecxx . . $ $anonymous_type_a6b11103b538dc27_0#state_size.) (unsigned int dimension); |
| 32 | int (*init_statecxx . . $ $anonymous_type_a6b11103b538dc27_0#init_state.) (void * state, unsigned int dimension); |
| 33 | int (*getcxx . . $ $anonymous_type_a6b11103b538dc27_0#get.) (void * state, unsigned int dimension, double x[]); |
| 34 | } |
| 35 | gsl_qrng_typecxx . . $ gsl_qrng_type#; |
| 36 | |
| 37 | /* Structure describing a generator instance of a |
| 38 | * specified type, with generator-specific state info |
| 39 | * and dimension-specific info. |
| 40 | */ |
| 41 | typedef structcxx . . $ $anonymous_type_a6b11103b538dc27_1# |
| 42 | { |
| 43 | const gsl_qrng_typecxx . . $ gsl_qrng_type# * typecxx . . $ $anonymous_type_a6b11103b538dc27_1#type.; |
| 44 | unsigned int dimensioncxx . . $ $anonymous_type_a6b11103b538dc27_1#dimension.; |
| 45 | size_t state_sizecxx . . $ $anonymous_type_a6b11103b538dc27_1#state_size.; |
| 46 | void * statecxx . . $ $anonymous_type_a6b11103b538dc27_1#state.; |
| 47 | } |
| 48 | gsl_qrngcxx . . $ gsl_qrng#; |
| 49 | |
| 50 | |
| 51 | /* Supported generator types. |
| 52 | */ |
| 53 | GSL_VARcxx . . $ `external/gsl/gsl_types.h:36:11`! const gsl_qrng_typecxx . . $ gsl_qrng_type# * gsl_qrng_niederreiter_2cxx . . $ gsl_qrng_niederreiter_2.; |
| 54 | GSL_VARcxx . . $ `external/gsl/gsl_types.h:36:11`! const gsl_qrng_typecxx . . $ gsl_qrng_type# * gsl_qrng_sobolcxx . . $ gsl_qrng_sobol.; |
| 55 | |
| 56 | |
| 57 | /* Allocate and initialize a generator |
| 58 | * of the specified type, in the given |
| 59 | * space dimension. |
| 60 | */ |
| 61 | gsl_qrngcxx . . $ gsl_qrng# * gsl_qrng_alloccxx . . $ gsl_qrng_alloc(af9f78a9b5fe42de). (const gsl_qrng_typecxx . . $ gsl_qrng_type# * T, unsigned int dimension); |
| 62 | |
| 63 | |
| 64 | /* Copy a generator. */ |
| 65 | int gsl_qrng_memcpycxx . . $ gsl_qrng_memcpy(edb5fd098e9382d7). (gsl_qrngcxx . . $ gsl_qrng# * dest, const gsl_qrngcxx . . $ gsl_qrng# * src); |
| 66 | |
| 67 | |
| 68 | /* Clone a generator. */ |
| 69 | gsl_qrngcxx . . $ gsl_qrng# * gsl_qrng_clonecxx . . $ gsl_qrng_clone(f87888c728be91d9). (const gsl_qrngcxx . . $ gsl_qrng# * q); |
| 70 | |
| 71 | |
| 72 | /* Free a generator. */ |
| 73 | void gsl_qrng_freecxx . . $ gsl_qrng_free(103b5603e39f15b4). (gsl_qrngcxx . . $ gsl_qrng# * q); |
| 74 | |
| 75 | |
| 76 | /* Intialize a generator. */ |
| 77 | void gsl_qrng_initcxx . . $ gsl_qrng_init(103b5603e39f15b4). (gsl_qrngcxx . . $ gsl_qrng# * q); |
| 78 | |
| 79 | |
| 80 | /* Get the standardized name of the generator. */ |
| 81 | const char * gsl_qrng_namecxx . . $ gsl_qrng_name(b78cabcc4803f475). (const gsl_qrngcxx . . $ gsl_qrng# * q); |
| 82 | |
| 83 | |
| 84 | /* ISN'T THIS CONFUSING FOR PEOPLE? |
| 85 | WHAT IF SOMEBODY TRIES TO COPY WITH THIS ??? |
| 86 | */ |
| 87 | size_t gsl_qrng_sizecxx . . $ gsl_qrng_size(8c7c38b81ddb7ae3). (const gsl_qrngcxx . . $ gsl_qrng# * q); |
| 88 | |
| 89 | |
| 90 | void * gsl_qrng_statecxx . . $ gsl_qrng_state(619b05e09edfe8c0). (const gsl_qrngcxx . . $ gsl_qrng# * q); |
| 91 | |
| 92 | |
| 93 | /* Retrieve next vector in sequence. */ |
| 94 | int gsl_qrng_getcxx . . $ gsl_qrng_get(6eca0c6bc9fa1511). (const gsl_qrngcxx . . $ gsl_qrng# * q, double x[]); |
| 95 | |
| 96 | |
| 97 | #ifdef HAVE_INLINE |
| 98 | extern inline int gsl_qrng_get (const gsl_qrng * q, double x[]); |
| 99 | extern inline int gsl_qrng_get (const gsl_qrng * q, double x[]) |
| 100 | { |
| 101 | return (q->type->get) (q->state, q->dimension, x); |
| 102 | } |
| 103 | |
| 104 | #endif /* HAVE_INLINE */ |
| 105 | |
| 106 | |
| 107 | __END_DECLScxx . . $ `external/gsl/gsl_qrng.h:17:10`! |
| 108 | |
| 109 | |
| 110 | #endif /* !__GSL_QRNG_H__ */ |