Added script front-end for primer-design code
[htsworkflow.git] / htswanalysis / MACS / lib / gsl / gsl-1.11 / rng / types.c
1 /* rng/types.c
2  * 
3  * Copyright (C) 2001, 2007 Brian Gough
4  * 
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or (at
8  * your option) any later version.
9  * 
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  * 
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19
20 #include <config.h>
21 #include <stdlib.h>
22 #include <gsl/gsl_rng.h>
23
24 #define N 100
25
26 const gsl_rng_type * gsl_rng_generator_types[N];
27
28 #define ADD(t) {if (i==N) abort(); gsl_rng_generator_types[i] = (t); i++; };
29
30 const gsl_rng_type **
31 gsl_rng_types_setup (void)
32 {
33   int i = 0;
34
35   ADD(gsl_rng_borosh13);
36   ADD(gsl_rng_cmrg);
37   ADD(gsl_rng_coveyou);
38   ADD(gsl_rng_fishman18);
39   ADD(gsl_rng_fishman20);
40   ADD(gsl_rng_fishman2x);
41   ADD(gsl_rng_gfsr4);
42   ADD(gsl_rng_knuthran);
43   ADD(gsl_rng_knuthran2);
44   ADD(gsl_rng_knuthran2002);
45   ADD(gsl_rng_lecuyer21);
46   ADD(gsl_rng_minstd);
47   ADD(gsl_rng_mrg);
48   ADD(gsl_rng_mt19937);
49   ADD(gsl_rng_mt19937_1999);
50   ADD(gsl_rng_mt19937_1998);
51   ADD(gsl_rng_r250);
52   ADD(gsl_rng_ran0);
53   ADD(gsl_rng_ran1);
54   ADD(gsl_rng_ran2);
55   ADD(gsl_rng_ran3);
56   ADD(gsl_rng_rand);
57   ADD(gsl_rng_rand48);
58   ADD(gsl_rng_random128_bsd);
59   ADD(gsl_rng_random128_glibc2);
60   ADD(gsl_rng_random128_libc5);
61   ADD(gsl_rng_random256_bsd);
62   ADD(gsl_rng_random256_glibc2);
63   ADD(gsl_rng_random256_libc5);
64   ADD(gsl_rng_random32_bsd);
65   ADD(gsl_rng_random32_glibc2);
66   ADD(gsl_rng_random32_libc5);
67   ADD(gsl_rng_random64_bsd);
68   ADD(gsl_rng_random64_glibc2);
69   ADD(gsl_rng_random64_libc5);
70   ADD(gsl_rng_random8_bsd);
71   ADD(gsl_rng_random8_glibc2);
72   ADD(gsl_rng_random8_libc5);
73   ADD(gsl_rng_random_bsd);
74   ADD(gsl_rng_random_glibc2);
75   ADD(gsl_rng_random_libc5);
76   ADD(gsl_rng_randu);
77   ADD(gsl_rng_ranf);
78   ADD(gsl_rng_ranlux);
79   ADD(gsl_rng_ranlux389);
80   ADD(gsl_rng_ranlxd1);
81   ADD(gsl_rng_ranlxd2);
82   ADD(gsl_rng_ranlxs0);
83   ADD(gsl_rng_ranlxs1);
84   ADD(gsl_rng_ranlxs2);
85   ADD(gsl_rng_ranmar);
86   ADD(gsl_rng_slatec);
87   ADD(gsl_rng_taus);
88   ADD(gsl_rng_taus2);
89   ADD(gsl_rng_taus113);
90   ADD(gsl_rng_transputer);
91   ADD(gsl_rng_tt800);
92   ADD(gsl_rng_uni);
93   ADD(gsl_rng_uni32);
94   ADD(gsl_rng_vax);
95   ADD(gsl_rng_waterman14);
96   ADD(gsl_rng_zuf);
97   ADD(0);
98
99   return gsl_rng_generator_types;
100 }
101