64 #ifndef __GSL_TYPES_H__ 65 #define __GSL_TYPES_H__ 72 # define GSL_VAR __declspec(dllexport) 74 # define GSL_VAR __declspec(dllimport) 77 # define GSL_VAR extern 80 # define GSL_VAR extern 109 #ifndef __GSL_RNG_H__ 110 #define __GSL_RNG_H__ 116 # define __BEGIN_DECLS extern "C" { 117 # define __END_DECLS } 119 # define __BEGIN_DECLS 131 void (*
set) (
void *state,
unsigned long int seed);
132 unsigned long int (*
get) (
void *state);
133 double (*get_double) (
void *state);
241 extern inline unsigned long int 272 extern inline unsigned long int 275 unsigned long int offset = r->
type->
min;
276 unsigned long int range = r->
type->
max - offset;
277 unsigned long int scale = range / n;
319 #ifndef __GSL_ERRNO_H__ 320 #define __GSL_ERRNO_H__ 328 # define __BEGIN_DECLS extern "C" { 329 # define __END_DECLS } 331 # define __BEGIN_DECLS 375 void gsl_error (
const char * reason,
const char * file,
int line,
378 void gsl_warning (
const char * reason,
const char * file,
int line,
382 int line,
const char *reason);
387 int line,
int gsl_errno);
390 int line,
const char * reason);
405 #define GSL_ERROR(reason, gsl_errno) \ 407 gsl_error (reason, __FILE__, __LINE__, gsl_errno) ; \ 413 #define GSL_ERROR_VAL(reason, gsl_errno, value) \ 415 gsl_error (reason, __FILE__, __LINE__, gsl_errno) ; \ 422 #define GSL_ERROR_VOID(reason, gsl_errno) \ 424 gsl_error (reason, __FILE__, __LINE__, gsl_errno) ; \ 430 #define GSL_ERROR_NULL(reason, gsl_errno) GSL_ERROR_VAL(reason, gsl_errno, 0) 442 #ifdef GSL_WARNINGS_OFF 443 #define GSL_WARNING(warning, gsl_errno) \ 446 #define GSL_WARNING(warning, gsl_errno) \ 448 gsl_warning (warning, __FILE__, __LINE__, gsl_errno) ; \ 472 #define GSL_ERROR_SELECT_2(a,b) ((a) != GSL_SUCCESS ? (a) : ((b) != GSL_SUCCESS ? (b) : GSL_SUCCESS)) 473 #define GSL_ERROR_SELECT_3(a,b,c) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_2(b,c)) 474 #define GSL_ERROR_SELECT_4(a,b,c,d) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_3(b,c,d)) 475 #define GSL_ERROR_SELECT_5(a,b,c,d,e) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_4(b,c,d,e)) 477 #define GSL_STATUS_UPDATE(sp, s) do { if ((s) != GSL_SUCCESS) *(sp) = (s);} while(0) 502 #ifndef __GSL_MESSAGE_H__ 503 #define __GSL_MESSAGE_H__ 508 # define __BEGIN_DECLS extern "C" { 509 # define __END_DECLS } 511 # define __BEGIN_DECLS 525 void gsl_message(
const char * message,
const char * file,
int line,
528 #ifndef GSL_MESSAGE_MASK 529 #define GSL_MESSAGE_MASK 0xffffffffu 547 #ifdef GSL_MESSAGING_OFF 548 #define GSL_MESSAGE(message, mask) do { } while(0) 550 #define GSL_MESSAGE(message, mask) \ 552 if (mask & GSL_MESSAGE_MASK) \ 553 gsl_message (message, __FILE__, __LINE__, mask) ; \
GSL_VAR const gsl_rng_type * gsl_rng_taus
void gsl_rng_print_state(const gsl_rng *r)
GSL_VAR const gsl_rng_type * gsl_rng_knuthran2
GSL_VAR const gsl_rng_type * gsl_rng_gfsr4
GSL_VAR const gsl_rng_type * gsl_rng_taus113
const gsl_rng_type * type
GSL_VAR const gsl_rng_type * gsl_rng_coveyou
GSL_VAR const gsl_rng_type * gsl_rng_ranmar
Declarations having to do with the four output streams.
GSL_VAR const gsl_rng_type * gsl_rng_ranlux
FILE * gsl_set_stream(FILE *new_stream)
GSL_VAR const gsl_rng_type * gsl_rng_borosh13
unsigned long int gsl_rng_min(const gsl_rng *r)
unsigned long int gsl_rng_max(const gsl_rng *r)
void force_seed(unsigned long int n)
GSL_VAR const gsl_rng_type * gsl_rng_random64_glibc2
gsl_rng * gsl_rng_clone(const gsl_rng *r)
gsl_stream_handler_t * gsl_set_stream_handler(gsl_stream_handler_t *new_handler)
GSL_VAR const gsl_rng_type * gsl_rng_rand48
GSL_VAR const gsl_rng_type * gsl_rng_ranlxs0
GSL_VAR const gsl_rng_type * gsl_rng_mt19937_1999
double gsl_rng_uniform(const gsl_rng *r)
const char * gsl_strerror(const int gsl_errno)
GSL_VAR const gsl_rng_type * gsl_rng_ran3
GSL_VAR const gsl_rng_type * gsl_rng_mrg
gsl_rng * gsl_rng_alloc(const gsl_rng_type *T)
GSL_VAR const gsl_rng_type * gsl_rng_random_glibc2
GSL_VAR const gsl_rng_type * gsl_rng_random8_bsd
GSL_VAR const gsl_rng_type * gsl_rng_default
GSL_VAR const gsl_rng_type * gsl_rng_random32_libc5
void gsl_error_handler_t(const char *reason, const char *file, int line, int gsl_errno)
void gsl_error(const char *reason, const char *file, int line, int gsl_errno)
const char * gsl_rng_name(const gsl_rng *r)
GSL_VAR const gsl_rng_type * gsl_rng_random_libc5
GSL_VAR const gsl_rng_type * gsl_rng_ran1
GSL_VAR const gsl_rng_type * gsl_rng_random256_libc5
GSL_VAR const gsl_rng_type * gsl_rng_random128_bsd
GSL_VAR const gsl_rng_type * gsl_rng_random32_glibc2
GSL_VAR int gsl_warnings_off
GSL_VAR const gsl_rng_type * gsl_rng_mt19937
GSL_VAR const gsl_rng_type * gsl_rng_random64_bsd
GSL_VAR const gsl_rng_type * gsl_rng_ran0
#define GSL_ERROR_VAL(reason, gsl_errno, value)
GSL_VAR const gsl_rng_type * gsl_rng_uni
GSL_VAR const gsl_rng_type * gsl_rng_minstd
GSL_VAR const gsl_rng_type * gsl_rng_ranlxs2
GSL_VAR const gsl_rng_type * gsl_rng_fishman2x
void gsl_stream_handler_t(const char *label, const char *file, int line, const char *reason)
GSL_VAR const gsl_rng_type * gsl_rng_transputer
GSL_VAR const gsl_rng_type * gsl_rng_random128_glibc2
GSL_VAR const gsl_rng_type * gsl_rng_random256_bsd
GSL_VAR const gsl_rng_type * gsl_rng_ranlxd1
unsigned long int(* get)(void *state)
GSL_VAR const gsl_rng_type * gsl_rng_random32_bsd
GSL_VAR const gsl_rng_type * gsl_rng_taus2
GSL_VAR const gsl_rng_type * gsl_rng_waterman14
GSL_VAR const gsl_rng_type * gsl_rng_random256_glibc2
GSL_VAR const gsl_rng_type * gsl_rng_random_bsd
GSL_VAR const gsl_rng_type * gsl_rng_fishman20
void gsl_stream_printf(const char *label, const char *file, int line, const char *reason)
GSL_VAR const gsl_rng_type * gsl_rng_ranlxs1
GSL_VAR const gsl_rng_type * gsl_rng_zuf
GSL_VAR const gsl_rng_type * gsl_rng_slatec
void gsl_rng_free(gsl_rng *r)
void gsl_rng_set(const gsl_rng *r, unsigned long int seed)
GSL_VAR const gsl_rng_type * gsl_rng_knuthran
size_t gsl_rng_size(const gsl_rng *r)
GSL_VAR const gsl_rng_type * gsl_rng_lecuyer21
GSL_VAR const gsl_rng_type * gsl_rng_tt800
unsigned long int showseed() const
__BEGIN_DECLS void gsl_message(const char *message, const char *file, int line, unsigned int mask)
GSL_VAR const gsl_rng_type * gsl_rng_r250
GSL_VAR const gsl_rng_type * gsl_rng_random8_libc5
GSL_VAR const gsl_rng_type * gsl_rng_ranlux389
double gsl_rng_uniform_pos(const gsl_rng *r)
const gsl_rng_type * gsl_rng_env_setup(void)
void gsl_warning(const char *reason, const char *file, int line, int gsl_errno)
double(* get_double)(void *state)
const gsl_rng_type ** gsl_rng_types_setup(void)
int gsl_rng_memcpy(gsl_rng *dest, const gsl_rng *src)
GSL_VAR const gsl_rng_type * gsl_rng_uni32
unsigned long int gsl_rng_uniform_int(const gsl_rng *r, unsigned long int n)
unsigned long int gsl_rng_get(const gsl_rng *r)
void seed(unsigned long int n, const Verbosity &verbosity)
GSL_VAR const gsl_rng_type * gsl_rng_rand
GSL_VAR const gsl_rng_type * gsl_rng_ranlxd2
gsl_error_handler_t * gsl_set_error_handler(gsl_error_handler_t *new_handler)
GSL_VAR const gsl_rng_type * gsl_rng_cmrg
GSL_VAR const gsl_rng_type * gsl_rng_randu
GSL_VAR const gsl_rng_type * gsl_rng_random8_glibc2
unsigned long int seed_no
GSL_VAR const gsl_rng_type * gsl_rng_vax
GSL_VAR unsigned long int gsl_rng_default_seed
GSL_VAR const gsl_rng_type * gsl_rng_ranf
GSL_VAR const gsl_rng_type * gsl_rng_mt19937_1998
gsl_error_handler_t * gsl_set_error_handler_off(void)
GSL_VAR const gsl_rng_type * gsl_rng_fishman18
GSL_VAR const gsl_rng_type * gsl_rng_random128_libc5
GSL_VAR const gsl_rng_type * gsl_rng_ran2
void * gsl_rng_state(const gsl_rng *r)
GSL_VAR unsigned int gsl_message_mask
GSL_VAR const gsl_rng_type * gsl_rng_random64_libc5