xs/Randist_wrap.2.8.c

filter: Statementstmt 0.0% 0 / 4364 Branchbran 0.0% 0 / 2682 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 7046 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/RNG_wrap.2.8.c ↑ Summary xs/Roots_wrap.2.8.c »
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.0
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8  
9  
10 #define SWIG_VERSION 0x040200
11 #define SWIGPERL
12 #define SWIG_CASTRANK_MODE
13  
14 /* -----------------------------------------------------------------------------
15 * This section contains generic SWIG labels for method/variable
16 * declarations/attributes, and other compiler dependent labels.
17 * ----------------------------------------------------------------------------- */
18  
19 /* template workaround for compilers that cannot correctly implement the C++ standard */
20 #ifndef SWIGTEMPLATEDISAMBIGUATOR
21 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
22 # define SWIGTEMPLATEDISAMBIGUATOR template
23 # elif defined(__HP_aCC)
24 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
25 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
26 # define SWIGTEMPLATEDISAMBIGUATOR template
27 # else
28 # define SWIGTEMPLATEDISAMBIGUATOR
29 # endif
30 #endif
31  
32 /* inline attribute */
33 #ifndef SWIGINLINE
34 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
35 # define SWIGINLINE inline
36 # else
37 # define SWIGINLINE
38 # endif
39 #endif
40  
41 /* attribute recognised by some compilers to avoid 'unused' warnings */
42 #ifndef SWIGUNUSED
43 # if defined(__GNUC__)
44 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
45 # define SWIGUNUSED __attribute__ ((__unused__))
46 # else
47 # define SWIGUNUSED
48 # endif
49 # elif defined(__ICC)
50 # define SWIGUNUSED __attribute__ ((__unused__))
51 # else
52 # define SWIGUNUSED
53 # endif
54 #endif
55  
56 #ifndef SWIG_MSC_UNSUPPRESS_4505
57 # if defined(_MSC_VER)
58 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
59 # endif
60 #endif
61  
62 #ifndef SWIGUNUSEDPARM
63 # ifdef __cplusplus
64 # define SWIGUNUSEDPARM(p)
65 # else
66 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
67 # endif
68 #endif
69  
70 /* internal SWIG method */
71 #ifndef SWIGINTERN
72 # define SWIGINTERN static SWIGUNUSED
73 #endif
74  
75 /* internal inline SWIG method */
76 #ifndef SWIGINTERNINLINE
77 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
78 #endif
79  
80 /* exporting methods */
81 #if defined(__GNUC__)
82 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
83 # ifndef GCC_HASCLASSVISIBILITY
84 # define GCC_HASCLASSVISIBILITY
85 # endif
86 # endif
87 #endif
88  
89 #ifndef SWIGEXPORT
90 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
91 # if defined(STATIC_LINKED)
92 # define SWIGEXPORT
93 # else
94 # define SWIGEXPORT __declspec(dllexport)
95 # endif
96 # else
97 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
98 # define SWIGEXPORT __attribute__ ((visibility("default")))
99 # else
100 # define SWIGEXPORT
101 # endif
102 # endif
103 #endif
104  
105 /* calling conventions for Windows */
106 #ifndef SWIGSTDCALL
107 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
108 # define SWIGSTDCALL __stdcall
109 # else
110 # define SWIGSTDCALL
111 # endif
112 #endif
113  
114 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
115 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
116 # define _CRT_SECURE_NO_DEPRECATE
117 #endif
118  
119 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
120 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
121 # define _SCL_SECURE_NO_DEPRECATE
122 #endif
123  
124 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
125 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
126 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
127 #endif
128  
129 /* Intel's compiler complains if a variable which was never initialised is
130 * cast to void, which is a common idiom which we use to indicate that we
131 * are aware a variable isn't used. So we just silence that warning.
132 * See: https://github.com/swig/swig/issues/192 for more discussion.
133 */
134 #ifdef __INTEL_COMPILER
135 # pragma warning disable 592
136 #endif
137  
138 #if __cplusplus >=201103L
139 # define SWIG_NULLPTR nullptr
140 #else
141 # define SWIG_NULLPTR NULL
142 #endif
143  
144 /* -----------------------------------------------------------------------------
145 * swigrun.swg
146 *
147 * This file contains generic C API SWIG runtime support for pointer
148 * type checking.
149 * ----------------------------------------------------------------------------- */
150  
151 /* This should only be incremented when either the layout of swig_type_info changes,
152 or for whatever reason, the runtime changes incompatibly */
153 #define SWIG_RUNTIME_VERSION "4"
154  
155 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
156 #ifdef SWIG_TYPE_TABLE
157 # define SWIG_QUOTE_STRING(x) #x
158 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
159 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
160 #else
161 # define SWIG_TYPE_TABLE_NAME
162 #endif
163  
164 /*
165 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
166 creating a static or dynamic library from the SWIG runtime code.
167 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
168  
169 But only do this if strictly necessary, ie, if you have problems
170 with your compiler or suchlike.
171 */
172  
173 #ifndef SWIGRUNTIME
174 # define SWIGRUNTIME SWIGINTERN
175 #endif
176  
177 #ifndef SWIGRUNTIMEINLINE
178 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
179 #endif
180  
181 /* Generic buffer size */
182 #ifndef SWIG_BUFFER_SIZE
183 # define SWIG_BUFFER_SIZE 1024
184 #endif
185  
186 /* Flags for pointer conversions */
187 #define SWIG_POINTER_DISOWN 0x1
188 #define SWIG_CAST_NEW_MEMORY 0x2
189 #define SWIG_POINTER_NO_NULL 0x4
190 #define SWIG_POINTER_CLEAR 0x8
191 #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
192  
193 /* Flags for new pointer objects */
194 #define SWIG_POINTER_OWN 0x1
195  
196  
197 /*
198 Flags/methods for returning states.
199  
200 The SWIG conversion methods, as ConvertPtr, return an integer
201 that tells if the conversion was successful or not. And if not,
202 an error code can be returned (see swigerrors.swg for the codes).
203  
204 Use the following macros/flags to set or process the returning
205 states.
206  
207 In old versions of SWIG, code such as the following was usually written:
208  
209 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
210 // success code
211 } else {
212 //fail code
213 }
214  
215 Now you can be more explicit:
216  
217 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
218 if (SWIG_IsOK(res)) {
219 // success code
220 } else {
221 // fail code
222 }
223  
224 which is the same really, but now you can also do
225  
226 Type *ptr;
227 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
228 if (SWIG_IsOK(res)) {
229 // success code
230 if (SWIG_IsNewObj(res) {
231 ...
232 delete *ptr;
233 } else {
234 ...
235 }
236 } else {
237 // fail code
238 }
239  
240 I.e., now SWIG_ConvertPtr can return new objects and you can
241 identify the case and take care of the deallocation. Of course that
242 also requires SWIG_ConvertPtr to return new result values, such as
243  
244 int SWIG_ConvertPtr(obj, ptr,...) {
245 if (<obj is ok>) {
246 if (<need new object>) {
247 *ptr = <ptr to new allocated object>;
248 return SWIG_NEWOBJ;
249 } else {
250 *ptr = <ptr to old object>;
251 return SWIG_OLDOBJ;
252 }
253 } else {
254 return SWIG_BADOBJ;
255 }
256 }
257  
258 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
259 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
260 SWIG errors code.
261  
262 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
263 allows returning the 'cast rank', for example, if you have this
264  
265 int food(double)
266 int fooi(int);
267  
268 and you call
269  
270 food(1) // cast rank '1' (1 -> 1.0)
271 fooi(1) // cast rank '0'
272  
273 just use the SWIG_AddCast()/SWIG_CheckState()
274 */
275  
276 #define SWIG_OK (0)
277 /* Runtime errors are < 0 */
278 #define SWIG_ERROR (-1)
279 /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
280 /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
281 /* Errors < -200 are generic runtime specific errors */
282 #define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
283  
284 #define SWIG_IsOK(r) (r >= 0)
285 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
286  
287 /* The CastRankLimit says how many bits are used for the cast rank */
288 #define SWIG_CASTRANKLIMIT (1 << 8)
289 /* The NewMask denotes the object was created (using new/malloc) */
290 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
291 /* The TmpMask is for in/out typemaps that use temporary objects */
292 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
293 /* Simple returning values */
294 #define SWIG_BADOBJ (SWIG_ERROR)
295 #define SWIG_OLDOBJ (SWIG_OK)
296 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
297 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
298 /* Check, add and del object mask methods */
299 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
300 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
301 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
302 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
303 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
304 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
305  
306 /* Cast-Rank Mode */
307 #if defined(SWIG_CASTRANK_MODE)
308 # ifndef SWIG_TypeRank
309 # define SWIG_TypeRank unsigned long
310 # endif
311 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
312 # define SWIG_MAXCASTRANK (2)
313 # endif
314 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
315 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
316 0 SWIGINTERNINLINE int SWIG_AddCast(int r) {
317 0 ▶ return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
Branch: 2 branches
BranchTrueFalseTotal
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; 0 0 0
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; 0 0 0
318 }
319 SWIGINTERNINLINE int SWIG_CheckState(int r) {
320 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
321 }
322 #else /* no cast-rank mode */
323 # define SWIG_AddCast(r) (r)
324 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
325 #endif
326  
327 /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
328 * if you're missing it.
329 */
330 #if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
331 (defined __cplusplus && __cplusplus >= 201103L) || \
332 defined SWIG_HAVE_SNPRINTF) && \
333 !defined SWIG_NO_SNPRINTF
334 # define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
335 # define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
336 #else
337 /* Fallback versions ignore the buffer size, but most of our uses either have a
338 * fixed maximum possible size or dynamically allocate a buffer that's large
339 * enough.
340 */
341 # define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
342 # define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
343 #endif
344  
345 #include <string.h>
346  
347 #ifdef __cplusplus
348 extern "C" {
349 #endif
350  
351 typedef void *(*swig_converter_func)(void *, int *);
352 typedef struct swig_type_info *(*swig_dycast_func)(void **);
353  
354 /* Structure to store information on one type */
355 typedef struct swig_type_info {
356 const char *name; /* mangled name of this type */
357 const char *str; /* human readable name of this type */
358 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
359 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
360 void *clientdata; /* language specific type data */
361 int owndata; /* flag if the structure owns the clientdata */
362 } swig_type_info;
363  
364 /* Structure to store a type and conversion function used for casting */
365 typedef struct swig_cast_info {
366 swig_type_info *type; /* pointer to type that is equivalent to this type */
367 swig_converter_func converter; /* function to cast the void pointers */
368 struct swig_cast_info *next; /* pointer to next cast in linked list */
369 struct swig_cast_info *prev; /* pointer to the previous cast */
370 } swig_cast_info;
371  
372 /* Structure used to store module information
373 * Each module generates one structure like this, and the runtime collects
374 * all of these structures and stores them in a circularly linked list.*/
375 typedef struct swig_module_info {
376 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
377 size_t size; /* Number of types in this module */
378 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
379 swig_type_info **type_initial; /* Array of initially generated type structures */
380 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
381 void *clientdata; /* Language specific module data */
382 } swig_module_info;
383  
384 /*
385 Compare two type names skipping the space characters, therefore
386 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
387  
388 Return 0 when the two name types are equivalent, as in
389 strncmp, but skipping ' '.
390 */
391 SWIGRUNTIME int
392 0 SWIG_TypeNameComp(const char *f1, const char *l1,
393 const char *f2, const char *l2) {
394 0 ▶ for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
Branch: 2 branches
BranchTrueFalseTotal
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { 0 0 0
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { 0 0 0
395 0 ▶ while ((*f1 == ' ') && (f1 != l1)) ++f1;
Branch: 2 branches
BranchTrueFalseTotal
while ((*f1 == ' ') && (f1 != l1)) ++f1; 0 0 0
while ((*f1 == ' ') && (f1 != l1)) ++f1; 0 0 0
396 0 ▶ while ((*f2 == ' ') && (f2 != l2)) ++f2;
Branch: 2 branches
BranchTrueFalseTotal
while ((*f2 == ' ') && (f2 != l2)) ++f2; 0 0 0
while ((*f2 == ' ') && (f2 != l2)) ++f2; 0 0 0
397 0 ▶ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
Branch: 2 branches
BranchTrueFalseTotal
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; 0 0 0
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; 0 0 0
398 }
399 0 return (int)((l1 - f1) - (l2 - f2));
400 }
401  
402 /*
403 Check type equivalence in a name list like <name1>|<name2>|...
404 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
405 */
406 SWIGRUNTIME int
407 0 SWIG_TypeCmp(const char *nb, const char *tb) {
408 0 int equiv = 1;
409 0 const char* te = tb + strlen(tb);
410 0 const char* ne = nb;
411 0 ▶ while (equiv != 0 && *ne) {
Branch: 2 branches
BranchTrueFalseTotal
while (equiv != 0 && *ne) { 0 0 0
while (equiv != 0 && *ne) { 0 0 0
412 0 ▶ for (nb = ne; *ne; ++ne) {
Branch: 1 branch
BranchTrueFalseTotal
for (nb = ne; *ne; ++ne) { 0 0 0
413 0 ▶ if (*ne == '|') break;
Branch: 1 branch
BranchTrueFalseTotal
if (*ne == '|') break; 0 0 0
414 }
415 0 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
416 0 ▶ if (*ne) ++ne;
Branch: 1 branch
BranchTrueFalseTotal
if (*ne) ++ne; 0 0 0
417 }
418 0 return equiv;
419 }
420  
421 /*
422 Check type equivalence in a name list like <name1>|<name2>|...
423 Return 0 if not equal, 1 if equal
424 */
425 SWIGRUNTIME int
426 0 SWIG_TypeEquiv(const char *nb, const char *tb) {
427 0 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
428 }
429  
430 /*
431 Check the typename
432 */
433 SWIGRUNTIME swig_cast_info *
434 0 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
435 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
436 0 swig_cast_info *iter = ty->cast;
437 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
438 0 ▶ if (strcmp(iter->type->name, c) == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(iter->type->name, c) == 0) { 0 0 0
439 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
if (iter == ty->cast) 0 0 0
440 0 return iter;
441 /* Move iter to the top of the linked list */
442 0 iter->prev->next = iter->next;
443 0 ▶ if (iter->next)
Branch: 1 branch
BranchTrueFalseTotal
if (iter->next) 0 0 0
444 0 iter->next->prev = iter->prev;
445 0 iter->next = ty->cast;
446 0 iter->prev = 0;
447 0 ▶ if (ty->cast) ty->cast->prev = iter;
Branch: 1 branch
BranchTrueFalseTotal
if (ty->cast) ty->cast->prev = iter; 0 0 0
448 0 ty->cast = iter;
449 0 return iter;
450 }
451 0 iter = iter->next;
452 }
453 }
454 0 return 0;
455 }
456  
457 /*
458 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
459 */
460 SWIGRUNTIME swig_cast_info *
461 0 SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
462 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
463 0 swig_cast_info *iter = ty->cast;
464 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
465 0 ▶ if (iter->type == from) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter->type == from) { 0 0 0
466 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
if (iter == ty->cast) 0 0 0
467 0 return iter;
468 /* Move iter to the top of the linked list */
469 0 iter->prev->next = iter->next;
470 0 ▶ if (iter->next)
Branch: 1 branch
BranchTrueFalseTotal
if (iter->next) 0 0 0
471 0 iter->next->prev = iter->prev;
472 0 iter->next = ty->cast;
473 0 iter->prev = 0;
474 0 ▶ if (ty->cast) ty->cast->prev = iter;
Branch: 1 branch
BranchTrueFalseTotal
if (ty->cast) ty->cast->prev = iter; 0 0 0
475 0 ty->cast = iter;
476 0 return iter;
477 }
478 0 iter = iter->next;
479 }
480 }
481 0 return 0;
482 }
483  
484 /*
485 Cast a pointer up an inheritance hierarchy
486 */
487 SWIGRUNTIMEINLINE void *
488 0 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
489 0 ▶ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
Branch: 2 branches
BranchTrueFalseTotal
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); 0 0 0
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); 0 0 0
490 }
491  
492 /*
493 Dynamic pointer casting. Down an inheritance hierarchy
494 */
495 SWIGRUNTIME swig_type_info *
496 0 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
497 0 swig_type_info *lastty = ty;
498 0 ▶ if (!ty || !ty->dcast) return ty;
Branch: 2 branches
BranchTrueFalseTotal
if (!ty || !ty->dcast) return ty; 0 0 0
if (!ty || !ty->dcast) return ty; 0 0 0
499 0 ▶ while (ty && (ty->dcast)) {
Branch: 2 branches
BranchTrueFalseTotal
while (ty && (ty->dcast)) { 0 0 0
while (ty && (ty->dcast)) { 0 0 0
500 0 ty = (*ty->dcast)(ptr);
501 0 ▶ if (ty) lastty = ty;
Branch: 1 branch
BranchTrueFalseTotal
if (ty) lastty = ty; 0 0 0
502 }
503 0 return lastty;
504 }
505  
506 /*
507 Return the name associated with this type
508 */
509 SWIGRUNTIMEINLINE const char *
510 SWIG_TypeName(const swig_type_info *ty) {
511 return ty->name;
512 }
513  
514 /*
515 Return the pretty name associated with this type,
516 that is an unmangled type name in a form presentable to the user.
517 */
518 SWIGRUNTIME const char *
519 0 SWIG_TypePrettyName(const swig_type_info *type) {
520 /* The "str" field contains the equivalent pretty names of the
521 type, separated by vertical-bar characters. Choose the last
522 name. It should be the most specific; a fully resolved name
523 but not necessarily with default template parameters expanded. */
524 0 ▶ if (!type) return NULL;
Branch: 1 branch
BranchTrueFalseTotal
if (!type) return NULL; 0 0 0
525 0 ▶ if (type->str != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->str != NULL) { 0 0 0
526 0 const char *last_name = type->str;
527 const char *s;
528 0 ▶ for (s = type->str; *s; s++)
Branch: 1 branch
BranchTrueFalseTotal
for (s = type->str; *s; s++) 0 0 0
529 0 ▶ if (*s == '|') last_name = s+1;
Branch: 1 branch
BranchTrueFalseTotal
if (*s == '|') last_name = s+1; 0 0 0
530 0 return last_name;
531 }
532 else
533 0 return type->name;
534 }
535  
536 /*
537 Set the clientdata field for a type
538 */
539 SWIGRUNTIME void
540 0 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
541 0 swig_cast_info *cast = ti->cast;
542 /* if (ti->clientdata == clientdata) return; */
543 0 ti->clientdata = clientdata;
544  
545 0 ▶ while (cast) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast) { 0 0 0
546 0 ▶ if (!cast->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!cast->converter) { 0 0 0
547 0 swig_type_info *tc = cast->type;
548 0 ▶ if (!tc->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (!tc->clientdata) { 0 0 0
549 0 SWIG_TypeClientData(tc, clientdata);
550 }
551 }
552 0 cast = cast->next;
553 }
554 0 }
555 SWIGRUNTIME void
556 0 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
557 0 SWIG_TypeClientData(ti, clientdata);
558 0 ti->owndata = 1;
559 0 }
560  
561 /*
562 Search for a swig_type_info structure only by mangled name
563 Search is a O(log #types)
564  
565 We start searching at module start, and finish searching when start == end.
566 Note: if start == end at the beginning of the function, we go all the way around
567 the circular list.
568 */
569 SWIGRUNTIME swig_type_info *
570 0 SWIG_MangledTypeQueryModule(swig_module_info *start,
571 swig_module_info *end,
572 const char *name) {
573 0 swig_module_info *iter = start;
574 do {
575 0 ▶ if (iter->size) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter->size) { 0 0 0
576 0 size_t l = 0;
577 0 size_t r = iter->size - 1;
578 do {
579 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
580 0 size_t i = (l + r) >> 1;
581 0 const char *iname = iter->types[i]->name;
582 0 ▶ if (iname) {
Branch: 1 branch
BranchTrueFalseTotal
if (iname) { 0 0 0
583 0 int compare = strcmp(name, iname);
584 0 ▶ if (compare == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (compare == 0) { 0 0 0
585 0 return iter->types[i];
586 0 ▶ } else if (compare < 0) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (compare < 0) { 0 0 0
587 0 ▶ if (i) {
Branch: 1 branch
BranchTrueFalseTotal
if (i) { 0 0 0
588 0 r = i - 1;
589 } else {
590 0 break;
591 }
592 0 ▶ } else if (compare > 0) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (compare > 0) { 0 0 0
593 0 l = i + 1;
594 }
595 } else {
596 0 break; /* should never happen */
597 }
598 0 ▶ } while (l <= r);
Branch: 1 branch
BranchTrueFalseTotal
} while (l <= r); 0 0 0
599 }
600 0 iter = iter->next;
601 0 ▶ } while (iter != end);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter != end); 0 0 0
602 0 return 0;
603 }
604  
605 /*
606 Search for a swig_type_info structure for either a mangled name or a human readable name.
607 It first searches the mangled names of the types, which is a O(log #types)
608 If a type is not found it then searches the human readable names, which is O(#types).
609  
610 We start searching at module start, and finish searching when start == end.
611 Note: if start == end at the beginning of the function, we go all the way around
612 the circular list.
613 */
614 SWIGRUNTIME swig_type_info *
615 0 SWIG_TypeQueryModule(swig_module_info *start,
616 swig_module_info *end,
617 const char *name) {
618 /* STEP 1: Search the name field using binary search */
619 0 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
620 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
621 0 return ret;
622 } else {
623 /* STEP 2: If the type hasn't been found, do a complete search
624 of the str field (the human readable name) */
625 0 swig_module_info *iter = start;
626 do {
627 0 size_t i = 0;
628 0 ▶ for (; i < iter->size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (; i < iter->size; ++i) { 0 0 0
629 0 ▶ if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
Branch: 2 branches
BranchTrueFalseTotal
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) 0 0 0
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) 0 0 0
630 0 return iter->types[i];
631 }
632 0 iter = iter->next;
633 0 ▶ } while (iter != end);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter != end); 0 0 0
634 }
635  
636 /* neither found a match */
637 0 return 0;
638 }
639  
640 /*
641 Pack binary data into a string
642 */
643 SWIGRUNTIME char *
644 0 SWIG_PackData(char *c, void *ptr, size_t sz) {
645 static const char hex[17] = "0123456789abcdef";
646 0 const unsigned char *u = (unsigned char *) ptr;
647 0 const unsigned char *eu = u + sz;
648 0 ▶ for (; u != eu; ++u) {
Branch: 1 branch
BranchTrueFalseTotal
for (; u != eu; ++u) { 0 0 0
649 0 unsigned char uu = *u;
650 0 *(c++) = hex[(uu & 0xf0) >> 4];
651 0 *(c++) = hex[uu & 0xf];
652 }
653 0 return c;
654 }
655  
656 /*
657 Unpack binary data from a string
658 */
659 SWIGRUNTIME const char *
660 0 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
661 0 unsigned char *u = (unsigned char *) ptr;
662 0 const unsigned char *eu = u + sz;
663 0 ▶ for (; u != eu; ++u) {
Branch: 1 branch
BranchTrueFalseTotal
for (; u != eu; ++u) { 0 0 0
664 0 char d = *(c++);
665 unsigned char uu;
666 0 ▶ if ((d >= '0') && (d <= '9'))
Branch: 2 branches
BranchTrueFalseTotal
if ((d >= '0') && (d <= '9')) 0 0 0
if ((d >= '0') && (d <= '9')) 0 0 0
667 0 uu = (unsigned char)((d - '0') << 4);
668 0 ▶ else if ((d >= 'a') && (d <= 'f'))
Branch: 2 branches
BranchTrueFalseTotal
else if ((d >= 'a') && (d <= 'f')) 0 0 0
else if ((d >= 'a') && (d <= 'f')) 0 0 0
669 0 uu = (unsigned char)((d - ('a'-10)) << 4);
670 else
671 0 return (char *) 0;
672 0 d = *(c++);
673 0 ▶ if ((d >= '0') && (d <= '9'))
Branch: 2 branches
BranchTrueFalseTotal
if ((d >= '0') && (d <= '9')) 0 0 0
if ((d >= '0') && (d <= '9')) 0 0 0
674 0 uu |= (unsigned char)(d - '0');
675 0 ▶ else if ((d >= 'a') && (d <= 'f'))
Branch: 2 branches
BranchTrueFalseTotal
else if ((d >= 'a') && (d <= 'f')) 0 0 0
else if ((d >= 'a') && (d <= 'f')) 0 0 0
676 0 uu |= (unsigned char)(d - ('a'-10));
677 else
678 0 return (char *) 0;
679 0 *u = uu;
680 }
681 0 return c;
682 }
683  
684 /*
685 Pack 'void *' into a string buffer.
686 */
687 SWIGRUNTIME char *
688 0 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
689 0 char *r = buff;
690 0 ▶ if ((2*sizeof(void *) + 2) > bsz) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if ((2*sizeof(void *) + 2) > bsz) return 0; 0 0 0
691 0 *(r++) = '_';
692 0 r = SWIG_PackData(r,&ptr,sizeof(void *));
693 0 ▶ if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if (strlen(name) + 1 > (bsz - (r - buff))) return 0; 0 0 0
694 0 strcpy(r,name);
695 0 return buff;
696 }
697  
698 SWIGRUNTIME const char *
699 0 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
700 0 ▶ if (*c != '_') {
Branch: 1 branch
BranchTrueFalseTotal
if (*c != '_') { 0 0 0
701 0 ▶ if (strcmp(c,"NULL") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(c,"NULL") == 0) { 0 0 0
702 0 *ptr = (void *) 0;
703 0 return name;
704 } else {
705 0 return 0;
706 }
707 }
708 0 return SWIG_UnpackData(++c,ptr,sizeof(void *));
709 }
710  
711 SWIGRUNTIME char *
712 0 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
713 0 char *r = buff;
714 0 ▶ size_t lname = (name ? strlen(name) : 0);
Branch: 1 branch
BranchTrueFalseTotal
size_t lname = (name ? strlen(name) : 0); 0 0 0
715 0 ▶ if ((2*sz + 2 + lname) > bsz) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if ((2*sz + 2 + lname) > bsz) return 0; 0 0 0
716 0 *(r++) = '_';
717 0 r = SWIG_PackData(r,ptr,sz);
718 0 ▶ if (lname) {
Branch: 1 branch
BranchTrueFalseTotal
if (lname) { 0 0 0
719 0 strncpy(r,name,lname+1);
720 } else {
721 0 *r = 0;
722 }
723 0 return buff;
724 }
725  
726 SWIGRUNTIME const char *
727 0 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
728 0 ▶ if (*c != '_') {
Branch: 1 branch
BranchTrueFalseTotal
if (*c != '_') { 0 0 0
729 0 ▶ if (strcmp(c,"NULL") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(c,"NULL") == 0) { 0 0 0
730 0 memset(ptr,0,sz);
731 0 return name;
732 } else {
733 0 return 0;
734 }
735 }
736 0 return SWIG_UnpackData(++c,ptr,sz);
737 }
738  
739 #ifdef __cplusplus
740 }
741 #endif
742  
743 /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
744 #define SWIG_UnknownError -1
745 #define SWIG_IOError -2
746 #define SWIG_RuntimeError -3
747 #define SWIG_IndexError -4
748 #define SWIG_TypeError -5
749 #define SWIG_DivisionByZero -6
750 #define SWIG_OverflowError -7
751 #define SWIG_SyntaxError -8
752 #define SWIG_ValueError -9
753 #define SWIG_SystemError -10
754 #define SWIG_AttributeError -11
755 #define SWIG_MemoryError -12
756 #define SWIG_NullReferenceError -13
757  
758  
759 #ifdef __cplusplus
760 /* Needed on some windows machines---since MS plays funny games with the header files under C++ */
761 #include <math.h>
762 #include <stdlib.h>
763 extern "C" {
764 #endif
765  
766 #if __GNUC__ >= 10
767 #if defined(__cplusplus)
768 #pragma GCC diagnostic push
769 #pragma GCC diagnostic ignored "-Wvolatile"
770 #endif
771 #endif
772  
773 #include "EXTERN.h"
774 #include "perl.h"
775 #include "XSUB.h"
776  
777 #if __GNUC__ >= 10
778 #if defined(__cplusplus)
779 #pragma GCC diagnostic pop
780 #endif
781 #endif
782  
783 /* PERL_REVISION was added in Perl 5.6. */
784 #if !defined PERL_REVISION || (PERL_REVISION-0 == 5 && PERL_VERSION-0 < 8)
785 # error SWIG requires Perl >= 5.8.0
786 #endif
787  
788 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
789 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
790 #endif
791  
792 #ifndef SvIOK_UV
793 # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
794 #endif
795  
796 #ifndef SvUOK
797 # define SvUOK(sv) SvIOK_UV(sv)
798 #endif
799  
800 #ifndef IVSIZE
801 # ifdef LONGSIZE
802 # define IVSIZE LONGSIZE
803 # else
804 # define IVSIZE 4 /* A bold guess, but the best we can make. */
805 # endif
806 #endif
807  
808 #ifndef INT2PTR
809 # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
810 # define PTRV UV
811 # define INT2PTR(any,d) (any)(d)
812 # else
813 # if PTRSIZE == LONGSIZE
814 # define PTRV unsigned long
815 # else
816 # define PTRV unsigned
817 # endif
818 # define INT2PTR(any,d) (any)(PTRV)(d)
819 # endif
820  
821 # define NUM2PTR(any,d) (any)(PTRV)(d)
822 # define PTR2IV(p) INT2PTR(IV,p)
823 # define PTR2UV(p) INT2PTR(UV,p)
824 # define PTR2NV(p) NUM2PTR(NV,p)
825  
826 # if PTRSIZE == LONGSIZE
827 # define PTR2ul(p) (unsigned long)(p)
828 # else
829 # define PTR2ul(p) INT2PTR(unsigned long,p)
830 # endif
831 #endif /* !INT2PTR */
832  
833 #ifndef SvPV_nolen
834 # define SvPV_nolen(x) SvPV(x,PL_na)
835 #endif
836  
837 #ifndef get_sv
838 # define get_sv perl_get_sv
839 #endif
840  
841 #ifndef ERRSV
842 # define ERRSV get_sv("@",FALSE)
843 #endif
844  
845 #ifndef pTHX_
846 #define pTHX_
847 #endif
848  
849 #include <string.h>
850 #ifdef __cplusplus
851 }
852 #endif
853  
854 /* -----------------------------------------------------------------------------
855 * error manipulation
856 * ----------------------------------------------------------------------------- */
857  
858 SWIGINTERN const char*
859 0 SWIG_Perl_ErrorType(int code) {
860 0 switch(code) {
861 0 case SWIG_MemoryError:
862 0 return "MemoryError";
863 0 case SWIG_IOError:
864 0 return "IOError";
865 0 case SWIG_RuntimeError:
866 0 return "RuntimeError";
867 0 case SWIG_IndexError:
868 0 return "IndexError";
869 0 case SWIG_TypeError:
870 0 return "TypeError";
871 0 case SWIG_DivisionByZero:
872 0 return "ZeroDivisionError";
873 0 case SWIG_OverflowError:
874 0 return "OverflowError";
875 0 case SWIG_SyntaxError:
876 0 return "SyntaxError";
877 0 case SWIG_ValueError:
878 0 return "ValueError";
879 0 case SWIG_SystemError:
880 0 return "SystemError";
881 0 case SWIG_AttributeError:
882 0 return "AttributeError";
883 0 default:
884 0 return "RuntimeError";
885 }
886 }
887  
888  
889 /* -----------------------------------------------------------------------------
890 * perlrun.swg
891 *
892 * This file contains the runtime support for Perl modules
893 * and includes code for managing global variables and pointer
894 * type checking.
895 * ----------------------------------------------------------------------------- */
896  
897 #define SWIG_PERL_OBJECT_DECL
898 #define SWIG_PERL_OBJECT_CALL
899  
900 /* Common SWIG API */
901  
902 /* for raw pointers */
903 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
904 #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
905 #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
906 #define SWIG_AcquirePtr(ptr, src) SWIG_Perl_AcquirePtr(ptr, src)
907 #define swig_owntype int
908  
909 /* for raw packed data */
910 #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
911 #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
912  
913 /* for class or struct pointers */
914 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
915 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
916  
917 /* for C or C++ function pointers */
918 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
919 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
920  
921 /* for C++ member pointers, ie, member methods */
922 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty)
923 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type)
924  
925  
926 /* Runtime API */
927  
928 #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata)
929 #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
930  
931  
932 /* Error manipulation */
933  
934 #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
935 #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg)
936 #define SWIG_fail goto fail
937  
938 /* Perl-specific SWIG API */
939  
940 #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
941 #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
942 #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)
943  
944  
945 #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1)
946 #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1)
947 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2)
948 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2)
949  
950 /* -----------------------------------------------------------------------------
951 * pointers/data manipulation
952 * ----------------------------------------------------------------------------- */
953  
954 /* For backward compatibility only */
955 #define SWIG_POINTER_EXCEPTION 0
956  
957 #ifdef __cplusplus
958 extern "C" {
959 #endif
960  
961 #define SWIG_OWNER SWIG_POINTER_OWN
962 #define SWIG_SHADOW SWIG_OWNER << 1
963  
964 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
965  
966 /* SWIG Perl macros */
967  
968 /* Macro to declare an XS function */
969 #ifndef XSPROTO
970 # define XSPROTO(name) void name(pTHX_ CV* cv)
971 #endif
972  
973 /* Macro to call an XS function */
974 #ifndef MULTIPLICITY
975 # define SWIG_CALLXS(_name) _name(cv)
976 #else
977 # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
978 #endif
979  
980 #define MAGIC_PPERL
981 #define SWIGCLASS_STATIC static SWIGUNUSED
982  
983 #ifndef MULTIPLICITY
984 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
985  
986 #ifdef __cplusplus
987 extern "C" {
988 #endif
989 typedef int (*SwigMagicFunc)(SV *, MAGIC *);
990 #ifdef __cplusplus
991 }
992 #endif
993  
994 #else /* MULTIPLICITY */
995  
996 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
997  
998 #ifdef __cplusplus
999 extern "C" {
1000 #endif
1001 typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
1002 #ifdef __cplusplus
1003 }
1004 #endif
1005  
1006 #endif /* MULTIPLICITY */
1007  
1008 0 static void SWIGUNUSED SWIG_croak_null()
1009 {
1010 0 SV *err = get_sv("@", GV_ADD);
1011 0 ▶ if (sv_isobject(err))
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(err)) 0 0 0
1012 0 croak(0);
1013 else
1014 0 croak("%s", SvPV_nolen(err));
1015 }
1016  
1017  
1018 /*
1019 Define how strict is the cast between strings and integers/doubles
1020 when overloading between these types occurs.
1021
1022 The default is making it as strict as possible by using SWIG_AddCast
1023 when needed.
1024
1025 You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
1026 disable the SWIG_AddCast, making the casting between string and
1027 numbers less strict.
1028  
1029 In the end, we try to solve the overloading between strings and
1030 numerical types in the more natural way, but if you can avoid it,
1031 well, avoid it using %rename, for example.
1032 */
1033 #ifndef SWIG_PERL_NO_STRICT_STR2NUM
1034 # ifndef SWIG_PERL_STRICT_STR2NUM
1035 # define SWIG_PERL_STRICT_STR2NUM
1036 # endif
1037 #endif
1038 #ifdef SWIG_PERL_STRICT_STR2NUM
1039 /* string takes precedence */
1040 #define SWIG_Str2NumCast(x) SWIG_AddCast(x)
1041 #else
1042 /* number takes precedence */
1043 #define SWIG_Str2NumCast(x) x
1044 #endif
1045  
1046  
1047  
1048 #include <stdlib.h>
1049  
1050 SWIGRUNTIME const char *
1051 0 SWIG_Perl_TypeProxyName(const swig_type_info *type) {
1052 0 ▶ if (!type) return NULL;
Branch: 1 branch
BranchTrueFalseTotal
if (!type) return NULL; 0 0 0
1053 0 ▶ if (type->clientdata != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->clientdata != NULL) { 0 0 0
1054 0 return (const char*) type->clientdata;
1055 }
1056 else {
1057 0 return type->name;
1058 }
1059 }
1060  
1061 /* Identical to SWIG_TypeCheck, except for strcmp comparison */
1062 SWIGRUNTIME swig_cast_info *
1063 0 SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
1064 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
1065 0 swig_cast_info *iter = ty->cast;
1066 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
1067 0 ▶ if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { 0 0 0
1068 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
if (iter == ty->cast) 0 0 0
1069 0 return iter;
1070 /* Move iter to the top of the linked list */
1071 0 iter->prev->next = iter->next;
1072 0 ▶ if (iter->next)
Branch: 1 branch
BranchTrueFalseTotal
if (iter->next) 0 0 0
1073 0 iter->next->prev = iter->prev;
1074 0 iter->next = ty->cast;
1075 0 iter->prev = 0;
1076 0 ▶ if (ty->cast) ty->cast->prev = iter;
Branch: 1 branch
BranchTrueFalseTotal
if (ty->cast) ty->cast->prev = iter; 0 0 0
1077 0 ty->cast = iter;
1078 0 return iter;
1079 }
1080 0 iter = iter->next;
1081 }
1082 }
1083 0 return 0;
1084 }
1085  
1086 /* Acquire a pointer value */
1087  
1088 SWIGRUNTIME int
1089 0 SWIG_Perl_AcquirePtr(SWIG_MAYBE_PERL_OBJECT SV *SWIGUNUSEDPARM(sv), int SWIGUNUSEDPARM(own)) {
1090 /* TODO */
1091 0 return 0;
1092 }
1093  
1094 /* Function for getting a pointer value */
1095  
1096 SWIGRUNTIME int
1097 0 SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
1098 swig_cast_info *tc;
1099 0 void *voidptr = (void *)0;
1100 0 SV *tsv = 0;
1101 0 int check_owned_pointer_release = (flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE;
1102  
1103 0 ▶ if (own)
Branch: 1 branch
BranchTrueFalseTotal
if (own) 0 0 0
1104 0 *own = 0;
1105  
1106 /* If magical, apply more magic */
1107 0 ▶ if (SvGMAGICAL(sv))
Branch: 1 branch
BranchTrueFalseTotal
if (SvGMAGICAL(sv)) 0 0 0
1108 0 mg_get(sv);
1109  
1110 /* Check to see if this is an object */
1111 0 ▶ if (sv_isobject(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(sv)) { 0 0 0
1112 0 IV tmp = 0;
1113 0 tsv = (SV*) SvRV(sv);
1114 0 ▶ if ((SvTYPE(tsv) == SVt_PVHV)) {
Branch: 1 branch
BranchTrueFalseTotal
if ((SvTYPE(tsv) == SVt_PVHV)) { 0 0 0
1115 MAGIC *mg;
1116 0 ▶ if (SvMAGICAL(tsv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(tsv)) { 0 0 0
1117 0 mg = mg_find(tsv,'P');
1118 0 ▶ if (mg) {
Branch: 1 branch
BranchTrueFalseTotal
if (mg) { 0 0 0
1119 0 sv = mg->mg_obj;
1120 0 ▶ if (sv_isobject(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(sv)) { 0 0 0
1121 0 tsv = (SV*)SvRV(sv);
1122 0 tmp = SvIV(tsv);
1123 }
1124 }
1125 } else {
1126 0 return SWIG_ERROR;
1127 }
1128 } else {
1129 0 tmp = SvIV(tsv);
1130 }
1131 0 voidptr = INT2PTR(void *,tmp);
1132 0 ▶ } else if (! SvOK(sv)) { /* Check for undef */
Branch: 1 branch
BranchTrueFalseTotal
} else if (! SvOK(sv)) { /* Check for undef */ 0 0 0
1133 0 *(ptr) = (void *) 0;
1134 0 ▶ return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
Branch: 1 branch
BranchTrueFalseTotal
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; 0 0 0
1135 0 ▶ } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ 0 0 0
1136 0 ▶ if (!SvROK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(sv)) { 0 0 0
1137 /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */
1138 0 ▶ if (SvIOK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvIOK(sv)) { 0 0 0
1139 0 return SWIG_ERROR;
1140 } else {
1141 /* NULL pointer (reference to undef). */
1142 0 *(ptr) = (void *) 0;
1143 0 return SWIG_OK;
1144 }
1145 } else {
1146 0 return SWIG_ERROR;
1147 }
1148 } else { /* Don't know what it is */
1149 0 return SWIG_ERROR;
1150 }
1151 0 ▶ if (_t) {
Branch: 1 branch
BranchTrueFalseTotal
if (_t) { 0 0 0
1152 /* Now see if the types match */
1153 0 ▶ char *_c = HvNAME(SvSTASH(SvRV(sv)));
Branch: 6 branches
BranchTrueFalseTotal
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
1154 0 tc = SWIG_TypeProxyCheck(_c,_t);
1155 #ifdef SWIG_DIRECTORS
1156 if (!tc && !sv_derived_from(sv,SWIG_Perl_TypeProxyName(_t))) {
1157 #else
1158 0 ▶ if (!tc) {
Branch: 1 branch
BranchTrueFalseTotal
if (!tc) { 0 0 0
1159 #endif
1160 0 return SWIG_ERROR;
1161 }
1162 {
1163 0 int newmemory = 0;
1164 0 *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
1165 0 ▶ if (newmemory == SWIG_CAST_NEW_MEMORY) {
Branch: 1 branch
BranchTrueFalseTotal
if (newmemory == SWIG_CAST_NEW_MEMORY) { 0 0 0
1166 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
1167 0 ▶ if (own)
Branch: 1 branch
BranchTrueFalseTotal
if (own) 0 0 0
1168 0 *own = *own | SWIG_CAST_NEW_MEMORY;
1169 }
1170 }
1171 } else {
1172 0 *ptr = voidptr;
1173 }
1174  
1175 /*
1176 * DISOWN implementation: we need a perl guru to check this one.
1177 */
1178 0 ▶ if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) {
Branch: 3 branches
BranchTrueFalseTotal
if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { 0 0 0
if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { 0 0 0
if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { 0 0 0
1179 /*
1180 * almost copy paste code from below SWIG_POINTER_OWN setting
1181 */
1182 0 SV *obj = sv;
1183 0 HV *stash = SvSTASH(SvRV(obj));
1184 0 GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1185 0 int owned = 0;
1186 0 ▶ if (isGV(gv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (isGV(gv)) { 0 0 0
1187 0 ▶ HV *hv = GvHVn(gv);
Branch: 1 branch
BranchTrueFalseTotal
HV *hv = GvHVn(gv); 0 0 0
1188 /*
1189 * To set ownership (see below), a newSViv(1) entry is added.
1190 * Hence, to remove ownership, we delete the entry.
1191 */
1192 0 ▶ if (hv_exists_ent(hv, obj, 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists_ent(hv, obj, 0)) { 0 0 0
1193 0 owned = 1;
1194 0 ▶ if (flags & SWIG_POINTER_DISOWN) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & SWIG_POINTER_DISOWN) { 0 0 0
1195 0 hv_delete_ent(hv, obj, 0, 0);
1196 }
1197 }
1198 }
1199 0 ▶ if (check_owned_pointer_release && !owned) {
Branch: 2 branches
BranchTrueFalseTotal
if (check_owned_pointer_release && !owned) { 0 0 0
if (check_owned_pointer_release && !owned) { 0 0 0
1200 0 return SWIG_ERROR_RELEASE_NOT_OWNED;
1201 }
1202 }
1203  
1204 0 ▶ if (tsv && (flags & SWIG_POINTER_CLEAR)) {
Branch: 2 branches
BranchTrueFalseTotal
if (tsv && (flags & SWIG_POINTER_CLEAR)) { 0 0 0
if (tsv && (flags & SWIG_POINTER_CLEAR)) { 0 0 0
1205 0 SvIV_set(tsv, 0);
1206 }
1207  
1208 0 return SWIG_OK;
1209 }
1210  
1211 SWIGRUNTIME int
1212 0 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
1213 0 return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
1214 }
1215  
1216 SWIGRUNTIME void
1217 0 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
1218 0 ▶ if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
Branch: 2 branches
BranchTrueFalseTotal
if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { 0 0 0
if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { 0 0 0
1219 SV *self;
1220 0 SV *obj=newSV(0);
1221 0 HV *hash=newHV();
1222 HV *stash;
1223 0 sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr);
1224 0 stash=SvSTASH(SvRV(obj));
1225 0 ▶ if (flags & SWIG_POINTER_OWN) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & SWIG_POINTER_OWN) { 0 0 0
1226 HV *hv;
1227 0 GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1228 0 ▶ if (!isGV(gv))
Branch: 1 branch
BranchTrueFalseTotal
if (!isGV(gv)) 0 0 0
1229 0 gv_init(gv, stash, "OWNER", 5, FALSE);
1230 0 ▶ hv=GvHVn(gv);
Branch: 1 branch
BranchTrueFalseTotal
hv=GvHVn(gv); 0 0 0
1231 0 hv_store_ent(hv, obj, newSViv(1), 0);
1232 }
1233 0 sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
1234 0 SvREFCNT_dec(obj);
1235 0 self=newRV_noinc((SV *)hash);
1236 0 sv_setsv(sv, self);
1237 0 SvREFCNT_dec((SV *)self);
1238 0 sv_bless(sv, stash);
1239 }
1240 else {
1241 0 sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr);
1242 }
1243 0 }
1244  
1245 SWIGRUNTIMEINLINE SV *
1246 0 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
1247 0 SV *result = sv_newmortal();
1248 0 SWIG_MakePtr(result, ptr, t, flags);
1249 0 return result;
1250 }
1251  
1252 SWIGRUNTIME void
1253 0 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
1254 char result[1024];
1255 0 char *r = result;
1256 0 ▶ if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
Branch: 1 branch
BranchTrueFalseTotal
if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; 0 0 0
1257 0 *(r++) = '_';
1258 0 r = SWIG_PackData(r,ptr,sz);
1259 0 strcpy(r,SWIG_Perl_TypeProxyName(type));
1260 0 sv_setpv(sv, result);
1261 }
1262  
1263 SWIGRUNTIME SV *
1264 0 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
1265 0 SV *result = sv_newmortal();
1266 0 SWIG_Perl_MakePackedObj(result, ptr, sz, type);
1267 0 return result;
1268 }
1269  
1270 /* Convert a packed pointer value */
1271 SWIGRUNTIME int
1272 0 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
1273 swig_cast_info *tc;
1274 0 const char *c = 0;
1275  
1276 0 ▶ if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
Branch: 2 branches
BranchTrueFalseTotal
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; 0 0 0
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; 0 0 0
1277 0 c = SvPV_nolen(obj);
1278 /* Pointer values must start with leading underscore */
1279 0 ▶ if (*c != '_') return SWIG_ERROR;
Branch: 1 branch
BranchTrueFalseTotal
if (*c != '_') return SWIG_ERROR; 0 0 0
1280 0 c++;
1281 0 c = SWIG_UnpackData(c,ptr,sz);
1282 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
1283 0 tc = SWIG_TypeCheck(c,ty);
1284 0 ▶ if (!tc) return SWIG_ERROR;
Branch: 1 branch
BranchTrueFalseTotal
if (!tc) return SWIG_ERROR; 0 0 0
1285 }
1286 0 return SWIG_OK;
1287 }
1288  
1289  
1290 /* Macros for low-level exception handling */
1291 #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
1292  
1293  
1294 typedef XSPROTO(SwigPerlWrapper);
1295 typedef SwigPerlWrapper *SwigPerlWrapperPtr;
1296  
1297 /* Structure for command table */
1298 typedef struct {
1299 const char *name;
1300 SwigPerlWrapperPtr wrapper;
1301 } swig_command_info;
1302  
1303 /* Information for constant table */
1304  
1305 #define SWIG_INT 1
1306 #define SWIG_FLOAT 2
1307 #define SWIG_STRING 3
1308 #define SWIG_POINTER 4
1309 #define SWIG_BINARY 5
1310  
1311 /* Constant information structure */
1312 typedef struct swig_constant_info {
1313 int type;
1314 const char *name;
1315 long lvalue;
1316 double dvalue;
1317 void *pvalue;
1318 swig_type_info **ptype;
1319 } swig_constant_info;
1320  
1321  
1322 /* Structure for variable table */
1323 typedef struct {
1324 const char *name;
1325 SwigMagicFunc set;
1326 SwigMagicFunc get;
1327 swig_type_info **type;
1328 } swig_variable_info;
1329  
1330 /* Magic variable code */
1331 #ifdef __cplusplus
1332 # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c)
1333 #else
1334 # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c)
1335 #endif
1336 #ifndef MULTIPLICITY
1337 0 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
1338 #else
1339 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
1340 #endif
1341 {
1342 MAGIC *mg;
1343 0 sv_magic(sv,sv,'U',name,(I32)strlen(name));
1344 0 mg = mg_find(sv,'U');
1345 0 mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
1346 0 mg->mg_virtual->svt_get = (SwigMagicFunc) get;
1347 0 mg->mg_virtual->svt_set = (SwigMagicFunc) set;
1348 0 mg->mg_virtual->svt_len = 0;
1349 0 mg->mg_virtual->svt_clear = 0;
1350 0 mg->mg_virtual->svt_free = 0;
1351 0 }
1352  
1353  
1354 SWIGRUNTIME swig_module_info *
1355 0 SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
1356 static void *type_pointer = (void *)0;
1357 SV *pointer;
1358  
1359 /* first check if pointer already created */
1360 0 ▶ if (!type_pointer) {
Branch: 1 branch
BranchTrueFalseTotal
if (!type_pointer) { 0 0 0
1361 0 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
1362 0 ▶ if (pointer && SvOK(pointer)) {
Branch: 2 branches
BranchTrueFalseTotal
if (pointer && SvOK(pointer)) { 0 0 0
if (pointer && SvOK(pointer)) { 0 0 0
1363 0 type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
1364 }
1365 }
1366  
1367 0 return (swig_module_info *) type_pointer;
1368 }
1369  
1370 SWIGRUNTIME void
1371 0 SWIG_Perl_SetModule(swig_module_info *module) {
1372 SV *pointer;
1373  
1374 /* create a new pointer */
1375 0 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
1376 0 sv_setiv(pointer, PTR2IV(module));
1377 0 }
1378  
1379 #ifdef __cplusplus
1380 }
1381 #endif
1382  
1383 /* Workaround perl5 global namespace pollution. Note that undefining library
1384 * functions like fopen will not solve the problem on all platforms as fopen
1385 * might be a macro on Windows but not necessarily on other operating systems. */
1386 #ifdef do_open
1387 #undef do_open
1388 #endif
1389 #ifdef do_close
1390 #undef do_close
1391 #endif
1392 #ifdef do_exec
1393 #undef do_exec
1394 #endif
1395 #ifdef scalar
1396 #undef scalar
1397 #endif
1398 #ifdef list
1399 #undef list
1400 #endif
1401 #ifdef apply
1402 #undef apply
1403 #endif
1404 #ifdef convert
1405 #undef convert
1406 #endif
1407 #ifdef Error
1408 #undef Error
1409 #endif
1410 #ifdef form
1411 #undef form
1412 #endif
1413 #ifdef vform
1414 #undef vform
1415 #endif
1416 #ifdef LABEL
1417 #undef LABEL
1418 #endif
1419 #ifdef METHOD
1420 #undef METHOD
1421 #endif
1422 #ifdef Move
1423 #undef Move
1424 #endif
1425 #ifdef yylex
1426 #undef yylex
1427 #endif
1428 #ifdef yyparse
1429 #undef yyparse
1430 #endif
1431 #ifdef yyerror
1432 #undef yyerror
1433 #endif
1434 #ifdef invert
1435 #undef invert
1436 #endif
1437 #ifdef ref
1438 #undef ref
1439 #endif
1440 #ifdef read
1441 #undef read
1442 #endif
1443 #ifdef write
1444 #undef write
1445 #endif
1446 #ifdef eof
1447 #undef eof
1448 #endif
1449 #ifdef close
1450 #undef close
1451 #endif
1452 #ifdef rewind
1453 #undef rewind
1454 #endif
1455 #ifdef free
1456 #undef free
1457 #endif
1458 #ifdef malloc
1459 #undef malloc
1460 #endif
1461 #ifdef calloc
1462 #undef calloc
1463 #endif
1464 #ifdef Stat
1465 #undef Stat
1466 #endif
1467 #ifdef check
1468 #undef check
1469 #endif
1470 #ifdef seekdir
1471 #undef seekdir
1472 #endif
1473 #ifdef open
1474 #undef open
1475 #endif
1476 #ifdef readdir
1477 #undef readdir
1478 #endif
1479 #ifdef bind
1480 #undef bind
1481 #endif
1482 #ifdef access
1483 #undef access
1484 #endif
1485 #ifdef stat
1486 #undef stat
1487 #endif
1488 #ifdef seed
1489 #undef seed
1490 #endif
1491  
1492 #ifdef bool
1493 /* Leave if macro is from C99 stdbool.h */
1494 #ifndef __bool_true_false_are_defined
1495 #undef bool
1496 #endif
1497 #endif
1498  
1499  
1500  
1501  
1502 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1503  
1504 #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
1505  
1506  
1507  
1508 /* -------- TYPES TABLE (BEGIN) -------- */
1509  
1510 #define SWIGTYPE_p_FILE swig_types[0]
1511 #define SWIGTYPE_p_char swig_types[1]
1512 #define SWIGTYPE_p_double swig_types[2]
1513 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void swig_types[3]
1514 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void swig_types[4]
1515 #define SWIGTYPE_p_gsl_matrix swig_types[5]
1516 #define SWIGTYPE_p_gsl_ran_discrete_t swig_types[6]
1517 #define SWIGTYPE_p_gsl_rng swig_types[7]
1518 #define SWIGTYPE_p_gsl_vector swig_types[8]
1519 #define SWIGTYPE_p_int swig_types[9]
1520 #define SWIGTYPE_p_size_t swig_types[10]
1521 #define SWIGTYPE_p_unsigned_int swig_types[11]
1522 static swig_type_info *swig_types[13];
1523 static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0};
1524 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1525 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1526  
1527 /* -------- TYPES TABLE (END) -------- */
1528  
1529 #define SWIG_init boot_Math__GSL__Randist
1530  
1531 #define SWIG_name "Math::GSL::Randistc::boot_Math__GSL__Randist"
1532 #define SWIG_prefix "Math::GSL::Randistc::"
1533  
1534 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1535 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1536  
1537  
1538 #ifdef __cplusplus
1539 extern "C"
1540 #endif
1541 #ifndef MULTIPLICITY
1542 SWIGEXPORT void SWIG_init (CV* cv);
1543 #else
1544 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1545 #endif
1546  
1547  
1548 SWIGINTERNINLINE SV *
1549 0 SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value)
1550 {
1551 0 return sv_2mortal(newSVnv(value));
1552 }
1553  
1554  
1555 SWIGINTERNINLINE SV *
1556 0 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1557 {
1558 SV *sv;
1559 if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
1560 0 sv = newSViv(value);
1561 else
1562 sv = newSVpvf("%ld", value);
1563 0 return sv_2mortal(sv);
1564 }
1565  
1566  
1567 SWIGINTERNINLINE SV *
1568 0 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1569 {
1570 0 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1571 }
1572  
1573  
1574 SWIGINTERN swig_type_info*
1575 0 SWIG_pchar_descriptor(void)
1576 {
1577 static int init = 0;
1578 static swig_type_info* info = 0;
1579 0 ▶ if (!init) {
Branch: 1 branch
BranchTrueFalseTotal
if (!init) { 0 0 0
1580 0 info = SWIG_TypeQuery("_p_char");
1581 0 init = 1;
1582 }
1583 0 return info;
1584 }
1585  
1586  
1587 SWIGINTERN int
1588 0 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1589 {
1590 0 ▶ if (SvMAGICAL(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(obj)) { 0 0 0
1591 0 SV *tmp = sv_newmortal();
1592 0 ▶ SvSetSV(tmp, obj);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(tmp, obj); 0 0 0
1593 0 obj = tmp;
1594 }
1595 0 ▶ if (SvPOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvPOK(obj)) { 0 0 0
1596 0 STRLEN len = 0;
1597 0 char *cstr = SvPV(obj, len);
1598 0 size_t size = len + 1;
1599 0 ▶ if (cptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) { 0 0 0
1600 0 ▶ if (alloc) {
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) { 0 0 0
1601 0 ▶ if (*alloc == SWIG_NEWOBJ) {
Branch: 1 branch
BranchTrueFalseTotal
if (*alloc == SWIG_NEWOBJ) { 0 0 0
1602 0 *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1603 } else {
1604 0 *cptr = cstr;
1605 0 *alloc = SWIG_OLDOBJ;
1606 }
1607 }
1608 }
1609 0 ▶ if (psize) *psize = size;
Branch: 1 branch
BranchTrueFalseTotal
if (psize) *psize = size; 0 0 0
1610 0 return SWIG_OK;
1611 } else {
1612 0 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1613 0 ▶ if (pchar_descriptor) {
Branch: 1 branch
BranchTrueFalseTotal
if (pchar_descriptor) { 0 0 0
1614 0 char* vptr = 0;
1615 0 ▶ if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { 0 0 0
1616 0 ▶ if (cptr) *cptr = vptr;
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) *cptr = vptr; 0 0 0
1617 0 ▶ if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
Branch: 2 branches
BranchTrueFalseTotal
if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; 0 0 0
if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; 0 0 0
1618 0 ▶ if (alloc) *alloc = SWIG_OLDOBJ;
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) *alloc = SWIG_OLDOBJ; 0 0 0
1619 0 return SWIG_OK;
1620 }
1621 }
1622 }
1623 0 return SWIG_TypeError;
1624 }
1625  
1626  
1627  
1628  
1629  
1630 #include <limits.h>
1631 #if !defined(SWIG_NO_LLONG_MAX)
1632 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1633 # define LLONG_MAX __LONG_LONG_MAX__
1634 # define LLONG_MIN (-LLONG_MAX - 1LL)
1635 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1636 # endif
1637 #endif
1638  
1639  
1640 #include <stdlib.h>
1641 #ifdef _MSC_VER
1642 # ifndef strtoull
1643 # define strtoull _strtoui64
1644 # endif
1645 # ifndef strtoll
1646 # define strtoll _strtoi64
1647 # endif
1648 #endif
1649  
1650  
1651 SWIGINTERN int
1652 0 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1653 {
1654 0 ▶ if (SvNIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvNIOK(obj)) { 0 0 0
1655 0 ▶ if (val) *val = SvNV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvNV(obj); 0 0 0
1656 0 return SWIG_OK;
1657 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1658 0 ▶ if (val) *val = (double) SvIV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (double) SvIV(obj); 0 0 0
1659 0 return SWIG_AddCast(SWIG_OK);
1660 } else {
1661 0 const char *nptr = SvPV_nolen(obj);
1662 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1663 char *endptr;
1664 double v;
1665 0 errno = 0;
1666 0 v = strtod(nptr, &endptr);
1667 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1668 0 errno = 0;
1669 0 return SWIG_OverflowError;
1670 } else {
1671 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1672 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1673 0 return SWIG_Str2NumCast(SWIG_OK);
1674 }
1675 }
1676 }
1677 }
1678 0 return SWIG_TypeError;
1679 }
1680  
1681  
1682 #include <float.h>
1683  
1684  
1685 #include <math.h>
1686  
1687  
1688 SWIGINTERNINLINE int
1689 0 SWIG_CanCastAsInteger(double *d, double min, double max) {
1690 0 double x = *d;
1691 0 ▶ if ((min <= x && x <= max)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((min <= x && x <= max)) { 0 0 0
if ((min <= x && x <= max)) { 0 0 0
1692 double fx, cx, rd;
1693 0 errno = 0;
1694 0 fx = floor(x);
1695 0 cx = ceil(x);
1696 0 ▶ rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
Branch: 1 branch
BranchTrueFalseTotal
rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ 0 0 0
1697 0 ▶ if ((errno == EDOM) || (errno == ERANGE)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((errno == EDOM) || (errno == ERANGE)) { 0 0 0
if ((errno == EDOM) || (errno == ERANGE)) { 0 0 0
1698 0 errno = 0;
1699 } else {
1700 double summ, reps, diff;
1701 0 ▶ if (rd < x) {
Branch: 1 branch
BranchTrueFalseTotal
if (rd < x) { 0 0 0
1702 0 diff = x - rd;
1703 0 ▶ } else if (rd > x) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (rd > x) { 0 0 0
1704 0 diff = rd - x;
1705 } else {
1706 0 return 1;
1707 }
1708 0 summ = rd + x;
1709 0 reps = diff/summ;
1710 0 ▶ if (reps < 8*DBL_EPSILON) {
Branch: 1 branch
BranchTrueFalseTotal
if (reps < 8*DBL_EPSILON) { 0 0 0
1711 0 *d = rd;
1712 0 return 1;
1713 }
1714 }
1715 }
1716 0 return 0;
1717 }
1718  
1719  
1720 SWIGINTERN int
1721 0 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1722 {
1723 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
1724 0 UV v = SvUV(obj);
1725 0 ▶ if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { 0 0 0
1726 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1727 0 return SWIG_OK;
1728 }
1729 0 return SWIG_OverflowError;
1730 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1731 0 IV v = SvIV(obj);
1732 if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
1733 0 ▶ if(val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if(val) *val = v; 0 0 0
1734 0 return SWIG_OK;
1735 }
1736 return SWIG_OverflowError;
1737 } else {
1738 0 int dispatch = 0;
1739 0 const char *nptr = SvPV_nolen(obj);
1740 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1741 char *endptr;
1742 long v;
1743 0 errno = 0;
1744 0 v = strtol(nptr, &endptr,0);
1745 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1746 0 errno = 0;
1747 0 return SWIG_OverflowError;
1748 } else {
1749 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1750 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1751 0 return SWIG_Str2NumCast(SWIG_OK);
1752 }
1753 }
1754 }
1755 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
1756 double d;
1757 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1758 0 ▶ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { 0 0 0
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { 0 0 0
1759 0 ▶ if (val) *val = (long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (long)(d); 0 0 0
1760 0 return res;
1761 }
1762 }
1763 }
1764 0 return SWIG_TypeError;
1765 }
1766  
1767  
1768 SWIGINTERN int
1769 0 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1770 {
1771 long v;
1772 0 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1773 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
1774 0 ▶ if ((v < INT_MIN || v > INT_MAX)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((v < INT_MIN || v > INT_MAX)) { 0 0 0
if ((v < INT_MIN || v > INT_MAX)) { 0 0 0
1775 0 return SWIG_OverflowError;
1776 } else {
1777 0 ▶ if (val) *val = (int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (int)(v); 0 0 0
1778 }
1779 }
1780 0 return res;
1781 }
1782  
1783  
1784 SWIGINTERNINLINE SV *
1785 0 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1786 {
1787 0 SV *obj = sv_newmortal();
1788 0 ▶ if (carray) {
Branch: 1 branch
BranchTrueFalseTotal
if (carray) { 0 0 0
1789 0 sv_setpvn(obj, carray, size);
1790 } else {
1791 0 sv_setsv(obj, &PL_sv_undef);
1792 }
1793 0 return obj;
1794 }
1795  
1796  
1797 SWIGINTERNINLINE SV *
1798 0 SWIG_FromCharPtr(const char *cptr)
1799 {
1800 0 ▶ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
Branch: 1 branch
BranchTrueFalseTotal
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); 0 0 0
1801 }
1802  
1803  
1804 #include "gsl/gsl_nan.h"
1805 #include "gsl/gsl_errno.h"
1806 #include "gsl/gsl_math.h"
1807 #include "gsl/gsl_monte.h"
1808  
1809  
1810 struct perl_array {
1811 I32 len;
1812 AV *array;
1813 };
1814  
1815  
1816  
1817 enum awType { awDouble, awFloat, awInt, awUnsigned };
1818  
1819 typedef struct {
1820 I32 size;
1821 enum awType type;
1822 void * data;
1823 } array_wrapper;
1824  
1825 0 array_wrapper * array_wrapper_alloc(int numelem, enum awType type){
1826 0 array_wrapper * rv = malloc(sizeof(array_wrapper));
1827  
1828 0 ▶ if (rv == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv == NULL) 0 0 0
1829 0 croak("array_wrapper_alloc: can't malloc wrapper\n");
1830  
1831 0 switch (type){
1832 0 case awDouble:
1833 0 rv->data = malloc(sizeof(double) * numelem);
1834 0 break;
1835 0 case awFloat:
1836 0 rv->data = malloc(sizeof(float) * numelem);
1837 0 break;
1838 0 case awInt:
1839 0 rv->data = malloc(sizeof(int) * numelem);
1840 0 break;
1841 0 case awUnsigned:
1842 0 rv->data = malloc(sizeof(unsigned int) * numelem);
1843 0 break;
1844 0 default:
1845 0 croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned");
1846 }
1847  
1848 0 ▶ if (rv->data == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv->data == NULL) 0 0 0
1849 0 croak("array_wrapper_alloc: can't malloc data");
1850  
1851 0 rv->size = numelem;
1852 0 rv->type = type;
1853 0 return rv;
1854 }
1855  
1856 0 void array_wrapper_free(array_wrapper * daw){
1857 0 free(daw->data);
1858 0 free(daw);
1859 0 }
1860  
1861  
1862 /* structure to hold required information while the gsl function call
1863 for each callback
1864 */
1865 struct gsl_function_perl {
1866 gsl_function C_gsl_function;
1867 SV * function;
1868 SV * params;
1869 };
1870  
1871 struct gsl_function_fdf_perl {
1872 gsl_function_fdf C_gsl_function_fdf;
1873 SV * f;
1874 SV * df;
1875 SV * fdf;
1876 SV * params;
1877 };
1878  
1879 struct gsl_monte_function_perl {
1880 gsl_monte_function C_gsl_monte_function;
1881 SV * f;
1882 SV * dim;
1883 SV * params;
1884 };
1885  
1886 0 void gsl_function_perl_free(struct gsl_function_perl * perl_f){
1887 0 ▶ if (perl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_f != NULL) { 0 0 0
1888 0 SvREFCNT_dec(perl_f->function);
1889 0 SvREFCNT_dec(perl_f->params);
1890 0 Safefree(perl_f);
1891 }
1892 0 }
1893  
1894 0 void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){
1895 0 ▶ if (perl_fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_fdf != NULL) { 0 0 0
1896 0 SvREFCNT_dec(perl_fdf->f);
1897 0 SvREFCNT_dec(perl_fdf->df);
1898 0 SvREFCNT_dec(perl_fdf->fdf);
1899 0 SvREFCNT_dec(perl_fdf->params);
1900 0 Safefree(perl_fdf);
1901 }
1902 0 }
1903  
1904 /* These functions (C callbacks) calls the perl callbacks.
1905 Info for perl callback can be found using the 'void*params' parameter
1906 */
1907 0 double call_gsl_function_x_params(SV* function, double x, SV *params){
1908 unsigned int count;
1909 double y;
1910 0 dSP;
1911  
1912 //fprintf(stderr, "LOOKUP CALLBACK\n");
1913 0 ENTER;
1914 0 SAVETMPS;
1915  
1916 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1917 0 ▶ XPUSHs(sv_2mortal(newSVnv((double)x)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVnv((double)x))); 0 0 0
1918 0 ▶ XPUSHs(params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(params); 0 0 0
1919 0 PUTBACK; /* make local stack pointer global */
1920  
1921 0 count = call_sv(function, G_SCALAR);
1922 0 SPAGAIN;
1923  
1924 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
1925 0 croak("Expected to call subroutine in scalar context!");
1926  
1927 0 y = POPn;
1928  
1929 0 PUTBACK; /* make local stack pointer global */
1930 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1931 0 LEAVE;
1932  
1933 0 return y;
1934 }
1935  
1936 0 double call_gsl_function(double x , void *params){
1937 0 struct gsl_function_perl *F=(struct gsl_function_perl*)params;
1938 0 return call_gsl_function_x_params( F->function, x, F->params );
1939 }
1940  
1941 0 double call_gsl_function_fdf_f(double x , void *params){
1942 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1943 0 return call_gsl_function_x_params( F->f, x, F->params );
1944 }
1945  
1946 0 double call_gsl_function_fdf_df(double x , void *params){
1947 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1948 0 return call_gsl_function_x_params( F->df, x, F->params );
1949 }
1950  
1951 0 void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){
1952 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1953  
1954 0 dSP;
1955  
1956 0 ENTER;
1957 0 SAVETMPS;
1958  
1959 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1960 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
1961 0 PUSHs(sv_2mortal(newSVnv((double)x)));
1962 0 PUSHs(F->params);
1963 0 PUTBACK; /* make local stack pointer global */
1964  
1965 {
1966 0 unsigned int count = call_sv(F->fdf, G_ARRAY);
1967 0 SPAGAIN;
1968  
1969 0 ▶ if (count != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 2) 0 0 0
1970 0 croak( "Expected two return values, got %d", count );
1971 }
1972  
1973 0 *df = POPn;
1974 0 *f = POPn;
1975  
1976 0 PUTBACK; /* make local stack pointer global */
1977 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1978 0 LEAVE;
1979 0 }
1980  
1981 0 double call_gsl_monte_function(double *x_array , size_t dim, void *params){
1982 0 struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params;
1983 unsigned int count;
1984 unsigned int i;
1985 AV* perl_array;
1986 double y;
1987 0 dSP;
1988  
1989 //fprintf(stderr, "LOOKUP CALLBACK\n");
1990 0 ENTER;
1991 0 SAVETMPS;
1992  
1993 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1994 0 perl_array=newAV();
1995 0 sv_2mortal((SV*)perl_array);
1996 0 ▶ XPUSHs(sv_2mortal(newRV((SV *)perl_array)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newRV((SV *)perl_array))); 0 0 0
1997 0 ▶ for(i=0; i<dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(i=0; i<dim; i++) { 0 0 0
1998 /* no mortal : it is referenced by the array */
1999 0 av_push(perl_array, newSVnv(x_array[i]));
2000 }
2001 0 ▶ XPUSHs(sv_2mortal(newSViv(dim)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSViv(dim))); 0 0 0
2002 0 ▶ XPUSHs(F->params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(F->params); 0 0 0
2003 0 PUTBACK; /* make local stack pointer global */
2004  
2005 0 count = call_sv(F->f, G_SCALAR);
2006 0 SPAGAIN;
2007  
2008 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
2009 0 croak("Expected to call subroutine in scalar context!");
2010  
2011 0 y = POPn;
2012  
2013 0 PUTBACK; /* make local stack pointer global */
2014 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2015 0 LEAVE;
2016  
2017 0 return y;
2018 }
2019  
2020  
2021 0 void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) {
2022 static const char *keys[3] = { "f", "df", "fdf" };
2023  
2024 int ikey;
2025  
2026 0 ▶ for ( ikey = 0 ; ikey < 3 ; ++ikey ) {
Branch: 1 branch
BranchTrueFalseTotal
for ( ikey = 0 ; ikey < 3 ; ++ikey ) { 0 0 0
2027 0 func[ikey] = 0;
2028 0 const char* key = keys[ikey];
2029 /* it just so happens that strlen(keys[ikey]) == ikey + 1 */
2030 0 SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 );
2031 SV* function;
2032  
2033 0 ▶ if ( !pp_sv )
Branch: 1 branch
BranchTrueFalseTotal
if ( !pp_sv ) 0 0 0
2034 0 croak("Math::GSL : %s: missing key %s!", param_name, key);
2035  
2036 0 function = *pp_sv;
2037  
2038 0 ▶ if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) {
Branch: 3 branches
BranchTrueFalseTotal
if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { 0 0 0
if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { 0 0 0
if ( SvPOK(function) || ( SvROK( function ) && SvTYPE(SvRV(function)) == SVt_PVCV ) ) { 0 0 0
2039 /* hold on to SV after the enclosing hash goes away */
2040 0 SvREFCNT_inc( function );
2041 0 func[ikey] = function;
2042 }
2043 else {
2044 0 croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key);
2045 }
2046 }
2047 0 }
2048  
2049  
2050  
2051 SWIGINTERN int
2052 0 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
2053 {
2054 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2055 0 UV v = SvUV(obj);
2056 if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) {
2057 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2058 0 return SWIG_OK;
2059 }
2060 return SWIG_OverflowError;
2061 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2062 0 IV v = SvIV(obj);
2063 0 ▶ if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) {
Branch: 1 branch
BranchTrueFalseTotal
if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) { 0 0 0
2064 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2065 0 return SWIG_OK;
2066 }
2067 0 return SWIG_OverflowError;
2068 } else {
2069 0 int dispatch = 0;
2070 0 const char *nptr = SvPV_nolen(obj);
2071 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2072 char *endptr;
2073 unsigned long v;
2074 0 errno = 0;
2075 0 v = strtoul(nptr, &endptr,0);
2076 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2077 0 errno = 0;
2078 0 return SWIG_OverflowError;
2079 } else {
2080 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2081 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2082 0 return SWIG_Str2NumCast(SWIG_OK);
2083 }
2084 }
2085 }
2086 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2087 double d;
2088 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2089 0 ▶ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { 0 0 0
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { 0 0 0
2090 0 ▶ if (val) *val = (unsigned long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long)(d); 0 0 0
2091 0 return res;
2092 }
2093 }
2094 }
2095 0 return SWIG_TypeError;
2096 }
2097  
2098  
2099 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2100 # define SWIG_LONG_LONG_AVAILABLE
2101 #endif
2102  
2103  
2104 #ifdef SWIG_LONG_LONG_AVAILABLE
2105 SWIGINTERN int
2106 0 SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val)
2107 {
2108 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2109 /* pretty sure this should be conditional on
2110 * (UVSIZE <= sizeof(*val) || v <= ULLONG_MAX) */
2111 0 ▶ if (val) *val = SvUV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvUV(obj); 0 0 0
2112 0 return SWIG_OK;
2113 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2114 0 IV v = SvIV(obj);
2115 0 ▶ if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) {
Branch: 1 branch
BranchTrueFalseTotal
if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) { 0 0 0
2116 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2117 0 return SWIG_OK;
2118 } else {
2119 0 return SWIG_OverflowError;
2120 }
2121 } else {
2122 0 int dispatch = 0;
2123 0 const char *nptr = SvPV_nolen(obj);
2124 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2125 char *endptr;
2126 unsigned long long v;
2127 0 errno = 0;
2128 0 v = strtoull(nptr, &endptr,0);
2129 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2130 0 errno = 0;
2131 0 return SWIG_OverflowError;
2132 } else {
2133 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2134 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2135 0 return SWIG_Str2NumCast(SWIG_OK);
2136 }
2137 }
2138 }
2139 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2140 0 const double mant_max = 1LL << DBL_MANT_DIG;
2141 double d;
2142 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2143 0 ▶ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { 0 0 0
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { 0 0 0
2144 0 ▶ if (val) *val = (unsigned long long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long long)(d); 0 0 0
2145 0 return res;
2146 }
2147 }
2148 }
2149 0 return SWIG_TypeError;
2150 }
2151 #endif
2152  
2153  
2154 SWIGINTERNINLINE int
2155 0 SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
2156 {
2157 0 int res = SWIG_TypeError;
2158 #ifdef SWIG_LONG_LONG_AVAILABLE
2159 if (sizeof(size_t) <= sizeof(unsigned long)) {
2160 #endif
2161 unsigned long v;
2162 0 ▶ res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
Branch: 1 branch
BranchTrueFalseTotal
res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); 0 0 0
2163 0 ▶ if (SWIG_IsOK(res) && val) *val = (size_t)(v);
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsOK(res) && val) *val = (size_t)(v); 0 0 0
if (SWIG_IsOK(res) && val) *val = (size_t)(v); 0 0 0
2164 #ifdef SWIG_LONG_LONG_AVAILABLE
2165 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2166 unsigned long long v;
2167 res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
2168 if (SWIG_IsOK(res) && val) *val = (size_t)(v);
2169 }
2170 #endif
2171 0 return res;
2172 }
2173  
2174  
2175 SWIGINTERN int
2176 0 SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val)
2177 {
2178 unsigned long v;
2179 0 int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v);
2180 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
2181 0 ▶ if ((v > UINT_MAX)) {
Branch: 1 branch
BranchTrueFalseTotal
if ((v > UINT_MAX)) { 0 0 0
2182 0 return SWIG_OverflowError;
2183 } else {
2184 0 ▶ if (val) *val = (unsigned int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned int)(v); 0 0 0
2185 }
2186 }
2187 0 return res;
2188 }
2189  
2190  
2191 #include "gsl/gsl_matrix.h"
2192 #include "gsl/gsl_vector.h"
2193 #include "gsl/gsl_randist.h"
2194 #include "../c/Randist.c"
2195  
2196 /* create wrappers for multinormial and dirichlet */
2197  
2198 /* void gsl_ran_dirichlet (const gsl_rng * r, size_t K, const double alpha[], double theta[]) */
2199 0 array_wrapper * gsl_ran_dirichlet_wrapper(const gsl_rng * r, size_t K, const double alpha[]){
2200 0 array_wrapper * wrapper = array_wrapper_alloc(K, awDouble);
2201 0 gsl_ran_dirichlet(r, wrapper->size, alpha, (double*)(wrapper->data));
2202 0 return wrapper;
2203 }
2204 /* double gsl_ran_dirichlet_pdf (size_t K, const double alpha[], const double theta[]) */
2205 0 double gsl_ran_dirichlet_pdf_wrapper(size_t K1, const double theta[], size_t K2, const double alpha[]){
2206 0 ▶ if (K1 != K2)
Branch: 1 branch
BranchTrueFalseTotal
if (K1 != K2) 0 0 0
2207 0 croak("gsl_ran_dirichlet_pdf - arrays need to be same size");
2208 0 return gsl_ran_dirichlet_pdf (K1, alpha, theta);
2209 }
2210 /* double gsl_ran_dirichlet_lnpdf (size_t K, const double alpha[], const double theta[]) */
2211 0 double gsl_ran_dirichlet_lnpdf_wrapper(size_t K1, const double theta[], size_t K2, const double alpha[]){
2212 0 ▶ if (K1 != K2)
Branch: 1 branch
BranchTrueFalseTotal
if (K1 != K2) 0 0 0
2213 0 croak("gsl_ran_dirichlet_lnpdf - arrays need to be same size");
2214 0 return gsl_ran_dirichlet_lnpdf (K1, alpha, theta);
2215 }
2216  
2217 /* void gsl_ran_multinomial (const gsl_rng * r, size_t K, unsigned int N, const double p[], unsigned int n[]) */
2218 0 array_wrapper * gsl_ran_multinomial_wrapper (const gsl_rng * r, size_t K, const double p[], unsigned int N){
2219 0 array_wrapper * wrapper = array_wrapper_alloc(K, awUnsigned);
2220 0 gsl_ran_multinomial(r, wrapper->size, N, p, (unsigned int*)(wrapper->data));
2221 0 return wrapper;
2222 }
2223 /* double gsl_ran_multinomial_pdf (size_t K, const double p[], const unsigned int n[]) */
2224 0 double gsl_ran_multinomial_pdf_wrapper (size_t K1, const unsigned int n[], size_t K2, const double p[]){
2225 0 ▶ if (K1 != K2)
Branch: 1 branch
BranchTrueFalseTotal
if (K1 != K2) 0 0 0
2226 0 croak("gsl_ran_multinomial_pdf - arrays need to be same size");
2227 0 return gsl_ran_multinomial_pdf (K1, p, n);
2228 }
2229 /* double gsl_ran_multinomial_lnpdf (size_t K, const double p[], const unsigned int n[]) */
2230 0 double gsl_ran_multinomial_lnpdf_wrapper (size_t K1, const unsigned int n[], size_t K2, const double p[]){
2231 0 ▶ if (K1 != K2)
Branch: 1 branch
BranchTrueFalseTotal
if (K1 != K2) 0 0 0
2232 0 croak("gsl_ran_multinomial_lnpdf - arrays need to be same size");
2233 0 return gsl_ran_multinomial_lnpdf (K1, p, n);
2234 }
2235  
2236 /* void gsl_ran_dir_nd (const gsl_rng * r, size_t n, double * x) */
2237 0 array_wrapper * gsl_ran_dir_nd_wrapper (const gsl_rng * r, size_t n) {
2238 0 array_wrapper * wrapper = array_wrapper_alloc(n, awDouble);
2239 0 gsl_ran_dir_nd(r, n, (double*)(wrapper->data));
2240 0 return wrapper;
2241 }
2242  
2243  
2244  
2245 SWIGINTERNINLINE SV *
2246 0 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
2247 {
2248 SV *sv;
2249 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2250 0 sv = newSVuv(value);
2251 else
2252 sv = newSVpvf("%lu", value);
2253 0 return sv_2mortal(sv);
2254 }
2255  
2256  
2257 SWIGINTERNINLINE SV *
2258 0 SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value)
2259 {
2260 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value);
2261 }
2262  
2263  
2264 #include <stdio.h>
2265 #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
2266 # ifndef snprintf
2267 # define snprintf _snprintf
2268 # endif
2269 #endif
2270  
2271  
2272 #ifdef SWIG_LONG_LONG_AVAILABLE
2273 SWIGINTERNINLINE SV *
2274 SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value)
2275 {
2276 SV *sv;
2277 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2278 sv = newSVuv((UV)(value));
2279 else {
2280 //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl
2281 char temp[256];
2282 SWIG_snprintf(temp, sizeof(temp), "%llu", value);
2283 sv = newSVpv(temp, 0);
2284 }
2285 return sv_2mortal(sv);
2286 }
2287 #endif
2288  
2289  
2290 SWIGINTERNINLINE SV *
2291 0 SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value)
2292 {
2293 #ifdef SWIG_LONG_LONG_AVAILABLE
2294 if (sizeof(size_t) <= sizeof(unsigned long)) {
2295 #endif
2296 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(value));
2297 #ifdef SWIG_LONG_LONG_AVAILABLE
2298 } else {
2299 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
2300 return SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long long)(value));
2301 }
2302 #endif
2303 }
2304  
2305 #ifdef __cplusplus
2306 extern "C" {
2307 #endif
2308  
2309 #define MAGIC_CLASS
2310 0 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
2311 MAGIC_PPERL
2312 0 croak("Value is read-only.");
2313 return 0;
2314 }
2315  
2316 #ifdef __cplusplus
2317 }
2318 #endif
2319  
2320 #ifdef __cplusplus
2321 extern "C" {
2322 #endif
2323 0 XS(_wrap_gsl_error) {
2324 {
2325 0 char *arg1 = (char *) 0 ;
2326 0 char *arg2 = (char *) 0 ;
2327 int arg3 ;
2328 int arg4 ;
2329 int res1 ;
2330 0 char *buf1 = 0 ;
2331 0 int alloc1 = 0 ;
2332 int res2 ;
2333 0 char *buf2 = 0 ;
2334 0 int alloc2 = 0 ;
2335 int val3 ;
2336 0 int ecode3 = 0 ;
2337 int val4 ;
2338 0 int ecode4 = 0 ;
2339 0 int argvi = 0;
2340 0 dXSARGS;
2341
2342 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
2343 0 SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);");
2344 }
2345 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2346 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2347 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_error" "', argument " "1"" of type '" "char const *""'"); 0 0 0
2348 }
2349 0 arg1 = (char *)(buf1);
2350 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2351 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2352 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_error" "', argument " "2"" of type '" "char const *""'"); 0 0 0
2353 }
2354 0 arg2 = (char *)(buf2);
2355 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2356 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2357 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_error" "', argument " "3"" of type '" "int""'"); 0 0 0
2358 }
2359 0 arg3 = (int)(val3);
2360 0 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2361 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2362 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_error" "', argument " "4"" of type '" "int""'"); 0 0 0
2363 }
2364 0 arg4 = (int)(val4);
2365 0 gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4);
2366 0 ST(argvi) = &PL_sv_undef;
2367 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2368 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2369
2370
2371 0 XSRETURN(argvi);
2372 0 fail:
2373 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2374 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2375
2376
2377 0 SWIG_croak_null();
2378 }
2379 }
2380  
2381  
2382 0 XS(_wrap_gsl_stream_printf) {
2383 {
2384 0 char *arg1 = (char *) 0 ;
2385 0 char *arg2 = (char *) 0 ;
2386 int arg3 ;
2387 0 char *arg4 = (char *) 0 ;
2388 int res1 ;
2389 0 char *buf1 = 0 ;
2390 0 int alloc1 = 0 ;
2391 int res2 ;
2392 0 char *buf2 = 0 ;
2393 0 int alloc2 = 0 ;
2394 int val3 ;
2395 0 int ecode3 = 0 ;
2396 int res4 ;
2397 0 char *buf4 = 0 ;
2398 0 int alloc4 = 0 ;
2399 0 int argvi = 0;
2400 0 dXSARGS;
2401
2402 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
2403 0 SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);");
2404 }
2405 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2406 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2407 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stream_printf" "', argument " "1"" of type '" "char const *""'"); 0 0 0
2408 }
2409 0 arg1 = (char *)(buf1);
2410 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2411 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2412 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stream_printf" "', argument " "2"" of type '" "char const *""'"); 0 0 0
2413 }
2414 0 arg2 = (char *)(buf2);
2415 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2416 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2417 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stream_printf" "', argument " "3"" of type '" "int""'"); 0 0 0
2418 }
2419 0 arg3 = (int)(val3);
2420 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
2421 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
2422 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stream_printf" "', argument " "4"" of type '" "char const *""'"); 0 0 0
2423 }
2424 0 arg4 = (char *)(buf4);
2425 0 gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
2426 0 ST(argvi) = &PL_sv_undef;
2427 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2428 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2429
2430 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2431 0 XSRETURN(argvi);
2432 0 fail:
2433 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2434 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2435
2436 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2437 0 SWIG_croak_null();
2438 }
2439 }
2440  
2441  
2442 0 XS(_wrap_gsl_strerror) {
2443 {
2444 int arg1 ;
2445 int val1 ;
2446 0 int ecode1 = 0 ;
2447 0 int argvi = 0;
2448 0 char *result = 0 ;
2449 0 dXSARGS;
2450
2451 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
2452 0 SWIG_croak("Usage: gsl_strerror(gsl_errno);");
2453 }
2454 0 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
2455 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
2456 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_strerror" "', argument " "1"" of type '" "int""'"); 0 0 0
2457 }
2458 0 arg1 = (int)(val1);
2459 0 result = (char *)gsl_strerror(arg1);
2460 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2461
2462 0 XSRETURN(argvi);
2463 0 fail:
2464
2465 0 SWIG_croak_null();
2466 }
2467 }
2468  
2469  
2470 0 XS(_wrap_gsl_set_error_handler) {
2471 {
2472 0 gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ;
2473 0 int argvi = 0;
2474 0 gsl_error_handler_t *result = 0 ;
2475 0 dXSARGS;
2476
2477 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
2478 0 SWIG_croak("Usage: gsl_set_error_handler(new_handler);");
2479 }
2480 {
2481 0 int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void);
2482 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2483 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_error_handler" "', argument " "1"" of type '" "gsl_error_handler_t *""'"); 0 0 0
2484 }
2485 }
2486 0 result = (gsl_error_handler_t *)gsl_set_error_handler(arg1);
2487 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2488
2489 0 XSRETURN(argvi);
2490 0 fail:
2491
2492 0 SWIG_croak_null();
2493 }
2494 }
2495  
2496  
2497 0 XS(_wrap_gsl_set_error_handler_off) {
2498 {
2499 0 int argvi = 0;
2500 0 gsl_error_handler_t *result = 0 ;
2501 0 dXSARGS;
2502
2503 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
2504 0 SWIG_croak("Usage: gsl_set_error_handler_off();");
2505 }
2506 0 result = (gsl_error_handler_t *)gsl_set_error_handler_off();
2507 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2508 0 XSRETURN(argvi);
2509 0 fail:
2510 0 SWIG_croak_null();
2511 }
2512 }
2513  
2514  
2515 0 XS(_wrap_gsl_set_stream_handler) {
2516 {
2517 0 gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ;
2518 0 int argvi = 0;
2519 0 gsl_stream_handler_t *result = 0 ;
2520 0 dXSARGS;
2521
2522 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
2523 0 SWIG_croak("Usage: gsl_set_stream_handler(new_handler);");
2524 }
2525 {
2526 0 int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void);
2527 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2528 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_set_stream_handler" "', argument " "1"" of type '" "gsl_stream_handler_t *""'"); 0 0 0
2529 }
2530 }
2531 0 result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1);
2532 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void); argvi++ ;
2533
2534 0 XSRETURN(argvi);
2535 0 fail:
2536
2537 0 SWIG_croak_null();
2538 }
2539 }
2540  
2541  
2542 0 XS(_wrap_gsl_set_stream) {
2543 {
2544 0 FILE *arg1 = (FILE *) 0 ;
2545 0 void *argp1 = 0 ;
2546 0 int res1 = 0 ;
2547 0 int argvi = 0;
2548 0 FILE *result = 0 ;
2549 0 dXSARGS;
2550
2551 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
2552 0 SWIG_croak("Usage: gsl_set_stream(new_stream);");
2553 }
2554 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2555 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2556 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_set_stream" "', argument " "1"" of type '" "FILE *""'"); 0 0 0
2557 }
2558 0 arg1 = (FILE *)(argp1);
2559 0 result = (FILE *)gsl_set_stream(arg1);
2560 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ;
2561
2562 0 XSRETURN(argvi);
2563 0 fail:
2564
2565 0 SWIG_croak_null();
2566 }
2567 }
2568  
2569  
2570 0 XS(_wrap_gsl_ran_dir_2d) {
2571 {
2572 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
2573 0 double *arg2 = (double *) 0 ;
2574 0 double *arg3 = (double *) 0 ;
2575 0 void *argp1 = 0 ;
2576 0 int res1 = 0 ;
2577 double temp2 ;
2578 0 int res2 = SWIG_TMPOBJ ;
2579 double temp3 ;
2580 0 int res3 = SWIG_TMPOBJ ;
2581 0 int argvi = 0;
2582 0 dXSARGS;
2583
2584 0 arg2 = &temp2;
2585 0 arg3 = &temp3;
2586 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
2587 0 SWIG_croak("Usage: gsl_ran_dir_2d(r);");
2588 }
2589 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
2590 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2591 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_2d" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_2d" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
2592 }
2593 0 arg1 = (gsl_rng *)(argp1);
2594 0 gsl_ran_dir_2d((gsl_rng const *)arg1,arg2,arg3);
2595 0 ST(argvi) = &PL_sv_undef;
2596 0 ▶ if (SWIG_IsTmpObj(res2)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res2)) { 0 0 0
if (SWIG_IsTmpObj(res2)) { 0 0 0
2597 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2598 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2599 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ /*@SWIG@*/;
2600 } else {
2601 0 ▶ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2602 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2603 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2604 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2605 }
2606 0 ▶ if (SWIG_IsTmpObj(res3)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res3)) { 0 0 0
if (SWIG_IsTmpObj(res3)) { 0 0 0
2607 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2608 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2609 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg3)); argvi++ /*@SWIG@*/;
2610 } else {
2611 0 ▶ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2612 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2613 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2614 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2615 }
2616
2617
2618
2619 0 XSRETURN(argvi);
2620 0 fail:
2621
2622
2623
2624 0 SWIG_croak_null();
2625 }
2626 }
2627  
2628  
2629 0 XS(_wrap_gsl_ran_dir_2d_trig_method) {
2630 {
2631 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
2632 0 double *arg2 = (double *) 0 ;
2633 0 double *arg3 = (double *) 0 ;
2634 0 void *argp1 = 0 ;
2635 0 int res1 = 0 ;
2636 double temp2 ;
2637 0 int res2 = SWIG_TMPOBJ ;
2638 double temp3 ;
2639 0 int res3 = SWIG_TMPOBJ ;
2640 0 int argvi = 0;
2641 0 dXSARGS;
2642
2643 0 arg2 = &temp2;
2644 0 arg3 = &temp3;
2645 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
2646 0 SWIG_croak("Usage: gsl_ran_dir_2d_trig_method(r);");
2647 }
2648 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
2649 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2650 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_2d_trig_method" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_2d_trig_method" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
2651 }
2652 0 arg1 = (gsl_rng *)(argp1);
2653 0 gsl_ran_dir_2d_trig_method((gsl_rng const *)arg1,arg2,arg3);
2654 0 ST(argvi) = &PL_sv_undef;
2655 0 ▶ if (SWIG_IsTmpObj(res2)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res2)) { 0 0 0
if (SWIG_IsTmpObj(res2)) { 0 0 0
2656 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2657 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2658 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ /*@SWIG@*/;
2659 } else {
2660 0 ▶ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2661 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2662 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2663 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2664 }
2665 0 ▶ if (SWIG_IsTmpObj(res3)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res3)) { 0 0 0
if (SWIG_IsTmpObj(res3)) { 0 0 0
2666 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2667 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2668 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg3)); argvi++ /*@SWIG@*/;
2669 } else {
2670 0 ▶ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2671 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2672 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2673 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2674 }
2675
2676
2677
2678 0 XSRETURN(argvi);
2679 0 fail:
2680
2681
2682
2683 0 SWIG_croak_null();
2684 }
2685 }
2686  
2687  
2688 0 XS(_wrap_gsl_ran_dir_3d) {
2689 {
2690 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
2691 0 double *arg2 = (double *) 0 ;
2692 0 double *arg3 = (double *) 0 ;
2693 0 double *arg4 = (double *) 0 ;
2694 0 void *argp1 = 0 ;
2695 0 int res1 = 0 ;
2696 double temp2 ;
2697 0 int res2 = SWIG_TMPOBJ ;
2698 double temp3 ;
2699 0 int res3 = SWIG_TMPOBJ ;
2700 double temp4 ;
2701 0 int res4 = SWIG_TMPOBJ ;
2702 0 int argvi = 0;
2703 0 dXSARGS;
2704
2705 0 arg2 = &temp2;
2706 0 arg3 = &temp3;
2707 0 arg4 = &temp4;
2708 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
2709 0 SWIG_croak("Usage: gsl_ran_dir_3d(r);");
2710 }
2711 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
2712 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2713 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_3d" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_3d" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
2714 }
2715 0 arg1 = (gsl_rng *)(argp1);
2716 0 gsl_ran_dir_3d((gsl_rng const *)arg1,arg2,arg3,arg4);
2717 0 ST(argvi) = &PL_sv_undef;
2718 0 ▶ if (SWIG_IsTmpObj(res2)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res2)) { 0 0 0
if (SWIG_IsTmpObj(res2)) { 0 0 0
2719 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2720 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2721 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ /*@SWIG@*/;
2722 } else {
2723 0 ▶ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2724 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2725 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2726 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2727 }
2728 0 ▶ if (SWIG_IsTmpObj(res3)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res3)) { 0 0 0
if (SWIG_IsTmpObj(res3)) { 0 0 0
2729 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2730 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2731 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg3)); argvi++ /*@SWIG@*/;
2732 } else {
2733 0 ▶ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2734 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2735 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2736 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2737 }
2738 0 ▶ if (SWIG_IsTmpObj(res4)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res4)) { 0 0 0
if (SWIG_IsTmpObj(res4)) { 0 0 0
2739 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2740 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2741 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg4)); argvi++ /*@SWIG@*/;
2742 } else {
2743 0 ▶ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2744 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2745 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2746 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2747 }
2748
2749
2750
2751
2752 0 XSRETURN(argvi);
2753 0 fail:
2754
2755
2756
2757
2758 0 SWIG_croak_null();
2759 }
2760 }
2761  
2762  
2763 0 XS(_wrap_gsl_ran_bivariate_gaussian) {
2764 {
2765 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
2766 double arg2 ;
2767 double arg3 ;
2768 double arg4 ;
2769 0 double *arg5 = (double *) 0 ;
2770 0 double *arg6 = (double *) 0 ;
2771 0 void *argp1 = 0 ;
2772 0 int res1 = 0 ;
2773 double val2 ;
2774 0 int ecode2 = 0 ;
2775 double val3 ;
2776 0 int ecode3 = 0 ;
2777 double val4 ;
2778 0 int ecode4 = 0 ;
2779 double temp5 ;
2780 0 int res5 = SWIG_TMPOBJ ;
2781 double temp6 ;
2782 0 int res6 = SWIG_TMPOBJ ;
2783 0 int argvi = 0;
2784 0 dXSARGS;
2785
2786 0 arg5 = &temp5;
2787 0 arg6 = &temp6;
2788 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
2789 0 SWIG_croak("Usage: gsl_ran_bivariate_gaussian(r,sigma_x,sigma_y,rho);");
2790 }
2791 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
2792 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2793 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
2794 }
2795 0 arg1 = (gsl_rng *)(argp1);
2796 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2797 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2798 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "2"" of type '" "double""'"); 0 0 0
2799 }
2800 0 arg2 = (double)(val2);
2801 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2802 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2803 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "3"" of type '" "double""'"); 0 0 0
2804 }
2805 0 arg3 = (double)(val3);
2806 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2807 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2808 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_bivariate_gaussian" "', argument " "4"" of type '" "double""'"); 0 0 0
2809 }
2810 0 arg4 = (double)(val4);
2811 0 gsl_ran_bivariate_gaussian((gsl_rng const *)arg1,arg2,arg3,arg4,arg5,arg6);
2812 0 ST(argvi) = &PL_sv_undef;
2813 0 ▶ if (SWIG_IsTmpObj(res5)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res5)) { 0 0 0
if (SWIG_IsTmpObj(res5)) { 0 0 0
2814 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2815 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2816 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg5)); argvi++ /*@SWIG@*/;
2817 } else {
2818 0 ▶ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2819 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2820 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2821 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2822 }
2823 0 ▶ if (SWIG_IsTmpObj(res6)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res6)) { 0 0 0
if (SWIG_IsTmpObj(res6)) { 0 0 0
2824 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2825 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2826 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg6)); argvi++ /*@SWIG@*/;
2827 } else {
2828 0 ▶ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
2829 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
2830 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
2831 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
2832 }
2833
2834
2835
2836
2837
2838
2839 0 XSRETURN(argvi);
2840 0 fail:
2841
2842
2843
2844
2845
2846
2847 0 SWIG_croak_null();
2848 }
2849 }
2850  
2851  
2852 0 XS(_wrap_gsl_ran_dirichlet) {
2853 {
2854 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
2855 size_t arg2 ;
2856 0 double *arg3 = (double *) (double *)0 ;
2857 0 void *argp1 = 0 ;
2858 0 int res1 = 0 ;
2859 0 int argvi = 0;
2860 0 array_wrapper *result = 0 ;
2861 0 dXSARGS;
2862
2863 {
2864 0 arg3 = 0; /* apparently arrays are not null'd for multi-args? */
2865 }
2866 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
2867 0 SWIG_croak("Usage: gsl_ran_dirichlet(r,SIZE,ARRAY);");
2868 }
2869 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
2870 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2871 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dirichlet" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dirichlet" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
2872 }
2873 0 arg1 = (gsl_rng *)(argp1);
2874 {
2875 AV* av;
2876 int i;
2877
2878 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
2879 0 croak("Argument 2 is not a reference.");
2880 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
2881 0 croak("Argument 2 is not an array.");
2882 0 av = (AV*)SvRV(ST(1));
2883 0 arg2 = av_len(av) + 1;
2884
2885 0 arg3 = malloc(arg2 * sizeof(double));
2886 0 ▶ if (arg3 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg3 == NULL) 0 0 0
2887 0 croak("%%typemap(in) (int , const double []) - can't malloc");
2888
2889 0 ▶ for (i = 0; i < arg2; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg2; i++) { 0 0 0
2890 0 arg3[i] = (double) SvNV(* av_fetch(av, i, 0));
2891 }
2892 }
2893 0 result = (array_wrapper *)gsl_ran_dirichlet_wrapper((gsl_rng const *)arg1,arg2,(double const (*))arg3);
2894 {
2895 SV** tmparr;
2896 AV* av;
2897 array_wrapper * wrapper;
2898 int i;
2899
2900 double * dptr;
2901 float * fptr;
2902 int * iptr;
2903 unsigned int * uptr;
2904
2905 0 wrapper = result;
2906
2907 0 tmparr = malloc(sizeof(SV*) * wrapper->size);
2908 0 ▶ if (tmparr == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (tmparr == NULL) 0 0 0
2909 0 croak("out typemap for array_wrapper: couldn't malloc tmparr");
2910
2911 0 switch (wrapper->type){
2912 0 case awDouble:
2913 0 dptr = (double *)wrapper->data;
2914 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
2915 0 tmparr[i] = newSVnv(dptr[i]);
2916 }
2917 0 break;
2918 0 case awFloat:
2919 0 fptr = (float *)wrapper->data;
2920 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
2921 0 tmparr[i] = newSVnv((double)fptr[i]);
2922 }
2923 0 break;
2924 0 case awInt:
2925 0 iptr = (int *)wrapper->data;
2926 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
2927 0 tmparr[i] = newSViv(iptr[i]);
2928 }
2929 0 break;
2930 0 case awUnsigned:
2931 0 uptr = (unsigned int*)wrapper->data;
2932 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
2933 0 tmparr[i] = newSVuv(uptr[i]);
2934 }
2935 0 break;
2936 0 default:
2937 0 croak("out typemap for array_wrapper : type should be awDouble, awFloat, awInt, or awUnsigned");
2938 }
2939
2940 0 av = av_make(wrapper->size, tmparr);
2941 0 ST(argvi) = sv_2mortal(newRV_noinc((SV*) av));
2942 0 free(tmparr);
2943 0 array_wrapper_free(wrapper);
2944 0 argvi++;
2945 }
2946
2947 {
2948 0 ▶ if (arg3)
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) 0 0 0
2949 0 free(arg3);
2950 }
2951 0 XSRETURN(argvi);
2952 0 fail:
2953
2954 {
2955 0 ▶ if (arg3)
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) 0 0 0
2956 0 free(arg3);
2957 }
2958 0 SWIG_croak_null();
2959 }
2960 }
2961  
2962  
2963 0 XS(_wrap_gsl_ran_dirichlet_pdf) {
2964 {
2965 size_t arg1 ;
2966 0 double *arg2 = (double *) (double *)0 ;
2967 size_t arg3 ;
2968 0 double *arg4 = (double *) (double *)0 ;
2969 0 int argvi = 0;
2970 double result;
2971 0 dXSARGS;
2972
2973 {
2974 0 arg2 = 0; /* apparently arrays are not null'd for multi-args? */
2975 }
2976 {
2977 0 arg4 = 0; /* apparently arrays are not null'd for multi-args? */
2978 }
2979 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
2980 0 SWIG_croak("Usage: gsl_ran_dirichlet_pdf(SIZE,ARRAY,SIZE,ARRAY);");
2981 }
2982 {
2983 AV* av;
2984 int i;
2985
2986 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2987 0 croak("Argument 1 is not a reference.");
2988 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2989 0 croak("Argument 1 is not an array.");
2990 0 av = (AV*)SvRV(ST(0));
2991 0 arg1 = av_len(av) + 1;
2992
2993 0 arg2 = malloc(arg1 * sizeof(double));
2994 0 ▶ if (arg2 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2 == NULL) 0 0 0
2995 0 croak("%%typemap(in) (int , const double []) - can't malloc");
2996
2997 0 ▶ for (i = 0; i < arg1; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg1; i++) { 0 0 0
2998 0 arg2[i] = (double) SvNV(* av_fetch(av, i, 0));
2999 }
3000 }
3001 {
3002 AV* av;
3003 int i;
3004
3005 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
3006 0 croak("Argument 3 is not a reference.");
3007 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
3008 0 croak("Argument 3 is not an array.");
3009 0 av = (AV*)SvRV(ST(1));
3010 0 arg3 = av_len(av) + 1;
3011
3012 0 arg4 = malloc(arg3 * sizeof(double));
3013 0 ▶ if (arg4 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4 == NULL) 0 0 0
3014 0 croak("%%typemap(in) (int , const double []) - can't malloc");
3015
3016 0 ▶ for (i = 0; i < arg3; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg3; i++) { 0 0 0
3017 0 arg4[i] = (double) SvNV(* av_fetch(av, i, 0));
3018 }
3019 }
3020 0 result = (double)gsl_ran_dirichlet_pdf_wrapper(arg1,(double const (*))arg2,arg3,(double const (*))arg4);
3021 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3022 {
3023 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3024 0 free(arg2);
3025 }
3026 {
3027 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3028 0 free(arg4);
3029 }
3030 0 XSRETURN(argvi);
3031 0 fail:
3032 {
3033 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3034 0 free(arg2);
3035 }
3036 {
3037 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3038 0 free(arg4);
3039 }
3040 0 SWIG_croak_null();
3041 }
3042 }
3043  
3044  
3045 0 XS(_wrap_gsl_ran_dirichlet_lnpdf) {
3046 {
3047 size_t arg1 ;
3048 0 double *arg2 = (double *) (double *)0 ;
3049 size_t arg3 ;
3050 0 double *arg4 = (double *) (double *)0 ;
3051 0 int argvi = 0;
3052 double result;
3053 0 dXSARGS;
3054
3055 {
3056 0 arg2 = 0; /* apparently arrays are not null'd for multi-args? */
3057 }
3058 {
3059 0 arg4 = 0; /* apparently arrays are not null'd for multi-args? */
3060 }
3061 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3062 0 SWIG_croak("Usage: gsl_ran_dirichlet_lnpdf(SIZE,ARRAY,SIZE,ARRAY);");
3063 }
3064 {
3065 AV* av;
3066 int i;
3067
3068 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3069 0 croak("Argument 1 is not a reference.");
3070 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3071 0 croak("Argument 1 is not an array.");
3072 0 av = (AV*)SvRV(ST(0));
3073 0 arg1 = av_len(av) + 1;
3074
3075 0 arg2 = malloc(arg1 * sizeof(double));
3076 0 ▶ if (arg2 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2 == NULL) 0 0 0
3077 0 croak("%%typemap(in) (int , const double []) - can't malloc");
3078
3079 0 ▶ for (i = 0; i < arg1; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg1; i++) { 0 0 0
3080 0 arg2[i] = (double) SvNV(* av_fetch(av, i, 0));
3081 }
3082 }
3083 {
3084 AV* av;
3085 int i;
3086
3087 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
3088 0 croak("Argument 3 is not a reference.");
3089 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
3090 0 croak("Argument 3 is not an array.");
3091 0 av = (AV*)SvRV(ST(1));
3092 0 arg3 = av_len(av) + 1;
3093
3094 0 arg4 = malloc(arg3 * sizeof(double));
3095 0 ▶ if (arg4 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4 == NULL) 0 0 0
3096 0 croak("%%typemap(in) (int , const double []) - can't malloc");
3097
3098 0 ▶ for (i = 0; i < arg3; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg3; i++) { 0 0 0
3099 0 arg4[i] = (double) SvNV(* av_fetch(av, i, 0));
3100 }
3101 }
3102 0 result = (double)gsl_ran_dirichlet_lnpdf_wrapper(arg1,(double const (*))arg2,arg3,(double const (*))arg4);
3103 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3104 {
3105 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3106 0 free(arg2);
3107 }
3108 {
3109 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3110 0 free(arg4);
3111 }
3112 0 XSRETURN(argvi);
3113 0 fail:
3114 {
3115 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3116 0 free(arg2);
3117 }
3118 {
3119 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3120 0 free(arg4);
3121 }
3122 0 SWIG_croak_null();
3123 }
3124 }
3125  
3126  
3127 0 XS(_wrap_gsl_ran_multinomial) {
3128 {
3129 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3130 size_t arg2 ;
3131 0 double *arg3 = (double *) (double *)0 ;
3132 unsigned int arg4 ;
3133 0 void *argp1 = 0 ;
3134 0 int res1 = 0 ;
3135 unsigned int val4 ;
3136 0 int ecode4 = 0 ;
3137 0 int argvi = 0;
3138 0 array_wrapper *result = 0 ;
3139 0 dXSARGS;
3140
3141 {
3142 0 arg3 = 0; /* apparently arrays are not null'd for multi-args? */
3143 }
3144 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3145 0 SWIG_croak("Usage: gsl_ran_multinomial(r,SIZE,ARRAY,N);");
3146 }
3147 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3148 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3149 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multinomial" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multinomial" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3150 }
3151 0 arg1 = (gsl_rng *)(argp1);
3152 {
3153 AV* av;
3154 int i;
3155
3156 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
3157 0 croak("Argument 2 is not a reference.");
3158 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
3159 0 croak("Argument 2 is not an array.");
3160 0 av = (AV*)SvRV(ST(1));
3161 0 arg2 = av_len(av) + 1;
3162
3163 0 arg3 = malloc(arg2 * sizeof(double));
3164 0 ▶ if (arg3 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg3 == NULL) 0 0 0
3165 0 croak("%%typemap(in) (int , const double []) - can't malloc");
3166
3167 0 ▶ for (i = 0; i < arg2; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg2; i++) { 0 0 0
3168 0 arg3[i] = (double) SvNV(* av_fetch(av, i, 0));
3169 }
3170 }
3171 0 ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val4);
3172 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3173 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_multinomial" "', argument " "4"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_multinomial" "', argument " "4"" of type '" "unsigned int""'"); 0 0 0
3174 }
3175 0 arg4 = (unsigned int)(val4);
3176 0 result = (array_wrapper *)gsl_ran_multinomial_wrapper((gsl_rng const *)arg1,arg2,(double const (*))arg3,arg4);
3177 {
3178 SV** tmparr;
3179 AV* av;
3180 array_wrapper * wrapper;
3181 int i;
3182
3183 double * dptr;
3184 float * fptr;
3185 int * iptr;
3186 unsigned int * uptr;
3187
3188 0 wrapper = result;
3189
3190 0 tmparr = malloc(sizeof(SV*) * wrapper->size);
3191 0 ▶ if (tmparr == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (tmparr == NULL) 0 0 0
3192 0 croak("out typemap for array_wrapper: couldn't malloc tmparr");
3193
3194 0 switch (wrapper->type){
3195 0 case awDouble:
3196 0 dptr = (double *)wrapper->data;
3197 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3198 0 tmparr[i] = newSVnv(dptr[i]);
3199 }
3200 0 break;
3201 0 case awFloat:
3202 0 fptr = (float *)wrapper->data;
3203 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3204 0 tmparr[i] = newSVnv((double)fptr[i]);
3205 }
3206 0 break;
3207 0 case awInt:
3208 0 iptr = (int *)wrapper->data;
3209 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3210 0 tmparr[i] = newSViv(iptr[i]);
3211 }
3212 0 break;
3213 0 case awUnsigned:
3214 0 uptr = (unsigned int*)wrapper->data;
3215 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3216 0 tmparr[i] = newSVuv(uptr[i]);
3217 }
3218 0 break;
3219 0 default:
3220 0 croak("out typemap for array_wrapper : type should be awDouble, awFloat, awInt, or awUnsigned");
3221 }
3222
3223 0 av = av_make(wrapper->size, tmparr);
3224 0 ST(argvi) = sv_2mortal(newRV_noinc((SV*) av));
3225 0 free(tmparr);
3226 0 array_wrapper_free(wrapper);
3227 0 argvi++;
3228 }
3229
3230 {
3231 0 ▶ if (arg3)
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) 0 0 0
3232 0 free(arg3);
3233 }
3234
3235 0 XSRETURN(argvi);
3236 0 fail:
3237
3238 {
3239 0 ▶ if (arg3)
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) 0 0 0
3240 0 free(arg3);
3241 }
3242
3243 0 SWIG_croak_null();
3244 }
3245 }
3246  
3247  
3248 0 XS(_wrap_gsl_ran_multinomial_pdf) {
3249 {
3250 size_t arg1 ;
3251 0 unsigned int *arg2 = (unsigned int *) (unsigned int *)0 ;
3252 size_t arg3 ;
3253 0 double *arg4 = (double *) (double *)0 ;
3254 0 int argvi = 0;
3255 double result;
3256 0 dXSARGS;
3257
3258 {
3259 0 arg2 = NULL;
3260 }
3261 {
3262 0 arg4 = 0; /* apparently arrays are not null'd for multi-args? */
3263 }
3264 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3265 0 SWIG_croak("Usage: gsl_ran_multinomial_pdf(SIZE,ARRAY,SIZE,ARRAY);");
3266 }
3267 {
3268 AV* av;
3269 int i;
3270
3271 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3272 0 croak("Argument 1 is not a reference.");
3273 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3274 0 croak("Argument 1 is not an array.");
3275 0 av = (AV*)SvRV(ST(0));
3276 0 arg1 = av_len(av) + 1;
3277
3278 0 arg2 = malloc(arg1 * sizeof(unsigned int));
3279 0 ▶ if (arg2 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2 == NULL) 0 0 0
3280 0 croak("%%typemap(in) (int , unsigned int []) - can't malloc");
3281
3282 0 ▶ for (i = 0; i < arg1; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg1; i++) { 0 0 0
3283 0 arg2[i] = (unsigned int) SvUV(* av_fetch(av, i, 0));
3284 }
3285 }
3286 {
3287 AV* av;
3288 int i;
3289
3290 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
3291 0 croak("Argument 3 is not a reference.");
3292 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
3293 0 croak("Argument 3 is not an array.");
3294 0 av = (AV*)SvRV(ST(1));
3295 0 arg3 = av_len(av) + 1;
3296
3297 0 arg4 = malloc(arg3 * sizeof(double));
3298 0 ▶ if (arg4 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4 == NULL) 0 0 0
3299 0 croak("%%typemap(in) (int , const double []) - can't malloc");
3300
3301 0 ▶ for (i = 0; i < arg3; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg3; i++) { 0 0 0
3302 0 arg4[i] = (double) SvNV(* av_fetch(av, i, 0));
3303 }
3304 }
3305 0 result = (double)gsl_ran_multinomial_pdf_wrapper(arg1,(unsigned int const (*))arg2,arg3,(double const (*))arg4);
3306 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3307 {
3308 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3309 0 free(arg2);
3310 }
3311 {
3312 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3313 0 free(arg4);
3314 }
3315 0 XSRETURN(argvi);
3316 0 fail:
3317 {
3318 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3319 0 free(arg2);
3320 }
3321 {
3322 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3323 0 free(arg4);
3324 }
3325 0 SWIG_croak_null();
3326 }
3327 }
3328  
3329  
3330 0 XS(_wrap_gsl_ran_multinomial_lnpdf) {
3331 {
3332 size_t arg1 ;
3333 0 unsigned int *arg2 = (unsigned int *) (unsigned int *)0 ;
3334 size_t arg3 ;
3335 0 double *arg4 = (double *) (double *)0 ;
3336 0 int argvi = 0;
3337 double result;
3338 0 dXSARGS;
3339
3340 {
3341 0 arg2 = NULL;
3342 }
3343 {
3344 0 arg4 = 0; /* apparently arrays are not null'd for multi-args? */
3345 }
3346 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3347 0 SWIG_croak("Usage: gsl_ran_multinomial_lnpdf(SIZE,ARRAY,SIZE,ARRAY);");
3348 }
3349 {
3350 AV* av;
3351 int i;
3352
3353 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3354 0 croak("Argument 1 is not a reference.");
3355 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3356 0 croak("Argument 1 is not an array.");
3357 0 av = (AV*)SvRV(ST(0));
3358 0 arg1 = av_len(av) + 1;
3359
3360 0 arg2 = malloc(arg1 * sizeof(unsigned int));
3361 0 ▶ if (arg2 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2 == NULL) 0 0 0
3362 0 croak("%%typemap(in) (int , unsigned int []) - can't malloc");
3363
3364 0 ▶ for (i = 0; i < arg1; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg1; i++) { 0 0 0
3365 0 arg2[i] = (unsigned int) SvUV(* av_fetch(av, i, 0));
3366 }
3367 }
3368 {
3369 AV* av;
3370 int i;
3371
3372 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
3373 0 croak("Argument 3 is not a reference.");
3374 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
3375 0 croak("Argument 3 is not an array.");
3376 0 av = (AV*)SvRV(ST(1));
3377 0 arg3 = av_len(av) + 1;
3378
3379 0 arg4 = malloc(arg3 * sizeof(double));
3380 0 ▶ if (arg4 == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4 == NULL) 0 0 0
3381 0 croak("%%typemap(in) (int , const double []) - can't malloc");
3382
3383 0 ▶ for (i = 0; i < arg3; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < arg3; i++) { 0 0 0
3384 0 arg4[i] = (double) SvNV(* av_fetch(av, i, 0));
3385 }
3386 }
3387 0 result = (double)gsl_ran_multinomial_lnpdf_wrapper(arg1,(unsigned int const (*))arg2,arg3,(double const (*))arg4);
3388 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3389 {
3390 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3391 0 free(arg2);
3392 }
3393 {
3394 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3395 0 free(arg4);
3396 }
3397 0 XSRETURN(argvi);
3398 0 fail:
3399 {
3400 0 ▶ if (arg2)
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) 0 0 0
3401 0 free(arg2);
3402 }
3403 {
3404 0 ▶ if (arg4)
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) 0 0 0
3405 0 free(arg4);
3406 }
3407 0 SWIG_croak_null();
3408 }
3409 }
3410  
3411  
3412 0 XS(_wrap_gsl_ran_dir_nd) {
3413 {
3414 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3415 size_t arg2 ;
3416 0 void *argp1 = 0 ;
3417 0 int res1 = 0 ;
3418 size_t val2 ;
3419 0 int ecode2 = 0 ;
3420 0 int argvi = 0;
3421 0 array_wrapper *result = 0 ;
3422 0 dXSARGS;
3423
3424 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3425 0 SWIG_croak("Usage: gsl_ran_dir_nd(r,n);");
3426 }
3427 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3428 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3429 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_nd" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_dir_nd" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3430 }
3431 0 arg1 = (gsl_rng *)(argp1);
3432 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3433 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3434 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_dir_nd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_dir_nd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3435 }
3436 0 arg2 = (size_t)(val2);
3437 0 result = (array_wrapper *)gsl_ran_dir_nd_wrapper((gsl_rng const *)arg1,arg2);
3438 {
3439 SV** tmparr;
3440 AV* av;
3441 array_wrapper * wrapper;
3442 int i;
3443
3444 double * dptr;
3445 float * fptr;
3446 int * iptr;
3447 unsigned int * uptr;
3448
3449 0 wrapper = result;
3450
3451 0 tmparr = malloc(sizeof(SV*) * wrapper->size);
3452 0 ▶ if (tmparr == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (tmparr == NULL) 0 0 0
3453 0 croak("out typemap for array_wrapper: couldn't malloc tmparr");
3454
3455 0 switch (wrapper->type){
3456 0 case awDouble:
3457 0 dptr = (double *)wrapper->data;
3458 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3459 0 tmparr[i] = newSVnv(dptr[i]);
3460 }
3461 0 break;
3462 0 case awFloat:
3463 0 fptr = (float *)wrapper->data;
3464 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3465 0 tmparr[i] = newSVnv((double)fptr[i]);
3466 }
3467 0 break;
3468 0 case awInt:
3469 0 iptr = (int *)wrapper->data;
3470 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3471 0 tmparr[i] = newSViv(iptr[i]);
3472 }
3473 0 break;
3474 0 case awUnsigned:
3475 0 uptr = (unsigned int*)wrapper->data;
3476 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
3477 0 tmparr[i] = newSVuv(uptr[i]);
3478 }
3479 0 break;
3480 0 default:
3481 0 croak("out typemap for array_wrapper : type should be awDouble, awFloat, awInt, or awUnsigned");
3482 }
3483
3484 0 av = av_make(wrapper->size, tmparr);
3485 0 ST(argvi) = sv_2mortal(newRV_noinc((SV*) av));
3486 0 free(tmparr);
3487 0 array_wrapper_free(wrapper);
3488 0 argvi++;
3489 }
3490
3491
3492 0 XSRETURN(argvi);
3493 0 fail:
3494
3495
3496 0 SWIG_croak_null();
3497 }
3498 }
3499  
3500  
3501 0 XS(_wrap_gsl_ran_bernoulli) {
3502 {
3503 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3504 double arg2 ;
3505 0 void *argp1 = 0 ;
3506 0 int res1 = 0 ;
3507 double val2 ;
3508 0 int ecode2 = 0 ;
3509 0 int argvi = 0;
3510 unsigned int result;
3511 0 dXSARGS;
3512
3513 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3514 0 SWIG_croak("Usage: gsl_ran_bernoulli(r,p);");
3515 }
3516 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3517 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3518 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_bernoulli" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_bernoulli" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3519 }
3520 0 arg1 = (gsl_rng *)(argp1);
3521 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3522 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3523 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bernoulli" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bernoulli" "', argument " "2"" of type '" "double""'"); 0 0 0
3524 }
3525 0 arg2 = (double)(val2);
3526 0 result = (unsigned int)gsl_ran_bernoulli((gsl_rng const *)arg1,arg2);
3527 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
3528
3529
3530 0 XSRETURN(argvi);
3531 0 fail:
3532
3533
3534 0 SWIG_croak_null();
3535 }
3536 }
3537  
3538  
3539 0 XS(_wrap_gsl_ran_bernoulli_pdf) {
3540 {
3541 unsigned int arg1 ;
3542 double arg2 ;
3543 unsigned int val1 ;
3544 0 int ecode1 = 0 ;
3545 double val2 ;
3546 0 int ecode2 = 0 ;
3547 0 int argvi = 0;
3548 double result;
3549 0 dXSARGS;
3550
3551 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3552 0 SWIG_croak("Usage: gsl_ran_bernoulli_pdf(k,p);");
3553 }
3554 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3555 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3556 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_bernoulli_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_bernoulli_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
3557 }
3558 0 arg1 = (unsigned int)(val1);
3559 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3560 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3561 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bernoulli_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bernoulli_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
3562 }
3563 0 arg2 = (double)(val2);
3564 0 result = (double)gsl_ran_bernoulli_pdf(arg1,arg2);
3565 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3566
3567
3568 0 XSRETURN(argvi);
3569 0 fail:
3570
3571
3572 0 SWIG_croak_null();
3573 }
3574 }
3575  
3576  
3577 0 XS(_wrap_gsl_ran_beta) {
3578 {
3579 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3580 double arg2 ;
3581 double arg3 ;
3582 0 void *argp1 = 0 ;
3583 0 int res1 = 0 ;
3584 double val2 ;
3585 0 int ecode2 = 0 ;
3586 double val3 ;
3587 0 int ecode3 = 0 ;
3588 0 int argvi = 0;
3589 double result;
3590 0 dXSARGS;
3591
3592 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3593 0 SWIG_croak("Usage: gsl_ran_beta(r,a,b);");
3594 }
3595 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3596 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3597 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_beta" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_beta" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3598 }
3599 0 arg1 = (gsl_rng *)(argp1);
3600 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3601 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3602 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_beta" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_beta" "', argument " "2"" of type '" "double""'"); 0 0 0
3603 }
3604 0 arg2 = (double)(val2);
3605 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3606 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3607 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_beta" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_beta" "', argument " "3"" of type '" "double""'"); 0 0 0
3608 }
3609 0 arg3 = (double)(val3);
3610 0 result = (double)gsl_ran_beta((gsl_rng const *)arg1,arg2,arg3);
3611 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3612
3613
3614
3615 0 XSRETURN(argvi);
3616 0 fail:
3617
3618
3619
3620 0 SWIG_croak_null();
3621 }
3622 }
3623  
3624  
3625 0 XS(_wrap_gsl_ran_beta_pdf) {
3626 {
3627 double arg1 ;
3628 double arg2 ;
3629 double arg3 ;
3630 double val1 ;
3631 0 int ecode1 = 0 ;
3632 double val2 ;
3633 0 int ecode2 = 0 ;
3634 double val3 ;
3635 0 int ecode3 = 0 ;
3636 0 int argvi = 0;
3637 double result;
3638 0 dXSARGS;
3639
3640 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3641 0 SWIG_croak("Usage: gsl_ran_beta_pdf(x,a,b);");
3642 }
3643 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3644 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3645 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_beta_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_beta_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
3646 }
3647 0 arg1 = (double)(val1);
3648 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3649 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3650 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_beta_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_beta_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
3651 }
3652 0 arg2 = (double)(val2);
3653 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3654 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3655 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_beta_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_beta_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
3656 }
3657 0 arg3 = (double)(val3);
3658 0 result = (double)gsl_ran_beta_pdf(arg1,arg2,arg3);
3659 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3660
3661
3662
3663 0 XSRETURN(argvi);
3664 0 fail:
3665
3666
3667
3668 0 SWIG_croak_null();
3669 }
3670 }
3671  
3672  
3673 0 XS(_wrap_gsl_ran_binomial) {
3674 {
3675 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3676 double arg2 ;
3677 unsigned int arg3 ;
3678 0 void *argp1 = 0 ;
3679 0 int res1 = 0 ;
3680 double val2 ;
3681 0 int ecode2 = 0 ;
3682 unsigned int val3 ;
3683 0 int ecode3 = 0 ;
3684 0 int argvi = 0;
3685 unsigned int result;
3686 0 dXSARGS;
3687
3688 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3689 0 SWIG_croak("Usage: gsl_ran_binomial(r,p,n);");
3690 }
3691 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3692 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3693 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_binomial" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_binomial" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3694 }
3695 0 arg1 = (gsl_rng *)(argp1);
3696 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3697 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3698 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial" "', argument " "2"" of type '" "double""'"); 0 0 0
3699 }
3700 0 arg2 = (double)(val2);
3701 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3702 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3703 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
3704 }
3705 0 arg3 = (unsigned int)(val3);
3706 0 result = (unsigned int)gsl_ran_binomial((gsl_rng const *)arg1,arg2,arg3);
3707 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
3708
3709
3710
3711 0 XSRETURN(argvi);
3712 0 fail:
3713
3714
3715
3716 0 SWIG_croak_null();
3717 }
3718 }
3719  
3720  
3721 0 XS(_wrap_gsl_ran_binomial_knuth) {
3722 {
3723 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3724 double arg2 ;
3725 unsigned int arg3 ;
3726 0 void *argp1 = 0 ;
3727 0 int res1 = 0 ;
3728 double val2 ;
3729 0 int ecode2 = 0 ;
3730 unsigned int val3 ;
3731 0 int ecode3 = 0 ;
3732 0 int argvi = 0;
3733 unsigned int result;
3734 0 dXSARGS;
3735
3736 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3737 0 SWIG_croak("Usage: gsl_ran_binomial_knuth(r,p,n);");
3738 }
3739 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3740 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3741 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_binomial_knuth" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_binomial_knuth" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3742 }
3743 0 arg1 = (gsl_rng *)(argp1);
3744 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3745 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3746 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial_knuth" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial_knuth" "', argument " "2"" of type '" "double""'"); 0 0 0
3747 }
3748 0 arg2 = (double)(val2);
3749 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3750 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3751 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial_knuth" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial_knuth" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
3752 }
3753 0 arg3 = (unsigned int)(val3);
3754 0 result = (unsigned int)gsl_ran_binomial_knuth((gsl_rng const *)arg1,arg2,arg3);
3755 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
3756
3757
3758
3759 0 XSRETURN(argvi);
3760 0 fail:
3761
3762
3763
3764 0 SWIG_croak_null();
3765 }
3766 }
3767  
3768  
3769 0 XS(_wrap_gsl_ran_binomial_tpe) {
3770 {
3771 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3772 double arg2 ;
3773 unsigned int arg3 ;
3774 0 void *argp1 = 0 ;
3775 0 int res1 = 0 ;
3776 double val2 ;
3777 0 int ecode2 = 0 ;
3778 unsigned int val3 ;
3779 0 int ecode3 = 0 ;
3780 0 int argvi = 0;
3781 unsigned int result;
3782 0 dXSARGS;
3783
3784 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3785 0 SWIG_croak("Usage: gsl_ran_binomial_tpe(r,p,n);");
3786 }
3787 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3788 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3789 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_binomial_tpe" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_binomial_tpe" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3790 }
3791 0 arg1 = (gsl_rng *)(argp1);
3792 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3793 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3794 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial_tpe" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial_tpe" "', argument " "2"" of type '" "double""'"); 0 0 0
3795 }
3796 0 arg2 = (double)(val2);
3797 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3798 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3799 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial_tpe" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial_tpe" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
3800 }
3801 0 arg3 = (unsigned int)(val3);
3802 0 result = (unsigned int)gsl_ran_binomial_tpe((gsl_rng const *)arg1,arg2,arg3);
3803 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
3804
3805
3806
3807 0 XSRETURN(argvi);
3808 0 fail:
3809
3810
3811
3812 0 SWIG_croak_null();
3813 }
3814 }
3815  
3816  
3817 0 XS(_wrap_gsl_ran_binomial_pdf) {
3818 {
3819 unsigned int arg1 ;
3820 double arg2 ;
3821 unsigned int arg3 ;
3822 unsigned int val1 ;
3823 0 int ecode1 = 0 ;
3824 double val2 ;
3825 0 int ecode2 = 0 ;
3826 unsigned int val3 ;
3827 0 int ecode3 = 0 ;
3828 0 int argvi = 0;
3829 double result;
3830 0 dXSARGS;
3831
3832 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3833 0 SWIG_croak("Usage: gsl_ran_binomial_pdf(k,p,n);");
3834 }
3835 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3836 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3837 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_binomial_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_binomial_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
3838 }
3839 0 arg1 = (unsigned int)(val1);
3840 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3841 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3842 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_binomial_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
3843 }
3844 0 arg2 = (double)(val2);
3845 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3846 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3847 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial_pdf" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_binomial_pdf" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
3848 }
3849 0 arg3 = (unsigned int)(val3);
3850 0 result = (double)gsl_ran_binomial_pdf(arg1,arg2,arg3);
3851 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3852
3853
3854
3855 0 XSRETURN(argvi);
3856 0 fail:
3857
3858
3859
3860 0 SWIG_croak_null();
3861 }
3862 }
3863  
3864  
3865 0 XS(_wrap_gsl_ran_exponential) {
3866 {
3867 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3868 double arg2 ;
3869 0 void *argp1 = 0 ;
3870 0 int res1 = 0 ;
3871 double val2 ;
3872 0 int ecode2 = 0 ;
3873 0 int argvi = 0;
3874 double result;
3875 0 dXSARGS;
3876
3877 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3878 0 SWIG_croak("Usage: gsl_ran_exponential(r,mu);");
3879 }
3880 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3881 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3882 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_exponential" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_exponential" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3883 }
3884 0 arg1 = (gsl_rng *)(argp1);
3885 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3886 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3887 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exponential" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exponential" "', argument " "2"" of type '" "double""'"); 0 0 0
3888 }
3889 0 arg2 = (double)(val2);
3890 0 result = (double)gsl_ran_exponential((gsl_rng const *)arg1,arg2);
3891 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3892
3893
3894 0 XSRETURN(argvi);
3895 0 fail:
3896
3897
3898 0 SWIG_croak_null();
3899 }
3900 }
3901  
3902  
3903 0 XS(_wrap_gsl_ran_exponential_pdf) {
3904 {
3905 double arg1 ;
3906 double arg2 ;
3907 double val1 ;
3908 0 int ecode1 = 0 ;
3909 double val2 ;
3910 0 int ecode2 = 0 ;
3911 0 int argvi = 0;
3912 double result;
3913 0 dXSARGS;
3914
3915 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3916 0 SWIG_croak("Usage: gsl_ran_exponential_pdf(x,mu);");
3917 }
3918 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3919 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3920 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_exponential_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_exponential_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
3921 }
3922 0 arg1 = (double)(val1);
3923 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3924 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3925 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exponential_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exponential_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
3926 }
3927 0 arg2 = (double)(val2);
3928 0 result = (double)gsl_ran_exponential_pdf(arg1,arg2);
3929 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3930
3931
3932 0 XSRETURN(argvi);
3933 0 fail:
3934
3935
3936 0 SWIG_croak_null();
3937 }
3938 }
3939  
3940  
3941 0 XS(_wrap_gsl_ran_exppow) {
3942 {
3943 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
3944 double arg2 ;
3945 double arg3 ;
3946 0 void *argp1 = 0 ;
3947 0 int res1 = 0 ;
3948 double val2 ;
3949 0 int ecode2 = 0 ;
3950 double val3 ;
3951 0 int ecode3 = 0 ;
3952 0 int argvi = 0;
3953 double result;
3954 0 dXSARGS;
3955
3956 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
3957 0 SWIG_croak("Usage: gsl_ran_exppow(r,a,b);");
3958 }
3959 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
3960 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3961 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_exppow" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_exppow" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
3962 }
3963 0 arg1 = (gsl_rng *)(argp1);
3964 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3965 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3966 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exppow" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exppow" "', argument " "2"" of type '" "double""'"); 0 0 0
3967 }
3968 0 arg2 = (double)(val2);
3969 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3970 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3971 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_exppow" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_exppow" "', argument " "3"" of type '" "double""'"); 0 0 0
3972 }
3973 0 arg3 = (double)(val3);
3974 0 result = (double)gsl_ran_exppow((gsl_rng const *)arg1,arg2,arg3);
3975 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3976
3977
3978
3979 0 XSRETURN(argvi);
3980 0 fail:
3981
3982
3983
3984 0 SWIG_croak_null();
3985 }
3986 }
3987  
3988  
3989 0 XS(_wrap_gsl_ran_exppow_pdf) {
3990 {
3991 double arg1 ;
3992 double arg2 ;
3993 double arg3 ;
3994 double val1 ;
3995 0 int ecode1 = 0 ;
3996 double val2 ;
3997 0 int ecode2 = 0 ;
3998 double val3 ;
3999 0 int ecode3 = 0 ;
4000 0 int argvi = 0;
4001 double result;
4002 0 dXSARGS;
4003
4004 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4005 0 SWIG_croak("Usage: gsl_ran_exppow_pdf(x,a,b);");
4006 }
4007 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4008 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4009 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_exppow_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_exppow_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4010 }
4011 0 arg1 = (double)(val1);
4012 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4013 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4014 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exppow_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_exppow_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4015 }
4016 0 arg2 = (double)(val2);
4017 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4018 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4019 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_exppow_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_exppow_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
4020 }
4021 0 arg3 = (double)(val3);
4022 0 result = (double)gsl_ran_exppow_pdf(arg1,arg2,arg3);
4023 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4024
4025
4026
4027 0 XSRETURN(argvi);
4028 0 fail:
4029
4030
4031
4032 0 SWIG_croak_null();
4033 }
4034 }
4035  
4036  
4037 0 XS(_wrap_gsl_ran_cauchy) {
4038 {
4039 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4040 double arg2 ;
4041 0 void *argp1 = 0 ;
4042 0 int res1 = 0 ;
4043 double val2 ;
4044 0 int ecode2 = 0 ;
4045 0 int argvi = 0;
4046 double result;
4047 0 dXSARGS;
4048
4049 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4050 0 SWIG_croak("Usage: gsl_ran_cauchy(r,a);");
4051 }
4052 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4053 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4054 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_cauchy" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_cauchy" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4055 }
4056 0 arg1 = (gsl_rng *)(argp1);
4057 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4058 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4059 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_cauchy" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_cauchy" "', argument " "2"" of type '" "double""'"); 0 0 0
4060 }
4061 0 arg2 = (double)(val2);
4062 0 result = (double)gsl_ran_cauchy((gsl_rng const *)arg1,arg2);
4063 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4064
4065
4066 0 XSRETURN(argvi);
4067 0 fail:
4068
4069
4070 0 SWIG_croak_null();
4071 }
4072 }
4073  
4074  
4075 0 XS(_wrap_gsl_ran_cauchy_pdf) {
4076 {
4077 double arg1 ;
4078 double arg2 ;
4079 double val1 ;
4080 0 int ecode1 = 0 ;
4081 double val2 ;
4082 0 int ecode2 = 0 ;
4083 0 int argvi = 0;
4084 double result;
4085 0 dXSARGS;
4086
4087 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4088 0 SWIG_croak("Usage: gsl_ran_cauchy_pdf(x,a);");
4089 }
4090 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4091 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4092 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_cauchy_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_cauchy_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4093 }
4094 0 arg1 = (double)(val1);
4095 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4096 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4097 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_cauchy_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_cauchy_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4098 }
4099 0 arg2 = (double)(val2);
4100 0 result = (double)gsl_ran_cauchy_pdf(arg1,arg2);
4101 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4102
4103
4104 0 XSRETURN(argvi);
4105 0 fail:
4106
4107
4108 0 SWIG_croak_null();
4109 }
4110 }
4111  
4112  
4113 0 XS(_wrap_gsl_ran_chisq) {
4114 {
4115 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4116 double arg2 ;
4117 0 void *argp1 = 0 ;
4118 0 int res1 = 0 ;
4119 double val2 ;
4120 0 int ecode2 = 0 ;
4121 0 int argvi = 0;
4122 double result;
4123 0 dXSARGS;
4124
4125 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4126 0 SWIG_croak("Usage: gsl_ran_chisq(r,nu);");
4127 }
4128 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4129 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4130 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_chisq" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_chisq" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4131 }
4132 0 arg1 = (gsl_rng *)(argp1);
4133 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4134 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4135 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_chisq" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_chisq" "', argument " "2"" of type '" "double""'"); 0 0 0
4136 }
4137 0 arg2 = (double)(val2);
4138 0 result = (double)gsl_ran_chisq((gsl_rng const *)arg1,arg2);
4139 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4140
4141
4142 0 XSRETURN(argvi);
4143 0 fail:
4144
4145
4146 0 SWIG_croak_null();
4147 }
4148 }
4149  
4150  
4151 0 XS(_wrap_gsl_ran_chisq_pdf) {
4152 {
4153 double arg1 ;
4154 double arg2 ;
4155 double val1 ;
4156 0 int ecode1 = 0 ;
4157 double val2 ;
4158 0 int ecode2 = 0 ;
4159 0 int argvi = 0;
4160 double result;
4161 0 dXSARGS;
4162
4163 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4164 0 SWIG_croak("Usage: gsl_ran_chisq_pdf(x,nu);");
4165 }
4166 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4167 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4168 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_chisq_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_chisq_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4169 }
4170 0 arg1 = (double)(val1);
4171 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4172 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4173 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_chisq_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_chisq_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4174 }
4175 0 arg2 = (double)(val2);
4176 0 result = (double)gsl_ran_chisq_pdf(arg1,arg2);
4177 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4178
4179
4180 0 XSRETURN(argvi);
4181 0 fail:
4182
4183
4184 0 SWIG_croak_null();
4185 }
4186 }
4187  
4188  
4189 0 XS(_wrap_gsl_ran_erlang) {
4190 {
4191 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4192 double arg2 ;
4193 double arg3 ;
4194 0 void *argp1 = 0 ;
4195 0 int res1 = 0 ;
4196 double val2 ;
4197 0 int ecode2 = 0 ;
4198 double val3 ;
4199 0 int ecode3 = 0 ;
4200 0 int argvi = 0;
4201 double result;
4202 0 dXSARGS;
4203
4204 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4205 0 SWIG_croak("Usage: gsl_ran_erlang(r,a,n);");
4206 }
4207 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4208 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4209 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_erlang" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_erlang" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4210 }
4211 0 arg1 = (gsl_rng *)(argp1);
4212 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4213 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4214 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_erlang" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_erlang" "', argument " "2"" of type '" "double""'"); 0 0 0
4215 }
4216 0 arg2 = (double)(val2);
4217 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4218 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4219 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_erlang" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_erlang" "', argument " "3"" of type '" "double""'"); 0 0 0
4220 }
4221 0 arg3 = (double)(val3);
4222 0 result = (double)gsl_ran_erlang((gsl_rng const *)arg1,arg2,arg3);
4223 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4224
4225
4226
4227 0 XSRETURN(argvi);
4228 0 fail:
4229
4230
4231
4232 0 SWIG_croak_null();
4233 }
4234 }
4235  
4236  
4237 0 XS(_wrap_gsl_ran_erlang_pdf) {
4238 {
4239 double arg1 ;
4240 double arg2 ;
4241 double arg3 ;
4242 double val1 ;
4243 0 int ecode1 = 0 ;
4244 double val2 ;
4245 0 int ecode2 = 0 ;
4246 double val3 ;
4247 0 int ecode3 = 0 ;
4248 0 int argvi = 0;
4249 double result;
4250 0 dXSARGS;
4251
4252 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4253 0 SWIG_croak("Usage: gsl_ran_erlang_pdf(x,a,n);");
4254 }
4255 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4256 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4257 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_erlang_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_erlang_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4258 }
4259 0 arg1 = (double)(val1);
4260 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4261 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4262 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_erlang_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_erlang_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4263 }
4264 0 arg2 = (double)(val2);
4265 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4266 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4267 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_erlang_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_erlang_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
4268 }
4269 0 arg3 = (double)(val3);
4270 0 result = (double)gsl_ran_erlang_pdf(arg1,arg2,arg3);
4271 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4272
4273
4274
4275 0 XSRETURN(argvi);
4276 0 fail:
4277
4278
4279
4280 0 SWIG_croak_null();
4281 }
4282 }
4283  
4284  
4285 0 XS(_wrap_gsl_ran_fdist) {
4286 {
4287 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4288 double arg2 ;
4289 double arg3 ;
4290 0 void *argp1 = 0 ;
4291 0 int res1 = 0 ;
4292 double val2 ;
4293 0 int ecode2 = 0 ;
4294 double val3 ;
4295 0 int ecode3 = 0 ;
4296 0 int argvi = 0;
4297 double result;
4298 0 dXSARGS;
4299
4300 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4301 0 SWIG_croak("Usage: gsl_ran_fdist(r,nu1,nu2);");
4302 }
4303 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4304 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4305 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_fdist" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_fdist" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4306 }
4307 0 arg1 = (gsl_rng *)(argp1);
4308 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4309 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4310 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_fdist" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_fdist" "', argument " "2"" of type '" "double""'"); 0 0 0
4311 }
4312 0 arg2 = (double)(val2);
4313 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4314 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4315 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_fdist" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_fdist" "', argument " "3"" of type '" "double""'"); 0 0 0
4316 }
4317 0 arg3 = (double)(val3);
4318 0 result = (double)gsl_ran_fdist((gsl_rng const *)arg1,arg2,arg3);
4319 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4320
4321
4322
4323 0 XSRETURN(argvi);
4324 0 fail:
4325
4326
4327
4328 0 SWIG_croak_null();
4329 }
4330 }
4331  
4332  
4333 0 XS(_wrap_gsl_ran_fdist_pdf) {
4334 {
4335 double arg1 ;
4336 double arg2 ;
4337 double arg3 ;
4338 double val1 ;
4339 0 int ecode1 = 0 ;
4340 double val2 ;
4341 0 int ecode2 = 0 ;
4342 double val3 ;
4343 0 int ecode3 = 0 ;
4344 0 int argvi = 0;
4345 double result;
4346 0 dXSARGS;
4347
4348 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4349 0 SWIG_croak("Usage: gsl_ran_fdist_pdf(x,nu1,nu2);");
4350 }
4351 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4352 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4353 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_fdist_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_fdist_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4354 }
4355 0 arg1 = (double)(val1);
4356 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4357 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4358 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_fdist_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_fdist_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4359 }
4360 0 arg2 = (double)(val2);
4361 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4362 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4363 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_fdist_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_fdist_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
4364 }
4365 0 arg3 = (double)(val3);
4366 0 result = (double)gsl_ran_fdist_pdf(arg1,arg2,arg3);
4367 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4368
4369
4370
4371 0 XSRETURN(argvi);
4372 0 fail:
4373
4374
4375
4376 0 SWIG_croak_null();
4377 }
4378 }
4379  
4380  
4381 0 XS(_wrap_gsl_ran_flat) {
4382 {
4383 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4384 double arg2 ;
4385 double arg3 ;
4386 0 void *argp1 = 0 ;
4387 0 int res1 = 0 ;
4388 double val2 ;
4389 0 int ecode2 = 0 ;
4390 double val3 ;
4391 0 int ecode3 = 0 ;
4392 0 int argvi = 0;
4393 double result;
4394 0 dXSARGS;
4395
4396 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4397 0 SWIG_croak("Usage: gsl_ran_flat(r,a,b);");
4398 }
4399 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4400 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4401 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_flat" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_flat" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4402 }
4403 0 arg1 = (gsl_rng *)(argp1);
4404 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4405 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4406 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_flat" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_flat" "', argument " "2"" of type '" "double""'"); 0 0 0
4407 }
4408 0 arg2 = (double)(val2);
4409 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4410 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4411 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_flat" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_flat" "', argument " "3"" of type '" "double""'"); 0 0 0
4412 }
4413 0 arg3 = (double)(val3);
4414 0 result = (double)gsl_ran_flat((gsl_rng const *)arg1,arg2,arg3);
4415 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4416
4417
4418
4419 0 XSRETURN(argvi);
4420 0 fail:
4421
4422
4423
4424 0 SWIG_croak_null();
4425 }
4426 }
4427  
4428  
4429 0 XS(_wrap_gsl_ran_flat_pdf) {
4430 {
4431 double arg1 ;
4432 double arg2 ;
4433 double arg3 ;
4434 double val1 ;
4435 0 int ecode1 = 0 ;
4436 double val2 ;
4437 0 int ecode2 = 0 ;
4438 double val3 ;
4439 0 int ecode3 = 0 ;
4440 0 int argvi = 0;
4441 double result;
4442 0 dXSARGS;
4443
4444 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4445 0 SWIG_croak("Usage: gsl_ran_flat_pdf(x,a,b);");
4446 }
4447 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4448 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4449 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_flat_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_flat_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4450 }
4451 0 arg1 = (double)(val1);
4452 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4453 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4454 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_flat_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_flat_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4455 }
4456 0 arg2 = (double)(val2);
4457 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4458 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4459 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_flat_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_flat_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
4460 }
4461 0 arg3 = (double)(val3);
4462 0 result = (double)gsl_ran_flat_pdf(arg1,arg2,arg3);
4463 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4464
4465
4466
4467 0 XSRETURN(argvi);
4468 0 fail:
4469
4470
4471
4472 0 SWIG_croak_null();
4473 }
4474 }
4475  
4476  
4477 0 XS(_wrap_gsl_ran_gamma) {
4478 {
4479 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4480 double arg2 ;
4481 double arg3 ;
4482 0 void *argp1 = 0 ;
4483 0 int res1 = 0 ;
4484 double val2 ;
4485 0 int ecode2 = 0 ;
4486 double val3 ;
4487 0 int ecode3 = 0 ;
4488 0 int argvi = 0;
4489 double result;
4490 0 dXSARGS;
4491
4492 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4493 0 SWIG_croak("Usage: gsl_ran_gamma(r,a,b);");
4494 }
4495 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4496 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4497 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4498 }
4499 0 arg1 = (gsl_rng *)(argp1);
4500 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4501 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4502 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma" "', argument " "2"" of type '" "double""'"); 0 0 0
4503 }
4504 0 arg2 = (double)(val2);
4505 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4506 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4507 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma" "', argument " "3"" of type '" "double""'"); 0 0 0
4508 }
4509 0 arg3 = (double)(val3);
4510 0 result = (double)gsl_ran_gamma((gsl_rng const *)arg1,arg2,arg3);
4511 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4512
4513
4514
4515 0 XSRETURN(argvi);
4516 0 fail:
4517
4518
4519
4520 0 SWIG_croak_null();
4521 }
4522 }
4523  
4524  
4525 0 XS(_wrap_gsl_ran_gamma_int) {
4526 {
4527 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4528 unsigned int arg2 ;
4529 0 void *argp1 = 0 ;
4530 0 int res1 = 0 ;
4531 unsigned int val2 ;
4532 0 int ecode2 = 0 ;
4533 0 int argvi = 0;
4534 double result;
4535 0 dXSARGS;
4536
4537 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4538 0 SWIG_croak("Usage: gsl_ran_gamma_int(r,a);");
4539 }
4540 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4541 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4542 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma_int" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma_int" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4543 }
4544 0 arg1 = (gsl_rng *)(argp1);
4545 0 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4546 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4547 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_int" "', argument " "2"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_int" "', argument " "2"" of type '" "unsigned int""'"); 0 0 0
4548 }
4549 0 arg2 = (unsigned int)(val2);
4550 0 result = (double)gsl_ran_gamma_int((gsl_rng const *)arg1,arg2);
4551 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4552
4553
4554 0 XSRETURN(argvi);
4555 0 fail:
4556
4557
4558 0 SWIG_croak_null();
4559 }
4560 }
4561  
4562  
4563 0 XS(_wrap_gsl_ran_gamma_pdf) {
4564 {
4565 double arg1 ;
4566 double arg2 ;
4567 double arg3 ;
4568 double val1 ;
4569 0 int ecode1 = 0 ;
4570 double val2 ;
4571 0 int ecode2 = 0 ;
4572 double val3 ;
4573 0 int ecode3 = 0 ;
4574 0 int argvi = 0;
4575 double result;
4576 0 dXSARGS;
4577
4578 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4579 0 SWIG_croak("Usage: gsl_ran_gamma_pdf(x,a,b);");
4580 }
4581 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4582 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4583 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gamma_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gamma_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4584 }
4585 0 arg1 = (double)(val1);
4586 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4587 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4588 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4589 }
4590 0 arg2 = (double)(val2);
4591 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4592 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4593 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
4594 }
4595 0 arg3 = (double)(val3);
4596 0 result = (double)gsl_ran_gamma_pdf(arg1,arg2,arg3);
4597 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4598
4599
4600
4601 0 XSRETURN(argvi);
4602 0 fail:
4603
4604
4605
4606 0 SWIG_croak_null();
4607 }
4608 }
4609  
4610  
4611 0 XS(_wrap_gsl_ran_gamma_mt) {
4612 {
4613 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4614 double arg2 ;
4615 double arg3 ;
4616 0 void *argp1 = 0 ;
4617 0 int res1 = 0 ;
4618 double val2 ;
4619 0 int ecode2 = 0 ;
4620 double val3 ;
4621 0 int ecode3 = 0 ;
4622 0 int argvi = 0;
4623 double result;
4624 0 dXSARGS;
4625
4626 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4627 0 SWIG_croak("Usage: gsl_ran_gamma_mt(r,a,b);");
4628 }
4629 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4630 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4631 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma_mt" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma_mt" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4632 }
4633 0 arg1 = (gsl_rng *)(argp1);
4634 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4635 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4636 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_mt" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_mt" "', argument " "2"" of type '" "double""'"); 0 0 0
4637 }
4638 0 arg2 = (double)(val2);
4639 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4640 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4641 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma_mt" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma_mt" "', argument " "3"" of type '" "double""'"); 0 0 0
4642 }
4643 0 arg3 = (double)(val3);
4644 0 result = (double)gsl_ran_gamma_mt((gsl_rng const *)arg1,arg2,arg3);
4645 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4646
4647
4648
4649 0 XSRETURN(argvi);
4650 0 fail:
4651
4652
4653
4654 0 SWIG_croak_null();
4655 }
4656 }
4657  
4658  
4659 0 XS(_wrap_gsl_ran_gamma_knuth) {
4660 {
4661 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4662 double arg2 ;
4663 double arg3 ;
4664 0 void *argp1 = 0 ;
4665 0 int res1 = 0 ;
4666 double val2 ;
4667 0 int ecode2 = 0 ;
4668 double val3 ;
4669 0 int ecode3 = 0 ;
4670 0 int argvi = 0;
4671 double result;
4672 0 dXSARGS;
4673
4674 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4675 0 SWIG_croak("Usage: gsl_ran_gamma_knuth(r,a,b);");
4676 }
4677 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4678 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4679 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma_knuth" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gamma_knuth" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4680 }
4681 0 arg1 = (gsl_rng *)(argp1);
4682 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4683 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4684 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_knuth" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gamma_knuth" "', argument " "2"" of type '" "double""'"); 0 0 0
4685 }
4686 0 arg2 = (double)(val2);
4687 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4688 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4689 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma_knuth" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gamma_knuth" "', argument " "3"" of type '" "double""'"); 0 0 0
4690 }
4691 0 arg3 = (double)(val3);
4692 0 result = (double)gsl_ran_gamma_knuth((gsl_rng const *)arg1,arg2,arg3);
4693 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4694
4695
4696
4697 0 XSRETURN(argvi);
4698 0 fail:
4699
4700
4701
4702 0 SWIG_croak_null();
4703 }
4704 }
4705  
4706  
4707 0 XS(_wrap_gsl_ran_gaussian) {
4708 {
4709 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4710 double arg2 ;
4711 0 void *argp1 = 0 ;
4712 0 int res1 = 0 ;
4713 double val2 ;
4714 0 int ecode2 = 0 ;
4715 0 int argvi = 0;
4716 double result;
4717 0 dXSARGS;
4718
4719 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4720 0 SWIG_croak("Usage: gsl_ran_gaussian(r,sigma);");
4721 }
4722 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4723 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4724 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4725 }
4726 0 arg1 = (gsl_rng *)(argp1);
4727 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4728 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4729 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian" "', argument " "2"" of type '" "double""'"); 0 0 0
4730 }
4731 0 arg2 = (double)(val2);
4732 0 result = (double)gsl_ran_gaussian((gsl_rng const *)arg1,arg2);
4733 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4734
4735
4736 0 XSRETURN(argvi);
4737 0 fail:
4738
4739
4740 0 SWIG_croak_null();
4741 }
4742 }
4743  
4744  
4745 0 XS(_wrap_gsl_ran_gaussian_ratio_method) {
4746 {
4747 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4748 double arg2 ;
4749 0 void *argp1 = 0 ;
4750 0 int res1 = 0 ;
4751 double val2 ;
4752 0 int ecode2 = 0 ;
4753 0 int argvi = 0;
4754 double result;
4755 0 dXSARGS;
4756
4757 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4758 0 SWIG_croak("Usage: gsl_ran_gaussian_ratio_method(r,sigma);");
4759 }
4760 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4761 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4762 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian_ratio_method" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian_ratio_method" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4763 }
4764 0 arg1 = (gsl_rng *)(argp1);
4765 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4766 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4767 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_ratio_method" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_ratio_method" "', argument " "2"" of type '" "double""'"); 0 0 0
4768 }
4769 0 arg2 = (double)(val2);
4770 0 result = (double)gsl_ran_gaussian_ratio_method((gsl_rng const *)arg1,arg2);
4771 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4772
4773
4774 0 XSRETURN(argvi);
4775 0 fail:
4776
4777
4778 0 SWIG_croak_null();
4779 }
4780 }
4781  
4782  
4783 0 XS(_wrap_gsl_ran_gaussian_ziggurat) {
4784 {
4785 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4786 double arg2 ;
4787 0 void *argp1 = 0 ;
4788 0 int res1 = 0 ;
4789 double val2 ;
4790 0 int ecode2 = 0 ;
4791 0 int argvi = 0;
4792 double result;
4793 0 dXSARGS;
4794
4795 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4796 0 SWIG_croak("Usage: gsl_ran_gaussian_ziggurat(r,sigma);");
4797 }
4798 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4799 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4800 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian_ziggurat" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian_ziggurat" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4801 }
4802 0 arg1 = (gsl_rng *)(argp1);
4803 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4804 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4805 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_ziggurat" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_ziggurat" "', argument " "2"" of type '" "double""'"); 0 0 0
4806 }
4807 0 arg2 = (double)(val2);
4808 0 result = (double)gsl_ran_gaussian_ziggurat((gsl_rng const *)arg1,arg2);
4809 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4810
4811
4812 0 XSRETURN(argvi);
4813 0 fail:
4814
4815
4816 0 SWIG_croak_null();
4817 }
4818 }
4819  
4820  
4821 0 XS(_wrap_gsl_ran_gaussian_pdf) {
4822 {
4823 double arg1 ;
4824 double arg2 ;
4825 double val1 ;
4826 0 int ecode1 = 0 ;
4827 double val2 ;
4828 0 int ecode2 = 0 ;
4829 0 int argvi = 0;
4830 double result;
4831 0 dXSARGS;
4832
4833 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4834 0 SWIG_croak("Usage: gsl_ran_gaussian_pdf(x,sigma);");
4835 }
4836 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4837 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4838 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gaussian_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gaussian_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4839 }
4840 0 arg1 = (double)(val1);
4841 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4842 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4843 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
4844 }
4845 0 arg2 = (double)(val2);
4846 0 result = (double)gsl_ran_gaussian_pdf(arg1,arg2);
4847 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4848
4849
4850 0 XSRETURN(argvi);
4851 0 fail:
4852
4853
4854 0 SWIG_croak_null();
4855 }
4856 }
4857  
4858  
4859 0 XS(_wrap_gsl_ran_ugaussian) {
4860 {
4861 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4862 0 void *argp1 = 0 ;
4863 0 int res1 = 0 ;
4864 0 int argvi = 0;
4865 double result;
4866 0 dXSARGS;
4867
4868 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4869 0 SWIG_croak("Usage: gsl_ran_ugaussian(r);");
4870 }
4871 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4872 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4873 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_ugaussian" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_ugaussian" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4874 }
4875 0 arg1 = (gsl_rng *)(argp1);
4876 0 result = (double)gsl_ran_ugaussian((gsl_rng const *)arg1);
4877 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4878
4879 0 XSRETURN(argvi);
4880 0 fail:
4881
4882 0 SWIG_croak_null();
4883 }
4884 }
4885  
4886  
4887 0 XS(_wrap_gsl_ran_ugaussian_ratio_method) {
4888 {
4889 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4890 0 void *argp1 = 0 ;
4891 0 int res1 = 0 ;
4892 0 int argvi = 0;
4893 double result;
4894 0 dXSARGS;
4895
4896 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4897 0 SWIG_croak("Usage: gsl_ran_ugaussian_ratio_method(r);");
4898 }
4899 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4900 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4901 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_ugaussian_ratio_method" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_ugaussian_ratio_method" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4902 }
4903 0 arg1 = (gsl_rng *)(argp1);
4904 0 result = (double)gsl_ran_ugaussian_ratio_method((gsl_rng const *)arg1);
4905 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4906
4907 0 XSRETURN(argvi);
4908 0 fail:
4909
4910 0 SWIG_croak_null();
4911 }
4912 }
4913  
4914  
4915 0 XS(_wrap_gsl_ran_ugaussian_pdf) {
4916 {
4917 double arg1 ;
4918 double val1 ;
4919 0 int ecode1 = 0 ;
4920 0 int argvi = 0;
4921 double result;
4922 0 dXSARGS;
4923
4924 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4925 0 SWIG_croak("Usage: gsl_ran_ugaussian_pdf(x);");
4926 }
4927 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4928 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4929 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_ugaussian_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_ugaussian_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
4930 }
4931 0 arg1 = (double)(val1);
4932 0 result = (double)gsl_ran_ugaussian_pdf(arg1);
4933 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4934
4935 0 XSRETURN(argvi);
4936 0 fail:
4937
4938 0 SWIG_croak_null();
4939 }
4940 }
4941  
4942  
4943 0 XS(_wrap_gsl_ran_gaussian_tail) {
4944 {
4945 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
4946 double arg2 ;
4947 double arg3 ;
4948 0 void *argp1 = 0 ;
4949 0 int res1 = 0 ;
4950 double val2 ;
4951 0 int ecode2 = 0 ;
4952 double val3 ;
4953 0 int ecode3 = 0 ;
4954 0 int argvi = 0;
4955 double result;
4956 0 dXSARGS;
4957
4958 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
4959 0 SWIG_croak("Usage: gsl_ran_gaussian_tail(r,a,sigma);");
4960 }
4961 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
4962 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4963 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian_tail" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gaussian_tail" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
4964 }
4965 0 arg1 = (gsl_rng *)(argp1);
4966 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4967 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4968 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_tail" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_tail" "', argument " "2"" of type '" "double""'"); 0 0 0
4969 }
4970 0 arg2 = (double)(val2);
4971 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4972 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4973 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gaussian_tail" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gaussian_tail" "', argument " "3"" of type '" "double""'"); 0 0 0
4974 }
4975 0 arg3 = (double)(val3);
4976 0 result = (double)gsl_ran_gaussian_tail((gsl_rng const *)arg1,arg2,arg3);
4977 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4978
4979
4980
4981 0 XSRETURN(argvi);
4982 0 fail:
4983
4984
4985
4986 0 SWIG_croak_null();
4987 }
4988 }
4989  
4990  
4991 0 XS(_wrap_gsl_ran_gaussian_tail_pdf) {
4992 {
4993 double arg1 ;
4994 double arg2 ;
4995 double arg3 ;
4996 double val1 ;
4997 0 int ecode1 = 0 ;
4998 double val2 ;
4999 0 int ecode2 = 0 ;
5000 double val3 ;
5001 0 int ecode3 = 0 ;
5002 0 int argvi = 0;
5003 double result;
5004 0 dXSARGS;
5005
5006 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
5007 0 SWIG_croak("Usage: gsl_ran_gaussian_tail_pdf(x,a,sigma);");
5008 }
5009 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5010 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5011 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gaussian_tail_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gaussian_tail_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
5012 }
5013 0 arg1 = (double)(val1);
5014 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5015 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5016 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_tail_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gaussian_tail_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
5017 }
5018 0 arg2 = (double)(val2);
5019 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5020 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5021 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gaussian_tail_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gaussian_tail_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
5022 }
5023 0 arg3 = (double)(val3);
5024 0 result = (double)gsl_ran_gaussian_tail_pdf(arg1,arg2,arg3);
5025 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5026
5027
5028
5029 0 XSRETURN(argvi);
5030 0 fail:
5031
5032
5033
5034 0 SWIG_croak_null();
5035 }
5036 }
5037  
5038  
5039 0 XS(_wrap_gsl_ran_ugaussian_tail) {
5040 {
5041 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
5042 double arg2 ;
5043 0 void *argp1 = 0 ;
5044 0 int res1 = 0 ;
5045 double val2 ;
5046 0 int ecode2 = 0 ;
5047 0 int argvi = 0;
5048 double result;
5049 0 dXSARGS;
5050
5051 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5052 0 SWIG_croak("Usage: gsl_ran_ugaussian_tail(r,a);");
5053 }
5054 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
5055 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5056 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_ugaussian_tail" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_ugaussian_tail" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
5057 }
5058 0 arg1 = (gsl_rng *)(argp1);
5059 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5060 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5061 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_ugaussian_tail" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_ugaussian_tail" "', argument " "2"" of type '" "double""'"); 0 0 0
5062 }
5063 0 arg2 = (double)(val2);
5064 0 result = (double)gsl_ran_ugaussian_tail((gsl_rng const *)arg1,arg2);
5065 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5066
5067
5068 0 XSRETURN(argvi);
5069 0 fail:
5070
5071
5072 0 SWIG_croak_null();
5073 }
5074 }
5075  
5076  
5077 0 XS(_wrap_gsl_ran_ugaussian_tail_pdf) {
5078 {
5079 double arg1 ;
5080 double arg2 ;
5081 double val1 ;
5082 0 int ecode1 = 0 ;
5083 double val2 ;
5084 0 int ecode2 = 0 ;
5085 0 int argvi = 0;
5086 double result;
5087 0 dXSARGS;
5088
5089 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5090 0 SWIG_croak("Usage: gsl_ran_ugaussian_tail_pdf(x,a);");
5091 }
5092 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5093 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5094 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_ugaussian_tail_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_ugaussian_tail_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
5095 }
5096 0 arg1 = (double)(val1);
5097 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5098 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5099 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_ugaussian_tail_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_ugaussian_tail_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
5100 }
5101 0 arg2 = (double)(val2);
5102 0 result = (double)gsl_ran_ugaussian_tail_pdf(arg1,arg2);
5103 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5104
5105
5106 0 XSRETURN(argvi);
5107 0 fail:
5108
5109
5110 0 SWIG_croak_null();
5111 }
5112 }
5113  
5114  
5115 0 XS(_wrap_gsl_ran_bivariate_gaussian_pdf) {
5116 {
5117 double arg1 ;
5118 double arg2 ;
5119 double arg3 ;
5120 double arg4 ;
5121 double arg5 ;
5122 double val1 ;
5123 0 int ecode1 = 0 ;
5124 double val2 ;
5125 0 int ecode2 = 0 ;
5126 double val3 ;
5127 0 int ecode3 = 0 ;
5128 double val4 ;
5129 0 int ecode4 = 0 ;
5130 double val5 ;
5131 0 int ecode5 = 0 ;
5132 0 int argvi = 0;
5133 double result;
5134 0 dXSARGS;
5135
5136 0 ▶ if ((items < 5) || (items > 5)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 5) || (items > 5)) { 0 0 0
if ((items < 5) || (items > 5)) { 0 0 0
5137 0 SWIG_croak("Usage: gsl_ran_bivariate_gaussian_pdf(x,y,sigma_x,sigma_y,rho);");
5138 }
5139 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5140 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5141 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
5142 }
5143 0 arg1 = (double)(val1);
5144 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5145 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5146 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
5147 }
5148 0 arg2 = (double)(val2);
5149 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5150 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5151 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
5152 }
5153 0 arg3 = (double)(val3);
5154 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5155 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5156 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "4"" of type '" "double""'"); 0 0 0
5157 }
5158 0 arg4 = (double)(val4);
5159 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5160 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5161 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_ran_bivariate_gaussian_pdf" "', argument " "5"" of type '" "double""'"); 0 0 0
5162 }
5163 0 arg5 = (double)(val5);
5164 0 result = (double)gsl_ran_bivariate_gaussian_pdf(arg1,arg2,arg3,arg4,arg5);
5165 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5166
5167
5168
5169
5170
5171 0 XSRETURN(argvi);
5172 0 fail:
5173
5174
5175
5176
5177
5178 0 SWIG_croak_null();
5179 }
5180 }
5181  
5182  
5183 0 XS(_wrap_gsl_ran_multivariate_gaussian) {
5184 {
5185 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
5186 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
5187 0 gsl_matrix *arg3 = (gsl_matrix *) 0 ;
5188 0 gsl_vector *arg4 = (gsl_vector *) 0 ;
5189 0 void *argp1 = 0 ;
5190 0 int res1 = 0 ;
5191 0 void *argp2 = 0 ;
5192 0 int res2 = 0 ;
5193 0 void *argp3 = 0 ;
5194 0 int res3 = 0 ;
5195 0 void *argp4 = 0 ;
5196 0 int res4 = 0 ;
5197 0 int argvi = 0;
5198 int result;
5199 0 dXSARGS;
5200
5201 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
5202 0 SWIG_croak("Usage: gsl_ran_multivariate_gaussian(r,mu,L,result);");
5203 }
5204 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
5205 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5206 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
5207 }
5208 0 arg1 = (gsl_rng *)(argp1);
5209 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 );
5210 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5211 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "2"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "2"" of type '" "gsl_vector const *""'"); 0 0 0
5212 }
5213 0 arg2 = (gsl_vector *)(argp2);
5214 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5215 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
5216 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "3"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "3"" of type '" "gsl_matrix const *""'"); 0 0 0
5217 }
5218 0 arg3 = (gsl_matrix *)(argp3);
5219 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_vector, 0 | 0 );
5220 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
5221 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "4"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_multivariate_gaussian" "', argument " "4"" of type '" "gsl_vector *""'"); 0 0 0
5222 }
5223 0 arg4 = (gsl_vector *)(argp4);
5224 0 result = (int)gsl_ran_multivariate_gaussian((gsl_rng const *)arg1,(gsl_vector const *)arg2,(gsl_matrix const *)arg3,arg4);
5225 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5226
5227
5228
5229
5230 0 XSRETURN(argvi);
5231 0 fail:
5232
5233
5234
5235
5236 0 SWIG_croak_null();
5237 }
5238 }
5239  
5240  
5241 0 XS(_wrap_gsl_ran_multivariate_gaussian_log_pdf) {
5242 {
5243 0 gsl_vector *arg1 = (gsl_vector *) 0 ;
5244 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
5245 0 gsl_matrix *arg3 = (gsl_matrix *) 0 ;
5246 0 double *arg4 = (double *) 0 ;
5247 0 gsl_vector *arg5 = (gsl_vector *) 0 ;
5248 0 void *argp1 = 0 ;
5249 0 int res1 = 0 ;
5250 0 void *argp2 = 0 ;
5251 0 int res2 = 0 ;
5252 0 void *argp3 = 0 ;
5253 0 int res3 = 0 ;
5254 double temp4 ;
5255 0 int res4 = SWIG_TMPOBJ ;
5256 0 void *argp5 = 0 ;
5257 0 int res5 = 0 ;
5258 0 int argvi = 0;
5259 int result;
5260 0 dXSARGS;
5261
5262 0 arg4 = &temp4;
5263 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
5264 0 SWIG_croak("Usage: gsl_ran_multivariate_gaussian_log_pdf(x,mu,L,work);");
5265 }
5266 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector, 0 | 0 );
5267 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5268 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "1"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "1"" of type '" "gsl_vector const *""'"); 0 0 0
5269 }
5270 0 arg1 = (gsl_vector *)(argp1);
5271 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 );
5272 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5273 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "2"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "2"" of type '" "gsl_vector const *""'"); 0 0 0
5274 }
5275 0 arg2 = (gsl_vector *)(argp2);
5276 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5277 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
5278 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "3"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "3"" of type '" "gsl_matrix const *""'"); 0 0 0
5279 }
5280 0 arg3 = (gsl_matrix *)(argp3);
5281 0 res5 = SWIG_ConvertPtr(ST(3), &argp5,SWIGTYPE_p_gsl_vector, 0 | 0 );
5282 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
5283 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "5"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_ran_multivariate_gaussian_log_pdf" "', argument " "5"" of type '" "gsl_vector *""'"); 0 0 0
5284 }
5285 0 arg5 = (gsl_vector *)(argp5);
5286 0 result = (int)gsl_ran_multivariate_gaussian_log_pdf((gsl_vector const *)arg1,(gsl_vector const *)arg2,(gsl_matrix const *)arg3,arg4,arg5);
5287 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5288 0 ▶ if (SWIG_IsTmpObj(res4)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res4)) { 0 0 0
if (SWIG_IsTmpObj(res4)) { 0 0 0
5289 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5290 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5291 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg4)); argvi++ /*@SWIG@*/;
5292 } else {
5293 0 ▶ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
5294 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5295 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5296 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
5297 }
5298
5299
5300
5301
5302
5303 0 XSRETURN(argvi);
5304 0 fail:
5305
5306
5307
5308
5309
5310 0 SWIG_croak_null();
5311 }
5312 }
5313  
5314  
5315 0 XS(_wrap_gsl_ran_multivariate_gaussian_pdf) {
5316 {
5317 0 gsl_vector *arg1 = (gsl_vector *) 0 ;
5318 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
5319 0 gsl_matrix *arg3 = (gsl_matrix *) 0 ;
5320 0 double *arg4 = (double *) 0 ;
5321 0 gsl_vector *arg5 = (gsl_vector *) 0 ;
5322 0 void *argp1 = 0 ;
5323 0 int res1 = 0 ;
5324 0 void *argp2 = 0 ;
5325 0 int res2 = 0 ;
5326 0 void *argp3 = 0 ;
5327 0 int res3 = 0 ;
5328 double temp4 ;
5329 0 int res4 = SWIG_TMPOBJ ;
5330 0 void *argp5 = 0 ;
5331 0 int res5 = 0 ;
5332 0 int argvi = 0;
5333 int result;
5334 0 dXSARGS;
5335
5336 0 arg4 = &temp4;
5337 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
5338 0 SWIG_croak("Usage: gsl_ran_multivariate_gaussian_pdf(x,mu,L,work);");
5339 }
5340 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector, 0 | 0 );
5341 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5342 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "1"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "1"" of type '" "gsl_vector const *""'"); 0 0 0
5343 }
5344 0 arg1 = (gsl_vector *)(argp1);
5345 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 );
5346 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5347 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "2"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "2"" of type '" "gsl_vector const *""'"); 0 0 0
5348 }
5349 0 arg2 = (gsl_vector *)(argp2);
5350 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5351 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
5352 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "3"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "3"" of type '" "gsl_matrix const *""'"); 0 0 0
5353 }
5354 0 arg3 = (gsl_matrix *)(argp3);
5355 0 res5 = SWIG_ConvertPtr(ST(3), &argp5,SWIGTYPE_p_gsl_vector, 0 | 0 );
5356 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
5357 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "5"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_ran_multivariate_gaussian_pdf" "', argument " "5"" of type '" "gsl_vector *""'"); 0 0 0
5358 }
5359 0 arg5 = (gsl_vector *)(argp5);
5360 0 result = (int)gsl_ran_multivariate_gaussian_pdf((gsl_vector const *)arg1,(gsl_vector const *)arg2,(gsl_matrix const *)arg3,arg4,arg5);
5361 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5362 0 ▶ if (SWIG_IsTmpObj(res4)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res4)) { 0 0 0
if (SWIG_IsTmpObj(res4)) { 0 0 0
5363 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5364 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5365 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg4)); argvi++ /*@SWIG@*/;
5366 } else {
5367 0 ▶ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
5368 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5369 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5370 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
5371 }
5372
5373
5374
5375
5376
5377 0 XSRETURN(argvi);
5378 0 fail:
5379
5380
5381
5382
5383
5384 0 SWIG_croak_null();
5385 }
5386 }
5387  
5388  
5389 0 XS(_wrap_gsl_ran_multivariate_gaussian_mean) {
5390 {
5391 0 gsl_matrix *arg1 = (gsl_matrix *) 0 ;
5392 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
5393 0 void *argp1 = 0 ;
5394 0 int res1 = 0 ;
5395 0 void *argp2 = 0 ;
5396 0 int res2 = 0 ;
5397 0 int argvi = 0;
5398 int result;
5399 0 dXSARGS;
5400
5401 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5402 0 SWIG_croak("Usage: gsl_ran_multivariate_gaussian_mean(X,mu_hat);");
5403 }
5404 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5405 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5406 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_mean" "', argument " "1"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_mean" "', argument " "1"" of type '" "gsl_matrix const *""'"); 0 0 0
5407 }
5408 0 arg1 = (gsl_matrix *)(argp1);
5409 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 );
5410 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5411 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_mean" "', argument " "2"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_mean" "', argument " "2"" of type '" "gsl_vector *""'"); 0 0 0
5412 }
5413 0 arg2 = (gsl_vector *)(argp2);
5414 0 result = (int)gsl_ran_multivariate_gaussian_mean((gsl_matrix const *)arg1,arg2);
5415 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5416
5417
5418 0 XSRETURN(argvi);
5419 0 fail:
5420
5421
5422 0 SWIG_croak_null();
5423 }
5424 }
5425  
5426  
5427 0 XS(_wrap_gsl_ran_multivariate_gaussian_vcov) {
5428 {
5429 0 gsl_matrix *arg1 = (gsl_matrix *) 0 ;
5430 0 gsl_matrix *arg2 = (gsl_matrix *) 0 ;
5431 0 void *argp1 = 0 ;
5432 0 int res1 = 0 ;
5433 0 void *argp2 = 0 ;
5434 0 int res2 = 0 ;
5435 0 int argvi = 0;
5436 int result;
5437 0 dXSARGS;
5438
5439 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5440 0 SWIG_croak("Usage: gsl_ran_multivariate_gaussian_vcov(X,sigma_hat);");
5441 }
5442 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5443 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5444 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_vcov" "', argument " "1"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_multivariate_gaussian_vcov" "', argument " "1"" of type '" "gsl_matrix const *""'"); 0 0 0
5445 }
5446 0 arg1 = (gsl_matrix *)(argp1);
5447 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5448 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5449 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_vcov" "', argument " "2"" of type '" "gsl_matrix *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_multivariate_gaussian_vcov" "', argument " "2"" of type '" "gsl_matrix *""'"); 0 0 0
5450 }
5451 0 arg2 = (gsl_matrix *)(argp2);
5452 0 result = (int)gsl_ran_multivariate_gaussian_vcov((gsl_matrix const *)arg1,arg2);
5453 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5454
5455
5456 0 XSRETURN(argvi);
5457 0 fail:
5458
5459
5460 0 SWIG_croak_null();
5461 }
5462 }
5463  
5464  
5465 0 XS(_wrap_gsl_ran_wishart) {
5466 {
5467 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
5468 double arg2 ;
5469 0 gsl_matrix *arg3 = (gsl_matrix *) 0 ;
5470 0 gsl_matrix *arg4 = (gsl_matrix *) 0 ;
5471 0 gsl_matrix *arg5 = (gsl_matrix *) 0 ;
5472 0 void *argp1 = 0 ;
5473 0 int res1 = 0 ;
5474 double val2 ;
5475 0 int ecode2 = 0 ;
5476 0 void *argp3 = 0 ;
5477 0 int res3 = 0 ;
5478 0 void *argp4 = 0 ;
5479 0 int res4 = 0 ;
5480 0 void *argp5 = 0 ;
5481 0 int res5 = 0 ;
5482 0 int argvi = 0;
5483 int result;
5484 0 dXSARGS;
5485
5486 0 ▶ if ((items < 5) || (items > 5)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 5) || (items > 5)) { 0 0 0
if ((items < 5) || (items > 5)) { 0 0 0
5487 0 SWIG_croak("Usage: gsl_ran_wishart(r,df,L,result,work);");
5488 }
5489 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
5490 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5491 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_wishart" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_wishart" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
5492 }
5493 0 arg1 = (gsl_rng *)(argp1);
5494 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5495 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5496 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_wishart" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_wishart" "', argument " "2"" of type '" "double""'"); 0 0 0
5497 }
5498 0 arg2 = (double)(val2);
5499 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5500 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
5501 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_wishart" "', argument " "3"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_wishart" "', argument " "3"" of type '" "gsl_matrix const *""'"); 0 0 0
5502 }
5503 0 arg3 = (gsl_matrix *)(argp3);
5504 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5505 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
5506 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_wishart" "', argument " "4"" of type '" "gsl_matrix *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_wishart" "', argument " "4"" of type '" "gsl_matrix *""'"); 0 0 0
5507 }
5508 0 arg4 = (gsl_matrix *)(argp4);
5509 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5510 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
5511 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_ran_wishart" "', argument " "5"" of type '" "gsl_matrix *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_ran_wishart" "', argument " "5"" of type '" "gsl_matrix *""'"); 0 0 0
5512 }
5513 0 arg5 = (gsl_matrix *)(argp5);
5514 0 result = (int)gsl_ran_wishart((gsl_rng const *)arg1,arg2,(gsl_matrix const *)arg3,arg4,arg5);
5515 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5516
5517
5518
5519
5520
5521 0 XSRETURN(argvi);
5522 0 fail:
5523
5524
5525
5526
5527
5528 0 SWIG_croak_null();
5529 }
5530 }
5531  
5532  
5533 0 XS(_wrap_gsl_ran_wishart_log_pdf) {
5534 {
5535 0 gsl_matrix *arg1 = (gsl_matrix *) 0 ;
5536 0 gsl_matrix *arg2 = (gsl_matrix *) 0 ;
5537 double arg3 ;
5538 0 gsl_matrix *arg4 = (gsl_matrix *) 0 ;
5539 0 double *arg5 = (double *) 0 ;
5540 0 gsl_matrix *arg6 = (gsl_matrix *) 0 ;
5541 0 void *argp1 = 0 ;
5542 0 int res1 = 0 ;
5543 0 void *argp2 = 0 ;
5544 0 int res2 = 0 ;
5545 double val3 ;
5546 0 int ecode3 = 0 ;
5547 0 void *argp4 = 0 ;
5548 0 int res4 = 0 ;
5549 double temp5 ;
5550 0 int res5 = SWIG_TMPOBJ ;
5551 0 void *argp6 = 0 ;
5552 0 int res6 = 0 ;
5553 0 int argvi = 0;
5554 int result;
5555 0 dXSARGS;
5556
5557 0 arg5 = &temp5;
5558 0 ▶ if ((items < 5) || (items > 5)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 5) || (items > 5)) { 0 0 0
if ((items < 5) || (items > 5)) { 0 0 0
5559 0 SWIG_croak("Usage: gsl_ran_wishart_log_pdf(X,L_X,df,L,work);");
5560 }
5561 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5562 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5563 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "1"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "1"" of type '" "gsl_matrix const *""'"); 0 0 0
5564 }
5565 0 arg1 = (gsl_matrix *)(argp1);
5566 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5567 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5568 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "2"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "2"" of type '" "gsl_matrix const *""'"); 0 0 0
5569 }
5570 0 arg2 = (gsl_matrix *)(argp2);
5571 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5572 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5573 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
5574 }
5575 0 arg3 = (double)(val3);
5576 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5577 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
5578 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "4"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "4"" of type '" "gsl_matrix const *""'"); 0 0 0
5579 }
5580 0 arg4 = (gsl_matrix *)(argp4);
5581 0 res6 = SWIG_ConvertPtr(ST(4), &argp6,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5582 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
5583 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "6"" of type '" "gsl_matrix *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_ran_wishart_log_pdf" "', argument " "6"" of type '" "gsl_matrix *""'"); 0 0 0
5584 }
5585 0 arg6 = (gsl_matrix *)(argp6);
5586 0 result = (int)gsl_ran_wishart_log_pdf((gsl_matrix const *)arg1,(gsl_matrix const *)arg2,arg3,(gsl_matrix const *)arg4,arg5,arg6);
5587 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5588 0 ▶ if (SWIG_IsTmpObj(res5)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res5)) { 0 0 0
if (SWIG_IsTmpObj(res5)) { 0 0 0
5589 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5590 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5591 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg5)); argvi++ /*@SWIG@*/;
5592 } else {
5593 0 ▶ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
5594 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5595 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5596 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
5597 }
5598
5599
5600
5601
5602
5603
5604 0 XSRETURN(argvi);
5605 0 fail:
5606
5607
5608
5609
5610
5611
5612 0 SWIG_croak_null();
5613 }
5614 }
5615  
5616  
5617 0 XS(_wrap_gsl_ran_wishart_pdf) {
5618 {
5619 0 gsl_matrix *arg1 = (gsl_matrix *) 0 ;
5620 0 gsl_matrix *arg2 = (gsl_matrix *) 0 ;
5621 double arg3 ;
5622 0 gsl_matrix *arg4 = (gsl_matrix *) 0 ;
5623 0 double *arg5 = (double *) 0 ;
5624 0 gsl_matrix *arg6 = (gsl_matrix *) 0 ;
5625 0 void *argp1 = 0 ;
5626 0 int res1 = 0 ;
5627 0 void *argp2 = 0 ;
5628 0 int res2 = 0 ;
5629 double val3 ;
5630 0 int ecode3 = 0 ;
5631 0 void *argp4 = 0 ;
5632 0 int res4 = 0 ;
5633 double temp5 ;
5634 0 int res5 = SWIG_TMPOBJ ;
5635 0 void *argp6 = 0 ;
5636 0 int res6 = 0 ;
5637 0 int argvi = 0;
5638 int result;
5639 0 dXSARGS;
5640
5641 0 arg5 = &temp5;
5642 0 ▶ if ((items < 5) || (items > 5)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 5) || (items > 5)) { 0 0 0
if ((items < 5) || (items > 5)) { 0 0 0
5643 0 SWIG_croak("Usage: gsl_ran_wishart_pdf(X,L_X,df,L,work);");
5644 }
5645 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5646 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5647 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_wishart_pdf" "', argument " "1"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_wishart_pdf" "', argument " "1"" of type '" "gsl_matrix const *""'"); 0 0 0
5648 }
5649 0 arg1 = (gsl_matrix *)(argp1);
5650 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5651 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5652 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_wishart_pdf" "', argument " "2"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_wishart_pdf" "', argument " "2"" of type '" "gsl_matrix const *""'"); 0 0 0
5653 }
5654 0 arg2 = (gsl_matrix *)(argp2);
5655 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5656 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5657 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_wishart_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_wishart_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
5658 }
5659 0 arg3 = (double)(val3);
5660 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5661 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
5662 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_wishart_pdf" "', argument " "4"" of type '" "gsl_matrix const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_ran_wishart_pdf" "', argument " "4"" of type '" "gsl_matrix const *""'"); 0 0 0
5663 }
5664 0 arg4 = (gsl_matrix *)(argp4);
5665 0 res6 = SWIG_ConvertPtr(ST(4), &argp6,SWIGTYPE_p_gsl_matrix, 0 | 0 );
5666 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
5667 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_ran_wishart_pdf" "', argument " "6"" of type '" "gsl_matrix *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_ran_wishart_pdf" "', argument " "6"" of type '" "gsl_matrix *""'"); 0 0 0
5668 }
5669 0 arg6 = (gsl_matrix *)(argp6);
5670 0 result = (int)gsl_ran_wishart_pdf((gsl_matrix const *)arg1,(gsl_matrix const *)arg2,arg3,(gsl_matrix const *)arg4,arg5,arg6);
5671 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5672 0 ▶ if (SWIG_IsTmpObj(res5)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res5)) { 0 0 0
if (SWIG_IsTmpObj(res5)) { 0 0 0
5673 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5674 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5675 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg5)); argvi++ /*@SWIG@*/;
5676 } else {
5677 0 ▶ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
5678 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
5679 0 ▶ if (argvi >= items) EXTEND(sp, argvi+1);
Branch: 3 branches
BranchTrueFalseTotal
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
if (argvi >= items) EXTEND(sp, argvi+1); 0 0 0
5680 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
5681 }
5682
5683
5684
5685
5686
5687
5688 0 XSRETURN(argvi);
5689 0 fail:
5690
5691
5692
5693
5694
5695
5696 0 SWIG_croak_null();
5697 }
5698 }
5699  
5700  
5701 0 XS(_wrap_gsl_ran_landau) {
5702 {
5703 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
5704 0 void *argp1 = 0 ;
5705 0 int res1 = 0 ;
5706 0 int argvi = 0;
5707 double result;
5708 0 dXSARGS;
5709
5710 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5711 0 SWIG_croak("Usage: gsl_ran_landau(r);");
5712 }
5713 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
5714 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5715 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_landau" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_landau" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
5716 }
5717 0 arg1 = (gsl_rng *)(argp1);
5718 0 result = (double)gsl_ran_landau((gsl_rng const *)arg1);
5719 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5720
5721 0 XSRETURN(argvi);
5722 0 fail:
5723
5724 0 SWIG_croak_null();
5725 }
5726 }
5727  
5728  
5729 0 XS(_wrap_gsl_ran_landau_pdf) {
5730 {
5731 double arg1 ;
5732 double val1 ;
5733 0 int ecode1 = 0 ;
5734 0 int argvi = 0;
5735 double result;
5736 0 dXSARGS;
5737
5738 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
5739 0 SWIG_croak("Usage: gsl_ran_landau_pdf(x);");
5740 }
5741 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5742 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5743 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_landau_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_landau_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
5744 }
5745 0 arg1 = (double)(val1);
5746 0 result = (double)gsl_ran_landau_pdf(arg1);
5747 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5748
5749 0 XSRETURN(argvi);
5750 0 fail:
5751
5752 0 SWIG_croak_null();
5753 }
5754 }
5755  
5756  
5757 0 XS(_wrap_gsl_ran_geometric) {
5758 {
5759 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
5760 double arg2 ;
5761 0 void *argp1 = 0 ;
5762 0 int res1 = 0 ;
5763 double val2 ;
5764 0 int ecode2 = 0 ;
5765 0 int argvi = 0;
5766 unsigned int result;
5767 0 dXSARGS;
5768
5769 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5770 0 SWIG_croak("Usage: gsl_ran_geometric(r,p);");
5771 }
5772 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
5773 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5774 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_geometric" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_geometric" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
5775 }
5776 0 arg1 = (gsl_rng *)(argp1);
5777 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5778 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5779 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_geometric" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_geometric" "', argument " "2"" of type '" "double""'"); 0 0 0
5780 }
5781 0 arg2 = (double)(val2);
5782 0 result = (unsigned int)gsl_ran_geometric((gsl_rng const *)arg1,arg2);
5783 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
5784
5785
5786 0 XSRETURN(argvi);
5787 0 fail:
5788
5789
5790 0 SWIG_croak_null();
5791 }
5792 }
5793  
5794  
5795 0 XS(_wrap_gsl_ran_geometric_pdf) {
5796 {
5797 unsigned int arg1 ;
5798 double arg2 ;
5799 unsigned int val1 ;
5800 0 int ecode1 = 0 ;
5801 double val2 ;
5802 0 int ecode2 = 0 ;
5803 0 int argvi = 0;
5804 double result;
5805 0 dXSARGS;
5806
5807 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5808 0 SWIG_croak("Usage: gsl_ran_geometric_pdf(k,p);");
5809 }
5810 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5811 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5812 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_geometric_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_geometric_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
5813 }
5814 0 arg1 = (unsigned int)(val1);
5815 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5816 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5817 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_geometric_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_geometric_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
5818 }
5819 0 arg2 = (double)(val2);
5820 0 result = (double)gsl_ran_geometric_pdf(arg1,arg2);
5821 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5822
5823
5824 0 XSRETURN(argvi);
5825 0 fail:
5826
5827
5828 0 SWIG_croak_null();
5829 }
5830 }
5831  
5832  
5833 0 XS(_wrap_gsl_ran_hypergeometric) {
5834 {
5835 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
5836 unsigned int arg2 ;
5837 unsigned int arg3 ;
5838 unsigned int arg4 ;
5839 0 void *argp1 = 0 ;
5840 0 int res1 = 0 ;
5841 unsigned int val2 ;
5842 0 int ecode2 = 0 ;
5843 unsigned int val3 ;
5844 0 int ecode3 = 0 ;
5845 unsigned int val4 ;
5846 0 int ecode4 = 0 ;
5847 0 int argvi = 0;
5848 unsigned int result;
5849 0 dXSARGS;
5850
5851 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
5852 0 SWIG_croak("Usage: gsl_ran_hypergeometric(r,n1,n2,t);");
5853 }
5854 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
5855 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5856 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_hypergeometric" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_hypergeometric" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
5857 }
5858 0 arg1 = (gsl_rng *)(argp1);
5859 0 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5860 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5861 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_hypergeometric" "', argument " "2"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_hypergeometric" "', argument " "2"" of type '" "unsigned int""'"); 0 0 0
5862 }
5863 0 arg2 = (unsigned int)(val2);
5864 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5865 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5866 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_hypergeometric" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_hypergeometric" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
5867 }
5868 0 arg3 = (unsigned int)(val3);
5869 0 ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5870 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5871 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_hypergeometric" "', argument " "4"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_hypergeometric" "', argument " "4"" of type '" "unsigned int""'"); 0 0 0
5872 }
5873 0 arg4 = (unsigned int)(val4);
5874 0 result = (unsigned int)gsl_ran_hypergeometric((gsl_rng const *)arg1,arg2,arg3,arg4);
5875 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
5876
5877
5878
5879
5880 0 XSRETURN(argvi);
5881 0 fail:
5882
5883
5884
5885
5886 0 SWIG_croak_null();
5887 }
5888 }
5889  
5890  
5891 0 XS(_wrap_gsl_ran_hypergeometric_pdf) {
5892 {
5893 unsigned int arg1 ;
5894 unsigned int arg2 ;
5895 unsigned int arg3 ;
5896 unsigned int arg4 ;
5897 unsigned int val1 ;
5898 0 int ecode1 = 0 ;
5899 unsigned int val2 ;
5900 0 int ecode2 = 0 ;
5901 unsigned int val3 ;
5902 0 int ecode3 = 0 ;
5903 unsigned int val4 ;
5904 0 int ecode4 = 0 ;
5905 0 int argvi = 0;
5906 double result;
5907 0 dXSARGS;
5908
5909 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
5910 0 SWIG_croak("Usage: gsl_ran_hypergeometric_pdf(k,n1,n2,t);");
5911 }
5912 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5913 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5914 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
5915 }
5916 0 arg1 = (unsigned int)(val1);
5917 0 ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5918 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5919 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "2"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "2"" of type '" "unsigned int""'"); 0 0 0
5920 }
5921 0 arg2 = (unsigned int)(val2);
5922 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5923 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5924 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
5925 }
5926 0 arg3 = (unsigned int)(val3);
5927 0 ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5928 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5929 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "4"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_hypergeometric_pdf" "', argument " "4"" of type '" "unsigned int""'"); 0 0 0
5930 }
5931 0 arg4 = (unsigned int)(val4);
5932 0 result = (double)gsl_ran_hypergeometric_pdf(arg1,arg2,arg3,arg4);
5933 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5934
5935
5936
5937
5938 0 XSRETURN(argvi);
5939 0 fail:
5940
5941
5942
5943
5944 0 SWIG_croak_null();
5945 }
5946 }
5947  
5948  
5949 0 XS(_wrap_gsl_ran_gumbel1) {
5950 {
5951 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
5952 double arg2 ;
5953 double arg3 ;
5954 0 void *argp1 = 0 ;
5955 0 int res1 = 0 ;
5956 double val2 ;
5957 0 int ecode2 = 0 ;
5958 double val3 ;
5959 0 int ecode3 = 0 ;
5960 0 int argvi = 0;
5961 double result;
5962 0 dXSARGS;
5963
5964 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
5965 0 SWIG_croak("Usage: gsl_ran_gumbel1(r,a,b);");
5966 }
5967 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
5968 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5969 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gumbel1" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gumbel1" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
5970 }
5971 0 arg1 = (gsl_rng *)(argp1);
5972 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5973 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5974 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel1" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel1" "', argument " "2"" of type '" "double""'"); 0 0 0
5975 }
5976 0 arg2 = (double)(val2);
5977 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5978 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5979 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel1" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel1" "', argument " "3"" of type '" "double""'"); 0 0 0
5980 }
5981 0 arg3 = (double)(val3);
5982 0 result = (double)gsl_ran_gumbel1((gsl_rng const *)arg1,arg2,arg3);
5983 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5984
5985
5986
5987 0 XSRETURN(argvi);
5988 0 fail:
5989
5990
5991
5992 0 SWIG_croak_null();
5993 }
5994 }
5995  
5996  
5997 0 XS(_wrap_gsl_ran_gumbel1_pdf) {
5998 {
5999 double arg1 ;
6000 double arg2 ;
6001 double arg3 ;
6002 double val1 ;
6003 0 int ecode1 = 0 ;
6004 double val2 ;
6005 0 int ecode2 = 0 ;
6006 double val3 ;
6007 0 int ecode3 = 0 ;
6008 0 int argvi = 0;
6009 double result;
6010 0 dXSARGS;
6011
6012 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6013 0 SWIG_croak("Usage: gsl_ran_gumbel1_pdf(x,a,b);");
6014 }
6015 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6016 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6017 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gumbel1_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gumbel1_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
6018 }
6019 0 arg1 = (double)(val1);
6020 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6021 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6022 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel1_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel1_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6023 }
6024 0 arg2 = (double)(val2);
6025 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6026 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6027 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel1_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel1_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
6028 }
6029 0 arg3 = (double)(val3);
6030 0 result = (double)gsl_ran_gumbel1_pdf(arg1,arg2,arg3);
6031 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6032
6033
6034
6035 0 XSRETURN(argvi);
6036 0 fail:
6037
6038
6039
6040 0 SWIG_croak_null();
6041 }
6042 }
6043  
6044  
6045 0 XS(_wrap_gsl_ran_gumbel2) {
6046 {
6047 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6048 double arg2 ;
6049 double arg3 ;
6050 0 void *argp1 = 0 ;
6051 0 int res1 = 0 ;
6052 double val2 ;
6053 0 int ecode2 = 0 ;
6054 double val3 ;
6055 0 int ecode3 = 0 ;
6056 0 int argvi = 0;
6057 double result;
6058 0 dXSARGS;
6059
6060 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6061 0 SWIG_croak("Usage: gsl_ran_gumbel2(r,a,b);");
6062 }
6063 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6064 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6065 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gumbel2" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_gumbel2" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6066 }
6067 0 arg1 = (gsl_rng *)(argp1);
6068 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6069 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6070 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel2" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel2" "', argument " "2"" of type '" "double""'"); 0 0 0
6071 }
6072 0 arg2 = (double)(val2);
6073 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6074 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6075 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel2" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel2" "', argument " "3"" of type '" "double""'"); 0 0 0
6076 }
6077 0 arg3 = (double)(val3);
6078 0 result = (double)gsl_ran_gumbel2((gsl_rng const *)arg1,arg2,arg3);
6079 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6080
6081
6082
6083 0 XSRETURN(argvi);
6084 0 fail:
6085
6086
6087
6088 0 SWIG_croak_null();
6089 }
6090 }
6091  
6092  
6093 0 XS(_wrap_gsl_ran_gumbel2_pdf) {
6094 {
6095 double arg1 ;
6096 double arg2 ;
6097 double arg3 ;
6098 double val1 ;
6099 0 int ecode1 = 0 ;
6100 double val2 ;
6101 0 int ecode2 = 0 ;
6102 double val3 ;
6103 0 int ecode3 = 0 ;
6104 0 int argvi = 0;
6105 double result;
6106 0 dXSARGS;
6107
6108 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6109 0 SWIG_croak("Usage: gsl_ran_gumbel2_pdf(x,a,b);");
6110 }
6111 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6112 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6113 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gumbel2_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_gumbel2_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
6114 }
6115 0 arg1 = (double)(val1);
6116 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6117 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6118 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel2_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_gumbel2_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6119 }
6120 0 arg2 = (double)(val2);
6121 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6122 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6123 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel2_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_gumbel2_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
6124 }
6125 0 arg3 = (double)(val3);
6126 0 result = (double)gsl_ran_gumbel2_pdf(arg1,arg2,arg3);
6127 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6128
6129
6130
6131 0 XSRETURN(argvi);
6132 0 fail:
6133
6134
6135
6136 0 SWIG_croak_null();
6137 }
6138 }
6139  
6140  
6141 0 XS(_wrap_gsl_ran_logistic) {
6142 {
6143 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6144 double arg2 ;
6145 0 void *argp1 = 0 ;
6146 0 int res1 = 0 ;
6147 double val2 ;
6148 0 int ecode2 = 0 ;
6149 0 int argvi = 0;
6150 double result;
6151 0 dXSARGS;
6152
6153 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6154 0 SWIG_croak("Usage: gsl_ran_logistic(r,a);");
6155 }
6156 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6157 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6158 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_logistic" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_logistic" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6159 }
6160 0 arg1 = (gsl_rng *)(argp1);
6161 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6162 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6163 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logistic" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logistic" "', argument " "2"" of type '" "double""'"); 0 0 0
6164 }
6165 0 arg2 = (double)(val2);
6166 0 result = (double)gsl_ran_logistic((gsl_rng const *)arg1,arg2);
6167 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6168
6169
6170 0 XSRETURN(argvi);
6171 0 fail:
6172
6173
6174 0 SWIG_croak_null();
6175 }
6176 }
6177  
6178  
6179 0 XS(_wrap_gsl_ran_logistic_pdf) {
6180 {
6181 double arg1 ;
6182 double arg2 ;
6183 double val1 ;
6184 0 int ecode1 = 0 ;
6185 double val2 ;
6186 0 int ecode2 = 0 ;
6187 0 int argvi = 0;
6188 double result;
6189 0 dXSARGS;
6190
6191 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6192 0 SWIG_croak("Usage: gsl_ran_logistic_pdf(x,a);");
6193 }
6194 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6195 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6196 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_logistic_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_logistic_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
6197 }
6198 0 arg1 = (double)(val1);
6199 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6200 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6201 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logistic_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logistic_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6202 }
6203 0 arg2 = (double)(val2);
6204 0 result = (double)gsl_ran_logistic_pdf(arg1,arg2);
6205 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6206
6207
6208 0 XSRETURN(argvi);
6209 0 fail:
6210
6211
6212 0 SWIG_croak_null();
6213 }
6214 }
6215  
6216  
6217 0 XS(_wrap_gsl_ran_lognormal) {
6218 {
6219 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6220 double arg2 ;
6221 double arg3 ;
6222 0 void *argp1 = 0 ;
6223 0 int res1 = 0 ;
6224 double val2 ;
6225 0 int ecode2 = 0 ;
6226 double val3 ;
6227 0 int ecode3 = 0 ;
6228 0 int argvi = 0;
6229 double result;
6230 0 dXSARGS;
6231
6232 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6233 0 SWIG_croak("Usage: gsl_ran_lognormal(r,zeta,sigma);");
6234 }
6235 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6236 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6237 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_lognormal" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_lognormal" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6238 }
6239 0 arg1 = (gsl_rng *)(argp1);
6240 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6241 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6242 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_lognormal" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_lognormal" "', argument " "2"" of type '" "double""'"); 0 0 0
6243 }
6244 0 arg2 = (double)(val2);
6245 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6246 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6247 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_lognormal" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_lognormal" "', argument " "3"" of type '" "double""'"); 0 0 0
6248 }
6249 0 arg3 = (double)(val3);
6250 0 result = (double)gsl_ran_lognormal((gsl_rng const *)arg1,arg2,arg3);
6251 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6252
6253
6254
6255 0 XSRETURN(argvi);
6256 0 fail:
6257
6258
6259
6260 0 SWIG_croak_null();
6261 }
6262 }
6263  
6264  
6265 0 XS(_wrap_gsl_ran_lognormal_pdf) {
6266 {
6267 double arg1 ;
6268 double arg2 ;
6269 double arg3 ;
6270 double val1 ;
6271 0 int ecode1 = 0 ;
6272 double val2 ;
6273 0 int ecode2 = 0 ;
6274 double val3 ;
6275 0 int ecode3 = 0 ;
6276 0 int argvi = 0;
6277 double result;
6278 0 dXSARGS;
6279
6280 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6281 0 SWIG_croak("Usage: gsl_ran_lognormal_pdf(x,zeta,sigma);");
6282 }
6283 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6284 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6285 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_lognormal_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_lognormal_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
6286 }
6287 0 arg1 = (double)(val1);
6288 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6289 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6290 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_lognormal_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_lognormal_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6291 }
6292 0 arg2 = (double)(val2);
6293 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6294 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6295 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_lognormal_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_lognormal_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
6296 }
6297 0 arg3 = (double)(val3);
6298 0 result = (double)gsl_ran_lognormal_pdf(arg1,arg2,arg3);
6299 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6300
6301
6302
6303 0 XSRETURN(argvi);
6304 0 fail:
6305
6306
6307
6308 0 SWIG_croak_null();
6309 }
6310 }
6311  
6312  
6313 0 XS(_wrap_gsl_ran_logarithmic) {
6314 {
6315 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6316 double arg2 ;
6317 0 void *argp1 = 0 ;
6318 0 int res1 = 0 ;
6319 double val2 ;
6320 0 int ecode2 = 0 ;
6321 0 int argvi = 0;
6322 unsigned int result;
6323 0 dXSARGS;
6324
6325 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6326 0 SWIG_croak("Usage: gsl_ran_logarithmic(r,p);");
6327 }
6328 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6329 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6330 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_logarithmic" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_logarithmic" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6331 }
6332 0 arg1 = (gsl_rng *)(argp1);
6333 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6334 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6335 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logarithmic" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logarithmic" "', argument " "2"" of type '" "double""'"); 0 0 0
6336 }
6337 0 arg2 = (double)(val2);
6338 0 result = (unsigned int)gsl_ran_logarithmic((gsl_rng const *)arg1,arg2);
6339 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
6340
6341
6342 0 XSRETURN(argvi);
6343 0 fail:
6344
6345
6346 0 SWIG_croak_null();
6347 }
6348 }
6349  
6350  
6351 0 XS(_wrap_gsl_ran_logarithmic_pdf) {
6352 {
6353 unsigned int arg1 ;
6354 double arg2 ;
6355 unsigned int val1 ;
6356 0 int ecode1 = 0 ;
6357 double val2 ;
6358 0 int ecode2 = 0 ;
6359 0 int argvi = 0;
6360 double result;
6361 0 dXSARGS;
6362
6363 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6364 0 SWIG_croak("Usage: gsl_ran_logarithmic_pdf(k,p);");
6365 }
6366 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6367 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6368 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_logarithmic_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_logarithmic_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
6369 }
6370 0 arg1 = (unsigned int)(val1);
6371 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6372 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6373 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logarithmic_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_logarithmic_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6374 }
6375 0 arg2 = (double)(val2);
6376 0 result = (double)gsl_ran_logarithmic_pdf(arg1,arg2);
6377 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6378
6379
6380 0 XSRETURN(argvi);
6381 0 fail:
6382
6383
6384 0 SWIG_croak_null();
6385 }
6386 }
6387  
6388  
6389 0 XS(_wrap_gsl_ran_negative_binomial) {
6390 {
6391 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6392 double arg2 ;
6393 double arg3 ;
6394 0 void *argp1 = 0 ;
6395 0 int res1 = 0 ;
6396 double val2 ;
6397 0 int ecode2 = 0 ;
6398 double val3 ;
6399 0 int ecode3 = 0 ;
6400 0 int argvi = 0;
6401 unsigned int result;
6402 0 dXSARGS;
6403
6404 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6405 0 SWIG_croak("Usage: gsl_ran_negative_binomial(r,p,n);");
6406 }
6407 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6408 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6409 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_negative_binomial" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_negative_binomial" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6410 }
6411 0 arg1 = (gsl_rng *)(argp1);
6412 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6413 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6414 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_negative_binomial" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_negative_binomial" "', argument " "2"" of type '" "double""'"); 0 0 0
6415 }
6416 0 arg2 = (double)(val2);
6417 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6418 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6419 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_negative_binomial" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_negative_binomial" "', argument " "3"" of type '" "double""'"); 0 0 0
6420 }
6421 0 arg3 = (double)(val3);
6422 0 result = (unsigned int)gsl_ran_negative_binomial((gsl_rng const *)arg1,arg2,arg3);
6423 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
6424
6425
6426
6427 0 XSRETURN(argvi);
6428 0 fail:
6429
6430
6431
6432 0 SWIG_croak_null();
6433 }
6434 }
6435  
6436  
6437 0 XS(_wrap_gsl_ran_negative_binomial_pdf) {
6438 {
6439 unsigned int arg1 ;
6440 double arg2 ;
6441 double arg3 ;
6442 unsigned int val1 ;
6443 0 int ecode1 = 0 ;
6444 double val2 ;
6445 0 int ecode2 = 0 ;
6446 double val3 ;
6447 0 int ecode3 = 0 ;
6448 0 int argvi = 0;
6449 double result;
6450 0 dXSARGS;
6451
6452 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6453 0 SWIG_croak("Usage: gsl_ran_negative_binomial_pdf(k,p,n);");
6454 }
6455 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6456 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6457 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_negative_binomial_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_negative_binomial_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
6458 }
6459 0 arg1 = (unsigned int)(val1);
6460 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6461 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6462 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_negative_binomial_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_negative_binomial_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6463 }
6464 0 arg2 = (double)(val2);
6465 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6466 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6467 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_negative_binomial_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_negative_binomial_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
6468 }
6469 0 arg3 = (double)(val3);
6470 0 result = (double)gsl_ran_negative_binomial_pdf(arg1,arg2,arg3);
6471 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6472
6473
6474
6475 0 XSRETURN(argvi);
6476 0 fail:
6477
6478
6479
6480 0 SWIG_croak_null();
6481 }
6482 }
6483  
6484  
6485 0 XS(_wrap_gsl_ran_pascal) {
6486 {
6487 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6488 double arg2 ;
6489 unsigned int arg3 ;
6490 0 void *argp1 = 0 ;
6491 0 int res1 = 0 ;
6492 double val2 ;
6493 0 int ecode2 = 0 ;
6494 unsigned int val3 ;
6495 0 int ecode3 = 0 ;
6496 0 int argvi = 0;
6497 unsigned int result;
6498 0 dXSARGS;
6499
6500 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6501 0 SWIG_croak("Usage: gsl_ran_pascal(r,p,n);");
6502 }
6503 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6504 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6505 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_pascal" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_pascal" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6506 }
6507 0 arg1 = (gsl_rng *)(argp1);
6508 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6509 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6510 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pascal" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pascal" "', argument " "2"" of type '" "double""'"); 0 0 0
6511 }
6512 0 arg2 = (double)(val2);
6513 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6514 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6515 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pascal" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pascal" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
6516 }
6517 0 arg3 = (unsigned int)(val3);
6518 0 result = (unsigned int)gsl_ran_pascal((gsl_rng const *)arg1,arg2,arg3);
6519 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
6520
6521
6522
6523 0 XSRETURN(argvi);
6524 0 fail:
6525
6526
6527
6528 0 SWIG_croak_null();
6529 }
6530 }
6531  
6532  
6533 0 XS(_wrap_gsl_ran_pascal_pdf) {
6534 {
6535 unsigned int arg1 ;
6536 double arg2 ;
6537 unsigned int arg3 ;
6538 unsigned int val1 ;
6539 0 int ecode1 = 0 ;
6540 double val2 ;
6541 0 int ecode2 = 0 ;
6542 unsigned int val3 ;
6543 0 int ecode3 = 0 ;
6544 0 int argvi = 0;
6545 double result;
6546 0 dXSARGS;
6547
6548 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6549 0 SWIG_croak("Usage: gsl_ran_pascal_pdf(k,p,n);");
6550 }
6551 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6552 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6553 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_pascal_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_pascal_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
6554 }
6555 0 arg1 = (unsigned int)(val1);
6556 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6557 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6558 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pascal_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pascal_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6559 }
6560 0 arg2 = (double)(val2);
6561 0 ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6562 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6563 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pascal_pdf" "', argument " "3"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pascal_pdf" "', argument " "3"" of type '" "unsigned int""'"); 0 0 0
6564 }
6565 0 arg3 = (unsigned int)(val3);
6566 0 result = (double)gsl_ran_pascal_pdf(arg1,arg2,arg3);
6567 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6568
6569
6570
6571 0 XSRETURN(argvi);
6572 0 fail:
6573
6574
6575
6576 0 SWIG_croak_null();
6577 }
6578 }
6579  
6580  
6581 0 XS(_wrap_gsl_ran_pareto) {
6582 {
6583 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6584 double arg2 ;
6585 double arg3 ;
6586 0 void *argp1 = 0 ;
6587 0 int res1 = 0 ;
6588 double val2 ;
6589 0 int ecode2 = 0 ;
6590 double val3 ;
6591 0 int ecode3 = 0 ;
6592 0 int argvi = 0;
6593 double result;
6594 0 dXSARGS;
6595
6596 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6597 0 SWIG_croak("Usage: gsl_ran_pareto(r,a,b);");
6598 }
6599 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6600 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6601 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_pareto" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_pareto" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6602 }
6603 0 arg1 = (gsl_rng *)(argp1);
6604 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6605 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6606 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pareto" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pareto" "', argument " "2"" of type '" "double""'"); 0 0 0
6607 }
6608 0 arg2 = (double)(val2);
6609 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6610 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6611 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pareto" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pareto" "', argument " "3"" of type '" "double""'"); 0 0 0
6612 }
6613 0 arg3 = (double)(val3);
6614 0 result = (double)gsl_ran_pareto((gsl_rng const *)arg1,arg2,arg3);
6615 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6616
6617
6618
6619 0 XSRETURN(argvi);
6620 0 fail:
6621
6622
6623
6624 0 SWIG_croak_null();
6625 }
6626 }
6627  
6628  
6629 0 XS(_wrap_gsl_ran_pareto_pdf) {
6630 {
6631 double arg1 ;
6632 double arg2 ;
6633 double arg3 ;
6634 double val1 ;
6635 0 int ecode1 = 0 ;
6636 double val2 ;
6637 0 int ecode2 = 0 ;
6638 double val3 ;
6639 0 int ecode3 = 0 ;
6640 0 int argvi = 0;
6641 double result;
6642 0 dXSARGS;
6643
6644 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6645 0 SWIG_croak("Usage: gsl_ran_pareto_pdf(x,a,b);");
6646 }
6647 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6648 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6649 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_pareto_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_pareto_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
6650 }
6651 0 arg1 = (double)(val1);
6652 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6653 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6654 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pareto_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_pareto_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6655 }
6656 0 arg2 = (double)(val2);
6657 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6658 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6659 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pareto_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_pareto_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
6660 }
6661 0 arg3 = (double)(val3);
6662 0 result = (double)gsl_ran_pareto_pdf(arg1,arg2,arg3);
6663 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6664
6665
6666
6667 0 XSRETURN(argvi);
6668 0 fail:
6669
6670
6671
6672 0 SWIG_croak_null();
6673 }
6674 }
6675  
6676  
6677 0 XS(_wrap_gsl_ran_poisson) {
6678 {
6679 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6680 double arg2 ;
6681 0 void *argp1 = 0 ;
6682 0 int res1 = 0 ;
6683 double val2 ;
6684 0 int ecode2 = 0 ;
6685 0 int argvi = 0;
6686 unsigned int result;
6687 0 dXSARGS;
6688
6689 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6690 0 SWIG_croak("Usage: gsl_ran_poisson(r,mu);");
6691 }
6692 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6693 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6694 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_poisson" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_poisson" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6695 }
6696 0 arg1 = (gsl_rng *)(argp1);
6697 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6698 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6699 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_poisson" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_poisson" "', argument " "2"" of type '" "double""'"); 0 0 0
6700 }
6701 0 arg2 = (double)(val2);
6702 0 result = (unsigned int)gsl_ran_poisson((gsl_rng const *)arg1,arg2);
6703 0 ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
6704
6705
6706 0 XSRETURN(argvi);
6707 0 fail:
6708
6709
6710 0 SWIG_croak_null();
6711 }
6712 }
6713  
6714  
6715 0 XS(_wrap_gsl_ran_poisson_array) {
6716 {
6717 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6718 size_t arg2 ;
6719 0 unsigned int *arg3 = (unsigned int *) (unsigned int *)0 ;
6720 double arg4 ;
6721 0 void *argp1 = 0 ;
6722 0 int res1 = 0 ;
6723 size_t val2 ;
6724 0 int ecode2 = 0 ;
6725 0 void *argp3 = 0 ;
6726 0 int res3 = 0 ;
6727 double val4 ;
6728 0 int ecode4 = 0 ;
6729 0 int argvi = 0;
6730 0 dXSARGS;
6731
6732 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
6733 0 SWIG_croak("Usage: gsl_ran_poisson_array(r,n,array,mu);");
6734 }
6735 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6736 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6737 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_poisson_array" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_poisson_array" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6738 }
6739 0 arg1 = (gsl_rng *)(argp1);
6740 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6741 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6742 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_poisson_array" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_poisson_array" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6743 }
6744 0 arg2 = (size_t)(val2);
6745 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
6746 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
6747 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_poisson_array" "', argument " "3"" of type '" "unsigned int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_ran_poisson_array" "', argument " "3"" of type '" "unsigned int []""'"); 0 0 0
6748 }
6749 0 arg3 = (unsigned int *)(argp3);
6750 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
6751 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
6752 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_poisson_array" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_poisson_array" "', argument " "4"" of type '" "double""'"); 0 0 0
6753 }
6754 0 arg4 = (double)(val4);
6755 0 gsl_ran_poisson_array((gsl_rng const *)arg1,arg2,arg3,arg4);
6756 0 ST(argvi) = &PL_sv_undef;
6757
6758
6759
6760
6761 0 XSRETURN(argvi);
6762 0 fail:
6763
6764
6765
6766
6767 0 SWIG_croak_null();
6768 }
6769 }
6770  
6771  
6772 0 XS(_wrap_gsl_ran_poisson_pdf) {
6773 {
6774 unsigned int arg1 ;
6775 double arg2 ;
6776 unsigned int val1 ;
6777 0 int ecode1 = 0 ;
6778 double val2 ;
6779 0 int ecode2 = 0 ;
6780 0 int argvi = 0;
6781 double result;
6782 0 dXSARGS;
6783
6784 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6785 0 SWIG_croak("Usage: gsl_ran_poisson_pdf(k,mu);");
6786 }
6787 0 ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6788 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6789 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_poisson_pdf" "', argument " "1"" of type '" "unsigned int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_poisson_pdf" "', argument " "1"" of type '" "unsigned int""'"); 0 0 0
6790 }
6791 0 arg1 = (unsigned int)(val1);
6792 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6793 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6794 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_poisson_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_poisson_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6795 }
6796 0 arg2 = (double)(val2);
6797 0 result = (double)gsl_ran_poisson_pdf(arg1,arg2);
6798 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6799
6800
6801 0 XSRETURN(argvi);
6802 0 fail:
6803
6804
6805 0 SWIG_croak_null();
6806 }
6807 }
6808  
6809  
6810 0 XS(_wrap_gsl_ran_rayleigh) {
6811 {
6812 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6813 double arg2 ;
6814 0 void *argp1 = 0 ;
6815 0 int res1 = 0 ;
6816 double val2 ;
6817 0 int ecode2 = 0 ;
6818 0 int argvi = 0;
6819 double result;
6820 0 dXSARGS;
6821
6822 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6823 0 SWIG_croak("Usage: gsl_ran_rayleigh(r,sigma);");
6824 }
6825 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6826 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6827 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_rayleigh" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_rayleigh" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6828 }
6829 0 arg1 = (gsl_rng *)(argp1);
6830 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6831 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6832 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh" "', argument " "2"" of type '" "double""'"); 0 0 0
6833 }
6834 0 arg2 = (double)(val2);
6835 0 result = (double)gsl_ran_rayleigh((gsl_rng const *)arg1,arg2);
6836 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6837
6838
6839 0 XSRETURN(argvi);
6840 0 fail:
6841
6842
6843 0 SWIG_croak_null();
6844 }
6845 }
6846  
6847  
6848 0 XS(_wrap_gsl_ran_rayleigh_pdf) {
6849 {
6850 double arg1 ;
6851 double arg2 ;
6852 double val1 ;
6853 0 int ecode1 = 0 ;
6854 double val2 ;
6855 0 int ecode2 = 0 ;
6856 0 int argvi = 0;
6857 double result;
6858 0 dXSARGS;
6859
6860 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6861 0 SWIG_croak("Usage: gsl_ran_rayleigh_pdf(x,sigma);");
6862 }
6863 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6864 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6865 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_rayleigh_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_rayleigh_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
6866 }
6867 0 arg1 = (double)(val1);
6868 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6869 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6870 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6871 }
6872 0 arg2 = (double)(val2);
6873 0 result = (double)gsl_ran_rayleigh_pdf(arg1,arg2);
6874 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6875
6876
6877 0 XSRETURN(argvi);
6878 0 fail:
6879
6880
6881 0 SWIG_croak_null();
6882 }
6883 }
6884  
6885  
6886 0 XS(_wrap_gsl_ran_rayleigh_tail) {
6887 {
6888 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6889 double arg2 ;
6890 double arg3 ;
6891 0 void *argp1 = 0 ;
6892 0 int res1 = 0 ;
6893 double val2 ;
6894 0 int ecode2 = 0 ;
6895 double val3 ;
6896 0 int ecode3 = 0 ;
6897 0 int argvi = 0;
6898 double result;
6899 0 dXSARGS;
6900
6901 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6902 0 SWIG_croak("Usage: gsl_ran_rayleigh_tail(r,a,sigma);");
6903 }
6904 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6905 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6906 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_rayleigh_tail" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_rayleigh_tail" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
6907 }
6908 0 arg1 = (gsl_rng *)(argp1);
6909 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6910 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6911 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh_tail" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh_tail" "', argument " "2"" of type '" "double""'"); 0 0 0
6912 }
6913 0 arg2 = (double)(val2);
6914 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6915 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6916 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_rayleigh_tail" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_rayleigh_tail" "', argument " "3"" of type '" "double""'"); 0 0 0
6917 }
6918 0 arg3 = (double)(val3);
6919 0 result = (double)gsl_ran_rayleigh_tail((gsl_rng const *)arg1,arg2,arg3);
6920 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6921
6922
6923
6924 0 XSRETURN(argvi);
6925 0 fail:
6926
6927
6928
6929 0 SWIG_croak_null();
6930 }
6931 }
6932  
6933  
6934 0 XS(_wrap_gsl_ran_rayleigh_tail_pdf) {
6935 {
6936 double arg1 ;
6937 double arg2 ;
6938 double arg3 ;
6939 double val1 ;
6940 0 int ecode1 = 0 ;
6941 double val2 ;
6942 0 int ecode2 = 0 ;
6943 double val3 ;
6944 0 int ecode3 = 0 ;
6945 0 int argvi = 0;
6946 double result;
6947 0 dXSARGS;
6948
6949 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
6950 0 SWIG_croak("Usage: gsl_ran_rayleigh_tail_pdf(x,a,sigma);");
6951 }
6952 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6953 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6954 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_rayleigh_tail_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_rayleigh_tail_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
6955 }
6956 0 arg1 = (double)(val1);
6957 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6958 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6959 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh_tail_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_rayleigh_tail_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
6960 }
6961 0 arg2 = (double)(val2);
6962 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6963 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6964 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_rayleigh_tail_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_rayleigh_tail_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
6965 }
6966 0 arg3 = (double)(val3);
6967 0 result = (double)gsl_ran_rayleigh_tail_pdf(arg1,arg2,arg3);
6968 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6969
6970
6971
6972 0 XSRETURN(argvi);
6973 0 fail:
6974
6975
6976
6977 0 SWIG_croak_null();
6978 }
6979 }
6980  
6981  
6982 0 XS(_wrap_gsl_ran_tdist) {
6983 {
6984 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
6985 double arg2 ;
6986 0 void *argp1 = 0 ;
6987 0 int res1 = 0 ;
6988 double val2 ;
6989 0 int ecode2 = 0 ;
6990 0 int argvi = 0;
6991 double result;
6992 0 dXSARGS;
6993
6994 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
6995 0 SWIG_croak("Usage: gsl_ran_tdist(r,nu);");
6996 }
6997 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
6998 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6999 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_tdist" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_tdist" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7000 }
7001 0 arg1 = (gsl_rng *)(argp1);
7002 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7003 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7004 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_tdist" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_tdist" "', argument " "2"" of type '" "double""'"); 0 0 0
7005 }
7006 0 arg2 = (double)(val2);
7007 0 result = (double)gsl_ran_tdist((gsl_rng const *)arg1,arg2);
7008 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7009
7010
7011 0 XSRETURN(argvi);
7012 0 fail:
7013
7014
7015 0 SWIG_croak_null();
7016 }
7017 }
7018  
7019  
7020 0 XS(_wrap_gsl_ran_tdist_pdf) {
7021 {
7022 double arg1 ;
7023 double arg2 ;
7024 double val1 ;
7025 0 int ecode1 = 0 ;
7026 double val2 ;
7027 0 int ecode2 = 0 ;
7028 0 int argvi = 0;
7029 double result;
7030 0 dXSARGS;
7031
7032 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7033 0 SWIG_croak("Usage: gsl_ran_tdist_pdf(x,nu);");
7034 }
7035 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
7036 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
7037 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_tdist_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_tdist_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
7038 }
7039 0 arg1 = (double)(val1);
7040 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7041 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7042 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_tdist_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_tdist_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
7043 }
7044 0 arg2 = (double)(val2);
7045 0 result = (double)gsl_ran_tdist_pdf(arg1,arg2);
7046 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7047
7048
7049 0 XSRETURN(argvi);
7050 0 fail:
7051
7052
7053 0 SWIG_croak_null();
7054 }
7055 }
7056  
7057  
7058 0 XS(_wrap_gsl_ran_laplace) {
7059 {
7060 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7061 double arg2 ;
7062 0 void *argp1 = 0 ;
7063 0 int res1 = 0 ;
7064 double val2 ;
7065 0 int ecode2 = 0 ;
7066 0 int argvi = 0;
7067 double result;
7068 0 dXSARGS;
7069
7070 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7071 0 SWIG_croak("Usage: gsl_ran_laplace(r,a);");
7072 }
7073 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7074 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7075 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_laplace" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_laplace" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7076 }
7077 0 arg1 = (gsl_rng *)(argp1);
7078 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7079 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7080 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_laplace" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_laplace" "', argument " "2"" of type '" "double""'"); 0 0 0
7081 }
7082 0 arg2 = (double)(val2);
7083 0 result = (double)gsl_ran_laplace((gsl_rng const *)arg1,arg2);
7084 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7085
7086
7087 0 XSRETURN(argvi);
7088 0 fail:
7089
7090
7091 0 SWIG_croak_null();
7092 }
7093 }
7094  
7095  
7096 0 XS(_wrap_gsl_ran_laplace_pdf) {
7097 {
7098 double arg1 ;
7099 double arg2 ;
7100 double val1 ;
7101 0 int ecode1 = 0 ;
7102 double val2 ;
7103 0 int ecode2 = 0 ;
7104 0 int argvi = 0;
7105 double result;
7106 0 dXSARGS;
7107
7108 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7109 0 SWIG_croak("Usage: gsl_ran_laplace_pdf(x,a);");
7110 }
7111 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
7112 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
7113 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_laplace_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_laplace_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
7114 }
7115 0 arg1 = (double)(val1);
7116 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7117 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7118 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_laplace_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_laplace_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
7119 }
7120 0 arg2 = (double)(val2);
7121 0 result = (double)gsl_ran_laplace_pdf(arg1,arg2);
7122 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7123
7124
7125 0 XSRETURN(argvi);
7126 0 fail:
7127
7128
7129 0 SWIG_croak_null();
7130 }
7131 }
7132  
7133  
7134 0 XS(_wrap_gsl_ran_levy) {
7135 {
7136 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7137 double arg2 ;
7138 double arg3 ;
7139 0 void *argp1 = 0 ;
7140 0 int res1 = 0 ;
7141 double val2 ;
7142 0 int ecode2 = 0 ;
7143 double val3 ;
7144 0 int ecode3 = 0 ;
7145 0 int argvi = 0;
7146 double result;
7147 0 dXSARGS;
7148
7149 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
7150 0 SWIG_croak("Usage: gsl_ran_levy(r,c,alpha);");
7151 }
7152 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7153 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7154 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_levy" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_levy" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7155 }
7156 0 arg1 = (gsl_rng *)(argp1);
7157 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7158 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7159 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_levy" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_levy" "', argument " "2"" of type '" "double""'"); 0 0 0
7160 }
7161 0 arg2 = (double)(val2);
7162 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7163 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7164 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_levy" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_levy" "', argument " "3"" of type '" "double""'"); 0 0 0
7165 }
7166 0 arg3 = (double)(val3);
7167 0 result = (double)gsl_ran_levy((gsl_rng const *)arg1,arg2,arg3);
7168 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7169
7170
7171
7172 0 XSRETURN(argvi);
7173 0 fail:
7174
7175
7176
7177 0 SWIG_croak_null();
7178 }
7179 }
7180  
7181  
7182 0 XS(_wrap_gsl_ran_levy_skew) {
7183 {
7184 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7185 double arg2 ;
7186 double arg3 ;
7187 double arg4 ;
7188 0 void *argp1 = 0 ;
7189 0 int res1 = 0 ;
7190 double val2 ;
7191 0 int ecode2 = 0 ;
7192 double val3 ;
7193 0 int ecode3 = 0 ;
7194 double val4 ;
7195 0 int ecode4 = 0 ;
7196 0 int argvi = 0;
7197 double result;
7198 0 dXSARGS;
7199
7200 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
7201 0 SWIG_croak("Usage: gsl_ran_levy_skew(r,c,alpha,beta);");
7202 }
7203 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7204 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7205 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_levy_skew" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_levy_skew" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7206 }
7207 0 arg1 = (gsl_rng *)(argp1);
7208 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7209 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7210 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_levy_skew" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_levy_skew" "', argument " "2"" of type '" "double""'"); 0 0 0
7211 }
7212 0 arg2 = (double)(val2);
7213 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7214 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7215 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_levy_skew" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_levy_skew" "', argument " "3"" of type '" "double""'"); 0 0 0
7216 }
7217 0 arg3 = (double)(val3);
7218 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
7219 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
7220 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_levy_skew" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_levy_skew" "', argument " "4"" of type '" "double""'"); 0 0 0
7221 }
7222 0 arg4 = (double)(val4);
7223 0 result = (double)gsl_ran_levy_skew((gsl_rng const *)arg1,arg2,arg3,arg4);
7224 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7225
7226
7227
7228
7229 0 XSRETURN(argvi);
7230 0 fail:
7231
7232
7233
7234
7235 0 SWIG_croak_null();
7236 }
7237 }
7238  
7239  
7240 0 XS(_wrap_gsl_ran_weibull) {
7241 {
7242 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7243 double arg2 ;
7244 double arg3 ;
7245 0 void *argp1 = 0 ;
7246 0 int res1 = 0 ;
7247 double val2 ;
7248 0 int ecode2 = 0 ;
7249 double val3 ;
7250 0 int ecode3 = 0 ;
7251 0 int argvi = 0;
7252 double result;
7253 0 dXSARGS;
7254
7255 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
7256 0 SWIG_croak("Usage: gsl_ran_weibull(r,a,b);");
7257 }
7258 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7259 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7260 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_weibull" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_weibull" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7261 }
7262 0 arg1 = (gsl_rng *)(argp1);
7263 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7264 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7265 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_weibull" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_weibull" "', argument " "2"" of type '" "double""'"); 0 0 0
7266 }
7267 0 arg2 = (double)(val2);
7268 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7269 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7270 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_weibull" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_weibull" "', argument " "3"" of type '" "double""'"); 0 0 0
7271 }
7272 0 arg3 = (double)(val3);
7273 0 result = (double)gsl_ran_weibull((gsl_rng const *)arg1,arg2,arg3);
7274 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7275
7276
7277
7278 0 XSRETURN(argvi);
7279 0 fail:
7280
7281
7282
7283 0 SWIG_croak_null();
7284 }
7285 }
7286  
7287  
7288 0 XS(_wrap_gsl_ran_weibull_pdf) {
7289 {
7290 double arg1 ;
7291 double arg2 ;
7292 double arg3 ;
7293 double val1 ;
7294 0 int ecode1 = 0 ;
7295 double val2 ;
7296 0 int ecode2 = 0 ;
7297 double val3 ;
7298 0 int ecode3 = 0 ;
7299 0 int argvi = 0;
7300 double result;
7301 0 dXSARGS;
7302
7303 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
7304 0 SWIG_croak("Usage: gsl_ran_weibull_pdf(x,a,b);");
7305 }
7306 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
7307 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
7308 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_weibull_pdf" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_weibull_pdf" "', argument " "1"" of type '" "double""'"); 0 0 0
7309 }
7310 0 arg1 = (double)(val1);
7311 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7312 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7313 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_weibull_pdf" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_weibull_pdf" "', argument " "2"" of type '" "double""'"); 0 0 0
7314 }
7315 0 arg2 = (double)(val2);
7316 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7317 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7318 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_weibull_pdf" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_weibull_pdf" "', argument " "3"" of type '" "double""'"); 0 0 0
7319 }
7320 0 arg3 = (double)(val3);
7321 0 result = (double)gsl_ran_weibull_pdf(arg1,arg2,arg3);
7322 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7323
7324
7325
7326 0 XSRETURN(argvi);
7327 0 fail:
7328
7329
7330
7331 0 SWIG_croak_null();
7332 }
7333 }
7334  
7335  
7336 0 XS(_wrap_gsl_ran_shuffle) {
7337 {
7338 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7339 0 void *arg2 = (void *) 0 ;
7340 size_t arg3 ;
7341 size_t arg4 ;
7342 0 void *argp1 = 0 ;
7343 0 int res1 = 0 ;
7344 size_t val3 ;
7345 0 int ecode3 = 0 ;
7346 size_t val4 ;
7347 0 int ecode4 = 0 ;
7348 0 int argvi = 0;
7349 0 dXSARGS;
7350
7351 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
7352 0 SWIG_croak("Usage: gsl_ran_shuffle(r,base,nmembm,size);");
7353 }
7354 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7355 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7356 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_shuffle" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_shuffle" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7357 }
7358 0 arg1 = (gsl_rng *)(argp1);
7359 {
7360 AV *tempav;
7361 I32 len;
7362 int i,x;
7363 SV **tv;
7364
7365 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
7366 0 croak("Argument 2 is not a reference.");
7367 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
7368 0 croak("Argument 2 is not an array.");
7369
7370 0 tempav = (AV*)SvRV(ST(1));
7371 0 len = av_len(tempav);
7372 0 arg2 = (int **) malloc((len+2)*sizeof(int *));
7373 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7374 0 tv = av_fetch(tempav, i, 0);
7375 0 x = SvIV(*tv);
7376 0 memset((int*)(arg2+i), x , 1);
7377 //printf("curr = %d\n", (int)(arg2+i) );
7378 }
7379 }
7380 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7381 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7382 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_shuffle" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_shuffle" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7383 }
7384 0 arg3 = (size_t)(val3);
7385 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
7386 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
7387 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_shuffle" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_ran_shuffle" "', argument " "4"" of type '" "size_t""'"); 0 0 0
7388 }
7389 0 arg4 = (size_t)(val4);
7390 0 gsl_ran_shuffle((gsl_rng const *)arg1,arg2,arg3,arg4);
7391 0 ST(argvi) = &PL_sv_undef;
7392
7393 {
7394 0 free(arg2);
7395 }
7396
7397
7398 0 XSRETURN(argvi);
7399 0 fail:
7400
7401 {
7402 0 free(arg2);
7403 }
7404
7405
7406 0 SWIG_croak_null();
7407 }
7408 }
7409  
7410  
7411 0 XS(_wrap_gsl_ran_choose) {
7412 {
7413 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7414 0 void *arg2 = (void *) 0 ;
7415 size_t arg3 ;
7416 0 void *arg4 = (void *) 0 ;
7417 size_t arg5 ;
7418 size_t arg6 ;
7419 0 void *argp1 = 0 ;
7420 0 int res1 = 0 ;
7421 size_t val3 ;
7422 0 int ecode3 = 0 ;
7423 size_t val5 ;
7424 0 int ecode5 = 0 ;
7425 size_t val6 ;
7426 0 int ecode6 = 0 ;
7427 0 int argvi = 0;
7428 int result;
7429 0 dXSARGS;
7430
7431 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
7432 0 SWIG_croak("Usage: gsl_ran_choose(r,dest,k,src,n,size);");
7433 }
7434 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7435 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7436 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_choose" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_choose" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7437 }
7438 0 arg1 = (gsl_rng *)(argp1);
7439 {
7440 AV *tempav;
7441 I32 len;
7442 int i,x;
7443 SV **tv;
7444
7445 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
7446 0 croak("Argument 2 is not a reference.");
7447 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
7448 0 croak("Argument 2 is not an array.");
7449
7450 0 tempav = (AV*)SvRV(ST(1));
7451 0 len = av_len(tempav);
7452 0 arg2 = (int **) malloc((len+2)*sizeof(int *));
7453 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7454 0 tv = av_fetch(tempav, i, 0);
7455 0 x = SvIV(*tv);
7456 0 memset((int*)(arg2+i), x , 1);
7457 //printf("curr = %d\n", (int)(arg2+i) );
7458 }
7459 }
7460 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7461 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7462 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_choose" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_choose" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7463 }
7464 0 arg3 = (size_t)(val3);
7465 {
7466 AV *tempav;
7467 I32 len;
7468 int i,x;
7469 SV **tv;
7470
7471 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
7472 0 croak("Argument 4 is not a reference.");
7473 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
7474 0 croak("Argument 4 is not an array.");
7475
7476 0 tempav = (AV*)SvRV(ST(3));
7477 0 len = av_len(tempav);
7478 0 arg4 = (int **) malloc((len+2)*sizeof(int *));
7479 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7480 0 tv = av_fetch(tempav, i, 0);
7481 0 x = SvIV(*tv);
7482 0 memset((int*)(arg4+i), x , 1);
7483 //printf("curr = %d\n", (int)(arg4+i) );
7484 }
7485 }
7486 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
7487 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
7488 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_ran_choose" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_ran_choose" "', argument " "5"" of type '" "size_t""'"); 0 0 0
7489 }
7490 0 arg5 = (size_t)(val5);
7491 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
7492 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
7493 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_ran_choose" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_ran_choose" "', argument " "6"" of type '" "size_t""'"); 0 0 0
7494 }
7495 0 arg6 = (size_t)(val6);
7496 0 result = (int)gsl_ran_choose((gsl_rng const *)arg1,arg2,arg3,arg4,arg5,arg6);
7497 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
7498
7499 {
7500 0 free(arg2);
7501 }
7502
7503 {
7504 0 free(arg4);
7505 }
7506
7507
7508 0 XSRETURN(argvi);
7509 0 fail:
7510
7511 {
7512 0 free(arg2);
7513 }
7514
7515 {
7516 0 free(arg4);
7517 }
7518
7519
7520 0 SWIG_croak_null();
7521 }
7522 }
7523  
7524  
7525 0 XS(_wrap_gsl_ran_sample) {
7526 {
7527 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7528 0 void *arg2 = (void *) 0 ;
7529 size_t arg3 ;
7530 0 void *arg4 = (void *) 0 ;
7531 size_t arg5 ;
7532 size_t arg6 ;
7533 0 void *argp1 = 0 ;
7534 0 int res1 = 0 ;
7535 size_t val3 ;
7536 0 int ecode3 = 0 ;
7537 size_t val5 ;
7538 0 int ecode5 = 0 ;
7539 size_t val6 ;
7540 0 int ecode6 = 0 ;
7541 0 int argvi = 0;
7542 0 dXSARGS;
7543
7544 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
7545 0 SWIG_croak("Usage: gsl_ran_sample(r,dest,k,src,n,size);");
7546 }
7547 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7548 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7549 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_sample" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_sample" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7550 }
7551 0 arg1 = (gsl_rng *)(argp1);
7552 {
7553 AV *tempav;
7554 I32 len;
7555 int i,x;
7556 SV **tv;
7557
7558 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
7559 0 croak("Argument 2 is not a reference.");
7560 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
7561 0 croak("Argument 2 is not an array.");
7562
7563 0 tempav = (AV*)SvRV(ST(1));
7564 0 len = av_len(tempav);
7565 0 arg2 = (int **) malloc((len+2)*sizeof(int *));
7566 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7567 0 tv = av_fetch(tempav, i, 0);
7568 0 x = SvIV(*tv);
7569 0 memset((int*)(arg2+i), x , 1);
7570 //printf("curr = %d\n", (int)(arg2+i) );
7571 }
7572 }
7573 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7574 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7575 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_sample" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_ran_sample" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7576 }
7577 0 arg3 = (size_t)(val3);
7578 {
7579 AV *tempav;
7580 I32 len;
7581 int i,x;
7582 SV **tv;
7583
7584 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
7585 0 croak("Argument 4 is not a reference.");
7586 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
7587 0 croak("Argument 4 is not an array.");
7588
7589 0 tempav = (AV*)SvRV(ST(3));
7590 0 len = av_len(tempav);
7591 0 arg4 = (int **) malloc((len+2)*sizeof(int *));
7592 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7593 0 tv = av_fetch(tempav, i, 0);
7594 0 x = SvIV(*tv);
7595 0 memset((int*)(arg4+i), x , 1);
7596 //printf("curr = %d\n", (int)(arg4+i) );
7597 }
7598 }
7599 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
7600 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
7601 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_ran_sample" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_ran_sample" "', argument " "5"" of type '" "size_t""'"); 0 0 0
7602 }
7603 0 arg5 = (size_t)(val5);
7604 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
7605 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
7606 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_ran_sample" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_ran_sample" "', argument " "6"" of type '" "size_t""'"); 0 0 0
7607 }
7608 0 arg6 = (size_t)(val6);
7609 0 gsl_ran_sample((gsl_rng const *)arg1,arg2,arg3,arg4,arg5,arg6);
7610 0 ST(argvi) = &PL_sv_undef;
7611
7612 {
7613 0 free(arg2);
7614 }
7615
7616 {
7617 0 free(arg4);
7618 }
7619
7620
7621 0 XSRETURN(argvi);
7622 0 fail:
7623
7624 {
7625 0 free(arg2);
7626 }
7627
7628 {
7629 0 free(arg4);
7630 }
7631
7632
7633 0 SWIG_croak_null();
7634 }
7635 }
7636  
7637  
7638 0 XS(_wrap_gsl_ran_discrete_t_K_set) {
7639 {
7640 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7641 size_t arg2 ;
7642 0 void *argp1 = 0 ;
7643 0 int res1 = 0 ;
7644 size_t val2 ;
7645 0 int ecode2 = 0 ;
7646 0 int argvi = 0;
7647 0 dXSARGS;
7648
7649 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7650 0 SWIG_croak("Usage: gsl_ran_discrete_t_K_set(self,K);");
7651 }
7652 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7653 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7654 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_K_set" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_K_set" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7655 }
7656 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7657 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7658 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7659 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_discrete_t_K_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_ran_discrete_t_K_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7660 }
7661 0 arg2 = (size_t)(val2);
7662 0 ▶ if (arg1) (arg1)->K = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->K = arg2; 0 0 0
7663 0 ST(argvi) = &PL_sv_undef;
7664
7665
7666 0 XSRETURN(argvi);
7667 0 fail:
7668
7669
7670 0 SWIG_croak_null();
7671 }
7672 }
7673  
7674  
7675 0 XS(_wrap_gsl_ran_discrete_t_K_get) {
7676 {
7677 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7678 0 void *argp1 = 0 ;
7679 0 int res1 = 0 ;
7680 0 int argvi = 0;
7681 size_t result;
7682 0 dXSARGS;
7683
7684 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
7685 0 SWIG_croak("Usage: gsl_ran_discrete_t_K_get(self);");
7686 }
7687 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7688 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7689 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_K_get" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_K_get" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7690 }
7691 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7692 0 result = ((arg1)->K);
7693 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
7694
7695 0 XSRETURN(argvi);
7696 0 fail:
7697
7698 0 SWIG_croak_null();
7699 }
7700 }
7701  
7702  
7703 0 XS(_wrap_gsl_ran_discrete_t_A_set) {
7704 {
7705 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7706 0 size_t *arg2 = (size_t *) 0 ;
7707 0 void *argp1 = 0 ;
7708 0 int res1 = 0 ;
7709 0 void *argp2 = 0 ;
7710 0 int res2 = 0 ;
7711 0 int argvi = 0;
7712 0 dXSARGS;
7713
7714 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7715 0 SWIG_croak("Usage: gsl_ran_discrete_t_A_set(self,A);");
7716 }
7717 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7718 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7719 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_A_set" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_A_set" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7720 }
7721 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7722 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_size_t, SWIG_POINTER_DISOWN | 0 );
7723 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
7724 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_t_A_set" "', argument " "2"" of type '" "size_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_t_A_set" "', argument " "2"" of type '" "size_t *""'"); 0 0 0
7725 }
7726 0 arg2 = (size_t *)(argp2);
7727 0 ▶ if (arg1) (arg1)->A = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->A = arg2; 0 0 0
7728 0 ST(argvi) = &PL_sv_undef;
7729
7730
7731 0 XSRETURN(argvi);
7732 0 fail:
7733
7734
7735 0 SWIG_croak_null();
7736 }
7737 }
7738  
7739  
7740 0 XS(_wrap_gsl_ran_discrete_t_A_get) {
7741 {
7742 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7743 0 void *argp1 = 0 ;
7744 0 int res1 = 0 ;
7745 0 int argvi = 0;
7746 0 size_t *result = 0 ;
7747 0 dXSARGS;
7748
7749 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
7750 0 SWIG_croak("Usage: gsl_ran_discrete_t_A_get(self);");
7751 }
7752 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7753 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7754 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_A_get" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_A_get" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7755 }
7756 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7757 0 result = (size_t *) ((arg1)->A);
7758 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0); argvi++ ;
7759
7760 0 XSRETURN(argvi);
7761 0 fail:
7762
7763 0 SWIG_croak_null();
7764 }
7765 }
7766  
7767  
7768 0 XS(_wrap_gsl_ran_discrete_t_F_set) {
7769 {
7770 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7771 0 double *arg2 = (double *) 0 ;
7772 0 void *argp1 = 0 ;
7773 0 int res1 = 0 ;
7774 0 void *argp2 = 0 ;
7775 0 int res2 = 0 ;
7776 0 int argvi = 0;
7777 0 dXSARGS;
7778
7779 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7780 0 SWIG_croak("Usage: gsl_ran_discrete_t_F_set(self,F);");
7781 }
7782 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7783 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7784 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_F_set" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_F_set" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7785 }
7786 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7787 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
7788 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
7789 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_t_F_set" "', argument " "2"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_t_F_set" "', argument " "2"" of type '" "double *""'"); 0 0 0
7790 }
7791 0 arg2 = (double *)(argp2);
7792 0 ▶ if (arg1) (arg1)->F = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->F = arg2; 0 0 0
7793 0 ST(argvi) = &PL_sv_undef;
7794
7795
7796 0 XSRETURN(argvi);
7797 0 fail:
7798
7799
7800 0 SWIG_croak_null();
7801 }
7802 }
7803  
7804  
7805 0 XS(_wrap_gsl_ran_discrete_t_F_get) {
7806 {
7807 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7808 0 void *argp1 = 0 ;
7809 0 int res1 = 0 ;
7810 0 int argvi = 0;
7811 0 double *result = 0 ;
7812 0 dXSARGS;
7813
7814 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
7815 0 SWIG_croak("Usage: gsl_ran_discrete_t_F_get(self);");
7816 }
7817 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7818 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7819 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_F_get" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_t_F_get" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7820 }
7821 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7822 0 result = (double *) ((arg1)->F);
7823 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
7824
7825 0 XSRETURN(argvi);
7826 0 fail:
7827
7828 0 SWIG_croak_null();
7829 }
7830 }
7831  
7832  
7833 0 XS(_wrap_new_gsl_ran_discrete_t) {
7834 {
7835 0 int argvi = 0;
7836 0 gsl_ran_discrete_t *result = 0 ;
7837 0 dXSARGS;
7838
7839 0 ▶ if ((items < 0) || (items > 0)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 0) || (items > 0)) { 0 0 0
if ((items < 0) || (items > 0)) { 0 0 0
7840 0 SWIG_croak("Usage: new_gsl_ran_discrete_t();");
7841 }
7842 0 result = (gsl_ran_discrete_t *)calloc(1, sizeof(gsl_ran_discrete_t));
7843 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_ran_discrete_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
7844 0 XSRETURN(argvi);
7845 0 fail:
7846 0 SWIG_croak_null();
7847 }
7848 }
7849  
7850  
7851 0 XS(_wrap_delete_gsl_ran_discrete_t) {
7852 {
7853 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7854 0 void *argp1 = 0 ;
7855 0 int res1 = 0 ;
7856 0 int argvi = 0;
7857 0 dXSARGS;
7858
7859 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
7860 0 SWIG_croak("Usage: delete_gsl_ran_discrete_t(self);");
7861 }
7862 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, SWIG_POINTER_DISOWN | 0 );
7863 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7864 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_ran_discrete_t" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_ran_discrete_t" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7865 }
7866 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7867 0 free((char *) arg1);
7868 0 ST(argvi) = &PL_sv_undef;
7869
7870 0 XSRETURN(argvi);
7871 0 fail:
7872
7873 0 SWIG_croak_null();
7874 }
7875 }
7876  
7877  
7878 0 XS(_wrap_gsl_ran_discrete_preproc) {
7879 {
7880 size_t arg1 ;
7881 0 double *arg2 = (double *) 0 ;
7882 size_t val1 ;
7883 0 int ecode1 = 0 ;
7884 0 void *argp2 = 0 ;
7885 0 int res2 = 0 ;
7886 0 int argvi = 0;
7887 0 gsl_ran_discrete_t *result = 0 ;
7888 0 dXSARGS;
7889
7890 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7891 0 SWIG_croak("Usage: gsl_ran_discrete_preproc(K,P);");
7892 }
7893 0 ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
7894 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
7895 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_discrete_preproc" "', argument " "1"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_discrete_preproc" "', argument " "1"" of type '" "size_t""'"); 0 0 0
7896 }
7897 0 arg1 = (size_t)(val1);
7898 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, 0 | 0 );
7899 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
7900 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_preproc" "', argument " "2"" of type '" "double const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_preproc" "', argument " "2"" of type '" "double const *""'"); 0 0 0
7901 }
7902 0 arg2 = (double *)(argp2);
7903 0 result = (gsl_ran_discrete_t *)gsl_ran_discrete_preproc(arg1,(double const *)arg2);
7904 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_ran_discrete_t, 0 | SWIG_SHADOW); argvi++ ;
7905
7906
7907 0 XSRETURN(argvi);
7908 0 fail:
7909
7910
7911 0 SWIG_croak_null();
7912 }
7913 }
7914  
7915  
7916 0 XS(_wrap_gsl_ran_discrete_free) {
7917 {
7918 0 gsl_ran_discrete_t *arg1 = (gsl_ran_discrete_t *) 0 ;
7919 0 void *argp1 = 0 ;
7920 0 int res1 = 0 ;
7921 0 int argvi = 0;
7922 0 dXSARGS;
7923
7924 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
7925 0 SWIG_croak("Usage: gsl_ran_discrete_free(g);");
7926 }
7927 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7928 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7929 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_free" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete_free" "', argument " "1"" of type '" "gsl_ran_discrete_t *""'"); 0 0 0
7930 }
7931 0 arg1 = (gsl_ran_discrete_t *)(argp1);
7932 0 gsl_ran_discrete_free(arg1);
7933 0 ST(argvi) = &PL_sv_undef;
7934
7935 0 XSRETURN(argvi);
7936 0 fail:
7937
7938 0 SWIG_croak_null();
7939 }
7940 }
7941  
7942  
7943 0 XS(_wrap_gsl_ran_discrete) {
7944 {
7945 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
7946 0 gsl_ran_discrete_t *arg2 = (gsl_ran_discrete_t *) 0 ;
7947 0 void *argp1 = 0 ;
7948 0 int res1 = 0 ;
7949 0 void *argp2 = 0 ;
7950 0 int res2 = 0 ;
7951 0 int argvi = 0;
7952 size_t result;
7953 0 dXSARGS;
7954
7955 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7956 0 SWIG_croak("Usage: gsl_ran_discrete(r,g);");
7957 }
7958 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
7959 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7960 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_ran_discrete" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
7961 }
7962 0 arg1 = (gsl_rng *)(argp1);
7963 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
7964 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
7965 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete" "', argument " "2"" of type '" "gsl_ran_discrete_t const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete" "', argument " "2"" of type '" "gsl_ran_discrete_t const *""'"); 0 0 0
7966 }
7967 0 arg2 = (gsl_ran_discrete_t *)(argp2);
7968 0 result = gsl_ran_discrete((gsl_rng const *)arg1,(gsl_ran_discrete_t const *)arg2);
7969 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
7970
7971
7972 0 XSRETURN(argvi);
7973 0 fail:
7974
7975
7976 0 SWIG_croak_null();
7977 }
7978 }
7979  
7980  
7981 0 XS(_wrap_gsl_ran_discrete_pdf) {
7982 {
7983 size_t arg1 ;
7984 0 gsl_ran_discrete_t *arg2 = (gsl_ran_discrete_t *) 0 ;
7985 size_t val1 ;
7986 0 int ecode1 = 0 ;
7987 0 void *argp2 = 0 ;
7988 0 int res2 = 0 ;
7989 0 int argvi = 0;
7990 double result;
7991 0 dXSARGS;
7992
7993 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
7994 0 SWIG_croak("Usage: gsl_ran_discrete_pdf(k,g);");
7995 }
7996 0 ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
7997 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
7998 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_discrete_pdf" "', argument " "1"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_ran_discrete_pdf" "', argument " "1"" of type '" "size_t""'"); 0 0 0
7999 }
8000 0 arg1 = (size_t)(val1);
8001 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_ran_discrete_t, 0 | 0 );
8002 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
8003 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_pdf" "', argument " "2"" of type '" "gsl_ran_discrete_t const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_ran_discrete_pdf" "', argument " "2"" of type '" "gsl_ran_discrete_t const *""'"); 0 0 0
8004 }
8005 0 arg2 = (gsl_ran_discrete_t *)(argp2);
8006 0 result = (double)gsl_ran_discrete_pdf(arg1,(gsl_ran_discrete_t const *)arg2);
8007 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8008
8009
8010 0 XSRETURN(argvi);
8011 0 fail:
8012
8013
8014 0 SWIG_croak_null();
8015 }
8016 }
8017  
8018  
8019 0 XS(_wrap_our_gsl_ran_shuffle) {
8020 {
8021 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
8022 0 int *arg2 = (int *) 0 ;
8023 size_t arg3 ;
8024 0 void *argp1 = 0 ;
8025 0 int res1 = 0 ;
8026 size_t val3 ;
8027 0 int ecode3 = 0 ;
8028 0 int argvi = 0;
8029 0 array_wrapper *result = 0 ;
8030 0 dXSARGS;
8031
8032 0 ▶ if ((items < 3) || (items > 3)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 3) || (items > 3)) { 0 0 0
if ((items < 3) || (items > 3)) { 0 0 0
8033 0 SWIG_croak("Usage: our_gsl_ran_shuffle(r,v,n);");
8034 }
8035 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
8036 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
8037 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "our_gsl_ran_shuffle" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "our_gsl_ran_shuffle" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
8038 }
8039 0 arg1 = (gsl_rng *)(argp1);
8040 {
8041 AV *tempav;
8042 I32 len;
8043 int i;
8044 SV **tv;
8045 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
8046 0 croak("Math::GSL : $v is not a reference!");
8047 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
8048 0 croak("Math::GSL : $v is not an array ref!");
8049
8050 0 tempav = (AV*)SvRV(ST(1));
8051 0 len = av_len(tempav);
8052 0 arg2 = (int *) malloc((len+2)*sizeof(int));
8053 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8054 0 tv = av_fetch(tempav, i, 0);
8055 0 arg2[i] = (int) SvNV(*tv);
8056 }
8057 }
8058 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8059 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8060 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "our_gsl_ran_shuffle" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "our_gsl_ran_shuffle" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8061 }
8062 0 arg3 = (size_t)(val3);
8063 0 result = (array_wrapper *)our_gsl_ran_shuffle((gsl_rng const *)arg1,arg2,arg3);
8064 {
8065 SV** tmparr;
8066 AV* av;
8067 array_wrapper * wrapper;
8068 int i;
8069
8070 double * dptr;
8071 float * fptr;
8072 int * iptr;
8073 unsigned int * uptr;
8074
8075 0 wrapper = result;
8076
8077 0 tmparr = malloc(sizeof(SV*) * wrapper->size);
8078 0 ▶ if (tmparr == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (tmparr == NULL) 0 0 0
8079 0 croak("out typemap for array_wrapper: couldn't malloc tmparr");
8080
8081 0 switch (wrapper->type){
8082 0 case awDouble:
8083 0 dptr = (double *)wrapper->data;
8084 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8085 0 tmparr[i] = newSVnv(dptr[i]);
8086 }
8087 0 break;
8088 0 case awFloat:
8089 0 fptr = (float *)wrapper->data;
8090 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8091 0 tmparr[i] = newSVnv((double)fptr[i]);
8092 }
8093 0 break;
8094 0 case awInt:
8095 0 iptr = (int *)wrapper->data;
8096 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8097 0 tmparr[i] = newSViv(iptr[i]);
8098 }
8099 0 break;
8100 0 case awUnsigned:
8101 0 uptr = (unsigned int*)wrapper->data;
8102 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8103 0 tmparr[i] = newSVuv(uptr[i]);
8104 }
8105 0 break;
8106 0 default:
8107 0 croak("out typemap for array_wrapper : type should be awDouble, awFloat, awInt, or awUnsigned");
8108 }
8109
8110 0 av = av_make(wrapper->size, tmparr);
8111 0 ST(argvi) = sv_2mortal(newRV_noinc((SV*) av));
8112 0 free(tmparr);
8113 0 array_wrapper_free(wrapper);
8114 0 argvi++;
8115 }
8116
8117 {
8118 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
8119 }
8120
8121 0 XSRETURN(argvi);
8122 0 fail:
8123
8124 {
8125 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
8126 }
8127
8128 0 SWIG_croak_null();
8129 }
8130 }
8131  
8132  
8133 0 XS(_wrap_our_gsl_ran_choose) {
8134 {
8135 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
8136 size_t arg2 ;
8137 0 int *arg3 = (int *) 0 ;
8138 size_t arg4 ;
8139 0 void *argp1 = 0 ;
8140 0 int res1 = 0 ;
8141 size_t val2 ;
8142 0 int ecode2 = 0 ;
8143 size_t val4 ;
8144 0 int ecode4 = 0 ;
8145 0 int argvi = 0;
8146 0 array_wrapper *result = 0 ;
8147 0 dXSARGS;
8148
8149 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
8150 0 SWIG_croak("Usage: our_gsl_ran_choose(r,k,v,n);");
8151 }
8152 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
8153 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
8154 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "our_gsl_ran_choose" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "our_gsl_ran_choose" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
8155 }
8156 0 arg1 = (gsl_rng *)(argp1);
8157 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8158 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8159 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "our_gsl_ran_choose" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "our_gsl_ran_choose" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8160 }
8161 0 arg2 = (size_t)(val2);
8162 {
8163 AV *tempav;
8164 I32 len;
8165 int i;
8166 SV **tv;
8167 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
8168 0 croak("Math::GSL : $v is not a reference!");
8169 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
8170 0 croak("Math::GSL : $v is not an array ref!");
8171
8172 0 tempav = (AV*)SvRV(ST(2));
8173 0 len = av_len(tempav);
8174 0 arg3 = (int *) malloc((len+2)*sizeof(int));
8175 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8176 0 tv = av_fetch(tempav, i, 0);
8177 0 arg3[i] = (int) SvNV(*tv);
8178 }
8179 }
8180 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8181 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8182 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "our_gsl_ran_choose" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "our_gsl_ran_choose" "', argument " "4"" of type '" "size_t""'"); 0 0 0
8183 }
8184 0 arg4 = (size_t)(val4);
8185 0 result = (array_wrapper *)our_gsl_ran_choose((gsl_rng const *)arg1,arg2,arg3,arg4);
8186 {
8187 SV** tmparr;
8188 AV* av;
8189 array_wrapper * wrapper;
8190 int i;
8191
8192 double * dptr;
8193 float * fptr;
8194 int * iptr;
8195 unsigned int * uptr;
8196
8197 0 wrapper = result;
8198
8199 0 tmparr = malloc(sizeof(SV*) * wrapper->size);
8200 0 ▶ if (tmparr == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (tmparr == NULL) 0 0 0
8201 0 croak("out typemap for array_wrapper: couldn't malloc tmparr");
8202
8203 0 switch (wrapper->type){
8204 0 case awDouble:
8205 0 dptr = (double *)wrapper->data;
8206 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8207 0 tmparr[i] = newSVnv(dptr[i]);
8208 }
8209 0 break;
8210 0 case awFloat:
8211 0 fptr = (float *)wrapper->data;
8212 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8213 0 tmparr[i] = newSVnv((double)fptr[i]);
8214 }
8215 0 break;
8216 0 case awInt:
8217 0 iptr = (int *)wrapper->data;
8218 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8219 0 tmparr[i] = newSViv(iptr[i]);
8220 }
8221 0 break;
8222 0 case awUnsigned:
8223 0 uptr = (unsigned int*)wrapper->data;
8224 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8225 0 tmparr[i] = newSVuv(uptr[i]);
8226 }
8227 0 break;
8228 0 default:
8229 0 croak("out typemap for array_wrapper : type should be awDouble, awFloat, awInt, or awUnsigned");
8230 }
8231
8232 0 av = av_make(wrapper->size, tmparr);
8233 0 ST(argvi) = sv_2mortal(newRV_noinc((SV*) av));
8234 0 free(tmparr);
8235 0 array_wrapper_free(wrapper);
8236 0 argvi++;
8237 }
8238
8239
8240 {
8241 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8242 }
8243
8244 0 XSRETURN(argvi);
8245 0 fail:
8246
8247
8248 {
8249 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8250 }
8251
8252 0 SWIG_croak_null();
8253 }
8254 }
8255  
8256  
8257 0 XS(_wrap_our_gsl_ran_sample) {
8258 {
8259 0 gsl_rng *arg1 = (gsl_rng *) 0 ;
8260 size_t arg2 ;
8261 0 int *arg3 = (int *) 0 ;
8262 size_t arg4 ;
8263 0 void *argp1 = 0 ;
8264 0 int res1 = 0 ;
8265 size_t val2 ;
8266 0 int ecode2 = 0 ;
8267 size_t val4 ;
8268 0 int ecode4 = 0 ;
8269 0 int argvi = 0;
8270 0 array_wrapper *result = 0 ;
8271 0 dXSARGS;
8272
8273 0 ▶ if ((items < 4) || (items > 4)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 4) || (items > 4)) { 0 0 0
if ((items < 4) || (items > 4)) { 0 0 0
8274 0 SWIG_croak("Usage: our_gsl_ran_sample(r,k,v,n);");
8275 }
8276 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_rng, 0 | 0 );
8277 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
8278 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "our_gsl_ran_sample" "', argument " "1"" of type '" "gsl_rng const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "our_gsl_ran_sample" "', argument " "1"" of type '" "gsl_rng const *""'"); 0 0 0
8279 }
8280 0 arg1 = (gsl_rng *)(argp1);
8281 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8282 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8283 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "our_gsl_ran_sample" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "our_gsl_ran_sample" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8284 }
8285 0 arg2 = (size_t)(val2);
8286 {
8287 AV *tempav;
8288 I32 len;
8289 int i;
8290 SV **tv;
8291 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
8292 0 croak("Math::GSL : $v is not a reference!");
8293 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
8294 0 croak("Math::GSL : $v is not an array ref!");
8295
8296 0 tempav = (AV*)SvRV(ST(2));
8297 0 len = av_len(tempav);
8298 0 arg3 = (int *) malloc((len+2)*sizeof(int));
8299 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8300 0 tv = av_fetch(tempav, i, 0);
8301 0 arg3[i] = (int) SvNV(*tv);
8302 }
8303 }
8304 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8305 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8306 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "our_gsl_ran_sample" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "our_gsl_ran_sample" "', argument " "4"" of type '" "size_t""'"); 0 0 0
8307 }
8308 0 arg4 = (size_t)(val4);
8309 0 result = (array_wrapper *)our_gsl_ran_sample((gsl_rng const *)arg1,arg2,arg3,arg4);
8310 {
8311 SV** tmparr;
8312 AV* av;
8313 array_wrapper * wrapper;
8314 int i;
8315
8316 double * dptr;
8317 float * fptr;
8318 int * iptr;
8319 unsigned int * uptr;
8320
8321 0 wrapper = result;
8322
8323 0 tmparr = malloc(sizeof(SV*) * wrapper->size);
8324 0 ▶ if (tmparr == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (tmparr == NULL) 0 0 0
8325 0 croak("out typemap for array_wrapper: couldn't malloc tmparr");
8326
8327 0 switch (wrapper->type){
8328 0 case awDouble:
8329 0 dptr = (double *)wrapper->data;
8330 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8331 0 tmparr[i] = newSVnv(dptr[i]);
8332 }
8333 0 break;
8334 0 case awFloat:
8335 0 fptr = (float *)wrapper->data;
8336 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8337 0 tmparr[i] = newSVnv((double)fptr[i]);
8338 }
8339 0 break;
8340 0 case awInt:
8341 0 iptr = (int *)wrapper->data;
8342 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8343 0 tmparr[i] = newSViv(iptr[i]);
8344 }
8345 0 break;
8346 0 case awUnsigned:
8347 0 uptr = (unsigned int*)wrapper->data;
8348 0 ▶ for (i=0; i< wrapper->size; i++){
Branch: 1 branch
BranchTrueFalseTotal
for (i=0; i< wrapper->size; i++){ 0 0 0
8349 0 tmparr[i] = newSVuv(uptr[i]);
8350 }
8351 0 break;
8352 0 default:
8353 0 croak("out typemap for array_wrapper : type should be awDouble, awFloat, awInt, or awUnsigned");
8354 }
8355
8356 0 av = av_make(wrapper->size, tmparr);
8357 0 ST(argvi) = sv_2mortal(newRV_noinc((SV*) av));
8358 0 free(tmparr);
8359 0 array_wrapper_free(wrapper);
8360 0 argvi++;
8361 }
8362
8363
8364 {
8365 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8366 }
8367
8368 0 XSRETURN(argvi);
8369 0 fail:
8370
8371
8372 {
8373 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8374 }
8375
8376 0 SWIG_croak_null();
8377 }
8378 }
8379  
8380  
8381  
8382 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8383  
8384 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
8385 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
8386 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
8387 static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__char_int_int__void = {"_p_f_p_q_const__char_p_q_const__char_int_int__void", "gsl_error_handler_t *|void (*)(char const *,char const *,int,int)", 0, 0, (void*)0, 0};
8388 static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void = {"_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void", "gsl_stream_handler_t *|void (*)(char const *,char const *,int,char const *)", 0, 0, (void*)0, 0};
8389 static swig_type_info _swigt__p_gsl_matrix = {"_p_gsl_matrix", "gsl_matrix *", 0, 0, (void*)0, 0};
8390 static swig_type_info _swigt__p_gsl_ran_discrete_t = {"_p_gsl_ran_discrete_t", "gsl_ran_discrete_t *", 0, 0, (void*)"Math::GSL::Randist::gsl_ran_discrete_t", 0};
8391 static swig_type_info _swigt__p_gsl_rng = {"_p_gsl_rng", "gsl_rng *", 0, 0, (void*)0, 0};
8392 static swig_type_info _swigt__p_gsl_vector = {"_p_gsl_vector", "gsl_vector *", 0, 0, (void*)0, 0};
8393 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
8394 static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, (void*)0, 0};
8395 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0};
8396  
8397 static swig_type_info *swig_type_initial[] = {
8398 &_swigt__p_FILE,
8399 &_swigt__p_char,
8400 &_swigt__p_double,
8401 &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void,
8402 &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
8403 &_swigt__p_gsl_matrix,
8404 &_swigt__p_gsl_ran_discrete_t,
8405 &_swigt__p_gsl_rng,
8406 &_swigt__p_gsl_vector,
8407 &_swigt__p_int,
8408 &_swigt__p_size_t,
8409 &_swigt__p_unsigned_int,
8410 };
8411  
8412 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
8413 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
8414 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
8415 static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void[] = { {&_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void, 0, 0, 0},{0, 0, 0, 0}};
8416 static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void[] = { {&_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}};
8417 static swig_cast_info _swigc__p_gsl_matrix[] = { {&_swigt__p_gsl_matrix, 0, 0, 0},{0, 0, 0, 0}};
8418 static swig_cast_info _swigc__p_gsl_ran_discrete_t[] = { {&_swigt__p_gsl_ran_discrete_t, 0, 0, 0},{0, 0, 0, 0}};
8419 static swig_cast_info _swigc__p_gsl_rng[] = { {&_swigt__p_gsl_rng, 0, 0, 0},{0, 0, 0, 0}};
8420 static swig_cast_info _swigc__p_gsl_vector[] = { {&_swigt__p_gsl_vector, 0, 0, 0},{0, 0, 0, 0}};
8421 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
8422 static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
8423 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
8424  
8425 static swig_cast_info *swig_cast_initial[] = {
8426 _swigc__p_FILE,
8427 _swigc__p_char,
8428 _swigc__p_double,
8429 _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void,
8430 _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
8431 _swigc__p_gsl_matrix,
8432 _swigc__p_gsl_ran_discrete_t,
8433 _swigc__p_gsl_rng,
8434 _swigc__p_gsl_vector,
8435 _swigc__p_int,
8436 _swigc__p_size_t,
8437 _swigc__p_unsigned_int,
8438 };
8439  
8440  
8441 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
8442  
8443 static swig_constant_info swig_constants[] = {
8444 {0,0,0,0,0,0}
8445 };
8446 #ifdef __cplusplus
8447 }
8448 #endif
8449 static swig_variable_info swig_variables[] = {
8450 {0,0,0,0}
8451 };
8452 static swig_command_info swig_commands[] = {
8453 {"Math::GSL::Randistc::gsl_error", _wrap_gsl_error},
8454 {"Math::GSL::Randistc::gsl_stream_printf", _wrap_gsl_stream_printf},
8455 {"Math::GSL::Randistc::gsl_strerror", _wrap_gsl_strerror},
8456 {"Math::GSL::Randistc::gsl_set_error_handler", _wrap_gsl_set_error_handler},
8457 {"Math::GSL::Randistc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off},
8458 {"Math::GSL::Randistc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler},
8459 {"Math::GSL::Randistc::gsl_set_stream", _wrap_gsl_set_stream},
8460 {"Math::GSL::Randistc::gsl_ran_dir_2d", _wrap_gsl_ran_dir_2d},
8461 {"Math::GSL::Randistc::gsl_ran_dir_2d_trig_method", _wrap_gsl_ran_dir_2d_trig_method},
8462 {"Math::GSL::Randistc::gsl_ran_dir_3d", _wrap_gsl_ran_dir_3d},
8463 {"Math::GSL::Randistc::gsl_ran_bivariate_gaussian", _wrap_gsl_ran_bivariate_gaussian},
8464 {"Math::GSL::Randistc::gsl_ran_dirichlet", _wrap_gsl_ran_dirichlet},
8465 {"Math::GSL::Randistc::gsl_ran_dirichlet_pdf", _wrap_gsl_ran_dirichlet_pdf},
8466 {"Math::GSL::Randistc::gsl_ran_dirichlet_lnpdf", _wrap_gsl_ran_dirichlet_lnpdf},
8467 {"Math::GSL::Randistc::gsl_ran_multinomial", _wrap_gsl_ran_multinomial},
8468 {"Math::GSL::Randistc::gsl_ran_multinomial_pdf", _wrap_gsl_ran_multinomial_pdf},
8469 {"Math::GSL::Randistc::gsl_ran_multinomial_lnpdf", _wrap_gsl_ran_multinomial_lnpdf},
8470 {"Math::GSL::Randistc::gsl_ran_dir_nd", _wrap_gsl_ran_dir_nd},
8471 {"Math::GSL::Randistc::gsl_ran_bernoulli", _wrap_gsl_ran_bernoulli},
8472 {"Math::GSL::Randistc::gsl_ran_bernoulli_pdf", _wrap_gsl_ran_bernoulli_pdf},
8473 {"Math::GSL::Randistc::gsl_ran_beta", _wrap_gsl_ran_beta},
8474 {"Math::GSL::Randistc::gsl_ran_beta_pdf", _wrap_gsl_ran_beta_pdf},
8475 {"Math::GSL::Randistc::gsl_ran_binomial", _wrap_gsl_ran_binomial},
8476 {"Math::GSL::Randistc::gsl_ran_binomial_knuth", _wrap_gsl_ran_binomial_knuth},
8477 {"Math::GSL::Randistc::gsl_ran_binomial_tpe", _wrap_gsl_ran_binomial_tpe},
8478 {"Math::GSL::Randistc::gsl_ran_binomial_pdf", _wrap_gsl_ran_binomial_pdf},
8479 {"Math::GSL::Randistc::gsl_ran_exponential", _wrap_gsl_ran_exponential},
8480 {"Math::GSL::Randistc::gsl_ran_exponential_pdf", _wrap_gsl_ran_exponential_pdf},
8481 {"Math::GSL::Randistc::gsl_ran_exppow", _wrap_gsl_ran_exppow},
8482 {"Math::GSL::Randistc::gsl_ran_exppow_pdf", _wrap_gsl_ran_exppow_pdf},
8483 {"Math::GSL::Randistc::gsl_ran_cauchy", _wrap_gsl_ran_cauchy},
8484 {"Math::GSL::Randistc::gsl_ran_cauchy_pdf", _wrap_gsl_ran_cauchy_pdf},
8485 {"Math::GSL::Randistc::gsl_ran_chisq", _wrap_gsl_ran_chisq},
8486 {"Math::GSL::Randistc::gsl_ran_chisq_pdf", _wrap_gsl_ran_chisq_pdf},
8487 {"Math::GSL::Randistc::gsl_ran_erlang", _wrap_gsl_ran_erlang},
8488 {"Math::GSL::Randistc::gsl_ran_erlang_pdf", _wrap_gsl_ran_erlang_pdf},
8489 {"Math::GSL::Randistc::gsl_ran_fdist", _wrap_gsl_ran_fdist},
8490 {"Math::GSL::Randistc::gsl_ran_fdist_pdf", _wrap_gsl_ran_fdist_pdf},
8491 {"Math::GSL::Randistc::gsl_ran_flat", _wrap_gsl_ran_flat},
8492 {"Math::GSL::Randistc::gsl_ran_flat_pdf", _wrap_gsl_ran_flat_pdf},
8493 {"Math::GSL::Randistc::gsl_ran_gamma", _wrap_gsl_ran_gamma},
8494 {"Math::GSL::Randistc::gsl_ran_gamma_int", _wrap_gsl_ran_gamma_int},
8495 {"Math::GSL::Randistc::gsl_ran_gamma_pdf", _wrap_gsl_ran_gamma_pdf},
8496 {"Math::GSL::Randistc::gsl_ran_gamma_mt", _wrap_gsl_ran_gamma_mt},
8497 {"Math::GSL::Randistc::gsl_ran_gamma_knuth", _wrap_gsl_ran_gamma_knuth},
8498 {"Math::GSL::Randistc::gsl_ran_gaussian", _wrap_gsl_ran_gaussian},
8499 {"Math::GSL::Randistc::gsl_ran_gaussian_ratio_method", _wrap_gsl_ran_gaussian_ratio_method},
8500 {"Math::GSL::Randistc::gsl_ran_gaussian_ziggurat", _wrap_gsl_ran_gaussian_ziggurat},
8501 {"Math::GSL::Randistc::gsl_ran_gaussian_pdf", _wrap_gsl_ran_gaussian_pdf},
8502 {"Math::GSL::Randistc::gsl_ran_ugaussian", _wrap_gsl_ran_ugaussian},
8503 {"Math::GSL::Randistc::gsl_ran_ugaussian_ratio_method", _wrap_gsl_ran_ugaussian_ratio_method},
8504 {"Math::GSL::Randistc::gsl_ran_ugaussian_pdf", _wrap_gsl_ran_ugaussian_pdf},
8505 {"Math::GSL::Randistc::gsl_ran_gaussian_tail", _wrap_gsl_ran_gaussian_tail},
8506 {"Math::GSL::Randistc::gsl_ran_gaussian_tail_pdf", _wrap_gsl_ran_gaussian_tail_pdf},
8507 {"Math::GSL::Randistc::gsl_ran_ugaussian_tail", _wrap_gsl_ran_ugaussian_tail},
8508 {"Math::GSL::Randistc::gsl_ran_ugaussian_tail_pdf", _wrap_gsl_ran_ugaussian_tail_pdf},
8509 {"Math::GSL::Randistc::gsl_ran_bivariate_gaussian_pdf", _wrap_gsl_ran_bivariate_gaussian_pdf},
8510 {"Math::GSL::Randistc::gsl_ran_multivariate_gaussian", _wrap_gsl_ran_multivariate_gaussian},
8511 {"Math::GSL::Randistc::gsl_ran_multivariate_gaussian_log_pdf", _wrap_gsl_ran_multivariate_gaussian_log_pdf},
8512 {"Math::GSL::Randistc::gsl_ran_multivariate_gaussian_pdf", _wrap_gsl_ran_multivariate_gaussian_pdf},
8513 {"Math::GSL::Randistc::gsl_ran_multivariate_gaussian_mean", _wrap_gsl_ran_multivariate_gaussian_mean},
8514 {"Math::GSL::Randistc::gsl_ran_multivariate_gaussian_vcov", _wrap_gsl_ran_multivariate_gaussian_vcov},
8515 {"Math::GSL::Randistc::gsl_ran_wishart", _wrap_gsl_ran_wishart},
8516 {"Math::GSL::Randistc::gsl_ran_wishart_log_pdf", _wrap_gsl_ran_wishart_log_pdf},
8517 {"Math::GSL::Randistc::gsl_ran_wishart_pdf", _wrap_gsl_ran_wishart_pdf},
8518 {"Math::GSL::Randistc::gsl_ran_landau", _wrap_gsl_ran_landau},
8519 {"Math::GSL::Randistc::gsl_ran_landau_pdf", _wrap_gsl_ran_landau_pdf},
8520 {"Math::GSL::Randistc::gsl_ran_geometric", _wrap_gsl_ran_geometric},
8521 {"Math::GSL::Randistc::gsl_ran_geometric_pdf", _wrap_gsl_ran_geometric_pdf},
8522 {"Math::GSL::Randistc::gsl_ran_hypergeometric", _wrap_gsl_ran_hypergeometric},
8523 {"Math::GSL::Randistc::gsl_ran_hypergeometric_pdf", _wrap_gsl_ran_hypergeometric_pdf},
8524 {"Math::GSL::Randistc::gsl_ran_gumbel1", _wrap_gsl_ran_gumbel1},
8525 {"Math::GSL::Randistc::gsl_ran_gumbel1_pdf", _wrap_gsl_ran_gumbel1_pdf},
8526 {"Math::GSL::Randistc::gsl_ran_gumbel2", _wrap_gsl_ran_gumbel2},
8527 {"Math::GSL::Randistc::gsl_ran_gumbel2_pdf", _wrap_gsl_ran_gumbel2_pdf},
8528 {"Math::GSL::Randistc::gsl_ran_logistic", _wrap_gsl_ran_logistic},
8529 {"Math::GSL::Randistc::gsl_ran_logistic_pdf", _wrap_gsl_ran_logistic_pdf},
8530 {"Math::GSL::Randistc::gsl_ran_lognormal", _wrap_gsl_ran_lognormal},
8531 {"Math::GSL::Randistc::gsl_ran_lognormal_pdf", _wrap_gsl_ran_lognormal_pdf},
8532 {"Math::GSL::Randistc::gsl_ran_logarithmic", _wrap_gsl_ran_logarithmic},
8533 {"Math::GSL::Randistc::gsl_ran_logarithmic_pdf", _wrap_gsl_ran_logarithmic_pdf},
8534 {"Math::GSL::Randistc::gsl_ran_negative_binomial", _wrap_gsl_ran_negative_binomial},
8535 {"Math::GSL::Randistc::gsl_ran_negative_binomial_pdf", _wrap_gsl_ran_negative_binomial_pdf},
8536 {"Math::GSL::Randistc::gsl_ran_pascal", _wrap_gsl_ran_pascal},
8537 {"Math::GSL::Randistc::gsl_ran_pascal_pdf", _wrap_gsl_ran_pascal_pdf},
8538 {"Math::GSL::Randistc::gsl_ran_pareto", _wrap_gsl_ran_pareto},
8539 {"Math::GSL::Randistc::gsl_ran_pareto_pdf", _wrap_gsl_ran_pareto_pdf},
8540 {"Math::GSL::Randistc::gsl_ran_poisson", _wrap_gsl_ran_poisson},
8541 {"Math::GSL::Randistc::gsl_ran_poisson_array", _wrap_gsl_ran_poisson_array},
8542 {"Math::GSL::Randistc::gsl_ran_poisson_pdf", _wrap_gsl_ran_poisson_pdf},
8543 {"Math::GSL::Randistc::gsl_ran_rayleigh", _wrap_gsl_ran_rayleigh},
8544 {"Math::GSL::Randistc::gsl_ran_rayleigh_pdf", _wrap_gsl_ran_rayleigh_pdf},
8545 {"Math::GSL::Randistc::gsl_ran_rayleigh_tail", _wrap_gsl_ran_rayleigh_tail},
8546 {"Math::GSL::Randistc::gsl_ran_rayleigh_tail_pdf", _wrap_gsl_ran_rayleigh_tail_pdf},
8547 {"Math::GSL::Randistc::gsl_ran_tdist", _wrap_gsl_ran_tdist},
8548 {"Math::GSL::Randistc::gsl_ran_tdist_pdf", _wrap_gsl_ran_tdist_pdf},
8549 {"Math::GSL::Randistc::gsl_ran_laplace", _wrap_gsl_ran_laplace},
8550 {"Math::GSL::Randistc::gsl_ran_laplace_pdf", _wrap_gsl_ran_laplace_pdf},
8551 {"Math::GSL::Randistc::gsl_ran_levy", _wrap_gsl_ran_levy},
8552 {"Math::GSL::Randistc::gsl_ran_levy_skew", _wrap_gsl_ran_levy_skew},
8553 {"Math::GSL::Randistc::gsl_ran_weibull", _wrap_gsl_ran_weibull},
8554 {"Math::GSL::Randistc::gsl_ran_weibull_pdf", _wrap_gsl_ran_weibull_pdf},
8555 {"Math::GSL::Randistc::gsl_ran_shuffle", _wrap_gsl_ran_shuffle},
8556 {"Math::GSL::Randistc::gsl_ran_choose", _wrap_gsl_ran_choose},
8557 {"Math::GSL::Randistc::gsl_ran_sample", _wrap_gsl_ran_sample},
8558 {"Math::GSL::Randistc::gsl_ran_discrete_t_K_set", _wrap_gsl_ran_discrete_t_K_set},
8559 {"Math::GSL::Randistc::gsl_ran_discrete_t_K_get", _wrap_gsl_ran_discrete_t_K_get},
8560 {"Math::GSL::Randistc::gsl_ran_discrete_t_A_set", _wrap_gsl_ran_discrete_t_A_set},
8561 {"Math::GSL::Randistc::gsl_ran_discrete_t_A_get", _wrap_gsl_ran_discrete_t_A_get},
8562 {"Math::GSL::Randistc::gsl_ran_discrete_t_F_set", _wrap_gsl_ran_discrete_t_F_set},
8563 {"Math::GSL::Randistc::gsl_ran_discrete_t_F_get", _wrap_gsl_ran_discrete_t_F_get},
8564 {"Math::GSL::Randistc::new_gsl_ran_discrete_t", _wrap_new_gsl_ran_discrete_t},
8565 {"Math::GSL::Randistc::delete_gsl_ran_discrete_t", _wrap_delete_gsl_ran_discrete_t},
8566 {"Math::GSL::Randistc::gsl_ran_discrete_preproc", _wrap_gsl_ran_discrete_preproc},
8567 {"Math::GSL::Randistc::gsl_ran_discrete_free", _wrap_gsl_ran_discrete_free},
8568 {"Math::GSL::Randistc::gsl_ran_discrete", _wrap_gsl_ran_discrete},
8569 {"Math::GSL::Randistc::gsl_ran_discrete_pdf", _wrap_gsl_ran_discrete_pdf},
8570 {"Math::GSL::Randistc::our_gsl_ran_shuffle", _wrap_our_gsl_ran_shuffle},
8571 {"Math::GSL::Randistc::our_gsl_ran_choose", _wrap_our_gsl_ran_choose},
8572 {"Math::GSL::Randistc::our_gsl_ran_sample", _wrap_our_gsl_ran_sample},
8573 {0,0}
8574 };
8575 /* -----------------------------------------------------------------------------
8576 * Type initialization:
8577 * This problem is tough by the requirement that no dynamic
8578 * memory is used. Also, since swig_type_info structures store pointers to
8579 * swig_cast_info structures and swig_cast_info structures store pointers back
8580 * to swig_type_info structures, we need some lookup code at initialization.
8581 * The idea is that swig generates all the structures that are needed.
8582 * The runtime then collects these partially filled structures.
8583 * The SWIG_InitializeModule function takes these initial arrays out of
8584 * swig_module, and does all the lookup, filling in the swig_module.types
8585 * array with the correct data and linking the correct swig_cast_info
8586 * structures together.
8587 *
8588 * The generated swig_type_info structures are assigned statically to an initial
8589 * array. We just loop through that array, and handle each type individually.
8590 * First we lookup if this type has been already loaded, and if so, use the
8591 * loaded structure instead of the generated one. Then we have to fill in the
8592 * cast linked list. The cast data is initially stored in something like a
8593 * two-dimensional array. Each row corresponds to a type (there are the same
8594 * number of rows as there are in the swig_type_initial array). Each entry in
8595 * a column is one of the swig_cast_info structures for that type.
8596 * The cast_initial array is actually an array of arrays, because each row has
8597 * a variable number of columns. So to actually build the cast linked list,
8598 * we find the array of casts associated with the type, and loop through it
8599 * adding the casts to the list. The one last trick we need to do is making
8600 * sure the type pointer in the swig_cast_info struct is correct.
8601 *
8602 * First off, we lookup the cast->type name to see if it is already loaded.
8603 * There are three cases to handle:
8604 * 1) If the cast->type has already been loaded AND the type we are adding
8605 * casting info to has not been loaded (it is in this module), THEN we
8606 * replace the cast->type pointer with the type pointer that has already
8607 * been loaded.
8608 * 2) If BOTH types (the one we are adding casting info to, and the
8609 * cast->type) are loaded, THEN the cast info has already been loaded by
8610 * the previous module so we just ignore it.
8611 * 3) Finally, if cast->type has not already been loaded, then we add that
8612 * swig_cast_info to the linked list (because the cast->type) pointer will
8613 * be correct.
8614 * ----------------------------------------------------------------------------- */
8615  
8616 #ifdef __cplusplus
8617 extern "C" {
8618 #if 0
8619 } /* c-mode */
8620 #endif
8621 #endif
8622  
8623 #if 0
8624 #define SWIGRUNTIME_DEBUG
8625 #endif
8626  
8627 #ifndef SWIG_INIT_CLIENT_DATA_TYPE
8628 #define SWIG_INIT_CLIENT_DATA_TYPE void *
8629 #endif
8630  
8631 SWIGRUNTIME void
8632 0 SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
8633 size_t i;
8634 swig_module_info *module_head, *iter;
8635 int init;
8636
8637 /* check to see if the circular list has been setup, if not, set it up */
8638 0 ▶ if (swig_module.next==0) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next==0) { 0 0 0
8639 /* Initialize the swig_module */
8640 0 swig_module.type_initial = swig_type_initial;
8641 0 swig_module.cast_initial = swig_cast_initial;
8642 0 swig_module.next = &swig_module;
8643 0 init = 1;
8644 } else {
8645 0 init = 0;
8646 }
8647
8648 /* Try and load any already created modules */
8649 0 module_head = SWIG_GetModule(clientdata);
8650 0 ▶ if (!module_head) {
Branch: 1 branch
BranchTrueFalseTotal
if (!module_head) { 0 0 0
8651 /* This is the first module loaded for this interpreter */
8652 /* so set the swig module into the interpreter */
8653 0 SWIG_SetModule(clientdata, &swig_module);
8654 } else {
8655 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
8656 0 iter=module_head;
8657 do {
8658 0 ▶ if (iter==&swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter==&swig_module) { 0 0 0
8659 /* Our module is already in the list, so there's nothing more to do. */
8660 0 return;
8661 }
8662 0 iter=iter->next;
8663 0 ▶ } while (iter!= module_head);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter!= module_head); 0 0 0
8664
8665 /* otherwise we must add our module into the list */
8666 0 swig_module.next = module_head->next;
8667 0 module_head->next = &swig_module;
8668 }
8669
8670 /* When multiple interpreters are used, a module could have already been initialized in
8671 a different interpreter, but not yet have a pointer in this interpreter.
8672 In this case, we do not want to continue adding types... everything should be
8673 set up already */
8674 0 ▶ if (init == 0) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init == 0) return; 0 0 0
8675
8676 /* Now work on filling in swig_module.types */
8677 #ifdef SWIGRUNTIME_DEBUG
8678 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
8679 #endif
8680 0 ▶ for (i = 0; i < swig_module.size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; ++i) { 0 0 0
8681 0 swig_type_info *type = 0;
8682 swig_type_info *ret;
8683 swig_cast_info *cast;
8684
8685 #ifdef SWIGRUNTIME_DEBUG
8686 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
8687 #endif
8688
8689 /* if there is another module already loaded */
8690 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
8691 0 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8692 }
8693 0 ▶ if (type) {
Branch: 1 branch
BranchTrueFalseTotal
if (type) { 0 0 0
8694 /* Overwrite clientdata field */
8695 #ifdef SWIGRUNTIME_DEBUG
8696 printf("SWIG_InitializeModule: found type %s\n", type->name);
8697 #endif
8698 0 ▶ if (swig_module.type_initial[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.type_initial[i]->clientdata) { 0 0 0
8699 0 type->clientdata = swig_module.type_initial[i]->clientdata;
8700 #ifdef SWIGRUNTIME_DEBUG
8701 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
8702 #endif
8703 }
8704 } else {
8705 0 type = swig_module.type_initial[i];
8706 }
8707
8708 /* Insert casting types */
8709 0 cast = swig_module.cast_initial[i];
8710 0 ▶ while (cast->type) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast->type) { 0 0 0
8711 /* Don't need to add information already in the list */
8712 0 ret = 0;
8713 #ifdef SWIGRUNTIME_DEBUG
8714 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
8715 #endif
8716 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
8717 0 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
8718 #ifdef SWIGRUNTIME_DEBUG
8719 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
8720 #endif
8721 }
8722 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
8723 0 ▶ if (type == swig_module.type_initial[i]) {
Branch: 1 branch
BranchTrueFalseTotal
if (type == swig_module.type_initial[i]) { 0 0 0
8724 #ifdef SWIGRUNTIME_DEBUG
8725 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
8726 #endif
8727 0 cast->type = ret;
8728 0 ret = 0;
8729 } else {
8730 /* Check for casting already in the list */
8731 0 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
8732 #ifdef SWIGRUNTIME_DEBUG
8733 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
8734 #endif
8735 0 ▶ if (!ocast) ret = 0;
Branch: 1 branch
BranchTrueFalseTotal
if (!ocast) ret = 0; 0 0 0
8736 }
8737 }
8738
8739 0 ▶ if (!ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (!ret) { 0 0 0
8740 #ifdef SWIGRUNTIME_DEBUG
8741 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
8742 #endif
8743 0 ▶ if (type->cast) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->cast) { 0 0 0
8744 0 type->cast->prev = cast;
8745 0 cast->next = type->cast;
8746 }
8747 0 type->cast = cast;
8748 }
8749 0 cast++;
8750 }
8751 /* Set entry in modules->types array equal to the type */
8752 0 swig_module.types[i] = type;
8753 }
8754 0 swig_module.types[i] = 0;
8755
8756 #ifdef SWIGRUNTIME_DEBUG
8757 printf("**** SWIG_InitializeModule: Cast List ******\n");
8758 for (i = 0; i < swig_module.size; ++i) {
8759 int j = 0;
8760 swig_cast_info *cast = swig_module.cast_initial[i];
8761 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
8762 while (cast->type) {
8763 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
8764 cast++;
8765 ++j;
8766 }
8767 printf("---- Total casts: %d\n",j);
8768 }
8769 printf("**** SWIG_InitializeModule: Cast List ******\n");
8770 #endif
8771 }
8772  
8773 /* This function will propagate the clientdata field of type to
8774 * any new swig_type_info structures that have been added into the list
8775 * of equivalent types. It is like calling
8776 * SWIG_TypeClientData(type, clientdata) a second time.
8777 */
8778 SWIGRUNTIME void
8779 0 SWIG_PropagateClientData(void) {
8780 size_t i;
8781 swig_cast_info *equiv;
8782 static int init_run = 0;
8783
8784 0 ▶ if (init_run) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init_run) return; 0 0 0
8785 0 init_run = 1;
8786
8787 0 ▶ for (i = 0; i < swig_module.size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; i++) { 0 0 0
8788 0 ▶ if (swig_module.types[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.types[i]->clientdata) { 0 0 0
8789 0 equiv = swig_module.types[i]->cast;
8790 0 ▶ while (equiv) {
Branch: 1 branch
BranchTrueFalseTotal
while (equiv) { 0 0 0
8791 0 ▶ if (!equiv->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!equiv->converter) { 0 0 0
8792 0 ▶ if (equiv->type && !equiv->type->clientdata)
Branch: 2 branches
BranchTrueFalseTotal
if (equiv->type && !equiv->type->clientdata) 0 0 0
if (equiv->type && !equiv->type->clientdata) 0 0 0
8793 0 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
8794 }
8795 0 equiv = equiv->next;
8796 }
8797 }
8798 }
8799 }
8800  
8801 #ifdef __cplusplus
8802 #if 0
8803 {
8804 /* c-mode */
8805 #endif
8806 }
8807 #endif
8808  
8809  
8810  
8811 #if defined(__cplusplus) && ! defined(XSPROTO)
8812 extern "C"
8813 #endif
8814  
8815 0 XS(SWIG_init) {
8816 0 dXSARGS;
8817 int i;
8818 (void)items;
8819
8820 0 SWIG_InitializeModule(0);
8821
8822 /* Install commands */
8823 0 ▶ for (i = 0; swig_commands[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_commands[i].name; i++) { 0 0 0
8824 /* Casts only needed for Perl < 5.10. */
8825 #ifdef __cplusplus
8826 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
8827 #else
8828 0 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
8829 #endif
8830 }
8831
8832 /* Install variables */
8833 0 ▶ for (i = 0; swig_variables[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_variables[i].name; i++) { 0 0 0
8834 SV *sv;
8835 0 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
8836 0 ▶ if (swig_variables[i].type) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_variables[i].type) { 0 0 0
8837 0 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
8838 } else {
8839 0 sv_setiv(sv,(IV) 0);
8840 }
8841 0 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
8842 }
8843
8844 /* Install constant */
8845 0 ▶ for (i = 0; swig_constants[i].type; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_constants[i].type; i++) { 0 0 0
8846 SV *sv;
8847 0 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
8848 0 switch(swig_constants[i].type) {
8849 0 case SWIG_INT:
8850 0 sv_setiv(sv, (IV) swig_constants[i].lvalue);
8851 0 break;
8852 0 case SWIG_FLOAT:
8853 0 sv_setnv(sv, (double) swig_constants[i].dvalue);
8854 0 break;
8855 0 case SWIG_STRING:
8856 0 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
8857 0 break;
8858 0 case SWIG_POINTER:
8859 0 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
8860 0 break;
8861 0 case SWIG_BINARY:
8862 0 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
8863 0 break;
8864 0 default:
8865 0 break;
8866 }
8867 0 SvREADONLY_on(sv);
8868 }
8869
8870 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8871 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI);
8872 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8)));
8873 0 SvREADONLY_on(sv);
8874 } while(0) /*@SWIG@*/;
8875 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8876 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
8877 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2)));
8878 0 SvREADONLY_on(sv);
8879 } while(0) /*@SWIG@*/;
8880 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8881 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
8882 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8)));
8883 0 SvREADONLY_on(sv);
8884 } while(0) /*@SWIG@*/;
8885 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8886 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI);
8887 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0))));
8888 0 SvREADONLY_on(sv);
8889 } while(0) /*@SWIG@*/;
8890 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8891 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI);
8892 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0))));
8893 0 SvREADONLY_on(sv);
8894 } while(0) /*@SWIG@*/;
8895 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8896 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
8897 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS)));
8898 0 SvREADONLY_on(sv);
8899 } while(0) /*@SWIG@*/;
8900 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8901 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
8902 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE)));
8903 0 SvREADONLY_on(sv);
8904 } while(0) /*@SWIG@*/;
8905 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8906 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI);
8907 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE)));
8908 0 SvREADONLY_on(sv);
8909 } while(0) /*@SWIG@*/;
8910 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8911 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI);
8912 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM)));
8913 0 SvREADONLY_on(sv);
8914 } while(0) /*@SWIG@*/;
8915 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8916 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI);
8917 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE)));
8918 0 SvREADONLY_on(sv);
8919 } while(0) /*@SWIG@*/;
8920 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8921 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI);
8922 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT)));
8923 0 SvREADONLY_on(sv);
8924 } while(0) /*@SWIG@*/;
8925 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8926 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
8927 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL)));
8928 0 SvREADONLY_on(sv);
8929 } while(0) /*@SWIG@*/;
8930 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8931 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI);
8932 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED)));
8933 0 SvREADONLY_on(sv);
8934 } while(0) /*@SWIG@*/;
8935 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8936 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI);
8937 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR)));
8938 0 SvREADONLY_on(sv);
8939 } while(0) /*@SWIG@*/;
8940 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8941 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI);
8942 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY)));
8943 0 SvREADONLY_on(sv);
8944 } while(0) /*@SWIG@*/;
8945 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8946 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI);
8947 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM)));
8948 0 SvREADONLY_on(sv);
8949 } while(0) /*@SWIG@*/;
8950 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8951 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI);
8952 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC)));
8953 0 SvREADONLY_on(sv);
8954 } while(0) /*@SWIG@*/;
8955 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8956 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI);
8957 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY)));
8958 0 SvREADONLY_on(sv);
8959 } while(0) /*@SWIG@*/;
8960 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8961 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI);
8962 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER)));
8963 0 SvREADONLY_on(sv);
8964 } while(0) /*@SWIG@*/;
8965 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8966 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI);
8967 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV)));
8968 0 SvREADONLY_on(sv);
8969 } while(0) /*@SWIG@*/;
8970 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8971 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI);
8972 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL)));
8973 0 SvREADONLY_on(sv);
8974 } while(0) /*@SWIG@*/;
8975 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8976 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI);
8977 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL)));
8978 0 SvREADONLY_on(sv);
8979 } while(0) /*@SWIG@*/;
8980 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8981 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI);
8982 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW)));
8983 0 SvREADONLY_on(sv);
8984 } while(0) /*@SWIG@*/;
8985 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8986 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI);
8987 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW)));
8988 0 SvREADONLY_on(sv);
8989 } while(0) /*@SWIG@*/;
8990 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8991 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI);
8992 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS)));
8993 0 SvREADONLY_on(sv);
8994 } while(0) /*@SWIG@*/;
8995 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8996 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI);
8997 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND)));
8998 0 SvREADONLY_on(sv);
8999 } while(0) /*@SWIG@*/;
9000 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9001 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI);
9002 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN)));
9003 0 SvREADONLY_on(sv);
9004 } while(0) /*@SWIG@*/;
9005 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9006 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI);
9007 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR)));
9008 0 SvREADONLY_on(sv);
9009 } while(0) /*@SWIG@*/;
9010 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9011 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI);
9012 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING)));
9013 0 SvREADONLY_on(sv);
9014 } while(0) /*@SWIG@*/;
9015 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9016 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI);
9017 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE)));
9018 0 SvREADONLY_on(sv);
9019 } while(0) /*@SWIG@*/;
9020 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9021 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI);
9022 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP)));
9023 0 SvREADONLY_on(sv);
9024 } while(0) /*@SWIG@*/;
9025 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9026 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI);
9027 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL)));
9028 0 SvREADONLY_on(sv);
9029 } while(0) /*@SWIG@*/;
9030 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9031 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI);
9032 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE)));
9033 0 SvREADONLY_on(sv);
9034 } while(0) /*@SWIG@*/;
9035 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9036 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI);
9037 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE)));
9038 0 SvREADONLY_on(sv);
9039 } while(0) /*@SWIG@*/;
9040 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9041 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI);
9042 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG)));
9043 0 SvREADONLY_on(sv);
9044 } while(0) /*@SWIG@*/;
9045 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9046 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI);
9047 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ)));
9048 0 SvREADONLY_on(sv);
9049 } while(0) /*@SWIG@*/;
9050 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9051 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI);
9052 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF)));
9053 0 SvREADONLY_on(sv);
9054 } while(0) /*@SWIG@*/;
9055 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9056 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI);
9057 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX)));
9058 0 SvREADONLY_on(sv);
9059 } while(0) /*@SWIG@*/;
9060 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9061 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI);
9062 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG)));
9063 0 SvREADONLY_on(sv);
9064 } while(0) /*@SWIG@*/;
9065 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
9066 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI);
9067 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF)));
9068 0 SvREADONLY_on(sv);
9069 } while(0) /*@SWIG@*/;
9070 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_ran_discrete_t, (void*) "Math::GSL::Randist::gsl_ran_discrete_t");
9071 0 ST(0) = &PL_sv_yes;
9072 0 XSRETURN(1);
9073 }
9074  
« xs/RNG_wrap.2.8.c ↑ Summary xs/Roots_wrap.2.8.c »