xs/Statistics_wrap.2.8.c

filter: Statementstmt 0.0% 0 / 6601 Branchbran 0.0% 0 / 4564 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 11165 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Spline_wrap.2.8.c ↑ Summary xs/Sum_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_int swig_types[5]
1516 #define SWIGTYPE_p_size_t swig_types[6]
1517 static swig_type_info *swig_types[8];
1518 static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
1519 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1520 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1521  
1522 /* -------- TYPES TABLE (END) -------- */
1523  
1524 #define SWIG_init boot_Math__GSL__Statistics
1525  
1526 #define SWIG_name "Math::GSL::Statisticsc::boot_Math__GSL__Statistics"
1527 #define SWIG_prefix "Math::GSL::Statisticsc::"
1528  
1529 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1530 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1531  
1532  
1533 #ifdef __cplusplus
1534 extern "C"
1535 #endif
1536 #ifndef MULTIPLICITY
1537 SWIGEXPORT void SWIG_init (CV* cv);
1538 #else
1539 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1540 #endif
1541  
1542  
1543 SWIGINTERNINLINE SV *
1544 0 SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value)
1545 {
1546 0 return sv_2mortal(newSVnv(value));
1547 }
1548  
1549  
1550 SWIGINTERNINLINE SV *
1551 0 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1552 {
1553 SV *sv;
1554 if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
1555 0 sv = newSViv(value);
1556 else
1557 sv = newSVpvf("%ld", value);
1558 0 return sv_2mortal(sv);
1559 }
1560  
1561  
1562 SWIGINTERNINLINE SV *
1563 0 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1564 {
1565 0 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1566 }
1567  
1568  
1569 SWIGINTERN swig_type_info*
1570 0 SWIG_pchar_descriptor(void)
1571 {
1572 static int init = 0;
1573 static swig_type_info* info = 0;
1574 0 ▶ if (!init) {
Branch: 1 branch
BranchTrueFalseTotal
if (!init) { 0 0 0
1575 0 info = SWIG_TypeQuery("_p_char");
1576 0 init = 1;
1577 }
1578 0 return info;
1579 }
1580  
1581  
1582 SWIGINTERN int
1583 0 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1584 {
1585 0 ▶ if (SvMAGICAL(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(obj)) { 0 0 0
1586 0 SV *tmp = sv_newmortal();
1587 0 ▶ SvSetSV(tmp, obj);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(tmp, obj); 0 0 0
1588 0 obj = tmp;
1589 }
1590 0 ▶ if (SvPOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvPOK(obj)) { 0 0 0
1591 0 STRLEN len = 0;
1592 0 char *cstr = SvPV(obj, len);
1593 0 size_t size = len + 1;
1594 0 ▶ if (cptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) { 0 0 0
1595 0 ▶ if (alloc) {
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) { 0 0 0
1596 0 ▶ if (*alloc == SWIG_NEWOBJ) {
Branch: 1 branch
BranchTrueFalseTotal
if (*alloc == SWIG_NEWOBJ) { 0 0 0
1597 0 *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1598 } else {
1599 0 *cptr = cstr;
1600 0 *alloc = SWIG_OLDOBJ;
1601 }
1602 }
1603 }
1604 0 ▶ if (psize) *psize = size;
Branch: 1 branch
BranchTrueFalseTotal
if (psize) *psize = size; 0 0 0
1605 0 return SWIG_OK;
1606 } else {
1607 0 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1608 0 ▶ if (pchar_descriptor) {
Branch: 1 branch
BranchTrueFalseTotal
if (pchar_descriptor) { 0 0 0
1609 0 char* vptr = 0;
1610 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
1611 0 ▶ if (cptr) *cptr = vptr;
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) *cptr = vptr; 0 0 0
1612 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
1613 0 ▶ if (alloc) *alloc = SWIG_OLDOBJ;
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) *alloc = SWIG_OLDOBJ; 0 0 0
1614 0 return SWIG_OK;
1615 }
1616 }
1617 }
1618 0 return SWIG_TypeError;
1619 }
1620  
1621  
1622  
1623  
1624  
1625 #include <limits.h>
1626 #if !defined(SWIG_NO_LLONG_MAX)
1627 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1628 # define LLONG_MAX __LONG_LONG_MAX__
1629 # define LLONG_MIN (-LLONG_MAX - 1LL)
1630 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1631 # endif
1632 #endif
1633  
1634  
1635 #include <stdlib.h>
1636 #ifdef _MSC_VER
1637 # ifndef strtoull
1638 # define strtoull _strtoui64
1639 # endif
1640 # ifndef strtoll
1641 # define strtoll _strtoi64
1642 # endif
1643 #endif
1644  
1645  
1646 SWIGINTERN int
1647 0 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1648 {
1649 0 ▶ if (SvNIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvNIOK(obj)) { 0 0 0
1650 0 ▶ if (val) *val = SvNV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvNV(obj); 0 0 0
1651 0 return SWIG_OK;
1652 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1653 0 ▶ if (val) *val = (double) SvIV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (double) SvIV(obj); 0 0 0
1654 0 return SWIG_AddCast(SWIG_OK);
1655 } else {
1656 0 const char *nptr = SvPV_nolen(obj);
1657 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1658 char *endptr;
1659 double v;
1660 0 errno = 0;
1661 0 v = strtod(nptr, &endptr);
1662 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1663 0 errno = 0;
1664 0 return SWIG_OverflowError;
1665 } else {
1666 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1667 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1668 0 return SWIG_Str2NumCast(SWIG_OK);
1669 }
1670 }
1671 }
1672 }
1673 0 return SWIG_TypeError;
1674 }
1675  
1676  
1677 #include <float.h>
1678  
1679  
1680 #include <math.h>
1681  
1682  
1683 SWIGINTERNINLINE int
1684 0 SWIG_CanCastAsInteger(double *d, double min, double max) {
1685 0 double x = *d;
1686 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
1687 double fx, cx, rd;
1688 0 errno = 0;
1689 0 fx = floor(x);
1690 0 cx = ceil(x);
1691 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
1692 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
1693 0 errno = 0;
1694 } else {
1695 double summ, reps, diff;
1696 0 ▶ if (rd < x) {
Branch: 1 branch
BranchTrueFalseTotal
if (rd < x) { 0 0 0
1697 0 diff = x - rd;
1698 0 ▶ } else if (rd > x) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (rd > x) { 0 0 0
1699 0 diff = rd - x;
1700 } else {
1701 0 return 1;
1702 }
1703 0 summ = rd + x;
1704 0 reps = diff/summ;
1705 0 ▶ if (reps < 8*DBL_EPSILON) {
Branch: 1 branch
BranchTrueFalseTotal
if (reps < 8*DBL_EPSILON) { 0 0 0
1706 0 *d = rd;
1707 0 return 1;
1708 }
1709 }
1710 }
1711 0 return 0;
1712 }
1713  
1714  
1715 SWIGINTERN int
1716 0 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1717 {
1718 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
1719 0 UV v = SvUV(obj);
1720 0 ▶ if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { 0 0 0
1721 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1722 0 return SWIG_OK;
1723 }
1724 0 return SWIG_OverflowError;
1725 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1726 0 IV v = SvIV(obj);
1727 if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
1728 0 ▶ if(val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if(val) *val = v; 0 0 0
1729 0 return SWIG_OK;
1730 }
1731 return SWIG_OverflowError;
1732 } else {
1733 0 int dispatch = 0;
1734 0 const char *nptr = SvPV_nolen(obj);
1735 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1736 char *endptr;
1737 long v;
1738 0 errno = 0;
1739 0 v = strtol(nptr, &endptr,0);
1740 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1741 0 errno = 0;
1742 0 return SWIG_OverflowError;
1743 } else {
1744 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1745 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1746 0 return SWIG_Str2NumCast(SWIG_OK);
1747 }
1748 }
1749 }
1750 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
1751 double d;
1752 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1753 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
1754 0 ▶ if (val) *val = (long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (long)(d); 0 0 0
1755 0 return res;
1756 }
1757 }
1758 }
1759 0 return SWIG_TypeError;
1760 }
1761  
1762  
1763 SWIGINTERN int
1764 0 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1765 {
1766 long v;
1767 0 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1768 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
1769 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
1770 0 return SWIG_OverflowError;
1771 } else {
1772 0 ▶ if (val) *val = (int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (int)(v); 0 0 0
1773 }
1774 }
1775 0 return res;
1776 }
1777  
1778  
1779 SWIGINTERNINLINE SV *
1780 0 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1781 {
1782 0 SV *obj = sv_newmortal();
1783 0 ▶ if (carray) {
Branch: 1 branch
BranchTrueFalseTotal
if (carray) { 0 0 0
1784 0 sv_setpvn(obj, carray, size);
1785 } else {
1786 0 sv_setsv(obj, &PL_sv_undef);
1787 }
1788 0 return obj;
1789 }
1790  
1791  
1792 SWIGINTERNINLINE SV *
1793 0 SWIG_FromCharPtr(const char *cptr)
1794 {
1795 0 ▶ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
Branch: 1 branch
BranchTrueFalseTotal
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); 0 0 0
1796 }
1797  
1798  
1799 #include "gsl/gsl_nan.h"
1800 #include "gsl/gsl_errno.h"
1801 #include "gsl/gsl_math.h"
1802 #include "gsl/gsl_monte.h"
1803  
1804  
1805 struct perl_array {
1806 I32 len;
1807 AV *array;
1808 };
1809  
1810  
1811  
1812 enum awType { awDouble, awFloat, awInt, awUnsigned };
1813  
1814 typedef struct {
1815 I32 size;
1816 enum awType type;
1817 void * data;
1818 } array_wrapper;
1819  
1820 0 array_wrapper * array_wrapper_alloc(int numelem, enum awType type){
1821 0 array_wrapper * rv = malloc(sizeof(array_wrapper));
1822  
1823 0 ▶ if (rv == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv == NULL) 0 0 0
1824 0 croak("array_wrapper_alloc: can't malloc wrapper\n");
1825  
1826 0 switch (type){
1827 0 case awDouble:
1828 0 rv->data = malloc(sizeof(double) * numelem);
1829 0 break;
1830 0 case awFloat:
1831 0 rv->data = malloc(sizeof(float) * numelem);
1832 0 break;
1833 0 case awInt:
1834 0 rv->data = malloc(sizeof(int) * numelem);
1835 0 break;
1836 0 case awUnsigned:
1837 0 rv->data = malloc(sizeof(unsigned int) * numelem);
1838 0 break;
1839 0 default:
1840 0 croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned");
1841 }
1842  
1843 0 ▶ if (rv->data == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv->data == NULL) 0 0 0
1844 0 croak("array_wrapper_alloc: can't malloc data");
1845  
1846 0 rv->size = numelem;
1847 0 rv->type = type;
1848 0 return rv;
1849 }
1850  
1851 0 void array_wrapper_free(array_wrapper * daw){
1852 0 free(daw->data);
1853 0 free(daw);
1854 0 }
1855  
1856  
1857 /* structure to hold required information while the gsl function call
1858 for each callback
1859 */
1860 struct gsl_function_perl {
1861 gsl_function C_gsl_function;
1862 SV * function;
1863 SV * params;
1864 };
1865  
1866 struct gsl_function_fdf_perl {
1867 gsl_function_fdf C_gsl_function_fdf;
1868 SV * f;
1869 SV * df;
1870 SV * fdf;
1871 SV * params;
1872 };
1873  
1874 struct gsl_monte_function_perl {
1875 gsl_monte_function C_gsl_monte_function;
1876 SV * f;
1877 SV * dim;
1878 SV * params;
1879 };
1880  
1881 0 void gsl_function_perl_free(struct gsl_function_perl * perl_f){
1882 0 ▶ if (perl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_f != NULL) { 0 0 0
1883 0 SvREFCNT_dec(perl_f->function);
1884 0 SvREFCNT_dec(perl_f->params);
1885 0 Safefree(perl_f);
1886 }
1887 0 }
1888  
1889 0 void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){
1890 0 ▶ if (perl_fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_fdf != NULL) { 0 0 0
1891 0 SvREFCNT_dec(perl_fdf->f);
1892 0 SvREFCNT_dec(perl_fdf->df);
1893 0 SvREFCNT_dec(perl_fdf->fdf);
1894 0 SvREFCNT_dec(perl_fdf->params);
1895 0 Safefree(perl_fdf);
1896 }
1897 0 }
1898  
1899 /* These functions (C callbacks) calls the perl callbacks.
1900 Info for perl callback can be found using the 'void*params' parameter
1901 */
1902 0 double call_gsl_function_x_params(SV* function, double x, SV *params){
1903 unsigned int count;
1904 double y;
1905 0 dSP;
1906  
1907 //fprintf(stderr, "LOOKUP CALLBACK\n");
1908 0 ENTER;
1909 0 SAVETMPS;
1910  
1911 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1912 0 ▶ XPUSHs(sv_2mortal(newSVnv((double)x)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVnv((double)x))); 0 0 0
1913 0 ▶ XPUSHs(params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(params); 0 0 0
1914 0 PUTBACK; /* make local stack pointer global */
1915  
1916 0 count = call_sv(function, G_SCALAR);
1917 0 SPAGAIN;
1918  
1919 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
1920 0 croak("Expected to call subroutine in scalar context!");
1921  
1922 0 y = POPn;
1923  
1924 0 PUTBACK; /* make local stack pointer global */
1925 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1926 0 LEAVE;
1927  
1928 0 return y;
1929 }
1930  
1931 0 double call_gsl_function(double x , void *params){
1932 0 struct gsl_function_perl *F=(struct gsl_function_perl*)params;
1933 0 return call_gsl_function_x_params( F->function, x, F->params );
1934 }
1935  
1936 0 double call_gsl_function_fdf_f(double x , void *params){
1937 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1938 0 return call_gsl_function_x_params( F->f, x, F->params );
1939 }
1940  
1941 0 double call_gsl_function_fdf_df(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->df, x, F->params );
1944 }
1945  
1946 0 void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){
1947 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1948  
1949 0 dSP;
1950  
1951 0 ENTER;
1952 0 SAVETMPS;
1953  
1954 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1955 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
1956 0 PUSHs(sv_2mortal(newSVnv((double)x)));
1957 0 PUSHs(F->params);
1958 0 PUTBACK; /* make local stack pointer global */
1959  
1960 {
1961 0 unsigned int count = call_sv(F->fdf, G_ARRAY);
1962 0 SPAGAIN;
1963  
1964 0 ▶ if (count != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 2) 0 0 0
1965 0 croak( "Expected two return values, got %d", count );
1966 }
1967  
1968 0 *df = POPn;
1969 0 *f = POPn;
1970  
1971 0 PUTBACK; /* make local stack pointer global */
1972 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1973 0 LEAVE;
1974 0 }
1975  
1976 0 double call_gsl_monte_function(double *x_array , size_t dim, void *params){
1977 0 struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params;
1978 unsigned int count;
1979 unsigned int i;
1980 AV* perl_array;
1981 double y;
1982 0 dSP;
1983  
1984 //fprintf(stderr, "LOOKUP CALLBACK\n");
1985 0 ENTER;
1986 0 SAVETMPS;
1987  
1988 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1989 0 perl_array=newAV();
1990 0 sv_2mortal((SV*)perl_array);
1991 0 ▶ XPUSHs(sv_2mortal(newRV((SV *)perl_array)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newRV((SV *)perl_array))); 0 0 0
1992 0 ▶ for(i=0; i<dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(i=0; i<dim; i++) { 0 0 0
1993 /* no mortal : it is referenced by the array */
1994 0 av_push(perl_array, newSVnv(x_array[i]));
1995 }
1996 0 ▶ XPUSHs(sv_2mortal(newSViv(dim)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSViv(dim))); 0 0 0
1997 0 ▶ XPUSHs(F->params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(F->params); 0 0 0
1998 0 PUTBACK; /* make local stack pointer global */
1999  
2000 0 count = call_sv(F->f, G_SCALAR);
2001 0 SPAGAIN;
2002  
2003 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
2004 0 croak("Expected to call subroutine in scalar context!");
2005  
2006 0 y = POPn;
2007  
2008 0 PUTBACK; /* make local stack pointer global */
2009 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2010 0 LEAVE;
2011  
2012 0 return y;
2013 }
2014  
2015  
2016 0 void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) {
2017 static const char *keys[3] = { "f", "df", "fdf" };
2018  
2019 int ikey;
2020  
2021 0 ▶ for ( ikey = 0 ; ikey < 3 ; ++ikey ) {
Branch: 1 branch
BranchTrueFalseTotal
for ( ikey = 0 ; ikey < 3 ; ++ikey ) { 0 0 0
2022 0 func[ikey] = 0;
2023 0 const char* key = keys[ikey];
2024 /* it just so happens that strlen(keys[ikey]) == ikey + 1 */
2025 0 SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 );
2026 SV* function;
2027  
2028 0 ▶ if ( !pp_sv )
Branch: 1 branch
BranchTrueFalseTotal
if ( !pp_sv ) 0 0 0
2029 0 croak("Math::GSL : %s: missing key %s!", param_name, key);
2030  
2031 0 function = *pp_sv;
2032  
2033 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
2034 /* hold on to SV after the enclosing hash goes away */
2035 0 SvREFCNT_inc( function );
2036 0 func[ikey] = function;
2037 }
2038 else {
2039 0 croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key);
2040 }
2041 }
2042 0 }
2043  
2044  
2045  
2046 #include "gsl/gsl_statistics_double.h"
2047 #include "gsl/gsl_statistics_int.h"
2048 #include "gsl/gsl_statistics_char.h"
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 SWIGINTERNINLINE SV *
2176 0 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
2177 {
2178 SV *sv;
2179 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2180 0 sv = newSVuv(value);
2181 else
2182 sv = newSVpvf("%lu", value);
2183 0 return sv_2mortal(sv);
2184 }
2185  
2186  
2187 #include <stdio.h>
2188 #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
2189 # ifndef snprintf
2190 # define snprintf _snprintf
2191 # endif
2192 #endif
2193  
2194  
2195 #ifdef SWIG_LONG_LONG_AVAILABLE
2196 SWIGINTERNINLINE SV *
2197 SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value)
2198 {
2199 SV *sv;
2200 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2201 sv = newSVuv((UV)(value));
2202 else {
2203 //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl
2204 char temp[256];
2205 SWIG_snprintf(temp, sizeof(temp), "%llu", value);
2206 sv = newSVpv(temp, 0);
2207 }
2208 return sv_2mortal(sv);
2209 }
2210 #endif
2211  
2212  
2213 SWIGINTERNINLINE SV *
2214 0 SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value)
2215 {
2216 #ifdef SWIG_LONG_LONG_AVAILABLE
2217 if (sizeof(size_t) <= sizeof(unsigned long)) {
2218 #endif
2219 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(value));
2220 #ifdef SWIG_LONG_LONG_AVAILABLE
2221 } else {
2222 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
2223 return SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long long)(value));
2224 }
2225 #endif
2226 }
2227  
2228  
2229 SWIGINTERNINLINE SV *
2230 0 SWIG_From_char SWIG_PERL_DECL_ARGS_1(char c)
2231 {
2232 0 return SWIG_FromCharPtrAndSize(&c,1);
2233 }
2234  
2235 #ifdef __cplusplus
2236 extern "C" {
2237 #endif
2238  
2239 #define MAGIC_CLASS
2240 0 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
2241 MAGIC_PPERL
2242 0 croak("Value is read-only.");
2243 return 0;
2244 }
2245  
2246 #ifdef __cplusplus
2247 }
2248 #endif
2249  
2250 #ifdef __cplusplus
2251 extern "C" {
2252 #endif
2253 0 XS(_wrap_gsl_error) {
2254 {
2255 0 char *arg1 = (char *) 0 ;
2256 0 char *arg2 = (char *) 0 ;
2257 int arg3 ;
2258 int arg4 ;
2259 int res1 ;
2260 0 char *buf1 = 0 ;
2261 0 int alloc1 = 0 ;
2262 int res2 ;
2263 0 char *buf2 = 0 ;
2264 0 int alloc2 = 0 ;
2265 int val3 ;
2266 0 int ecode3 = 0 ;
2267 int val4 ;
2268 0 int ecode4 = 0 ;
2269 0 int argvi = 0;
2270 0 dXSARGS;
2271
2272 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
2273 0 SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);");
2274 }
2275 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2276 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2277 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
2278 }
2279 0 arg1 = (char *)(buf1);
2280 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2281 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2282 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
2283 }
2284 0 arg2 = (char *)(buf2);
2285 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2286 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2287 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
2288 }
2289 0 arg3 = (int)(val3);
2290 0 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2291 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2292 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
2293 }
2294 0 arg4 = (int)(val4);
2295 0 gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4);
2296 0 ST(argvi) = &PL_sv_undef;
2297 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2298 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2299
2300
2301 0 XSRETURN(argvi);
2302 0 fail:
2303 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2304 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2305
2306
2307 0 SWIG_croak_null();
2308 }
2309 }
2310  
2311  
2312 0 XS(_wrap_gsl_stream_printf) {
2313 {
2314 0 char *arg1 = (char *) 0 ;
2315 0 char *arg2 = (char *) 0 ;
2316 int arg3 ;
2317 0 char *arg4 = (char *) 0 ;
2318 int res1 ;
2319 0 char *buf1 = 0 ;
2320 0 int alloc1 = 0 ;
2321 int res2 ;
2322 0 char *buf2 = 0 ;
2323 0 int alloc2 = 0 ;
2324 int val3 ;
2325 0 int ecode3 = 0 ;
2326 int res4 ;
2327 0 char *buf4 = 0 ;
2328 0 int alloc4 = 0 ;
2329 0 int argvi = 0;
2330 0 dXSARGS;
2331
2332 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
2333 0 SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);");
2334 }
2335 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2336 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2337 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
2338 }
2339 0 arg1 = (char *)(buf1);
2340 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2341 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2342 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
2343 }
2344 0 arg2 = (char *)(buf2);
2345 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2346 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2347 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
2348 }
2349 0 arg3 = (int)(val3);
2350 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
2351 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
2352 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
2353 }
2354 0 arg4 = (char *)(buf4);
2355 0 gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
2356 0 ST(argvi) = &PL_sv_undef;
2357 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2358 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2359
2360 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2361 0 XSRETURN(argvi);
2362 0 fail:
2363 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2364 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2365
2366 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2367 0 SWIG_croak_null();
2368 }
2369 }
2370  
2371  
2372 0 XS(_wrap_gsl_strerror) {
2373 {
2374 int arg1 ;
2375 int val1 ;
2376 0 int ecode1 = 0 ;
2377 0 int argvi = 0;
2378 0 char *result = 0 ;
2379 0 dXSARGS;
2380
2381 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
2382 0 SWIG_croak("Usage: gsl_strerror(gsl_errno);");
2383 }
2384 0 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
2385 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
2386 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
2387 }
2388 0 arg1 = (int)(val1);
2389 0 result = (char *)gsl_strerror(arg1);
2390 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2391
2392 0 XSRETURN(argvi);
2393 0 fail:
2394
2395 0 SWIG_croak_null();
2396 }
2397 }
2398  
2399  
2400 0 XS(_wrap_gsl_set_error_handler) {
2401 {
2402 0 gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ;
2403 0 int argvi = 0;
2404 0 gsl_error_handler_t *result = 0 ;
2405 0 dXSARGS;
2406
2407 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
2408 0 SWIG_croak("Usage: gsl_set_error_handler(new_handler);");
2409 }
2410 {
2411 0 int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void);
2412 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2413 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
2414 }
2415 }
2416 0 result = (gsl_error_handler_t *)gsl_set_error_handler(arg1);
2417 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2418
2419 0 XSRETURN(argvi);
2420 0 fail:
2421
2422 0 SWIG_croak_null();
2423 }
2424 }
2425  
2426  
2427 0 XS(_wrap_gsl_set_error_handler_off) {
2428 {
2429 0 int argvi = 0;
2430 0 gsl_error_handler_t *result = 0 ;
2431 0 dXSARGS;
2432
2433 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
2434 0 SWIG_croak("Usage: gsl_set_error_handler_off();");
2435 }
2436 0 result = (gsl_error_handler_t *)gsl_set_error_handler_off();
2437 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2438 0 XSRETURN(argvi);
2439 0 fail:
2440 0 SWIG_croak_null();
2441 }
2442 }
2443  
2444  
2445 0 XS(_wrap_gsl_set_stream_handler) {
2446 {
2447 0 gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ;
2448 0 int argvi = 0;
2449 0 gsl_stream_handler_t *result = 0 ;
2450 0 dXSARGS;
2451
2452 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
2453 0 SWIG_croak("Usage: gsl_set_stream_handler(new_handler);");
2454 }
2455 {
2456 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);
2457 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2458 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
2459 }
2460 }
2461 0 result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1);
2462 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++ ;
2463
2464 0 XSRETURN(argvi);
2465 0 fail:
2466
2467 0 SWIG_croak_null();
2468 }
2469 }
2470  
2471  
2472 0 XS(_wrap_gsl_set_stream) {
2473 {
2474 0 FILE *arg1 = (FILE *) 0 ;
2475 0 void *argp1 = 0 ;
2476 0 int res1 = 0 ;
2477 0 int argvi = 0;
2478 0 FILE *result = 0 ;
2479 0 dXSARGS;
2480
2481 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
2482 0 SWIG_croak("Usage: gsl_set_stream(new_stream);");
2483 }
2484 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2485 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2486 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
2487 }
2488 0 arg1 = (FILE *)(argp1);
2489 0 result = (FILE *)gsl_set_stream(arg1);
2490 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ;
2491
2492 0 XSRETURN(argvi);
2493 0 fail:
2494
2495 0 SWIG_croak_null();
2496 }
2497 }
2498  
2499  
2500 0 XS(_wrap_gsl_stats_mean) {
2501 {
2502 0 double *arg1 = (double *) (double *)0 ;
2503 size_t arg2 ;
2504 size_t arg3 ;
2505 size_t val2 ;
2506 0 int ecode2 = 0 ;
2507 size_t val3 ;
2508 0 int ecode3 = 0 ;
2509 0 int argvi = 0;
2510 double result;
2511 0 dXSARGS;
2512
2513 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
2514 0 SWIG_croak("Usage: gsl_stats_mean(data,stride,n);");
2515 }
2516 {
2517 AV *tempav;
2518 I32 len;
2519 int i;
2520 SV **tv;
2521 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2522 0 croak("Math::GSL : $data is not a reference!");
2523 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2524 0 croak("Math::GSL : $data is not an array ref!");
2525
2526 0 tempav = (AV*)SvRV(ST(0));
2527 0 len = av_len(tempav);
2528 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2529 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2530 0 tv = av_fetch(tempav, i, 0);
2531 0 arg1[i] = (double) SvNV(*tv);
2532 }
2533 }
2534 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2535 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2536 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2537 }
2538 0 arg2 = (size_t)(val2);
2539 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2540 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2541 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2542 }
2543 0 arg3 = (size_t)(val3);
2544 0 result = (double)gsl_stats_mean((double const (*))arg1,arg2,arg3);
2545 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2546 {
2547 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2548 }
2549
2550
2551 0 XSRETURN(argvi);
2552 0 fail:
2553 {
2554 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2555 }
2556
2557
2558 0 SWIG_croak_null();
2559 }
2560 }
2561  
2562  
2563 0 XS(_wrap_gsl_stats_variance) {
2564 {
2565 0 double *arg1 = (double *) (double *)0 ;
2566 size_t arg2 ;
2567 size_t arg3 ;
2568 size_t val2 ;
2569 0 int ecode2 = 0 ;
2570 size_t val3 ;
2571 0 int ecode3 = 0 ;
2572 0 int argvi = 0;
2573 double result;
2574 0 dXSARGS;
2575
2576 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
2577 0 SWIG_croak("Usage: gsl_stats_variance(data,stride,n);");
2578 }
2579 {
2580 AV *tempav;
2581 I32 len;
2582 int i;
2583 SV **tv;
2584 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2585 0 croak("Math::GSL : $data is not a reference!");
2586 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2587 0 croak("Math::GSL : $data is not an array ref!");
2588
2589 0 tempav = (AV*)SvRV(ST(0));
2590 0 len = av_len(tempav);
2591 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2592 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2593 0 tv = av_fetch(tempav, i, 0);
2594 0 arg1[i] = (double) SvNV(*tv);
2595 }
2596 }
2597 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2598 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2599 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_variance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_variance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2600 }
2601 0 arg2 = (size_t)(val2);
2602 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2603 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2604 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_variance" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_variance" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2605 }
2606 0 arg3 = (size_t)(val3);
2607 0 result = (double)gsl_stats_variance((double const (*))arg1,arg2,arg3);
2608 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2609 {
2610 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2611 }
2612
2613
2614 0 XSRETURN(argvi);
2615 0 fail:
2616 {
2617 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2618 }
2619
2620
2621 0 SWIG_croak_null();
2622 }
2623 }
2624  
2625  
2626 0 XS(_wrap_gsl_stats_sd) {
2627 {
2628 0 double *arg1 = (double *) (double *)0 ;
2629 size_t arg2 ;
2630 size_t arg3 ;
2631 size_t val2 ;
2632 0 int ecode2 = 0 ;
2633 size_t val3 ;
2634 0 int ecode3 = 0 ;
2635 0 int argvi = 0;
2636 double result;
2637 0 dXSARGS;
2638
2639 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
2640 0 SWIG_croak("Usage: gsl_stats_sd(data,stride,n);");
2641 }
2642 {
2643 AV *tempav;
2644 I32 len;
2645 int i;
2646 SV **tv;
2647 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2648 0 croak("Math::GSL : $data is not a reference!");
2649 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2650 0 croak("Math::GSL : $data is not an array ref!");
2651
2652 0 tempav = (AV*)SvRV(ST(0));
2653 0 len = av_len(tempav);
2654 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2655 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2656 0 tv = av_fetch(tempav, i, 0);
2657 0 arg1[i] = (double) SvNV(*tv);
2658 }
2659 }
2660 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2661 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2662 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2663 }
2664 0 arg2 = (size_t)(val2);
2665 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2666 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2667 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2668 }
2669 0 arg3 = (size_t)(val3);
2670 0 result = (double)gsl_stats_sd((double const (*))arg1,arg2,arg3);
2671 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2672 {
2673 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2674 }
2675
2676
2677 0 XSRETURN(argvi);
2678 0 fail:
2679 {
2680 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2681 }
2682
2683
2684 0 SWIG_croak_null();
2685 }
2686 }
2687  
2688  
2689 0 XS(_wrap_gsl_stats_variance_with_fixed_mean) {
2690 {
2691 0 double *arg1 = (double *) (double *)0 ;
2692 size_t arg2 ;
2693 size_t arg3 ;
2694 double arg4 ;
2695 size_t val2 ;
2696 0 int ecode2 = 0 ;
2697 size_t val3 ;
2698 0 int ecode3 = 0 ;
2699 double val4 ;
2700 0 int ecode4 = 0 ;
2701 0 int argvi = 0;
2702 double result;
2703 0 dXSARGS;
2704
2705 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
2706 0 SWIG_croak("Usage: gsl_stats_variance_with_fixed_mean(data,stride,n,mean);");
2707 }
2708 {
2709 AV *tempav;
2710 I32 len;
2711 int i;
2712 SV **tv;
2713 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2714 0 croak("Math::GSL : $data is not a reference!");
2715 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2716 0 croak("Math::GSL : $data is not an array ref!");
2717
2718 0 tempav = (AV*)SvRV(ST(0));
2719 0 len = av_len(tempav);
2720 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2721 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2722 0 tv = av_fetch(tempav, i, 0);
2723 0 arg1[i] = (double) SvNV(*tv);
2724 }
2725 }
2726 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2727 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2728 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_variance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_variance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2729 }
2730 0 arg2 = (size_t)(val2);
2731 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2732 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2733 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_variance_with_fixed_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_variance_with_fixed_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2734 }
2735 0 arg3 = (size_t)(val3);
2736 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2737 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2738 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_variance_with_fixed_mean" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_variance_with_fixed_mean" "', argument " "4"" of type '" "double""'"); 0 0 0
2739 }
2740 0 arg4 = (double)(val4);
2741 0 result = (double)gsl_stats_variance_with_fixed_mean((double const (*))arg1,arg2,arg3,arg4);
2742 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2743 {
2744 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2745 }
2746
2747
2748
2749 0 XSRETURN(argvi);
2750 0 fail:
2751 {
2752 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2753 }
2754
2755
2756
2757 0 SWIG_croak_null();
2758 }
2759 }
2760  
2761  
2762 0 XS(_wrap_gsl_stats_sd_with_fixed_mean) {
2763 {
2764 0 double *arg1 = (double *) (double *)0 ;
2765 size_t arg2 ;
2766 size_t arg3 ;
2767 double arg4 ;
2768 size_t val2 ;
2769 0 int ecode2 = 0 ;
2770 size_t val3 ;
2771 0 int ecode3 = 0 ;
2772 double val4 ;
2773 0 int ecode4 = 0 ;
2774 0 int argvi = 0;
2775 double result;
2776 0 dXSARGS;
2777
2778 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
2779 0 SWIG_croak("Usage: gsl_stats_sd_with_fixed_mean(data,stride,n,mean);");
2780 }
2781 {
2782 AV *tempav;
2783 I32 len;
2784 int i;
2785 SV **tv;
2786 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2787 0 croak("Math::GSL : $data is not a reference!");
2788 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2789 0 croak("Math::GSL : $data is not an array ref!");
2790
2791 0 tempav = (AV*)SvRV(ST(0));
2792 0 len = av_len(tempav);
2793 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2794 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2795 0 tv = av_fetch(tempav, i, 0);
2796 0 arg1[i] = (double) SvNV(*tv);
2797 }
2798 }
2799 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2800 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2801 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_sd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_sd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2802 }
2803 0 arg2 = (size_t)(val2);
2804 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2805 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2806 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_sd_with_fixed_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_sd_with_fixed_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2807 }
2808 0 arg3 = (size_t)(val3);
2809 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2810 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2811 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_sd_with_fixed_mean" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_sd_with_fixed_mean" "', argument " "4"" of type '" "double""'"); 0 0 0
2812 }
2813 0 arg4 = (double)(val4);
2814 0 result = (double)gsl_stats_sd_with_fixed_mean((double const (*))arg1,arg2,arg3,arg4);
2815 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2816 {
2817 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2818 }
2819
2820
2821
2822 0 XSRETURN(argvi);
2823 0 fail:
2824 {
2825 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2826 }
2827
2828
2829
2830 0 SWIG_croak_null();
2831 }
2832 }
2833  
2834  
2835 0 XS(_wrap_gsl_stats_tss) {
2836 {
2837 0 double *arg1 = (double *) (double *)0 ;
2838 size_t arg2 ;
2839 size_t arg3 ;
2840 size_t val2 ;
2841 0 int ecode2 = 0 ;
2842 size_t val3 ;
2843 0 int ecode3 = 0 ;
2844 0 int argvi = 0;
2845 double result;
2846 0 dXSARGS;
2847
2848 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
2849 0 SWIG_croak("Usage: gsl_stats_tss(data,stride,n);");
2850 }
2851 {
2852 AV *tempav;
2853 I32 len;
2854 int i;
2855 SV **tv;
2856 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2857 0 croak("Math::GSL : $data is not a reference!");
2858 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2859 0 croak("Math::GSL : $data is not an array ref!");
2860
2861 0 tempav = (AV*)SvRV(ST(0));
2862 0 len = av_len(tempav);
2863 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2864 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2865 0 tv = av_fetch(tempav, i, 0);
2866 0 arg1[i] = (double) SvNV(*tv);
2867 }
2868 }
2869 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2870 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2871 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_tss" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_tss" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2872 }
2873 0 arg2 = (size_t)(val2);
2874 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2875 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2876 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_tss" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_tss" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2877 }
2878 0 arg3 = (size_t)(val3);
2879 0 result = (double)gsl_stats_tss((double const (*))arg1,arg2,arg3);
2880 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2881 {
2882 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2883 }
2884
2885
2886 0 XSRETURN(argvi);
2887 0 fail:
2888 {
2889 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2890 }
2891
2892
2893 0 SWIG_croak_null();
2894 }
2895 }
2896  
2897  
2898 0 XS(_wrap_gsl_stats_tss_m) {
2899 {
2900 0 double *arg1 = (double *) (double *)0 ;
2901 size_t arg2 ;
2902 size_t arg3 ;
2903 double arg4 ;
2904 size_t val2 ;
2905 0 int ecode2 = 0 ;
2906 size_t val3 ;
2907 0 int ecode3 = 0 ;
2908 double val4 ;
2909 0 int ecode4 = 0 ;
2910 0 int argvi = 0;
2911 double result;
2912 0 dXSARGS;
2913
2914 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
2915 0 SWIG_croak("Usage: gsl_stats_tss_m(data,stride,n,mean);");
2916 }
2917 {
2918 AV *tempav;
2919 I32 len;
2920 int i;
2921 SV **tv;
2922 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2923 0 croak("Math::GSL : $data is not a reference!");
2924 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2925 0 croak("Math::GSL : $data is not an array ref!");
2926
2927 0 tempav = (AV*)SvRV(ST(0));
2928 0 len = av_len(tempav);
2929 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2930 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2931 0 tv = av_fetch(tempav, i, 0);
2932 0 arg1[i] = (double) SvNV(*tv);
2933 }
2934 }
2935 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2936 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2937 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_tss_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_tss_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2938 }
2939 0 arg2 = (size_t)(val2);
2940 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2941 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2942 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_tss_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_tss_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2943 }
2944 0 arg3 = (size_t)(val3);
2945 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2946 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2947 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_tss_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_tss_m" "', argument " "4"" of type '" "double""'"); 0 0 0
2948 }
2949 0 arg4 = (double)(val4);
2950 0 result = (double)gsl_stats_tss_m((double const (*))arg1,arg2,arg3,arg4);
2951 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2952 {
2953 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2954 }
2955
2956
2957
2958 0 XSRETURN(argvi);
2959 0 fail:
2960 {
2961 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2962 }
2963
2964
2965
2966 0 SWIG_croak_null();
2967 }
2968 }
2969  
2970  
2971 0 XS(_wrap_gsl_stats_absdev) {
2972 {
2973 0 double *arg1 = (double *) (double *)0 ;
2974 size_t arg2 ;
2975 size_t arg3 ;
2976 size_t val2 ;
2977 0 int ecode2 = 0 ;
2978 size_t val3 ;
2979 0 int ecode3 = 0 ;
2980 0 int argvi = 0;
2981 double result;
2982 0 dXSARGS;
2983
2984 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
2985 0 SWIG_croak("Usage: gsl_stats_absdev(data,stride,n);");
2986 }
2987 {
2988 AV *tempav;
2989 I32 len;
2990 int i;
2991 SV **tv;
2992 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2993 0 croak("Math::GSL : $data is not a reference!");
2994 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2995 0 croak("Math::GSL : $data is not an array ref!");
2996
2997 0 tempav = (AV*)SvRV(ST(0));
2998 0 len = av_len(tempav);
2999 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3000 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3001 0 tv = av_fetch(tempav, i, 0);
3002 0 arg1[i] = (double) SvNV(*tv);
3003 }
3004 }
3005 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3006 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3007 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_absdev" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_absdev" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3008 }
3009 0 arg2 = (size_t)(val2);
3010 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3011 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3012 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_absdev" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_absdev" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3013 }
3014 0 arg3 = (size_t)(val3);
3015 0 result = (double)gsl_stats_absdev((double const (*))arg1,arg2,arg3);
3016 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3017 {
3018 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3019 }
3020
3021
3022 0 XSRETURN(argvi);
3023 0 fail:
3024 {
3025 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3026 }
3027
3028
3029 0 SWIG_croak_null();
3030 }
3031 }
3032  
3033  
3034 0 XS(_wrap_gsl_stats_skew) {
3035 {
3036 0 double *arg1 = (double *) (double *)0 ;
3037 size_t arg2 ;
3038 size_t arg3 ;
3039 size_t val2 ;
3040 0 int ecode2 = 0 ;
3041 size_t val3 ;
3042 0 int ecode3 = 0 ;
3043 0 int argvi = 0;
3044 double result;
3045 0 dXSARGS;
3046
3047 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
3048 0 SWIG_croak("Usage: gsl_stats_skew(data,stride,n);");
3049 }
3050 {
3051 AV *tempav;
3052 I32 len;
3053 int i;
3054 SV **tv;
3055 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3056 0 croak("Math::GSL : $data is not a reference!");
3057 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3058 0 croak("Math::GSL : $data is not an array ref!");
3059
3060 0 tempav = (AV*)SvRV(ST(0));
3061 0 len = av_len(tempav);
3062 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3063 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3064 0 tv = av_fetch(tempav, i, 0);
3065 0 arg1[i] = (double) SvNV(*tv);
3066 }
3067 }
3068 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3069 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3070 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_skew" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_skew" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3071 }
3072 0 arg2 = (size_t)(val2);
3073 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3074 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3075 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_skew" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_skew" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3076 }
3077 0 arg3 = (size_t)(val3);
3078 0 result = (double)gsl_stats_skew((double const (*))arg1,arg2,arg3);
3079 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3080 {
3081 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3082 }
3083
3084
3085 0 XSRETURN(argvi);
3086 0 fail:
3087 {
3088 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3089 }
3090
3091
3092 0 SWIG_croak_null();
3093 }
3094 }
3095  
3096  
3097 0 XS(_wrap_gsl_stats_kurtosis) {
3098 {
3099 0 double *arg1 = (double *) (double *)0 ;
3100 size_t arg2 ;
3101 size_t arg3 ;
3102 size_t val2 ;
3103 0 int ecode2 = 0 ;
3104 size_t val3 ;
3105 0 int ecode3 = 0 ;
3106 0 int argvi = 0;
3107 double result;
3108 0 dXSARGS;
3109
3110 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
3111 0 SWIG_croak("Usage: gsl_stats_kurtosis(data,stride,n);");
3112 }
3113 {
3114 AV *tempav;
3115 I32 len;
3116 int i;
3117 SV **tv;
3118 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3119 0 croak("Math::GSL : $data is not a reference!");
3120 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3121 0 croak("Math::GSL : $data is not an array ref!");
3122
3123 0 tempav = (AV*)SvRV(ST(0));
3124 0 len = av_len(tempav);
3125 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3126 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3127 0 tv = av_fetch(tempav, i, 0);
3128 0 arg1[i] = (double) SvNV(*tv);
3129 }
3130 }
3131 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3132 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3133 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_kurtosis" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_kurtosis" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3134 }
3135 0 arg2 = (size_t)(val2);
3136 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3137 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3138 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_kurtosis" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_kurtosis" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3139 }
3140 0 arg3 = (size_t)(val3);
3141 0 result = (double)gsl_stats_kurtosis((double const (*))arg1,arg2,arg3);
3142 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3143 {
3144 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3145 }
3146
3147
3148 0 XSRETURN(argvi);
3149 0 fail:
3150 {
3151 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3152 }
3153
3154
3155 0 SWIG_croak_null();
3156 }
3157 }
3158  
3159  
3160 0 XS(_wrap_gsl_stats_lag1_autocorrelation) {
3161 {
3162 0 double *arg1 = (double *) (double *)0 ;
3163 size_t arg2 ;
3164 size_t arg3 ;
3165 size_t val2 ;
3166 0 int ecode2 = 0 ;
3167 size_t val3 ;
3168 0 int ecode3 = 0 ;
3169 0 int argvi = 0;
3170 double result;
3171 0 dXSARGS;
3172
3173 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
3174 0 SWIG_croak("Usage: gsl_stats_lag1_autocorrelation(data,stride,n);");
3175 }
3176 {
3177 AV *tempav;
3178 I32 len;
3179 int i;
3180 SV **tv;
3181 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3182 0 croak("Math::GSL : $data is not a reference!");
3183 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3184 0 croak("Math::GSL : $data is not an array ref!");
3185
3186 0 tempav = (AV*)SvRV(ST(0));
3187 0 len = av_len(tempav);
3188 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3189 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3190 0 tv = av_fetch(tempav, i, 0);
3191 0 arg1[i] = (double) SvNV(*tv);
3192 }
3193 }
3194 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3195 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3196 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_lag1_autocorrelation" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_lag1_autocorrelation" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3197 }
3198 0 arg2 = (size_t)(val2);
3199 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3200 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3201 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_lag1_autocorrelation" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_lag1_autocorrelation" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3202 }
3203 0 arg3 = (size_t)(val3);
3204 0 result = (double)gsl_stats_lag1_autocorrelation((double const (*))arg1,arg2,arg3);
3205 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3206 {
3207 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3208 }
3209
3210
3211 0 XSRETURN(argvi);
3212 0 fail:
3213 {
3214 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3215 }
3216
3217
3218 0 SWIG_croak_null();
3219 }
3220 }
3221  
3222  
3223 0 XS(_wrap_gsl_stats_covariance) {
3224 {
3225 0 double *arg1 = (double *) (double *)0 ;
3226 size_t arg2 ;
3227 0 double *arg3 = (double *) (double *)0 ;
3228 size_t arg4 ;
3229 size_t arg5 ;
3230 size_t val2 ;
3231 0 int ecode2 = 0 ;
3232 size_t val4 ;
3233 0 int ecode4 = 0 ;
3234 size_t val5 ;
3235 0 int ecode5 = 0 ;
3236 0 int argvi = 0;
3237 double result;
3238 0 dXSARGS;
3239
3240 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
3241 0 SWIG_croak("Usage: gsl_stats_covariance(data1,stride1,data2,stride2,n);");
3242 }
3243 {
3244 AV *tempav;
3245 I32 len;
3246 int i;
3247 SV **tv;
3248 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3249 0 croak("Math::GSL : $data1 is not a reference!");
3250 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3251 0 croak("Math::GSL : $data1 is not an array ref!");
3252
3253 0 tempav = (AV*)SvRV(ST(0));
3254 0 len = av_len(tempav);
3255 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3256 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3257 0 tv = av_fetch(tempav, i, 0);
3258 0 arg1[i] = (double) SvNV(*tv);
3259 }
3260 }
3261 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3262 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3263 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_covariance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_covariance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3264 }
3265 0 arg2 = (size_t)(val2);
3266 {
3267 AV *tempav;
3268 I32 len;
3269 int i;
3270 SV **tv;
3271 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
3272 0 croak("Math::GSL : $data2 is not a reference!");
3273 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
3274 0 croak("Math::GSL : $data2 is not an array ref!");
3275
3276 0 tempav = (AV*)SvRV(ST(2));
3277 0 len = av_len(tempav);
3278 0 arg3 = (double *) malloc((len+2)*sizeof(double));
3279 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3280 0 tv = av_fetch(tempav, i, 0);
3281 0 arg3[i] = (double) SvNV(*tv);
3282 }
3283 }
3284 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3285 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3286 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_covariance" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_covariance" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3287 }
3288 0 arg4 = (size_t)(val4);
3289 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3290 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3291 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_covariance" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_covariance" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3292 }
3293 0 arg5 = (size_t)(val5);
3294 0 result = (double)gsl_stats_covariance((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
3295 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3296 {
3297 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3298 }
3299
3300 {
3301 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3302 }
3303
3304
3305 0 XSRETURN(argvi);
3306 0 fail:
3307 {
3308 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3309 }
3310
3311 {
3312 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3313 }
3314
3315
3316 0 SWIG_croak_null();
3317 }
3318 }
3319  
3320  
3321 0 XS(_wrap_gsl_stats_correlation) {
3322 {
3323 0 double *arg1 = (double *) (double *)0 ;
3324 size_t arg2 ;
3325 0 double *arg3 = (double *) (double *)0 ;
3326 size_t arg4 ;
3327 size_t arg5 ;
3328 size_t val2 ;
3329 0 int ecode2 = 0 ;
3330 size_t val4 ;
3331 0 int ecode4 = 0 ;
3332 size_t val5 ;
3333 0 int ecode5 = 0 ;
3334 0 int argvi = 0;
3335 double result;
3336 0 dXSARGS;
3337
3338 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
3339 0 SWIG_croak("Usage: gsl_stats_correlation(data1,stride1,data2,stride2,n);");
3340 }
3341 {
3342 AV *tempav;
3343 I32 len;
3344 int i;
3345 SV **tv;
3346 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3347 0 croak("Math::GSL : $data1 is not a reference!");
3348 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3349 0 croak("Math::GSL : $data1 is not an array ref!");
3350
3351 0 tempav = (AV*)SvRV(ST(0));
3352 0 len = av_len(tempav);
3353 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3354 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3355 0 tv = av_fetch(tempav, i, 0);
3356 0 arg1[i] = (double) SvNV(*tv);
3357 }
3358 }
3359 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3360 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3361 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_correlation" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_correlation" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3362 }
3363 0 arg2 = (size_t)(val2);
3364 {
3365 AV *tempav;
3366 I32 len;
3367 int i;
3368 SV **tv;
3369 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
3370 0 croak("Math::GSL : $data2 is not a reference!");
3371 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
3372 0 croak("Math::GSL : $data2 is not an array ref!");
3373
3374 0 tempav = (AV*)SvRV(ST(2));
3375 0 len = av_len(tempav);
3376 0 arg3 = (double *) malloc((len+2)*sizeof(double));
3377 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3378 0 tv = av_fetch(tempav, i, 0);
3379 0 arg3[i] = (double) SvNV(*tv);
3380 }
3381 }
3382 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3383 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3384 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_correlation" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_correlation" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3385 }
3386 0 arg4 = (size_t)(val4);
3387 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3388 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3389 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_correlation" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_correlation" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3390 }
3391 0 arg5 = (size_t)(val5);
3392 0 result = (double)gsl_stats_correlation((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
3393 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3394 {
3395 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3396 }
3397
3398 {
3399 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3400 }
3401
3402
3403 0 XSRETURN(argvi);
3404 0 fail:
3405 {
3406 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3407 }
3408
3409 {
3410 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3411 }
3412
3413
3414 0 SWIG_croak_null();
3415 }
3416 }
3417  
3418  
3419 0 XS(_wrap_gsl_stats_spearman) {
3420 {
3421 0 double *arg1 = (double *) (double *)0 ;
3422 size_t arg2 ;
3423 0 double *arg3 = (double *) (double *)0 ;
3424 size_t arg4 ;
3425 size_t arg5 ;
3426 0 double *arg6 = (double *) (double *)0 ;
3427 size_t val2 ;
3428 0 int ecode2 = 0 ;
3429 size_t val4 ;
3430 0 int ecode4 = 0 ;
3431 size_t val5 ;
3432 0 int ecode5 = 0 ;
3433 0 void *argp6 = 0 ;
3434 0 int res6 = 0 ;
3435 0 int argvi = 0;
3436 double result;
3437 0 dXSARGS;
3438
3439 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
3440 0 SWIG_croak("Usage: gsl_stats_spearman(data1,stride1,data2,stride2,n,work);");
3441 }
3442 {
3443 AV *tempav;
3444 I32 len;
3445 int i;
3446 SV **tv;
3447 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3448 0 croak("Math::GSL : $data1 is not a reference!");
3449 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3450 0 croak("Math::GSL : $data1 is not an array ref!");
3451
3452 0 tempav = (AV*)SvRV(ST(0));
3453 0 len = av_len(tempav);
3454 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3455 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3456 0 tv = av_fetch(tempav, i, 0);
3457 0 arg1[i] = (double) SvNV(*tv);
3458 }
3459 }
3460 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3461 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3462 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_spearman" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_spearman" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3463 }
3464 0 arg2 = (size_t)(val2);
3465 {
3466 AV *tempav;
3467 I32 len;
3468 int i;
3469 SV **tv;
3470 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
3471 0 croak("Math::GSL : $data2 is not a reference!");
3472 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
3473 0 croak("Math::GSL : $data2 is not an array ref!");
3474
3475 0 tempav = (AV*)SvRV(ST(2));
3476 0 len = av_len(tempav);
3477 0 arg3 = (double *) malloc((len+2)*sizeof(double));
3478 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3479 0 tv = av_fetch(tempav, i, 0);
3480 0 arg3[i] = (double) SvNV(*tv);
3481 }
3482 }
3483 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3484 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3485 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_spearman" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_spearman" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3486 }
3487 0 arg4 = (size_t)(val4);
3488 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3489 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3490 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_spearman" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_spearman" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3491 }
3492 0 arg5 = (size_t)(val5);
3493 0 res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_double, 0 | 0 );
3494 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
3495 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_stats_spearman" "', argument " "6"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_stats_spearman" "', argument " "6"" of type '" "double []""'"); 0 0 0
3496 }
3497 0 arg6 = (double *)(argp6);
3498 0 result = (double)gsl_stats_spearman((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6);
3499 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3500 {
3501 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3502 }
3503
3504 {
3505 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3506 }
3507
3508
3509
3510 0 XSRETURN(argvi);
3511 0 fail:
3512 {
3513 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3514 }
3515
3516 {
3517 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3518 }
3519
3520
3521
3522 0 SWIG_croak_null();
3523 }
3524 }
3525  
3526  
3527 0 XS(_wrap_gsl_stats_variance_m) {
3528 {
3529 0 double *arg1 = (double *) (double *)0 ;
3530 size_t arg2 ;
3531 size_t arg3 ;
3532 double arg4 ;
3533 size_t val2 ;
3534 0 int ecode2 = 0 ;
3535 size_t val3 ;
3536 0 int ecode3 = 0 ;
3537 double val4 ;
3538 0 int ecode4 = 0 ;
3539 0 int argvi = 0;
3540 double result;
3541 0 dXSARGS;
3542
3543 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
3544 0 SWIG_croak("Usage: gsl_stats_variance_m(data,stride,n,mean);");
3545 }
3546 {
3547 AV *tempav;
3548 I32 len;
3549 int i;
3550 SV **tv;
3551 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3552 0 croak("Math::GSL : $data is not a reference!");
3553 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3554 0 croak("Math::GSL : $data is not an array ref!");
3555
3556 0 tempav = (AV*)SvRV(ST(0));
3557 0 len = av_len(tempav);
3558 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3559 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3560 0 tv = av_fetch(tempav, i, 0);
3561 0 arg1[i] = (double) SvNV(*tv);
3562 }
3563 }
3564 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3565 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3566 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_variance_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_variance_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3567 }
3568 0 arg2 = (size_t)(val2);
3569 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3570 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3571 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_variance_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_variance_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3572 }
3573 0 arg3 = (size_t)(val3);
3574 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3575 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3576 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_variance_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_variance_m" "', argument " "4"" of type '" "double""'"); 0 0 0
3577 }
3578 0 arg4 = (double)(val4);
3579 0 result = (double)gsl_stats_variance_m((double const (*))arg1,arg2,arg3,arg4);
3580 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3581 {
3582 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3583 }
3584
3585
3586
3587 0 XSRETURN(argvi);
3588 0 fail:
3589 {
3590 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3591 }
3592
3593
3594
3595 0 SWIG_croak_null();
3596 }
3597 }
3598  
3599  
3600 0 XS(_wrap_gsl_stats_sd_m) {
3601 {
3602 0 double *arg1 = (double *) (double *)0 ;
3603 size_t arg2 ;
3604 size_t arg3 ;
3605 double arg4 ;
3606 size_t val2 ;
3607 0 int ecode2 = 0 ;
3608 size_t val3 ;
3609 0 int ecode3 = 0 ;
3610 double val4 ;
3611 0 int ecode4 = 0 ;
3612 0 int argvi = 0;
3613 double result;
3614 0 dXSARGS;
3615
3616 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
3617 0 SWIG_croak("Usage: gsl_stats_sd_m(data,stride,n,mean);");
3618 }
3619 {
3620 AV *tempav;
3621 I32 len;
3622 int i;
3623 SV **tv;
3624 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3625 0 croak("Math::GSL : $data is not a reference!");
3626 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3627 0 croak("Math::GSL : $data is not an array ref!");
3628
3629 0 tempav = (AV*)SvRV(ST(0));
3630 0 len = av_len(tempav);
3631 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3632 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3633 0 tv = av_fetch(tempav, i, 0);
3634 0 arg1[i] = (double) SvNV(*tv);
3635 }
3636 }
3637 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3638 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3639 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_sd_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_sd_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3640 }
3641 0 arg2 = (size_t)(val2);
3642 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3643 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3644 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_sd_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_sd_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3645 }
3646 0 arg3 = (size_t)(val3);
3647 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3648 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3649 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_sd_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_sd_m" "', argument " "4"" of type '" "double""'"); 0 0 0
3650 }
3651 0 arg4 = (double)(val4);
3652 0 result = (double)gsl_stats_sd_m((double const (*))arg1,arg2,arg3,arg4);
3653 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3654 {
3655 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3656 }
3657
3658
3659
3660 0 XSRETURN(argvi);
3661 0 fail:
3662 {
3663 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3664 }
3665
3666
3667
3668 0 SWIG_croak_null();
3669 }
3670 }
3671  
3672  
3673 0 XS(_wrap_gsl_stats_absdev_m) {
3674 {
3675 0 double *arg1 = (double *) (double *)0 ;
3676 size_t arg2 ;
3677 size_t arg3 ;
3678 double arg4 ;
3679 size_t val2 ;
3680 0 int ecode2 = 0 ;
3681 size_t val3 ;
3682 0 int ecode3 = 0 ;
3683 double val4 ;
3684 0 int ecode4 = 0 ;
3685 0 int argvi = 0;
3686 double result;
3687 0 dXSARGS;
3688
3689 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
3690 0 SWIG_croak("Usage: gsl_stats_absdev_m(data,stride,n,mean);");
3691 }
3692 {
3693 AV *tempav;
3694 I32 len;
3695 int i;
3696 SV **tv;
3697 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3698 0 croak("Math::GSL : $data is not a reference!");
3699 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3700 0 croak("Math::GSL : $data is not an array ref!");
3701
3702 0 tempav = (AV*)SvRV(ST(0));
3703 0 len = av_len(tempav);
3704 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3705 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3706 0 tv = av_fetch(tempav, i, 0);
3707 0 arg1[i] = (double) SvNV(*tv);
3708 }
3709 }
3710 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3711 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3712 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_absdev_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_absdev_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3713 }
3714 0 arg2 = (size_t)(val2);
3715 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3716 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3717 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_absdev_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_absdev_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3718 }
3719 0 arg3 = (size_t)(val3);
3720 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3721 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3722 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_absdev_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_absdev_m" "', argument " "4"" of type '" "double""'"); 0 0 0
3723 }
3724 0 arg4 = (double)(val4);
3725 0 result = (double)gsl_stats_absdev_m((double const (*))arg1,arg2,arg3,arg4);
3726 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3727 {
3728 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3729 }
3730
3731
3732
3733 0 XSRETURN(argvi);
3734 0 fail:
3735 {
3736 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3737 }
3738
3739
3740
3741 0 SWIG_croak_null();
3742 }
3743 }
3744  
3745  
3746 0 XS(_wrap_gsl_stats_skew_m_sd) {
3747 {
3748 0 double *arg1 = (double *) (double *)0 ;
3749 size_t arg2 ;
3750 size_t arg3 ;
3751 double arg4 ;
3752 double arg5 ;
3753 size_t val2 ;
3754 0 int ecode2 = 0 ;
3755 size_t val3 ;
3756 0 int ecode3 = 0 ;
3757 double val4 ;
3758 0 int ecode4 = 0 ;
3759 double val5 ;
3760 0 int ecode5 = 0 ;
3761 0 int argvi = 0;
3762 double result;
3763 0 dXSARGS;
3764
3765 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
3766 0 SWIG_croak("Usage: gsl_stats_skew_m_sd(data,stride,n,mean,sd);");
3767 }
3768 {
3769 AV *tempav;
3770 I32 len;
3771 int i;
3772 SV **tv;
3773 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3774 0 croak("Math::GSL : $data is not a reference!");
3775 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3776 0 croak("Math::GSL : $data is not an array ref!");
3777
3778 0 tempav = (AV*)SvRV(ST(0));
3779 0 len = av_len(tempav);
3780 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3781 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3782 0 tv = av_fetch(tempav, i, 0);
3783 0 arg1[i] = (double) SvNV(*tv);
3784 }
3785 }
3786 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3787 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3788 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_skew_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_skew_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3789 }
3790 0 arg2 = (size_t)(val2);
3791 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3792 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3793 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_skew_m_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_skew_m_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3794 }
3795 0 arg3 = (size_t)(val3);
3796 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3797 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3798 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_skew_m_sd" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_skew_m_sd" "', argument " "4"" of type '" "double""'"); 0 0 0
3799 }
3800 0 arg4 = (double)(val4);
3801 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3802 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3803 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_skew_m_sd" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_skew_m_sd" "', argument " "5"" of type '" "double""'"); 0 0 0
3804 }
3805 0 arg5 = (double)(val5);
3806 0 result = (double)gsl_stats_skew_m_sd((double const (*))arg1,arg2,arg3,arg4,arg5);
3807 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3808 {
3809 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3810 }
3811
3812
3813
3814
3815 0 XSRETURN(argvi);
3816 0 fail:
3817 {
3818 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3819 }
3820
3821
3822
3823
3824 0 SWIG_croak_null();
3825 }
3826 }
3827  
3828  
3829 0 XS(_wrap_gsl_stats_kurtosis_m_sd) {
3830 {
3831 0 double *arg1 = (double *) (double *)0 ;
3832 size_t arg2 ;
3833 size_t arg3 ;
3834 double arg4 ;
3835 double arg5 ;
3836 size_t val2 ;
3837 0 int ecode2 = 0 ;
3838 size_t val3 ;
3839 0 int ecode3 = 0 ;
3840 double val4 ;
3841 0 int ecode4 = 0 ;
3842 double val5 ;
3843 0 int ecode5 = 0 ;
3844 0 int argvi = 0;
3845 double result;
3846 0 dXSARGS;
3847
3848 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
3849 0 SWIG_croak("Usage: gsl_stats_kurtosis_m_sd(data,stride,n,mean,sd);");
3850 }
3851 {
3852 AV *tempav;
3853 I32 len;
3854 int i;
3855 SV **tv;
3856 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3857 0 croak("Math::GSL : $data is not a reference!");
3858 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3859 0 croak("Math::GSL : $data is not an array ref!");
3860
3861 0 tempav = (AV*)SvRV(ST(0));
3862 0 len = av_len(tempav);
3863 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3864 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3865 0 tv = av_fetch(tempav, i, 0);
3866 0 arg1[i] = (double) SvNV(*tv);
3867 }
3868 }
3869 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3870 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3871 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3872 }
3873 0 arg2 = (size_t)(val2);
3874 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3875 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3876 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3877 }
3878 0 arg3 = (size_t)(val3);
3879 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3880 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3881 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "4"" of type '" "double""'"); 0 0 0
3882 }
3883 0 arg4 = (double)(val4);
3884 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3885 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3886 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_kurtosis_m_sd" "', argument " "5"" of type '" "double""'"); 0 0 0
3887 }
3888 0 arg5 = (double)(val5);
3889 0 result = (double)gsl_stats_kurtosis_m_sd((double const (*))arg1,arg2,arg3,arg4,arg5);
3890 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3891 {
3892 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3893 }
3894
3895
3896
3897
3898 0 XSRETURN(argvi);
3899 0 fail:
3900 {
3901 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3902 }
3903
3904
3905
3906
3907 0 SWIG_croak_null();
3908 }
3909 }
3910  
3911  
3912 0 XS(_wrap_gsl_stats_lag1_autocorrelation_m) {
3913 {
3914 0 double *arg1 = (double *) (double *)0 ;
3915 size_t arg2 ;
3916 size_t arg3 ;
3917 double arg4 ;
3918 size_t val2 ;
3919 0 int ecode2 = 0 ;
3920 size_t val3 ;
3921 0 int ecode3 = 0 ;
3922 double val4 ;
3923 0 int ecode4 = 0 ;
3924 0 int argvi = 0;
3925 double result;
3926 0 dXSARGS;
3927
3928 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
3929 0 SWIG_croak("Usage: gsl_stats_lag1_autocorrelation_m(data,stride,n,mean);");
3930 }
3931 {
3932 AV *tempav;
3933 I32 len;
3934 int i;
3935 SV **tv;
3936 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3937 0 croak("Math::GSL : $data is not a reference!");
3938 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3939 0 croak("Math::GSL : $data is not an array ref!");
3940
3941 0 tempav = (AV*)SvRV(ST(0));
3942 0 len = av_len(tempav);
3943 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3944 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3945 0 tv = av_fetch(tempav, i, 0);
3946 0 arg1[i] = (double) SvNV(*tv);
3947 }
3948 }
3949 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3950 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3951 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_lag1_autocorrelation_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_lag1_autocorrelation_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3952 }
3953 0 arg2 = (size_t)(val2);
3954 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3955 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3956 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_lag1_autocorrelation_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_lag1_autocorrelation_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3957 }
3958 0 arg3 = (size_t)(val3);
3959 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3960 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3961 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_lag1_autocorrelation_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_lag1_autocorrelation_m" "', argument " "4"" of type '" "double""'"); 0 0 0
3962 }
3963 0 arg4 = (double)(val4);
3964 0 result = (double)gsl_stats_lag1_autocorrelation_m((double const (*))arg1,arg2,arg3,arg4);
3965 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3966 {
3967 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3968 }
3969
3970
3971
3972 0 XSRETURN(argvi);
3973 0 fail:
3974 {
3975 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3976 }
3977
3978
3979
3980 0 SWIG_croak_null();
3981 }
3982 }
3983  
3984  
3985 0 XS(_wrap_gsl_stats_covariance_m) {
3986 {
3987 0 double *arg1 = (double *) (double *)0 ;
3988 size_t arg2 ;
3989 0 double *arg3 = (double *) (double *)0 ;
3990 size_t arg4 ;
3991 size_t arg5 ;
3992 double arg6 ;
3993 double arg7 ;
3994 size_t val2 ;
3995 0 int ecode2 = 0 ;
3996 size_t val4 ;
3997 0 int ecode4 = 0 ;
3998 size_t val5 ;
3999 0 int ecode5 = 0 ;
4000 double val6 ;
4001 0 int ecode6 = 0 ;
4002 double val7 ;
4003 0 int ecode7 = 0 ;
4004 0 int argvi = 0;
4005 double result;
4006 0 dXSARGS;
4007
4008 0 ▶ if ((items < 7) || (items > 7)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 7) || (items > 7)) { 0 0 0
if ((items < 7) || (items > 7)) { 0 0 0
4009 0 SWIG_croak("Usage: gsl_stats_covariance_m(data1,stride1,data2,stride2,n,mean1,mean2);");
4010 }
4011 {
4012 AV *tempav;
4013 I32 len;
4014 int i;
4015 SV **tv;
4016 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4017 0 croak("Math::GSL : $data1 is not a reference!");
4018 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4019 0 croak("Math::GSL : $data1 is not an array ref!");
4020
4021 0 tempav = (AV*)SvRV(ST(0));
4022 0 len = av_len(tempav);
4023 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4024 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4025 0 tv = av_fetch(tempav, i, 0);
4026 0 arg1[i] = (double) SvNV(*tv);
4027 }
4028 }
4029 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4030 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4031 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_covariance_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_covariance_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4032 }
4033 0 arg2 = (size_t)(val2);
4034 {
4035 AV *tempav;
4036 I32 len;
4037 int i;
4038 SV **tv;
4039 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4040 0 croak("Math::GSL : $data2 is not a reference!");
4041 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4042 0 croak("Math::GSL : $data2 is not an array ref!");
4043
4044 0 tempav = (AV*)SvRV(ST(2));
4045 0 len = av_len(tempav);
4046 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4047 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4048 0 tv = av_fetch(tempav, i, 0);
4049 0 arg3[i] = (double) SvNV(*tv);
4050 }
4051 }
4052 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4053 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4054 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_covariance_m" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_covariance_m" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4055 }
4056 0 arg4 = (size_t)(val4);
4057 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4058 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4059 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_covariance_m" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_covariance_m" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4060 }
4061 0 arg5 = (size_t)(val5);
4062 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
4063 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
4064 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_covariance_m" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_covariance_m" "', argument " "6"" of type '" "double""'"); 0 0 0
4065 }
4066 0 arg6 = (double)(val6);
4067 0 ecode7 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
4068 0 ▶ if (!SWIG_IsOK(ecode7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode7)) { 0 0 0
4069 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_covariance_m" "', argument " "7"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_covariance_m" "', argument " "7"" of type '" "double""'"); 0 0 0
4070 }
4071 0 arg7 = (double)(val7);
4072 0 result = (double)gsl_stats_covariance_m((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6,arg7);
4073 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4074 {
4075 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4076 }
4077
4078 {
4079 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4080 }
4081
4082
4083
4084
4085 0 XSRETURN(argvi);
4086 0 fail:
4087 {
4088 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4089 }
4090
4091 {
4092 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4093 }
4094
4095
4096
4097
4098 0 SWIG_croak_null();
4099 }
4100 }
4101  
4102  
4103 0 XS(_wrap_gsl_stats_wmean) {
4104 {
4105 0 double *arg1 = (double *) (double *)0 ;
4106 size_t arg2 ;
4107 0 double *arg3 = (double *) (double *)0 ;
4108 size_t arg4 ;
4109 size_t arg5 ;
4110 size_t val2 ;
4111 0 int ecode2 = 0 ;
4112 size_t val4 ;
4113 0 int ecode4 = 0 ;
4114 size_t val5 ;
4115 0 int ecode5 = 0 ;
4116 0 int argvi = 0;
4117 double result;
4118 0 dXSARGS;
4119
4120 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
4121 0 SWIG_croak("Usage: gsl_stats_wmean(w,wstride,data,stride,n);");
4122 }
4123 {
4124 AV *tempav;
4125 I32 len;
4126 int i;
4127 SV **tv;
4128 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4129 0 croak("Math::GSL : $w is not a reference!");
4130 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4131 0 croak("Math::GSL : $w is not an array ref!");
4132
4133 0 tempav = (AV*)SvRV(ST(0));
4134 0 len = av_len(tempav);
4135 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4136 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4137 0 tv = av_fetch(tempav, i, 0);
4138 0 arg1[i] = (double) SvNV(*tv);
4139 }
4140 }
4141 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4142 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4143 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wmean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wmean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4144 }
4145 0 arg2 = (size_t)(val2);
4146 {
4147 AV *tempav;
4148 I32 len;
4149 int i;
4150 SV **tv;
4151 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4152 0 croak("Math::GSL : $data is not a reference!");
4153 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4154 0 croak("Math::GSL : $data is not an array ref!");
4155
4156 0 tempav = (AV*)SvRV(ST(2));
4157 0 len = av_len(tempav);
4158 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4159 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4160 0 tv = av_fetch(tempav, i, 0);
4161 0 arg3[i] = (double) SvNV(*tv);
4162 }
4163 }
4164 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4165 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4166 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wmean" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wmean" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4167 }
4168 0 arg4 = (size_t)(val4);
4169 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4170 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4171 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wmean" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wmean" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4172 }
4173 0 arg5 = (size_t)(val5);
4174 0 result = (double)gsl_stats_wmean((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
4175 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4176 {
4177 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4178 }
4179
4180 {
4181 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4182 }
4183
4184
4185 0 XSRETURN(argvi);
4186 0 fail:
4187 {
4188 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4189 }
4190
4191 {
4192 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4193 }
4194
4195
4196 0 SWIG_croak_null();
4197 }
4198 }
4199  
4200  
4201 0 XS(_wrap_gsl_stats_wvariance) {
4202 {
4203 0 double *arg1 = (double *) (double *)0 ;
4204 size_t arg2 ;
4205 0 double *arg3 = (double *) (double *)0 ;
4206 size_t arg4 ;
4207 size_t arg5 ;
4208 size_t val2 ;
4209 0 int ecode2 = 0 ;
4210 size_t val4 ;
4211 0 int ecode4 = 0 ;
4212 size_t val5 ;
4213 0 int ecode5 = 0 ;
4214 0 int argvi = 0;
4215 double result;
4216 0 dXSARGS;
4217
4218 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
4219 0 SWIG_croak("Usage: gsl_stats_wvariance(w,wstride,data,stride,n);");
4220 }
4221 {
4222 AV *tempav;
4223 I32 len;
4224 int i;
4225 SV **tv;
4226 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4227 0 croak("Math::GSL : $w is not a reference!");
4228 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4229 0 croak("Math::GSL : $w is not an array ref!");
4230
4231 0 tempav = (AV*)SvRV(ST(0));
4232 0 len = av_len(tempav);
4233 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4234 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4235 0 tv = av_fetch(tempav, i, 0);
4236 0 arg1[i] = (double) SvNV(*tv);
4237 }
4238 }
4239 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4240 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4241 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wvariance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wvariance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4242 }
4243 0 arg2 = (size_t)(val2);
4244 {
4245 AV *tempav;
4246 I32 len;
4247 int i;
4248 SV **tv;
4249 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4250 0 croak("Math::GSL : $data is not a reference!");
4251 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4252 0 croak("Math::GSL : $data is not an array ref!");
4253
4254 0 tempav = (AV*)SvRV(ST(2));
4255 0 len = av_len(tempav);
4256 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4257 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4258 0 tv = av_fetch(tempav, i, 0);
4259 0 arg3[i] = (double) SvNV(*tv);
4260 }
4261 }
4262 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4263 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4264 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wvariance" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wvariance" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4265 }
4266 0 arg4 = (size_t)(val4);
4267 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4268 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4269 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wvariance" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wvariance" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4270 }
4271 0 arg5 = (size_t)(val5);
4272 0 result = (double)gsl_stats_wvariance((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
4273 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4274 {
4275 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4276 }
4277
4278 {
4279 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4280 }
4281
4282
4283 0 XSRETURN(argvi);
4284 0 fail:
4285 {
4286 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4287 }
4288
4289 {
4290 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4291 }
4292
4293
4294 0 SWIG_croak_null();
4295 }
4296 }
4297  
4298  
4299 0 XS(_wrap_gsl_stats_wsd) {
4300 {
4301 0 double *arg1 = (double *) (double *)0 ;
4302 size_t arg2 ;
4303 0 double *arg3 = (double *) (double *)0 ;
4304 size_t arg4 ;
4305 size_t arg5 ;
4306 size_t val2 ;
4307 0 int ecode2 = 0 ;
4308 size_t val4 ;
4309 0 int ecode4 = 0 ;
4310 size_t val5 ;
4311 0 int ecode5 = 0 ;
4312 0 int argvi = 0;
4313 double result;
4314 0 dXSARGS;
4315
4316 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
4317 0 SWIG_croak("Usage: gsl_stats_wsd(w,wstride,data,stride,n);");
4318 }
4319 {
4320 AV *tempav;
4321 I32 len;
4322 int i;
4323 SV **tv;
4324 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4325 0 croak("Math::GSL : $w is not a reference!");
4326 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4327 0 croak("Math::GSL : $w is not an array ref!");
4328
4329 0 tempav = (AV*)SvRV(ST(0));
4330 0 len = av_len(tempav);
4331 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4332 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4333 0 tv = av_fetch(tempav, i, 0);
4334 0 arg1[i] = (double) SvNV(*tv);
4335 }
4336 }
4337 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4338 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4339 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wsd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wsd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4340 }
4341 0 arg2 = (size_t)(val2);
4342 {
4343 AV *tempav;
4344 I32 len;
4345 int i;
4346 SV **tv;
4347 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4348 0 croak("Math::GSL : $data is not a reference!");
4349 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4350 0 croak("Math::GSL : $data is not an array ref!");
4351
4352 0 tempav = (AV*)SvRV(ST(2));
4353 0 len = av_len(tempav);
4354 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4355 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4356 0 tv = av_fetch(tempav, i, 0);
4357 0 arg3[i] = (double) SvNV(*tv);
4358 }
4359 }
4360 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4361 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4362 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wsd" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wsd" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4363 }
4364 0 arg4 = (size_t)(val4);
4365 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4366 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4367 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wsd" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wsd" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4368 }
4369 0 arg5 = (size_t)(val5);
4370 0 result = (double)gsl_stats_wsd((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
4371 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4372 {
4373 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4374 }
4375
4376 {
4377 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4378 }
4379
4380
4381 0 XSRETURN(argvi);
4382 0 fail:
4383 {
4384 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4385 }
4386
4387 {
4388 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4389 }
4390
4391
4392 0 SWIG_croak_null();
4393 }
4394 }
4395  
4396  
4397 0 XS(_wrap_gsl_stats_wvariance_with_fixed_mean) {
4398 {
4399 0 double *arg1 = (double *) (double *)0 ;
4400 size_t arg2 ;
4401 0 double *arg3 = (double *) (double *)0 ;
4402 size_t arg4 ;
4403 size_t arg5 ;
4404 double arg6 ;
4405 size_t val2 ;
4406 0 int ecode2 = 0 ;
4407 size_t val4 ;
4408 0 int ecode4 = 0 ;
4409 size_t val5 ;
4410 0 int ecode5 = 0 ;
4411 double val6 ;
4412 0 int ecode6 = 0 ;
4413 0 int argvi = 0;
4414 double result;
4415 0 dXSARGS;
4416
4417 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
4418 0 SWIG_croak("Usage: gsl_stats_wvariance_with_fixed_mean(w,wstride,data,stride,n,mean);");
4419 }
4420 {
4421 AV *tempav;
4422 I32 len;
4423 int i;
4424 SV **tv;
4425 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4426 0 croak("Math::GSL : $w is not a reference!");
4427 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4428 0 croak("Math::GSL : $w is not an array ref!");
4429
4430 0 tempav = (AV*)SvRV(ST(0));
4431 0 len = av_len(tempav);
4432 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4433 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4434 0 tv = av_fetch(tempav, i, 0);
4435 0 arg1[i] = (double) SvNV(*tv);
4436 }
4437 }
4438 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4439 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4440 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4441 }
4442 0 arg2 = (size_t)(val2);
4443 {
4444 AV *tempav;
4445 I32 len;
4446 int i;
4447 SV **tv;
4448 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4449 0 croak("Math::GSL : $data is not a reference!");
4450 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4451 0 croak("Math::GSL : $data is not an array ref!");
4452
4453 0 tempav = (AV*)SvRV(ST(2));
4454 0 len = av_len(tempav);
4455 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4456 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4457 0 tv = av_fetch(tempav, i, 0);
4458 0 arg3[i] = (double) SvNV(*tv);
4459 }
4460 }
4461 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4462 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4463 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4464 }
4465 0 arg4 = (size_t)(val4);
4466 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4467 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4468 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4469 }
4470 0 arg5 = (size_t)(val5);
4471 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
4472 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
4473 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wvariance_with_fixed_mean" "', argument " "6"" of type '" "double""'"); 0 0 0
4474 }
4475 0 arg6 = (double)(val6);
4476 0 result = (double)gsl_stats_wvariance_with_fixed_mean((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6);
4477 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4478 {
4479 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4480 }
4481
4482 {
4483 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4484 }
4485
4486
4487
4488 0 XSRETURN(argvi);
4489 0 fail:
4490 {
4491 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4492 }
4493
4494 {
4495 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4496 }
4497
4498
4499
4500 0 SWIG_croak_null();
4501 }
4502 }
4503  
4504  
4505 0 XS(_wrap_gsl_stats_wsd_with_fixed_mean) {
4506 {
4507 0 double *arg1 = (double *) (double *)0 ;
4508 size_t arg2 ;
4509 0 double *arg3 = (double *) (double *)0 ;
4510 size_t arg4 ;
4511 size_t arg5 ;
4512 double arg6 ;
4513 size_t val2 ;
4514 0 int ecode2 = 0 ;
4515 size_t val4 ;
4516 0 int ecode4 = 0 ;
4517 size_t val5 ;
4518 0 int ecode5 = 0 ;
4519 double val6 ;
4520 0 int ecode6 = 0 ;
4521 0 int argvi = 0;
4522 double result;
4523 0 dXSARGS;
4524
4525 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
4526 0 SWIG_croak("Usage: gsl_stats_wsd_with_fixed_mean(w,wstride,data,stride,n,mean);");
4527 }
4528 {
4529 AV *tempav;
4530 I32 len;
4531 int i;
4532 SV **tv;
4533 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4534 0 croak("Math::GSL : $w is not a reference!");
4535 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4536 0 croak("Math::GSL : $w is not an array ref!");
4537
4538 0 tempav = (AV*)SvRV(ST(0));
4539 0 len = av_len(tempav);
4540 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4541 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4542 0 tv = av_fetch(tempav, i, 0);
4543 0 arg1[i] = (double) SvNV(*tv);
4544 }
4545 }
4546 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4547 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4548 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4549 }
4550 0 arg2 = (size_t)(val2);
4551 {
4552 AV *tempav;
4553 I32 len;
4554 int i;
4555 SV **tv;
4556 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4557 0 croak("Math::GSL : $data is not a reference!");
4558 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4559 0 croak("Math::GSL : $data is not an array ref!");
4560
4561 0 tempav = (AV*)SvRV(ST(2));
4562 0 len = av_len(tempav);
4563 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4564 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4565 0 tv = av_fetch(tempav, i, 0);
4566 0 arg3[i] = (double) SvNV(*tv);
4567 }
4568 }
4569 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4570 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4571 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4572 }
4573 0 arg4 = (size_t)(val4);
4574 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4575 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4576 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4577 }
4578 0 arg5 = (size_t)(val5);
4579 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
4580 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
4581 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wsd_with_fixed_mean" "', argument " "6"" of type '" "double""'"); 0 0 0
4582 }
4583 0 arg6 = (double)(val6);
4584 0 result = (double)gsl_stats_wsd_with_fixed_mean((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6);
4585 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4586 {
4587 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4588 }
4589
4590 {
4591 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4592 }
4593
4594
4595
4596 0 XSRETURN(argvi);
4597 0 fail:
4598 {
4599 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4600 }
4601
4602 {
4603 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4604 }
4605
4606
4607
4608 0 SWIG_croak_null();
4609 }
4610 }
4611  
4612  
4613 0 XS(_wrap_gsl_stats_wtss) {
4614 {
4615 0 double *arg1 = (double *) (double *)0 ;
4616 size_t arg2 ;
4617 0 double *arg3 = (double *) (double *)0 ;
4618 size_t arg4 ;
4619 size_t arg5 ;
4620 size_t val2 ;
4621 0 int ecode2 = 0 ;
4622 size_t val4 ;
4623 0 int ecode4 = 0 ;
4624 size_t val5 ;
4625 0 int ecode5 = 0 ;
4626 0 int argvi = 0;
4627 double result;
4628 0 dXSARGS;
4629
4630 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
4631 0 SWIG_croak("Usage: gsl_stats_wtss(w,wstride,data,stride,n);");
4632 }
4633 {
4634 AV *tempav;
4635 I32 len;
4636 int i;
4637 SV **tv;
4638 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4639 0 croak("Math::GSL : $w is not a reference!");
4640 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4641 0 croak("Math::GSL : $w is not an array ref!");
4642
4643 0 tempav = (AV*)SvRV(ST(0));
4644 0 len = av_len(tempav);
4645 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4646 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4647 0 tv = av_fetch(tempav, i, 0);
4648 0 arg1[i] = (double) SvNV(*tv);
4649 }
4650 }
4651 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4652 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4653 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wtss" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wtss" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4654 }
4655 0 arg2 = (size_t)(val2);
4656 {
4657 AV *tempav;
4658 I32 len;
4659 int i;
4660 SV **tv;
4661 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4662 0 croak("Math::GSL : $data is not a reference!");
4663 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4664 0 croak("Math::GSL : $data is not an array ref!");
4665
4666 0 tempav = (AV*)SvRV(ST(2));
4667 0 len = av_len(tempav);
4668 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4669 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4670 0 tv = av_fetch(tempav, i, 0);
4671 0 arg3[i] = (double) SvNV(*tv);
4672 }
4673 }
4674 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4675 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4676 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wtss" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wtss" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4677 }
4678 0 arg4 = (size_t)(val4);
4679 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4680 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4681 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wtss" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wtss" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4682 }
4683 0 arg5 = (size_t)(val5);
4684 0 result = (double)gsl_stats_wtss((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
4685 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4686 {
4687 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4688 }
4689
4690 {
4691 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4692 }
4693
4694
4695 0 XSRETURN(argvi);
4696 0 fail:
4697 {
4698 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4699 }
4700
4701 {
4702 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4703 }
4704
4705
4706 0 SWIG_croak_null();
4707 }
4708 }
4709  
4710  
4711 0 XS(_wrap_gsl_stats_wtss_m) {
4712 {
4713 0 double *arg1 = (double *) (double *)0 ;
4714 size_t arg2 ;
4715 0 double *arg3 = (double *) (double *)0 ;
4716 size_t arg4 ;
4717 size_t arg5 ;
4718 double arg6 ;
4719 size_t val2 ;
4720 0 int ecode2 = 0 ;
4721 size_t val4 ;
4722 0 int ecode4 = 0 ;
4723 size_t val5 ;
4724 0 int ecode5 = 0 ;
4725 double val6 ;
4726 0 int ecode6 = 0 ;
4727 0 int argvi = 0;
4728 double result;
4729 0 dXSARGS;
4730
4731 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
4732 0 SWIG_croak("Usage: gsl_stats_wtss_m(w,wstride,data,stride,n,wmean);");
4733 }
4734 {
4735 AV *tempav;
4736 I32 len;
4737 int i;
4738 SV **tv;
4739 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4740 0 croak("Math::GSL : $w is not a reference!");
4741 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4742 0 croak("Math::GSL : $w is not an array ref!");
4743
4744 0 tempav = (AV*)SvRV(ST(0));
4745 0 len = av_len(tempav);
4746 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4747 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4748 0 tv = av_fetch(tempav, i, 0);
4749 0 arg1[i] = (double) SvNV(*tv);
4750 }
4751 }
4752 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4753 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4754 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wtss_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wtss_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4755 }
4756 0 arg2 = (size_t)(val2);
4757 {
4758 AV *tempav;
4759 I32 len;
4760 int i;
4761 SV **tv;
4762 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4763 0 croak("Math::GSL : $data is not a reference!");
4764 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4765 0 croak("Math::GSL : $data is not an array ref!");
4766
4767 0 tempav = (AV*)SvRV(ST(2));
4768 0 len = av_len(tempav);
4769 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4770 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4771 0 tv = av_fetch(tempav, i, 0);
4772 0 arg3[i] = (double) SvNV(*tv);
4773 }
4774 }
4775 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4776 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4777 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wtss_m" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wtss_m" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4778 }
4779 0 arg4 = (size_t)(val4);
4780 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4781 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4782 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wtss_m" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wtss_m" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4783 }
4784 0 arg5 = (size_t)(val5);
4785 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
4786 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
4787 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wtss_m" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wtss_m" "', argument " "6"" of type '" "double""'"); 0 0 0
4788 }
4789 0 arg6 = (double)(val6);
4790 0 result = (double)gsl_stats_wtss_m((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6);
4791 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4792 {
4793 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4794 }
4795
4796 {
4797 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4798 }
4799
4800
4801
4802 0 XSRETURN(argvi);
4803 0 fail:
4804 {
4805 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4806 }
4807
4808 {
4809 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4810 }
4811
4812
4813
4814 0 SWIG_croak_null();
4815 }
4816 }
4817  
4818  
4819 0 XS(_wrap_gsl_stats_wabsdev) {
4820 {
4821 0 double *arg1 = (double *) (double *)0 ;
4822 size_t arg2 ;
4823 0 double *arg3 = (double *) (double *)0 ;
4824 size_t arg4 ;
4825 size_t arg5 ;
4826 size_t val2 ;
4827 0 int ecode2 = 0 ;
4828 size_t val4 ;
4829 0 int ecode4 = 0 ;
4830 size_t val5 ;
4831 0 int ecode5 = 0 ;
4832 0 int argvi = 0;
4833 double result;
4834 0 dXSARGS;
4835
4836 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
4837 0 SWIG_croak("Usage: gsl_stats_wabsdev(w,wstride,data,stride,n);");
4838 }
4839 {
4840 AV *tempav;
4841 I32 len;
4842 int i;
4843 SV **tv;
4844 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4845 0 croak("Math::GSL : $w is not a reference!");
4846 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4847 0 croak("Math::GSL : $w is not an array ref!");
4848
4849 0 tempav = (AV*)SvRV(ST(0));
4850 0 len = av_len(tempav);
4851 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4852 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4853 0 tv = av_fetch(tempav, i, 0);
4854 0 arg1[i] = (double) SvNV(*tv);
4855 }
4856 }
4857 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4858 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4859 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wabsdev" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wabsdev" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4860 }
4861 0 arg2 = (size_t)(val2);
4862 {
4863 AV *tempav;
4864 I32 len;
4865 int i;
4866 SV **tv;
4867 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4868 0 croak("Math::GSL : $data is not a reference!");
4869 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4870 0 croak("Math::GSL : $data is not an array ref!");
4871
4872 0 tempav = (AV*)SvRV(ST(2));
4873 0 len = av_len(tempav);
4874 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4875 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4876 0 tv = av_fetch(tempav, i, 0);
4877 0 arg3[i] = (double) SvNV(*tv);
4878 }
4879 }
4880 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4881 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4882 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wabsdev" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wabsdev" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4883 }
4884 0 arg4 = (size_t)(val4);
4885 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4886 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4887 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wabsdev" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wabsdev" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4888 }
4889 0 arg5 = (size_t)(val5);
4890 0 result = (double)gsl_stats_wabsdev((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
4891 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4892 {
4893 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4894 }
4895
4896 {
4897 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4898 }
4899
4900
4901 0 XSRETURN(argvi);
4902 0 fail:
4903 {
4904 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4905 }
4906
4907 {
4908 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4909 }
4910
4911
4912 0 SWIG_croak_null();
4913 }
4914 }
4915  
4916  
4917 0 XS(_wrap_gsl_stats_wskew) {
4918 {
4919 0 double *arg1 = (double *) (double *)0 ;
4920 size_t arg2 ;
4921 0 double *arg3 = (double *) (double *)0 ;
4922 size_t arg4 ;
4923 size_t arg5 ;
4924 size_t val2 ;
4925 0 int ecode2 = 0 ;
4926 size_t val4 ;
4927 0 int ecode4 = 0 ;
4928 size_t val5 ;
4929 0 int ecode5 = 0 ;
4930 0 int argvi = 0;
4931 double result;
4932 0 dXSARGS;
4933
4934 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
4935 0 SWIG_croak("Usage: gsl_stats_wskew(w,wstride,data,stride,n);");
4936 }
4937 {
4938 AV *tempav;
4939 I32 len;
4940 int i;
4941 SV **tv;
4942 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4943 0 croak("Math::GSL : $w is not a reference!");
4944 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4945 0 croak("Math::GSL : $w is not an array ref!");
4946
4947 0 tempav = (AV*)SvRV(ST(0));
4948 0 len = av_len(tempav);
4949 0 arg1 = (double *) malloc((len+2)*sizeof(double));
4950 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4951 0 tv = av_fetch(tempav, i, 0);
4952 0 arg1[i] = (double) SvNV(*tv);
4953 }
4954 }
4955 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4956 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4957 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wskew" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wskew" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4958 }
4959 0 arg2 = (size_t)(val2);
4960 {
4961 AV *tempav;
4962 I32 len;
4963 int i;
4964 SV **tv;
4965 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
4966 0 croak("Math::GSL : $data is not a reference!");
4967 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
4968 0 croak("Math::GSL : $data is not an array ref!");
4969
4970 0 tempav = (AV*)SvRV(ST(2));
4971 0 len = av_len(tempav);
4972 0 arg3 = (double *) malloc((len+2)*sizeof(double));
4973 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4974 0 tv = av_fetch(tempav, i, 0);
4975 0 arg3[i] = (double) SvNV(*tv);
4976 }
4977 }
4978 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
4979 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
4980 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wskew" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wskew" "', argument " "4"" of type '" "size_t""'"); 0 0 0
4981 }
4982 0 arg4 = (size_t)(val4);
4983 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
4984 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
4985 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wskew" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wskew" "', argument " "5"" of type '" "size_t""'"); 0 0 0
4986 }
4987 0 arg5 = (size_t)(val5);
4988 0 result = (double)gsl_stats_wskew((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
4989 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4990 {
4991 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
4992 }
4993
4994 {
4995 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
4996 }
4997
4998
4999 0 XSRETURN(argvi);
5000 0 fail:
5001 {
5002 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5003 }
5004
5005 {
5006 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5007 }
5008
5009
5010 0 SWIG_croak_null();
5011 }
5012 }
5013  
5014  
5015 0 XS(_wrap_gsl_stats_wkurtosis) {
5016 {
5017 0 double *arg1 = (double *) (double *)0 ;
5018 size_t arg2 ;
5019 0 double *arg3 = (double *) (double *)0 ;
5020 size_t arg4 ;
5021 size_t arg5 ;
5022 size_t val2 ;
5023 0 int ecode2 = 0 ;
5024 size_t val4 ;
5025 0 int ecode4 = 0 ;
5026 size_t val5 ;
5027 0 int ecode5 = 0 ;
5028 0 int argvi = 0;
5029 double result;
5030 0 dXSARGS;
5031
5032 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
5033 0 SWIG_croak("Usage: gsl_stats_wkurtosis(w,wstride,data,stride,n);");
5034 }
5035 {
5036 AV *tempav;
5037 I32 len;
5038 int i;
5039 SV **tv;
5040 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5041 0 croak("Math::GSL : $w is not a reference!");
5042 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5043 0 croak("Math::GSL : $w is not an array ref!");
5044
5045 0 tempav = (AV*)SvRV(ST(0));
5046 0 len = av_len(tempav);
5047 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5048 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5049 0 tv = av_fetch(tempav, i, 0);
5050 0 arg1[i] = (double) SvNV(*tv);
5051 }
5052 }
5053 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5054 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5055 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wkurtosis" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wkurtosis" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5056 }
5057 0 arg2 = (size_t)(val2);
5058 {
5059 AV *tempav;
5060 I32 len;
5061 int i;
5062 SV **tv;
5063 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
5064 0 croak("Math::GSL : $data is not a reference!");
5065 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
5066 0 croak("Math::GSL : $data is not an array ref!");
5067
5068 0 tempav = (AV*)SvRV(ST(2));
5069 0 len = av_len(tempav);
5070 0 arg3 = (double *) malloc((len+2)*sizeof(double));
5071 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5072 0 tv = av_fetch(tempav, i, 0);
5073 0 arg3[i] = (double) SvNV(*tv);
5074 }
5075 }
5076 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5077 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5078 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wkurtosis" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wkurtosis" "', argument " "4"" of type '" "size_t""'"); 0 0 0
5079 }
5080 0 arg4 = (size_t)(val4);
5081 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5082 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5083 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wkurtosis" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wkurtosis" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5084 }
5085 0 arg5 = (size_t)(val5);
5086 0 result = (double)gsl_stats_wkurtosis((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5);
5087 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5088 {
5089 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5090 }
5091
5092 {
5093 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5094 }
5095
5096
5097 0 XSRETURN(argvi);
5098 0 fail:
5099 {
5100 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5101 }
5102
5103 {
5104 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5105 }
5106
5107
5108 0 SWIG_croak_null();
5109 }
5110 }
5111  
5112  
5113 0 XS(_wrap_gsl_stats_wvariance_m) {
5114 {
5115 0 double *arg1 = (double *) (double *)0 ;
5116 size_t arg2 ;
5117 0 double *arg3 = (double *) (double *)0 ;
5118 size_t arg4 ;
5119 size_t arg5 ;
5120 double arg6 ;
5121 size_t val2 ;
5122 0 int ecode2 = 0 ;
5123 size_t val4 ;
5124 0 int ecode4 = 0 ;
5125 size_t val5 ;
5126 0 int ecode5 = 0 ;
5127 double val6 ;
5128 0 int ecode6 = 0 ;
5129 0 int argvi = 0;
5130 double result;
5131 0 dXSARGS;
5132
5133 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
5134 0 SWIG_croak("Usage: gsl_stats_wvariance_m(w,wstride,data,stride,n,wmean);");
5135 }
5136 {
5137 AV *tempav;
5138 I32 len;
5139 int i;
5140 SV **tv;
5141 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5142 0 croak("Math::GSL : $w is not a reference!");
5143 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5144 0 croak("Math::GSL : $w is not an array ref!");
5145
5146 0 tempav = (AV*)SvRV(ST(0));
5147 0 len = av_len(tempav);
5148 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5149 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5150 0 tv = av_fetch(tempav, i, 0);
5151 0 arg1[i] = (double) SvNV(*tv);
5152 }
5153 }
5154 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5155 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5156 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wvariance_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wvariance_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5157 }
5158 0 arg2 = (size_t)(val2);
5159 {
5160 AV *tempav;
5161 I32 len;
5162 int i;
5163 SV **tv;
5164 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
5165 0 croak("Math::GSL : $data is not a reference!");
5166 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
5167 0 croak("Math::GSL : $data is not an array ref!");
5168
5169 0 tempav = (AV*)SvRV(ST(2));
5170 0 len = av_len(tempav);
5171 0 arg3 = (double *) malloc((len+2)*sizeof(double));
5172 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5173 0 tv = av_fetch(tempav, i, 0);
5174 0 arg3[i] = (double) SvNV(*tv);
5175 }
5176 }
5177 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5178 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5179 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wvariance_m" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wvariance_m" "', argument " "4"" of type '" "size_t""'"); 0 0 0
5180 }
5181 0 arg4 = (size_t)(val4);
5182 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5183 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5184 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wvariance_m" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wvariance_m" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5185 }
5186 0 arg5 = (size_t)(val5);
5187 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5188 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5189 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wvariance_m" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wvariance_m" "', argument " "6"" of type '" "double""'"); 0 0 0
5190 }
5191 0 arg6 = (double)(val6);
5192 0 result = (double)gsl_stats_wvariance_m((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6);
5193 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5194 {
5195 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5196 }
5197
5198 {
5199 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5200 }
5201
5202
5203
5204 0 XSRETURN(argvi);
5205 0 fail:
5206 {
5207 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5208 }
5209
5210 {
5211 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5212 }
5213
5214
5215
5216 0 SWIG_croak_null();
5217 }
5218 }
5219  
5220  
5221 0 XS(_wrap_gsl_stats_wsd_m) {
5222 {
5223 0 double *arg1 = (double *) (double *)0 ;
5224 size_t arg2 ;
5225 0 double *arg3 = (double *) (double *)0 ;
5226 size_t arg4 ;
5227 size_t arg5 ;
5228 double arg6 ;
5229 size_t val2 ;
5230 0 int ecode2 = 0 ;
5231 size_t val4 ;
5232 0 int ecode4 = 0 ;
5233 size_t val5 ;
5234 0 int ecode5 = 0 ;
5235 double val6 ;
5236 0 int ecode6 = 0 ;
5237 0 int argvi = 0;
5238 double result;
5239 0 dXSARGS;
5240
5241 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
5242 0 SWIG_croak("Usage: gsl_stats_wsd_m(w,wstride,data,stride,n,wmean);");
5243 }
5244 {
5245 AV *tempav;
5246 I32 len;
5247 int i;
5248 SV **tv;
5249 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5250 0 croak("Math::GSL : $w is not a reference!");
5251 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5252 0 croak("Math::GSL : $w is not an array ref!");
5253
5254 0 tempav = (AV*)SvRV(ST(0));
5255 0 len = av_len(tempav);
5256 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5257 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5258 0 tv = av_fetch(tempav, i, 0);
5259 0 arg1[i] = (double) SvNV(*tv);
5260 }
5261 }
5262 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5263 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5264 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wsd_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wsd_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5265 }
5266 0 arg2 = (size_t)(val2);
5267 {
5268 AV *tempav;
5269 I32 len;
5270 int i;
5271 SV **tv;
5272 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
5273 0 croak("Math::GSL : $data is not a reference!");
5274 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
5275 0 croak("Math::GSL : $data is not an array ref!");
5276
5277 0 tempav = (AV*)SvRV(ST(2));
5278 0 len = av_len(tempav);
5279 0 arg3 = (double *) malloc((len+2)*sizeof(double));
5280 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5281 0 tv = av_fetch(tempav, i, 0);
5282 0 arg3[i] = (double) SvNV(*tv);
5283 }
5284 }
5285 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5286 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5287 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wsd_m" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wsd_m" "', argument " "4"" of type '" "size_t""'"); 0 0 0
5288 }
5289 0 arg4 = (size_t)(val4);
5290 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5291 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5292 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wsd_m" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wsd_m" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5293 }
5294 0 arg5 = (size_t)(val5);
5295 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5296 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5297 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wsd_m" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wsd_m" "', argument " "6"" of type '" "double""'"); 0 0 0
5298 }
5299 0 arg6 = (double)(val6);
5300 0 result = (double)gsl_stats_wsd_m((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6);
5301 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5302 {
5303 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5304 }
5305
5306 {
5307 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5308 }
5309
5310
5311
5312 0 XSRETURN(argvi);
5313 0 fail:
5314 {
5315 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5316 }
5317
5318 {
5319 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5320 }
5321
5322
5323
5324 0 SWIG_croak_null();
5325 }
5326 }
5327  
5328  
5329 0 XS(_wrap_gsl_stats_wabsdev_m) {
5330 {
5331 0 double *arg1 = (double *) (double *)0 ;
5332 size_t arg2 ;
5333 0 double *arg3 = (double *) (double *)0 ;
5334 size_t arg4 ;
5335 size_t arg5 ;
5336 double arg6 ;
5337 size_t val2 ;
5338 0 int ecode2 = 0 ;
5339 size_t val4 ;
5340 0 int ecode4 = 0 ;
5341 size_t val5 ;
5342 0 int ecode5 = 0 ;
5343 double val6 ;
5344 0 int ecode6 = 0 ;
5345 0 int argvi = 0;
5346 double result;
5347 0 dXSARGS;
5348
5349 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
5350 0 SWIG_croak("Usage: gsl_stats_wabsdev_m(w,wstride,data,stride,n,wmean);");
5351 }
5352 {
5353 AV *tempav;
5354 I32 len;
5355 int i;
5356 SV **tv;
5357 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5358 0 croak("Math::GSL : $w is not a reference!");
5359 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5360 0 croak("Math::GSL : $w is not an array ref!");
5361
5362 0 tempav = (AV*)SvRV(ST(0));
5363 0 len = av_len(tempav);
5364 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5365 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5366 0 tv = av_fetch(tempav, i, 0);
5367 0 arg1[i] = (double) SvNV(*tv);
5368 }
5369 }
5370 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5371 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5372 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wabsdev_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wabsdev_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5373 }
5374 0 arg2 = (size_t)(val2);
5375 {
5376 AV *tempav;
5377 I32 len;
5378 int i;
5379 SV **tv;
5380 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
5381 0 croak("Math::GSL : $data is not a reference!");
5382 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
5383 0 croak("Math::GSL : $data is not an array ref!");
5384
5385 0 tempav = (AV*)SvRV(ST(2));
5386 0 len = av_len(tempav);
5387 0 arg3 = (double *) malloc((len+2)*sizeof(double));
5388 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5389 0 tv = av_fetch(tempav, i, 0);
5390 0 arg3[i] = (double) SvNV(*tv);
5391 }
5392 }
5393 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5394 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5395 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wabsdev_m" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wabsdev_m" "', argument " "4"" of type '" "size_t""'"); 0 0 0
5396 }
5397 0 arg4 = (size_t)(val4);
5398 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5399 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5400 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wabsdev_m" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wabsdev_m" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5401 }
5402 0 arg5 = (size_t)(val5);
5403 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5404 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5405 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wabsdev_m" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wabsdev_m" "', argument " "6"" of type '" "double""'"); 0 0 0
5406 }
5407 0 arg6 = (double)(val6);
5408 0 result = (double)gsl_stats_wabsdev_m((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6);
5409 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5410 {
5411 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5412 }
5413
5414 {
5415 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5416 }
5417
5418
5419
5420 0 XSRETURN(argvi);
5421 0 fail:
5422 {
5423 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5424 }
5425
5426 {
5427 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5428 }
5429
5430
5431
5432 0 SWIG_croak_null();
5433 }
5434 }
5435  
5436  
5437 0 XS(_wrap_gsl_stats_wskew_m_sd) {
5438 {
5439 0 double *arg1 = (double *) (double *)0 ;
5440 size_t arg2 ;
5441 0 double *arg3 = (double *) (double *)0 ;
5442 size_t arg4 ;
5443 size_t arg5 ;
5444 double arg6 ;
5445 double arg7 ;
5446 size_t val2 ;
5447 0 int ecode2 = 0 ;
5448 size_t val4 ;
5449 0 int ecode4 = 0 ;
5450 size_t val5 ;
5451 0 int ecode5 = 0 ;
5452 double val6 ;
5453 0 int ecode6 = 0 ;
5454 double val7 ;
5455 0 int ecode7 = 0 ;
5456 0 int argvi = 0;
5457 double result;
5458 0 dXSARGS;
5459
5460 0 ▶ if ((items < 7) || (items > 7)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 7) || (items > 7)) { 0 0 0
if ((items < 7) || (items > 7)) { 0 0 0
5461 0 SWIG_croak("Usage: gsl_stats_wskew_m_sd(w,wstride,data,stride,n,wmean,wsd);");
5462 }
5463 {
5464 AV *tempav;
5465 I32 len;
5466 int i;
5467 SV **tv;
5468 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5469 0 croak("Math::GSL : $w is not a reference!");
5470 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5471 0 croak("Math::GSL : $w is not an array ref!");
5472
5473 0 tempav = (AV*)SvRV(ST(0));
5474 0 len = av_len(tempav);
5475 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5476 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5477 0 tv = av_fetch(tempav, i, 0);
5478 0 arg1[i] = (double) SvNV(*tv);
5479 }
5480 }
5481 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5482 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5483 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wskew_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wskew_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5484 }
5485 0 arg2 = (size_t)(val2);
5486 {
5487 AV *tempav;
5488 I32 len;
5489 int i;
5490 SV **tv;
5491 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
5492 0 croak("Math::GSL : $data is not a reference!");
5493 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
5494 0 croak("Math::GSL : $data is not an array ref!");
5495
5496 0 tempav = (AV*)SvRV(ST(2));
5497 0 len = av_len(tempav);
5498 0 arg3 = (double *) malloc((len+2)*sizeof(double));
5499 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5500 0 tv = av_fetch(tempav, i, 0);
5501 0 arg3[i] = (double) SvNV(*tv);
5502 }
5503 }
5504 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5505 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5506 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wskew_m_sd" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wskew_m_sd" "', argument " "4"" of type '" "size_t""'"); 0 0 0
5507 }
5508 0 arg4 = (size_t)(val4);
5509 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5510 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5511 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wskew_m_sd" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wskew_m_sd" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5512 }
5513 0 arg5 = (size_t)(val5);
5514 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5515 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5516 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wskew_m_sd" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wskew_m_sd" "', argument " "6"" of type '" "double""'"); 0 0 0
5517 }
5518 0 arg6 = (double)(val6);
5519 0 ecode7 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
5520 0 ▶ if (!SWIG_IsOK(ecode7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode7)) { 0 0 0
5521 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_wskew_m_sd" "', argument " "7"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_wskew_m_sd" "', argument " "7"" of type '" "double""'"); 0 0 0
5522 }
5523 0 arg7 = (double)(val7);
5524 0 result = (double)gsl_stats_wskew_m_sd((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6,arg7);
5525 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5526 {
5527 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5528 }
5529
5530 {
5531 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5532 }
5533
5534
5535
5536
5537 0 XSRETURN(argvi);
5538 0 fail:
5539 {
5540 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5541 }
5542
5543 {
5544 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5545 }
5546
5547
5548
5549
5550 0 SWIG_croak_null();
5551 }
5552 }
5553  
5554  
5555 0 XS(_wrap_gsl_stats_wkurtosis_m_sd) {
5556 {
5557 0 double *arg1 = (double *) (double *)0 ;
5558 size_t arg2 ;
5559 0 double *arg3 = (double *) (double *)0 ;
5560 size_t arg4 ;
5561 size_t arg5 ;
5562 double arg6 ;
5563 double arg7 ;
5564 size_t val2 ;
5565 0 int ecode2 = 0 ;
5566 size_t val4 ;
5567 0 int ecode4 = 0 ;
5568 size_t val5 ;
5569 0 int ecode5 = 0 ;
5570 double val6 ;
5571 0 int ecode6 = 0 ;
5572 double val7 ;
5573 0 int ecode7 = 0 ;
5574 0 int argvi = 0;
5575 double result;
5576 0 dXSARGS;
5577
5578 0 ▶ if ((items < 7) || (items > 7)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 7) || (items > 7)) { 0 0 0
if ((items < 7) || (items > 7)) { 0 0 0
5579 0 SWIG_croak("Usage: gsl_stats_wkurtosis_m_sd(w,wstride,data,stride,n,wmean,wsd);");
5580 }
5581 {
5582 AV *tempav;
5583 I32 len;
5584 int i;
5585 SV **tv;
5586 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5587 0 croak("Math::GSL : $w is not a reference!");
5588 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5589 0 croak("Math::GSL : $w is not an array ref!");
5590
5591 0 tempav = (AV*)SvRV(ST(0));
5592 0 len = av_len(tempav);
5593 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5594 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5595 0 tv = av_fetch(tempav, i, 0);
5596 0 arg1[i] = (double) SvNV(*tv);
5597 }
5598 }
5599 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5600 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5601 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5602 }
5603 0 arg2 = (size_t)(val2);
5604 {
5605 AV *tempav;
5606 I32 len;
5607 int i;
5608 SV **tv;
5609 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
5610 0 croak("Math::GSL : $data is not a reference!");
5611 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
5612 0 croak("Math::GSL : $data is not an array ref!");
5613
5614 0 tempav = (AV*)SvRV(ST(2));
5615 0 len = av_len(tempav);
5616 0 arg3 = (double *) malloc((len+2)*sizeof(double));
5617 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5618 0 tv = av_fetch(tempav, i, 0);
5619 0 arg3[i] = (double) SvNV(*tv);
5620 }
5621 }
5622 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5623 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5624 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "4"" of type '" "size_t""'"); 0 0 0
5625 }
5626 0 arg4 = (size_t)(val4);
5627 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5628 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5629 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5630 }
5631 0 arg5 = (size_t)(val5);
5632 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5633 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5634 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "6"" of type '" "double""'"); 0 0 0
5635 }
5636 0 arg6 = (double)(val6);
5637 0 ecode7 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
5638 0 ▶ if (!SWIG_IsOK(ecode7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode7)) { 0 0 0
5639 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "7"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_wkurtosis_m_sd" "', argument " "7"" of type '" "double""'"); 0 0 0
5640 }
5641 0 arg7 = (double)(val7);
5642 0 result = (double)gsl_stats_wkurtosis_m_sd((double const (*))arg1,arg2,(double const (*))arg3,arg4,arg5,arg6,arg7);
5643 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5644 {
5645 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5646 }
5647
5648 {
5649 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5650 }
5651
5652
5653
5654
5655 0 XSRETURN(argvi);
5656 0 fail:
5657 {
5658 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5659 }
5660
5661 {
5662 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
5663 }
5664
5665
5666
5667
5668 0 SWIG_croak_null();
5669 }
5670 }
5671  
5672  
5673 0 XS(_wrap_gsl_stats_pvariance) {
5674 {
5675 0 double *arg1 = (double *) (double *)0 ;
5676 size_t arg2 ;
5677 size_t arg3 ;
5678 0 double *arg4 = (double *) (double *)0 ;
5679 size_t arg5 ;
5680 size_t arg6 ;
5681 size_t val2 ;
5682 0 int ecode2 = 0 ;
5683 size_t val3 ;
5684 0 int ecode3 = 0 ;
5685 size_t val5 ;
5686 0 int ecode5 = 0 ;
5687 size_t val6 ;
5688 0 int ecode6 = 0 ;
5689 0 int argvi = 0;
5690 double result;
5691 0 dXSARGS;
5692
5693 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
5694 0 SWIG_croak("Usage: gsl_stats_pvariance(data1,stride1,n1,data2,stride2,n2);");
5695 }
5696 {
5697 AV *tempav;
5698 I32 len;
5699 int i;
5700 SV **tv;
5701 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5702 0 croak("Math::GSL : $data1 is not a reference!");
5703 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5704 0 croak("Math::GSL : $data1 is not an array ref!");
5705
5706 0 tempav = (AV*)SvRV(ST(0));
5707 0 len = av_len(tempav);
5708 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5709 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5710 0 tv = av_fetch(tempav, i, 0);
5711 0 arg1[i] = (double) SvNV(*tv);
5712 }
5713 }
5714 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5715 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5716 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_pvariance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_pvariance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5717 }
5718 0 arg2 = (size_t)(val2);
5719 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5720 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5721 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_pvariance" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_pvariance" "', argument " "3"" of type '" "size_t""'"); 0 0 0
5722 }
5723 0 arg3 = (size_t)(val3);
5724 {
5725 AV *tempav;
5726 I32 len;
5727 int i;
5728 SV **tv;
5729 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
5730 0 croak("Math::GSL : $data2 is not a reference!");
5731 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
5732 0 croak("Math::GSL : $data2 is not an array ref!");
5733
5734 0 tempav = (AV*)SvRV(ST(3));
5735 0 len = av_len(tempav);
5736 0 arg4 = (double *) malloc((len+2)*sizeof(double));
5737 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5738 0 tv = av_fetch(tempav, i, 0);
5739 0 arg4[i] = (double) SvNV(*tv);
5740 }
5741 }
5742 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5743 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5744 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_pvariance" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_pvariance" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5745 }
5746 0 arg5 = (size_t)(val5);
5747 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5748 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5749 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_pvariance" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_pvariance" "', argument " "6"" of type '" "size_t""'"); 0 0 0
5750 }
5751 0 arg6 = (size_t)(val6);
5752 0 result = (double)gsl_stats_pvariance((double const (*))arg1,arg2,arg3,(double const (*))arg4,arg5,arg6);
5753 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5754 {
5755 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5756 }
5757
5758
5759 {
5760 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
5761 }
5762
5763
5764 0 XSRETURN(argvi);
5765 0 fail:
5766 {
5767 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5768 }
5769
5770
5771 {
5772 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
5773 }
5774
5775
5776 0 SWIG_croak_null();
5777 }
5778 }
5779  
5780  
5781 0 XS(_wrap_gsl_stats_ttest) {
5782 {
5783 0 double *arg1 = (double *) (double *)0 ;
5784 size_t arg2 ;
5785 size_t arg3 ;
5786 0 double *arg4 = (double *) (double *)0 ;
5787 size_t arg5 ;
5788 size_t arg6 ;
5789 size_t val2 ;
5790 0 int ecode2 = 0 ;
5791 size_t val3 ;
5792 0 int ecode3 = 0 ;
5793 size_t val5 ;
5794 0 int ecode5 = 0 ;
5795 size_t val6 ;
5796 0 int ecode6 = 0 ;
5797 0 int argvi = 0;
5798 double result;
5799 0 dXSARGS;
5800
5801 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
5802 0 SWIG_croak("Usage: gsl_stats_ttest(data1,stride1,n1,data2,stride2,n2);");
5803 }
5804 {
5805 AV *tempav;
5806 I32 len;
5807 int i;
5808 SV **tv;
5809 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5810 0 croak("Math::GSL : $data1 is not a reference!");
5811 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5812 0 croak("Math::GSL : $data1 is not an array ref!");
5813
5814 0 tempav = (AV*)SvRV(ST(0));
5815 0 len = av_len(tempav);
5816 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5817 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5818 0 tv = av_fetch(tempav, i, 0);
5819 0 arg1[i] = (double) SvNV(*tv);
5820 }
5821 }
5822 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5823 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5824 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_ttest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_ttest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5825 }
5826 0 arg2 = (size_t)(val2);
5827 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5828 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5829 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_ttest" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_ttest" "', argument " "3"" of type '" "size_t""'"); 0 0 0
5830 }
5831 0 arg3 = (size_t)(val3);
5832 {
5833 AV *tempav;
5834 I32 len;
5835 int i;
5836 SV **tv;
5837 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
5838 0 croak("Math::GSL : $data2 is not a reference!");
5839 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
5840 0 croak("Math::GSL : $data2 is not an array ref!");
5841
5842 0 tempav = (AV*)SvRV(ST(3));
5843 0 len = av_len(tempav);
5844 0 arg4 = (double *) malloc((len+2)*sizeof(double));
5845 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5846 0 tv = av_fetch(tempav, i, 0);
5847 0 arg4[i] = (double) SvNV(*tv);
5848 }
5849 }
5850 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5851 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5852 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_ttest" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_ttest" "', argument " "5"" of type '" "size_t""'"); 0 0 0
5853 }
5854 0 arg5 = (size_t)(val5);
5855 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
5856 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
5857 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_ttest" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_ttest" "', argument " "6"" of type '" "size_t""'"); 0 0 0
5858 }
5859 0 arg6 = (size_t)(val6);
5860 0 result = (double)gsl_stats_ttest((double const (*))arg1,arg2,arg3,(double const (*))arg4,arg5,arg6);
5861 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5862 {
5863 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5864 }
5865
5866
5867 {
5868 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
5869 }
5870
5871
5872 0 XSRETURN(argvi);
5873 0 fail:
5874 {
5875 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5876 }
5877
5878
5879 {
5880 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
5881 }
5882
5883
5884 0 SWIG_croak_null();
5885 }
5886 }
5887  
5888  
5889 0 XS(_wrap_gsl_stats_max) {
5890 {
5891 0 double *arg1 = (double *) (double *)0 ;
5892 size_t arg2 ;
5893 size_t arg3 ;
5894 size_t val2 ;
5895 0 int ecode2 = 0 ;
5896 size_t val3 ;
5897 0 int ecode3 = 0 ;
5898 0 int argvi = 0;
5899 double result;
5900 0 dXSARGS;
5901
5902 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
5903 0 SWIG_croak("Usage: gsl_stats_max(data,stride,n);");
5904 }
5905 {
5906 AV *tempav;
5907 I32 len;
5908 int i;
5909 SV **tv;
5910 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5911 0 croak("Math::GSL : $data is not a reference!");
5912 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5913 0 croak("Math::GSL : $data is not an array ref!");
5914
5915 0 tempav = (AV*)SvRV(ST(0));
5916 0 len = av_len(tempav);
5917 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5918 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5919 0 tv = av_fetch(tempav, i, 0);
5920 0 arg1[i] = (double) SvNV(*tv);
5921 }
5922 }
5923 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5924 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5925 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_max" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_max" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5926 }
5927 0 arg2 = (size_t)(val2);
5928 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5929 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5930 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_max" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_max" "', argument " "3"" of type '" "size_t""'"); 0 0 0
5931 }
5932 0 arg3 = (size_t)(val3);
5933 0 result = (double)gsl_stats_max((double const (*))arg1,arg2,arg3);
5934 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5935 {
5936 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5937 }
5938
5939
5940 0 XSRETURN(argvi);
5941 0 fail:
5942 {
5943 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
5944 }
5945
5946
5947 0 SWIG_croak_null();
5948 }
5949 }
5950  
5951  
5952 0 XS(_wrap_gsl_stats_min) {
5953 {
5954 0 double *arg1 = (double *) (double *)0 ;
5955 size_t arg2 ;
5956 size_t arg3 ;
5957 size_t val2 ;
5958 0 int ecode2 = 0 ;
5959 size_t val3 ;
5960 0 int ecode3 = 0 ;
5961 0 int argvi = 0;
5962 double result;
5963 0 dXSARGS;
5964
5965 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
5966 0 SWIG_croak("Usage: gsl_stats_min(data,stride,n);");
5967 }
5968 {
5969 AV *tempav;
5970 I32 len;
5971 int i;
5972 SV **tv;
5973 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
5974 0 croak("Math::GSL : $data is not a reference!");
5975 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
5976 0 croak("Math::GSL : $data is not an array ref!");
5977
5978 0 tempav = (AV*)SvRV(ST(0));
5979 0 len = av_len(tempav);
5980 0 arg1 = (double *) malloc((len+2)*sizeof(double));
5981 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
5982 0 tv = av_fetch(tempav, i, 0);
5983 0 arg1[i] = (double) SvNV(*tv);
5984 }
5985 }
5986 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5987 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5988 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_min" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_min" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5989 }
5990 0 arg2 = (size_t)(val2);
5991 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
5992 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
5993 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_min" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_min" "', argument " "3"" of type '" "size_t""'"); 0 0 0
5994 }
5995 0 arg3 = (size_t)(val3);
5996 0 result = (double)gsl_stats_min((double const (*))arg1,arg2,arg3);
5997 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5998 {
5999 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6000 }
6001
6002
6003 0 XSRETURN(argvi);
6004 0 fail:
6005 {
6006 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6007 }
6008
6009
6010 0 SWIG_croak_null();
6011 }
6012 }
6013  
6014  
6015 0 XS(_wrap_gsl_stats_minmax) {
6016 {
6017 0 double *arg1 = (double *) 0 ;
6018 0 double *arg2 = (double *) 0 ;
6019 0 double *arg3 = (double *) (double *)0 ;
6020 size_t arg4 ;
6021 size_t arg5 ;
6022 double temp1 ;
6023 0 int res1 = SWIG_TMPOBJ ;
6024 double temp2 ;
6025 0 int res2 = SWIG_TMPOBJ ;
6026 size_t val4 ;
6027 0 int ecode4 = 0 ;
6028 size_t val5 ;
6029 0 int ecode5 = 0 ;
6030 0 int argvi = 0;
6031 0 dXSARGS;
6032
6033 0 arg1 = &temp1;
6034 0 arg2 = &temp2;
6035 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
6036 0 SWIG_croak("Usage: gsl_stats_minmax(data,stride,n);");
6037 }
6038 {
6039 AV *tempav;
6040 I32 len;
6041 int i;
6042 SV **tv;
6043 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6044 0 croak("Math::GSL : $data is not a reference!");
6045 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6046 0 croak("Math::GSL : $data is not an array ref!");
6047
6048 0 tempav = (AV*)SvRV(ST(0));
6049 0 len = av_len(tempav);
6050 0 arg3 = (double *) malloc((len+2)*sizeof(double));
6051 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6052 0 tv = av_fetch(tempav, i, 0);
6053 0 arg3[i] = (double) SvNV(*tv);
6054 }
6055 }
6056 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val4);
6057 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
6058 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_minmax" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_minmax" "', argument " "4"" of type '" "size_t""'"); 0 0 0
6059 }
6060 0 arg4 = (size_t)(val4);
6061 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val5);
6062 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
6063 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_minmax" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_minmax" "', argument " "5"" of type '" "size_t""'"); 0 0 0
6064 }
6065 0 arg5 = (size_t)(val5);
6066 0 gsl_stats_minmax(arg1,arg2,(double const (*))arg3,arg4,arg5);
6067 0 ST(argvi) = &PL_sv_undef;
6068 0 ▶ if (SWIG_IsTmpObj(res1)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res1)) { 0 0 0
if (SWIG_IsTmpObj(res1)) { 0 0 0
6069 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6070 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
6071 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg1)); argvi++ /*@SWIG@*/;
6072 } else {
6073 0 ▶ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
6074 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6075 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
6076 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
6077 }
6078 0 ▶ if (SWIG_IsTmpObj(res2)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res2)) { 0 0 0
if (SWIG_IsTmpObj(res2)) { 0 0 0
6079 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6080 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
6081 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ /*@SWIG@*/;
6082 } else {
6083 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
6084 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6085 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
6086 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags); argvi++ /*@SWIG@*/;
6087 }
6088
6089
6090 {
6091 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
6092 }
6093
6094
6095 0 XSRETURN(argvi);
6096 0 fail:
6097
6098
6099 {
6100 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
6101 }
6102
6103
6104 0 SWIG_croak_null();
6105 }
6106 }
6107  
6108  
6109 0 XS(_wrap_gsl_stats_max_index) {
6110 {
6111 0 double *arg1 = (double *) (double *)0 ;
6112 size_t arg2 ;
6113 size_t arg3 ;
6114 size_t val2 ;
6115 0 int ecode2 = 0 ;
6116 size_t val3 ;
6117 0 int ecode3 = 0 ;
6118 0 int argvi = 0;
6119 size_t result;
6120 0 dXSARGS;
6121
6122 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
6123 0 SWIG_croak("Usage: gsl_stats_max_index(data,stride,n);");
6124 }
6125 {
6126 AV *tempav;
6127 I32 len;
6128 int i;
6129 SV **tv;
6130 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6131 0 croak("Math::GSL : $data is not a reference!");
6132 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6133 0 croak("Math::GSL : $data is not an array ref!");
6134
6135 0 tempav = (AV*)SvRV(ST(0));
6136 0 len = av_len(tempav);
6137 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6138 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6139 0 tv = av_fetch(tempav, i, 0);
6140 0 arg1[i] = (double) SvNV(*tv);
6141 }
6142 }
6143 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6144 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6145 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_max_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_max_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6146 }
6147 0 arg2 = (size_t)(val2);
6148 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6149 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6150 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_max_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_max_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6151 }
6152 0 arg3 = (size_t)(val3);
6153 0 result = gsl_stats_max_index((double const (*))arg1,arg2,arg3);
6154 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
6155 {
6156 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6157 }
6158
6159
6160 0 XSRETURN(argvi);
6161 0 fail:
6162 {
6163 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6164 }
6165
6166
6167 0 SWIG_croak_null();
6168 }
6169 }
6170  
6171  
6172 0 XS(_wrap_gsl_stats_min_index) {
6173 {
6174 0 double *arg1 = (double *) (double *)0 ;
6175 size_t arg2 ;
6176 size_t arg3 ;
6177 size_t val2 ;
6178 0 int ecode2 = 0 ;
6179 size_t val3 ;
6180 0 int ecode3 = 0 ;
6181 0 int argvi = 0;
6182 size_t result;
6183 0 dXSARGS;
6184
6185 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
6186 0 SWIG_croak("Usage: gsl_stats_min_index(data,stride,n);");
6187 }
6188 {
6189 AV *tempav;
6190 I32 len;
6191 int i;
6192 SV **tv;
6193 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6194 0 croak("Math::GSL : $data is not a reference!");
6195 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6196 0 croak("Math::GSL : $data is not an array ref!");
6197
6198 0 tempav = (AV*)SvRV(ST(0));
6199 0 len = av_len(tempav);
6200 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6201 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6202 0 tv = av_fetch(tempav, i, 0);
6203 0 arg1[i] = (double) SvNV(*tv);
6204 }
6205 }
6206 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6207 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6208 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_min_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_min_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6209 }
6210 0 arg2 = (size_t)(val2);
6211 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6212 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6213 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_min_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_min_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6214 }
6215 0 arg3 = (size_t)(val3);
6216 0 result = gsl_stats_min_index((double const (*))arg1,arg2,arg3);
6217 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
6218 {
6219 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6220 }
6221
6222
6223 0 XSRETURN(argvi);
6224 0 fail:
6225 {
6226 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6227 }
6228
6229
6230 0 SWIG_croak_null();
6231 }
6232 }
6233  
6234  
6235 0 XS(_wrap_gsl_stats_minmax_index) {
6236 {
6237 0 size_t *arg1 = (size_t *) 0 ;
6238 0 size_t *arg2 = (size_t *) 0 ;
6239 0 double *arg3 = (double *) (double *)0 ;
6240 size_t arg4 ;
6241 size_t arg5 ;
6242 size_t temp1 ;
6243 0 int res1 = SWIG_TMPOBJ ;
6244 size_t temp2 ;
6245 0 int res2 = SWIG_TMPOBJ ;
6246 size_t val4 ;
6247 0 int ecode4 = 0 ;
6248 size_t val5 ;
6249 0 int ecode5 = 0 ;
6250 0 int argvi = 0;
6251 0 dXSARGS;
6252
6253 0 arg1 = &temp1;
6254 0 arg2 = &temp2;
6255 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
6256 0 SWIG_croak("Usage: gsl_stats_minmax_index(data,stride,n);");
6257 }
6258 {
6259 AV *tempav;
6260 I32 len;
6261 int i;
6262 SV **tv;
6263 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6264 0 croak("Math::GSL : $data is not a reference!");
6265 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6266 0 croak("Math::GSL : $data is not an array ref!");
6267
6268 0 tempav = (AV*)SvRV(ST(0));
6269 0 len = av_len(tempav);
6270 0 arg3 = (double *) malloc((len+2)*sizeof(double));
6271 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6272 0 tv = av_fetch(tempav, i, 0);
6273 0 arg3[i] = (double) SvNV(*tv);
6274 }
6275 }
6276 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val4);
6277 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
6278 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_minmax_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_minmax_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
6279 }
6280 0 arg4 = (size_t)(val4);
6281 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val5);
6282 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
6283 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_minmax_index" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_minmax_index" "', argument " "5"" of type '" "size_t""'"); 0 0 0
6284 }
6285 0 arg5 = (size_t)(val5);
6286 0 gsl_stats_minmax_index(arg1,arg2,(double const (*))arg3,arg4,arg5);
6287 0 ST(argvi) = &PL_sv_undef;
6288 0 ▶ if (SWIG_IsTmpObj(res1)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res1)) { 0 0 0
if (SWIG_IsTmpObj(res1)) { 0 0 0
6289 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6290 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
6291 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((*arg1)); argvi++ /*@SWIG@*/;
6292 } else {
6293 0 ▶ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
6294 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6295 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
6296 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_size_t, new_flags); argvi++ /*@SWIG@*/;
6297 }
6298 0 ▶ if (SWIG_IsTmpObj(res2)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res2)) { 0 0 0
if (SWIG_IsTmpObj(res2)) { 0 0 0
6299 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6300 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
6301 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ /*@SWIG@*/;
6302 } else {
6303 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
6304 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
6305 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
6306 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_size_t, new_flags); argvi++ /*@SWIG@*/;
6307 }
6308
6309
6310 {
6311 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
6312 }
6313
6314
6315 0 XSRETURN(argvi);
6316 0 fail:
6317
6318
6319 {
6320 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
6321 }
6322
6323
6324 0 SWIG_croak_null();
6325 }
6326 }
6327  
6328  
6329 0 XS(_wrap_gsl_stats_select) {
6330 {
6331 0 double *arg1 = (double *) (double *)0 ;
6332 size_t arg2 ;
6333 size_t arg3 ;
6334 size_t arg4 ;
6335 size_t val2 ;
6336 0 int ecode2 = 0 ;
6337 size_t val3 ;
6338 0 int ecode3 = 0 ;
6339 size_t val4 ;
6340 0 int ecode4 = 0 ;
6341 0 int argvi = 0;
6342 double result;
6343 0 dXSARGS;
6344
6345 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
6346 0 SWIG_croak("Usage: gsl_stats_select(data,stride,n,k);");
6347 }
6348 {
6349 AV *tempav;
6350 I32 len;
6351 int i;
6352 SV **tv;
6353 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6354 0 croak("Math::GSL : $data is not a reference!");
6355 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6356 0 croak("Math::GSL : $data is not an array ref!");
6357
6358 0 tempav = (AV*)SvRV(ST(0));
6359 0 len = av_len(tempav);
6360 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6361 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6362 0 tv = av_fetch(tempav, i, 0);
6363 0 arg1[i] = (double) SvNV(*tv);
6364 }
6365 }
6366 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6367 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6368 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_select" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_select" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6369 }
6370 0 arg2 = (size_t)(val2);
6371 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6372 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6373 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_select" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_select" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6374 }
6375 0 arg3 = (size_t)(val3);
6376 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
6377 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
6378 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_select" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_select" "', argument " "4"" of type '" "size_t""'"); 0 0 0
6379 }
6380 0 arg4 = (size_t)(val4);
6381 0 result = (double)gsl_stats_select(arg1,arg2,arg3,arg4);
6382 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6383 {
6384 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6385 }
6386
6387
6388
6389 0 XSRETURN(argvi);
6390 0 fail:
6391 {
6392 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6393 }
6394
6395
6396
6397 0 SWIG_croak_null();
6398 }
6399 }
6400  
6401  
6402 0 XS(_wrap_gsl_stats_median_from_sorted_data) {
6403 {
6404 0 double *arg1 = (double *) (double *)0 ;
6405 size_t arg2 ;
6406 size_t arg3 ;
6407 size_t val2 ;
6408 0 int ecode2 = 0 ;
6409 size_t val3 ;
6410 0 int ecode3 = 0 ;
6411 0 int argvi = 0;
6412 double result;
6413 0 dXSARGS;
6414
6415 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
6416 0 SWIG_croak("Usage: gsl_stats_median_from_sorted_data(sorted_data,stride,n);");
6417 }
6418 {
6419 AV *tempav;
6420 I32 len;
6421 int i;
6422 SV **tv;
6423 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6424 0 croak("Math::GSL : $sorted_data is not a reference!");
6425 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6426 0 croak("Math::GSL : $sorted_data is not an array ref!");
6427
6428 0 tempav = (AV*)SvRV(ST(0));
6429 0 len = av_len(tempav);
6430 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6431 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6432 0 tv = av_fetch(tempav, i, 0);
6433 0 arg1[i] = (double) SvNV(*tv);
6434 }
6435 }
6436 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6437 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6438 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_median_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_median_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6439 }
6440 0 arg2 = (size_t)(val2);
6441 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6442 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6443 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_median_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_median_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6444 }
6445 0 arg3 = (size_t)(val3);
6446 0 result = (double)gsl_stats_median_from_sorted_data((double const (*))arg1,arg2,arg3);
6447 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6448 {
6449 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6450 }
6451
6452
6453 0 XSRETURN(argvi);
6454 0 fail:
6455 {
6456 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6457 }
6458
6459
6460 0 SWIG_croak_null();
6461 }
6462 }
6463  
6464  
6465 0 XS(_wrap_gsl_stats_median) {
6466 {
6467 0 double *arg1 = (double *) (double *)0 ;
6468 size_t arg2 ;
6469 size_t arg3 ;
6470 0 void *argp1 = 0 ;
6471 0 int res1 = 0 ;
6472 size_t val2 ;
6473 0 int ecode2 = 0 ;
6474 size_t val3 ;
6475 0 int ecode3 = 0 ;
6476 0 int argvi = 0;
6477 double result;
6478 0 dXSARGS;
6479
6480 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
6481 0 SWIG_croak("Usage: gsl_stats_median(sorted_data,stride,n);");
6482 }
6483 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_double, 0 | 0 );
6484 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6485 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_median" "', argument " "1"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_median" "', argument " "1"" of type '" "double []""'"); 0 0 0
6486 }
6487 0 arg1 = (double *)(argp1);
6488 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6489 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6490 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_median" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_median" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6491 }
6492 0 arg2 = (size_t)(val2);
6493 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6494 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6495 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_median" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_median" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6496 }
6497 0 arg3 = (size_t)(val3);
6498 0 result = (double)gsl_stats_median(arg1,arg2,arg3);
6499 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6500
6501
6502
6503 0 XSRETURN(argvi);
6504 0 fail:
6505
6506
6507
6508 0 SWIG_croak_null();
6509 }
6510 }
6511  
6512  
6513 0 XS(_wrap_gsl_stats_quantile_from_sorted_data) {
6514 {
6515 0 double *arg1 = (double *) (double *)0 ;
6516 size_t arg2 ;
6517 size_t arg3 ;
6518 double arg4 ;
6519 size_t val2 ;
6520 0 int ecode2 = 0 ;
6521 size_t val3 ;
6522 0 int ecode3 = 0 ;
6523 double val4 ;
6524 0 int ecode4 = 0 ;
6525 0 int argvi = 0;
6526 double result;
6527 0 dXSARGS;
6528
6529 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
6530 0 SWIG_croak("Usage: gsl_stats_quantile_from_sorted_data(sorted_data,stride,n,f);");
6531 }
6532 {
6533 AV *tempav;
6534 I32 len;
6535 int i;
6536 SV **tv;
6537 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6538 0 croak("Math::GSL : $sorted_data is not a reference!");
6539 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6540 0 croak("Math::GSL : $sorted_data is not an array ref!");
6541
6542 0 tempav = (AV*)SvRV(ST(0));
6543 0 len = av_len(tempav);
6544 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6545 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6546 0 tv = av_fetch(tempav, i, 0);
6547 0 arg1[i] = (double) SvNV(*tv);
6548 }
6549 }
6550 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6551 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6552 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_quantile_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_quantile_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6553 }
6554 0 arg2 = (size_t)(val2);
6555 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6556 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6557 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_quantile_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_quantile_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6558 }
6559 0 arg3 = (size_t)(val3);
6560 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
6561 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
6562 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_quantile_from_sorted_data" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_quantile_from_sorted_data" "', argument " "4"" of type '" "double""'"); 0 0 0
6563 }
6564 0 arg4 = (double)(val4);
6565 0 result = (double)gsl_stats_quantile_from_sorted_data((double const (*))arg1,arg2,arg3,arg4);
6566 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6567 {
6568 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6569 }
6570
6571
6572
6573 0 XSRETURN(argvi);
6574 0 fail:
6575 {
6576 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6577 }
6578
6579
6580
6581 0 SWIG_croak_null();
6582 }
6583 }
6584  
6585  
6586 0 XS(_wrap_gsl_stats_trmean_from_sorted_data) {
6587 {
6588 double arg1 ;
6589 0 double *arg2 = (double *) (double *)0 ;
6590 size_t arg3 ;
6591 size_t arg4 ;
6592 double val1 ;
6593 0 int ecode1 = 0 ;
6594 size_t val3 ;
6595 0 int ecode3 = 0 ;
6596 size_t val4 ;
6597 0 int ecode4 = 0 ;
6598 0 int argvi = 0;
6599 double result;
6600 0 dXSARGS;
6601
6602 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
6603 0 SWIG_croak("Usage: gsl_stats_trmean_from_sorted_data(trim,sorted_data,stride,n);");
6604 }
6605 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6606 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6607 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_stats_trmean_from_sorted_data" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_stats_trmean_from_sorted_data" "', argument " "1"" of type '" "double""'"); 0 0 0
6608 }
6609 0 arg1 = (double)(val1);
6610 {
6611 AV *tempav;
6612 I32 len;
6613 int i;
6614 SV **tv;
6615 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
6616 0 croak("Math::GSL : $sorted_data is not a reference!");
6617 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
6618 0 croak("Math::GSL : $sorted_data is not an array ref!");
6619
6620 0 tempav = (AV*)SvRV(ST(1));
6621 0 len = av_len(tempav);
6622 0 arg2 = (double *) malloc((len+2)*sizeof(double));
6623 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6624 0 tv = av_fetch(tempav, i, 0);
6625 0 arg2[i] = (double) SvNV(*tv);
6626 }
6627 }
6628 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6629 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6630 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_trmean_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_trmean_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6631 }
6632 0 arg3 = (size_t)(val3);
6633 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
6634 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
6635 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_trmean_from_sorted_data" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_trmean_from_sorted_data" "', argument " "4"" of type '" "size_t""'"); 0 0 0
6636 }
6637 0 arg4 = (size_t)(val4);
6638 0 result = (double)gsl_stats_trmean_from_sorted_data(arg1,(double const (*))arg2,arg3,arg4);
6639 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6640
6641 {
6642 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
6643 }
6644
6645
6646 0 XSRETURN(argvi);
6647 0 fail:
6648
6649 {
6650 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
6651 }
6652
6653
6654 0 SWIG_croak_null();
6655 }
6656 }
6657  
6658  
6659 0 XS(_wrap_gsl_stats_gastwirth_from_sorted_data) {
6660 {
6661 0 double *arg1 = (double *) (double *)0 ;
6662 size_t arg2 ;
6663 size_t arg3 ;
6664 size_t val2 ;
6665 0 int ecode2 = 0 ;
6666 size_t val3 ;
6667 0 int ecode3 = 0 ;
6668 0 int argvi = 0;
6669 double result;
6670 0 dXSARGS;
6671
6672 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
6673 0 SWIG_croak("Usage: gsl_stats_gastwirth_from_sorted_data(sorted_data,stride,n);");
6674 }
6675 {
6676 AV *tempav;
6677 I32 len;
6678 int i;
6679 SV **tv;
6680 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6681 0 croak("Math::GSL : $sorted_data is not a reference!");
6682 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6683 0 croak("Math::GSL : $sorted_data is not an array ref!");
6684
6685 0 tempav = (AV*)SvRV(ST(0));
6686 0 len = av_len(tempav);
6687 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6688 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6689 0 tv = av_fetch(tempav, i, 0);
6690 0 arg1[i] = (double) SvNV(*tv);
6691 }
6692 }
6693 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6694 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6695 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_gastwirth_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_gastwirth_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6696 }
6697 0 arg2 = (size_t)(val2);
6698 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6699 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6700 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_gastwirth_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_gastwirth_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6701 }
6702 0 arg3 = (size_t)(val3);
6703 0 result = (double)gsl_stats_gastwirth_from_sorted_data((double const (*))arg1,arg2,arg3);
6704 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6705 {
6706 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6707 }
6708
6709
6710 0 XSRETURN(argvi);
6711 0 fail:
6712 {
6713 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6714 }
6715
6716
6717 0 SWIG_croak_null();
6718 }
6719 }
6720  
6721  
6722 0 XS(_wrap_gsl_stats_mad0) {
6723 {
6724 0 double *arg1 = (double *) (double *)0 ;
6725 size_t arg2 ;
6726 size_t arg3 ;
6727 0 double *arg4 = (double *) (double *)0 ;
6728 size_t val2 ;
6729 0 int ecode2 = 0 ;
6730 size_t val3 ;
6731 0 int ecode3 = 0 ;
6732 0 void *argp4 = 0 ;
6733 0 int res4 = 0 ;
6734 0 int argvi = 0;
6735 double result;
6736 0 dXSARGS;
6737
6738 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
6739 0 SWIG_croak("Usage: gsl_stats_mad0(data,stride,n,work);");
6740 }
6741 {
6742 AV *tempav;
6743 I32 len;
6744 int i;
6745 SV **tv;
6746 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6747 0 croak("Math::GSL : $data is not a reference!");
6748 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6749 0 croak("Math::GSL : $data is not an array ref!");
6750
6751 0 tempav = (AV*)SvRV(ST(0));
6752 0 len = av_len(tempav);
6753 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6754 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6755 0 tv = av_fetch(tempav, i, 0);
6756 0 arg1[i] = (double) SvNV(*tv);
6757 }
6758 }
6759 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6760 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6761 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_mad0" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_mad0" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6762 }
6763 0 arg2 = (size_t)(val2);
6764 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6765 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6766 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_mad0" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_mad0" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6767 }
6768 0 arg3 = (size_t)(val3);
6769 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
6770 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
6771 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_mad0" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_mad0" "', argument " "4"" of type '" "double []""'"); 0 0 0
6772 }
6773 0 arg4 = (double *)(argp4);
6774 0 result = (double)gsl_stats_mad0((double const (*))arg1,arg2,arg3,arg4);
6775 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6776 {
6777 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6778 }
6779
6780
6781
6782 0 XSRETURN(argvi);
6783 0 fail:
6784 {
6785 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6786 }
6787
6788
6789
6790 0 SWIG_croak_null();
6791 }
6792 }
6793  
6794  
6795 0 XS(_wrap_gsl_stats_mad) {
6796 {
6797 0 double *arg1 = (double *) (double *)0 ;
6798 size_t arg2 ;
6799 size_t arg3 ;
6800 0 double *arg4 = (double *) (double *)0 ;
6801 size_t val2 ;
6802 0 int ecode2 = 0 ;
6803 size_t val3 ;
6804 0 int ecode3 = 0 ;
6805 0 void *argp4 = 0 ;
6806 0 int res4 = 0 ;
6807 0 int argvi = 0;
6808 double result;
6809 0 dXSARGS;
6810
6811 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
6812 0 SWIG_croak("Usage: gsl_stats_mad(data,stride,n,work);");
6813 }
6814 {
6815 AV *tempav;
6816 I32 len;
6817 int i;
6818 SV **tv;
6819 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6820 0 croak("Math::GSL : $data is not a reference!");
6821 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6822 0 croak("Math::GSL : $data is not an array ref!");
6823
6824 0 tempav = (AV*)SvRV(ST(0));
6825 0 len = av_len(tempav);
6826 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6827 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6828 0 tv = av_fetch(tempav, i, 0);
6829 0 arg1[i] = (double) SvNV(*tv);
6830 }
6831 }
6832 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6833 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6834 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_mad" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_mad" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6835 }
6836 0 arg2 = (size_t)(val2);
6837 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6838 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6839 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_mad" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_mad" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6840 }
6841 0 arg3 = (size_t)(val3);
6842 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
6843 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
6844 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_mad" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_mad" "', argument " "4"" of type '" "double []""'"); 0 0 0
6845 }
6846 0 arg4 = (double *)(argp4);
6847 0 result = (double)gsl_stats_mad((double const (*))arg1,arg2,arg3,arg4);
6848 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6849 {
6850 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6851 }
6852
6853
6854
6855 0 XSRETURN(argvi);
6856 0 fail:
6857 {
6858 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6859 }
6860
6861
6862
6863 0 SWIG_croak_null();
6864 }
6865 }
6866  
6867  
6868 0 XS(_wrap_gsl_stats_Sn0_from_sorted_data) {
6869 {
6870 0 double *arg1 = (double *) (double *)0 ;
6871 size_t arg2 ;
6872 size_t arg3 ;
6873 0 double *arg4 = (double *) (double *)0 ;
6874 size_t val2 ;
6875 0 int ecode2 = 0 ;
6876 size_t val3 ;
6877 0 int ecode3 = 0 ;
6878 0 void *argp4 = 0 ;
6879 0 int res4 = 0 ;
6880 0 int argvi = 0;
6881 double result;
6882 0 dXSARGS;
6883
6884 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
6885 0 SWIG_croak("Usage: gsl_stats_Sn0_from_sorted_data(sorted_data,stride,n,work);");
6886 }
6887 {
6888 AV *tempav;
6889 I32 len;
6890 int i;
6891 SV **tv;
6892 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6893 0 croak("Math::GSL : $sorted_data is not a reference!");
6894 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6895 0 croak("Math::GSL : $sorted_data is not an array ref!");
6896
6897 0 tempav = (AV*)SvRV(ST(0));
6898 0 len = av_len(tempav);
6899 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6900 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6901 0 tv = av_fetch(tempav, i, 0);
6902 0 arg1[i] = (double) SvNV(*tv);
6903 }
6904 }
6905 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6906 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6907 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Sn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Sn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6908 }
6909 0 arg2 = (size_t)(val2);
6910 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6911 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6912 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Sn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Sn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6913 }
6914 0 arg3 = (size_t)(val3);
6915 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
6916 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
6917 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Sn0_from_sorted_data" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Sn0_from_sorted_data" "', argument " "4"" of type '" "double []""'"); 0 0 0
6918 }
6919 0 arg4 = (double *)(argp4);
6920 0 result = (double)gsl_stats_Sn0_from_sorted_data((double const (*))arg1,arg2,arg3,arg4);
6921 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6922 {
6923 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6924 }
6925
6926
6927
6928 0 XSRETURN(argvi);
6929 0 fail:
6930 {
6931 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6932 }
6933
6934
6935
6936 0 SWIG_croak_null();
6937 }
6938 }
6939  
6940  
6941 0 XS(_wrap_gsl_stats_Sn_from_sorted_data) {
6942 {
6943 0 double *arg1 = (double *) (double *)0 ;
6944 size_t arg2 ;
6945 size_t arg3 ;
6946 0 double *arg4 = (double *) (double *)0 ;
6947 size_t val2 ;
6948 0 int ecode2 = 0 ;
6949 size_t val3 ;
6950 0 int ecode3 = 0 ;
6951 0 void *argp4 = 0 ;
6952 0 int res4 = 0 ;
6953 0 int argvi = 0;
6954 double result;
6955 0 dXSARGS;
6956
6957 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
6958 0 SWIG_croak("Usage: gsl_stats_Sn_from_sorted_data(sorted_data,stride,n,work);");
6959 }
6960 {
6961 AV *tempav;
6962 I32 len;
6963 int i;
6964 SV **tv;
6965 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
6966 0 croak("Math::GSL : $sorted_data is not a reference!");
6967 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
6968 0 croak("Math::GSL : $sorted_data is not an array ref!");
6969
6970 0 tempav = (AV*)SvRV(ST(0));
6971 0 len = av_len(tempav);
6972 0 arg1 = (double *) malloc((len+2)*sizeof(double));
6973 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
6974 0 tv = av_fetch(tempav, i, 0);
6975 0 arg1[i] = (double) SvNV(*tv);
6976 }
6977 }
6978 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
6979 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
6980 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Sn_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Sn_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
6981 }
6982 0 arg2 = (size_t)(val2);
6983 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
6984 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
6985 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Sn_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Sn_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
6986 }
6987 0 arg3 = (size_t)(val3);
6988 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
6989 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
6990 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Sn_from_sorted_data" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Sn_from_sorted_data" "', argument " "4"" of type '" "double []""'"); 0 0 0
6991 }
6992 0 arg4 = (double *)(argp4);
6993 0 result = (double)gsl_stats_Sn_from_sorted_data((double const (*))arg1,arg2,arg3,arg4);
6994 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
6995 {
6996 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
6997 }
6998
6999
7000
7001 0 XSRETURN(argvi);
7002 0 fail:
7003 {
7004 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7005 }
7006
7007
7008
7009 0 SWIG_croak_null();
7010 }
7011 }
7012  
7013  
7014 0 XS(_wrap_gsl_stats_Qn0_from_sorted_data) {
7015 {
7016 0 double *arg1 = (double *) (double *)0 ;
7017 size_t arg2 ;
7018 size_t arg3 ;
7019 0 double *arg4 = (double *) (double *)0 ;
7020 0 int *arg5 = (int *) (int *)0 ;
7021 size_t val2 ;
7022 0 int ecode2 = 0 ;
7023 size_t val3 ;
7024 0 int ecode3 = 0 ;
7025 0 void *argp4 = 0 ;
7026 0 int res4 = 0 ;
7027 0 void *argp5 = 0 ;
7028 0 int res5 = 0 ;
7029 0 int argvi = 0;
7030 double result;
7031 0 dXSARGS;
7032
7033 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
7034 0 SWIG_croak("Usage: gsl_stats_Qn0_from_sorted_data(sorted_data,stride,n,work,work_int);");
7035 }
7036 {
7037 AV *tempav;
7038 I32 len;
7039 int i;
7040 SV **tv;
7041 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7042 0 croak("Math::GSL : $sorted_data is not a reference!");
7043 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7044 0 croak("Math::GSL : $sorted_data is not an array ref!");
7045
7046 0 tempav = (AV*)SvRV(ST(0));
7047 0 len = av_len(tempav);
7048 0 arg1 = (double *) malloc((len+2)*sizeof(double));
7049 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7050 0 tv = av_fetch(tempav, i, 0);
7051 0 arg1[i] = (double) SvNV(*tv);
7052 }
7053 }
7054 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7055 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7056 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7057 }
7058 0 arg2 = (size_t)(val2);
7059 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7060 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7061 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7062 }
7063 0 arg3 = (size_t)(val3);
7064 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
7065 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
7066 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "4"" of type '" "double []""'"); 0 0 0
7067 }
7068 0 arg4 = (double *)(argp4);
7069 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_int, 0 | 0 );
7070 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
7071 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "5"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_Qn0_from_sorted_data" "', argument " "5"" of type '" "int []""'"); 0 0 0
7072 }
7073 0 arg5 = (int *)(argp5);
7074 0 result = (double)gsl_stats_Qn0_from_sorted_data((double const (*))arg1,arg2,arg3,arg4,arg5);
7075 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7076 {
7077 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7078 }
7079
7080
7081
7082
7083 0 XSRETURN(argvi);
7084 0 fail:
7085 {
7086 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7087 }
7088
7089
7090
7091
7092 0 SWIG_croak_null();
7093 }
7094 }
7095  
7096  
7097 0 XS(_wrap_gsl_stats_Qn_from_sorted_data) {
7098 {
7099 0 double *arg1 = (double *) (double *)0 ;
7100 size_t arg2 ;
7101 size_t arg3 ;
7102 0 double *arg4 = (double *) (double *)0 ;
7103 0 int *arg5 = (int *) (int *)0 ;
7104 size_t val2 ;
7105 0 int ecode2 = 0 ;
7106 size_t val3 ;
7107 0 int ecode3 = 0 ;
7108 0 void *argp4 = 0 ;
7109 0 int res4 = 0 ;
7110 0 void *argp5 = 0 ;
7111 0 int res5 = 0 ;
7112 0 int argvi = 0;
7113 double result;
7114 0 dXSARGS;
7115
7116 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
7117 0 SWIG_croak("Usage: gsl_stats_Qn_from_sorted_data(sorted_data,stride,n,work,work_int);");
7118 }
7119 {
7120 AV *tempav;
7121 I32 len;
7122 int i;
7123 SV **tv;
7124 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7125 0 croak("Math::GSL : $sorted_data is not a reference!");
7126 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7127 0 croak("Math::GSL : $sorted_data is not an array ref!");
7128
7129 0 tempav = (AV*)SvRV(ST(0));
7130 0 len = av_len(tempav);
7131 0 arg1 = (double *) malloc((len+2)*sizeof(double));
7132 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7133 0 tv = av_fetch(tempav, i, 0);
7134 0 arg1[i] = (double) SvNV(*tv);
7135 }
7136 }
7137 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7138 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7139 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7140 }
7141 0 arg2 = (size_t)(val2);
7142 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7143 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7144 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7145 }
7146 0 arg3 = (size_t)(val3);
7147 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
7148 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
7149 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "4"" of type '" "double []""'"); 0 0 0
7150 }
7151 0 arg4 = (double *)(argp4);
7152 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_int, 0 | 0 );
7153 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
7154 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "5"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_Qn_from_sorted_data" "', argument " "5"" of type '" "int []""'"); 0 0 0
7155 }
7156 0 arg5 = (int *)(argp5);
7157 0 result = (double)gsl_stats_Qn_from_sorted_data((double const (*))arg1,arg2,arg3,arg4,arg5);
7158 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7159 {
7160 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7161 }
7162
7163
7164
7165
7166 0 XSRETURN(argvi);
7167 0 fail:
7168 {
7169 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7170 }
7171
7172
7173
7174
7175 0 SWIG_croak_null();
7176 }
7177 }
7178  
7179  
7180 0 XS(_wrap_gsl_stats_int_mean) {
7181 {
7182 0 int *arg1 = (int *) (int *)0 ;
7183 size_t arg2 ;
7184 size_t arg3 ;
7185 size_t val2 ;
7186 0 int ecode2 = 0 ;
7187 size_t val3 ;
7188 0 int ecode3 = 0 ;
7189 0 int argvi = 0;
7190 double result;
7191 0 dXSARGS;
7192
7193 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
7194 0 SWIG_croak("Usage: gsl_stats_int_mean(data,stride,n);");
7195 }
7196 {
7197 AV *tempav;
7198 I32 len;
7199 int i;
7200 SV **tv;
7201 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7202 0 croak("Math::GSL : $data is not a reference!");
7203 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7204 0 croak("Math::GSL : $data is not an array ref!");
7205
7206 0 tempav = (AV*)SvRV(ST(0));
7207 0 len = av_len(tempav);
7208 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7209 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7210 0 tv = av_fetch(tempav, i, 0);
7211 0 arg1[i] = (int) SvNV(*tv);
7212 }
7213 }
7214 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7215 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7216 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7217 }
7218 0 arg2 = (size_t)(val2);
7219 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7220 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7221 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7222 }
7223 0 arg3 = (size_t)(val3);
7224 0 result = (double)gsl_stats_int_mean((int const (*))arg1,arg2,arg3);
7225 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7226 {
7227 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7228 }
7229
7230
7231 0 XSRETURN(argvi);
7232 0 fail:
7233 {
7234 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7235 }
7236
7237
7238 0 SWIG_croak_null();
7239 }
7240 }
7241  
7242  
7243 0 XS(_wrap_gsl_stats_int_variance) {
7244 {
7245 0 int *arg1 = (int *) (int *)0 ;
7246 size_t arg2 ;
7247 size_t arg3 ;
7248 size_t val2 ;
7249 0 int ecode2 = 0 ;
7250 size_t val3 ;
7251 0 int ecode3 = 0 ;
7252 0 int argvi = 0;
7253 double result;
7254 0 dXSARGS;
7255
7256 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
7257 0 SWIG_croak("Usage: gsl_stats_int_variance(data,stride,n);");
7258 }
7259 {
7260 AV *tempav;
7261 I32 len;
7262 int i;
7263 SV **tv;
7264 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7265 0 croak("Math::GSL : $data is not a reference!");
7266 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7267 0 croak("Math::GSL : $data is not an array ref!");
7268
7269 0 tempav = (AV*)SvRV(ST(0));
7270 0 len = av_len(tempav);
7271 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7272 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7273 0 tv = av_fetch(tempav, i, 0);
7274 0 arg1[i] = (int) SvNV(*tv);
7275 }
7276 }
7277 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7278 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7279 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_variance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_variance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7280 }
7281 0 arg2 = (size_t)(val2);
7282 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7283 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7284 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_variance" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_variance" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7285 }
7286 0 arg3 = (size_t)(val3);
7287 0 result = (double)gsl_stats_int_variance((int const (*))arg1,arg2,arg3);
7288 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7289 {
7290 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7291 }
7292
7293
7294 0 XSRETURN(argvi);
7295 0 fail:
7296 {
7297 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7298 }
7299
7300
7301 0 SWIG_croak_null();
7302 }
7303 }
7304  
7305  
7306 0 XS(_wrap_gsl_stats_int_sd) {
7307 {
7308 0 int *arg1 = (int *) (int *)0 ;
7309 size_t arg2 ;
7310 size_t arg3 ;
7311 size_t val2 ;
7312 0 int ecode2 = 0 ;
7313 size_t val3 ;
7314 0 int ecode3 = 0 ;
7315 0 int argvi = 0;
7316 double result;
7317 0 dXSARGS;
7318
7319 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
7320 0 SWIG_croak("Usage: gsl_stats_int_sd(data,stride,n);");
7321 }
7322 {
7323 AV *tempav;
7324 I32 len;
7325 int i;
7326 SV **tv;
7327 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7328 0 croak("Math::GSL : $data is not a reference!");
7329 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7330 0 croak("Math::GSL : $data is not an array ref!");
7331
7332 0 tempav = (AV*)SvRV(ST(0));
7333 0 len = av_len(tempav);
7334 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7335 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7336 0 tv = av_fetch(tempav, i, 0);
7337 0 arg1[i] = (int) SvNV(*tv);
7338 }
7339 }
7340 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7341 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7342 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7343 }
7344 0 arg2 = (size_t)(val2);
7345 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7346 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7347 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7348 }
7349 0 arg3 = (size_t)(val3);
7350 0 result = (double)gsl_stats_int_sd((int const (*))arg1,arg2,arg3);
7351 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7352 {
7353 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7354 }
7355
7356
7357 0 XSRETURN(argvi);
7358 0 fail:
7359 {
7360 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7361 }
7362
7363
7364 0 SWIG_croak_null();
7365 }
7366 }
7367  
7368  
7369 0 XS(_wrap_gsl_stats_int_variance_with_fixed_mean) {
7370 {
7371 0 int *arg1 = (int *) (int *)0 ;
7372 size_t arg2 ;
7373 size_t arg3 ;
7374 double arg4 ;
7375 size_t val2 ;
7376 0 int ecode2 = 0 ;
7377 size_t val3 ;
7378 0 int ecode3 = 0 ;
7379 double val4 ;
7380 0 int ecode4 = 0 ;
7381 0 int argvi = 0;
7382 double result;
7383 0 dXSARGS;
7384
7385 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
7386 0 SWIG_croak("Usage: gsl_stats_int_variance_with_fixed_mean(data,stride,n,mean);");
7387 }
7388 {
7389 AV *tempav;
7390 I32 len;
7391 int i;
7392 SV **tv;
7393 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7394 0 croak("Math::GSL : $data is not a reference!");
7395 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7396 0 croak("Math::GSL : $data is not an array ref!");
7397
7398 0 tempav = (AV*)SvRV(ST(0));
7399 0 len = av_len(tempav);
7400 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7401 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7402 0 tv = av_fetch(tempav, i, 0);
7403 0 arg1[i] = (int) SvNV(*tv);
7404 }
7405 }
7406 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7407 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7408 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_variance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_variance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7409 }
7410 0 arg2 = (size_t)(val2);
7411 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7412 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7413 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_variance_with_fixed_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_variance_with_fixed_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7414 }
7415 0 arg3 = (size_t)(val3);
7416 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
7417 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
7418 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_variance_with_fixed_mean" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_variance_with_fixed_mean" "', argument " "4"" of type '" "double""'"); 0 0 0
7419 }
7420 0 arg4 = (double)(val4);
7421 0 result = (double)gsl_stats_int_variance_with_fixed_mean((int const (*))arg1,arg2,arg3,arg4);
7422 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7423 {
7424 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7425 }
7426
7427
7428
7429 0 XSRETURN(argvi);
7430 0 fail:
7431 {
7432 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7433 }
7434
7435
7436
7437 0 SWIG_croak_null();
7438 }
7439 }
7440  
7441  
7442 0 XS(_wrap_gsl_stats_int_sd_with_fixed_mean) {
7443 {
7444 0 int *arg1 = (int *) (int *)0 ;
7445 size_t arg2 ;
7446 size_t arg3 ;
7447 double arg4 ;
7448 size_t val2 ;
7449 0 int ecode2 = 0 ;
7450 size_t val3 ;
7451 0 int ecode3 = 0 ;
7452 double val4 ;
7453 0 int ecode4 = 0 ;
7454 0 int argvi = 0;
7455 double result;
7456 0 dXSARGS;
7457
7458 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
7459 0 SWIG_croak("Usage: gsl_stats_int_sd_with_fixed_mean(data,stride,n,mean);");
7460 }
7461 {
7462 AV *tempav;
7463 I32 len;
7464 int i;
7465 SV **tv;
7466 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7467 0 croak("Math::GSL : $data is not a reference!");
7468 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7469 0 croak("Math::GSL : $data is not an array ref!");
7470
7471 0 tempav = (AV*)SvRV(ST(0));
7472 0 len = av_len(tempav);
7473 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7474 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7475 0 tv = av_fetch(tempav, i, 0);
7476 0 arg1[i] = (int) SvNV(*tv);
7477 }
7478 }
7479 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7480 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7481 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_sd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_sd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7482 }
7483 0 arg2 = (size_t)(val2);
7484 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7485 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7486 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_sd_with_fixed_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_sd_with_fixed_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7487 }
7488 0 arg3 = (size_t)(val3);
7489 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
7490 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
7491 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_sd_with_fixed_mean" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_sd_with_fixed_mean" "', argument " "4"" of type '" "double""'"); 0 0 0
7492 }
7493 0 arg4 = (double)(val4);
7494 0 result = (double)gsl_stats_int_sd_with_fixed_mean((int const (*))arg1,arg2,arg3,arg4);
7495 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7496 {
7497 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7498 }
7499
7500
7501
7502 0 XSRETURN(argvi);
7503 0 fail:
7504 {
7505 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7506 }
7507
7508
7509
7510 0 SWIG_croak_null();
7511 }
7512 }
7513  
7514  
7515 0 XS(_wrap_gsl_stats_int_tss) {
7516 {
7517 0 int *arg1 = (int *) (int *)0 ;
7518 size_t arg2 ;
7519 size_t arg3 ;
7520 size_t val2 ;
7521 0 int ecode2 = 0 ;
7522 size_t val3 ;
7523 0 int ecode3 = 0 ;
7524 0 int argvi = 0;
7525 double result;
7526 0 dXSARGS;
7527
7528 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
7529 0 SWIG_croak("Usage: gsl_stats_int_tss(data,stride,n);");
7530 }
7531 {
7532 AV *tempav;
7533 I32 len;
7534 int i;
7535 SV **tv;
7536 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7537 0 croak("Math::GSL : $data is not a reference!");
7538 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7539 0 croak("Math::GSL : $data is not an array ref!");
7540
7541 0 tempav = (AV*)SvRV(ST(0));
7542 0 len = av_len(tempav);
7543 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7544 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7545 0 tv = av_fetch(tempav, i, 0);
7546 0 arg1[i] = (int) SvNV(*tv);
7547 }
7548 }
7549 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7550 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7551 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_tss" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_tss" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7552 }
7553 0 arg2 = (size_t)(val2);
7554 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7555 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7556 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_tss" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_tss" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7557 }
7558 0 arg3 = (size_t)(val3);
7559 0 result = (double)gsl_stats_int_tss((int const (*))arg1,arg2,arg3);
7560 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7561 {
7562 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7563 }
7564
7565
7566 0 XSRETURN(argvi);
7567 0 fail:
7568 {
7569 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7570 }
7571
7572
7573 0 SWIG_croak_null();
7574 }
7575 }
7576  
7577  
7578 0 XS(_wrap_gsl_stats_int_tss_m) {
7579 {
7580 0 int *arg1 = (int *) (int *)0 ;
7581 size_t arg2 ;
7582 size_t arg3 ;
7583 double arg4 ;
7584 size_t val2 ;
7585 0 int ecode2 = 0 ;
7586 size_t val3 ;
7587 0 int ecode3 = 0 ;
7588 double val4 ;
7589 0 int ecode4 = 0 ;
7590 0 int argvi = 0;
7591 double result;
7592 0 dXSARGS;
7593
7594 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
7595 0 SWIG_croak("Usage: gsl_stats_int_tss_m(data,stride,n,mean);");
7596 }
7597 {
7598 AV *tempav;
7599 I32 len;
7600 int i;
7601 SV **tv;
7602 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7603 0 croak("Math::GSL : $data is not a reference!");
7604 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7605 0 croak("Math::GSL : $data is not an array ref!");
7606
7607 0 tempav = (AV*)SvRV(ST(0));
7608 0 len = av_len(tempav);
7609 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7610 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7611 0 tv = av_fetch(tempav, i, 0);
7612 0 arg1[i] = (int) SvNV(*tv);
7613 }
7614 }
7615 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7616 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7617 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_tss_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_tss_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7618 }
7619 0 arg2 = (size_t)(val2);
7620 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7621 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7622 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_tss_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_tss_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7623 }
7624 0 arg3 = (size_t)(val3);
7625 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
7626 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
7627 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_tss_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_tss_m" "', argument " "4"" of type '" "double""'"); 0 0 0
7628 }
7629 0 arg4 = (double)(val4);
7630 0 result = (double)gsl_stats_int_tss_m((int const (*))arg1,arg2,arg3,arg4);
7631 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7632 {
7633 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7634 }
7635
7636
7637
7638 0 XSRETURN(argvi);
7639 0 fail:
7640 {
7641 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7642 }
7643
7644
7645
7646 0 SWIG_croak_null();
7647 }
7648 }
7649  
7650  
7651 0 XS(_wrap_gsl_stats_int_absdev) {
7652 {
7653 0 int *arg1 = (int *) (int *)0 ;
7654 size_t arg2 ;
7655 size_t arg3 ;
7656 size_t val2 ;
7657 0 int ecode2 = 0 ;
7658 size_t val3 ;
7659 0 int ecode3 = 0 ;
7660 0 int argvi = 0;
7661 double result;
7662 0 dXSARGS;
7663
7664 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
7665 0 SWIG_croak("Usage: gsl_stats_int_absdev(data,stride,n);");
7666 }
7667 {
7668 AV *tempav;
7669 I32 len;
7670 int i;
7671 SV **tv;
7672 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7673 0 croak("Math::GSL : $data is not a reference!");
7674 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7675 0 croak("Math::GSL : $data is not an array ref!");
7676
7677 0 tempav = (AV*)SvRV(ST(0));
7678 0 len = av_len(tempav);
7679 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7680 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7681 0 tv = av_fetch(tempav, i, 0);
7682 0 arg1[i] = (int) SvNV(*tv);
7683 }
7684 }
7685 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7686 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7687 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_absdev" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_absdev" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7688 }
7689 0 arg2 = (size_t)(val2);
7690 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7691 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7692 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_absdev" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_absdev" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7693 }
7694 0 arg3 = (size_t)(val3);
7695 0 result = (double)gsl_stats_int_absdev((int const (*))arg1,arg2,arg3);
7696 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7697 {
7698 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7699 }
7700
7701
7702 0 XSRETURN(argvi);
7703 0 fail:
7704 {
7705 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7706 }
7707
7708
7709 0 SWIG_croak_null();
7710 }
7711 }
7712  
7713  
7714 0 XS(_wrap_gsl_stats_int_skew) {
7715 {
7716 0 int *arg1 = (int *) (int *)0 ;
7717 size_t arg2 ;
7718 size_t arg3 ;
7719 size_t val2 ;
7720 0 int ecode2 = 0 ;
7721 size_t val3 ;
7722 0 int ecode3 = 0 ;
7723 0 int argvi = 0;
7724 double result;
7725 0 dXSARGS;
7726
7727 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
7728 0 SWIG_croak("Usage: gsl_stats_int_skew(data,stride,n);");
7729 }
7730 {
7731 AV *tempav;
7732 I32 len;
7733 int i;
7734 SV **tv;
7735 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7736 0 croak("Math::GSL : $data is not a reference!");
7737 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7738 0 croak("Math::GSL : $data is not an array ref!");
7739
7740 0 tempav = (AV*)SvRV(ST(0));
7741 0 len = av_len(tempav);
7742 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7743 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7744 0 tv = av_fetch(tempav, i, 0);
7745 0 arg1[i] = (int) SvNV(*tv);
7746 }
7747 }
7748 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7749 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7750 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_skew" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_skew" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7751 }
7752 0 arg2 = (size_t)(val2);
7753 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7754 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7755 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_skew" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_skew" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7756 }
7757 0 arg3 = (size_t)(val3);
7758 0 result = (double)gsl_stats_int_skew((int const (*))arg1,arg2,arg3);
7759 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7760 {
7761 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7762 }
7763
7764
7765 0 XSRETURN(argvi);
7766 0 fail:
7767 {
7768 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7769 }
7770
7771
7772 0 SWIG_croak_null();
7773 }
7774 }
7775  
7776  
7777 0 XS(_wrap_gsl_stats_int_kurtosis) {
7778 {
7779 0 int *arg1 = (int *) (int *)0 ;
7780 size_t arg2 ;
7781 size_t arg3 ;
7782 size_t val2 ;
7783 0 int ecode2 = 0 ;
7784 size_t val3 ;
7785 0 int ecode3 = 0 ;
7786 0 int argvi = 0;
7787 double result;
7788 0 dXSARGS;
7789
7790 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
7791 0 SWIG_croak("Usage: gsl_stats_int_kurtosis(data,stride,n);");
7792 }
7793 {
7794 AV *tempav;
7795 I32 len;
7796 int i;
7797 SV **tv;
7798 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7799 0 croak("Math::GSL : $data is not a reference!");
7800 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7801 0 croak("Math::GSL : $data is not an array ref!");
7802
7803 0 tempav = (AV*)SvRV(ST(0));
7804 0 len = av_len(tempav);
7805 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7806 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7807 0 tv = av_fetch(tempav, i, 0);
7808 0 arg1[i] = (int) SvNV(*tv);
7809 }
7810 }
7811 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7812 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7813 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_kurtosis" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_kurtosis" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7814 }
7815 0 arg2 = (size_t)(val2);
7816 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7817 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7818 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_kurtosis" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_kurtosis" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7819 }
7820 0 arg3 = (size_t)(val3);
7821 0 result = (double)gsl_stats_int_kurtosis((int const (*))arg1,arg2,arg3);
7822 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7823 {
7824 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7825 }
7826
7827
7828 0 XSRETURN(argvi);
7829 0 fail:
7830 {
7831 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7832 }
7833
7834
7835 0 SWIG_croak_null();
7836 }
7837 }
7838  
7839  
7840 0 XS(_wrap_gsl_stats_int_lag1_autocorrelation) {
7841 {
7842 0 int *arg1 = (int *) (int *)0 ;
7843 size_t arg2 ;
7844 size_t arg3 ;
7845 size_t val2 ;
7846 0 int ecode2 = 0 ;
7847 size_t val3 ;
7848 0 int ecode3 = 0 ;
7849 0 int argvi = 0;
7850 double result;
7851 0 dXSARGS;
7852
7853 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
7854 0 SWIG_croak("Usage: gsl_stats_int_lag1_autocorrelation(data,stride,n);");
7855 }
7856 {
7857 AV *tempav;
7858 I32 len;
7859 int i;
7860 SV **tv;
7861 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7862 0 croak("Math::GSL : $data is not a reference!");
7863 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7864 0 croak("Math::GSL : $data is not an array ref!");
7865
7866 0 tempav = (AV*)SvRV(ST(0));
7867 0 len = av_len(tempav);
7868 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7869 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7870 0 tv = av_fetch(tempav, i, 0);
7871 0 arg1[i] = (int) SvNV(*tv);
7872 }
7873 }
7874 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7875 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7876 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_lag1_autocorrelation" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_lag1_autocorrelation" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7877 }
7878 0 arg2 = (size_t)(val2);
7879 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
7880 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
7881 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_lag1_autocorrelation" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_lag1_autocorrelation" "', argument " "3"" of type '" "size_t""'"); 0 0 0
7882 }
7883 0 arg3 = (size_t)(val3);
7884 0 result = (double)gsl_stats_int_lag1_autocorrelation((int const (*))arg1,arg2,arg3);
7885 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7886 {
7887 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7888 }
7889
7890
7891 0 XSRETURN(argvi);
7892 0 fail:
7893 {
7894 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7895 }
7896
7897
7898 0 SWIG_croak_null();
7899 }
7900 }
7901  
7902  
7903 0 XS(_wrap_gsl_stats_int_covariance) {
7904 {
7905 0 int *arg1 = (int *) (int *)0 ;
7906 size_t arg2 ;
7907 0 int *arg3 = (int *) (int *)0 ;
7908 size_t arg4 ;
7909 size_t arg5 ;
7910 size_t val2 ;
7911 0 int ecode2 = 0 ;
7912 size_t val4 ;
7913 0 int ecode4 = 0 ;
7914 size_t val5 ;
7915 0 int ecode5 = 0 ;
7916 0 int argvi = 0;
7917 double result;
7918 0 dXSARGS;
7919
7920 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
7921 0 SWIG_croak("Usage: gsl_stats_int_covariance(data1,stride1,data2,stride2,n);");
7922 }
7923 {
7924 AV *tempav;
7925 I32 len;
7926 int i;
7927 SV **tv;
7928 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
7929 0 croak("Math::GSL : $data1 is not a reference!");
7930 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
7931 0 croak("Math::GSL : $data1 is not an array ref!");
7932
7933 0 tempav = (AV*)SvRV(ST(0));
7934 0 len = av_len(tempav);
7935 0 arg1 = (int *) malloc((len+2)*sizeof(int));
7936 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7937 0 tv = av_fetch(tempav, i, 0);
7938 0 arg1[i] = (int) SvNV(*tv);
7939 }
7940 }
7941 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
7942 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
7943 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_covariance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_covariance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
7944 }
7945 0 arg2 = (size_t)(val2);
7946 {
7947 AV *tempav;
7948 I32 len;
7949 int i;
7950 SV **tv;
7951 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
7952 0 croak("Math::GSL : $data2 is not a reference!");
7953 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
7954 0 croak("Math::GSL : $data2 is not an array ref!");
7955
7956 0 tempav = (AV*)SvRV(ST(2));
7957 0 len = av_len(tempav);
7958 0 arg3 = (int *) malloc((len+2)*sizeof(int));
7959 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
7960 0 tv = av_fetch(tempav, i, 0);
7961 0 arg3[i] = (int) SvNV(*tv);
7962 }
7963 }
7964 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
7965 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
7966 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_covariance" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_covariance" "', argument " "4"" of type '" "size_t""'"); 0 0 0
7967 }
7968 0 arg4 = (size_t)(val4);
7969 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
7970 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
7971 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_covariance" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_covariance" "', argument " "5"" of type '" "size_t""'"); 0 0 0
7972 }
7973 0 arg5 = (size_t)(val5);
7974 0 result = (double)gsl_stats_int_covariance((int const (*))arg1,arg2,(int const (*))arg3,arg4,arg5);
7975 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
7976 {
7977 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7978 }
7979
7980 {
7981 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
7982 }
7983
7984
7985 0 XSRETURN(argvi);
7986 0 fail:
7987 {
7988 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
7989 }
7990
7991 {
7992 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
7993 }
7994
7995
7996 0 SWIG_croak_null();
7997 }
7998 }
7999  
8000  
8001 0 XS(_wrap_gsl_stats_int_correlation) {
8002 {
8003 0 int *arg1 = (int *) (int *)0 ;
8004 size_t arg2 ;
8005 0 int *arg3 = (int *) (int *)0 ;
8006 size_t arg4 ;
8007 size_t arg5 ;
8008 size_t val2 ;
8009 0 int ecode2 = 0 ;
8010 size_t val4 ;
8011 0 int ecode4 = 0 ;
8012 size_t val5 ;
8013 0 int ecode5 = 0 ;
8014 0 int argvi = 0;
8015 double result;
8016 0 dXSARGS;
8017
8018 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
8019 0 SWIG_croak("Usage: gsl_stats_int_correlation(data1,stride1,data2,stride2,n);");
8020 }
8021 {
8022 AV *tempav;
8023 I32 len;
8024 int i;
8025 SV **tv;
8026 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8027 0 croak("Math::GSL : $data1 is not a reference!");
8028 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8029 0 croak("Math::GSL : $data1 is not an array ref!");
8030
8031 0 tempav = (AV*)SvRV(ST(0));
8032 0 len = av_len(tempav);
8033 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8034 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8035 0 tv = av_fetch(tempav, i, 0);
8036 0 arg1[i] = (int) SvNV(*tv);
8037 }
8038 }
8039 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8040 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8041 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_correlation" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_correlation" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8042 }
8043 0 arg2 = (size_t)(val2);
8044 {
8045 AV *tempav;
8046 I32 len;
8047 int i;
8048 SV **tv;
8049 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
8050 0 croak("Math::GSL : $data2 is not a reference!");
8051 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
8052 0 croak("Math::GSL : $data2 is not an array ref!");
8053
8054 0 tempav = (AV*)SvRV(ST(2));
8055 0 len = av_len(tempav);
8056 0 arg3 = (int *) malloc((len+2)*sizeof(int));
8057 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8058 0 tv = av_fetch(tempav, i, 0);
8059 0 arg3[i] = (int) SvNV(*tv);
8060 }
8061 }
8062 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8063 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8064 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_correlation" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_correlation" "', argument " "4"" of type '" "size_t""'"); 0 0 0
8065 }
8066 0 arg4 = (size_t)(val4);
8067 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
8068 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
8069 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_correlation" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_correlation" "', argument " "5"" of type '" "size_t""'"); 0 0 0
8070 }
8071 0 arg5 = (size_t)(val5);
8072 0 result = (double)gsl_stats_int_correlation((int const (*))arg1,arg2,(int const (*))arg3,arg4,arg5);
8073 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8074 {
8075 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8076 }
8077
8078 {
8079 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8080 }
8081
8082
8083 0 XSRETURN(argvi);
8084 0 fail:
8085 {
8086 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8087 }
8088
8089 {
8090 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8091 }
8092
8093
8094 0 SWIG_croak_null();
8095 }
8096 }
8097  
8098  
8099 0 XS(_wrap_gsl_stats_int_spearman) {
8100 {
8101 0 int *arg1 = (int *) (int *)0 ;
8102 size_t arg2 ;
8103 0 int *arg3 = (int *) (int *)0 ;
8104 size_t arg4 ;
8105 size_t arg5 ;
8106 0 double *arg6 = (double *) (double *)0 ;
8107 size_t val2 ;
8108 0 int ecode2 = 0 ;
8109 size_t val4 ;
8110 0 int ecode4 = 0 ;
8111 size_t val5 ;
8112 0 int ecode5 = 0 ;
8113 0 void *argp6 = 0 ;
8114 0 int res6 = 0 ;
8115 0 int argvi = 0;
8116 double result;
8117 0 dXSARGS;
8118
8119 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
8120 0 SWIG_croak("Usage: gsl_stats_int_spearman(data1,stride1,data2,stride2,n,work);");
8121 }
8122 {
8123 AV *tempav;
8124 I32 len;
8125 int i;
8126 SV **tv;
8127 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8128 0 croak("Math::GSL : $data1 is not a reference!");
8129 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8130 0 croak("Math::GSL : $data1 is not an array ref!");
8131
8132 0 tempav = (AV*)SvRV(ST(0));
8133 0 len = av_len(tempav);
8134 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8135 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8136 0 tv = av_fetch(tempav, i, 0);
8137 0 arg1[i] = (int) SvNV(*tv);
8138 }
8139 }
8140 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8141 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8142 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_spearman" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_spearman" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8143 }
8144 0 arg2 = (size_t)(val2);
8145 {
8146 AV *tempav;
8147 I32 len;
8148 int i;
8149 SV **tv;
8150 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
8151 0 croak("Math::GSL : $data2 is not a reference!");
8152 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
8153 0 croak("Math::GSL : $data2 is not an array ref!");
8154
8155 0 tempav = (AV*)SvRV(ST(2));
8156 0 len = av_len(tempav);
8157 0 arg3 = (int *) malloc((len+2)*sizeof(int));
8158 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8159 0 tv = av_fetch(tempav, i, 0);
8160 0 arg3[i] = (int) SvNV(*tv);
8161 }
8162 }
8163 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8164 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8165 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_spearman" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_spearman" "', argument " "4"" of type '" "size_t""'"); 0 0 0
8166 }
8167 0 arg4 = (size_t)(val4);
8168 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
8169 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
8170 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_spearman" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_spearman" "', argument " "5"" of type '" "size_t""'"); 0 0 0
8171 }
8172 0 arg5 = (size_t)(val5);
8173 0 res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_double, 0 | 0 );
8174 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
8175 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_stats_int_spearman" "', argument " "6"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_stats_int_spearman" "', argument " "6"" of type '" "double []""'"); 0 0 0
8176 }
8177 0 arg6 = (double *)(argp6);
8178 0 result = (double)gsl_stats_int_spearman((int const (*))arg1,arg2,(int const (*))arg3,arg4,arg5,arg6);
8179 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8180 {
8181 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8182 }
8183
8184 {
8185 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8186 }
8187
8188
8189
8190 0 XSRETURN(argvi);
8191 0 fail:
8192 {
8193 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8194 }
8195
8196 {
8197 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8198 }
8199
8200
8201
8202 0 SWIG_croak_null();
8203 }
8204 }
8205  
8206  
8207 0 XS(_wrap_gsl_stats_int_variance_m) {
8208 {
8209 0 int *arg1 = (int *) (int *)0 ;
8210 size_t arg2 ;
8211 size_t arg3 ;
8212 double arg4 ;
8213 size_t val2 ;
8214 0 int ecode2 = 0 ;
8215 size_t val3 ;
8216 0 int ecode3 = 0 ;
8217 double val4 ;
8218 0 int ecode4 = 0 ;
8219 0 int argvi = 0;
8220 double result;
8221 0 dXSARGS;
8222
8223 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
8224 0 SWIG_croak("Usage: gsl_stats_int_variance_m(data,stride,n,mean);");
8225 }
8226 {
8227 AV *tempav;
8228 I32 len;
8229 int i;
8230 SV **tv;
8231 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8232 0 croak("Math::GSL : $data is not a reference!");
8233 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8234 0 croak("Math::GSL : $data is not an array ref!");
8235
8236 0 tempav = (AV*)SvRV(ST(0));
8237 0 len = av_len(tempav);
8238 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8239 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8240 0 tv = av_fetch(tempav, i, 0);
8241 0 arg1[i] = (int) SvNV(*tv);
8242 }
8243 }
8244 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8245 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8246 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_variance_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_variance_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8247 }
8248 0 arg2 = (size_t)(val2);
8249 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8250 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8251 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_variance_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_variance_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8252 }
8253 0 arg3 = (size_t)(val3);
8254 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8255 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8256 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_variance_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_variance_m" "', argument " "4"" of type '" "double""'"); 0 0 0
8257 }
8258 0 arg4 = (double)(val4);
8259 0 result = (double)gsl_stats_int_variance_m((int const (*))arg1,arg2,arg3,arg4);
8260 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8261 {
8262 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8263 }
8264
8265
8266
8267 0 XSRETURN(argvi);
8268 0 fail:
8269 {
8270 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8271 }
8272
8273
8274
8275 0 SWIG_croak_null();
8276 }
8277 }
8278  
8279  
8280 0 XS(_wrap_gsl_stats_int_sd_m) {
8281 {
8282 0 int *arg1 = (int *) (int *)0 ;
8283 size_t arg2 ;
8284 size_t arg3 ;
8285 double arg4 ;
8286 size_t val2 ;
8287 0 int ecode2 = 0 ;
8288 size_t val3 ;
8289 0 int ecode3 = 0 ;
8290 double val4 ;
8291 0 int ecode4 = 0 ;
8292 0 int argvi = 0;
8293 double result;
8294 0 dXSARGS;
8295
8296 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
8297 0 SWIG_croak("Usage: gsl_stats_int_sd_m(data,stride,n,mean);");
8298 }
8299 {
8300 AV *tempav;
8301 I32 len;
8302 int i;
8303 SV **tv;
8304 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8305 0 croak("Math::GSL : $data is not a reference!");
8306 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8307 0 croak("Math::GSL : $data is not an array ref!");
8308
8309 0 tempav = (AV*)SvRV(ST(0));
8310 0 len = av_len(tempav);
8311 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8312 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8313 0 tv = av_fetch(tempav, i, 0);
8314 0 arg1[i] = (int) SvNV(*tv);
8315 }
8316 }
8317 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8318 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8319 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_sd_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_sd_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8320 }
8321 0 arg2 = (size_t)(val2);
8322 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8323 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8324 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_sd_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_sd_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8325 }
8326 0 arg3 = (size_t)(val3);
8327 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8328 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8329 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_sd_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_sd_m" "', argument " "4"" of type '" "double""'"); 0 0 0
8330 }
8331 0 arg4 = (double)(val4);
8332 0 result = (double)gsl_stats_int_sd_m((int const (*))arg1,arg2,arg3,arg4);
8333 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8334 {
8335 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8336 }
8337
8338
8339
8340 0 XSRETURN(argvi);
8341 0 fail:
8342 {
8343 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8344 }
8345
8346
8347
8348 0 SWIG_croak_null();
8349 }
8350 }
8351  
8352  
8353 0 XS(_wrap_gsl_stats_int_absdev_m) {
8354 {
8355 0 int *arg1 = (int *) (int *)0 ;
8356 size_t arg2 ;
8357 size_t arg3 ;
8358 double arg4 ;
8359 size_t val2 ;
8360 0 int ecode2 = 0 ;
8361 size_t val3 ;
8362 0 int ecode3 = 0 ;
8363 double val4 ;
8364 0 int ecode4 = 0 ;
8365 0 int argvi = 0;
8366 double result;
8367 0 dXSARGS;
8368
8369 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
8370 0 SWIG_croak("Usage: gsl_stats_int_absdev_m(data,stride,n,mean);");
8371 }
8372 {
8373 AV *tempav;
8374 I32 len;
8375 int i;
8376 SV **tv;
8377 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8378 0 croak("Math::GSL : $data is not a reference!");
8379 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8380 0 croak("Math::GSL : $data is not an array ref!");
8381
8382 0 tempav = (AV*)SvRV(ST(0));
8383 0 len = av_len(tempav);
8384 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8385 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8386 0 tv = av_fetch(tempav, i, 0);
8387 0 arg1[i] = (int) SvNV(*tv);
8388 }
8389 }
8390 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8391 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8392 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_absdev_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_absdev_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8393 }
8394 0 arg2 = (size_t)(val2);
8395 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8396 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8397 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_absdev_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_absdev_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8398 }
8399 0 arg3 = (size_t)(val3);
8400 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8401 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8402 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_absdev_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_absdev_m" "', argument " "4"" of type '" "double""'"); 0 0 0
8403 }
8404 0 arg4 = (double)(val4);
8405 0 result = (double)gsl_stats_int_absdev_m((int const (*))arg1,arg2,arg3,arg4);
8406 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8407 {
8408 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8409 }
8410
8411
8412
8413 0 XSRETURN(argvi);
8414 0 fail:
8415 {
8416 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8417 }
8418
8419
8420
8421 0 SWIG_croak_null();
8422 }
8423 }
8424  
8425  
8426 0 XS(_wrap_gsl_stats_int_skew_m_sd) {
8427 {
8428 0 int *arg1 = (int *) (int *)0 ;
8429 size_t arg2 ;
8430 size_t arg3 ;
8431 double arg4 ;
8432 double arg5 ;
8433 size_t val2 ;
8434 0 int ecode2 = 0 ;
8435 size_t val3 ;
8436 0 int ecode3 = 0 ;
8437 double val4 ;
8438 0 int ecode4 = 0 ;
8439 double val5 ;
8440 0 int ecode5 = 0 ;
8441 0 int argvi = 0;
8442 double result;
8443 0 dXSARGS;
8444
8445 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
8446 0 SWIG_croak("Usage: gsl_stats_int_skew_m_sd(data,stride,n,mean,sd);");
8447 }
8448 {
8449 AV *tempav;
8450 I32 len;
8451 int i;
8452 SV **tv;
8453 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8454 0 croak("Math::GSL : $data is not a reference!");
8455 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8456 0 croak("Math::GSL : $data is not an array ref!");
8457
8458 0 tempav = (AV*)SvRV(ST(0));
8459 0 len = av_len(tempav);
8460 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8461 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8462 0 tv = av_fetch(tempav, i, 0);
8463 0 arg1[i] = (int) SvNV(*tv);
8464 }
8465 }
8466 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8467 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8468 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8469 }
8470 0 arg2 = (size_t)(val2);
8471 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8472 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8473 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8474 }
8475 0 arg3 = (size_t)(val3);
8476 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8477 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8478 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "4"" of type '" "double""'"); 0 0 0
8479 }
8480 0 arg4 = (double)(val4);
8481 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
8482 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
8483 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_skew_m_sd" "', argument " "5"" of type '" "double""'"); 0 0 0
8484 }
8485 0 arg5 = (double)(val5);
8486 0 result = (double)gsl_stats_int_skew_m_sd((int const (*))arg1,arg2,arg3,arg4,arg5);
8487 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8488 {
8489 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8490 }
8491
8492
8493
8494
8495 0 XSRETURN(argvi);
8496 0 fail:
8497 {
8498 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8499 }
8500
8501
8502
8503
8504 0 SWIG_croak_null();
8505 }
8506 }
8507  
8508  
8509 0 XS(_wrap_gsl_stats_int_kurtosis_m_sd) {
8510 {
8511 0 int *arg1 = (int *) (int *)0 ;
8512 size_t arg2 ;
8513 size_t arg3 ;
8514 double arg4 ;
8515 double arg5 ;
8516 size_t val2 ;
8517 0 int ecode2 = 0 ;
8518 size_t val3 ;
8519 0 int ecode3 = 0 ;
8520 double val4 ;
8521 0 int ecode4 = 0 ;
8522 double val5 ;
8523 0 int ecode5 = 0 ;
8524 0 int argvi = 0;
8525 double result;
8526 0 dXSARGS;
8527
8528 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
8529 0 SWIG_croak("Usage: gsl_stats_int_kurtosis_m_sd(data,stride,n,mean,sd);");
8530 }
8531 {
8532 AV *tempav;
8533 I32 len;
8534 int i;
8535 SV **tv;
8536 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8537 0 croak("Math::GSL : $data is not a reference!");
8538 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8539 0 croak("Math::GSL : $data is not an array ref!");
8540
8541 0 tempav = (AV*)SvRV(ST(0));
8542 0 len = av_len(tempav);
8543 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8544 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8545 0 tv = av_fetch(tempav, i, 0);
8546 0 arg1[i] = (int) SvNV(*tv);
8547 }
8548 }
8549 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8550 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8551 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8552 }
8553 0 arg2 = (size_t)(val2);
8554 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8555 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8556 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8557 }
8558 0 arg3 = (size_t)(val3);
8559 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8560 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8561 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "4"" of type '" "double""'"); 0 0 0
8562 }
8563 0 arg4 = (double)(val4);
8564 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
8565 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
8566 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_kurtosis_m_sd" "', argument " "5"" of type '" "double""'"); 0 0 0
8567 }
8568 0 arg5 = (double)(val5);
8569 0 result = (double)gsl_stats_int_kurtosis_m_sd((int const (*))arg1,arg2,arg3,arg4,arg5);
8570 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8571 {
8572 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8573 }
8574
8575
8576
8577
8578 0 XSRETURN(argvi);
8579 0 fail:
8580 {
8581 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8582 }
8583
8584
8585
8586
8587 0 SWIG_croak_null();
8588 }
8589 }
8590  
8591  
8592 0 XS(_wrap_gsl_stats_int_lag1_autocorrelation_m) {
8593 {
8594 0 int *arg1 = (int *) (int *)0 ;
8595 size_t arg2 ;
8596 size_t arg3 ;
8597 double arg4 ;
8598 size_t val2 ;
8599 0 int ecode2 = 0 ;
8600 size_t val3 ;
8601 0 int ecode3 = 0 ;
8602 double val4 ;
8603 0 int ecode4 = 0 ;
8604 0 int argvi = 0;
8605 double result;
8606 0 dXSARGS;
8607
8608 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
8609 0 SWIG_croak("Usage: gsl_stats_int_lag1_autocorrelation_m(data,stride,n,mean);");
8610 }
8611 {
8612 AV *tempav;
8613 I32 len;
8614 int i;
8615 SV **tv;
8616 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8617 0 croak("Math::GSL : $data is not a reference!");
8618 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8619 0 croak("Math::GSL : $data is not an array ref!");
8620
8621 0 tempav = (AV*)SvRV(ST(0));
8622 0 len = av_len(tempav);
8623 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8624 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8625 0 tv = av_fetch(tempav, i, 0);
8626 0 arg1[i] = (int) SvNV(*tv);
8627 }
8628 }
8629 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8630 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8631 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_lag1_autocorrelation_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_lag1_autocorrelation_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8632 }
8633 0 arg2 = (size_t)(val2);
8634 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8635 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8636 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_lag1_autocorrelation_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_lag1_autocorrelation_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8637 }
8638 0 arg3 = (size_t)(val3);
8639 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8640 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8641 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_lag1_autocorrelation_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_lag1_autocorrelation_m" "', argument " "4"" of type '" "double""'"); 0 0 0
8642 }
8643 0 arg4 = (double)(val4);
8644 0 result = (double)gsl_stats_int_lag1_autocorrelation_m((int const (*))arg1,arg2,arg3,arg4);
8645 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8646 {
8647 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8648 }
8649
8650
8651
8652 0 XSRETURN(argvi);
8653 0 fail:
8654 {
8655 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8656 }
8657
8658
8659
8660 0 SWIG_croak_null();
8661 }
8662 }
8663  
8664  
8665 0 XS(_wrap_gsl_stats_int_covariance_m) {
8666 {
8667 0 int *arg1 = (int *) (int *)0 ;
8668 size_t arg2 ;
8669 0 int *arg3 = (int *) (int *)0 ;
8670 size_t arg4 ;
8671 size_t arg5 ;
8672 double arg6 ;
8673 double arg7 ;
8674 size_t val2 ;
8675 0 int ecode2 = 0 ;
8676 size_t val4 ;
8677 0 int ecode4 = 0 ;
8678 size_t val5 ;
8679 0 int ecode5 = 0 ;
8680 double val6 ;
8681 0 int ecode6 = 0 ;
8682 double val7 ;
8683 0 int ecode7 = 0 ;
8684 0 int argvi = 0;
8685 double result;
8686 0 dXSARGS;
8687
8688 0 ▶ if ((items < 7) || (items > 7)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 7) || (items > 7)) { 0 0 0
if ((items < 7) || (items > 7)) { 0 0 0
8689 0 SWIG_croak("Usage: gsl_stats_int_covariance_m(data1,stride1,data2,stride2,n,mean1,mean2);");
8690 }
8691 {
8692 AV *tempav;
8693 I32 len;
8694 int i;
8695 SV **tv;
8696 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8697 0 croak("Math::GSL : $data1 is not a reference!");
8698 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8699 0 croak("Math::GSL : $data1 is not an array ref!");
8700
8701 0 tempav = (AV*)SvRV(ST(0));
8702 0 len = av_len(tempav);
8703 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8704 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8705 0 tv = av_fetch(tempav, i, 0);
8706 0 arg1[i] = (int) SvNV(*tv);
8707 }
8708 }
8709 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8710 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8711 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_covariance_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_covariance_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8712 }
8713 0 arg2 = (size_t)(val2);
8714 {
8715 AV *tempav;
8716 I32 len;
8717 int i;
8718 SV **tv;
8719 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
8720 0 croak("Math::GSL : $data2 is not a reference!");
8721 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
8722 0 croak("Math::GSL : $data2 is not an array ref!");
8723
8724 0 tempav = (AV*)SvRV(ST(2));
8725 0 len = av_len(tempav);
8726 0 arg3 = (int *) malloc((len+2)*sizeof(int));
8727 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8728 0 tv = av_fetch(tempav, i, 0);
8729 0 arg3[i] = (int) SvNV(*tv);
8730 }
8731 }
8732 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
8733 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
8734 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_covariance_m" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_covariance_m" "', argument " "4"" of type '" "size_t""'"); 0 0 0
8735 }
8736 0 arg4 = (size_t)(val4);
8737 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
8738 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
8739 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_covariance_m" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_covariance_m" "', argument " "5"" of type '" "size_t""'"); 0 0 0
8740 }
8741 0 arg5 = (size_t)(val5);
8742 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
8743 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
8744 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_int_covariance_m" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_int_covariance_m" "', argument " "6"" of type '" "double""'"); 0 0 0
8745 }
8746 0 arg6 = (double)(val6);
8747 0 ecode7 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
8748 0 ▶ if (!SWIG_IsOK(ecode7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode7)) { 0 0 0
8749 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_int_covariance_m" "', argument " "7"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_int_covariance_m" "', argument " "7"" of type '" "double""'"); 0 0 0
8750 }
8751 0 arg7 = (double)(val7);
8752 0 result = (double)gsl_stats_int_covariance_m((int const (*))arg1,arg2,(int const (*))arg3,arg4,arg5,arg6,arg7);
8753 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8754 {
8755 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8756 }
8757
8758 {
8759 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8760 }
8761
8762
8763
8764
8765 0 XSRETURN(argvi);
8766 0 fail:
8767 {
8768 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8769 }
8770
8771 {
8772 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
8773 }
8774
8775
8776
8777
8778 0 SWIG_croak_null();
8779 }
8780 }
8781  
8782  
8783 0 XS(_wrap_gsl_stats_int_pvariance) {
8784 {
8785 0 int *arg1 = (int *) (int *)0 ;
8786 size_t arg2 ;
8787 size_t arg3 ;
8788 0 int *arg4 = (int *) (int *)0 ;
8789 size_t arg5 ;
8790 size_t arg6 ;
8791 size_t val2 ;
8792 0 int ecode2 = 0 ;
8793 size_t val3 ;
8794 0 int ecode3 = 0 ;
8795 size_t val5 ;
8796 0 int ecode5 = 0 ;
8797 size_t val6 ;
8798 0 int ecode6 = 0 ;
8799 0 int argvi = 0;
8800 double result;
8801 0 dXSARGS;
8802
8803 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
8804 0 SWIG_croak("Usage: gsl_stats_int_pvariance(data1,stride1,n1,data2,stride2,n2);");
8805 }
8806 {
8807 AV *tempav;
8808 I32 len;
8809 int i;
8810 SV **tv;
8811 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8812 0 croak("Math::GSL : $data1 is not a reference!");
8813 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8814 0 croak("Math::GSL : $data1 is not an array ref!");
8815
8816 0 tempav = (AV*)SvRV(ST(0));
8817 0 len = av_len(tempav);
8818 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8819 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8820 0 tv = av_fetch(tempav, i, 0);
8821 0 arg1[i] = (int) SvNV(*tv);
8822 }
8823 }
8824 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8825 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8826 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_pvariance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_pvariance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8827 }
8828 0 arg2 = (size_t)(val2);
8829 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8830 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8831 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_pvariance" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_pvariance" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8832 }
8833 0 arg3 = (size_t)(val3);
8834 {
8835 AV *tempav;
8836 I32 len;
8837 int i;
8838 SV **tv;
8839 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
8840 0 croak("Math::GSL : $data2 is not a reference!");
8841 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
8842 0 croak("Math::GSL : $data2 is not an array ref!");
8843
8844 0 tempav = (AV*)SvRV(ST(3));
8845 0 len = av_len(tempav);
8846 0 arg4 = (int *) malloc((len+2)*sizeof(int));
8847 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8848 0 tv = av_fetch(tempav, i, 0);
8849 0 arg4[i] = (int) SvNV(*tv);
8850 }
8851 }
8852 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
8853 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
8854 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_pvariance" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_pvariance" "', argument " "5"" of type '" "size_t""'"); 0 0 0
8855 }
8856 0 arg5 = (size_t)(val5);
8857 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
8858 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
8859 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_int_pvariance" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_int_pvariance" "', argument " "6"" of type '" "size_t""'"); 0 0 0
8860 }
8861 0 arg6 = (size_t)(val6);
8862 0 result = (double)gsl_stats_int_pvariance((int const (*))arg1,arg2,arg3,(int const (*))arg4,arg5,arg6);
8863 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8864 {
8865 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8866 }
8867
8868
8869 {
8870 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
8871 }
8872
8873
8874 0 XSRETURN(argvi);
8875 0 fail:
8876 {
8877 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8878 }
8879
8880
8881 {
8882 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
8883 }
8884
8885
8886 0 SWIG_croak_null();
8887 }
8888 }
8889  
8890  
8891 0 XS(_wrap_gsl_stats_int_ttest) {
8892 {
8893 0 int *arg1 = (int *) (int *)0 ;
8894 size_t arg2 ;
8895 size_t arg3 ;
8896 0 int *arg4 = (int *) (int *)0 ;
8897 size_t arg5 ;
8898 size_t arg6 ;
8899 size_t val2 ;
8900 0 int ecode2 = 0 ;
8901 size_t val3 ;
8902 0 int ecode3 = 0 ;
8903 size_t val5 ;
8904 0 int ecode5 = 0 ;
8905 size_t val6 ;
8906 0 int ecode6 = 0 ;
8907 0 int argvi = 0;
8908 double result;
8909 0 dXSARGS;
8910
8911 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
8912 0 SWIG_croak("Usage: gsl_stats_int_ttest(data1,stride1,n1,data2,stride2,n2);");
8913 }
8914 {
8915 AV *tempav;
8916 I32 len;
8917 int i;
8918 SV **tv;
8919 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
8920 0 croak("Math::GSL : $data1 is not a reference!");
8921 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
8922 0 croak("Math::GSL : $data1 is not an array ref!");
8923
8924 0 tempav = (AV*)SvRV(ST(0));
8925 0 len = av_len(tempav);
8926 0 arg1 = (int *) malloc((len+2)*sizeof(int));
8927 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8928 0 tv = av_fetch(tempav, i, 0);
8929 0 arg1[i] = (int) SvNV(*tv);
8930 }
8931 }
8932 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
8933 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
8934 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_ttest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_ttest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
8935 }
8936 0 arg2 = (size_t)(val2);
8937 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
8938 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
8939 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_ttest" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_ttest" "', argument " "3"" of type '" "size_t""'"); 0 0 0
8940 }
8941 0 arg3 = (size_t)(val3);
8942 {
8943 AV *tempav;
8944 I32 len;
8945 int i;
8946 SV **tv;
8947 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
8948 0 croak("Math::GSL : $data2 is not a reference!");
8949 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
8950 0 croak("Math::GSL : $data2 is not an array ref!");
8951
8952 0 tempav = (AV*)SvRV(ST(3));
8953 0 len = av_len(tempav);
8954 0 arg4 = (int *) malloc((len+2)*sizeof(int));
8955 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
8956 0 tv = av_fetch(tempav, i, 0);
8957 0 arg4[i] = (int) SvNV(*tv);
8958 }
8959 }
8960 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
8961 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
8962 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_ttest" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_ttest" "', argument " "5"" of type '" "size_t""'"); 0 0 0
8963 }
8964 0 arg5 = (size_t)(val5);
8965 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
8966 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
8967 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_int_ttest" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_int_ttest" "', argument " "6"" of type '" "size_t""'"); 0 0 0
8968 }
8969 0 arg6 = (size_t)(val6);
8970 0 result = (double)gsl_stats_int_ttest((int const (*))arg1,arg2,arg3,(int const (*))arg4,arg5,arg6);
8971 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
8972 {
8973 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8974 }
8975
8976
8977 {
8978 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
8979 }
8980
8981
8982 0 XSRETURN(argvi);
8983 0 fail:
8984 {
8985 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
8986 }
8987
8988
8989 {
8990 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
8991 }
8992
8993
8994 0 SWIG_croak_null();
8995 }
8996 }
8997  
8998  
8999 0 XS(_wrap_gsl_stats_int_max) {
9000 {
9001 0 int *arg1 = (int *) (int *)0 ;
9002 size_t arg2 ;
9003 size_t arg3 ;
9004 size_t val2 ;
9005 0 int ecode2 = 0 ;
9006 size_t val3 ;
9007 0 int ecode3 = 0 ;
9008 0 int argvi = 0;
9009 int result;
9010 0 dXSARGS;
9011
9012 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
9013 0 SWIG_croak("Usage: gsl_stats_int_max(data,stride,n);");
9014 }
9015 {
9016 AV *tempav;
9017 I32 len;
9018 int i;
9019 SV **tv;
9020 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9021 0 croak("Math::GSL : $data is not a reference!");
9022 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9023 0 croak("Math::GSL : $data is not an array ref!");
9024
9025 0 tempav = (AV*)SvRV(ST(0));
9026 0 len = av_len(tempav);
9027 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9028 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9029 0 tv = av_fetch(tempav, i, 0);
9030 0 arg1[i] = (int) SvNV(*tv);
9031 }
9032 }
9033 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9034 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9035 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_max" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_max" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9036 }
9037 0 arg2 = (size_t)(val2);
9038 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9039 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9040 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_max" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_max" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9041 }
9042 0 arg3 = (size_t)(val3);
9043 0 result = (int)gsl_stats_int_max((int const (*))arg1,arg2,arg3);
9044 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
9045 {
9046 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9047 }
9048
9049
9050 0 XSRETURN(argvi);
9051 0 fail:
9052 {
9053 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9054 }
9055
9056
9057 0 SWIG_croak_null();
9058 }
9059 }
9060  
9061  
9062 0 XS(_wrap_gsl_stats_int_min) {
9063 {
9064 0 int *arg1 = (int *) (int *)0 ;
9065 size_t arg2 ;
9066 size_t arg3 ;
9067 size_t val2 ;
9068 0 int ecode2 = 0 ;
9069 size_t val3 ;
9070 0 int ecode3 = 0 ;
9071 0 int argvi = 0;
9072 int result;
9073 0 dXSARGS;
9074
9075 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
9076 0 SWIG_croak("Usage: gsl_stats_int_min(data,stride,n);");
9077 }
9078 {
9079 AV *tempav;
9080 I32 len;
9081 int i;
9082 SV **tv;
9083 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9084 0 croak("Math::GSL : $data is not a reference!");
9085 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9086 0 croak("Math::GSL : $data is not an array ref!");
9087
9088 0 tempav = (AV*)SvRV(ST(0));
9089 0 len = av_len(tempav);
9090 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9091 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9092 0 tv = av_fetch(tempav, i, 0);
9093 0 arg1[i] = (int) SvNV(*tv);
9094 }
9095 }
9096 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9097 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9098 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_min" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_min" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9099 }
9100 0 arg2 = (size_t)(val2);
9101 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9102 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9103 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_min" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_min" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9104 }
9105 0 arg3 = (size_t)(val3);
9106 0 result = (int)gsl_stats_int_min((int const (*))arg1,arg2,arg3);
9107 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
9108 {
9109 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9110 }
9111
9112
9113 0 XSRETURN(argvi);
9114 0 fail:
9115 {
9116 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9117 }
9118
9119
9120 0 SWIG_croak_null();
9121 }
9122 }
9123  
9124  
9125 0 XS(_wrap_gsl_stats_int_minmax) {
9126 {
9127 0 int *arg1 = (int *) 0 ;
9128 0 int *arg2 = (int *) 0 ;
9129 0 int *arg3 = (int *) (int *)0 ;
9130 size_t arg4 ;
9131 size_t arg5 ;
9132 0 void *argp1 = 0 ;
9133 0 int res1 = 0 ;
9134 0 void *argp2 = 0 ;
9135 0 int res2 = 0 ;
9136 size_t val4 ;
9137 0 int ecode4 = 0 ;
9138 size_t val5 ;
9139 0 int ecode5 = 0 ;
9140 0 int argvi = 0;
9141 0 dXSARGS;
9142
9143 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
9144 0 SWIG_croak("Usage: gsl_stats_int_minmax(min,max,data,stride,n);");
9145 }
9146 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
9147 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
9148 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_int_minmax" "', argument " "1"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_int_minmax" "', argument " "1"" of type '" "int *""'"); 0 0 0
9149 }
9150 0 arg1 = (int *)(argp1);
9151 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_int, 0 | 0 );
9152 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
9153 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stats_int_minmax" "', argument " "2"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stats_int_minmax" "', argument " "2"" of type '" "int *""'"); 0 0 0
9154 }
9155 0 arg2 = (int *)(argp2);
9156 {
9157 AV *tempav;
9158 I32 len;
9159 int i;
9160 SV **tv;
9161 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
9162 0 croak("Math::GSL : $data is not a reference!");
9163 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
9164 0 croak("Math::GSL : $data is not an array ref!");
9165
9166 0 tempav = (AV*)SvRV(ST(2));
9167 0 len = av_len(tempav);
9168 0 arg3 = (int *) malloc((len+2)*sizeof(int));
9169 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9170 0 tv = av_fetch(tempav, i, 0);
9171 0 arg3[i] = (int) SvNV(*tv);
9172 }
9173 }
9174 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
9175 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
9176 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_minmax" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_minmax" "', argument " "4"" of type '" "size_t""'"); 0 0 0
9177 }
9178 0 arg4 = (size_t)(val4);
9179 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
9180 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
9181 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_minmax" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_minmax" "', argument " "5"" of type '" "size_t""'"); 0 0 0
9182 }
9183 0 arg5 = (size_t)(val5);
9184 0 gsl_stats_int_minmax(arg1,arg2,(int const (*))arg3,arg4,arg5);
9185 0 ST(argvi) = &PL_sv_undef;
9186
9187
9188 {
9189 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
9190 }
9191
9192
9193 0 XSRETURN(argvi);
9194 0 fail:
9195
9196
9197 {
9198 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
9199 }
9200
9201
9202 0 SWIG_croak_null();
9203 }
9204 }
9205  
9206  
9207 0 XS(_wrap_gsl_stats_int_max_index) {
9208 {
9209 0 int *arg1 = (int *) (int *)0 ;
9210 size_t arg2 ;
9211 size_t arg3 ;
9212 size_t val2 ;
9213 0 int ecode2 = 0 ;
9214 size_t val3 ;
9215 0 int ecode3 = 0 ;
9216 0 int argvi = 0;
9217 size_t result;
9218 0 dXSARGS;
9219
9220 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
9221 0 SWIG_croak("Usage: gsl_stats_int_max_index(data,stride,n);");
9222 }
9223 {
9224 AV *tempav;
9225 I32 len;
9226 int i;
9227 SV **tv;
9228 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9229 0 croak("Math::GSL : $data is not a reference!");
9230 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9231 0 croak("Math::GSL : $data is not an array ref!");
9232
9233 0 tempav = (AV*)SvRV(ST(0));
9234 0 len = av_len(tempav);
9235 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9236 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9237 0 tv = av_fetch(tempav, i, 0);
9238 0 arg1[i] = (int) SvNV(*tv);
9239 }
9240 }
9241 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9242 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9243 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_max_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_max_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9244 }
9245 0 arg2 = (size_t)(val2);
9246 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9247 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9248 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_max_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_max_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9249 }
9250 0 arg3 = (size_t)(val3);
9251 0 result = gsl_stats_int_max_index((int const (*))arg1,arg2,arg3);
9252 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
9253 {
9254 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9255 }
9256
9257
9258 0 XSRETURN(argvi);
9259 0 fail:
9260 {
9261 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9262 }
9263
9264
9265 0 SWIG_croak_null();
9266 }
9267 }
9268  
9269  
9270 0 XS(_wrap_gsl_stats_int_min_index) {
9271 {
9272 0 int *arg1 = (int *) (int *)0 ;
9273 size_t arg2 ;
9274 size_t arg3 ;
9275 size_t val2 ;
9276 0 int ecode2 = 0 ;
9277 size_t val3 ;
9278 0 int ecode3 = 0 ;
9279 0 int argvi = 0;
9280 size_t result;
9281 0 dXSARGS;
9282
9283 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
9284 0 SWIG_croak("Usage: gsl_stats_int_min_index(data,stride,n);");
9285 }
9286 {
9287 AV *tempav;
9288 I32 len;
9289 int i;
9290 SV **tv;
9291 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9292 0 croak("Math::GSL : $data is not a reference!");
9293 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9294 0 croak("Math::GSL : $data is not an array ref!");
9295
9296 0 tempav = (AV*)SvRV(ST(0));
9297 0 len = av_len(tempav);
9298 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9299 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9300 0 tv = av_fetch(tempav, i, 0);
9301 0 arg1[i] = (int) SvNV(*tv);
9302 }
9303 }
9304 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9305 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9306 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_min_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_min_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9307 }
9308 0 arg2 = (size_t)(val2);
9309 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9310 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9311 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_min_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_min_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9312 }
9313 0 arg3 = (size_t)(val3);
9314 0 result = gsl_stats_int_min_index((int const (*))arg1,arg2,arg3);
9315 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
9316 {
9317 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9318 }
9319
9320
9321 0 XSRETURN(argvi);
9322 0 fail:
9323 {
9324 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9325 }
9326
9327
9328 0 SWIG_croak_null();
9329 }
9330 }
9331  
9332  
9333 0 XS(_wrap_gsl_stats_int_minmax_index) {
9334 {
9335 0 size_t *arg1 = (size_t *) 0 ;
9336 0 size_t *arg2 = (size_t *) 0 ;
9337 0 int *arg3 = (int *) (int *)0 ;
9338 size_t arg4 ;
9339 size_t arg5 ;
9340 size_t temp1 ;
9341 0 int res1 = SWIG_TMPOBJ ;
9342 size_t temp2 ;
9343 0 int res2 = SWIG_TMPOBJ ;
9344 size_t val4 ;
9345 0 int ecode4 = 0 ;
9346 size_t val5 ;
9347 0 int ecode5 = 0 ;
9348 0 int argvi = 0;
9349 0 dXSARGS;
9350
9351 0 arg1 = &temp1;
9352 0 arg2 = &temp2;
9353 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
9354 0 SWIG_croak("Usage: gsl_stats_int_minmax_index(data,stride,n);");
9355 }
9356 {
9357 AV *tempav;
9358 I32 len;
9359 int i;
9360 SV **tv;
9361 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9362 0 croak("Math::GSL : $data is not a reference!");
9363 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9364 0 croak("Math::GSL : $data is not an array ref!");
9365
9366 0 tempav = (AV*)SvRV(ST(0));
9367 0 len = av_len(tempav);
9368 0 arg3 = (int *) malloc((len+2)*sizeof(int));
9369 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9370 0 tv = av_fetch(tempav, i, 0);
9371 0 arg3[i] = (int) SvNV(*tv);
9372 }
9373 }
9374 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val4);
9375 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
9376 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_minmax_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_minmax_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
9377 }
9378 0 arg4 = (size_t)(val4);
9379 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val5);
9380 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
9381 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_minmax_index" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_int_minmax_index" "', argument " "5"" of type '" "size_t""'"); 0 0 0
9382 }
9383 0 arg5 = (size_t)(val5);
9384 0 gsl_stats_int_minmax_index(arg1,arg2,(int const (*))arg3,arg4,arg5);
9385 0 ST(argvi) = &PL_sv_undef;
9386 0 ▶ if (SWIG_IsTmpObj(res1)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res1)) { 0 0 0
if (SWIG_IsTmpObj(res1)) { 0 0 0
9387 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
9388 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
9389 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((*arg1)); argvi++ /*@SWIG@*/;
9390 } else {
9391 0 ▶ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
9392 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
9393 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
9394 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_size_t, new_flags); argvi++ /*@SWIG@*/;
9395 }
9396 0 ▶ if (SWIG_IsTmpObj(res2)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res2)) { 0 0 0
if (SWIG_IsTmpObj(res2)) { 0 0 0
9397 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
9398 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
9399 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ /*@SWIG@*/;
9400 } else {
9401 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
9402 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
9403 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
9404 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_size_t, new_flags); argvi++ /*@SWIG@*/;
9405 }
9406
9407
9408 {
9409 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
9410 }
9411
9412
9413 0 XSRETURN(argvi);
9414 0 fail:
9415
9416
9417 {
9418 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
9419 }
9420
9421
9422 0 SWIG_croak_null();
9423 }
9424 }
9425  
9426  
9427 0 XS(_wrap_gsl_stats_int_select) {
9428 {
9429 0 int *arg1 = (int *) (int *)0 ;
9430 size_t arg2 ;
9431 size_t arg3 ;
9432 size_t arg4 ;
9433 0 void *argp1 = 0 ;
9434 0 int res1 = 0 ;
9435 size_t val2 ;
9436 0 int ecode2 = 0 ;
9437 size_t val3 ;
9438 0 int ecode3 = 0 ;
9439 size_t val4 ;
9440 0 int ecode4 = 0 ;
9441 0 int argvi = 0;
9442 int result;
9443 0 dXSARGS;
9444
9445 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
9446 0 SWIG_croak("Usage: gsl_stats_int_select(data,stride,n,k);");
9447 }
9448 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
9449 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
9450 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_int_select" "', argument " "1"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_int_select" "', argument " "1"" of type '" "int []""'"); 0 0 0
9451 }
9452 0 arg1 = (int *)(argp1);
9453 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9454 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9455 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_select" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_select" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9456 }
9457 0 arg2 = (size_t)(val2);
9458 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9459 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9460 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_select" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_select" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9461 }
9462 0 arg3 = (size_t)(val3);
9463 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
9464 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
9465 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_select" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_select" "', argument " "4"" of type '" "size_t""'"); 0 0 0
9466 }
9467 0 arg4 = (size_t)(val4);
9468 0 result = (int)gsl_stats_int_select(arg1,arg2,arg3,arg4);
9469 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
9470
9471
9472
9473
9474 0 XSRETURN(argvi);
9475 0 fail:
9476
9477
9478
9479
9480 0 SWIG_croak_null();
9481 }
9482 }
9483  
9484  
9485 0 XS(_wrap_gsl_stats_int_median_from_sorted_data) {
9486 {
9487 0 int *arg1 = (int *) (int *)0 ;
9488 size_t arg2 ;
9489 size_t arg3 ;
9490 size_t val2 ;
9491 0 int ecode2 = 0 ;
9492 size_t val3 ;
9493 0 int ecode3 = 0 ;
9494 0 int argvi = 0;
9495 double result;
9496 0 dXSARGS;
9497
9498 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
9499 0 SWIG_croak("Usage: gsl_stats_int_median_from_sorted_data(sorted_data,stride,n);");
9500 }
9501 {
9502 AV *tempav;
9503 I32 len;
9504 int i;
9505 SV **tv;
9506 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9507 0 croak("Math::GSL : $sorted_data is not a reference!");
9508 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9509 0 croak("Math::GSL : $sorted_data is not an array ref!");
9510
9511 0 tempav = (AV*)SvRV(ST(0));
9512 0 len = av_len(tempav);
9513 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9514 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9515 0 tv = av_fetch(tempav, i, 0);
9516 0 arg1[i] = (int) SvNV(*tv);
9517 }
9518 }
9519 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9520 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9521 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_median_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_median_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9522 }
9523 0 arg2 = (size_t)(val2);
9524 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9525 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9526 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_median_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_median_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9527 }
9528 0 arg3 = (size_t)(val3);
9529 0 result = (double)gsl_stats_int_median_from_sorted_data((int const (*))arg1,arg2,arg3);
9530 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
9531 {
9532 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9533 }
9534
9535
9536 0 XSRETURN(argvi);
9537 0 fail:
9538 {
9539 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9540 }
9541
9542
9543 0 SWIG_croak_null();
9544 }
9545 }
9546  
9547  
9548 0 XS(_wrap_gsl_stats_int_median) {
9549 {
9550 0 int *arg1 = (int *) (int *)0 ;
9551 size_t arg2 ;
9552 size_t arg3 ;
9553 0 void *argp1 = 0 ;
9554 0 int res1 = 0 ;
9555 size_t val2 ;
9556 0 int ecode2 = 0 ;
9557 size_t val3 ;
9558 0 int ecode3 = 0 ;
9559 0 int argvi = 0;
9560 double result;
9561 0 dXSARGS;
9562
9563 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
9564 0 SWIG_croak("Usage: gsl_stats_int_median(sorted_data,stride,n);");
9565 }
9566 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
9567 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
9568 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_int_median" "', argument " "1"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_int_median" "', argument " "1"" of type '" "int []""'"); 0 0 0
9569 }
9570 0 arg1 = (int *)(argp1);
9571 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9572 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9573 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_median" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_median" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9574 }
9575 0 arg2 = (size_t)(val2);
9576 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9577 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9578 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_median" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_median" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9579 }
9580 0 arg3 = (size_t)(val3);
9581 0 result = (double)gsl_stats_int_median(arg1,arg2,arg3);
9582 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
9583
9584
9585
9586 0 XSRETURN(argvi);
9587 0 fail:
9588
9589
9590
9591 0 SWIG_croak_null();
9592 }
9593 }
9594  
9595  
9596 0 XS(_wrap_gsl_stats_int_quantile_from_sorted_data) {
9597 {
9598 0 int *arg1 = (int *) (int *)0 ;
9599 size_t arg2 ;
9600 size_t arg3 ;
9601 double arg4 ;
9602 size_t val2 ;
9603 0 int ecode2 = 0 ;
9604 size_t val3 ;
9605 0 int ecode3 = 0 ;
9606 double val4 ;
9607 0 int ecode4 = 0 ;
9608 0 int argvi = 0;
9609 double result;
9610 0 dXSARGS;
9611
9612 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
9613 0 SWIG_croak("Usage: gsl_stats_int_quantile_from_sorted_data(sorted_data,stride,n,f);");
9614 }
9615 {
9616 AV *tempav;
9617 I32 len;
9618 int i;
9619 SV **tv;
9620 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9621 0 croak("Math::GSL : $sorted_data is not a reference!");
9622 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9623 0 croak("Math::GSL : $sorted_data is not an array ref!");
9624
9625 0 tempav = (AV*)SvRV(ST(0));
9626 0 len = av_len(tempav);
9627 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9628 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9629 0 tv = av_fetch(tempav, i, 0);
9630 0 arg1[i] = (int) SvNV(*tv);
9631 }
9632 }
9633 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9634 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9635 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_quantile_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_quantile_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9636 }
9637 0 arg2 = (size_t)(val2);
9638 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9639 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9640 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_quantile_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_quantile_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9641 }
9642 0 arg3 = (size_t)(val3);
9643 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
9644 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
9645 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_quantile_from_sorted_data" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_quantile_from_sorted_data" "', argument " "4"" of type '" "double""'"); 0 0 0
9646 }
9647 0 arg4 = (double)(val4);
9648 0 result = (double)gsl_stats_int_quantile_from_sorted_data((int const (*))arg1,arg2,arg3,arg4);
9649 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
9650 {
9651 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9652 }
9653
9654
9655
9656 0 XSRETURN(argvi);
9657 0 fail:
9658 {
9659 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9660 }
9661
9662
9663
9664 0 SWIG_croak_null();
9665 }
9666 }
9667  
9668  
9669 0 XS(_wrap_gsl_stats_int_trmean_from_sorted_data) {
9670 {
9671 double arg1 ;
9672 0 int *arg2 = (int *) (int *)0 ;
9673 size_t arg3 ;
9674 size_t arg4 ;
9675 double val1 ;
9676 0 int ecode1 = 0 ;
9677 size_t val3 ;
9678 0 int ecode3 = 0 ;
9679 size_t val4 ;
9680 0 int ecode4 = 0 ;
9681 0 int argvi = 0;
9682 double result;
9683 0 dXSARGS;
9684
9685 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
9686 0 SWIG_croak("Usage: gsl_stats_int_trmean_from_sorted_data(trim,sorted_data,stride,n);");
9687 }
9688 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
9689 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
9690 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_stats_int_trmean_from_sorted_data" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_stats_int_trmean_from_sorted_data" "', argument " "1"" of type '" "double""'"); 0 0 0
9691 }
9692 0 arg1 = (double)(val1);
9693 {
9694 AV *tempav;
9695 I32 len;
9696 int i;
9697 SV **tv;
9698 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
9699 0 croak("Math::GSL : $sorted_data is not a reference!");
9700 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
9701 0 croak("Math::GSL : $sorted_data is not an array ref!");
9702
9703 0 tempav = (AV*)SvRV(ST(1));
9704 0 len = av_len(tempav);
9705 0 arg2 = (int *) malloc((len+2)*sizeof(int));
9706 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9707 0 tv = av_fetch(tempav, i, 0);
9708 0 arg2[i] = (int) SvNV(*tv);
9709 }
9710 }
9711 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9712 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9713 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_trmean_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_trmean_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9714 }
9715 0 arg3 = (size_t)(val3);
9716 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
9717 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
9718 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_trmean_from_sorted_data" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_int_trmean_from_sorted_data" "', argument " "4"" of type '" "size_t""'"); 0 0 0
9719 }
9720 0 arg4 = (size_t)(val4);
9721 0 result = (double)gsl_stats_int_trmean_from_sorted_data(arg1,(int const (*))arg2,arg3,arg4);
9722 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
9723
9724 {
9725 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
9726 }
9727
9728
9729 0 XSRETURN(argvi);
9730 0 fail:
9731
9732 {
9733 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
9734 }
9735
9736
9737 0 SWIG_croak_null();
9738 }
9739 }
9740  
9741  
9742 0 XS(_wrap_gsl_stats_int_gastwirth_from_sorted_data) {
9743 {
9744 0 int *arg1 = (int *) (int *)0 ;
9745 size_t arg2 ;
9746 size_t arg3 ;
9747 size_t val2 ;
9748 0 int ecode2 = 0 ;
9749 size_t val3 ;
9750 0 int ecode3 = 0 ;
9751 0 int argvi = 0;
9752 double result;
9753 0 dXSARGS;
9754
9755 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
9756 0 SWIG_croak("Usage: gsl_stats_int_gastwirth_from_sorted_data(sorted_data,stride,n);");
9757 }
9758 {
9759 AV *tempav;
9760 I32 len;
9761 int i;
9762 SV **tv;
9763 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9764 0 croak("Math::GSL : $sorted_data is not a reference!");
9765 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9766 0 croak("Math::GSL : $sorted_data is not an array ref!");
9767
9768 0 tempav = (AV*)SvRV(ST(0));
9769 0 len = av_len(tempav);
9770 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9771 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9772 0 tv = av_fetch(tempav, i, 0);
9773 0 arg1[i] = (int) SvNV(*tv);
9774 }
9775 }
9776 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9777 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9778 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_gastwirth_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_gastwirth_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9779 }
9780 0 arg2 = (size_t)(val2);
9781 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9782 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9783 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_gastwirth_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_gastwirth_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9784 }
9785 0 arg3 = (size_t)(val3);
9786 0 result = (double)gsl_stats_int_gastwirth_from_sorted_data((int const (*))arg1,arg2,arg3);
9787 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
9788 {
9789 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9790 }
9791
9792
9793 0 XSRETURN(argvi);
9794 0 fail:
9795 {
9796 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9797 }
9798
9799
9800 0 SWIG_croak_null();
9801 }
9802 }
9803  
9804  
9805 0 XS(_wrap_gsl_stats_int_mad0) {
9806 {
9807 0 int *arg1 = (int *) (int *)0 ;
9808 size_t arg2 ;
9809 size_t arg3 ;
9810 0 double *arg4 = (double *) (double *)0 ;
9811 size_t val2 ;
9812 0 int ecode2 = 0 ;
9813 size_t val3 ;
9814 0 int ecode3 = 0 ;
9815 0 void *argp4 = 0 ;
9816 0 int res4 = 0 ;
9817 0 int argvi = 0;
9818 double result;
9819 0 dXSARGS;
9820
9821 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
9822 0 SWIG_croak("Usage: gsl_stats_int_mad0(data,stride,n,work);");
9823 }
9824 {
9825 AV *tempav;
9826 I32 len;
9827 int i;
9828 SV **tv;
9829 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9830 0 croak("Math::GSL : $data is not a reference!");
9831 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9832 0 croak("Math::GSL : $data is not an array ref!");
9833
9834 0 tempav = (AV*)SvRV(ST(0));
9835 0 len = av_len(tempav);
9836 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9837 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9838 0 tv = av_fetch(tempav, i, 0);
9839 0 arg1[i] = (int) SvNV(*tv);
9840 }
9841 }
9842 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9843 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9844 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_mad0" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_mad0" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9845 }
9846 0 arg2 = (size_t)(val2);
9847 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9848 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9849 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_mad0" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_mad0" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9850 }
9851 0 arg3 = (size_t)(val3);
9852 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
9853 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
9854 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_mad0" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_mad0" "', argument " "4"" of type '" "double []""'"); 0 0 0
9855 }
9856 0 arg4 = (double *)(argp4);
9857 0 result = (double)gsl_stats_int_mad0((int const (*))arg1,arg2,arg3,arg4);
9858 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
9859 {
9860 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9861 }
9862
9863
9864
9865 0 XSRETURN(argvi);
9866 0 fail:
9867 {
9868 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9869 }
9870
9871
9872
9873 0 SWIG_croak_null();
9874 }
9875 }
9876  
9877  
9878 0 XS(_wrap_gsl_stats_int_mad) {
9879 {
9880 0 int *arg1 = (int *) (int *)0 ;
9881 size_t arg2 ;
9882 size_t arg3 ;
9883 0 double *arg4 = (double *) (double *)0 ;
9884 size_t val2 ;
9885 0 int ecode2 = 0 ;
9886 size_t val3 ;
9887 0 int ecode3 = 0 ;
9888 0 void *argp4 = 0 ;
9889 0 int res4 = 0 ;
9890 0 int argvi = 0;
9891 double result;
9892 0 dXSARGS;
9893
9894 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
9895 0 SWIG_croak("Usage: gsl_stats_int_mad(data,stride,n,work);");
9896 }
9897 {
9898 AV *tempav;
9899 I32 len;
9900 int i;
9901 SV **tv;
9902 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9903 0 croak("Math::GSL : $data is not a reference!");
9904 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9905 0 croak("Math::GSL : $data is not an array ref!");
9906
9907 0 tempav = (AV*)SvRV(ST(0));
9908 0 len = av_len(tempav);
9909 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9910 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9911 0 tv = av_fetch(tempav, i, 0);
9912 0 arg1[i] = (int) SvNV(*tv);
9913 }
9914 }
9915 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9916 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9917 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_mad" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_mad" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9918 }
9919 0 arg2 = (size_t)(val2);
9920 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9921 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9922 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_mad" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_mad" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9923 }
9924 0 arg3 = (size_t)(val3);
9925 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
9926 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
9927 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_mad" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_mad" "', argument " "4"" of type '" "double []""'"); 0 0 0
9928 }
9929 0 arg4 = (double *)(argp4);
9930 0 result = (double)gsl_stats_int_mad((int const (*))arg1,arg2,arg3,arg4);
9931 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
9932 {
9933 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9934 }
9935
9936
9937
9938 0 XSRETURN(argvi);
9939 0 fail:
9940 {
9941 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
9942 }
9943
9944
9945
9946 0 SWIG_croak_null();
9947 }
9948 }
9949  
9950  
9951 0 XS(_wrap_gsl_stats_int_Sn0_from_sorted_data) {
9952 {
9953 0 int *arg1 = (int *) (int *)0 ;
9954 size_t arg2 ;
9955 size_t arg3 ;
9956 0 int *arg4 = (int *) (int *)0 ;
9957 size_t val2 ;
9958 0 int ecode2 = 0 ;
9959 size_t val3 ;
9960 0 int ecode3 = 0 ;
9961 0 void *argp4 = 0 ;
9962 0 int res4 = 0 ;
9963 0 int argvi = 0;
9964 int result;
9965 0 dXSARGS;
9966
9967 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
9968 0 SWIG_croak("Usage: gsl_stats_int_Sn0_from_sorted_data(sorted_data,stride,n,work);");
9969 }
9970 {
9971 AV *tempav;
9972 I32 len;
9973 int i;
9974 SV **tv;
9975 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
9976 0 croak("Math::GSL : $sorted_data is not a reference!");
9977 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
9978 0 croak("Math::GSL : $sorted_data is not an array ref!");
9979
9980 0 tempav = (AV*)SvRV(ST(0));
9981 0 len = av_len(tempav);
9982 0 arg1 = (int *) malloc((len+2)*sizeof(int));
9983 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
9984 0 tv = av_fetch(tempav, i, 0);
9985 0 arg1[i] = (int) SvNV(*tv);
9986 }
9987 }
9988 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
9989 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
9990 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Sn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Sn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
9991 }
9992 0 arg2 = (size_t)(val2);
9993 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
9994 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
9995 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Sn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Sn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
9996 }
9997 0 arg3 = (size_t)(val3);
9998 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_int, 0 | 0 );
9999 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
10000 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Sn0_from_sorted_data" "', argument " "4"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Sn0_from_sorted_data" "', argument " "4"" of type '" "int []""'"); 0 0 0
10001 }
10002 0 arg4 = (int *)(argp4);
10003 0 result = (int)gsl_stats_int_Sn0_from_sorted_data((int const (*))arg1,arg2,arg3,arg4);
10004 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
10005 {
10006 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10007 }
10008
10009
10010
10011 0 XSRETURN(argvi);
10012 0 fail:
10013 {
10014 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10015 }
10016
10017
10018
10019 0 SWIG_croak_null();
10020 }
10021 }
10022  
10023  
10024 0 XS(_wrap_gsl_stats_int_Sn_from_sorted_data) {
10025 {
10026 0 int *arg1 = (int *) (int *)0 ;
10027 size_t arg2 ;
10028 size_t arg3 ;
10029 0 int *arg4 = (int *) (int *)0 ;
10030 size_t val2 ;
10031 0 int ecode2 = 0 ;
10032 size_t val3 ;
10033 0 int ecode3 = 0 ;
10034 0 void *argp4 = 0 ;
10035 0 int res4 = 0 ;
10036 0 int argvi = 0;
10037 double result;
10038 0 dXSARGS;
10039
10040 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
10041 0 SWIG_croak("Usage: gsl_stats_int_Sn_from_sorted_data(sorted_data,stride,n,work);");
10042 }
10043 {
10044 AV *tempav;
10045 I32 len;
10046 int i;
10047 SV **tv;
10048 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
10049 0 croak("Math::GSL : $sorted_data is not a reference!");
10050 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
10051 0 croak("Math::GSL : $sorted_data is not an array ref!");
10052
10053 0 tempav = (AV*)SvRV(ST(0));
10054 0 len = av_len(tempav);
10055 0 arg1 = (int *) malloc((len+2)*sizeof(int));
10056 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
10057 0 tv = av_fetch(tempav, i, 0);
10058 0 arg1[i] = (int) SvNV(*tv);
10059 }
10060 }
10061 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10062 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10063 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Sn_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Sn_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10064 }
10065 0 arg2 = (size_t)(val2);
10066 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10067 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10068 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Sn_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Sn_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10069 }
10070 0 arg3 = (size_t)(val3);
10071 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_int, 0 | 0 );
10072 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
10073 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Sn_from_sorted_data" "', argument " "4"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Sn_from_sorted_data" "', argument " "4"" of type '" "int []""'"); 0 0 0
10074 }
10075 0 arg4 = (int *)(argp4);
10076 0 result = (double)gsl_stats_int_Sn_from_sorted_data((int const (*))arg1,arg2,arg3,arg4);
10077 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10078 {
10079 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10080 }
10081
10082
10083
10084 0 XSRETURN(argvi);
10085 0 fail:
10086 {
10087 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10088 }
10089
10090
10091
10092 0 SWIG_croak_null();
10093 }
10094 }
10095  
10096  
10097 0 XS(_wrap_gsl_stats_int_Qn0_from_sorted_data) {
10098 {
10099 0 int *arg1 = (int *) (int *)0 ;
10100 size_t arg2 ;
10101 size_t arg3 ;
10102 0 int *arg4 = (int *) (int *)0 ;
10103 0 int *arg5 = (int *) (int *)0 ;
10104 size_t val2 ;
10105 0 int ecode2 = 0 ;
10106 size_t val3 ;
10107 0 int ecode3 = 0 ;
10108 0 void *argp4 = 0 ;
10109 0 int res4 = 0 ;
10110 0 void *argp5 = 0 ;
10111 0 int res5 = 0 ;
10112 0 int argvi = 0;
10113 int result;
10114 0 dXSARGS;
10115
10116 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
10117 0 SWIG_croak("Usage: gsl_stats_int_Qn0_from_sorted_data(sorted_data,stride,n,work,work_int);");
10118 }
10119 {
10120 AV *tempav;
10121 I32 len;
10122 int i;
10123 SV **tv;
10124 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
10125 0 croak("Math::GSL : $sorted_data is not a reference!");
10126 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
10127 0 croak("Math::GSL : $sorted_data is not an array ref!");
10128
10129 0 tempav = (AV*)SvRV(ST(0));
10130 0 len = av_len(tempav);
10131 0 arg1 = (int *) malloc((len+2)*sizeof(int));
10132 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
10133 0 tv = av_fetch(tempav, i, 0);
10134 0 arg1[i] = (int) SvNV(*tv);
10135 }
10136 }
10137 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10138 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10139 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10140 }
10141 0 arg2 = (size_t)(val2);
10142 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10143 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10144 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10145 }
10146 0 arg3 = (size_t)(val3);
10147 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_int, 0 | 0 );
10148 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
10149 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "4"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "4"" of type '" "int []""'"); 0 0 0
10150 }
10151 0 arg4 = (int *)(argp4);
10152 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_int, 0 | 0 );
10153 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
10154 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "5"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_int_Qn0_from_sorted_data" "', argument " "5"" of type '" "int []""'"); 0 0 0
10155 }
10156 0 arg5 = (int *)(argp5);
10157 0 result = (int)gsl_stats_int_Qn0_from_sorted_data((int const (*))arg1,arg2,arg3,arg4,arg5);
10158 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
10159 {
10160 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10161 }
10162
10163
10164
10165
10166 0 XSRETURN(argvi);
10167 0 fail:
10168 {
10169 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10170 }
10171
10172
10173
10174
10175 0 SWIG_croak_null();
10176 }
10177 }
10178  
10179  
10180 0 XS(_wrap_gsl_stats_int_Qn_from_sorted_data) {
10181 {
10182 0 int *arg1 = (int *) (int *)0 ;
10183 size_t arg2 ;
10184 size_t arg3 ;
10185 0 int *arg4 = (int *) (int *)0 ;
10186 0 int *arg5 = (int *) (int *)0 ;
10187 size_t val2 ;
10188 0 int ecode2 = 0 ;
10189 size_t val3 ;
10190 0 int ecode3 = 0 ;
10191 0 void *argp4 = 0 ;
10192 0 int res4 = 0 ;
10193 0 void *argp5 = 0 ;
10194 0 int res5 = 0 ;
10195 0 int argvi = 0;
10196 double result;
10197 0 dXSARGS;
10198
10199 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
10200 0 SWIG_croak("Usage: gsl_stats_int_Qn_from_sorted_data(sorted_data,stride,n,work,work_int);");
10201 }
10202 {
10203 AV *tempav;
10204 I32 len;
10205 int i;
10206 SV **tv;
10207 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
10208 0 croak("Math::GSL : $sorted_data is not a reference!");
10209 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
10210 0 croak("Math::GSL : $sorted_data is not an array ref!");
10211
10212 0 tempav = (AV*)SvRV(ST(0));
10213 0 len = av_len(tempav);
10214 0 arg1 = (int *) malloc((len+2)*sizeof(int));
10215 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
10216 0 tv = av_fetch(tempav, i, 0);
10217 0 arg1[i] = (int) SvNV(*tv);
10218 }
10219 }
10220 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10221 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10222 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10223 }
10224 0 arg2 = (size_t)(val2);
10225 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10226 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10227 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10228 }
10229 0 arg3 = (size_t)(val3);
10230 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_int, 0 | 0 );
10231 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
10232 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "4"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "4"" of type '" "int []""'"); 0 0 0
10233 }
10234 0 arg4 = (int *)(argp4);
10235 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_int, 0 | 0 );
10236 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
10237 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "5"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_int_Qn_from_sorted_data" "', argument " "5"" of type '" "int []""'"); 0 0 0
10238 }
10239 0 arg5 = (int *)(argp5);
10240 0 result = (double)gsl_stats_int_Qn_from_sorted_data((int const (*))arg1,arg2,arg3,arg4,arg5);
10241 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10242 {
10243 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10244 }
10245
10246
10247
10248
10249 0 XSRETURN(argvi);
10250 0 fail:
10251 {
10252 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
10253 }
10254
10255
10256
10257
10258 0 SWIG_croak_null();
10259 }
10260 }
10261  
10262  
10263 0 XS(_wrap_gsl_stats_char_mean) {
10264 {
10265 0 char *arg1 = (char *) (char *)0 ;
10266 size_t arg2 ;
10267 size_t arg3 ;
10268 int res1 ;
10269 0 char *buf1 = 0 ;
10270 0 int alloc1 = 0 ;
10271 size_t val2 ;
10272 0 int ecode2 = 0 ;
10273 size_t val3 ;
10274 0 int ecode3 = 0 ;
10275 0 int argvi = 0;
10276 double result;
10277 0 dXSARGS;
10278
10279 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
10280 0 SWIG_croak("Usage: gsl_stats_char_mean(data,stride,n);");
10281 }
10282 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10283 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10284 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_mean" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_mean" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10285 }
10286 0 arg1 = (char *)(buf1);
10287 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10288 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10289 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10290 }
10291 0 arg2 = (size_t)(val2);
10292 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10293 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10294 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10295 }
10296 0 arg3 = (size_t)(val3);
10297 0 result = (double)gsl_stats_char_mean((char const (*))arg1,arg2,arg3);
10298 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10299 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10300
10301
10302 0 XSRETURN(argvi);
10303 0 fail:
10304 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10305
10306
10307 0 SWIG_croak_null();
10308 }
10309 }
10310  
10311  
10312 0 XS(_wrap_gsl_stats_char_variance) {
10313 {
10314 0 char *arg1 = (char *) (char *)0 ;
10315 size_t arg2 ;
10316 size_t arg3 ;
10317 int res1 ;
10318 0 char *buf1 = 0 ;
10319 0 int alloc1 = 0 ;
10320 size_t val2 ;
10321 0 int ecode2 = 0 ;
10322 size_t val3 ;
10323 0 int ecode3 = 0 ;
10324 0 int argvi = 0;
10325 double result;
10326 0 dXSARGS;
10327
10328 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
10329 0 SWIG_croak("Usage: gsl_stats_char_variance(data,stride,n);");
10330 }
10331 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10332 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10333 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_variance" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_variance" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10334 }
10335 0 arg1 = (char *)(buf1);
10336 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10337 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10338 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_variance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_variance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10339 }
10340 0 arg2 = (size_t)(val2);
10341 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10342 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10343 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_variance" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_variance" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10344 }
10345 0 arg3 = (size_t)(val3);
10346 0 result = (double)gsl_stats_char_variance((char const (*))arg1,arg2,arg3);
10347 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10348 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10349
10350
10351 0 XSRETURN(argvi);
10352 0 fail:
10353 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10354
10355
10356 0 SWIG_croak_null();
10357 }
10358 }
10359  
10360  
10361 0 XS(_wrap_gsl_stats_char_sd) {
10362 {
10363 0 char *arg1 = (char *) (char *)0 ;
10364 size_t arg2 ;
10365 size_t arg3 ;
10366 int res1 ;
10367 0 char *buf1 = 0 ;
10368 0 int alloc1 = 0 ;
10369 size_t val2 ;
10370 0 int ecode2 = 0 ;
10371 size_t val3 ;
10372 0 int ecode3 = 0 ;
10373 0 int argvi = 0;
10374 double result;
10375 0 dXSARGS;
10376
10377 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
10378 0 SWIG_croak("Usage: gsl_stats_char_sd(data,stride,n);");
10379 }
10380 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10381 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10382 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_sd" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_sd" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10383 }
10384 0 arg1 = (char *)(buf1);
10385 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10386 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10387 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10388 }
10389 0 arg2 = (size_t)(val2);
10390 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10391 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10392 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10393 }
10394 0 arg3 = (size_t)(val3);
10395 0 result = (double)gsl_stats_char_sd((char const (*))arg1,arg2,arg3);
10396 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10397 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10398
10399
10400 0 XSRETURN(argvi);
10401 0 fail:
10402 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10403
10404
10405 0 SWIG_croak_null();
10406 }
10407 }
10408  
10409  
10410 0 XS(_wrap_gsl_stats_char_variance_with_fixed_mean) {
10411 {
10412 0 char *arg1 = (char *) (char *)0 ;
10413 size_t arg2 ;
10414 size_t arg3 ;
10415 double arg4 ;
10416 int res1 ;
10417 0 char *buf1 = 0 ;
10418 0 int alloc1 = 0 ;
10419 size_t val2 ;
10420 0 int ecode2 = 0 ;
10421 size_t val3 ;
10422 0 int ecode3 = 0 ;
10423 double val4 ;
10424 0 int ecode4 = 0 ;
10425 0 int argvi = 0;
10426 double result;
10427 0 dXSARGS;
10428
10429 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
10430 0 SWIG_croak("Usage: gsl_stats_char_variance_with_fixed_mean(data,stride,n,mean);");
10431 }
10432 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10433 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10434 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10435 }
10436 0 arg1 = (char *)(buf1);
10437 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10438 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10439 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10440 }
10441 0 arg2 = (size_t)(val2);
10442 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10443 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10444 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10445 }
10446 0 arg3 = (size_t)(val3);
10447 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
10448 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
10449 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_variance_with_fixed_mean" "', argument " "4"" of type '" "double""'"); 0 0 0
10450 }
10451 0 arg4 = (double)(val4);
10452 0 result = (double)gsl_stats_char_variance_with_fixed_mean((char const (*))arg1,arg2,arg3,arg4);
10453 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10454 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10455
10456
10457
10458 0 XSRETURN(argvi);
10459 0 fail:
10460 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10461
10462
10463
10464 0 SWIG_croak_null();
10465 }
10466 }
10467  
10468  
10469 0 XS(_wrap_gsl_stats_char_sd_with_fixed_mean) {
10470 {
10471 0 char *arg1 = (char *) (char *)0 ;
10472 size_t arg2 ;
10473 size_t arg3 ;
10474 double arg4 ;
10475 int res1 ;
10476 0 char *buf1 = 0 ;
10477 0 int alloc1 = 0 ;
10478 size_t val2 ;
10479 0 int ecode2 = 0 ;
10480 size_t val3 ;
10481 0 int ecode3 = 0 ;
10482 double val4 ;
10483 0 int ecode4 = 0 ;
10484 0 int argvi = 0;
10485 double result;
10486 0 dXSARGS;
10487
10488 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
10489 0 SWIG_croak("Usage: gsl_stats_char_sd_with_fixed_mean(data,stride,n,mean);");
10490 }
10491 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10492 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10493 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10494 }
10495 0 arg1 = (char *)(buf1);
10496 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10497 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10498 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10499 }
10500 0 arg2 = (size_t)(val2);
10501 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10502 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10503 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10504 }
10505 0 arg3 = (size_t)(val3);
10506 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
10507 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
10508 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_sd_with_fixed_mean" "', argument " "4"" of type '" "double""'"); 0 0 0
10509 }
10510 0 arg4 = (double)(val4);
10511 0 result = (double)gsl_stats_char_sd_with_fixed_mean((char const (*))arg1,arg2,arg3,arg4);
10512 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10513 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10514
10515
10516
10517 0 XSRETURN(argvi);
10518 0 fail:
10519 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10520
10521
10522
10523 0 SWIG_croak_null();
10524 }
10525 }
10526  
10527  
10528 0 XS(_wrap_gsl_stats_char_tss) {
10529 {
10530 0 char *arg1 = (char *) (char *)0 ;
10531 size_t arg2 ;
10532 size_t arg3 ;
10533 int res1 ;
10534 0 char *buf1 = 0 ;
10535 0 int alloc1 = 0 ;
10536 size_t val2 ;
10537 0 int ecode2 = 0 ;
10538 size_t val3 ;
10539 0 int ecode3 = 0 ;
10540 0 int argvi = 0;
10541 double result;
10542 0 dXSARGS;
10543
10544 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
10545 0 SWIG_croak("Usage: gsl_stats_char_tss(data,stride,n);");
10546 }
10547 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10548 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10549 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_tss" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_tss" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10550 }
10551 0 arg1 = (char *)(buf1);
10552 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10553 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10554 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_tss" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_tss" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10555 }
10556 0 arg2 = (size_t)(val2);
10557 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10558 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10559 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_tss" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_tss" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10560 }
10561 0 arg3 = (size_t)(val3);
10562 0 result = (double)gsl_stats_char_tss((char const (*))arg1,arg2,arg3);
10563 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10564 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10565
10566
10567 0 XSRETURN(argvi);
10568 0 fail:
10569 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10570
10571
10572 0 SWIG_croak_null();
10573 }
10574 }
10575  
10576  
10577 0 XS(_wrap_gsl_stats_char_tss_m) {
10578 {
10579 0 char *arg1 = (char *) (char *)0 ;
10580 size_t arg2 ;
10581 size_t arg3 ;
10582 double arg4 ;
10583 int res1 ;
10584 0 char *buf1 = 0 ;
10585 0 int alloc1 = 0 ;
10586 size_t val2 ;
10587 0 int ecode2 = 0 ;
10588 size_t val3 ;
10589 0 int ecode3 = 0 ;
10590 double val4 ;
10591 0 int ecode4 = 0 ;
10592 0 int argvi = 0;
10593 double result;
10594 0 dXSARGS;
10595
10596 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
10597 0 SWIG_croak("Usage: gsl_stats_char_tss_m(data,stride,n,mean);");
10598 }
10599 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10600 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10601 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_tss_m" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_tss_m" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10602 }
10603 0 arg1 = (char *)(buf1);
10604 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10605 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10606 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_tss_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_tss_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10607 }
10608 0 arg2 = (size_t)(val2);
10609 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10610 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10611 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_tss_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_tss_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10612 }
10613 0 arg3 = (size_t)(val3);
10614 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
10615 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
10616 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_tss_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_tss_m" "', argument " "4"" of type '" "double""'"); 0 0 0
10617 }
10618 0 arg4 = (double)(val4);
10619 0 result = (double)gsl_stats_char_tss_m((char const (*))arg1,arg2,arg3,arg4);
10620 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10621 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10622
10623
10624
10625 0 XSRETURN(argvi);
10626 0 fail:
10627 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10628
10629
10630
10631 0 SWIG_croak_null();
10632 }
10633 }
10634  
10635  
10636 0 XS(_wrap_gsl_stats_char_absdev) {
10637 {
10638 0 char *arg1 = (char *) (char *)0 ;
10639 size_t arg2 ;
10640 size_t arg3 ;
10641 int res1 ;
10642 0 char *buf1 = 0 ;
10643 0 int alloc1 = 0 ;
10644 size_t val2 ;
10645 0 int ecode2 = 0 ;
10646 size_t val3 ;
10647 0 int ecode3 = 0 ;
10648 0 int argvi = 0;
10649 double result;
10650 0 dXSARGS;
10651
10652 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
10653 0 SWIG_croak("Usage: gsl_stats_char_absdev(data,stride,n);");
10654 }
10655 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10656 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10657 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_absdev" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_absdev" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10658 }
10659 0 arg1 = (char *)(buf1);
10660 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10661 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10662 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_absdev" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_absdev" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10663 }
10664 0 arg2 = (size_t)(val2);
10665 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10666 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10667 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_absdev" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_absdev" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10668 }
10669 0 arg3 = (size_t)(val3);
10670 0 result = (double)gsl_stats_char_absdev((char const (*))arg1,arg2,arg3);
10671 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10672 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10673
10674
10675 0 XSRETURN(argvi);
10676 0 fail:
10677 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10678
10679
10680 0 SWIG_croak_null();
10681 }
10682 }
10683  
10684  
10685 0 XS(_wrap_gsl_stats_char_skew) {
10686 {
10687 0 char *arg1 = (char *) (char *)0 ;
10688 size_t arg2 ;
10689 size_t arg3 ;
10690 int res1 ;
10691 0 char *buf1 = 0 ;
10692 0 int alloc1 = 0 ;
10693 size_t val2 ;
10694 0 int ecode2 = 0 ;
10695 size_t val3 ;
10696 0 int ecode3 = 0 ;
10697 0 int argvi = 0;
10698 double result;
10699 0 dXSARGS;
10700
10701 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
10702 0 SWIG_croak("Usage: gsl_stats_char_skew(data,stride,n);");
10703 }
10704 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10705 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10706 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_skew" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_skew" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10707 }
10708 0 arg1 = (char *)(buf1);
10709 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10710 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10711 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_skew" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_skew" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10712 }
10713 0 arg2 = (size_t)(val2);
10714 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10715 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10716 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_skew" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_skew" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10717 }
10718 0 arg3 = (size_t)(val3);
10719 0 result = (double)gsl_stats_char_skew((char const (*))arg1,arg2,arg3);
10720 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10721 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10722
10723
10724 0 XSRETURN(argvi);
10725 0 fail:
10726 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10727
10728
10729 0 SWIG_croak_null();
10730 }
10731 }
10732  
10733  
10734 0 XS(_wrap_gsl_stats_char_kurtosis) {
10735 {
10736 0 char *arg1 = (char *) (char *)0 ;
10737 size_t arg2 ;
10738 size_t arg3 ;
10739 int res1 ;
10740 0 char *buf1 = 0 ;
10741 0 int alloc1 = 0 ;
10742 size_t val2 ;
10743 0 int ecode2 = 0 ;
10744 size_t val3 ;
10745 0 int ecode3 = 0 ;
10746 0 int argvi = 0;
10747 double result;
10748 0 dXSARGS;
10749
10750 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
10751 0 SWIG_croak("Usage: gsl_stats_char_kurtosis(data,stride,n);");
10752 }
10753 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10754 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10755 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_kurtosis" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_kurtosis" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10756 }
10757 0 arg1 = (char *)(buf1);
10758 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10759 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10760 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_kurtosis" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_kurtosis" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10761 }
10762 0 arg2 = (size_t)(val2);
10763 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10764 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10765 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_kurtosis" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_kurtosis" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10766 }
10767 0 arg3 = (size_t)(val3);
10768 0 result = (double)gsl_stats_char_kurtosis((char const (*))arg1,arg2,arg3);
10769 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10770 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10771
10772
10773 0 XSRETURN(argvi);
10774 0 fail:
10775 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10776
10777
10778 0 SWIG_croak_null();
10779 }
10780 }
10781  
10782  
10783 0 XS(_wrap_gsl_stats_char_lag1_autocorrelation) {
10784 {
10785 0 char *arg1 = (char *) (char *)0 ;
10786 size_t arg2 ;
10787 size_t arg3 ;
10788 int res1 ;
10789 0 char *buf1 = 0 ;
10790 0 int alloc1 = 0 ;
10791 size_t val2 ;
10792 0 int ecode2 = 0 ;
10793 size_t val3 ;
10794 0 int ecode3 = 0 ;
10795 0 int argvi = 0;
10796 double result;
10797 0 dXSARGS;
10798
10799 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
10800 0 SWIG_croak("Usage: gsl_stats_char_lag1_autocorrelation(data,stride,n);");
10801 }
10802 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10803 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10804 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_lag1_autocorrelation" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_lag1_autocorrelation" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10805 }
10806 0 arg1 = (char *)(buf1);
10807 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10808 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10809 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_lag1_autocorrelation" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_lag1_autocorrelation" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10810 }
10811 0 arg2 = (size_t)(val2);
10812 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
10813 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
10814 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_lag1_autocorrelation" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_lag1_autocorrelation" "', argument " "3"" of type '" "size_t""'"); 0 0 0
10815 }
10816 0 arg3 = (size_t)(val3);
10817 0 result = (double)gsl_stats_char_lag1_autocorrelation((char const (*))arg1,arg2,arg3);
10818 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10819 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10820
10821
10822 0 XSRETURN(argvi);
10823 0 fail:
10824 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10825
10826
10827 0 SWIG_croak_null();
10828 }
10829 }
10830  
10831  
10832 0 XS(_wrap_gsl_stats_char_covariance) {
10833 {
10834 0 char *arg1 = (char *) (char *)0 ;
10835 size_t arg2 ;
10836 0 char *arg3 = (char *) (char *)0 ;
10837 size_t arg4 ;
10838 size_t arg5 ;
10839 int res1 ;
10840 0 char *buf1 = 0 ;
10841 0 int alloc1 = 0 ;
10842 size_t val2 ;
10843 0 int ecode2 = 0 ;
10844 int res3 ;
10845 0 char *buf3 = 0 ;
10846 0 int alloc3 = 0 ;
10847 size_t val4 ;
10848 0 int ecode4 = 0 ;
10849 size_t val5 ;
10850 0 int ecode5 = 0 ;
10851 0 int argvi = 0;
10852 double result;
10853 0 dXSARGS;
10854
10855 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
10856 0 SWIG_croak("Usage: gsl_stats_char_covariance(data1,stride1,data2,stride2,n);");
10857 }
10858 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10859 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10860 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_covariance" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_covariance" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10861 }
10862 0 arg1 = (char *)(buf1);
10863 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10864 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10865 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_covariance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_covariance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10866 }
10867 0 arg2 = (size_t)(val2);
10868 0 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
10869 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
10870 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_covariance" "', argument " "3"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_covariance" "', argument " "3"" of type '" "char const []""'"); 0 0 0
10871 }
10872 0 arg3 = (char *)(buf3);
10873 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
10874 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
10875 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_covariance" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_covariance" "', argument " "4"" of type '" "size_t""'"); 0 0 0
10876 }
10877 0 arg4 = (size_t)(val4);
10878 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
10879 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
10880 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_covariance" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_covariance" "', argument " "5"" of type '" "size_t""'"); 0 0 0
10881 }
10882 0 arg5 = (size_t)(val5);
10883 0 result = (double)gsl_stats_char_covariance((char const (*))arg1,arg2,(char const (*))arg3,arg4,arg5);
10884 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10885 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10886
10887 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
10888
10889
10890 0 XSRETURN(argvi);
10891 0 fail:
10892 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10893
10894 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
10895
10896
10897 0 SWIG_croak_null();
10898 }
10899 }
10900  
10901  
10902 0 XS(_wrap_gsl_stats_char_correlation) {
10903 {
10904 0 char *arg1 = (char *) (char *)0 ;
10905 size_t arg2 ;
10906 0 char *arg3 = (char *) (char *)0 ;
10907 size_t arg4 ;
10908 size_t arg5 ;
10909 int res1 ;
10910 0 char *buf1 = 0 ;
10911 0 int alloc1 = 0 ;
10912 size_t val2 ;
10913 0 int ecode2 = 0 ;
10914 int res3 ;
10915 0 char *buf3 = 0 ;
10916 0 int alloc3 = 0 ;
10917 size_t val4 ;
10918 0 int ecode4 = 0 ;
10919 size_t val5 ;
10920 0 int ecode5 = 0 ;
10921 0 int argvi = 0;
10922 double result;
10923 0 dXSARGS;
10924
10925 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
10926 0 SWIG_croak("Usage: gsl_stats_char_correlation(data1,stride1,data2,stride2,n);");
10927 }
10928 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
10929 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
10930 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_correlation" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_correlation" "', argument " "1"" of type '" "char const []""'"); 0 0 0
10931 }
10932 0 arg1 = (char *)(buf1);
10933 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
10934 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
10935 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_correlation" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_correlation" "', argument " "2"" of type '" "size_t""'"); 0 0 0
10936 }
10937 0 arg2 = (size_t)(val2);
10938 0 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
10939 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
10940 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_correlation" "', argument " "3"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_correlation" "', argument " "3"" of type '" "char const []""'"); 0 0 0
10941 }
10942 0 arg3 = (char *)(buf3);
10943 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
10944 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
10945 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_correlation" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_correlation" "', argument " "4"" of type '" "size_t""'"); 0 0 0
10946 }
10947 0 arg4 = (size_t)(val4);
10948 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
10949 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
10950 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_correlation" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_correlation" "', argument " "5"" of type '" "size_t""'"); 0 0 0
10951 }
10952 0 arg5 = (size_t)(val5);
10953 0 result = (double)gsl_stats_char_correlation((char const (*))arg1,arg2,(char const (*))arg3,arg4,arg5);
10954 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
10955 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10956
10957 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
10958
10959
10960 0 XSRETURN(argvi);
10961 0 fail:
10962 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
10963
10964 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
10965
10966
10967 0 SWIG_croak_null();
10968 }
10969 }
10970  
10971  
10972 0 XS(_wrap_gsl_stats_char_spearman) {
10973 {
10974 0 char *arg1 = (char *) (char *)0 ;
10975 size_t arg2 ;
10976 0 char *arg3 = (char *) (char *)0 ;
10977 size_t arg4 ;
10978 size_t arg5 ;
10979 0 double *arg6 = (double *) (double *)0 ;
10980 int res1 ;
10981 0 char *buf1 = 0 ;
10982 0 int alloc1 = 0 ;
10983 size_t val2 ;
10984 0 int ecode2 = 0 ;
10985 int res3 ;
10986 0 char *buf3 = 0 ;
10987 0 int alloc3 = 0 ;
10988 size_t val4 ;
10989 0 int ecode4 = 0 ;
10990 size_t val5 ;
10991 0 int ecode5 = 0 ;
10992 0 void *argp6 = 0 ;
10993 0 int res6 = 0 ;
10994 0 int argvi = 0;
10995 double result;
10996 0 dXSARGS;
10997
10998 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
10999 0 SWIG_croak("Usage: gsl_stats_char_spearman(data1,stride1,data2,stride2,n,work);");
11000 }
11001 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11002 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11003 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_spearman" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_spearman" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11004 }
11005 0 arg1 = (char *)(buf1);
11006 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11007 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11008 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_spearman" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_spearman" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11009 }
11010 0 arg2 = (size_t)(val2);
11011 0 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
11012 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
11013 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_spearman" "', argument " "3"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_spearman" "', argument " "3"" of type '" "char const []""'"); 0 0 0
11014 }
11015 0 arg3 = (char *)(buf3);
11016 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11017 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11018 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_spearman" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_spearman" "', argument " "4"" of type '" "size_t""'"); 0 0 0
11019 }
11020 0 arg4 = (size_t)(val4);
11021 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
11022 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11023 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_spearman" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_spearman" "', argument " "5"" of type '" "size_t""'"); 0 0 0
11024 }
11025 0 arg5 = (size_t)(val5);
11026 0 res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_double, 0 | 0 );
11027 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
11028 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_stats_char_spearman" "', argument " "6"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_stats_char_spearman" "', argument " "6"" of type '" "double []""'"); 0 0 0
11029 }
11030 0 arg6 = (double *)(argp6);
11031 0 result = (double)gsl_stats_char_spearman((char const (*))arg1,arg2,(char const (*))arg3,arg4,arg5,arg6);
11032 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11033 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11034
11035 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
11036
11037
11038
11039 0 XSRETURN(argvi);
11040 0 fail:
11041 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11042
11043 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
11044
11045
11046
11047 0 SWIG_croak_null();
11048 }
11049 }
11050  
11051  
11052 0 XS(_wrap_gsl_stats_char_variance_m) {
11053 {
11054 0 char *arg1 = (char *) (char *)0 ;
11055 size_t arg2 ;
11056 size_t arg3 ;
11057 double arg4 ;
11058 int res1 ;
11059 0 char *buf1 = 0 ;
11060 0 int alloc1 = 0 ;
11061 size_t val2 ;
11062 0 int ecode2 = 0 ;
11063 size_t val3 ;
11064 0 int ecode3 = 0 ;
11065 double val4 ;
11066 0 int ecode4 = 0 ;
11067 0 int argvi = 0;
11068 double result;
11069 0 dXSARGS;
11070
11071 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
11072 0 SWIG_croak("Usage: gsl_stats_char_variance_m(data,stride,n,mean);");
11073 }
11074 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11075 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11076 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_variance_m" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_variance_m" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11077 }
11078 0 arg1 = (char *)(buf1);
11079 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11080 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11081 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_variance_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_variance_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11082 }
11083 0 arg2 = (size_t)(val2);
11084 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11085 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11086 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_variance_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_variance_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11087 }
11088 0 arg3 = (size_t)(val3);
11089 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11090 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11091 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_variance_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_variance_m" "', argument " "4"" of type '" "double""'"); 0 0 0
11092 }
11093 0 arg4 = (double)(val4);
11094 0 result = (double)gsl_stats_char_variance_m((char const (*))arg1,arg2,arg3,arg4);
11095 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11096 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11097
11098
11099
11100 0 XSRETURN(argvi);
11101 0 fail:
11102 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11103
11104
11105
11106 0 SWIG_croak_null();
11107 }
11108 }
11109  
11110  
11111 0 XS(_wrap_gsl_stats_char_sd_m) {
11112 {
11113 0 char *arg1 = (char *) (char *)0 ;
11114 size_t arg2 ;
11115 size_t arg3 ;
11116 double arg4 ;
11117 int res1 ;
11118 0 char *buf1 = 0 ;
11119 0 int alloc1 = 0 ;
11120 size_t val2 ;
11121 0 int ecode2 = 0 ;
11122 size_t val3 ;
11123 0 int ecode3 = 0 ;
11124 double val4 ;
11125 0 int ecode4 = 0 ;
11126 0 int argvi = 0;
11127 double result;
11128 0 dXSARGS;
11129
11130 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
11131 0 SWIG_croak("Usage: gsl_stats_char_sd_m(data,stride,n,mean);");
11132 }
11133 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11134 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11135 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_sd_m" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_sd_m" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11136 }
11137 0 arg1 = (char *)(buf1);
11138 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11139 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11140 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_sd_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_sd_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11141 }
11142 0 arg2 = (size_t)(val2);
11143 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11144 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11145 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_sd_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_sd_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11146 }
11147 0 arg3 = (size_t)(val3);
11148 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11149 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11150 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_sd_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_sd_m" "', argument " "4"" of type '" "double""'"); 0 0 0
11151 }
11152 0 arg4 = (double)(val4);
11153 0 result = (double)gsl_stats_char_sd_m((char const (*))arg1,arg2,arg3,arg4);
11154 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11155 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11156
11157
11158
11159 0 XSRETURN(argvi);
11160 0 fail:
11161 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11162
11163
11164
11165 0 SWIG_croak_null();
11166 }
11167 }
11168  
11169  
11170 0 XS(_wrap_gsl_stats_char_absdev_m) {
11171 {
11172 0 char *arg1 = (char *) (char *)0 ;
11173 size_t arg2 ;
11174 size_t arg3 ;
11175 double arg4 ;
11176 int res1 ;
11177 0 char *buf1 = 0 ;
11178 0 int alloc1 = 0 ;
11179 size_t val2 ;
11180 0 int ecode2 = 0 ;
11181 size_t val3 ;
11182 0 int ecode3 = 0 ;
11183 double val4 ;
11184 0 int ecode4 = 0 ;
11185 0 int argvi = 0;
11186 double result;
11187 0 dXSARGS;
11188
11189 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
11190 0 SWIG_croak("Usage: gsl_stats_char_absdev_m(data,stride,n,mean);");
11191 }
11192 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11193 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11194 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_absdev_m" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_absdev_m" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11195 }
11196 0 arg1 = (char *)(buf1);
11197 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11198 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11199 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_absdev_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_absdev_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11200 }
11201 0 arg2 = (size_t)(val2);
11202 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11203 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11204 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_absdev_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_absdev_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11205 }
11206 0 arg3 = (size_t)(val3);
11207 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11208 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11209 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_absdev_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_absdev_m" "', argument " "4"" of type '" "double""'"); 0 0 0
11210 }
11211 0 arg4 = (double)(val4);
11212 0 result = (double)gsl_stats_char_absdev_m((char const (*))arg1,arg2,arg3,arg4);
11213 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11214 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11215
11216
11217
11218 0 XSRETURN(argvi);
11219 0 fail:
11220 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11221
11222
11223
11224 0 SWIG_croak_null();
11225 }
11226 }
11227  
11228  
11229 0 XS(_wrap_gsl_stats_char_skew_m_sd) {
11230 {
11231 0 char *arg1 = (char *) (char *)0 ;
11232 size_t arg2 ;
11233 size_t arg3 ;
11234 double arg4 ;
11235 double arg5 ;
11236 int res1 ;
11237 0 char *buf1 = 0 ;
11238 0 int alloc1 = 0 ;
11239 size_t val2 ;
11240 0 int ecode2 = 0 ;
11241 size_t val3 ;
11242 0 int ecode3 = 0 ;
11243 double val4 ;
11244 0 int ecode4 = 0 ;
11245 double val5 ;
11246 0 int ecode5 = 0 ;
11247 0 int argvi = 0;
11248 double result;
11249 0 dXSARGS;
11250
11251 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
11252 0 SWIG_croak("Usage: gsl_stats_char_skew_m_sd(data,stride,n,mean,sd);");
11253 }
11254 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11255 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11256 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11257 }
11258 0 arg1 = (char *)(buf1);
11259 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11260 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11261 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11262 }
11263 0 arg2 = (size_t)(val2);
11264 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11265 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11266 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11267 }
11268 0 arg3 = (size_t)(val3);
11269 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11270 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11271 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "4"" of type '" "double""'"); 0 0 0
11272 }
11273 0 arg4 = (double)(val4);
11274 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
11275 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11276 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_skew_m_sd" "', argument " "5"" of type '" "double""'"); 0 0 0
11277 }
11278 0 arg5 = (double)(val5);
11279 0 result = (double)gsl_stats_char_skew_m_sd((char const (*))arg1,arg2,arg3,arg4,arg5);
11280 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11281 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11282
11283
11284
11285
11286 0 XSRETURN(argvi);
11287 0 fail:
11288 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11289
11290
11291
11292
11293 0 SWIG_croak_null();
11294 }
11295 }
11296  
11297  
11298 0 XS(_wrap_gsl_stats_char_kurtosis_m_sd) {
11299 {
11300 0 char *arg1 = (char *) (char *)0 ;
11301 size_t arg2 ;
11302 size_t arg3 ;
11303 double arg4 ;
11304 double arg5 ;
11305 int res1 ;
11306 0 char *buf1 = 0 ;
11307 0 int alloc1 = 0 ;
11308 size_t val2 ;
11309 0 int ecode2 = 0 ;
11310 size_t val3 ;
11311 0 int ecode3 = 0 ;
11312 double val4 ;
11313 0 int ecode4 = 0 ;
11314 double val5 ;
11315 0 int ecode5 = 0 ;
11316 0 int argvi = 0;
11317 double result;
11318 0 dXSARGS;
11319
11320 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
11321 0 SWIG_croak("Usage: gsl_stats_char_kurtosis_m_sd(data,stride,n,mean,sd);");
11322 }
11323 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11324 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11325 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11326 }
11327 0 arg1 = (char *)(buf1);
11328 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11329 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11330 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11331 }
11332 0 arg2 = (size_t)(val2);
11333 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11334 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11335 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11336 }
11337 0 arg3 = (size_t)(val3);
11338 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11339 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11340 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "4"" of type '" "double""'"); 0 0 0
11341 }
11342 0 arg4 = (double)(val4);
11343 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
11344 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11345 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_kurtosis_m_sd" "', argument " "5"" of type '" "double""'"); 0 0 0
11346 }
11347 0 arg5 = (double)(val5);
11348 0 result = (double)gsl_stats_char_kurtosis_m_sd((char const (*))arg1,arg2,arg3,arg4,arg5);
11349 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11350 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11351
11352
11353
11354
11355 0 XSRETURN(argvi);
11356 0 fail:
11357 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11358
11359
11360
11361
11362 0 SWIG_croak_null();
11363 }
11364 }
11365  
11366  
11367 0 XS(_wrap_gsl_stats_char_lag1_autocorrelation_m) {
11368 {
11369 0 char *arg1 = (char *) (char *)0 ;
11370 size_t arg2 ;
11371 size_t arg3 ;
11372 double arg4 ;
11373 int res1 ;
11374 0 char *buf1 = 0 ;
11375 0 int alloc1 = 0 ;
11376 size_t val2 ;
11377 0 int ecode2 = 0 ;
11378 size_t val3 ;
11379 0 int ecode3 = 0 ;
11380 double val4 ;
11381 0 int ecode4 = 0 ;
11382 0 int argvi = 0;
11383 double result;
11384 0 dXSARGS;
11385
11386 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
11387 0 SWIG_croak("Usage: gsl_stats_char_lag1_autocorrelation_m(data,stride,n,mean);");
11388 }
11389 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11390 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11391 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11392 }
11393 0 arg1 = (char *)(buf1);
11394 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11395 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11396 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11397 }
11398 0 arg2 = (size_t)(val2);
11399 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11400 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11401 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11402 }
11403 0 arg3 = (size_t)(val3);
11404 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11405 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11406 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_lag1_autocorrelation_m" "', argument " "4"" of type '" "double""'"); 0 0 0
11407 }
11408 0 arg4 = (double)(val4);
11409 0 result = (double)gsl_stats_char_lag1_autocorrelation_m((char const (*))arg1,arg2,arg3,arg4);
11410 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11411 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11412
11413
11414
11415 0 XSRETURN(argvi);
11416 0 fail:
11417 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11418
11419
11420
11421 0 SWIG_croak_null();
11422 }
11423 }
11424  
11425  
11426 0 XS(_wrap_gsl_stats_char_covariance_m) {
11427 {
11428 0 char *arg1 = (char *) (char *)0 ;
11429 size_t arg2 ;
11430 0 char *arg3 = (char *) (char *)0 ;
11431 size_t arg4 ;
11432 size_t arg5 ;
11433 double arg6 ;
11434 double arg7 ;
11435 int res1 ;
11436 0 char *buf1 = 0 ;
11437 0 int alloc1 = 0 ;
11438 size_t val2 ;
11439 0 int ecode2 = 0 ;
11440 int res3 ;
11441 0 char *buf3 = 0 ;
11442 0 int alloc3 = 0 ;
11443 size_t val4 ;
11444 0 int ecode4 = 0 ;
11445 size_t val5 ;
11446 0 int ecode5 = 0 ;
11447 double val6 ;
11448 0 int ecode6 = 0 ;
11449 double val7 ;
11450 0 int ecode7 = 0 ;
11451 0 int argvi = 0;
11452 double result;
11453 0 dXSARGS;
11454
11455 0 ▶ if ((items < 7) || (items > 7)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 7) || (items > 7)) { 0 0 0
if ((items < 7) || (items > 7)) { 0 0 0
11456 0 SWIG_croak("Usage: gsl_stats_char_covariance_m(data1,stride1,data2,stride2,n,mean1,mean2);");
11457 }
11458 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11459 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11460 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_covariance_m" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_covariance_m" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11461 }
11462 0 arg1 = (char *)(buf1);
11463 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11464 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11465 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_covariance_m" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_covariance_m" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11466 }
11467 0 arg2 = (size_t)(val2);
11468 0 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
11469 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
11470 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_covariance_m" "', argument " "3"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_covariance_m" "', argument " "3"" of type '" "char const []""'"); 0 0 0
11471 }
11472 0 arg3 = (char *)(buf3);
11473 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11474 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11475 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_covariance_m" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_covariance_m" "', argument " "4"" of type '" "size_t""'"); 0 0 0
11476 }
11477 0 arg4 = (size_t)(val4);
11478 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
11479 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11480 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_covariance_m" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_covariance_m" "', argument " "5"" of type '" "size_t""'"); 0 0 0
11481 }
11482 0 arg5 = (size_t)(val5);
11483 0 ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
11484 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
11485 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_char_covariance_m" "', argument " "6"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_char_covariance_m" "', argument " "6"" of type '" "double""'"); 0 0 0
11486 }
11487 0 arg6 = (double)(val6);
11488 0 ecode7 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
11489 0 ▶ if (!SWIG_IsOK(ecode7)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode7)) { 0 0 0
11490 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_char_covariance_m" "', argument " "7"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gsl_stats_char_covariance_m" "', argument " "7"" of type '" "double""'"); 0 0 0
11491 }
11492 0 arg7 = (double)(val7);
11493 0 result = (double)gsl_stats_char_covariance_m((char const (*))arg1,arg2,(char const (*))arg3,arg4,arg5,arg6,arg7);
11494 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11495 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11496
11497 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
11498
11499
11500
11501
11502 0 XSRETURN(argvi);
11503 0 fail:
11504 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11505
11506 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
11507
11508
11509
11510
11511 0 SWIG_croak_null();
11512 }
11513 }
11514  
11515  
11516 0 XS(_wrap_gsl_stats_char_pvariance) {
11517 {
11518 0 char *arg1 = (char *) (char *)0 ;
11519 size_t arg2 ;
11520 size_t arg3 ;
11521 0 char *arg4 = (char *) (char *)0 ;
11522 size_t arg5 ;
11523 size_t arg6 ;
11524 int res1 ;
11525 0 char *buf1 = 0 ;
11526 0 int alloc1 = 0 ;
11527 size_t val2 ;
11528 0 int ecode2 = 0 ;
11529 size_t val3 ;
11530 0 int ecode3 = 0 ;
11531 int res4 ;
11532 0 char *buf4 = 0 ;
11533 0 int alloc4 = 0 ;
11534 size_t val5 ;
11535 0 int ecode5 = 0 ;
11536 size_t val6 ;
11537 0 int ecode6 = 0 ;
11538 0 int argvi = 0;
11539 double result;
11540 0 dXSARGS;
11541
11542 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
11543 0 SWIG_croak("Usage: gsl_stats_char_pvariance(data1,stride1,n1,data2,stride2,n2);");
11544 }
11545 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11546 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11547 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_pvariance" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_pvariance" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11548 }
11549 0 arg1 = (char *)(buf1);
11550 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11551 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11552 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_pvariance" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_pvariance" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11553 }
11554 0 arg2 = (size_t)(val2);
11555 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11556 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11557 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_pvariance" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_pvariance" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11558 }
11559 0 arg3 = (size_t)(val3);
11560 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
11561 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
11562 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_pvariance" "', argument " "4"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_pvariance" "', argument " "4"" of type '" "char const []""'"); 0 0 0
11563 }
11564 0 arg4 = (char *)(buf4);
11565 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
11566 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11567 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_pvariance" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_pvariance" "', argument " "5"" of type '" "size_t""'"); 0 0 0
11568 }
11569 0 arg5 = (size_t)(val5);
11570 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
11571 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
11572 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_char_pvariance" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_char_pvariance" "', argument " "6"" of type '" "size_t""'"); 0 0 0
11573 }
11574 0 arg6 = (size_t)(val6);
11575 0 result = (double)gsl_stats_char_pvariance((char const (*))arg1,arg2,arg3,(char const (*))arg4,arg5,arg6);
11576 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11577 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11578
11579
11580 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
11581
11582
11583 0 XSRETURN(argvi);
11584 0 fail:
11585 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11586
11587
11588 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
11589
11590
11591 0 SWIG_croak_null();
11592 }
11593 }
11594  
11595  
11596 0 XS(_wrap_gsl_stats_char_ttest) {
11597 {
11598 0 char *arg1 = (char *) (char *)0 ;
11599 size_t arg2 ;
11600 size_t arg3 ;
11601 0 char *arg4 = (char *) (char *)0 ;
11602 size_t arg5 ;
11603 size_t arg6 ;
11604 int res1 ;
11605 0 char *buf1 = 0 ;
11606 0 int alloc1 = 0 ;
11607 size_t val2 ;
11608 0 int ecode2 = 0 ;
11609 size_t val3 ;
11610 0 int ecode3 = 0 ;
11611 int res4 ;
11612 0 char *buf4 = 0 ;
11613 0 int alloc4 = 0 ;
11614 size_t val5 ;
11615 0 int ecode5 = 0 ;
11616 size_t val6 ;
11617 0 int ecode6 = 0 ;
11618 0 int argvi = 0;
11619 double result;
11620 0 dXSARGS;
11621
11622 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
11623 0 SWIG_croak("Usage: gsl_stats_char_ttest(data1,stride1,n1,data2,stride2,n2);");
11624 }
11625 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11626 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11627 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_ttest" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_ttest" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11628 }
11629 0 arg1 = (char *)(buf1);
11630 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11631 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11632 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_ttest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_ttest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11633 }
11634 0 arg2 = (size_t)(val2);
11635 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11636 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11637 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_ttest" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_ttest" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11638 }
11639 0 arg3 = (size_t)(val3);
11640 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
11641 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
11642 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_ttest" "', argument " "4"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_ttest" "', argument " "4"" of type '" "char const []""'"); 0 0 0
11643 }
11644 0 arg4 = (char *)(buf4);
11645 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
11646 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11647 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_ttest" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_ttest" "', argument " "5"" of type '" "size_t""'"); 0 0 0
11648 }
11649 0 arg5 = (size_t)(val5);
11650 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
11651 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
11652 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_char_ttest" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_stats_char_ttest" "', argument " "6"" of type '" "size_t""'"); 0 0 0
11653 }
11654 0 arg6 = (size_t)(val6);
11655 0 result = (double)gsl_stats_char_ttest((char const (*))arg1,arg2,arg3,(char const (*))arg4,arg5,arg6);
11656 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
11657 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11658
11659
11660 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
11661
11662
11663 0 XSRETURN(argvi);
11664 0 fail:
11665 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11666
11667
11668 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
11669
11670
11671 0 SWIG_croak_null();
11672 }
11673 }
11674  
11675  
11676 0 XS(_wrap_gsl_stats_char_max) {
11677 {
11678 0 char *arg1 = (char *) (char *)0 ;
11679 size_t arg2 ;
11680 size_t arg3 ;
11681 int res1 ;
11682 0 char *buf1 = 0 ;
11683 0 int alloc1 = 0 ;
11684 size_t val2 ;
11685 0 int ecode2 = 0 ;
11686 size_t val3 ;
11687 0 int ecode3 = 0 ;
11688 0 int argvi = 0;
11689 char result;
11690 0 dXSARGS;
11691
11692 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
11693 0 SWIG_croak("Usage: gsl_stats_char_max(data,stride,n);");
11694 }
11695 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11696 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11697 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_max" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_max" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11698 }
11699 0 arg1 = (char *)(buf1);
11700 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11701 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11702 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_max" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_max" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11703 }
11704 0 arg2 = (size_t)(val2);
11705 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11706 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11707 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_max" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_max" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11708 }
11709 0 arg3 = (size_t)(val3);
11710 0 result = (char)gsl_stats_char_max((char const (*))arg1,arg2,arg3);
11711 0 ST(argvi) = SWIG_From_char SWIG_PERL_CALL_ARGS_1((char)(result)); argvi++ ;
11712 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11713
11714
11715 0 XSRETURN(argvi);
11716 0 fail:
11717 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11718
11719
11720 0 SWIG_croak_null();
11721 }
11722 }
11723  
11724  
11725 0 XS(_wrap_gsl_stats_char_min) {
11726 {
11727 0 char *arg1 = (char *) (char *)0 ;
11728 size_t arg2 ;
11729 size_t arg3 ;
11730 int res1 ;
11731 0 char *buf1 = 0 ;
11732 0 int alloc1 = 0 ;
11733 size_t val2 ;
11734 0 int ecode2 = 0 ;
11735 size_t val3 ;
11736 0 int ecode3 = 0 ;
11737 0 int argvi = 0;
11738 char result;
11739 0 dXSARGS;
11740
11741 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
11742 0 SWIG_croak("Usage: gsl_stats_char_min(data,stride,n);");
11743 }
11744 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11745 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11746 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_min" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_min" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11747 }
11748 0 arg1 = (char *)(buf1);
11749 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11750 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11751 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_min" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_min" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11752 }
11753 0 arg2 = (size_t)(val2);
11754 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11755 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11756 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_min" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_min" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11757 }
11758 0 arg3 = (size_t)(val3);
11759 0 result = (char)gsl_stats_char_min((char const (*))arg1,arg2,arg3);
11760 0 ST(argvi) = SWIG_From_char SWIG_PERL_CALL_ARGS_1((char)(result)); argvi++ ;
11761 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11762
11763
11764 0 XSRETURN(argvi);
11765 0 fail:
11766 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11767
11768
11769 0 SWIG_croak_null();
11770 }
11771 }
11772  
11773  
11774 0 XS(_wrap_gsl_stats_char_minmax) {
11775 {
11776 0 char *arg1 = (char *) 0 ;
11777 0 char *arg2 = (char *) 0 ;
11778 0 char *arg3 = (char *) (char *)0 ;
11779 size_t arg4 ;
11780 size_t arg5 ;
11781 int res1 ;
11782 0 char *buf1 = 0 ;
11783 0 int alloc1 = 0 ;
11784 int res2 ;
11785 0 char *buf2 = 0 ;
11786 0 int alloc2 = 0 ;
11787 int res3 ;
11788 0 char *buf3 = 0 ;
11789 0 int alloc3 = 0 ;
11790 size_t val4 ;
11791 0 int ecode4 = 0 ;
11792 size_t val5 ;
11793 0 int ecode5 = 0 ;
11794 0 int argvi = 0;
11795 0 dXSARGS;
11796
11797 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
11798 0 SWIG_croak("Usage: gsl_stats_char_minmax(min,max,data,stride,n);");
11799 }
11800 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11801 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11802 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_minmax" "', argument " "1"" of type '" "char *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_minmax" "', argument " "1"" of type '" "char *""'"); 0 0 0
11803 }
11804 0 arg1 = (char *)(buf1);
11805 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
11806 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
11807 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stats_char_minmax" "', argument " "2"" of type '" "char *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stats_char_minmax" "', argument " "2"" of type '" "char *""'"); 0 0 0
11808 }
11809 0 arg2 = (char *)(buf2);
11810 0 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
11811 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
11812 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_minmax" "', argument " "3"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_minmax" "', argument " "3"" of type '" "char const []""'"); 0 0 0
11813 }
11814 0 arg3 = (char *)(buf3);
11815 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
11816 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11817 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_minmax" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_minmax" "', argument " "4"" of type '" "size_t""'"); 0 0 0
11818 }
11819 0 arg4 = (size_t)(val4);
11820 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
11821 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11822 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_minmax" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_minmax" "', argument " "5"" of type '" "size_t""'"); 0 0 0
11823 }
11824 0 arg5 = (size_t)(val5);
11825 0 gsl_stats_char_minmax(arg1,arg2,(char const (*))arg3,arg4,arg5);
11826 0 ST(argvi) = &PL_sv_undef;
11827 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11828 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
11829 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
11830
11831
11832 0 XSRETURN(argvi);
11833 0 fail:
11834 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11835 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
11836 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
11837
11838
11839 0 SWIG_croak_null();
11840 }
11841 }
11842  
11843  
11844 0 XS(_wrap_gsl_stats_char_max_index) {
11845 {
11846 0 char *arg1 = (char *) (char *)0 ;
11847 size_t arg2 ;
11848 size_t arg3 ;
11849 int res1 ;
11850 0 char *buf1 = 0 ;
11851 0 int alloc1 = 0 ;
11852 size_t val2 ;
11853 0 int ecode2 = 0 ;
11854 size_t val3 ;
11855 0 int ecode3 = 0 ;
11856 0 int argvi = 0;
11857 size_t result;
11858 0 dXSARGS;
11859
11860 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
11861 0 SWIG_croak("Usage: gsl_stats_char_max_index(data,stride,n);");
11862 }
11863 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11864 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11865 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_max_index" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_max_index" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11866 }
11867 0 arg1 = (char *)(buf1);
11868 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11869 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11870 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_max_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_max_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11871 }
11872 0 arg2 = (size_t)(val2);
11873 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11874 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11875 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_max_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_max_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11876 }
11877 0 arg3 = (size_t)(val3);
11878 0 result = gsl_stats_char_max_index((char const (*))arg1,arg2,arg3);
11879 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
11880 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11881
11882
11883 0 XSRETURN(argvi);
11884 0 fail:
11885 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11886
11887
11888 0 SWIG_croak_null();
11889 }
11890 }
11891  
11892  
11893 0 XS(_wrap_gsl_stats_char_min_index) {
11894 {
11895 0 char *arg1 = (char *) (char *)0 ;
11896 size_t arg2 ;
11897 size_t arg3 ;
11898 int res1 ;
11899 0 char *buf1 = 0 ;
11900 0 int alloc1 = 0 ;
11901 size_t val2 ;
11902 0 int ecode2 = 0 ;
11903 size_t val3 ;
11904 0 int ecode3 = 0 ;
11905 0 int argvi = 0;
11906 size_t result;
11907 0 dXSARGS;
11908
11909 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
11910 0 SWIG_croak("Usage: gsl_stats_char_min_index(data,stride,n);");
11911 }
11912 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
11913 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
11914 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_min_index" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_min_index" "', argument " "1"" of type '" "char const []""'"); 0 0 0
11915 }
11916 0 arg1 = (char *)(buf1);
11917 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
11918 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
11919 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_min_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_min_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
11920 }
11921 0 arg2 = (size_t)(val2);
11922 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
11923 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
11924 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_min_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_min_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
11925 }
11926 0 arg3 = (size_t)(val3);
11927 0 result = gsl_stats_char_min_index((char const (*))arg1,arg2,arg3);
11928 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
11929 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11930
11931
11932 0 XSRETURN(argvi);
11933 0 fail:
11934 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
11935
11936
11937 0 SWIG_croak_null();
11938 }
11939 }
11940  
11941  
11942 0 XS(_wrap_gsl_stats_char_minmax_index) {
11943 {
11944 0 size_t *arg1 = (size_t *) 0 ;
11945 0 size_t *arg2 = (size_t *) 0 ;
11946 0 char *arg3 = (char *) (char *)0 ;
11947 size_t arg4 ;
11948 size_t arg5 ;
11949 size_t temp1 ;
11950 0 int res1 = SWIG_TMPOBJ ;
11951 size_t temp2 ;
11952 0 int res2 = SWIG_TMPOBJ ;
11953 int res3 ;
11954 0 char *buf3 = 0 ;
11955 0 int alloc3 = 0 ;
11956 size_t val4 ;
11957 0 int ecode4 = 0 ;
11958 size_t val5 ;
11959 0 int ecode5 = 0 ;
11960 0 int argvi = 0;
11961 0 dXSARGS;
11962
11963 0 arg1 = &temp1;
11964 0 arg2 = &temp2;
11965 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
11966 0 SWIG_croak("Usage: gsl_stats_char_minmax_index(data,stride,n);");
11967 }
11968 0 res3 = SWIG_AsCharPtrAndSize(ST(0), &buf3, NULL, &alloc3);
11969 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
11970 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_minmax_index" "', argument " "3"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_stats_char_minmax_index" "', argument " "3"" of type '" "char const []""'"); 0 0 0
11971 }
11972 0 arg3 = (char *)(buf3);
11973 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val4);
11974 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
11975 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_minmax_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_minmax_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
11976 }
11977 0 arg4 = (size_t)(val4);
11978 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val5);
11979 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
11980 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_minmax_index" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_stats_char_minmax_index" "', argument " "5"" of type '" "size_t""'"); 0 0 0
11981 }
11982 0 arg5 = (size_t)(val5);
11983 0 gsl_stats_char_minmax_index(arg1,arg2,(char const (*))arg3,arg4,arg5);
11984 0 ST(argvi) = &PL_sv_undef;
11985 0 ▶ if (SWIG_IsTmpObj(res1)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res1)) { 0 0 0
if (SWIG_IsTmpObj(res1)) { 0 0 0
11986 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
11987 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
11988 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((*arg1)); argvi++ /*@SWIG@*/;
11989 } else {
11990 0 ▶ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0;
Branch: 2 branches
BranchTrueFalseTotal
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0) : 0; 0 0 0
11991 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
11992 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
11993 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_size_t, new_flags); argvi++ /*@SWIG@*/;
11994 }
11995 0 ▶ if (SWIG_IsTmpObj(res2)) {
Branch: 2 branches
BranchTrueFalseTotal
if (SWIG_IsTmpObj(res2)) { 0 0 0
if (SWIG_IsTmpObj(res2)) { 0 0 0
11996 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
11997 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
11998 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ /*@SWIG@*/;
11999 } else {
12000 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
12001 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,59,%append_output@*/
12002 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
12003 0 ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_size_t, new_flags); argvi++ /*@SWIG@*/;
12004 }
12005
12006
12007 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
12008
12009
12010 0 XSRETURN(argvi);
12011 0 fail:
12012
12013
12014 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
12015
12016
12017 0 SWIG_croak_null();
12018 }
12019 }
12020  
12021  
12022 0 XS(_wrap_gsl_stats_char_select) {
12023 {
12024 0 char *arg1 = (char *) (char *)0 ;
12025 size_t arg2 ;
12026 size_t arg3 ;
12027 size_t arg4 ;
12028 int res1 ;
12029 0 char *buf1 = 0 ;
12030 0 int alloc1 = 0 ;
12031 size_t val2 ;
12032 0 int ecode2 = 0 ;
12033 size_t val3 ;
12034 0 int ecode3 = 0 ;
12035 size_t val4 ;
12036 0 int ecode4 = 0 ;
12037 0 int argvi = 0;
12038 char result;
12039 0 dXSARGS;
12040
12041 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
12042 0 SWIG_croak("Usage: gsl_stats_char_select(data,stride,n,k);");
12043 }
12044 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12045 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12046 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_select" "', argument " "1"" of type '" "char []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_select" "', argument " "1"" of type '" "char []""'"); 0 0 0
12047 }
12048 0 arg1 = (char *)(buf1);
12049 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12050 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12051 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_select" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_select" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12052 }
12053 0 arg2 = (size_t)(val2);
12054 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12055 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12056 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_select" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_select" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12057 }
12058 0 arg3 = (size_t)(val3);
12059 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
12060 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
12061 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_select" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_select" "', argument " "4"" of type '" "size_t""'"); 0 0 0
12062 }
12063 0 arg4 = (size_t)(val4);
12064 0 result = (char)gsl_stats_char_select(arg1,arg2,arg3,arg4);
12065 0 ST(argvi) = SWIG_From_char SWIG_PERL_CALL_ARGS_1((char)(result)); argvi++ ;
12066 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12067
12068
12069
12070 0 XSRETURN(argvi);
12071 0 fail:
12072 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12073
12074
12075
12076 0 SWIG_croak_null();
12077 }
12078 }
12079  
12080  
12081 0 XS(_wrap_gsl_stats_char_median_from_sorted_data) {
12082 {
12083 0 char *arg1 = (char *) (char *)0 ;
12084 size_t arg2 ;
12085 size_t arg3 ;
12086 int res1 ;
12087 0 char *buf1 = 0 ;
12088 0 int alloc1 = 0 ;
12089 size_t val2 ;
12090 0 int ecode2 = 0 ;
12091 size_t val3 ;
12092 0 int ecode3 = 0 ;
12093 0 int argvi = 0;
12094 double result;
12095 0 dXSARGS;
12096
12097 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
12098 0 SWIG_croak("Usage: gsl_stats_char_median_from_sorted_data(sorted_data,stride,n);");
12099 }
12100 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12101 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12102 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_median_from_sorted_data" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_median_from_sorted_data" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12103 }
12104 0 arg1 = (char *)(buf1);
12105 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12106 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12107 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_median_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_median_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12108 }
12109 0 arg2 = (size_t)(val2);
12110 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12111 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12112 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_median_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_median_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12113 }
12114 0 arg3 = (size_t)(val3);
12115 0 result = (double)gsl_stats_char_median_from_sorted_data((char const (*))arg1,arg2,arg3);
12116 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12117 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12118
12119
12120 0 XSRETURN(argvi);
12121 0 fail:
12122 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12123
12124
12125 0 SWIG_croak_null();
12126 }
12127 }
12128  
12129  
12130 0 XS(_wrap_gsl_stats_char_median) {
12131 {
12132 0 char *arg1 = (char *) (char *)0 ;
12133 size_t arg2 ;
12134 size_t arg3 ;
12135 int res1 ;
12136 0 char *buf1 = 0 ;
12137 0 int alloc1 = 0 ;
12138 size_t val2 ;
12139 0 int ecode2 = 0 ;
12140 size_t val3 ;
12141 0 int ecode3 = 0 ;
12142 0 int argvi = 0;
12143 double result;
12144 0 dXSARGS;
12145
12146 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
12147 0 SWIG_croak("Usage: gsl_stats_char_median(sorted_data,stride,n);");
12148 }
12149 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12150 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12151 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_median" "', argument " "1"" of type '" "char []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_median" "', argument " "1"" of type '" "char []""'"); 0 0 0
12152 }
12153 0 arg1 = (char *)(buf1);
12154 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12155 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12156 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_median" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_median" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12157 }
12158 0 arg2 = (size_t)(val2);
12159 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12160 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12161 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_median" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_median" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12162 }
12163 0 arg3 = (size_t)(val3);
12164 0 result = (double)gsl_stats_char_median(arg1,arg2,arg3);
12165 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12166 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12167
12168
12169 0 XSRETURN(argvi);
12170 0 fail:
12171 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12172
12173
12174 0 SWIG_croak_null();
12175 }
12176 }
12177  
12178  
12179 0 XS(_wrap_gsl_stats_char_quantile_from_sorted_data) {
12180 {
12181 0 char *arg1 = (char *) (char *)0 ;
12182 size_t arg2 ;
12183 size_t arg3 ;
12184 double arg4 ;
12185 int res1 ;
12186 0 char *buf1 = 0 ;
12187 0 int alloc1 = 0 ;
12188 size_t val2 ;
12189 0 int ecode2 = 0 ;
12190 size_t val3 ;
12191 0 int ecode3 = 0 ;
12192 double val4 ;
12193 0 int ecode4 = 0 ;
12194 0 int argvi = 0;
12195 double result;
12196 0 dXSARGS;
12197
12198 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
12199 0 SWIG_croak("Usage: gsl_stats_char_quantile_from_sorted_data(sorted_data,stride,n,f);");
12200 }
12201 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12202 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12203 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12204 }
12205 0 arg1 = (char *)(buf1);
12206 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12207 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12208 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12209 }
12210 0 arg2 = (size_t)(val2);
12211 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12212 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12213 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12214 }
12215 0 arg3 = (size_t)(val3);
12216 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
12217 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
12218 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_quantile_from_sorted_data" "', argument " "4"" of type '" "double""'"); 0 0 0
12219 }
12220 0 arg4 = (double)(val4);
12221 0 result = (double)gsl_stats_char_quantile_from_sorted_data((char const (*))arg1,arg2,arg3,arg4);
12222 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12223 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12224
12225
12226
12227 0 XSRETURN(argvi);
12228 0 fail:
12229 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12230
12231
12232
12233 0 SWIG_croak_null();
12234 }
12235 }
12236  
12237  
12238 0 XS(_wrap_gsl_stats_char_trmean_from_sorted_data) {
12239 {
12240 double arg1 ;
12241 0 char *arg2 = (char *) (char *)0 ;
12242 size_t arg3 ;
12243 size_t arg4 ;
12244 double val1 ;
12245 0 int ecode1 = 0 ;
12246 int res2 ;
12247 0 char *buf2 = 0 ;
12248 0 int alloc2 = 0 ;
12249 size_t val3 ;
12250 0 int ecode3 = 0 ;
12251 size_t val4 ;
12252 0 int ecode4 = 0 ;
12253 0 int argvi = 0;
12254 double result;
12255 0 dXSARGS;
12256
12257 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
12258 0 SWIG_croak("Usage: gsl_stats_char_trmean_from_sorted_data(trim,sorted_data,stride,n);");
12259 }
12260 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
12261 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
12262 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "1"" of type '" "double""'"); 0 0 0
12263 }
12264 0 arg1 = (double)(val1);
12265 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
12266 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
12267 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "2"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "2"" of type '" "char const []""'"); 0 0 0
12268 }
12269 0 arg2 = (char *)(buf2);
12270 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12271 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12272 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12273 }
12274 0 arg3 = (size_t)(val3);
12275 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
12276 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
12277 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_stats_char_trmean_from_sorted_data" "', argument " "4"" of type '" "size_t""'"); 0 0 0
12278 }
12279 0 arg4 = (size_t)(val4);
12280 0 result = (double)gsl_stats_char_trmean_from_sorted_data(arg1,(char const (*))arg2,arg3,arg4);
12281 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12282
12283 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
12284
12285
12286 0 XSRETURN(argvi);
12287 0 fail:
12288
12289 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
12290
12291
12292 0 SWIG_croak_null();
12293 }
12294 }
12295  
12296  
12297 0 XS(_wrap_gsl_stats_char_gastwirth_from_sorted_data) {
12298 {
12299 0 char *arg1 = (char *) (char *)0 ;
12300 size_t arg2 ;
12301 size_t arg3 ;
12302 int res1 ;
12303 0 char *buf1 = 0 ;
12304 0 int alloc1 = 0 ;
12305 size_t val2 ;
12306 0 int ecode2 = 0 ;
12307 size_t val3 ;
12308 0 int ecode3 = 0 ;
12309 0 int argvi = 0;
12310 double result;
12311 0 dXSARGS;
12312
12313 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
12314 0 SWIG_croak("Usage: gsl_stats_char_gastwirth_from_sorted_data(sorted_data,stride,n);");
12315 }
12316 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12317 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12318 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_gastwirth_from_sorted_data" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_gastwirth_from_sorted_data" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12319 }
12320 0 arg1 = (char *)(buf1);
12321 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12322 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12323 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_gastwirth_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_gastwirth_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12324 }
12325 0 arg2 = (size_t)(val2);
12326 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12327 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12328 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_gastwirth_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_gastwirth_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12329 }
12330 0 arg3 = (size_t)(val3);
12331 0 result = (double)gsl_stats_char_gastwirth_from_sorted_data((char const (*))arg1,arg2,arg3);
12332 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12333 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12334
12335
12336 0 XSRETURN(argvi);
12337 0 fail:
12338 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12339
12340
12341 0 SWIG_croak_null();
12342 }
12343 }
12344  
12345  
12346 0 XS(_wrap_gsl_stats_char_mad0) {
12347 {
12348 0 char *arg1 = (char *) (char *)0 ;
12349 size_t arg2 ;
12350 size_t arg3 ;
12351 0 double *arg4 = (double *) (double *)0 ;
12352 int res1 ;
12353 0 char *buf1 = 0 ;
12354 0 int alloc1 = 0 ;
12355 size_t val2 ;
12356 0 int ecode2 = 0 ;
12357 size_t val3 ;
12358 0 int ecode3 = 0 ;
12359 0 void *argp4 = 0 ;
12360 0 int res4 = 0 ;
12361 0 int argvi = 0;
12362 double result;
12363 0 dXSARGS;
12364
12365 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
12366 0 SWIG_croak("Usage: gsl_stats_char_mad0(data,stride,n,work);");
12367 }
12368 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12369 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12370 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_mad0" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_mad0" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12371 }
12372 0 arg1 = (char *)(buf1);
12373 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12374 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12375 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_mad0" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_mad0" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12376 }
12377 0 arg2 = (size_t)(val2);
12378 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12379 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12380 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_mad0" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_mad0" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12381 }
12382 0 arg3 = (size_t)(val3);
12383 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
12384 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
12385 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_mad0" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_mad0" "', argument " "4"" of type '" "double []""'"); 0 0 0
12386 }
12387 0 arg4 = (double *)(argp4);
12388 0 result = (double)gsl_stats_char_mad0((char const (*))arg1,arg2,arg3,arg4);
12389 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12390 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12391
12392
12393
12394 0 XSRETURN(argvi);
12395 0 fail:
12396 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12397
12398
12399
12400 0 SWIG_croak_null();
12401 }
12402 }
12403  
12404  
12405 0 XS(_wrap_gsl_stats_char_mad) {
12406 {
12407 0 char *arg1 = (char *) (char *)0 ;
12408 size_t arg2 ;
12409 size_t arg3 ;
12410 0 double *arg4 = (double *) (double *)0 ;
12411 int res1 ;
12412 0 char *buf1 = 0 ;
12413 0 int alloc1 = 0 ;
12414 size_t val2 ;
12415 0 int ecode2 = 0 ;
12416 size_t val3 ;
12417 0 int ecode3 = 0 ;
12418 0 void *argp4 = 0 ;
12419 0 int res4 = 0 ;
12420 0 int argvi = 0;
12421 double result;
12422 0 dXSARGS;
12423
12424 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
12425 0 SWIG_croak("Usage: gsl_stats_char_mad(data,stride,n,work);");
12426 }
12427 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12428 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12429 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_mad" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_mad" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12430 }
12431 0 arg1 = (char *)(buf1);
12432 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12433 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12434 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_mad" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_mad" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12435 }
12436 0 arg2 = (size_t)(val2);
12437 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12438 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12439 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_mad" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_mad" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12440 }
12441 0 arg3 = (size_t)(val3);
12442 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
12443 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
12444 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_mad" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_mad" "', argument " "4"" of type '" "double []""'"); 0 0 0
12445 }
12446 0 arg4 = (double *)(argp4);
12447 0 result = (double)gsl_stats_char_mad((char const (*))arg1,arg2,arg3,arg4);
12448 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12449 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12450
12451
12452
12453 0 XSRETURN(argvi);
12454 0 fail:
12455 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12456
12457
12458
12459 0 SWIG_croak_null();
12460 }
12461 }
12462  
12463  
12464 0 XS(_wrap_gsl_stats_char_Sn0_from_sorted_data) {
12465 {
12466 0 char *arg1 = (char *) (char *)0 ;
12467 size_t arg2 ;
12468 size_t arg3 ;
12469 0 char *arg4 = (char *) (char *)0 ;
12470 int res1 ;
12471 0 char *buf1 = 0 ;
12472 0 int alloc1 = 0 ;
12473 size_t val2 ;
12474 0 int ecode2 = 0 ;
12475 size_t val3 ;
12476 0 int ecode3 = 0 ;
12477 int res4 ;
12478 0 char *buf4 = 0 ;
12479 0 int alloc4 = 0 ;
12480 0 int argvi = 0;
12481 char result;
12482 0 dXSARGS;
12483
12484 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
12485 0 SWIG_croak("Usage: gsl_stats_char_Sn0_from_sorted_data(sorted_data,stride,n,work);");
12486 }
12487 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12488 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12489 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12490 }
12491 0 arg1 = (char *)(buf1);
12492 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12493 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12494 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12495 }
12496 0 arg2 = (size_t)(val2);
12497 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12498 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12499 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12500 }
12501 0 arg3 = (size_t)(val3);
12502 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
12503 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
12504 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "4"" of type '" "char []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Sn0_from_sorted_data" "', argument " "4"" of type '" "char []""'"); 0 0 0
12505 }
12506 0 arg4 = (char *)(buf4);
12507 0 result = (char)gsl_stats_char_Sn0_from_sorted_data((char const (*))arg1,arg2,arg3,arg4);
12508 0 ST(argvi) = SWIG_From_char SWIG_PERL_CALL_ARGS_1((char)(result)); argvi++ ;
12509 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12510
12511
12512 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12513 0 XSRETURN(argvi);
12514 0 fail:
12515 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12516
12517
12518 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12519 0 SWIG_croak_null();
12520 }
12521 }
12522  
12523  
12524 0 XS(_wrap_gsl_stats_char_Sn_from_sorted_data) {
12525 {
12526 0 char *arg1 = (char *) (char *)0 ;
12527 size_t arg2 ;
12528 size_t arg3 ;
12529 0 char *arg4 = (char *) (char *)0 ;
12530 int res1 ;
12531 0 char *buf1 = 0 ;
12532 0 int alloc1 = 0 ;
12533 size_t val2 ;
12534 0 int ecode2 = 0 ;
12535 size_t val3 ;
12536 0 int ecode3 = 0 ;
12537 int res4 ;
12538 0 char *buf4 = 0 ;
12539 0 int alloc4 = 0 ;
12540 0 int argvi = 0;
12541 double result;
12542 0 dXSARGS;
12543
12544 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
12545 0 SWIG_croak("Usage: gsl_stats_char_Sn_from_sorted_data(sorted_data,stride,n,work);");
12546 }
12547 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12548 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12549 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12550 }
12551 0 arg1 = (char *)(buf1);
12552 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12553 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12554 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12555 }
12556 0 arg2 = (size_t)(val2);
12557 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12558 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12559 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12560 }
12561 0 arg3 = (size_t)(val3);
12562 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
12563 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
12564 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "4"" of type '" "char []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Sn_from_sorted_data" "', argument " "4"" of type '" "char []""'"); 0 0 0
12565 }
12566 0 arg4 = (char *)(buf4);
12567 0 result = (double)gsl_stats_char_Sn_from_sorted_data((char const (*))arg1,arg2,arg3,arg4);
12568 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12569 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12570
12571
12572 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12573 0 XSRETURN(argvi);
12574 0 fail:
12575 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12576
12577
12578 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12579 0 SWIG_croak_null();
12580 }
12581 }
12582  
12583  
12584 0 XS(_wrap_gsl_stats_char_Qn0_from_sorted_data) {
12585 {
12586 0 char *arg1 = (char *) (char *)0 ;
12587 size_t arg2 ;
12588 size_t arg3 ;
12589 0 char *arg4 = (char *) (char *)0 ;
12590 0 int *arg5 = (int *) (int *)0 ;
12591 int res1 ;
12592 0 char *buf1 = 0 ;
12593 0 int alloc1 = 0 ;
12594 size_t val2 ;
12595 0 int ecode2 = 0 ;
12596 size_t val3 ;
12597 0 int ecode3 = 0 ;
12598 int res4 ;
12599 0 char *buf4 = 0 ;
12600 0 int alloc4 = 0 ;
12601 0 void *argp5 = 0 ;
12602 0 int res5 = 0 ;
12603 0 int argvi = 0;
12604 char result;
12605 0 dXSARGS;
12606
12607 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
12608 0 SWIG_croak("Usage: gsl_stats_char_Qn0_from_sorted_data(sorted_data,stride,n,work,work_int);");
12609 }
12610 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12611 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12612 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12613 }
12614 0 arg1 = (char *)(buf1);
12615 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12616 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12617 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12618 }
12619 0 arg2 = (size_t)(val2);
12620 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12621 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12622 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12623 }
12624 0 arg3 = (size_t)(val3);
12625 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
12626 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
12627 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "4"" of type '" "char []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "4"" of type '" "char []""'"); 0 0 0
12628 }
12629 0 arg4 = (char *)(buf4);
12630 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_int, 0 | 0 );
12631 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
12632 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "5"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_char_Qn0_from_sorted_data" "', argument " "5"" of type '" "int []""'"); 0 0 0
12633 }
12634 0 arg5 = (int *)(argp5);
12635 0 result = (char)gsl_stats_char_Qn0_from_sorted_data((char const (*))arg1,arg2,arg3,arg4,arg5);
12636 0 ST(argvi) = SWIG_From_char SWIG_PERL_CALL_ARGS_1((char)(result)); argvi++ ;
12637 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12638
12639
12640 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12641
12642 0 XSRETURN(argvi);
12643 0 fail:
12644 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12645
12646
12647 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12648
12649 0 SWIG_croak_null();
12650 }
12651 }
12652  
12653  
12654 0 XS(_wrap_gsl_stats_char_Qn_from_sorted_data) {
12655 {
12656 0 char *arg1 = (char *) (char *)0 ;
12657 size_t arg2 ;
12658 size_t arg3 ;
12659 0 char *arg4 = (char *) (char *)0 ;
12660 0 int *arg5 = (int *) (int *)0 ;
12661 int res1 ;
12662 0 char *buf1 = 0 ;
12663 0 int alloc1 = 0 ;
12664 size_t val2 ;
12665 0 int ecode2 = 0 ;
12666 size_t val3 ;
12667 0 int ecode3 = 0 ;
12668 int res4 ;
12669 0 char *buf4 = 0 ;
12670 0 int alloc4 = 0 ;
12671 0 void *argp5 = 0 ;
12672 0 int res5 = 0 ;
12673 0 int argvi = 0;
12674 double result;
12675 0 dXSARGS;
12676
12677 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
12678 0 SWIG_croak("Usage: gsl_stats_char_Qn_from_sorted_data(sorted_data,stride,n,work,work_int);");
12679 }
12680 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
12681 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
12682 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "1"" of type '" "char const []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "1"" of type '" "char const []""'"); 0 0 0
12683 }
12684 0 arg1 = (char *)(buf1);
12685 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
12686 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
12687 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "2"" of type '" "size_t""'"); 0 0 0
12688 }
12689 0 arg2 = (size_t)(val2);
12690 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
12691 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
12692 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "3"" of type '" "size_t""'"); 0 0 0
12693 }
12694 0 arg3 = (size_t)(val3);
12695 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
12696 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
12697 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "4"" of type '" "char []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "4"" of type '" "char []""'"); 0 0 0
12698 }
12699 0 arg4 = (char *)(buf4);
12700 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_int, 0 | 0 );
12701 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
12702 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "5"" of type '" "int []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_stats_char_Qn_from_sorted_data" "', argument " "5"" of type '" "int []""'"); 0 0 0
12703 }
12704 0 arg5 = (int *)(argp5);
12705 0 result = (double)gsl_stats_char_Qn_from_sorted_data((char const (*))arg1,arg2,arg3,arg4,arg5);
12706 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
12707 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12708
12709
12710 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12711
12712 0 XSRETURN(argvi);
12713 0 fail:
12714 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
12715
12716
12717 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
12718
12719 0 SWIG_croak_null();
12720 }
12721 }
12722  
12723  
12724  
12725 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
12726  
12727 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
12728 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
12729 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
12730 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};
12731 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};
12732 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
12733 static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, (void*)0, 0};
12734  
12735 static swig_type_info *swig_type_initial[] = {
12736 &_swigt__p_FILE,
12737 &_swigt__p_char,
12738 &_swigt__p_double,
12739 &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void,
12740 &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
12741 &_swigt__p_int,
12742 &_swigt__p_size_t,
12743 };
12744  
12745 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
12746 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
12747 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
12748 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}};
12749 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}};
12750 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
12751 static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
12752  
12753 static swig_cast_info *swig_cast_initial[] = {
12754 _swigc__p_FILE,
12755 _swigc__p_char,
12756 _swigc__p_double,
12757 _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void,
12758 _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
12759 _swigc__p_int,
12760 _swigc__p_size_t,
12761 };
12762  
12763  
12764 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
12765  
12766 static swig_constant_info swig_constants[] = {
12767 {0,0,0,0,0,0}
12768 };
12769 #ifdef __cplusplus
12770 }
12771 #endif
12772 static swig_variable_info swig_variables[] = {
12773 {0,0,0,0}
12774 };
12775 static swig_command_info swig_commands[] = {
12776 {"Math::GSL::Statisticsc::gsl_error", _wrap_gsl_error},
12777 {"Math::GSL::Statisticsc::gsl_stream_printf", _wrap_gsl_stream_printf},
12778 {"Math::GSL::Statisticsc::gsl_strerror", _wrap_gsl_strerror},
12779 {"Math::GSL::Statisticsc::gsl_set_error_handler", _wrap_gsl_set_error_handler},
12780 {"Math::GSL::Statisticsc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off},
12781 {"Math::GSL::Statisticsc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler},
12782 {"Math::GSL::Statisticsc::gsl_set_stream", _wrap_gsl_set_stream},
12783 {"Math::GSL::Statisticsc::gsl_stats_mean", _wrap_gsl_stats_mean},
12784 {"Math::GSL::Statisticsc::gsl_stats_variance", _wrap_gsl_stats_variance},
12785 {"Math::GSL::Statisticsc::gsl_stats_sd", _wrap_gsl_stats_sd},
12786 {"Math::GSL::Statisticsc::gsl_stats_variance_with_fixed_mean", _wrap_gsl_stats_variance_with_fixed_mean},
12787 {"Math::GSL::Statisticsc::gsl_stats_sd_with_fixed_mean", _wrap_gsl_stats_sd_with_fixed_mean},
12788 {"Math::GSL::Statisticsc::gsl_stats_tss", _wrap_gsl_stats_tss},
12789 {"Math::GSL::Statisticsc::gsl_stats_tss_m", _wrap_gsl_stats_tss_m},
12790 {"Math::GSL::Statisticsc::gsl_stats_absdev", _wrap_gsl_stats_absdev},
12791 {"Math::GSL::Statisticsc::gsl_stats_skew", _wrap_gsl_stats_skew},
12792 {"Math::GSL::Statisticsc::gsl_stats_kurtosis", _wrap_gsl_stats_kurtosis},
12793 {"Math::GSL::Statisticsc::gsl_stats_lag1_autocorrelation", _wrap_gsl_stats_lag1_autocorrelation},
12794 {"Math::GSL::Statisticsc::gsl_stats_covariance", _wrap_gsl_stats_covariance},
12795 {"Math::GSL::Statisticsc::gsl_stats_correlation", _wrap_gsl_stats_correlation},
12796 {"Math::GSL::Statisticsc::gsl_stats_spearman", _wrap_gsl_stats_spearman},
12797 {"Math::GSL::Statisticsc::gsl_stats_variance_m", _wrap_gsl_stats_variance_m},
12798 {"Math::GSL::Statisticsc::gsl_stats_sd_m", _wrap_gsl_stats_sd_m},
12799 {"Math::GSL::Statisticsc::gsl_stats_absdev_m", _wrap_gsl_stats_absdev_m},
12800 {"Math::GSL::Statisticsc::gsl_stats_skew_m_sd", _wrap_gsl_stats_skew_m_sd},
12801 {"Math::GSL::Statisticsc::gsl_stats_kurtosis_m_sd", _wrap_gsl_stats_kurtosis_m_sd},
12802 {"Math::GSL::Statisticsc::gsl_stats_lag1_autocorrelation_m", _wrap_gsl_stats_lag1_autocorrelation_m},
12803 {"Math::GSL::Statisticsc::gsl_stats_covariance_m", _wrap_gsl_stats_covariance_m},
12804 {"Math::GSL::Statisticsc::gsl_stats_wmean", _wrap_gsl_stats_wmean},
12805 {"Math::GSL::Statisticsc::gsl_stats_wvariance", _wrap_gsl_stats_wvariance},
12806 {"Math::GSL::Statisticsc::gsl_stats_wsd", _wrap_gsl_stats_wsd},
12807 {"Math::GSL::Statisticsc::gsl_stats_wvariance_with_fixed_mean", _wrap_gsl_stats_wvariance_with_fixed_mean},
12808 {"Math::GSL::Statisticsc::gsl_stats_wsd_with_fixed_mean", _wrap_gsl_stats_wsd_with_fixed_mean},
12809 {"Math::GSL::Statisticsc::gsl_stats_wtss", _wrap_gsl_stats_wtss},
12810 {"Math::GSL::Statisticsc::gsl_stats_wtss_m", _wrap_gsl_stats_wtss_m},
12811 {"Math::GSL::Statisticsc::gsl_stats_wabsdev", _wrap_gsl_stats_wabsdev},
12812 {"Math::GSL::Statisticsc::gsl_stats_wskew", _wrap_gsl_stats_wskew},
12813 {"Math::GSL::Statisticsc::gsl_stats_wkurtosis", _wrap_gsl_stats_wkurtosis},
12814 {"Math::GSL::Statisticsc::gsl_stats_wvariance_m", _wrap_gsl_stats_wvariance_m},
12815 {"Math::GSL::Statisticsc::gsl_stats_wsd_m", _wrap_gsl_stats_wsd_m},
12816 {"Math::GSL::Statisticsc::gsl_stats_wabsdev_m", _wrap_gsl_stats_wabsdev_m},
12817 {"Math::GSL::Statisticsc::gsl_stats_wskew_m_sd", _wrap_gsl_stats_wskew_m_sd},
12818 {"Math::GSL::Statisticsc::gsl_stats_wkurtosis_m_sd", _wrap_gsl_stats_wkurtosis_m_sd},
12819 {"Math::GSL::Statisticsc::gsl_stats_pvariance", _wrap_gsl_stats_pvariance},
12820 {"Math::GSL::Statisticsc::gsl_stats_ttest", _wrap_gsl_stats_ttest},
12821 {"Math::GSL::Statisticsc::gsl_stats_max", _wrap_gsl_stats_max},
12822 {"Math::GSL::Statisticsc::gsl_stats_min", _wrap_gsl_stats_min},
12823 {"Math::GSL::Statisticsc::gsl_stats_minmax", _wrap_gsl_stats_minmax},
12824 {"Math::GSL::Statisticsc::gsl_stats_max_index", _wrap_gsl_stats_max_index},
12825 {"Math::GSL::Statisticsc::gsl_stats_min_index", _wrap_gsl_stats_min_index},
12826 {"Math::GSL::Statisticsc::gsl_stats_minmax_index", _wrap_gsl_stats_minmax_index},
12827 {"Math::GSL::Statisticsc::gsl_stats_select", _wrap_gsl_stats_select},
12828 {"Math::GSL::Statisticsc::gsl_stats_median_from_sorted_data", _wrap_gsl_stats_median_from_sorted_data},
12829 {"Math::GSL::Statisticsc::gsl_stats_median", _wrap_gsl_stats_median},
12830 {"Math::GSL::Statisticsc::gsl_stats_quantile_from_sorted_data", _wrap_gsl_stats_quantile_from_sorted_data},
12831 {"Math::GSL::Statisticsc::gsl_stats_trmean_from_sorted_data", _wrap_gsl_stats_trmean_from_sorted_data},
12832 {"Math::GSL::Statisticsc::gsl_stats_gastwirth_from_sorted_data", _wrap_gsl_stats_gastwirth_from_sorted_data},
12833 {"Math::GSL::Statisticsc::gsl_stats_mad0", _wrap_gsl_stats_mad0},
12834 {"Math::GSL::Statisticsc::gsl_stats_mad", _wrap_gsl_stats_mad},
12835 {"Math::GSL::Statisticsc::gsl_stats_Sn0_from_sorted_data", _wrap_gsl_stats_Sn0_from_sorted_data},
12836 {"Math::GSL::Statisticsc::gsl_stats_Sn_from_sorted_data", _wrap_gsl_stats_Sn_from_sorted_data},
12837 {"Math::GSL::Statisticsc::gsl_stats_Qn0_from_sorted_data", _wrap_gsl_stats_Qn0_from_sorted_data},
12838 {"Math::GSL::Statisticsc::gsl_stats_Qn_from_sorted_data", _wrap_gsl_stats_Qn_from_sorted_data},
12839 {"Math::GSL::Statisticsc::gsl_stats_int_mean", _wrap_gsl_stats_int_mean},
12840 {"Math::GSL::Statisticsc::gsl_stats_int_variance", _wrap_gsl_stats_int_variance},
12841 {"Math::GSL::Statisticsc::gsl_stats_int_sd", _wrap_gsl_stats_int_sd},
12842 {"Math::GSL::Statisticsc::gsl_stats_int_variance_with_fixed_mean", _wrap_gsl_stats_int_variance_with_fixed_mean},
12843 {"Math::GSL::Statisticsc::gsl_stats_int_sd_with_fixed_mean", _wrap_gsl_stats_int_sd_with_fixed_mean},
12844 {"Math::GSL::Statisticsc::gsl_stats_int_tss", _wrap_gsl_stats_int_tss},
12845 {"Math::GSL::Statisticsc::gsl_stats_int_tss_m", _wrap_gsl_stats_int_tss_m},
12846 {"Math::GSL::Statisticsc::gsl_stats_int_absdev", _wrap_gsl_stats_int_absdev},
12847 {"Math::GSL::Statisticsc::gsl_stats_int_skew", _wrap_gsl_stats_int_skew},
12848 {"Math::GSL::Statisticsc::gsl_stats_int_kurtosis", _wrap_gsl_stats_int_kurtosis},
12849 {"Math::GSL::Statisticsc::gsl_stats_int_lag1_autocorrelation", _wrap_gsl_stats_int_lag1_autocorrelation},
12850 {"Math::GSL::Statisticsc::gsl_stats_int_covariance", _wrap_gsl_stats_int_covariance},
12851 {"Math::GSL::Statisticsc::gsl_stats_int_correlation", _wrap_gsl_stats_int_correlation},
12852 {"Math::GSL::Statisticsc::gsl_stats_int_spearman", _wrap_gsl_stats_int_spearman},
12853 {"Math::GSL::Statisticsc::gsl_stats_int_variance_m", _wrap_gsl_stats_int_variance_m},
12854 {"Math::GSL::Statisticsc::gsl_stats_int_sd_m", _wrap_gsl_stats_int_sd_m},
12855 {"Math::GSL::Statisticsc::gsl_stats_int_absdev_m", _wrap_gsl_stats_int_absdev_m},
12856 {"Math::GSL::Statisticsc::gsl_stats_int_skew_m_sd", _wrap_gsl_stats_int_skew_m_sd},
12857 {"Math::GSL::Statisticsc::gsl_stats_int_kurtosis_m_sd", _wrap_gsl_stats_int_kurtosis_m_sd},
12858 {"Math::GSL::Statisticsc::gsl_stats_int_lag1_autocorrelation_m", _wrap_gsl_stats_int_lag1_autocorrelation_m},
12859 {"Math::GSL::Statisticsc::gsl_stats_int_covariance_m", _wrap_gsl_stats_int_covariance_m},
12860 {"Math::GSL::Statisticsc::gsl_stats_int_pvariance", _wrap_gsl_stats_int_pvariance},
12861 {"Math::GSL::Statisticsc::gsl_stats_int_ttest", _wrap_gsl_stats_int_ttest},
12862 {"Math::GSL::Statisticsc::gsl_stats_int_max", _wrap_gsl_stats_int_max},
12863 {"Math::GSL::Statisticsc::gsl_stats_int_min", _wrap_gsl_stats_int_min},
12864 {"Math::GSL::Statisticsc::gsl_stats_int_minmax", _wrap_gsl_stats_int_minmax},
12865 {"Math::GSL::Statisticsc::gsl_stats_int_max_index", _wrap_gsl_stats_int_max_index},
12866 {"Math::GSL::Statisticsc::gsl_stats_int_min_index", _wrap_gsl_stats_int_min_index},
12867 {"Math::GSL::Statisticsc::gsl_stats_int_minmax_index", _wrap_gsl_stats_int_minmax_index},
12868 {"Math::GSL::Statisticsc::gsl_stats_int_select", _wrap_gsl_stats_int_select},
12869 {"Math::GSL::Statisticsc::gsl_stats_int_median_from_sorted_data", _wrap_gsl_stats_int_median_from_sorted_data},
12870 {"Math::GSL::Statisticsc::gsl_stats_int_median", _wrap_gsl_stats_int_median},
12871 {"Math::GSL::Statisticsc::gsl_stats_int_quantile_from_sorted_data", _wrap_gsl_stats_int_quantile_from_sorted_data},
12872 {"Math::GSL::Statisticsc::gsl_stats_int_trmean_from_sorted_data", _wrap_gsl_stats_int_trmean_from_sorted_data},
12873 {"Math::GSL::Statisticsc::gsl_stats_int_gastwirth_from_sorted_data", _wrap_gsl_stats_int_gastwirth_from_sorted_data},
12874 {"Math::GSL::Statisticsc::gsl_stats_int_mad0", _wrap_gsl_stats_int_mad0},
12875 {"Math::GSL::Statisticsc::gsl_stats_int_mad", _wrap_gsl_stats_int_mad},
12876 {"Math::GSL::Statisticsc::gsl_stats_int_Sn0_from_sorted_data", _wrap_gsl_stats_int_Sn0_from_sorted_data},
12877 {"Math::GSL::Statisticsc::gsl_stats_int_Sn_from_sorted_data", _wrap_gsl_stats_int_Sn_from_sorted_data},
12878 {"Math::GSL::Statisticsc::gsl_stats_int_Qn0_from_sorted_data", _wrap_gsl_stats_int_Qn0_from_sorted_data},
12879 {"Math::GSL::Statisticsc::gsl_stats_int_Qn_from_sorted_data", _wrap_gsl_stats_int_Qn_from_sorted_data},
12880 {"Math::GSL::Statisticsc::gsl_stats_char_mean", _wrap_gsl_stats_char_mean},
12881 {"Math::GSL::Statisticsc::gsl_stats_char_variance", _wrap_gsl_stats_char_variance},
12882 {"Math::GSL::Statisticsc::gsl_stats_char_sd", _wrap_gsl_stats_char_sd},
12883 {"Math::GSL::Statisticsc::gsl_stats_char_variance_with_fixed_mean", _wrap_gsl_stats_char_variance_with_fixed_mean},
12884 {"Math::GSL::Statisticsc::gsl_stats_char_sd_with_fixed_mean", _wrap_gsl_stats_char_sd_with_fixed_mean},
12885 {"Math::GSL::Statisticsc::gsl_stats_char_tss", _wrap_gsl_stats_char_tss},
12886 {"Math::GSL::Statisticsc::gsl_stats_char_tss_m", _wrap_gsl_stats_char_tss_m},
12887 {"Math::GSL::Statisticsc::gsl_stats_char_absdev", _wrap_gsl_stats_char_absdev},
12888 {"Math::GSL::Statisticsc::gsl_stats_char_skew", _wrap_gsl_stats_char_skew},
12889 {"Math::GSL::Statisticsc::gsl_stats_char_kurtosis", _wrap_gsl_stats_char_kurtosis},
12890 {"Math::GSL::Statisticsc::gsl_stats_char_lag1_autocorrelation", _wrap_gsl_stats_char_lag1_autocorrelation},
12891 {"Math::GSL::Statisticsc::gsl_stats_char_covariance", _wrap_gsl_stats_char_covariance},
12892 {"Math::GSL::Statisticsc::gsl_stats_char_correlation", _wrap_gsl_stats_char_correlation},
12893 {"Math::GSL::Statisticsc::gsl_stats_char_spearman", _wrap_gsl_stats_char_spearman},
12894 {"Math::GSL::Statisticsc::gsl_stats_char_variance_m", _wrap_gsl_stats_char_variance_m},
12895 {"Math::GSL::Statisticsc::gsl_stats_char_sd_m", _wrap_gsl_stats_char_sd_m},
12896 {"Math::GSL::Statisticsc::gsl_stats_char_absdev_m", _wrap_gsl_stats_char_absdev_m},
12897 {"Math::GSL::Statisticsc::gsl_stats_char_skew_m_sd", _wrap_gsl_stats_char_skew_m_sd},
12898 {"Math::GSL::Statisticsc::gsl_stats_char_kurtosis_m_sd", _wrap_gsl_stats_char_kurtosis_m_sd},
12899 {"Math::GSL::Statisticsc::gsl_stats_char_lag1_autocorrelation_m", _wrap_gsl_stats_char_lag1_autocorrelation_m},
12900 {"Math::GSL::Statisticsc::gsl_stats_char_covariance_m", _wrap_gsl_stats_char_covariance_m},
12901 {"Math::GSL::Statisticsc::gsl_stats_char_pvariance", _wrap_gsl_stats_char_pvariance},
12902 {"Math::GSL::Statisticsc::gsl_stats_char_ttest", _wrap_gsl_stats_char_ttest},
12903 {"Math::GSL::Statisticsc::gsl_stats_char_max", _wrap_gsl_stats_char_max},
12904 {"Math::GSL::Statisticsc::gsl_stats_char_min", _wrap_gsl_stats_char_min},
12905 {"Math::GSL::Statisticsc::gsl_stats_char_minmax", _wrap_gsl_stats_char_minmax},
12906 {"Math::GSL::Statisticsc::gsl_stats_char_max_index", _wrap_gsl_stats_char_max_index},
12907 {"Math::GSL::Statisticsc::gsl_stats_char_min_index", _wrap_gsl_stats_char_min_index},
12908 {"Math::GSL::Statisticsc::gsl_stats_char_minmax_index", _wrap_gsl_stats_char_minmax_index},
12909 {"Math::GSL::Statisticsc::gsl_stats_char_select", _wrap_gsl_stats_char_select},
12910 {"Math::GSL::Statisticsc::gsl_stats_char_median_from_sorted_data", _wrap_gsl_stats_char_median_from_sorted_data},
12911 {"Math::GSL::Statisticsc::gsl_stats_char_median", _wrap_gsl_stats_char_median},
12912 {"Math::GSL::Statisticsc::gsl_stats_char_quantile_from_sorted_data", _wrap_gsl_stats_char_quantile_from_sorted_data},
12913 {"Math::GSL::Statisticsc::gsl_stats_char_trmean_from_sorted_data", _wrap_gsl_stats_char_trmean_from_sorted_data},
12914 {"Math::GSL::Statisticsc::gsl_stats_char_gastwirth_from_sorted_data", _wrap_gsl_stats_char_gastwirth_from_sorted_data},
12915 {"Math::GSL::Statisticsc::gsl_stats_char_mad0", _wrap_gsl_stats_char_mad0},
12916 {"Math::GSL::Statisticsc::gsl_stats_char_mad", _wrap_gsl_stats_char_mad},
12917 {"Math::GSL::Statisticsc::gsl_stats_char_Sn0_from_sorted_data", _wrap_gsl_stats_char_Sn0_from_sorted_data},
12918 {"Math::GSL::Statisticsc::gsl_stats_char_Sn_from_sorted_data", _wrap_gsl_stats_char_Sn_from_sorted_data},
12919 {"Math::GSL::Statisticsc::gsl_stats_char_Qn0_from_sorted_data", _wrap_gsl_stats_char_Qn0_from_sorted_data},
12920 {"Math::GSL::Statisticsc::gsl_stats_char_Qn_from_sorted_data", _wrap_gsl_stats_char_Qn_from_sorted_data},
12921 {0,0}
12922 };
12923 /* -----------------------------------------------------------------------------
12924 * Type initialization:
12925 * This problem is tough by the requirement that no dynamic
12926 * memory is used. Also, since swig_type_info structures store pointers to
12927 * swig_cast_info structures and swig_cast_info structures store pointers back
12928 * to swig_type_info structures, we need some lookup code at initialization.
12929 * The idea is that swig generates all the structures that are needed.
12930 * The runtime then collects these partially filled structures.
12931 * The SWIG_InitializeModule function takes these initial arrays out of
12932 * swig_module, and does all the lookup, filling in the swig_module.types
12933 * array with the correct data and linking the correct swig_cast_info
12934 * structures together.
12935 *
12936 * The generated swig_type_info structures are assigned statically to an initial
12937 * array. We just loop through that array, and handle each type individually.
12938 * First we lookup if this type has been already loaded, and if so, use the
12939 * loaded structure instead of the generated one. Then we have to fill in the
12940 * cast linked list. The cast data is initially stored in something like a
12941 * two-dimensional array. Each row corresponds to a type (there are the same
12942 * number of rows as there are in the swig_type_initial array). Each entry in
12943 * a column is one of the swig_cast_info structures for that type.
12944 * The cast_initial array is actually an array of arrays, because each row has
12945 * a variable number of columns. So to actually build the cast linked list,
12946 * we find the array of casts associated with the type, and loop through it
12947 * adding the casts to the list. The one last trick we need to do is making
12948 * sure the type pointer in the swig_cast_info struct is correct.
12949 *
12950 * First off, we lookup the cast->type name to see if it is already loaded.
12951 * There are three cases to handle:
12952 * 1) If the cast->type has already been loaded AND the type we are adding
12953 * casting info to has not been loaded (it is in this module), THEN we
12954 * replace the cast->type pointer with the type pointer that has already
12955 * been loaded.
12956 * 2) If BOTH types (the one we are adding casting info to, and the
12957 * cast->type) are loaded, THEN the cast info has already been loaded by
12958 * the previous module so we just ignore it.
12959 * 3) Finally, if cast->type has not already been loaded, then we add that
12960 * swig_cast_info to the linked list (because the cast->type) pointer will
12961 * be correct.
12962 * ----------------------------------------------------------------------------- */
12963  
12964 #ifdef __cplusplus
12965 extern "C" {
12966 #if 0
12967 } /* c-mode */
12968 #endif
12969 #endif
12970  
12971 #if 0
12972 #define SWIGRUNTIME_DEBUG
12973 #endif
12974  
12975 #ifndef SWIG_INIT_CLIENT_DATA_TYPE
12976 #define SWIG_INIT_CLIENT_DATA_TYPE void *
12977 #endif
12978  
12979 SWIGRUNTIME void
12980 0 SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
12981 size_t i;
12982 swig_module_info *module_head, *iter;
12983 int init;
12984
12985 /* check to see if the circular list has been setup, if not, set it up */
12986 0 ▶ if (swig_module.next==0) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next==0) { 0 0 0
12987 /* Initialize the swig_module */
12988 0 swig_module.type_initial = swig_type_initial;
12989 0 swig_module.cast_initial = swig_cast_initial;
12990 0 swig_module.next = &swig_module;
12991 0 init = 1;
12992 } else {
12993 0 init = 0;
12994 }
12995
12996 /* Try and load any already created modules */
12997 0 module_head = SWIG_GetModule(clientdata);
12998 0 ▶ if (!module_head) {
Branch: 1 branch
BranchTrueFalseTotal
if (!module_head) { 0 0 0
12999 /* This is the first module loaded for this interpreter */
13000 /* so set the swig module into the interpreter */
13001 0 SWIG_SetModule(clientdata, &swig_module);
13002 } else {
13003 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
13004 0 iter=module_head;
13005 do {
13006 0 ▶ if (iter==&swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter==&swig_module) { 0 0 0
13007 /* Our module is already in the list, so there's nothing more to do. */
13008 0 return;
13009 }
13010 0 iter=iter->next;
13011 0 ▶ } while (iter!= module_head);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter!= module_head); 0 0 0
13012
13013 /* otherwise we must add our module into the list */
13014 0 swig_module.next = module_head->next;
13015 0 module_head->next = &swig_module;
13016 }
13017
13018 /* When multiple interpreters are used, a module could have already been initialized in
13019 a different interpreter, but not yet have a pointer in this interpreter.
13020 In this case, we do not want to continue adding types... everything should be
13021 set up already */
13022 0 ▶ if (init == 0) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init == 0) return; 0 0 0
13023
13024 /* Now work on filling in swig_module.types */
13025 #ifdef SWIGRUNTIME_DEBUG
13026 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
13027 #endif
13028 0 ▶ for (i = 0; i < swig_module.size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; ++i) { 0 0 0
13029 0 swig_type_info *type = 0;
13030 swig_type_info *ret;
13031 swig_cast_info *cast;
13032
13033 #ifdef SWIGRUNTIME_DEBUG
13034 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
13035 #endif
13036
13037 /* if there is another module already loaded */
13038 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
13039 0 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
13040 }
13041 0 ▶ if (type) {
Branch: 1 branch
BranchTrueFalseTotal
if (type) { 0 0 0
13042 /* Overwrite clientdata field */
13043 #ifdef SWIGRUNTIME_DEBUG
13044 printf("SWIG_InitializeModule: found type %s\n", type->name);
13045 #endif
13046 0 ▶ if (swig_module.type_initial[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.type_initial[i]->clientdata) { 0 0 0
13047 0 type->clientdata = swig_module.type_initial[i]->clientdata;
13048 #ifdef SWIGRUNTIME_DEBUG
13049 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
13050 #endif
13051 }
13052 } else {
13053 0 type = swig_module.type_initial[i];
13054 }
13055
13056 /* Insert casting types */
13057 0 cast = swig_module.cast_initial[i];
13058 0 ▶ while (cast->type) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast->type) { 0 0 0
13059 /* Don't need to add information already in the list */
13060 0 ret = 0;
13061 #ifdef SWIGRUNTIME_DEBUG
13062 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
13063 #endif
13064 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
13065 0 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
13066 #ifdef SWIGRUNTIME_DEBUG
13067 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
13068 #endif
13069 }
13070 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
13071 0 ▶ if (type == swig_module.type_initial[i]) {
Branch: 1 branch
BranchTrueFalseTotal
if (type == swig_module.type_initial[i]) { 0 0 0
13072 #ifdef SWIGRUNTIME_DEBUG
13073 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
13074 #endif
13075 0 cast->type = ret;
13076 0 ret = 0;
13077 } else {
13078 /* Check for casting already in the list */
13079 0 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
13080 #ifdef SWIGRUNTIME_DEBUG
13081 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
13082 #endif
13083 0 ▶ if (!ocast) ret = 0;
Branch: 1 branch
BranchTrueFalseTotal
if (!ocast) ret = 0; 0 0 0
13084 }
13085 }
13086
13087 0 ▶ if (!ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (!ret) { 0 0 0
13088 #ifdef SWIGRUNTIME_DEBUG
13089 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
13090 #endif
13091 0 ▶ if (type->cast) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->cast) { 0 0 0
13092 0 type->cast->prev = cast;
13093 0 cast->next = type->cast;
13094 }
13095 0 type->cast = cast;
13096 }
13097 0 cast++;
13098 }
13099 /* Set entry in modules->types array equal to the type */
13100 0 swig_module.types[i] = type;
13101 }
13102 0 swig_module.types[i] = 0;
13103
13104 #ifdef SWIGRUNTIME_DEBUG
13105 printf("**** SWIG_InitializeModule: Cast List ******\n");
13106 for (i = 0; i < swig_module.size; ++i) {
13107 int j = 0;
13108 swig_cast_info *cast = swig_module.cast_initial[i];
13109 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
13110 while (cast->type) {
13111 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
13112 cast++;
13113 ++j;
13114 }
13115 printf("---- Total casts: %d\n",j);
13116 }
13117 printf("**** SWIG_InitializeModule: Cast List ******\n");
13118 #endif
13119 }
13120  
13121 /* This function will propagate the clientdata field of type to
13122 * any new swig_type_info structures that have been added into the list
13123 * of equivalent types. It is like calling
13124 * SWIG_TypeClientData(type, clientdata) a second time.
13125 */
13126 SWIGRUNTIME void
13127 0 SWIG_PropagateClientData(void) {
13128 size_t i;
13129 swig_cast_info *equiv;
13130 static int init_run = 0;
13131
13132 0 ▶ if (init_run) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init_run) return; 0 0 0
13133 0 init_run = 1;
13134
13135 0 ▶ for (i = 0; i < swig_module.size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; i++) { 0 0 0
13136 0 ▶ if (swig_module.types[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.types[i]->clientdata) { 0 0 0
13137 0 equiv = swig_module.types[i]->cast;
13138 0 ▶ while (equiv) {
Branch: 1 branch
BranchTrueFalseTotal
while (equiv) { 0 0 0
13139 0 ▶ if (!equiv->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!equiv->converter) { 0 0 0
13140 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
13141 0 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
13142 }
13143 0 equiv = equiv->next;
13144 }
13145 }
13146 }
13147 }
13148  
13149 #ifdef __cplusplus
13150 #if 0
13151 {
13152 /* c-mode */
13153 #endif
13154 }
13155 #endif
13156  
13157  
13158  
13159 #if defined(__cplusplus) && ! defined(XSPROTO)
13160 extern "C"
13161 #endif
13162  
13163 0 XS(SWIG_init) {
13164 0 dXSARGS;
13165 int i;
13166 (void)items;
13167
13168 0 SWIG_InitializeModule(0);
13169
13170 /* Install commands */
13171 0 ▶ for (i = 0; swig_commands[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_commands[i].name; i++) { 0 0 0
13172 /* Casts only needed for Perl < 5.10. */
13173 #ifdef __cplusplus
13174 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
13175 #else
13176 0 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
13177 #endif
13178 }
13179
13180 /* Install variables */
13181 0 ▶ for (i = 0; swig_variables[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_variables[i].name; i++) { 0 0 0
13182 SV *sv;
13183 0 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
13184 0 ▶ if (swig_variables[i].type) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_variables[i].type) { 0 0 0
13185 0 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
13186 } else {
13187 0 sv_setiv(sv,(IV) 0);
13188 }
13189 0 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
13190 }
13191
13192 /* Install constant */
13193 0 ▶ for (i = 0; swig_constants[i].type; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_constants[i].type; i++) { 0 0 0
13194 SV *sv;
13195 0 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
13196 0 switch(swig_constants[i].type) {
13197 0 case SWIG_INT:
13198 0 sv_setiv(sv, (IV) swig_constants[i].lvalue);
13199 0 break;
13200 0 case SWIG_FLOAT:
13201 0 sv_setnv(sv, (double) swig_constants[i].dvalue);
13202 0 break;
13203 0 case SWIG_STRING:
13204 0 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
13205 0 break;
13206 0 case SWIG_POINTER:
13207 0 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
13208 0 break;
13209 0 case SWIG_BINARY:
13210 0 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
13211 0 break;
13212 0 default:
13213 0 break;
13214 }
13215 0 SvREADONLY_on(sv);
13216 }
13217
13218 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13219 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI);
13220 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8)));
13221 0 SvREADONLY_on(sv);
13222 } while(0) /*@SWIG@*/;
13223 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13224 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
13225 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2)));
13226 0 SvREADONLY_on(sv);
13227 } while(0) /*@SWIG@*/;
13228 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13229 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
13230 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8)));
13231 0 SvREADONLY_on(sv);
13232 } while(0) /*@SWIG@*/;
13233 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13234 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI);
13235 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0))));
13236 0 SvREADONLY_on(sv);
13237 } while(0) /*@SWIG@*/;
13238 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13239 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI);
13240 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0))));
13241 0 SvREADONLY_on(sv);
13242 } while(0) /*@SWIG@*/;
13243 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13244 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
13245 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS)));
13246 0 SvREADONLY_on(sv);
13247 } while(0) /*@SWIG@*/;
13248 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13249 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
13250 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE)));
13251 0 SvREADONLY_on(sv);
13252 } while(0) /*@SWIG@*/;
13253 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13254 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI);
13255 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE)));
13256 0 SvREADONLY_on(sv);
13257 } while(0) /*@SWIG@*/;
13258 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13259 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI);
13260 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM)));
13261 0 SvREADONLY_on(sv);
13262 } while(0) /*@SWIG@*/;
13263 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13264 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI);
13265 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE)));
13266 0 SvREADONLY_on(sv);
13267 } while(0) /*@SWIG@*/;
13268 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13269 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI);
13270 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT)));
13271 0 SvREADONLY_on(sv);
13272 } while(0) /*@SWIG@*/;
13273 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13274 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
13275 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL)));
13276 0 SvREADONLY_on(sv);
13277 } while(0) /*@SWIG@*/;
13278 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13279 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI);
13280 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED)));
13281 0 SvREADONLY_on(sv);
13282 } while(0) /*@SWIG@*/;
13283 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13284 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI);
13285 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR)));
13286 0 SvREADONLY_on(sv);
13287 } while(0) /*@SWIG@*/;
13288 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13289 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI);
13290 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY)));
13291 0 SvREADONLY_on(sv);
13292 } while(0) /*@SWIG@*/;
13293 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13294 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI);
13295 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM)));
13296 0 SvREADONLY_on(sv);
13297 } while(0) /*@SWIG@*/;
13298 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13299 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI);
13300 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC)));
13301 0 SvREADONLY_on(sv);
13302 } while(0) /*@SWIG@*/;
13303 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13304 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI);
13305 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY)));
13306 0 SvREADONLY_on(sv);
13307 } while(0) /*@SWIG@*/;
13308 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13309 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI);
13310 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER)));
13311 0 SvREADONLY_on(sv);
13312 } while(0) /*@SWIG@*/;
13313 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13314 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI);
13315 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV)));
13316 0 SvREADONLY_on(sv);
13317 } while(0) /*@SWIG@*/;
13318 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13319 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI);
13320 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL)));
13321 0 SvREADONLY_on(sv);
13322 } while(0) /*@SWIG@*/;
13323 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13324 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI);
13325 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL)));
13326 0 SvREADONLY_on(sv);
13327 } while(0) /*@SWIG@*/;
13328 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13329 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI);
13330 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW)));
13331 0 SvREADONLY_on(sv);
13332 } while(0) /*@SWIG@*/;
13333 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13334 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI);
13335 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW)));
13336 0 SvREADONLY_on(sv);
13337 } while(0) /*@SWIG@*/;
13338 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13339 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI);
13340 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS)));
13341 0 SvREADONLY_on(sv);
13342 } while(0) /*@SWIG@*/;
13343 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13344 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI);
13345 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND)));
13346 0 SvREADONLY_on(sv);
13347 } while(0) /*@SWIG@*/;
13348 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13349 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI);
13350 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN)));
13351 0 SvREADONLY_on(sv);
13352 } while(0) /*@SWIG@*/;
13353 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13354 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI);
13355 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR)));
13356 0 SvREADONLY_on(sv);
13357 } while(0) /*@SWIG@*/;
13358 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13359 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI);
13360 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING)));
13361 0 SvREADONLY_on(sv);
13362 } while(0) /*@SWIG@*/;
13363 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13364 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI);
13365 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE)));
13366 0 SvREADONLY_on(sv);
13367 } while(0) /*@SWIG@*/;
13368 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13369 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI);
13370 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP)));
13371 0 SvREADONLY_on(sv);
13372 } while(0) /*@SWIG@*/;
13373 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13374 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI);
13375 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL)));
13376 0 SvREADONLY_on(sv);
13377 } while(0) /*@SWIG@*/;
13378 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13379 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI);
13380 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE)));
13381 0 SvREADONLY_on(sv);
13382 } while(0) /*@SWIG@*/;
13383 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13384 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI);
13385 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE)));
13386 0 SvREADONLY_on(sv);
13387 } while(0) /*@SWIG@*/;
13388 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13389 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI);
13390 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG)));
13391 0 SvREADONLY_on(sv);
13392 } while(0) /*@SWIG@*/;
13393 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13394 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI);
13395 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ)));
13396 0 SvREADONLY_on(sv);
13397 } while(0) /*@SWIG@*/;
13398 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13399 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI);
13400 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF)));
13401 0 SvREADONLY_on(sv);
13402 } while(0) /*@SWIG@*/;
13403 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13404 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI);
13405 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX)));
13406 0 SvREADONLY_on(sv);
13407 } while(0) /*@SWIG@*/;
13408 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13409 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI);
13410 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG)));
13411 0 SvREADONLY_on(sv);
13412 } while(0) /*@SWIG@*/;
13413 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
13414 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI);
13415 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF)));
13416 0 SvREADONLY_on(sv);
13417 } while(0) /*@SWIG@*/;
13418 0 ST(0) = &PL_sv_yes;
13419 0 XSRETURN(1);
13420 }
13421  
« xs/Spline_wrap.2.8.c ↑ Summary xs/Sum_wrap.2.8.c »