xs/Sort_wrap.2.8.c

filter: Statementstmt 0.0% 0 / 2701 Branchbran 0.0% 0 / 1526 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 4227 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Siman_wrap.2.8.c ↑ Summary xs/SparseMatrix_wrap.2.8.c »
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.0
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8  
9  
10 #define SWIG_VERSION 0x040200
11 #define SWIGPERL
12 #define SWIG_CASTRANK_MODE
13  
14 /* -----------------------------------------------------------------------------
15 * This section contains generic SWIG labels for method/variable
16 * declarations/attributes, and other compiler dependent labels.
17 * ----------------------------------------------------------------------------- */
18  
19 /* template workaround for compilers that cannot correctly implement the C++ standard */
20 #ifndef SWIGTEMPLATEDISAMBIGUATOR
21 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
22 # define SWIGTEMPLATEDISAMBIGUATOR template
23 # elif defined(__HP_aCC)
24 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
25 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
26 # define SWIGTEMPLATEDISAMBIGUATOR template
27 # else
28 # define SWIGTEMPLATEDISAMBIGUATOR
29 # endif
30 #endif
31  
32 /* inline attribute */
33 #ifndef SWIGINLINE
34 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
35 # define SWIGINLINE inline
36 # else
37 # define SWIGINLINE
38 # endif
39 #endif
40  
41 /* attribute recognised by some compilers to avoid 'unused' warnings */
42 #ifndef SWIGUNUSED
43 # if defined(__GNUC__)
44 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
45 # define SWIGUNUSED __attribute__ ((__unused__))
46 # else
47 # define SWIGUNUSED
48 # endif
49 # elif defined(__ICC)
50 # define SWIGUNUSED __attribute__ ((__unused__))
51 # else
52 # define SWIGUNUSED
53 # endif
54 #endif
55  
56 #ifndef SWIG_MSC_UNSUPPRESS_4505
57 # if defined(_MSC_VER)
58 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
59 # endif
60 #endif
61  
62 #ifndef SWIGUNUSEDPARM
63 # ifdef __cplusplus
64 # define SWIGUNUSEDPARM(p)
65 # else
66 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
67 # endif
68 #endif
69  
70 /* internal SWIG method */
71 #ifndef SWIGINTERN
72 # define SWIGINTERN static SWIGUNUSED
73 #endif
74  
75 /* internal inline SWIG method */
76 #ifndef SWIGINTERNINLINE
77 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
78 #endif
79  
80 /* exporting methods */
81 #if defined(__GNUC__)
82 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
83 # ifndef GCC_HASCLASSVISIBILITY
84 # define GCC_HASCLASSVISIBILITY
85 # endif
86 # endif
87 #endif
88  
89 #ifndef SWIGEXPORT
90 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
91 # if defined(STATIC_LINKED)
92 # define SWIGEXPORT
93 # else
94 # define SWIGEXPORT __declspec(dllexport)
95 # endif
96 # else
97 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
98 # define SWIGEXPORT __attribute__ ((visibility("default")))
99 # else
100 # define SWIGEXPORT
101 # endif
102 # endif
103 #endif
104  
105 /* calling conventions for Windows */
106 #ifndef SWIGSTDCALL
107 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
108 # define SWIGSTDCALL __stdcall
109 # else
110 # define SWIGSTDCALL
111 # endif
112 #endif
113  
114 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
115 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
116 # define _CRT_SECURE_NO_DEPRECATE
117 #endif
118  
119 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
120 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
121 # define _SCL_SECURE_NO_DEPRECATE
122 #endif
123  
124 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
125 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
126 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
127 #endif
128  
129 /* Intel's compiler complains if a variable which was never initialised is
130 * cast to void, which is a common idiom which we use to indicate that we
131 * are aware a variable isn't used. So we just silence that warning.
132 * See: https://github.com/swig/swig/issues/192 for more discussion.
133 */
134 #ifdef __INTEL_COMPILER
135 # pragma warning disable 592
136 #endif
137  
138 #if __cplusplus >=201103L
139 # define SWIG_NULLPTR nullptr
140 #else
141 # define SWIG_NULLPTR NULL
142 #endif
143  
144 /* -----------------------------------------------------------------------------
145 * swigrun.swg
146 *
147 * This file contains generic C API SWIG runtime support for pointer
148 * type checking.
149 * ----------------------------------------------------------------------------- */
150  
151 /* This should only be incremented when either the layout of swig_type_info changes,
152 or for whatever reason, the runtime changes incompatibly */
153 #define SWIG_RUNTIME_VERSION "4"
154  
155 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
156 #ifdef SWIG_TYPE_TABLE
157 # define SWIG_QUOTE_STRING(x) #x
158 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
159 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
160 #else
161 # define SWIG_TYPE_TABLE_NAME
162 #endif
163  
164 /*
165 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
166 creating a static or dynamic library from the SWIG runtime code.
167 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
168  
169 But only do this if strictly necessary, ie, if you have problems
170 with your compiler or suchlike.
171 */
172  
173 #ifndef SWIGRUNTIME
174 # define SWIGRUNTIME SWIGINTERN
175 #endif
176  
177 #ifndef SWIGRUNTIMEINLINE
178 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
179 #endif
180  
181 /* Generic buffer size */
182 #ifndef SWIG_BUFFER_SIZE
183 # define SWIG_BUFFER_SIZE 1024
184 #endif
185  
186 /* Flags for pointer conversions */
187 #define SWIG_POINTER_DISOWN 0x1
188 #define SWIG_CAST_NEW_MEMORY 0x2
189 #define SWIG_POINTER_NO_NULL 0x4
190 #define SWIG_POINTER_CLEAR 0x8
191 #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
192  
193 /* Flags for new pointer objects */
194 #define SWIG_POINTER_OWN 0x1
195  
196  
197 /*
198 Flags/methods for returning states.
199  
200 The SWIG conversion methods, as ConvertPtr, return an integer
201 that tells if the conversion was successful or not. And if not,
202 an error code can be returned (see swigerrors.swg for the codes).
203  
204 Use the following macros/flags to set or process the returning
205 states.
206  
207 In old versions of SWIG, code such as the following was usually written:
208  
209 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
210 // success code
211 } else {
212 //fail code
213 }
214  
215 Now you can be more explicit:
216  
217 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
218 if (SWIG_IsOK(res)) {
219 // success code
220 } else {
221 // fail code
222 }
223  
224 which is the same really, but now you can also do
225  
226 Type *ptr;
227 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
228 if (SWIG_IsOK(res)) {
229 // success code
230 if (SWIG_IsNewObj(res) {
231 ...
232 delete *ptr;
233 } else {
234 ...
235 }
236 } else {
237 // fail code
238 }
239  
240 I.e., now SWIG_ConvertPtr can return new objects and you can
241 identify the case and take care of the deallocation. Of course that
242 also requires SWIG_ConvertPtr to return new result values, such as
243  
244 int SWIG_ConvertPtr(obj, ptr,...) {
245 if (<obj is ok>) {
246 if (<need new object>) {
247 *ptr = <ptr to new allocated object>;
248 return SWIG_NEWOBJ;
249 } else {
250 *ptr = <ptr to old object>;
251 return SWIG_OLDOBJ;
252 }
253 } else {
254 return SWIG_BADOBJ;
255 }
256 }
257  
258 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
259 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
260 SWIG errors code.
261  
262 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
263 allows returning the 'cast rank', for example, if you have this
264  
265 int food(double)
266 int fooi(int);
267  
268 and you call
269  
270 food(1) // cast rank '1' (1 -> 1.0)
271 fooi(1) // cast rank '0'
272  
273 just use the SWIG_AddCast()/SWIG_CheckState()
274 */
275  
276 #define SWIG_OK (0)
277 /* Runtime errors are < 0 */
278 #define SWIG_ERROR (-1)
279 /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
280 /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
281 /* Errors < -200 are generic runtime specific errors */
282 #define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
283  
284 #define SWIG_IsOK(r) (r >= 0)
285 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
286  
287 /* The CastRankLimit says how many bits are used for the cast rank */
288 #define SWIG_CASTRANKLIMIT (1 << 8)
289 /* The NewMask denotes the object was created (using new/malloc) */
290 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
291 /* The TmpMask is for in/out typemaps that use temporary objects */
292 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
293 /* Simple returning values */
294 #define SWIG_BADOBJ (SWIG_ERROR)
295 #define SWIG_OLDOBJ (SWIG_OK)
296 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
297 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
298 /* Check, add and del object mask methods */
299 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
300 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
301 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
302 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
303 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
304 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
305  
306 /* Cast-Rank Mode */
307 #if defined(SWIG_CASTRANK_MODE)
308 # ifndef SWIG_TypeRank
309 # define SWIG_TypeRank unsigned long
310 # endif
311 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
312 # define SWIG_MAXCASTRANK (2)
313 # endif
314 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
315 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
316 0 SWIGINTERNINLINE int SWIG_AddCast(int r) {
317 0 ▶ return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
Branch: 2 branches
BranchTrueFalseTotal
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; 0 0 0
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; 0 0 0
318 }
319 SWIGINTERNINLINE int SWIG_CheckState(int r) {
320 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
321 }
322 #else /* no cast-rank mode */
323 # define SWIG_AddCast(r) (r)
324 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
325 #endif
326  
327 /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
328 * if you're missing it.
329 */
330 #if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
331 (defined __cplusplus && __cplusplus >= 201103L) || \
332 defined SWIG_HAVE_SNPRINTF) && \
333 !defined SWIG_NO_SNPRINTF
334 # define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
335 # define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
336 #else
337 /* Fallback versions ignore the buffer size, but most of our uses either have a
338 * fixed maximum possible size or dynamically allocate a buffer that's large
339 * enough.
340 */
341 # define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
342 # define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
343 #endif
344  
345 #include <string.h>
346  
347 #ifdef __cplusplus
348 extern "C" {
349 #endif
350  
351 typedef void *(*swig_converter_func)(void *, int *);
352 typedef struct swig_type_info *(*swig_dycast_func)(void **);
353  
354 /* Structure to store information on one type */
355 typedef struct swig_type_info {
356 const char *name; /* mangled name of this type */
357 const char *str; /* human readable name of this type */
358 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
359 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
360 void *clientdata; /* language specific type data */
361 int owndata; /* flag if the structure owns the clientdata */
362 } swig_type_info;
363  
364 /* Structure to store a type and conversion function used for casting */
365 typedef struct swig_cast_info {
366 swig_type_info *type; /* pointer to type that is equivalent to this type */
367 swig_converter_func converter; /* function to cast the void pointers */
368 struct swig_cast_info *next; /* pointer to next cast in linked list */
369 struct swig_cast_info *prev; /* pointer to the previous cast */
370 } swig_cast_info;
371  
372 /* Structure used to store module information
373 * Each module generates one structure like this, and the runtime collects
374 * all of these structures and stores them in a circularly linked list.*/
375 typedef struct swig_module_info {
376 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
377 size_t size; /* Number of types in this module */
378 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
379 swig_type_info **type_initial; /* Array of initially generated type structures */
380 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
381 void *clientdata; /* Language specific module data */
382 } swig_module_info;
383  
384 /*
385 Compare two type names skipping the space characters, therefore
386 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
387  
388 Return 0 when the two name types are equivalent, as in
389 strncmp, but skipping ' '.
390 */
391 SWIGRUNTIME int
392 0 SWIG_TypeNameComp(const char *f1, const char *l1,
393 const char *f2, const char *l2) {
394 0 ▶ for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
Branch: 2 branches
BranchTrueFalseTotal
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { 0 0 0
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { 0 0 0
395 0 ▶ while ((*f1 == ' ') && (f1 != l1)) ++f1;
Branch: 2 branches
BranchTrueFalseTotal
while ((*f1 == ' ') && (f1 != l1)) ++f1; 0 0 0
while ((*f1 == ' ') && (f1 != l1)) ++f1; 0 0 0
396 0 ▶ while ((*f2 == ' ') && (f2 != l2)) ++f2;
Branch: 2 branches
BranchTrueFalseTotal
while ((*f2 == ' ') && (f2 != l2)) ++f2; 0 0 0
while ((*f2 == ' ') && (f2 != l2)) ++f2; 0 0 0
397 0 ▶ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
Branch: 2 branches
BranchTrueFalseTotal
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; 0 0 0
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; 0 0 0
398 }
399 0 return (int)((l1 - f1) - (l2 - f2));
400 }
401  
402 /*
403 Check type equivalence in a name list like <name1>|<name2>|...
404 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
405 */
406 SWIGRUNTIME int
407 0 SWIG_TypeCmp(const char *nb, const char *tb) {
408 0 int equiv = 1;
409 0 const char* te = tb + strlen(tb);
410 0 const char* ne = nb;
411 0 ▶ while (equiv != 0 && *ne) {
Branch: 2 branches
BranchTrueFalseTotal
while (equiv != 0 && *ne) { 0 0 0
while (equiv != 0 && *ne) { 0 0 0
412 0 ▶ for (nb = ne; *ne; ++ne) {
Branch: 1 branch
BranchTrueFalseTotal
for (nb = ne; *ne; ++ne) { 0 0 0
413 0 ▶ if (*ne == '|') break;
Branch: 1 branch
BranchTrueFalseTotal
if (*ne == '|') break; 0 0 0
414 }
415 0 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
416 0 ▶ if (*ne) ++ne;
Branch: 1 branch
BranchTrueFalseTotal
if (*ne) ++ne; 0 0 0
417 }
418 0 return equiv;
419 }
420  
421 /*
422 Check type equivalence in a name list like <name1>|<name2>|...
423 Return 0 if not equal, 1 if equal
424 */
425 SWIGRUNTIME int
426 0 SWIG_TypeEquiv(const char *nb, const char *tb) {
427 0 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
428 }
429  
430 /*
431 Check the typename
432 */
433 SWIGRUNTIME swig_cast_info *
434 0 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
435 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
436 0 swig_cast_info *iter = ty->cast;
437 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
438 0 ▶ if (strcmp(iter->type->name, c) == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(iter->type->name, c) == 0) { 0 0 0
439 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
if (iter == ty->cast) 0 0 0
440 0 return iter;
441 /* Move iter to the top of the linked list */
442 0 iter->prev->next = iter->next;
443 0 ▶ if (iter->next)
Branch: 1 branch
BranchTrueFalseTotal
if (iter->next) 0 0 0
444 0 iter->next->prev = iter->prev;
445 0 iter->next = ty->cast;
446 0 iter->prev = 0;
447 0 ▶ if (ty->cast) ty->cast->prev = iter;
Branch: 1 branch
BranchTrueFalseTotal
if (ty->cast) ty->cast->prev = iter; 0 0 0
448 0 ty->cast = iter;
449 0 return iter;
450 }
451 0 iter = iter->next;
452 }
453 }
454 0 return 0;
455 }
456  
457 /*
458 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
459 */
460 SWIGRUNTIME swig_cast_info *
461 0 SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
462 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
463 0 swig_cast_info *iter = ty->cast;
464 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
465 0 ▶ if (iter->type == from) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter->type == from) { 0 0 0
466 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
if (iter == ty->cast) 0 0 0
467 0 return iter;
468 /* Move iter to the top of the linked list */
469 0 iter->prev->next = iter->next;
470 0 ▶ if (iter->next)
Branch: 1 branch
BranchTrueFalseTotal
if (iter->next) 0 0 0
471 0 iter->next->prev = iter->prev;
472 0 iter->next = ty->cast;
473 0 iter->prev = 0;
474 0 ▶ if (ty->cast) ty->cast->prev = iter;
Branch: 1 branch
BranchTrueFalseTotal
if (ty->cast) ty->cast->prev = iter; 0 0 0
475 0 ty->cast = iter;
476 0 return iter;
477 }
478 0 iter = iter->next;
479 }
480 }
481 0 return 0;
482 }
483  
484 /*
485 Cast a pointer up an inheritance hierarchy
486 */
487 SWIGRUNTIMEINLINE void *
488 0 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
489 0 ▶ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
Branch: 2 branches
BranchTrueFalseTotal
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); 0 0 0
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); 0 0 0
490 }
491  
492 /*
493 Dynamic pointer casting. Down an inheritance hierarchy
494 */
495 SWIGRUNTIME swig_type_info *
496 0 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
497 0 swig_type_info *lastty = ty;
498 0 ▶ if (!ty || !ty->dcast) return ty;
Branch: 2 branches
BranchTrueFalseTotal
if (!ty || !ty->dcast) return ty; 0 0 0
if (!ty || !ty->dcast) return ty; 0 0 0
499 0 ▶ while (ty && (ty->dcast)) {
Branch: 2 branches
BranchTrueFalseTotal
while (ty && (ty->dcast)) { 0 0 0
while (ty && (ty->dcast)) { 0 0 0
500 0 ty = (*ty->dcast)(ptr);
501 0 ▶ if (ty) lastty = ty;
Branch: 1 branch
BranchTrueFalseTotal
if (ty) lastty = ty; 0 0 0
502 }
503 0 return lastty;
504 }
505  
506 /*
507 Return the name associated with this type
508 */
509 SWIGRUNTIMEINLINE const char *
510 SWIG_TypeName(const swig_type_info *ty) {
511 return ty->name;
512 }
513  
514 /*
515 Return the pretty name associated with this type,
516 that is an unmangled type name in a form presentable to the user.
517 */
518 SWIGRUNTIME const char *
519 0 SWIG_TypePrettyName(const swig_type_info *type) {
520 /* The "str" field contains the equivalent pretty names of the
521 type, separated by vertical-bar characters. Choose the last
522 name. It should be the most specific; a fully resolved name
523 but not necessarily with default template parameters expanded. */
524 0 ▶ if (!type) return NULL;
Branch: 1 branch
BranchTrueFalseTotal
if (!type) return NULL; 0 0 0
525 0 ▶ if (type->str != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->str != NULL) { 0 0 0
526 0 const char *last_name = type->str;
527 const char *s;
528 0 ▶ for (s = type->str; *s; s++)
Branch: 1 branch
BranchTrueFalseTotal
for (s = type->str; *s; s++) 0 0 0
529 0 ▶ if (*s == '|') last_name = s+1;
Branch: 1 branch
BranchTrueFalseTotal
if (*s == '|') last_name = s+1; 0 0 0
530 0 return last_name;
531 }
532 else
533 0 return type->name;
534 }
535  
536 /*
537 Set the clientdata field for a type
538 */
539 SWIGRUNTIME void
540 0 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
541 0 swig_cast_info *cast = ti->cast;
542 /* if (ti->clientdata == clientdata) return; */
543 0 ti->clientdata = clientdata;
544  
545 0 ▶ while (cast) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast) { 0 0 0
546 0 ▶ if (!cast->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!cast->converter) { 0 0 0
547 0 swig_type_info *tc = cast->type;
548 0 ▶ if (!tc->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (!tc->clientdata) { 0 0 0
549 0 SWIG_TypeClientData(tc, clientdata);
550 }
551 }
552 0 cast = cast->next;
553 }
554 0 }
555 SWIGRUNTIME void
556 0 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
557 0 SWIG_TypeClientData(ti, clientdata);
558 0 ti->owndata = 1;
559 0 }
560  
561 /*
562 Search for a swig_type_info structure only by mangled name
563 Search is a O(log #types)
564  
565 We start searching at module start, and finish searching when start == end.
566 Note: if start == end at the beginning of the function, we go all the way around
567 the circular list.
568 */
569 SWIGRUNTIME swig_type_info *
570 0 SWIG_MangledTypeQueryModule(swig_module_info *start,
571 swig_module_info *end,
572 const char *name) {
573 0 swig_module_info *iter = start;
574 do {
575 0 ▶ if (iter->size) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter->size) { 0 0 0
576 0 size_t l = 0;
577 0 size_t r = iter->size - 1;
578 do {
579 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
580 0 size_t i = (l + r) >> 1;
581 0 const char *iname = iter->types[i]->name;
582 0 ▶ if (iname) {
Branch: 1 branch
BranchTrueFalseTotal
if (iname) { 0 0 0
583 0 int compare = strcmp(name, iname);
584 0 ▶ if (compare == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (compare == 0) { 0 0 0
585 0 return iter->types[i];
586 0 ▶ } else if (compare < 0) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (compare < 0) { 0 0 0
587 0 ▶ if (i) {
Branch: 1 branch
BranchTrueFalseTotal
if (i) { 0 0 0
588 0 r = i - 1;
589 } else {
590 0 break;
591 }
592 0 ▶ } else if (compare > 0) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (compare > 0) { 0 0 0
593 0 l = i + 1;
594 }
595 } else {
596 0 break; /* should never happen */
597 }
598 0 ▶ } while (l <= r);
Branch: 1 branch
BranchTrueFalseTotal
} while (l <= r); 0 0 0
599 }
600 0 iter = iter->next;
601 0 ▶ } while (iter != end);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter != end); 0 0 0
602 0 return 0;
603 }
604  
605 /*
606 Search for a swig_type_info structure for either a mangled name or a human readable name.
607 It first searches the mangled names of the types, which is a O(log #types)
608 If a type is not found it then searches the human readable names, which is O(#types).
609  
610 We start searching at module start, and finish searching when start == end.
611 Note: if start == end at the beginning of the function, we go all the way around
612 the circular list.
613 */
614 SWIGRUNTIME swig_type_info *
615 0 SWIG_TypeQueryModule(swig_module_info *start,
616 swig_module_info *end,
617 const char *name) {
618 /* STEP 1: Search the name field using binary search */
619 0 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
620 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
621 0 return ret;
622 } else {
623 /* STEP 2: If the type hasn't been found, do a complete search
624 of the str field (the human readable name) */
625 0 swig_module_info *iter = start;
626 do {
627 0 size_t i = 0;
628 0 ▶ for (; i < iter->size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (; i < iter->size; ++i) { 0 0 0
629 0 ▶ if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
Branch: 2 branches
BranchTrueFalseTotal
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) 0 0 0
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) 0 0 0
630 0 return iter->types[i];
631 }
632 0 iter = iter->next;
633 0 ▶ } while (iter != end);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter != end); 0 0 0
634 }
635  
636 /* neither found a match */
637 0 return 0;
638 }
639  
640 /*
641 Pack binary data into a string
642 */
643 SWIGRUNTIME char *
644 0 SWIG_PackData(char *c, void *ptr, size_t sz) {
645 static const char hex[17] = "0123456789abcdef";
646 0 const unsigned char *u = (unsigned char *) ptr;
647 0 const unsigned char *eu = u + sz;
648 0 ▶ for (; u != eu; ++u) {
Branch: 1 branch
BranchTrueFalseTotal
for (; u != eu; ++u) { 0 0 0
649 0 unsigned char uu = *u;
650 0 *(c++) = hex[(uu & 0xf0) >> 4];
651 0 *(c++) = hex[uu & 0xf];
652 }
653 0 return c;
654 }
655  
656 /*
657 Unpack binary data from a string
658 */
659 SWIGRUNTIME const char *
660 0 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
661 0 unsigned char *u = (unsigned char *) ptr;
662 0 const unsigned char *eu = u + sz;
663 0 ▶ for (; u != eu; ++u) {
Branch: 1 branch
BranchTrueFalseTotal
for (; u != eu; ++u) { 0 0 0
664 0 char d = *(c++);
665 unsigned char uu;
666 0 ▶ if ((d >= '0') && (d <= '9'))
Branch: 2 branches
BranchTrueFalseTotal
if ((d >= '0') && (d <= '9')) 0 0 0
if ((d >= '0') && (d <= '9')) 0 0 0
667 0 uu = (unsigned char)((d - '0') << 4);
668 0 ▶ else if ((d >= 'a') && (d <= 'f'))
Branch: 2 branches
BranchTrueFalseTotal
else if ((d >= 'a') && (d <= 'f')) 0 0 0
else if ((d >= 'a') && (d <= 'f')) 0 0 0
669 0 uu = (unsigned char)((d - ('a'-10)) << 4);
670 else
671 0 return (char *) 0;
672 0 d = *(c++);
673 0 ▶ if ((d >= '0') && (d <= '9'))
Branch: 2 branches
BranchTrueFalseTotal
if ((d >= '0') && (d <= '9')) 0 0 0
if ((d >= '0') && (d <= '9')) 0 0 0
674 0 uu |= (unsigned char)(d - '0');
675 0 ▶ else if ((d >= 'a') && (d <= 'f'))
Branch: 2 branches
BranchTrueFalseTotal
else if ((d >= 'a') && (d <= 'f')) 0 0 0
else if ((d >= 'a') && (d <= 'f')) 0 0 0
676 0 uu |= (unsigned char)(d - ('a'-10));
677 else
678 0 return (char *) 0;
679 0 *u = uu;
680 }
681 0 return c;
682 }
683  
684 /*
685 Pack 'void *' into a string buffer.
686 */
687 SWIGRUNTIME char *
688 0 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
689 0 char *r = buff;
690 0 ▶ if ((2*sizeof(void *) + 2) > bsz) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if ((2*sizeof(void *) + 2) > bsz) return 0; 0 0 0
691 0 *(r++) = '_';
692 0 r = SWIG_PackData(r,&ptr,sizeof(void *));
693 0 ▶ if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if (strlen(name) + 1 > (bsz - (r - buff))) return 0; 0 0 0
694 0 strcpy(r,name);
695 0 return buff;
696 }
697  
698 SWIGRUNTIME const char *
699 0 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
700 0 ▶ if (*c != '_') {
Branch: 1 branch
BranchTrueFalseTotal
if (*c != '_') { 0 0 0
701 0 ▶ if (strcmp(c,"NULL") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(c,"NULL") == 0) { 0 0 0
702 0 *ptr = (void *) 0;
703 0 return name;
704 } else {
705 0 return 0;
706 }
707 }
708 0 return SWIG_UnpackData(++c,ptr,sizeof(void *));
709 }
710  
711 SWIGRUNTIME char *
712 0 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
713 0 char *r = buff;
714 0 ▶ size_t lname = (name ? strlen(name) : 0);
Branch: 1 branch
BranchTrueFalseTotal
size_t lname = (name ? strlen(name) : 0); 0 0 0
715 0 ▶ if ((2*sz + 2 + lname) > bsz) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if ((2*sz + 2 + lname) > bsz) return 0; 0 0 0
716 0 *(r++) = '_';
717 0 r = SWIG_PackData(r,ptr,sz);
718 0 ▶ if (lname) {
Branch: 1 branch
BranchTrueFalseTotal
if (lname) { 0 0 0
719 0 strncpy(r,name,lname+1);
720 } else {
721 0 *r = 0;
722 }
723 0 return buff;
724 }
725  
726 SWIGRUNTIME const char *
727 0 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
728 0 ▶ if (*c != '_') {
Branch: 1 branch
BranchTrueFalseTotal
if (*c != '_') { 0 0 0
729 0 ▶ if (strcmp(c,"NULL") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(c,"NULL") == 0) { 0 0 0
730 0 memset(ptr,0,sz);
731 0 return name;
732 } else {
733 0 return 0;
734 }
735 }
736 0 return SWIG_UnpackData(++c,ptr,sz);
737 }
738  
739 #ifdef __cplusplus
740 }
741 #endif
742  
743 /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
744 #define SWIG_UnknownError -1
745 #define SWIG_IOError -2
746 #define SWIG_RuntimeError -3
747 #define SWIG_IndexError -4
748 #define SWIG_TypeError -5
749 #define SWIG_DivisionByZero -6
750 #define SWIG_OverflowError -7
751 #define SWIG_SyntaxError -8
752 #define SWIG_ValueError -9
753 #define SWIG_SystemError -10
754 #define SWIG_AttributeError -11
755 #define SWIG_MemoryError -12
756 #define SWIG_NullReferenceError -13
757  
758  
759 #ifdef __cplusplus
760 /* Needed on some windows machines---since MS plays funny games with the header files under C++ */
761 #include <math.h>
762 #include <stdlib.h>
763 extern "C" {
764 #endif
765  
766 #if __GNUC__ >= 10
767 #if defined(__cplusplus)
768 #pragma GCC diagnostic push
769 #pragma GCC diagnostic ignored "-Wvolatile"
770 #endif
771 #endif
772  
773 #include "EXTERN.h"
774 #include "perl.h"
775 #include "XSUB.h"
776  
777 #if __GNUC__ >= 10
778 #if defined(__cplusplus)
779 #pragma GCC diagnostic pop
780 #endif
781 #endif
782  
783 /* PERL_REVISION was added in Perl 5.6. */
784 #if !defined PERL_REVISION || (PERL_REVISION-0 == 5 && PERL_VERSION-0 < 8)
785 # error SWIG requires Perl >= 5.8.0
786 #endif
787  
788 #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
789 #define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
790 #endif
791  
792 #ifndef SvIOK_UV
793 # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
794 #endif
795  
796 #ifndef SvUOK
797 # define SvUOK(sv) SvIOK_UV(sv)
798 #endif
799  
800 #ifndef IVSIZE
801 # ifdef LONGSIZE
802 # define IVSIZE LONGSIZE
803 # else
804 # define IVSIZE 4 /* A bold guess, but the best we can make. */
805 # endif
806 #endif
807  
808 #ifndef INT2PTR
809 # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
810 # define PTRV UV
811 # define INT2PTR(any,d) (any)(d)
812 # else
813 # if PTRSIZE == LONGSIZE
814 # define PTRV unsigned long
815 # else
816 # define PTRV unsigned
817 # endif
818 # define INT2PTR(any,d) (any)(PTRV)(d)
819 # endif
820  
821 # define NUM2PTR(any,d) (any)(PTRV)(d)
822 # define PTR2IV(p) INT2PTR(IV,p)
823 # define PTR2UV(p) INT2PTR(UV,p)
824 # define PTR2NV(p) NUM2PTR(NV,p)
825  
826 # if PTRSIZE == LONGSIZE
827 # define PTR2ul(p) (unsigned long)(p)
828 # else
829 # define PTR2ul(p) INT2PTR(unsigned long,p)
830 # endif
831 #endif /* !INT2PTR */
832  
833 #ifndef SvPV_nolen
834 # define SvPV_nolen(x) SvPV(x,PL_na)
835 #endif
836  
837 #ifndef get_sv
838 # define get_sv perl_get_sv
839 #endif
840  
841 #ifndef ERRSV
842 # define ERRSV get_sv("@",FALSE)
843 #endif
844  
845 #ifndef pTHX_
846 #define pTHX_
847 #endif
848  
849 #include <string.h>
850 #ifdef __cplusplus
851 }
852 #endif
853  
854 /* -----------------------------------------------------------------------------
855 * error manipulation
856 * ----------------------------------------------------------------------------- */
857  
858 SWIGINTERN const char*
859 0 SWIG_Perl_ErrorType(int code) {
860 0 switch(code) {
861 0 case SWIG_MemoryError:
862 0 return "MemoryError";
863 0 case SWIG_IOError:
864 0 return "IOError";
865 0 case SWIG_RuntimeError:
866 0 return "RuntimeError";
867 0 case SWIG_IndexError:
868 0 return "IndexError";
869 0 case SWIG_TypeError:
870 0 return "TypeError";
871 0 case SWIG_DivisionByZero:
872 0 return "ZeroDivisionError";
873 0 case SWIG_OverflowError:
874 0 return "OverflowError";
875 0 case SWIG_SyntaxError:
876 0 return "SyntaxError";
877 0 case SWIG_ValueError:
878 0 return "ValueError";
879 0 case SWIG_SystemError:
880 0 return "SystemError";
881 0 case SWIG_AttributeError:
882 0 return "AttributeError";
883 0 default:
884 0 return "RuntimeError";
885 }
886 }
887  
888  
889 /* -----------------------------------------------------------------------------
890 * perlrun.swg
891 *
892 * This file contains the runtime support for Perl modules
893 * and includes code for managing global variables and pointer
894 * type checking.
895 * ----------------------------------------------------------------------------- */
896  
897 #define SWIG_PERL_OBJECT_DECL
898 #define SWIG_PERL_OBJECT_CALL
899  
900 /* Common SWIG API */
901  
902 /* for raw pointers */
903 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
904 #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
905 #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
906 #define SWIG_AcquirePtr(ptr, src) SWIG_Perl_AcquirePtr(ptr, src)
907 #define swig_owntype int
908  
909 /* for raw packed data */
910 #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
911 #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
912  
913 /* for class or struct pointers */
914 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
915 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
916  
917 /* for C or C++ function pointers */
918 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
919 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
920  
921 /* for C++ member pointers, ie, member methods */
922 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty)
923 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type)
924  
925  
926 /* Runtime API */
927  
928 #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata)
929 #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
930  
931  
932 /* Error manipulation */
933  
934 #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
935 #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg)
936 #define SWIG_fail goto fail
937  
938 /* Perl-specific SWIG API */
939  
940 #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
941 #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
942 #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str)
943  
944  
945 #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1)
946 #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1)
947 #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2)
948 #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2)
949  
950 /* -----------------------------------------------------------------------------
951 * pointers/data manipulation
952 * ----------------------------------------------------------------------------- */
953  
954 /* For backward compatibility only */
955 #define SWIG_POINTER_EXCEPTION 0
956  
957 #ifdef __cplusplus
958 extern "C" {
959 #endif
960  
961 #define SWIG_OWNER SWIG_POINTER_OWN
962 #define SWIG_SHADOW SWIG_OWNER << 1
963  
964 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
965  
966 /* SWIG Perl macros */
967  
968 /* Macro to declare an XS function */
969 #ifndef XSPROTO
970 # define XSPROTO(name) void name(pTHX_ CV* cv)
971 #endif
972  
973 /* Macro to call an XS function */
974 #ifndef MULTIPLICITY
975 # define SWIG_CALLXS(_name) _name(cv)
976 #else
977 # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv)
978 #endif
979  
980 #define MAGIC_PPERL
981 #define SWIGCLASS_STATIC static SWIGUNUSED
982  
983 #ifndef MULTIPLICITY
984 #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
985  
986 #ifdef __cplusplus
987 extern "C" {
988 #endif
989 typedef int (*SwigMagicFunc)(SV *, MAGIC *);
990 #ifdef __cplusplus
991 }
992 #endif
993  
994 #else /* MULTIPLICITY */
995  
996 #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
997  
998 #ifdef __cplusplus
999 extern "C" {
1000 #endif
1001 typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
1002 #ifdef __cplusplus
1003 }
1004 #endif
1005  
1006 #endif /* MULTIPLICITY */
1007  
1008 0 static void SWIGUNUSED SWIG_croak_null()
1009 {
1010 0 SV *err = get_sv("@", GV_ADD);
1011 0 ▶ if (sv_isobject(err))
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(err)) 0 0 0
1012 0 croak(0);
1013 else
1014 0 croak("%s", SvPV_nolen(err));
1015 }
1016  
1017  
1018 /*
1019 Define how strict is the cast between strings and integers/doubles
1020 when overloading between these types occurs.
1021
1022 The default is making it as strict as possible by using SWIG_AddCast
1023 when needed.
1024
1025 You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
1026 disable the SWIG_AddCast, making the casting between string and
1027 numbers less strict.
1028  
1029 In the end, we try to solve the overloading between strings and
1030 numerical types in the more natural way, but if you can avoid it,
1031 well, avoid it using %rename, for example.
1032 */
1033 #ifndef SWIG_PERL_NO_STRICT_STR2NUM
1034 # ifndef SWIG_PERL_STRICT_STR2NUM
1035 # define SWIG_PERL_STRICT_STR2NUM
1036 # endif
1037 #endif
1038 #ifdef SWIG_PERL_STRICT_STR2NUM
1039 /* string takes precedence */
1040 #define SWIG_Str2NumCast(x) SWIG_AddCast(x)
1041 #else
1042 /* number takes precedence */
1043 #define SWIG_Str2NumCast(x) x
1044 #endif
1045  
1046  
1047  
1048 #include <stdlib.h>
1049  
1050 SWIGRUNTIME const char *
1051 0 SWIG_Perl_TypeProxyName(const swig_type_info *type) {
1052 0 ▶ if (!type) return NULL;
Branch: 1 branch
BranchTrueFalseTotal
if (!type) return NULL; 0 0 0
1053 0 ▶ if (type->clientdata != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->clientdata != NULL) { 0 0 0
1054 0 return (const char*) type->clientdata;
1055 }
1056 else {
1057 0 return type->name;
1058 }
1059 }
1060  
1061 /* Identical to SWIG_TypeCheck, except for strcmp comparison */
1062 SWIGRUNTIME swig_cast_info *
1063 0 SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
1064 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
1065 0 swig_cast_info *iter = ty->cast;
1066 0 ▶ while (iter) {
Branch: 1 branch
BranchTrueFalseTotal
while (iter) { 0 0 0
1067 0 ▶ if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { 0 0 0
1068 0 ▶ if (iter == ty->cast)
Branch: 1 branch
BranchTrueFalseTotal
if (iter == ty->cast) 0 0 0
1069 0 return iter;
1070 /* Move iter to the top of the linked list */
1071 0 iter->prev->next = iter->next;
1072 0 ▶ if (iter->next)
Branch: 1 branch
BranchTrueFalseTotal
if (iter->next) 0 0 0
1073 0 iter->next->prev = iter->prev;
1074 0 iter->next = ty->cast;
1075 0 iter->prev = 0;
1076 0 ▶ if (ty->cast) ty->cast->prev = iter;
Branch: 1 branch
BranchTrueFalseTotal
if (ty->cast) ty->cast->prev = iter; 0 0 0
1077 0 ty->cast = iter;
1078 0 return iter;
1079 }
1080 0 iter = iter->next;
1081 }
1082 }
1083 0 return 0;
1084 }
1085  
1086 /* Acquire a pointer value */
1087  
1088 SWIGRUNTIME int
1089 0 SWIG_Perl_AcquirePtr(SWIG_MAYBE_PERL_OBJECT SV *SWIGUNUSEDPARM(sv), int SWIGUNUSEDPARM(own)) {
1090 /* TODO */
1091 0 return 0;
1092 }
1093  
1094 /* Function for getting a pointer value */
1095  
1096 SWIGRUNTIME int
1097 0 SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
1098 swig_cast_info *tc;
1099 0 void *voidptr = (void *)0;
1100 0 SV *tsv = 0;
1101 0 int check_owned_pointer_release = (flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE;
1102  
1103 0 ▶ if (own)
Branch: 1 branch
BranchTrueFalseTotal
if (own) 0 0 0
1104 0 *own = 0;
1105  
1106 /* If magical, apply more magic */
1107 0 ▶ if (SvGMAGICAL(sv))
Branch: 1 branch
BranchTrueFalseTotal
if (SvGMAGICAL(sv)) 0 0 0
1108 0 mg_get(sv);
1109  
1110 /* Check to see if this is an object */
1111 0 ▶ if (sv_isobject(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(sv)) { 0 0 0
1112 0 IV tmp = 0;
1113 0 tsv = (SV*) SvRV(sv);
1114 0 ▶ if ((SvTYPE(tsv) == SVt_PVHV)) {
Branch: 1 branch
BranchTrueFalseTotal
if ((SvTYPE(tsv) == SVt_PVHV)) { 0 0 0
1115 MAGIC *mg;
1116 0 ▶ if (SvMAGICAL(tsv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(tsv)) { 0 0 0
1117 0 mg = mg_find(tsv,'P');
1118 0 ▶ if (mg) {
Branch: 1 branch
BranchTrueFalseTotal
if (mg) { 0 0 0
1119 0 sv = mg->mg_obj;
1120 0 ▶ if (sv_isobject(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(sv)) { 0 0 0
1121 0 tsv = (SV*)SvRV(sv);
1122 0 tmp = SvIV(tsv);
1123 }
1124 }
1125 } else {
1126 0 return SWIG_ERROR;
1127 }
1128 } else {
1129 0 tmp = SvIV(tsv);
1130 }
1131 0 voidptr = INT2PTR(void *,tmp);
1132 0 ▶ } else if (! SvOK(sv)) { /* Check for undef */
Branch: 1 branch
BranchTrueFalseTotal
} else if (! SvOK(sv)) { /* Check for undef */ 0 0 0
1133 0 *(ptr) = (void *) 0;
1134 0 ▶ return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
Branch: 1 branch
BranchTrueFalseTotal
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; 0 0 0
1135 0 ▶ } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ 0 0 0
1136 0 ▶ if (!SvROK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(sv)) { 0 0 0
1137 /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */
1138 0 ▶ if (SvIOK(sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvIOK(sv)) { 0 0 0
1139 0 return SWIG_ERROR;
1140 } else {
1141 /* NULL pointer (reference to undef). */
1142 0 *(ptr) = (void *) 0;
1143 0 return SWIG_OK;
1144 }
1145 } else {
1146 0 return SWIG_ERROR;
1147 }
1148 } else { /* Don't know what it is */
1149 0 return SWIG_ERROR;
1150 }
1151 0 ▶ if (_t) {
Branch: 1 branch
BranchTrueFalseTotal
if (_t) { 0 0 0
1152 /* Now see if the types match */
1153 0 ▶ char *_c = HvNAME(SvSTASH(SvRV(sv)));
Branch: 6 branches
BranchTrueFalseTotal
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
char *_c = HvNAME(SvSTASH(SvRV(sv))); 0 0 0
1154 0 tc = SWIG_TypeProxyCheck(_c,_t);
1155 #ifdef SWIG_DIRECTORS
1156 if (!tc && !sv_derived_from(sv,SWIG_Perl_TypeProxyName(_t))) {
1157 #else
1158 0 ▶ if (!tc) {
Branch: 1 branch
BranchTrueFalseTotal
if (!tc) { 0 0 0
1159 #endif
1160 0 return SWIG_ERROR;
1161 }
1162 {
1163 0 int newmemory = 0;
1164 0 *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
1165 0 ▶ if (newmemory == SWIG_CAST_NEW_MEMORY) {
Branch: 1 branch
BranchTrueFalseTotal
if (newmemory == SWIG_CAST_NEW_MEMORY) { 0 0 0
1166 assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
1167 0 ▶ if (own)
Branch: 1 branch
BranchTrueFalseTotal
if (own) 0 0 0
1168 0 *own = *own | SWIG_CAST_NEW_MEMORY;
1169 }
1170 }
1171 } else {
1172 0 *ptr = voidptr;
1173 }
1174  
1175 /*
1176 * DISOWN implementation: we need a perl guru to check this one.
1177 */
1178 0 ▶ if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) {
Branch: 3 branches
BranchTrueFalseTotal
if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { 0 0 0
if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { 0 0 0
if (tsv && ((flags & SWIG_POINTER_DISOWN) || check_owned_pointer_release)) { 0 0 0
1179 /*
1180 * almost copy paste code from below SWIG_POINTER_OWN setting
1181 */
1182 0 SV *obj = sv;
1183 0 HV *stash = SvSTASH(SvRV(obj));
1184 0 GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1185 0 int owned = 0;
1186 0 ▶ if (isGV(gv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (isGV(gv)) { 0 0 0
1187 0 ▶ HV *hv = GvHVn(gv);
Branch: 1 branch
BranchTrueFalseTotal
HV *hv = GvHVn(gv); 0 0 0
1188 /*
1189 * To set ownership (see below), a newSViv(1) entry is added.
1190 * Hence, to remove ownership, we delete the entry.
1191 */
1192 0 ▶ if (hv_exists_ent(hv, obj, 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if (hv_exists_ent(hv, obj, 0)) { 0 0 0
1193 0 owned = 1;
1194 0 ▶ if (flags & SWIG_POINTER_DISOWN) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & SWIG_POINTER_DISOWN) { 0 0 0
1195 0 hv_delete_ent(hv, obj, 0, 0);
1196 }
1197 }
1198 }
1199 0 ▶ if (check_owned_pointer_release && !owned) {
Branch: 2 branches
BranchTrueFalseTotal
if (check_owned_pointer_release && !owned) { 0 0 0
if (check_owned_pointer_release && !owned) { 0 0 0
1200 0 return SWIG_ERROR_RELEASE_NOT_OWNED;
1201 }
1202 }
1203  
1204 0 ▶ if (tsv && (flags & SWIG_POINTER_CLEAR)) {
Branch: 2 branches
BranchTrueFalseTotal
if (tsv && (flags & SWIG_POINTER_CLEAR)) { 0 0 0
if (tsv && (flags & SWIG_POINTER_CLEAR)) { 0 0 0
1205 0 SvIV_set(tsv, 0);
1206 }
1207  
1208 0 return SWIG_OK;
1209 }
1210  
1211 SWIGRUNTIME int
1212 0 SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
1213 0 return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
1214 }
1215  
1216 SWIGRUNTIME void
1217 0 SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
1218 0 ▶ if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
Branch: 2 branches
BranchTrueFalseTotal
if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { 0 0 0
if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { 0 0 0
1219 SV *self;
1220 0 SV *obj=newSV(0);
1221 0 HV *hash=newHV();
1222 HV *stash;
1223 0 sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr);
1224 0 stash=SvSTASH(SvRV(obj));
1225 0 ▶ if (flags & SWIG_POINTER_OWN) {
Branch: 1 branch
BranchTrueFalseTotal
if (flags & SWIG_POINTER_OWN) { 0 0 0
1226 HV *hv;
1227 0 GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
1228 0 ▶ if (!isGV(gv))
Branch: 1 branch
BranchTrueFalseTotal
if (!isGV(gv)) 0 0 0
1229 0 gv_init(gv, stash, "OWNER", 5, FALSE);
1230 0 ▶ hv=GvHVn(gv);
Branch: 1 branch
BranchTrueFalseTotal
hv=GvHVn(gv); 0 0 0
1231 0 hv_store_ent(hv, obj, newSViv(1), 0);
1232 }
1233 0 sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
1234 0 SvREFCNT_dec(obj);
1235 0 self=newRV_noinc((SV *)hash);
1236 0 sv_setsv(sv, self);
1237 0 SvREFCNT_dec((SV *)self);
1238 0 sv_bless(sv, stash);
1239 }
1240 else {
1241 0 sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr);
1242 }
1243 0 }
1244  
1245 SWIGRUNTIMEINLINE SV *
1246 0 SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
1247 0 SV *result = sv_newmortal();
1248 0 SWIG_MakePtr(result, ptr, t, flags);
1249 0 return result;
1250 }
1251  
1252 SWIGRUNTIME void
1253 0 SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
1254 char result[1024];
1255 0 char *r = result;
1256 0 ▶ if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
Branch: 1 branch
BranchTrueFalseTotal
if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; 0 0 0
1257 0 *(r++) = '_';
1258 0 r = SWIG_PackData(r,ptr,sz);
1259 0 strcpy(r,SWIG_Perl_TypeProxyName(type));
1260 0 sv_setpv(sv, result);
1261 }
1262  
1263 SWIGRUNTIME SV *
1264 0 SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
1265 0 SV *result = sv_newmortal();
1266 0 SWIG_Perl_MakePackedObj(result, ptr, sz, type);
1267 0 return result;
1268 }
1269  
1270 /* Convert a packed pointer value */
1271 SWIGRUNTIME int
1272 0 SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
1273 swig_cast_info *tc;
1274 0 const char *c = 0;
1275  
1276 0 ▶ if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
Branch: 2 branches
BranchTrueFalseTotal
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; 0 0 0
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; 0 0 0
1277 0 c = SvPV_nolen(obj);
1278 /* Pointer values must start with leading underscore */
1279 0 ▶ if (*c != '_') return SWIG_ERROR;
Branch: 1 branch
BranchTrueFalseTotal
if (*c != '_') return SWIG_ERROR; 0 0 0
1280 0 c++;
1281 0 c = SWIG_UnpackData(c,ptr,sz);
1282 0 ▶ if (ty) {
Branch: 1 branch
BranchTrueFalseTotal
if (ty) { 0 0 0
1283 0 tc = SWIG_TypeCheck(c,ty);
1284 0 ▶ if (!tc) return SWIG_ERROR;
Branch: 1 branch
BranchTrueFalseTotal
if (!tc) return SWIG_ERROR; 0 0 0
1285 }
1286 0 return SWIG_OK;
1287 }
1288  
1289  
1290 /* Macros for low-level exception handling */
1291 #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
1292  
1293  
1294 typedef XSPROTO(SwigPerlWrapper);
1295 typedef SwigPerlWrapper *SwigPerlWrapperPtr;
1296  
1297 /* Structure for command table */
1298 typedef struct {
1299 const char *name;
1300 SwigPerlWrapperPtr wrapper;
1301 } swig_command_info;
1302  
1303 /* Information for constant table */
1304  
1305 #define SWIG_INT 1
1306 #define SWIG_FLOAT 2
1307 #define SWIG_STRING 3
1308 #define SWIG_POINTER 4
1309 #define SWIG_BINARY 5
1310  
1311 /* Constant information structure */
1312 typedef struct swig_constant_info {
1313 int type;
1314 const char *name;
1315 long lvalue;
1316 double dvalue;
1317 void *pvalue;
1318 swig_type_info **ptype;
1319 } swig_constant_info;
1320  
1321  
1322 /* Structure for variable table */
1323 typedef struct {
1324 const char *name;
1325 SwigMagicFunc set;
1326 SwigMagicFunc get;
1327 swig_type_info **type;
1328 } swig_variable_info;
1329  
1330 /* Magic variable code */
1331 #ifdef __cplusplus
1332 # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c)
1333 #else
1334 # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c)
1335 #endif
1336 #ifndef MULTIPLICITY
1337 0 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
1338 #else
1339 SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
1340 #endif
1341 {
1342 MAGIC *mg;
1343 0 sv_magic(sv,sv,'U',name,(I32)strlen(name));
1344 0 mg = mg_find(sv,'U');
1345 0 mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
1346 0 mg->mg_virtual->svt_get = (SwigMagicFunc) get;
1347 0 mg->mg_virtual->svt_set = (SwigMagicFunc) set;
1348 0 mg->mg_virtual->svt_len = 0;
1349 0 mg->mg_virtual->svt_clear = 0;
1350 0 mg->mg_virtual->svt_free = 0;
1351 0 }
1352  
1353  
1354 SWIGRUNTIME swig_module_info *
1355 0 SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
1356 static void *type_pointer = (void *)0;
1357 SV *pointer;
1358  
1359 /* first check if pointer already created */
1360 0 ▶ if (!type_pointer) {
Branch: 1 branch
BranchTrueFalseTotal
if (!type_pointer) { 0 0 0
1361 0 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
1362 0 ▶ if (pointer && SvOK(pointer)) {
Branch: 2 branches
BranchTrueFalseTotal
if (pointer && SvOK(pointer)) { 0 0 0
if (pointer && SvOK(pointer)) { 0 0 0
1363 0 type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
1364 }
1365 }
1366  
1367 0 return (swig_module_info *) type_pointer;
1368 }
1369  
1370 SWIGRUNTIME void
1371 0 SWIG_Perl_SetModule(swig_module_info *module) {
1372 SV *pointer;
1373  
1374 /* create a new pointer */
1375 0 pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
1376 0 sv_setiv(pointer, PTR2IV(module));
1377 0 }
1378  
1379 #ifdef __cplusplus
1380 }
1381 #endif
1382  
1383 /* Workaround perl5 global namespace pollution. Note that undefining library
1384 * functions like fopen will not solve the problem on all platforms as fopen
1385 * might be a macro on Windows but not necessarily on other operating systems. */
1386 #ifdef do_open
1387 #undef do_open
1388 #endif
1389 #ifdef do_close
1390 #undef do_close
1391 #endif
1392 #ifdef do_exec
1393 #undef do_exec
1394 #endif
1395 #ifdef scalar
1396 #undef scalar
1397 #endif
1398 #ifdef list
1399 #undef list
1400 #endif
1401 #ifdef apply
1402 #undef apply
1403 #endif
1404 #ifdef convert
1405 #undef convert
1406 #endif
1407 #ifdef Error
1408 #undef Error
1409 #endif
1410 #ifdef form
1411 #undef form
1412 #endif
1413 #ifdef vform
1414 #undef vform
1415 #endif
1416 #ifdef LABEL
1417 #undef LABEL
1418 #endif
1419 #ifdef METHOD
1420 #undef METHOD
1421 #endif
1422 #ifdef Move
1423 #undef Move
1424 #endif
1425 #ifdef yylex
1426 #undef yylex
1427 #endif
1428 #ifdef yyparse
1429 #undef yyparse
1430 #endif
1431 #ifdef yyerror
1432 #undef yyerror
1433 #endif
1434 #ifdef invert
1435 #undef invert
1436 #endif
1437 #ifdef ref
1438 #undef ref
1439 #endif
1440 #ifdef read
1441 #undef read
1442 #endif
1443 #ifdef write
1444 #undef write
1445 #endif
1446 #ifdef eof
1447 #undef eof
1448 #endif
1449 #ifdef close
1450 #undef close
1451 #endif
1452 #ifdef rewind
1453 #undef rewind
1454 #endif
1455 #ifdef free
1456 #undef free
1457 #endif
1458 #ifdef malloc
1459 #undef malloc
1460 #endif
1461 #ifdef calloc
1462 #undef calloc
1463 #endif
1464 #ifdef Stat
1465 #undef Stat
1466 #endif
1467 #ifdef check
1468 #undef check
1469 #endif
1470 #ifdef seekdir
1471 #undef seekdir
1472 #endif
1473 #ifdef open
1474 #undef open
1475 #endif
1476 #ifdef readdir
1477 #undef readdir
1478 #endif
1479 #ifdef bind
1480 #undef bind
1481 #endif
1482 #ifdef access
1483 #undef access
1484 #endif
1485 #ifdef stat
1486 #undef stat
1487 #endif
1488 #ifdef seed
1489 #undef seed
1490 #endif
1491  
1492 #ifdef bool
1493 /* Leave if macro is from C99 stdbool.h */
1494 #ifndef __bool_true_false_are_defined
1495 #undef bool
1496 #endif
1497 #endif
1498  
1499  
1500  
1501  
1502 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1503  
1504 #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
1505  
1506  
1507  
1508 /* -------- TYPES TABLE (BEGIN) -------- */
1509  
1510 #define SWIGTYPE_p_FILE swig_types[0]
1511 #define SWIGTYPE_p_char swig_types[1]
1512 #define SWIGTYPE_p_double swig_types[2]
1513 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void swig_types[3]
1514 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void swig_types[4]
1515 #define SWIGTYPE_p_gsl_permutation_struct swig_types[5]
1516 #define SWIGTYPE_p_gsl_vector swig_types[6]
1517 #define SWIGTYPE_p_gsl_vector_int swig_types[7]
1518 #define SWIGTYPE_p_int swig_types[8]
1519 #define SWIGTYPE_p_size_t swig_types[9]
1520 static swig_type_info *swig_types[11];
1521 static swig_module_info swig_module = {swig_types, 10, 0, 0, 0, 0};
1522 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1523 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1524  
1525 /* -------- TYPES TABLE (END) -------- */
1526  
1527 #define SWIG_init boot_Math__GSL__Sort
1528  
1529 #define SWIG_name "Math::GSL::Sortc::boot_Math__GSL__Sort"
1530 #define SWIG_prefix "Math::GSL::Sortc::"
1531  
1532 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1533 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1534  
1535  
1536 #ifdef __cplusplus
1537 extern "C"
1538 #endif
1539 #ifndef MULTIPLICITY
1540 SWIGEXPORT void SWIG_init (CV* cv);
1541 #else
1542 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1543 #endif
1544  
1545  
1546 SWIGINTERNINLINE SV *
1547 0 SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value)
1548 {
1549 0 return sv_2mortal(newSVnv(value));
1550 }
1551  
1552  
1553 SWIGINTERNINLINE SV *
1554 0 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1555 {
1556 SV *sv;
1557 if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
1558 0 sv = newSViv(value);
1559 else
1560 sv = newSVpvf("%ld", value);
1561 0 return sv_2mortal(sv);
1562 }
1563  
1564  
1565 SWIGINTERNINLINE SV *
1566 0 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1567 {
1568 0 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1569 }
1570  
1571  
1572 SWIGINTERN swig_type_info*
1573 0 SWIG_pchar_descriptor(void)
1574 {
1575 static int init = 0;
1576 static swig_type_info* info = 0;
1577 0 ▶ if (!init) {
Branch: 1 branch
BranchTrueFalseTotal
if (!init) { 0 0 0
1578 0 info = SWIG_TypeQuery("_p_char");
1579 0 init = 1;
1580 }
1581 0 return info;
1582 }
1583  
1584  
1585 SWIGINTERN int
1586 0 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1587 {
1588 0 ▶ if (SvMAGICAL(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(obj)) { 0 0 0
1589 0 SV *tmp = sv_newmortal();
1590 0 ▶ SvSetSV(tmp, obj);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(tmp, obj); 0 0 0
1591 0 obj = tmp;
1592 }
1593 0 ▶ if (SvPOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvPOK(obj)) { 0 0 0
1594 0 STRLEN len = 0;
1595 0 char *cstr = SvPV(obj, len);
1596 0 size_t size = len + 1;
1597 0 ▶ if (cptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) { 0 0 0
1598 0 ▶ if (alloc) {
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) { 0 0 0
1599 0 ▶ if (*alloc == SWIG_NEWOBJ) {
Branch: 1 branch
BranchTrueFalseTotal
if (*alloc == SWIG_NEWOBJ) { 0 0 0
1600 0 *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1601 } else {
1602 0 *cptr = cstr;
1603 0 *alloc = SWIG_OLDOBJ;
1604 }
1605 }
1606 }
1607 0 ▶ if (psize) *psize = size;
Branch: 1 branch
BranchTrueFalseTotal
if (psize) *psize = size; 0 0 0
1608 0 return SWIG_OK;
1609 } else {
1610 0 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1611 0 ▶ if (pchar_descriptor) {
Branch: 1 branch
BranchTrueFalseTotal
if (pchar_descriptor) { 0 0 0
1612 0 char* vptr = 0;
1613 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
1614 0 ▶ if (cptr) *cptr = vptr;
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) *cptr = vptr; 0 0 0
1615 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
1616 0 ▶ if (alloc) *alloc = SWIG_OLDOBJ;
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) *alloc = SWIG_OLDOBJ; 0 0 0
1617 0 return SWIG_OK;
1618 }
1619 }
1620 }
1621 0 return SWIG_TypeError;
1622 }
1623  
1624  
1625  
1626  
1627  
1628 #include <limits.h>
1629 #if !defined(SWIG_NO_LLONG_MAX)
1630 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1631 # define LLONG_MAX __LONG_LONG_MAX__
1632 # define LLONG_MIN (-LLONG_MAX - 1LL)
1633 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1634 # endif
1635 #endif
1636  
1637  
1638 #include <stdlib.h>
1639 #ifdef _MSC_VER
1640 # ifndef strtoull
1641 # define strtoull _strtoui64
1642 # endif
1643 # ifndef strtoll
1644 # define strtoll _strtoi64
1645 # endif
1646 #endif
1647  
1648  
1649 SWIGINTERN int
1650 0 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1651 {
1652 0 ▶ if (SvNIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvNIOK(obj)) { 0 0 0
1653 0 ▶ if (val) *val = SvNV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvNV(obj); 0 0 0
1654 0 return SWIG_OK;
1655 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1656 0 ▶ if (val) *val = (double) SvIV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (double) SvIV(obj); 0 0 0
1657 0 return SWIG_AddCast(SWIG_OK);
1658 } else {
1659 0 const char *nptr = SvPV_nolen(obj);
1660 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1661 char *endptr;
1662 double v;
1663 0 errno = 0;
1664 0 v = strtod(nptr, &endptr);
1665 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1666 0 errno = 0;
1667 0 return SWIG_OverflowError;
1668 } else {
1669 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1670 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1671 0 return SWIG_Str2NumCast(SWIG_OK);
1672 }
1673 }
1674 }
1675 }
1676 0 return SWIG_TypeError;
1677 }
1678  
1679  
1680 #include <float.h>
1681  
1682  
1683 #include <math.h>
1684  
1685  
1686 SWIGINTERNINLINE int
1687 0 SWIG_CanCastAsInteger(double *d, double min, double max) {
1688 0 double x = *d;
1689 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
1690 double fx, cx, rd;
1691 0 errno = 0;
1692 0 fx = floor(x);
1693 0 cx = ceil(x);
1694 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
1695 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
1696 0 errno = 0;
1697 } else {
1698 double summ, reps, diff;
1699 0 ▶ if (rd < x) {
Branch: 1 branch
BranchTrueFalseTotal
if (rd < x) { 0 0 0
1700 0 diff = x - rd;
1701 0 ▶ } else if (rd > x) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (rd > x) { 0 0 0
1702 0 diff = rd - x;
1703 } else {
1704 0 return 1;
1705 }
1706 0 summ = rd + x;
1707 0 reps = diff/summ;
1708 0 ▶ if (reps < 8*DBL_EPSILON) {
Branch: 1 branch
BranchTrueFalseTotal
if (reps < 8*DBL_EPSILON) { 0 0 0
1709 0 *d = rd;
1710 0 return 1;
1711 }
1712 }
1713 }
1714 0 return 0;
1715 }
1716  
1717  
1718 SWIGINTERN int
1719 0 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1720 {
1721 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
1722 0 UV v = SvUV(obj);
1723 0 ▶ if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { 0 0 0
1724 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1725 0 return SWIG_OK;
1726 }
1727 0 return SWIG_OverflowError;
1728 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1729 0 IV v = SvIV(obj);
1730 if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
1731 0 ▶ if(val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if(val) *val = v; 0 0 0
1732 0 return SWIG_OK;
1733 }
1734 return SWIG_OverflowError;
1735 } else {
1736 0 int dispatch = 0;
1737 0 const char *nptr = SvPV_nolen(obj);
1738 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1739 char *endptr;
1740 long v;
1741 0 errno = 0;
1742 0 v = strtol(nptr, &endptr,0);
1743 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1744 0 errno = 0;
1745 0 return SWIG_OverflowError;
1746 } else {
1747 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1748 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1749 0 return SWIG_Str2NumCast(SWIG_OK);
1750 }
1751 }
1752 }
1753 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
1754 double d;
1755 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1756 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
1757 0 ▶ if (val) *val = (long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (long)(d); 0 0 0
1758 0 return res;
1759 }
1760 }
1761 }
1762 0 return SWIG_TypeError;
1763 }
1764  
1765  
1766 SWIGINTERN int
1767 0 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1768 {
1769 long v;
1770 0 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1771 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
1772 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
1773 0 return SWIG_OverflowError;
1774 } else {
1775 0 ▶ if (val) *val = (int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (int)(v); 0 0 0
1776 }
1777 }
1778 0 return res;
1779 }
1780  
1781  
1782 SWIGINTERNINLINE SV *
1783 0 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1784 {
1785 0 SV *obj = sv_newmortal();
1786 0 ▶ if (carray) {
Branch: 1 branch
BranchTrueFalseTotal
if (carray) { 0 0 0
1787 0 sv_setpvn(obj, carray, size);
1788 } else {
1789 0 sv_setsv(obj, &PL_sv_undef);
1790 }
1791 0 return obj;
1792 }
1793  
1794  
1795 SWIGINTERNINLINE SV *
1796 0 SWIG_FromCharPtr(const char *cptr)
1797 {
1798 0 ▶ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
Branch: 1 branch
BranchTrueFalseTotal
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); 0 0 0
1799 }
1800  
1801  
1802 #include "gsl/gsl_nan.h"
1803 #include "gsl/gsl_errno.h"
1804 #include "gsl/gsl_math.h"
1805 #include "gsl/gsl_monte.h"
1806  
1807  
1808 struct perl_array {
1809 I32 len;
1810 AV *array;
1811 };
1812  
1813  
1814  
1815 enum awType { awDouble, awFloat, awInt, awUnsigned };
1816  
1817 typedef struct {
1818 I32 size;
1819 enum awType type;
1820 void * data;
1821 } array_wrapper;
1822  
1823 0 array_wrapper * array_wrapper_alloc(int numelem, enum awType type){
1824 0 array_wrapper * rv = malloc(sizeof(array_wrapper));
1825  
1826 0 ▶ if (rv == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv == NULL) 0 0 0
1827 0 croak("array_wrapper_alloc: can't malloc wrapper\n");
1828  
1829 0 switch (type){
1830 0 case awDouble:
1831 0 rv->data = malloc(sizeof(double) * numelem);
1832 0 break;
1833 0 case awFloat:
1834 0 rv->data = malloc(sizeof(float) * numelem);
1835 0 break;
1836 0 case awInt:
1837 0 rv->data = malloc(sizeof(int) * numelem);
1838 0 break;
1839 0 case awUnsigned:
1840 0 rv->data = malloc(sizeof(unsigned int) * numelem);
1841 0 break;
1842 0 default:
1843 0 croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned");
1844 }
1845  
1846 0 ▶ if (rv->data == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv->data == NULL) 0 0 0
1847 0 croak("array_wrapper_alloc: can't malloc data");
1848  
1849 0 rv->size = numelem;
1850 0 rv->type = type;
1851 0 return rv;
1852 }
1853  
1854 0 void array_wrapper_free(array_wrapper * daw){
1855 0 free(daw->data);
1856 0 free(daw);
1857 0 }
1858  
1859  
1860 /* structure to hold required information while the gsl function call
1861 for each callback
1862 */
1863 struct gsl_function_perl {
1864 gsl_function C_gsl_function;
1865 SV * function;
1866 SV * params;
1867 };
1868  
1869 struct gsl_function_fdf_perl {
1870 gsl_function_fdf C_gsl_function_fdf;
1871 SV * f;
1872 SV * df;
1873 SV * fdf;
1874 SV * params;
1875 };
1876  
1877 struct gsl_monte_function_perl {
1878 gsl_monte_function C_gsl_monte_function;
1879 SV * f;
1880 SV * dim;
1881 SV * params;
1882 };
1883  
1884 0 void gsl_function_perl_free(struct gsl_function_perl * perl_f){
1885 0 ▶ if (perl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_f != NULL) { 0 0 0
1886 0 SvREFCNT_dec(perl_f->function);
1887 0 SvREFCNT_dec(perl_f->params);
1888 0 Safefree(perl_f);
1889 }
1890 0 }
1891  
1892 0 void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){
1893 0 ▶ if (perl_fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_fdf != NULL) { 0 0 0
1894 0 SvREFCNT_dec(perl_fdf->f);
1895 0 SvREFCNT_dec(perl_fdf->df);
1896 0 SvREFCNT_dec(perl_fdf->fdf);
1897 0 SvREFCNT_dec(perl_fdf->params);
1898 0 Safefree(perl_fdf);
1899 }
1900 0 }
1901  
1902 /* These functions (C callbacks) calls the perl callbacks.
1903 Info for perl callback can be found using the 'void*params' parameter
1904 */
1905 0 double call_gsl_function_x_params(SV* function, double x, SV *params){
1906 unsigned int count;
1907 double y;
1908 0 dSP;
1909  
1910 //fprintf(stderr, "LOOKUP CALLBACK\n");
1911 0 ENTER;
1912 0 SAVETMPS;
1913  
1914 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1915 0 ▶ XPUSHs(sv_2mortal(newSVnv((double)x)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVnv((double)x))); 0 0 0
1916 0 ▶ XPUSHs(params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(params); 0 0 0
1917 0 PUTBACK; /* make local stack pointer global */
1918  
1919 0 count = call_sv(function, G_SCALAR);
1920 0 SPAGAIN;
1921  
1922 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
1923 0 croak("Expected to call subroutine in scalar context!");
1924  
1925 0 y = POPn;
1926  
1927 0 PUTBACK; /* make local stack pointer global */
1928 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1929 0 LEAVE;
1930  
1931 0 return y;
1932 }
1933  
1934 0 double call_gsl_function(double x , void *params){
1935 0 struct gsl_function_perl *F=(struct gsl_function_perl*)params;
1936 0 return call_gsl_function_x_params( F->function, x, F->params );
1937 }
1938  
1939 0 double call_gsl_function_fdf_f(double x , void *params){
1940 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1941 0 return call_gsl_function_x_params( F->f, x, F->params );
1942 }
1943  
1944 0 double call_gsl_function_fdf_df(double x , void *params){
1945 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1946 0 return call_gsl_function_x_params( F->df, x, F->params );
1947 }
1948  
1949 0 void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){
1950 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1951  
1952 0 dSP;
1953  
1954 0 ENTER;
1955 0 SAVETMPS;
1956  
1957 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1958 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
1959 0 PUSHs(sv_2mortal(newSVnv((double)x)));
1960 0 PUSHs(F->params);
1961 0 PUTBACK; /* make local stack pointer global */
1962  
1963 {
1964 0 unsigned int count = call_sv(F->fdf, G_ARRAY);
1965 0 SPAGAIN;
1966  
1967 0 ▶ if (count != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 2) 0 0 0
1968 0 croak( "Expected two return values, got %d", count );
1969 }
1970  
1971 0 *df = POPn;
1972 0 *f = POPn;
1973  
1974 0 PUTBACK; /* make local stack pointer global */
1975 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1976 0 LEAVE;
1977 0 }
1978  
1979 0 double call_gsl_monte_function(double *x_array , size_t dim, void *params){
1980 0 struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params;
1981 unsigned int count;
1982 unsigned int i;
1983 AV* perl_array;
1984 double y;
1985 0 dSP;
1986  
1987 //fprintf(stderr, "LOOKUP CALLBACK\n");
1988 0 ENTER;
1989 0 SAVETMPS;
1990  
1991 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1992 0 perl_array=newAV();
1993 0 sv_2mortal((SV*)perl_array);
1994 0 ▶ XPUSHs(sv_2mortal(newRV((SV *)perl_array)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newRV((SV *)perl_array))); 0 0 0
1995 0 ▶ for(i=0; i<dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(i=0; i<dim; i++) { 0 0 0
1996 /* no mortal : it is referenced by the array */
1997 0 av_push(perl_array, newSVnv(x_array[i]));
1998 }
1999 0 ▶ XPUSHs(sv_2mortal(newSViv(dim)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSViv(dim))); 0 0 0
2000 0 ▶ XPUSHs(F->params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(F->params); 0 0 0
2001 0 PUTBACK; /* make local stack pointer global */
2002  
2003 0 count = call_sv(F->f, G_SCALAR);
2004 0 SPAGAIN;
2005  
2006 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
2007 0 croak("Expected to call subroutine in scalar context!");
2008  
2009 0 y = POPn;
2010  
2011 0 PUTBACK; /* make local stack pointer global */
2012 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2013 0 LEAVE;
2014  
2015 0 return y;
2016 }
2017  
2018  
2019 0 void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) {
2020 static const char *keys[3] = { "f", "df", "fdf" };
2021  
2022 int ikey;
2023  
2024 0 ▶ for ( ikey = 0 ; ikey < 3 ; ++ikey ) {
Branch: 1 branch
BranchTrueFalseTotal
for ( ikey = 0 ; ikey < 3 ; ++ikey ) { 0 0 0
2025 0 func[ikey] = 0;
2026 0 const char* key = keys[ikey];
2027 /* it just so happens that strlen(keys[ikey]) == ikey + 1 */
2028 0 SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 );
2029 SV* function;
2030  
2031 0 ▶ if ( !pp_sv )
Branch: 1 branch
BranchTrueFalseTotal
if ( !pp_sv ) 0 0 0
2032 0 croak("Math::GSL : %s: missing key %s!", param_name, key);
2033  
2034 0 function = *pp_sv;
2035  
2036 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
2037 /* hold on to SV after the enclosing hash goes away */
2038 0 SvREFCNT_inc( function );
2039 0 func[ikey] = function;
2040 }
2041 else {
2042 0 croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key);
2043 }
2044 }
2045 0 }
2046  
2047  
2048  
2049 #include "gsl/gsl_inline.h"
2050 #include "gsl/gsl_nan.h"
2051 #include "gsl/gsl_sort.h"
2052 #include "gsl/gsl_sort_double.h"
2053 #include "gsl/gsl_sort_int.h"
2054 #include "gsl/gsl_sort_vector.h"
2055 #include "gsl/gsl_sort_vector_double.h"
2056 #include "gsl/gsl_sort_vector_int.h"
2057 #include "gsl/gsl_permutation.h"
2058  
2059  
2060 SWIGINTERN int
2061 0 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
2062 {
2063 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2064 0 UV v = SvUV(obj);
2065 if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) {
2066 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2067 0 return SWIG_OK;
2068 }
2069 return SWIG_OverflowError;
2070 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2071 0 IV v = SvIV(obj);
2072 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
2073 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2074 0 return SWIG_OK;
2075 }
2076 0 return SWIG_OverflowError;
2077 } else {
2078 0 int dispatch = 0;
2079 0 const char *nptr = SvPV_nolen(obj);
2080 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2081 char *endptr;
2082 unsigned long v;
2083 0 errno = 0;
2084 0 v = strtoul(nptr, &endptr,0);
2085 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2086 0 errno = 0;
2087 0 return SWIG_OverflowError;
2088 } else {
2089 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2090 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2091 0 return SWIG_Str2NumCast(SWIG_OK);
2092 }
2093 }
2094 }
2095 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2096 double d;
2097 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2098 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
2099 0 ▶ if (val) *val = (unsigned long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long)(d); 0 0 0
2100 0 return res;
2101 }
2102 }
2103 }
2104 0 return SWIG_TypeError;
2105 }
2106  
2107  
2108 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2109 # define SWIG_LONG_LONG_AVAILABLE
2110 #endif
2111  
2112  
2113 #ifdef SWIG_LONG_LONG_AVAILABLE
2114 SWIGINTERN int
2115 0 SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val)
2116 {
2117 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2118 /* pretty sure this should be conditional on
2119 * (UVSIZE <= sizeof(*val) || v <= ULLONG_MAX) */
2120 0 ▶ if (val) *val = SvUV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvUV(obj); 0 0 0
2121 0 return SWIG_OK;
2122 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2123 0 IV v = SvIV(obj);
2124 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
2125 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2126 0 return SWIG_OK;
2127 } else {
2128 0 return SWIG_OverflowError;
2129 }
2130 } else {
2131 0 int dispatch = 0;
2132 0 const char *nptr = SvPV_nolen(obj);
2133 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2134 char *endptr;
2135 unsigned long long v;
2136 0 errno = 0;
2137 0 v = strtoull(nptr, &endptr,0);
2138 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2139 0 errno = 0;
2140 0 return SWIG_OverflowError;
2141 } else {
2142 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2143 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2144 0 return SWIG_Str2NumCast(SWIG_OK);
2145 }
2146 }
2147 }
2148 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2149 0 const double mant_max = 1LL << DBL_MANT_DIG;
2150 double d;
2151 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2152 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
2153 0 ▶ if (val) *val = (unsigned long long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long long)(d); 0 0 0
2154 0 return res;
2155 }
2156 }
2157 }
2158 0 return SWIG_TypeError;
2159 }
2160 #endif
2161  
2162  
2163 SWIGINTERNINLINE int
2164 0 SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
2165 {
2166 0 int res = SWIG_TypeError;
2167 #ifdef SWIG_LONG_LONG_AVAILABLE
2168 if (sizeof(size_t) <= sizeof(unsigned long)) {
2169 #endif
2170 unsigned long v;
2171 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
2172 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
2173 #ifdef SWIG_LONG_LONG_AVAILABLE
2174 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2175 unsigned long long v;
2176 res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
2177 if (SWIG_IsOK(res) && val) *val = (size_t)(v);
2178 }
2179 #endif
2180 0 return res;
2181 }
2182  
2183  
2184 SWIGINTERNINLINE SV *
2185 0 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
2186 {
2187 SV *sv;
2188 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2189 0 sv = newSVuv(value);
2190 else
2191 sv = newSVpvf("%lu", value);
2192 0 return sv_2mortal(sv);
2193 }
2194  
2195  
2196 #include <stdio.h>
2197 #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
2198 # ifndef snprintf
2199 # define snprintf _snprintf
2200 # endif
2201 #endif
2202  
2203  
2204 #ifdef SWIG_LONG_LONG_AVAILABLE
2205 SWIGINTERNINLINE SV *
2206 SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value)
2207 {
2208 SV *sv;
2209 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2210 sv = newSVuv((UV)(value));
2211 else {
2212 //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl
2213 char temp[256];
2214 SWIG_snprintf(temp, sizeof(temp), "%llu", value);
2215 sv = newSVpv(temp, 0);
2216 }
2217 return sv_2mortal(sv);
2218 }
2219 #endif
2220  
2221  
2222 SWIGINTERNINLINE SV *
2223 0 SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value)
2224 {
2225 #ifdef SWIG_LONG_LONG_AVAILABLE
2226 if (sizeof(size_t) <= sizeof(unsigned long)) {
2227 #endif
2228 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(value));
2229 #ifdef SWIG_LONG_LONG_AVAILABLE
2230 } else {
2231 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
2232 return SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long long)(value));
2233 }
2234 #endif
2235 }
2236  
2237 #ifdef __cplusplus
2238 extern "C" {
2239 #endif
2240  
2241 #define MAGIC_CLASS
2242 0 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
2243 MAGIC_PPERL
2244 0 croak("Value is read-only.");
2245 return 0;
2246 }
2247  
2248 #ifdef __cplusplus
2249 }
2250 #endif
2251  
2252 #ifdef __cplusplus
2253 extern "C" {
2254 #endif
2255 0 XS(_wrap_gsl_error) {
2256 {
2257 0 char *arg1 = (char *) 0 ;
2258 0 char *arg2 = (char *) 0 ;
2259 int arg3 ;
2260 int arg4 ;
2261 int res1 ;
2262 0 char *buf1 = 0 ;
2263 0 int alloc1 = 0 ;
2264 int res2 ;
2265 0 char *buf2 = 0 ;
2266 0 int alloc2 = 0 ;
2267 int val3 ;
2268 0 int ecode3 = 0 ;
2269 int val4 ;
2270 0 int ecode4 = 0 ;
2271 0 int argvi = 0;
2272 0 dXSARGS;
2273
2274 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
2275 0 SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);");
2276 }
2277 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2278 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2279 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
2280 }
2281 0 arg1 = (char *)(buf1);
2282 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2283 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2284 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
2285 }
2286 0 arg2 = (char *)(buf2);
2287 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2288 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2289 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
2290 }
2291 0 arg3 = (int)(val3);
2292 0 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2293 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2294 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
2295 }
2296 0 arg4 = (int)(val4);
2297 0 gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4);
2298 0 ST(argvi) = &PL_sv_undef;
2299 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2300 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2301
2302
2303 0 XSRETURN(argvi);
2304 0 fail:
2305 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2306 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2307
2308
2309 0 SWIG_croak_null();
2310 }
2311 }
2312  
2313  
2314 0 XS(_wrap_gsl_stream_printf) {
2315 {
2316 0 char *arg1 = (char *) 0 ;
2317 0 char *arg2 = (char *) 0 ;
2318 int arg3 ;
2319 0 char *arg4 = (char *) 0 ;
2320 int res1 ;
2321 0 char *buf1 = 0 ;
2322 0 int alloc1 = 0 ;
2323 int res2 ;
2324 0 char *buf2 = 0 ;
2325 0 int alloc2 = 0 ;
2326 int val3 ;
2327 0 int ecode3 = 0 ;
2328 int res4 ;
2329 0 char *buf4 = 0 ;
2330 0 int alloc4 = 0 ;
2331 0 int argvi = 0;
2332 0 dXSARGS;
2333
2334 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
2335 0 SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);");
2336 }
2337 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2338 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2339 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
2340 }
2341 0 arg1 = (char *)(buf1);
2342 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2343 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2344 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
2345 }
2346 0 arg2 = (char *)(buf2);
2347 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2348 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2349 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
2350 }
2351 0 arg3 = (int)(val3);
2352 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
2353 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
2354 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
2355 }
2356 0 arg4 = (char *)(buf4);
2357 0 gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
2358 0 ST(argvi) = &PL_sv_undef;
2359 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2360 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2361
2362 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2363 0 XSRETURN(argvi);
2364 0 fail:
2365 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2366 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2367
2368 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2369 0 SWIG_croak_null();
2370 }
2371 }
2372  
2373  
2374 0 XS(_wrap_gsl_strerror) {
2375 {
2376 int arg1 ;
2377 int val1 ;
2378 0 int ecode1 = 0 ;
2379 0 int argvi = 0;
2380 0 char *result = 0 ;
2381 0 dXSARGS;
2382
2383 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
2384 0 SWIG_croak("Usage: gsl_strerror(gsl_errno);");
2385 }
2386 0 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
2387 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
2388 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
2389 }
2390 0 arg1 = (int)(val1);
2391 0 result = (char *)gsl_strerror(arg1);
2392 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2393
2394 0 XSRETURN(argvi);
2395 0 fail:
2396
2397 0 SWIG_croak_null();
2398 }
2399 }
2400  
2401  
2402 0 XS(_wrap_gsl_set_error_handler) {
2403 {
2404 0 gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ;
2405 0 int argvi = 0;
2406 0 gsl_error_handler_t *result = 0 ;
2407 0 dXSARGS;
2408
2409 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
2410 0 SWIG_croak("Usage: gsl_set_error_handler(new_handler);");
2411 }
2412 {
2413 0 int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void);
2414 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2415 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
2416 }
2417 }
2418 0 result = (gsl_error_handler_t *)gsl_set_error_handler(arg1);
2419 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2420
2421 0 XSRETURN(argvi);
2422 0 fail:
2423
2424 0 SWIG_croak_null();
2425 }
2426 }
2427  
2428  
2429 0 XS(_wrap_gsl_set_error_handler_off) {
2430 {
2431 0 int argvi = 0;
2432 0 gsl_error_handler_t *result = 0 ;
2433 0 dXSARGS;
2434
2435 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
2436 0 SWIG_croak("Usage: gsl_set_error_handler_off();");
2437 }
2438 0 result = (gsl_error_handler_t *)gsl_set_error_handler_off();
2439 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2440 0 XSRETURN(argvi);
2441 0 fail:
2442 0 SWIG_croak_null();
2443 }
2444 }
2445  
2446  
2447 0 XS(_wrap_gsl_set_stream_handler) {
2448 {
2449 0 gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ;
2450 0 int argvi = 0;
2451 0 gsl_stream_handler_t *result = 0 ;
2452 0 dXSARGS;
2453
2454 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
2455 0 SWIG_croak("Usage: gsl_set_stream_handler(new_handler);");
2456 }
2457 {
2458 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);
2459 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2460 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
2461 }
2462 }
2463 0 result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1);
2464 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++ ;
2465
2466 0 XSRETURN(argvi);
2467 0 fail:
2468
2469 0 SWIG_croak_null();
2470 }
2471 }
2472  
2473  
2474 0 XS(_wrap_gsl_set_stream) {
2475 {
2476 0 FILE *arg1 = (FILE *) 0 ;
2477 0 void *argp1 = 0 ;
2478 0 int res1 = 0 ;
2479 0 int argvi = 0;
2480 0 FILE *result = 0 ;
2481 0 dXSARGS;
2482
2483 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
2484 0 SWIG_croak("Usage: gsl_set_stream(new_stream);");
2485 }
2486 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2487 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2488 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
2489 }
2490 0 arg1 = (FILE *)(argp1);
2491 0 result = (FILE *)gsl_set_stream(arg1);
2492 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ;
2493
2494 0 XSRETURN(argvi);
2495 0 fail:
2496
2497 0 SWIG_croak_null();
2498 }
2499 }
2500  
2501  
2502 0 XS(_wrap_gsl_sort) {
2503 {
2504 0 double *arg1 = (double *) 0 ;
2505 size_t arg2 ;
2506 size_t arg3 ;
2507 size_t val2 ;
2508 0 int ecode2 = 0 ;
2509 size_t val3 ;
2510 0 int ecode3 = 0 ;
2511 0 int argvi = 0;
2512 SV * _saved[1] ;
2513 0 dXSARGS;
2514
2515 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
2516 0 SWIG_croak("Usage: gsl_sort(data,stride,n);");
2517 }
2518 {
2519 AV *tempav;
2520 I32 len;
2521 int i;
2522 SV **tv;
2523 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2524 0 croak("Math::GSL : $data is not a reference!");
2525 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2526 0 croak("Math::GSL : $data is not an array ref!");
2527
2528 0 tempav = (AV*)SvRV(ST(0));
2529 0 len = av_len(tempav);
2530 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2531 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2532 0 tv = av_fetch(tempav, i, 0);
2533 0 arg1[i] = (double) SvNV(*tv);
2534 }
2535 }
2536 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2537 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2538 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2539 }
2540 0 arg2 = (size_t)(val2);
2541 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2542 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2543 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2544 }
2545 0 arg3 = (size_t)(val3);
2546 0 _saved[0] = ST(0);
2547 0 gsl_sort(arg1,arg2,arg3);
2548 0 ST(argvi) = &PL_sv_undef;
2549 {
2550 0 int i=0;
2551 0 AV* tempav = newAV();
2552
2553 0 ▶ while( i < arg3 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg3 ) { 0 0 0
2554 0 av_push(tempav, newSVnv((double) arg1[i]));
2555 0 i++;
2556 }
2557
2558 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
2559 //Perl_sv_dump(ST(argvi));
2560 0 argvi++;
2561 }
2562 {
2563 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2564 }
2565
2566
2567 0 XSRETURN(argvi);
2568 0 fail:
2569 {
2570 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2571 }
2572
2573
2574 0 SWIG_croak_null();
2575 }
2576 }
2577  
2578  
2579 0 XS(_wrap_gsl_sort2) {
2580 {
2581 0 double *arg1 = (double *) 0 ;
2582 size_t arg2 ;
2583 0 double *arg3 = (double *) 0 ;
2584 size_t arg4 ;
2585 size_t arg5 ;
2586 0 void *argp1 = 0 ;
2587 0 int res1 = 0 ;
2588 size_t val2 ;
2589 0 int ecode2 = 0 ;
2590 0 void *argp3 = 0 ;
2591 0 int res3 = 0 ;
2592 size_t val4 ;
2593 0 int ecode4 = 0 ;
2594 size_t val5 ;
2595 0 int ecode5 = 0 ;
2596 0 int argvi = 0;
2597 0 dXSARGS;
2598
2599 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
2600 0 SWIG_croak("Usage: gsl_sort2(data1,stride1,data2,stride2,n);");
2601 }
2602 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_double, 0 | 0 );
2603 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2604 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort2" "', argument " "1"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort2" "', argument " "1"" of type '" "double *""'"); 0 0 0
2605 }
2606 0 arg1 = (double *)(argp1);
2607 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2608 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2609 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort2" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort2" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2610 }
2611 0 arg2 = (size_t)(val2);
2612 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_double, 0 | 0 );
2613 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
2614 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort2" "', argument " "3"" of type '" "double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort2" "', argument " "3"" of type '" "double *""'"); 0 0 0
2615 }
2616 0 arg3 = (double *)(argp3);
2617 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2618 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2619 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort2" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort2" "', argument " "4"" of type '" "size_t""'"); 0 0 0
2620 }
2621 0 arg4 = (size_t)(val4);
2622 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
2623 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
2624 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort2" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort2" "', argument " "5"" of type '" "size_t""'"); 0 0 0
2625 }
2626 0 arg5 = (size_t)(val5);
2627 0 gsl_sort2(arg1,arg2,arg3,arg4,arg5);
2628 0 ST(argvi) = &PL_sv_undef;
2629
2630
2631
2632
2633
2634 0 XSRETURN(argvi);
2635 0 fail:
2636
2637
2638
2639
2640
2641 0 SWIG_croak_null();
2642 }
2643 }
2644  
2645  
2646 0 XS(_wrap_gsl_sort_index) {
2647 {
2648 0 size_t *arg1 = (size_t *) 0 ;
2649 0 double *arg2 = (double *) 0 ;
2650 size_t arg3 ;
2651 size_t arg4 ;
2652 size_t val3 ;
2653 0 int ecode3 = 0 ;
2654 size_t val4 ;
2655 0 int ecode4 = 0 ;
2656 0 int argvi = 0;
2657 SV * _saved[1] ;
2658 0 dXSARGS;
2659
2660 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
2661 0 SWIG_croak("Usage: gsl_sort_index(p,data,stride,n);");
2662 }
2663 {
2664 AV *tempav;
2665 I32 len;
2666 int i;
2667 SV **tv;
2668 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2669 0 croak("Math::GSL : $p is not a reference!");
2670 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2671 0 croak("Math::GSL : $p is not an array ref!");
2672
2673 0 tempav = (AV*)SvRV(ST(0));
2674 0 len = av_len(tempav);
2675 /* Why does this need to be len+2 ? */
2676 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
2677 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2678 0 tv = av_fetch(tempav, i, 0);
2679 0 arg1[i] = (size_t) SvIV(*tv);
2680 }
2681 }
2682 {
2683 AV *tempav;
2684 I32 len;
2685 int i;
2686 SV **tv;
2687 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
2688 0 croak("Math::GSL : $data is not a reference!");
2689 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
2690 0 croak("Math::GSL : $data is not an array ref!");
2691
2692 0 tempav = (AV*)SvRV(ST(1));
2693 0 len = av_len(tempav);
2694 0 arg2 = (double *) malloc((len+2)*sizeof(double));
2695 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2696 0 tv = av_fetch(tempav, i, 0);
2697 0 arg2[i] = (double) SvNV(*tv);
2698 }
2699 }
2700 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2701 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2702 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2703 }
2704 0 arg3 = (size_t)(val3);
2705 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2706 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2707 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
2708 }
2709 0 arg4 = (size_t)(val4);
2710 0 _saved[0] = ST(0);
2711 0 gsl_sort_index(arg1,(double const *)arg2,arg3,arg4);
2712 0 ST(argvi) = &PL_sv_undef;
2713 {
2714 0 int i=0;
2715 0 AV* tempav = newAV();
2716 0 ▶ while( i < arg4 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg4 ) { 0 0 0
2717 0 av_push(tempav, newSViv((size_t) arg1[i]));
2718 0 i++;
2719 }
2720
2721 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
2722 0 argvi++;
2723 }
2724 {
2725 // if (arg1) free(arg1);
2726 }
2727 {
2728 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
2729 }
2730
2731
2732 0 XSRETURN(argvi);
2733 0 fail:
2734 {
2735 // if (arg1) free(arg1);
2736 }
2737 {
2738 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
2739 }
2740
2741
2742 0 SWIG_croak_null();
2743 }
2744 }
2745  
2746  
2747 0 XS(_wrap_gsl_sort_smallest) {
2748 {
2749 0 double *arg1 = (double *) 0 ;
2750 size_t arg2 ;
2751 0 double *arg3 = (double *) 0 ;
2752 size_t arg4 ;
2753 size_t arg5 ;
2754 size_t val2 ;
2755 0 int ecode2 = 0 ;
2756 size_t val4 ;
2757 0 int ecode4 = 0 ;
2758 size_t val5 ;
2759 0 int ecode5 = 0 ;
2760 0 int argvi = 0;
2761 SV * _saved[1] ;
2762 int result;
2763 0 dXSARGS;
2764
2765 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
2766 0 SWIG_croak("Usage: gsl_sort_smallest(dest,k,src,stride,n);");
2767 }
2768 {
2769 AV *tempav;
2770 I32 len;
2771 int i;
2772 SV **tv;
2773 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2774 0 croak("Math::GSL : $dest is not a reference!");
2775 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2776 0 croak("Math::GSL : $dest is not an array ref!");
2777
2778 0 tempav = (AV*)SvRV(ST(0));
2779 0 len = av_len(tempav);
2780 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2781 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2782 0 tv = av_fetch(tempav, i, 0);
2783 0 arg1[i] = (double) SvNV(*tv);
2784 }
2785 }
2786 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2787 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2788 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_smallest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_smallest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2789 }
2790 0 arg2 = (size_t)(val2);
2791 {
2792 AV *tempav;
2793 I32 len;
2794 int i;
2795 SV **tv;
2796 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
2797 0 croak("Math::GSL : $src is not a reference!");
2798 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
2799 0 croak("Math::GSL : $src is not an array ref!");
2800
2801 0 tempav = (AV*)SvRV(ST(2));
2802 0 len = av_len(tempav);
2803 0 arg3 = (double *) malloc((len+2)*sizeof(double));
2804 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2805 0 tv = av_fetch(tempav, i, 0);
2806 0 arg3[i] = (double) SvNV(*tv);
2807 }
2808 }
2809 0 ecode4 = SWIG_AsVal_size_t 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_sort_smallest" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_smallest" "', argument " "4"" of type '" "size_t""'"); 0 0 0
2812 }
2813 0 arg4 = (size_t)(val4);
2814 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
2815 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
2816 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_smallest" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_smallest" "', argument " "5"" of type '" "size_t""'"); 0 0 0
2817 }
2818 0 arg5 = (size_t)(val5);
2819 0 _saved[0] = ST(0);
2820 0 result = (int)gsl_sort_smallest(arg1,arg2,(double const *)arg3,arg4,arg5);
2821 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
2822 {
2823 0 int i=0;
2824 0 AV* tempav = newAV();
2825 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
2826 0 av_push(tempav, newSVnv((double) arg1[i]));
2827 0 i++;
2828 }
2829
2830 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
2831 0 argvi++;
2832 }
2833 {
2834 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2835 }
2836
2837 {
2838 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
2839 }
2840
2841
2842 0 XSRETURN(argvi);
2843 0 fail:
2844 {
2845 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2846 }
2847
2848 {
2849 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
2850 }
2851
2852
2853 0 SWIG_croak_null();
2854 }
2855 }
2856  
2857  
2858 0 XS(_wrap_gsl_sort_smallest_index) {
2859 {
2860 0 size_t *arg1 = (size_t *) 0 ;
2861 size_t arg2 ;
2862 0 double *arg3 = (double *) 0 ;
2863 size_t arg4 ;
2864 size_t arg5 ;
2865 size_t val2 ;
2866 0 int ecode2 = 0 ;
2867 size_t val4 ;
2868 0 int ecode4 = 0 ;
2869 size_t val5 ;
2870 0 int ecode5 = 0 ;
2871 0 int argvi = 0;
2872 SV * _saved[1] ;
2873 int result;
2874 0 dXSARGS;
2875
2876 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
2877 0 SWIG_croak("Usage: gsl_sort_smallest_index(p,k,src,stride,n);");
2878 }
2879 {
2880 AV *tempav;
2881 I32 len;
2882 int i;
2883 SV **tv;
2884 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2885 0 croak("Math::GSL : $p is not a reference!");
2886 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2887 0 croak("Math::GSL : $p is not an array ref!");
2888
2889 0 tempav = (AV*)SvRV(ST(0));
2890 0 len = av_len(tempav);
2891 /* Why does this need to be len+2 ? */
2892 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
2893 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2894 0 tv = av_fetch(tempav, i, 0);
2895 0 arg1[i] = (size_t) SvIV(*tv);
2896 }
2897 }
2898 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2899 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2900 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_smallest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_smallest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2901 }
2902 0 arg2 = (size_t)(val2);
2903 {
2904 AV *tempav;
2905 I32 len;
2906 int i;
2907 SV **tv;
2908 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
2909 0 croak("Math::GSL : $src is not a reference!");
2910 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
2911 0 croak("Math::GSL : $src is not an array ref!");
2912
2913 0 tempav = (AV*)SvRV(ST(2));
2914 0 len = av_len(tempav);
2915 0 arg3 = (double *) malloc((len+2)*sizeof(double));
2916 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2917 0 tv = av_fetch(tempav, i, 0);
2918 0 arg3[i] = (double) SvNV(*tv);
2919 }
2920 }
2921 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2922 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2923 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_smallest_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_smallest_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
2924 }
2925 0 arg4 = (size_t)(val4);
2926 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
2927 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
2928 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_smallest_index" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_smallest_index" "', argument " "5"" of type '" "size_t""'"); 0 0 0
2929 }
2930 0 arg5 = (size_t)(val5);
2931 0 _saved[0] = ST(0);
2932 0 result = (int)gsl_sort_smallest_index(arg1,arg2,(double const *)arg3,arg4,arg5);
2933 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
2934 {
2935 0 int i=0;
2936 0 AV* tempav = newAV();
2937 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
2938 0 av_push(tempav, newSViv((size_t) arg1[i]));
2939 0 i++;
2940 }
2941
2942 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
2943 0 argvi++;
2944 }
2945 {
2946 // if (arg1) free(arg1);
2947 }
2948
2949 {
2950 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
2951 }
2952
2953
2954 0 XSRETURN(argvi);
2955 0 fail:
2956 {
2957 // if (arg1) free(arg1);
2958 }
2959
2960 {
2961 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
2962 }
2963
2964
2965 0 SWIG_croak_null();
2966 }
2967 }
2968  
2969  
2970 0 XS(_wrap_gsl_sort_largest) {
2971 {
2972 0 double *arg1 = (double *) 0 ;
2973 size_t arg2 ;
2974 0 double *arg3 = (double *) 0 ;
2975 size_t arg4 ;
2976 size_t arg5 ;
2977 size_t val2 ;
2978 0 int ecode2 = 0 ;
2979 size_t val4 ;
2980 0 int ecode4 = 0 ;
2981 size_t val5 ;
2982 0 int ecode5 = 0 ;
2983 0 int argvi = 0;
2984 SV * _saved[1] ;
2985 int result;
2986 0 dXSARGS;
2987
2988 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
2989 0 SWIG_croak("Usage: gsl_sort_largest(dest,k,src,stride,n);");
2990 }
2991 {
2992 AV *tempav;
2993 I32 len;
2994 int i;
2995 SV **tv;
2996 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2997 0 croak("Math::GSL : $dest is not a reference!");
2998 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2999 0 croak("Math::GSL : $dest is not an array ref!");
3000
3001 0 tempav = (AV*)SvRV(ST(0));
3002 0 len = av_len(tempav);
3003 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3004 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3005 0 tv = av_fetch(tempav, i, 0);
3006 0 arg1[i] = (double) SvNV(*tv);
3007 }
3008 }
3009 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3010 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3011 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_largest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_largest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3012 }
3013 0 arg2 = (size_t)(val2);
3014 {
3015 AV *tempav;
3016 I32 len;
3017 int i;
3018 SV **tv;
3019 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
3020 0 croak("Math::GSL : $src is not a reference!");
3021 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
3022 0 croak("Math::GSL : $src is not an array ref!");
3023
3024 0 tempav = (AV*)SvRV(ST(2));
3025 0 len = av_len(tempav);
3026 0 arg3 = (double *) malloc((len+2)*sizeof(double));
3027 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3028 0 tv = av_fetch(tempav, i, 0);
3029 0 arg3[i] = (double) SvNV(*tv);
3030 }
3031 }
3032 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3033 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3034 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_largest" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_largest" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3035 }
3036 0 arg4 = (size_t)(val4);
3037 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3038 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3039 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_largest" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_largest" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3040 }
3041 0 arg5 = (size_t)(val5);
3042 0 _saved[0] = ST(0);
3043 0 result = (int)gsl_sort_largest(arg1,arg2,(double const *)arg3,arg4,arg5);
3044 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3045 {
3046 0 int i=0;
3047 0 AV* tempav = newAV();
3048 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
3049 0 av_push(tempav, newSVnv((double) arg1[i]));
3050 0 i++;
3051 }
3052
3053 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
3054 0 argvi++;
3055 }
3056 {
3057 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3058 }
3059
3060 {
3061 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3062 }
3063
3064
3065 0 XSRETURN(argvi);
3066 0 fail:
3067 {
3068 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3069 }
3070
3071 {
3072 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3073 }
3074
3075
3076 0 SWIG_croak_null();
3077 }
3078 }
3079  
3080  
3081 0 XS(_wrap_gsl_sort_largest_index) {
3082 {
3083 0 size_t *arg1 = (size_t *) 0 ;
3084 size_t arg2 ;
3085 0 double *arg3 = (double *) 0 ;
3086 size_t arg4 ;
3087 size_t arg5 ;
3088 size_t val2 ;
3089 0 int ecode2 = 0 ;
3090 size_t val4 ;
3091 0 int ecode4 = 0 ;
3092 size_t val5 ;
3093 0 int ecode5 = 0 ;
3094 0 int argvi = 0;
3095 SV * _saved[1] ;
3096 int result;
3097 0 dXSARGS;
3098
3099 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
3100 0 SWIG_croak("Usage: gsl_sort_largest_index(p,k,src,stride,n);");
3101 }
3102 {
3103 AV *tempav;
3104 I32 len;
3105 int i;
3106 SV **tv;
3107 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3108 0 croak("Math::GSL : $p is not a reference!");
3109 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3110 0 croak("Math::GSL : $p is not an array ref!");
3111
3112 0 tempav = (AV*)SvRV(ST(0));
3113 0 len = av_len(tempav);
3114 /* Why does this need to be len+2 ? */
3115 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
3116 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3117 0 tv = av_fetch(tempav, i, 0);
3118 0 arg1[i] = (size_t) SvIV(*tv);
3119 }
3120 }
3121 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3122 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3123 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_largest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_largest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3124 }
3125 0 arg2 = (size_t)(val2);
3126 {
3127 AV *tempav;
3128 I32 len;
3129 int i;
3130 SV **tv;
3131 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
3132 0 croak("Math::GSL : $src is not a reference!");
3133 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
3134 0 croak("Math::GSL : $src is not an array ref!");
3135
3136 0 tempav = (AV*)SvRV(ST(2));
3137 0 len = av_len(tempav);
3138 0 arg3 = (double *) malloc((len+2)*sizeof(double));
3139 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3140 0 tv = av_fetch(tempav, i, 0);
3141 0 arg3[i] = (double) SvNV(*tv);
3142 }
3143 }
3144 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3145 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3146 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_largest_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_largest_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3147 }
3148 0 arg4 = (size_t)(val4);
3149 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3150 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3151 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_largest_index" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_largest_index" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3152 }
3153 0 arg5 = (size_t)(val5);
3154 0 _saved[0] = ST(0);
3155 0 result = (int)gsl_sort_largest_index(arg1,arg2,(double const *)arg3,arg4,arg5);
3156 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3157 {
3158 0 int i=0;
3159 0 AV* tempav = newAV();
3160 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
3161 0 av_push(tempav, newSViv((size_t) arg1[i]));
3162 0 i++;
3163 }
3164
3165 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
3166 0 argvi++;
3167 }
3168 {
3169 // if (arg1) free(arg1);
3170 }
3171
3172 {
3173 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3174 }
3175
3176
3177 0 XSRETURN(argvi);
3178 0 fail:
3179 {
3180 // if (arg1) free(arg1);
3181 }
3182
3183 {
3184 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3185 }
3186
3187
3188 0 SWIG_croak_null();
3189 }
3190 }
3191  
3192  
3193 0 XS(_wrap_gsl_sort_int) {
3194 {
3195 0 int *arg1 = (int *) 0 ;
3196 size_t arg2 ;
3197 size_t arg3 ;
3198 0 void *argp1 = 0 ;
3199 0 int res1 = 0 ;
3200 size_t val2 ;
3201 0 int ecode2 = 0 ;
3202 size_t val3 ;
3203 0 int ecode3 = 0 ;
3204 0 int argvi = 0;
3205 0 dXSARGS;
3206
3207 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
3208 0 SWIG_croak("Usage: gsl_sort_int(data,stride,n);");
3209 }
3210 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
3211 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3212 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_int" "', argument " "1"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_int" "', argument " "1"" of type '" "int *""'"); 0 0 0
3213 }
3214 0 arg1 = (int *)(argp1);
3215 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3216 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3217 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3218 }
3219 0 arg2 = (size_t)(val2);
3220 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3221 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3222 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort_int" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort_int" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3223 }
3224 0 arg3 = (size_t)(val3);
3225 0 gsl_sort_int(arg1,arg2,arg3);
3226 0 ST(argvi) = &PL_sv_undef;
3227
3228
3229
3230 0 XSRETURN(argvi);
3231 0 fail:
3232
3233
3234
3235 0 SWIG_croak_null();
3236 }
3237 }
3238  
3239  
3240 0 XS(_wrap_gsl_sort2_int) {
3241 {
3242 0 int *arg1 = (int *) 0 ;
3243 size_t arg2 ;
3244 0 int *arg3 = (int *) 0 ;
3245 size_t arg4 ;
3246 size_t arg5 ;
3247 0 void *argp1 = 0 ;
3248 0 int res1 = 0 ;
3249 size_t val2 ;
3250 0 int ecode2 = 0 ;
3251 0 void *argp3 = 0 ;
3252 0 int res3 = 0 ;
3253 size_t val4 ;
3254 0 int ecode4 = 0 ;
3255 size_t val5 ;
3256 0 int ecode5 = 0 ;
3257 0 int argvi = 0;
3258 0 dXSARGS;
3259
3260 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
3261 0 SWIG_croak("Usage: gsl_sort2_int(data1,stride1,data2,stride2,n);");
3262 }
3263 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
3264 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3265 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort2_int" "', argument " "1"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort2_int" "', argument " "1"" of type '" "int *""'"); 0 0 0
3266 }
3267 0 arg1 = (int *)(argp1);
3268 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3269 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3270 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort2_int" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort2_int" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3271 }
3272 0 arg2 = (size_t)(val2);
3273 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_int, 0 | 0 );
3274 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3275 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort2_int" "', argument " "3"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort2_int" "', argument " "3"" of type '" "int *""'"); 0 0 0
3276 }
3277 0 arg3 = (int *)(argp3);
3278 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3279 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3280 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort2_int" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort2_int" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3281 }
3282 0 arg4 = (size_t)(val4);
3283 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3284 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3285 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort2_int" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort2_int" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3286 }
3287 0 arg5 = (size_t)(val5);
3288 0 gsl_sort2_int(arg1,arg2,arg3,arg4,arg5);
3289 0 ST(argvi) = &PL_sv_undef;
3290
3291
3292
3293
3294
3295 0 XSRETURN(argvi);
3296 0 fail:
3297
3298
3299
3300
3301
3302 0 SWIG_croak_null();
3303 }
3304 }
3305  
3306  
3307 0 XS(_wrap_gsl_sort_int_index) {
3308 {
3309 0 size_t *arg1 = (size_t *) 0 ;
3310 0 int *arg2 = (int *) 0 ;
3311 size_t arg3 ;
3312 size_t arg4 ;
3313 0 void *argp2 = 0 ;
3314 0 int res2 = 0 ;
3315 size_t val3 ;
3316 0 int ecode3 = 0 ;
3317 size_t val4 ;
3318 0 int ecode4 = 0 ;
3319 0 int argvi = 0;
3320 0 dXSARGS;
3321
3322 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
3323 0 SWIG_croak("Usage: gsl_sort_int_index(p,data,stride,n);");
3324 }
3325 {
3326 AV *tempav;
3327 I32 len;
3328 int i;
3329 SV **tv;
3330 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3331 0 croak("Math::GSL : $p is not a reference!");
3332 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3333 0 croak("Math::GSL : $p is not an array ref!");
3334
3335 0 tempav = (AV*)SvRV(ST(0));
3336 0 len = av_len(tempav);
3337 /* Why does this need to be len+2 ? */
3338 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
3339 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3340 0 tv = av_fetch(tempav, i, 0);
3341 0 arg1[i] = (size_t) SvIV(*tv);
3342 }
3343 }
3344 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_int, 0 | 0 );
3345 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3346 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_int_index" "', argument " "2"" of type '" "int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_int_index" "', argument " "2"" of type '" "int const *""'"); 0 0 0
3347 }
3348 0 arg2 = (int *)(argp2);
3349 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3350 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3351 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort_int_index" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_sort_int_index" "', argument " "3"" of type '" "size_t""'"); 0 0 0
3352 }
3353 0 arg3 = (size_t)(val3);
3354 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3355 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3356 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3357 }
3358 0 arg4 = (size_t)(val4);
3359 0 gsl_sort_int_index(arg1,(int const *)arg2,arg3,arg4);
3360 0 ST(argvi) = &PL_sv_undef;
3361 {
3362 // if (arg1) free(arg1);
3363 }
3364
3365
3366
3367 0 XSRETURN(argvi);
3368 0 fail:
3369 {
3370 // if (arg1) free(arg1);
3371 }
3372
3373
3374
3375 0 SWIG_croak_null();
3376 }
3377 }
3378  
3379  
3380 0 XS(_wrap_gsl_sort_int_smallest) {
3381 {
3382 0 int *arg1 = (int *) 0 ;
3383 size_t arg2 ;
3384 0 int *arg3 = (int *) 0 ;
3385 size_t arg4 ;
3386 size_t arg5 ;
3387 0 void *argp1 = 0 ;
3388 0 int res1 = 0 ;
3389 size_t val2 ;
3390 0 int ecode2 = 0 ;
3391 0 void *argp3 = 0 ;
3392 0 int res3 = 0 ;
3393 size_t val4 ;
3394 0 int ecode4 = 0 ;
3395 size_t val5 ;
3396 0 int ecode5 = 0 ;
3397 0 int argvi = 0;
3398 int result;
3399 0 dXSARGS;
3400
3401 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
3402 0 SWIG_croak("Usage: gsl_sort_int_smallest(dest,k,src,stride,n);");
3403 }
3404 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
3405 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3406 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_int_smallest" "', argument " "1"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_int_smallest" "', argument " "1"" of type '" "int *""'"); 0 0 0
3407 }
3408 0 arg1 = (int *)(argp1);
3409 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3410 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3411 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_smallest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_smallest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3412 }
3413 0 arg2 = (size_t)(val2);
3414 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_int, 0 | 0 );
3415 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3416 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_smallest" "', argument " "3"" of type '" "int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_smallest" "', argument " "3"" of type '" "int const *""'"); 0 0 0
3417 }
3418 0 arg3 = (int *)(argp3);
3419 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3420 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3421 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_smallest" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_smallest" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3422 }
3423 0 arg4 = (size_t)(val4);
3424 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3425 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3426 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_smallest" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_smallest" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3427 }
3428 0 arg5 = (size_t)(val5);
3429 0 result = (int)gsl_sort_int_smallest(arg1,arg2,(int const *)arg3,arg4,arg5);
3430 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3431
3432
3433
3434
3435
3436 0 XSRETURN(argvi);
3437 0 fail:
3438
3439
3440
3441
3442
3443 0 SWIG_croak_null();
3444 }
3445 }
3446  
3447  
3448 0 XS(_wrap_gsl_sort_int_smallest_index) {
3449 {
3450 0 size_t *arg1 = (size_t *) 0 ;
3451 size_t arg2 ;
3452 0 int *arg3 = (int *) 0 ;
3453 size_t arg4 ;
3454 size_t arg5 ;
3455 size_t val2 ;
3456 0 int ecode2 = 0 ;
3457 0 void *argp3 = 0 ;
3458 0 int res3 = 0 ;
3459 size_t val4 ;
3460 0 int ecode4 = 0 ;
3461 size_t val5 ;
3462 0 int ecode5 = 0 ;
3463 0 int argvi = 0;
3464 int result;
3465 0 dXSARGS;
3466
3467 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
3468 0 SWIG_croak("Usage: gsl_sort_int_smallest_index(p,k,src,stride,n);");
3469 }
3470 {
3471 AV *tempav;
3472 I32 len;
3473 int i;
3474 SV **tv;
3475 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3476 0 croak("Math::GSL : $p is not a reference!");
3477 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3478 0 croak("Math::GSL : $p is not an array ref!");
3479
3480 0 tempav = (AV*)SvRV(ST(0));
3481 0 len = av_len(tempav);
3482 /* Why does this need to be len+2 ? */
3483 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
3484 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3485 0 tv = av_fetch(tempav, i, 0);
3486 0 arg1[i] = (size_t) SvIV(*tv);
3487 }
3488 }
3489 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3490 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3491 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_smallest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_smallest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3492 }
3493 0 arg2 = (size_t)(val2);
3494 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_int, 0 | 0 );
3495 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3496 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_smallest_index" "', argument " "3"" of type '" "int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_smallest_index" "', argument " "3"" of type '" "int const *""'"); 0 0 0
3497 }
3498 0 arg3 = (int *)(argp3);
3499 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3500 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3501 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_smallest_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_smallest_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3502 }
3503 0 arg4 = (size_t)(val4);
3504 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3505 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3506 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_smallest_index" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_smallest_index" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3507 }
3508 0 arg5 = (size_t)(val5);
3509 0 result = (int)gsl_sort_int_smallest_index(arg1,arg2,(int const *)arg3,arg4,arg5);
3510 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3511 {
3512 // if (arg1) free(arg1);
3513 }
3514
3515
3516
3517
3518 0 XSRETURN(argvi);
3519 0 fail:
3520 {
3521 // if (arg1) free(arg1);
3522 }
3523
3524
3525
3526
3527 0 SWIG_croak_null();
3528 }
3529 }
3530  
3531  
3532 0 XS(_wrap_gsl_sort_int_largest) {
3533 {
3534 0 int *arg1 = (int *) 0 ;
3535 size_t arg2 ;
3536 0 int *arg3 = (int *) 0 ;
3537 size_t arg4 ;
3538 size_t arg5 ;
3539 0 void *argp1 = 0 ;
3540 0 int res1 = 0 ;
3541 size_t val2 ;
3542 0 int ecode2 = 0 ;
3543 0 void *argp3 = 0 ;
3544 0 int res3 = 0 ;
3545 size_t val4 ;
3546 0 int ecode4 = 0 ;
3547 size_t val5 ;
3548 0 int ecode5 = 0 ;
3549 0 int argvi = 0;
3550 int result;
3551 0 dXSARGS;
3552
3553 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
3554 0 SWIG_croak("Usage: gsl_sort_int_largest(dest,k,src,stride,n);");
3555 }
3556 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
3557 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3558 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_int_largest" "', argument " "1"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_int_largest" "', argument " "1"" of type '" "int *""'"); 0 0 0
3559 }
3560 0 arg1 = (int *)(argp1);
3561 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3562 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3563 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_largest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_largest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3564 }
3565 0 arg2 = (size_t)(val2);
3566 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_int, 0 | 0 );
3567 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3568 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_largest" "', argument " "3"" of type '" "int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_largest" "', argument " "3"" of type '" "int const *""'"); 0 0 0
3569 }
3570 0 arg3 = (int *)(argp3);
3571 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3572 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3573 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_largest" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_largest" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3574 }
3575 0 arg4 = (size_t)(val4);
3576 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3577 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3578 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_largest" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_largest" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3579 }
3580 0 arg5 = (size_t)(val5);
3581 0 result = (int)gsl_sort_int_largest(arg1,arg2,(int const *)arg3,arg4,arg5);
3582 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3583
3584
3585
3586
3587
3588 0 XSRETURN(argvi);
3589 0 fail:
3590
3591
3592
3593
3594
3595 0 SWIG_croak_null();
3596 }
3597 }
3598  
3599  
3600 0 XS(_wrap_gsl_sort_int_largest_index) {
3601 {
3602 0 size_t *arg1 = (size_t *) 0 ;
3603 size_t arg2 ;
3604 0 int *arg3 = (int *) 0 ;
3605 size_t arg4 ;
3606 size_t arg5 ;
3607 size_t val2 ;
3608 0 int ecode2 = 0 ;
3609 0 void *argp3 = 0 ;
3610 0 int res3 = 0 ;
3611 size_t val4 ;
3612 0 int ecode4 = 0 ;
3613 size_t val5 ;
3614 0 int ecode5 = 0 ;
3615 0 int argvi = 0;
3616 int result;
3617 0 dXSARGS;
3618
3619 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
3620 0 SWIG_croak("Usage: gsl_sort_int_largest_index(p,k,src,stride,n);");
3621 }
3622 {
3623 AV *tempav;
3624 I32 len;
3625 int i;
3626 SV **tv;
3627 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3628 0 croak("Math::GSL : $p is not a reference!");
3629 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3630 0 croak("Math::GSL : $p is not an array ref!");
3631
3632 0 tempav = (AV*)SvRV(ST(0));
3633 0 len = av_len(tempav);
3634 /* Why does this need to be len+2 ? */
3635 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
3636 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3637 0 tv = av_fetch(tempav, i, 0);
3638 0 arg1[i] = (size_t) SvIV(*tv);
3639 }
3640 }
3641 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3642 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3643 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_largest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_int_largest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3644 }
3645 0 arg2 = (size_t)(val2);
3646 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_int, 0 | 0 );
3647 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3648 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_largest_index" "', argument " "3"" of type '" "int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_int_largest_index" "', argument " "3"" of type '" "int const *""'"); 0 0 0
3649 }
3650 0 arg3 = (int *)(argp3);
3651 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
3652 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
3653 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_largest_index" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_sort_int_largest_index" "', argument " "4"" of type '" "size_t""'"); 0 0 0
3654 }
3655 0 arg4 = (size_t)(val4);
3656 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3657 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3658 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_largest_index" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_sort_int_largest_index" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3659 }
3660 0 arg5 = (size_t)(val5);
3661 0 result = (int)gsl_sort_int_largest_index(arg1,arg2,(int const *)arg3,arg4,arg5);
3662 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3663 {
3664 // if (arg1) free(arg1);
3665 }
3666
3667
3668
3669
3670 0 XSRETURN(argvi);
3671 0 fail:
3672 {
3673 // if (arg1) free(arg1);
3674 }
3675
3676
3677
3678
3679 0 SWIG_croak_null();
3680 }
3681 }
3682  
3683  
3684 0 XS(_wrap_gsl_sort_vector) {
3685 {
3686 0 gsl_vector *arg1 = (gsl_vector *) 0 ;
3687 0 void *argp1 = 0 ;
3688 0 int res1 = 0 ;
3689 0 int argvi = 0;
3690 0 dXSARGS;
3691
3692 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
3693 0 SWIG_croak("Usage: gsl_sort_vector(v);");
3694 }
3695 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector, 0 | 0 );
3696 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3697 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector" "', argument " "1"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector" "', argument " "1"" of type '" "gsl_vector *""'"); 0 0 0
3698 }
3699 0 arg1 = (gsl_vector *)(argp1);
3700 0 gsl_sort_vector(arg1);
3701 0 ST(argvi) = &PL_sv_undef;
3702
3703 0 XSRETURN(argvi);
3704 0 fail:
3705
3706 0 SWIG_croak_null();
3707 }
3708 }
3709  
3710  
3711 0 XS(_wrap_gsl_sort_vector2) {
3712 {
3713 0 gsl_vector *arg1 = (gsl_vector *) 0 ;
3714 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
3715 0 void *argp1 = 0 ;
3716 0 int res1 = 0 ;
3717 0 void *argp2 = 0 ;
3718 0 int res2 = 0 ;
3719 0 int argvi = 0;
3720 0 dXSARGS;
3721
3722 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3723 0 SWIG_croak("Usage: gsl_sort_vector2(v1,v2);");
3724 }
3725 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector, 0 | 0 );
3726 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3727 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector2" "', argument " "1"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector2" "', argument " "1"" of type '" "gsl_vector *""'"); 0 0 0
3728 }
3729 0 arg1 = (gsl_vector *)(argp1);
3730 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 );
3731 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3732 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector2" "', argument " "2"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector2" "', argument " "2"" of type '" "gsl_vector *""'"); 0 0 0
3733 }
3734 0 arg2 = (gsl_vector *)(argp2);
3735 0 gsl_sort_vector2(arg1,arg2);
3736 0 ST(argvi) = &PL_sv_undef;
3737
3738
3739 0 XSRETURN(argvi);
3740 0 fail:
3741
3742
3743 0 SWIG_croak_null();
3744 }
3745 }
3746  
3747  
3748 0 XS(_wrap_gsl_sort_vector_index) {
3749 {
3750 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
3751 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
3752 0 void *argp1 = 0 ;
3753 0 int res1 = 0 ;
3754 0 void *argp2 = 0 ;
3755 0 int res2 = 0 ;
3756 0 int argvi = 0;
3757 int result;
3758 0 dXSARGS;
3759
3760 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
3761 0 SWIG_croak("Usage: gsl_sort_vector_index(p,v);");
3762 }
3763 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
3764 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3765 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_index" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_index" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
3766 }
3767 0 arg1 = (gsl_permutation *)(argp1);
3768 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 );
3769 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3770 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector_index" "', argument " "2"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector_index" "', argument " "2"" of type '" "gsl_vector const *""'"); 0 0 0
3771 }
3772 0 arg2 = (gsl_vector *)(argp2);
3773 0 result = (int)gsl_sort_vector_index(arg1,(gsl_vector const *)arg2);
3774 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3775
3776
3777 0 XSRETURN(argvi);
3778 0 fail:
3779
3780
3781 0 SWIG_croak_null();
3782 }
3783 }
3784  
3785  
3786 0 XS(_wrap_gsl_sort_vector_smallest) {
3787 {
3788 0 double *arg1 = (double *) 0 ;
3789 size_t arg2 ;
3790 0 gsl_vector *arg3 = (gsl_vector *) 0 ;
3791 size_t val2 ;
3792 0 int ecode2 = 0 ;
3793 0 void *argp3 = 0 ;
3794 0 int res3 = 0 ;
3795 0 int argvi = 0;
3796 SV * _saved[1] ;
3797 int result;
3798 0 dXSARGS;
3799
3800 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
3801 0 SWIG_croak("Usage: gsl_sort_vector_smallest(dest,k,v);");
3802 }
3803 {
3804 AV *tempav;
3805 I32 len;
3806 int i;
3807 SV **tv;
3808 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3809 0 croak("Math::GSL : $dest is not a reference!");
3810 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3811 0 croak("Math::GSL : $dest is not an array ref!");
3812
3813 0 tempav = (AV*)SvRV(ST(0));
3814 0 len = av_len(tempav);
3815 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3816 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3817 0 tv = av_fetch(tempav, i, 0);
3818 0 arg1[i] = (double) SvNV(*tv);
3819 }
3820 }
3821 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3822 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3823 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_smallest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_smallest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3824 }
3825 0 arg2 = (size_t)(val2);
3826 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 );
3827 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3828 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_smallest" "', argument " "3"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_smallest" "', argument " "3"" of type '" "gsl_vector const *""'"); 0 0 0
3829 }
3830 0 arg3 = (gsl_vector *)(argp3);
3831 0 _saved[0] = ST(0);
3832 0 result = (int)gsl_sort_vector_smallest(arg1,arg2,(gsl_vector const *)arg3);
3833 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3834 {
3835 0 int i=0;
3836 0 AV* tempav = newAV();
3837
3838 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
3839 0 av_push(tempav, newSVnv((double) arg1[i]));
3840 0 i++;
3841 }
3842
3843 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
3844 0 argvi++;
3845 }
3846 {
3847 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3848 }
3849
3850
3851 0 XSRETURN(argvi);
3852 0 fail:
3853 {
3854 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3855 }
3856
3857
3858 0 SWIG_croak_null();
3859 }
3860 }
3861  
3862  
3863 0 XS(_wrap_gsl_sort_vector_largest) {
3864 {
3865 0 double *arg1 = (double *) 0 ;
3866 size_t arg2 ;
3867 0 gsl_vector *arg3 = (gsl_vector *) 0 ;
3868 size_t val2 ;
3869 0 int ecode2 = 0 ;
3870 0 void *argp3 = 0 ;
3871 0 int res3 = 0 ;
3872 0 int argvi = 0;
3873 SV * _saved[1] ;
3874 int result;
3875 0 dXSARGS;
3876
3877 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
3878 0 SWIG_croak("Usage: gsl_sort_vector_largest(dest,k,v);");
3879 }
3880 {
3881 AV *tempav;
3882 I32 len;
3883 int i;
3884 SV **tv;
3885 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3886 0 croak("Math::GSL : $dest is not a reference!");
3887 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3888 0 croak("Math::GSL : $dest is not an array ref!");
3889
3890 0 tempav = (AV*)SvRV(ST(0));
3891 0 len = av_len(tempav);
3892 0 arg1 = (double *) malloc((len+2)*sizeof(double));
3893 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3894 0 tv = av_fetch(tempav, i, 0);
3895 0 arg1[i] = (double) SvNV(*tv);
3896 }
3897 }
3898 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3899 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3900 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_largest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_largest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3901 }
3902 0 arg2 = (size_t)(val2);
3903 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 );
3904 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3905 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_largest" "', argument " "3"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_largest" "', argument " "3"" of type '" "gsl_vector const *""'"); 0 0 0
3906 }
3907 0 arg3 = (gsl_vector *)(argp3);
3908 0 _saved[0] = ST(0);
3909 0 result = (int)gsl_sort_vector_largest(arg1,arg2,(gsl_vector const *)arg3);
3910 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3911 {
3912 0 int i=0;
3913 0 AV* tempav = newAV();
3914
3915 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
3916 0 av_push(tempav, newSVnv((double) arg1[i]));
3917 0 i++;
3918 }
3919
3920 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
3921 0 argvi++;
3922 }
3923 {
3924 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3925 }
3926
3927
3928 0 XSRETURN(argvi);
3929 0 fail:
3930 {
3931 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3932 }
3933
3934
3935 0 SWIG_croak_null();
3936 }
3937 }
3938  
3939  
3940 0 XS(_wrap_gsl_sort_vector_smallest_index) {
3941 {
3942 0 size_t *arg1 = (size_t *) 0 ;
3943 size_t arg2 ;
3944 0 gsl_vector *arg3 = (gsl_vector *) 0 ;
3945 size_t val2 ;
3946 0 int ecode2 = 0 ;
3947 0 void *argp3 = 0 ;
3948 0 int res3 = 0 ;
3949 0 int argvi = 0;
3950 SV * _saved[1] ;
3951 int result;
3952 0 dXSARGS;
3953
3954 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
3955 0 SWIG_croak("Usage: gsl_sort_vector_smallest_index(p,k,v);");
3956 }
3957 {
3958 AV *tempav;
3959 I32 len;
3960 int i;
3961 SV **tv;
3962 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
3963 0 croak("Math::GSL : $p is not a reference!");
3964 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
3965 0 croak("Math::GSL : $p is not an array ref!");
3966
3967 0 tempav = (AV*)SvRV(ST(0));
3968 0 len = av_len(tempav);
3969 /* Why does this need to be len+2 ? */
3970 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
3971 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3972 0 tv = av_fetch(tempav, i, 0);
3973 0 arg1[i] = (size_t) SvIV(*tv);
3974 }
3975 }
3976 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3977 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3978 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_smallest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_smallest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3979 }
3980 0 arg2 = (size_t)(val2);
3981 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 );
3982 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3983 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_smallest_index" "', argument " "3"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_smallest_index" "', argument " "3"" of type '" "gsl_vector const *""'"); 0 0 0
3984 }
3985 0 arg3 = (gsl_vector *)(argp3);
3986 0 _saved[0] = ST(0);
3987 0 result = (int)gsl_sort_vector_smallest_index(arg1,arg2,(gsl_vector const *)arg3);
3988 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3989 {
3990 0 int i=0;
3991 0 AV* tempav = newAV();
3992 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
3993 0 av_push(tempav, newSVnv((size_t) arg1[i]));
3994 0 i++;
3995 }
3996
3997 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
3998 0 argvi++;
3999 }
4000 {
4001 // if (arg1) free(arg1);
4002 }
4003
4004
4005 0 XSRETURN(argvi);
4006 0 fail:
4007 {
4008 // if (arg1) free(arg1);
4009 }
4010
4011
4012 0 SWIG_croak_null();
4013 }
4014 }
4015  
4016  
4017 0 XS(_wrap_gsl_sort_vector_largest_index) {
4018 {
4019 0 size_t *arg1 = (size_t *) 0 ;
4020 size_t arg2 ;
4021 0 gsl_vector *arg3 = (gsl_vector *) 0 ;
4022 size_t val2 ;
4023 0 int ecode2 = 0 ;
4024 0 void *argp3 = 0 ;
4025 0 int res3 = 0 ;
4026 0 int argvi = 0;
4027 SV * _saved[1] ;
4028 int result;
4029 0 dXSARGS;
4030
4031 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
4032 0 SWIG_croak("Usage: gsl_sort_vector_largest_index(p,k,v);");
4033 }
4034 {
4035 AV *tempav;
4036 I32 len;
4037 int i;
4038 SV **tv;
4039 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4040 0 croak("Math::GSL : $p is not a reference!");
4041 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4042 0 croak("Math::GSL : $p is not an array ref!");
4043
4044 0 tempav = (AV*)SvRV(ST(0));
4045 0 len = av_len(tempav);
4046 /* Why does this need to be len+2 ? */
4047 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
4048 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4049 0 tv = av_fetch(tempav, i, 0);
4050 0 arg1[i] = (size_t) SvIV(*tv);
4051 }
4052 }
4053 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4054 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4055 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_largest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_largest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4056 }
4057 0 arg2 = (size_t)(val2);
4058 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 );
4059 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
4060 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_largest_index" "', argument " "3"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_largest_index" "', argument " "3"" of type '" "gsl_vector const *""'"); 0 0 0
4061 }
4062 0 arg3 = (gsl_vector *)(argp3);
4063 0 _saved[0] = ST(0);
4064 0 result = (int)gsl_sort_vector_largest_index(arg1,arg2,(gsl_vector const *)arg3);
4065 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4066 {
4067 0 int i=0;
4068 0 AV* tempav = newAV();
4069 0 ▶ while( i < arg2 ) {
Branch: 1 branch
BranchTrueFalseTotal
while( i < arg2 ) { 0 0 0
4070 0 av_push(tempav, newSVnv((size_t) arg1[i]));
4071 0 i++;
4072 }
4073
4074 0 ST(argvi) = sv_2mortal( newRV_noinc( (SV*) tempav) );
4075 0 argvi++;
4076 }
4077 {
4078 // if (arg1) free(arg1);
4079 }
4080
4081
4082 0 XSRETURN(argvi);
4083 0 fail:
4084 {
4085 // if (arg1) free(arg1);
4086 }
4087
4088
4089 0 SWIG_croak_null();
4090 }
4091 }
4092  
4093  
4094 0 XS(_wrap_gsl_sort_vector_int) {
4095 {
4096 0 gsl_vector_int *arg1 = (gsl_vector_int *) 0 ;
4097 0 void *argp1 = 0 ;
4098 0 int res1 = 0 ;
4099 0 int argvi = 0;
4100 0 dXSARGS;
4101
4102 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
4103 0 SWIG_croak("Usage: gsl_sort_vector_int(v);");
4104 }
4105 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4106 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4107 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int" "', argument " "1"" of type '" "gsl_vector_int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int" "', argument " "1"" of type '" "gsl_vector_int *""'"); 0 0 0
4108 }
4109 0 arg1 = (gsl_vector_int *)(argp1);
4110 0 gsl_sort_vector_int(arg1);
4111 0 ST(argvi) = &PL_sv_undef;
4112
4113 0 XSRETURN(argvi);
4114 0 fail:
4115
4116 0 SWIG_croak_null();
4117 }
4118 }
4119  
4120  
4121 0 XS(_wrap_gsl_sort_vector2_int) {
4122 {
4123 0 gsl_vector_int *arg1 = (gsl_vector_int *) 0 ;
4124 0 gsl_vector_int *arg2 = (gsl_vector_int *) 0 ;
4125 0 void *argp1 = 0 ;
4126 0 int res1 = 0 ;
4127 0 void *argp2 = 0 ;
4128 0 int res2 = 0 ;
4129 0 int argvi = 0;
4130 0 dXSARGS;
4131
4132 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4133 0 SWIG_croak("Usage: gsl_sort_vector2_int(v1,v2);");
4134 }
4135 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4136 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4137 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector2_int" "', argument " "1"" of type '" "gsl_vector_int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector2_int" "', argument " "1"" of type '" "gsl_vector_int *""'"); 0 0 0
4138 }
4139 0 arg1 = (gsl_vector_int *)(argp1);
4140 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4141 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4142 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector2_int" "', argument " "2"" of type '" "gsl_vector_int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector2_int" "', argument " "2"" of type '" "gsl_vector_int *""'"); 0 0 0
4143 }
4144 0 arg2 = (gsl_vector_int *)(argp2);
4145 0 gsl_sort_vector2_int(arg1,arg2);
4146 0 ST(argvi) = &PL_sv_undef;
4147
4148
4149 0 XSRETURN(argvi);
4150 0 fail:
4151
4152
4153 0 SWIG_croak_null();
4154 }
4155 }
4156  
4157  
4158 0 XS(_wrap_gsl_sort_vector_int_index) {
4159 {
4160 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
4161 0 gsl_vector_int *arg2 = (gsl_vector_int *) 0 ;
4162 0 void *argp1 = 0 ;
4163 0 int res1 = 0 ;
4164 0 void *argp2 = 0 ;
4165 0 int res2 = 0 ;
4166 0 int argvi = 0;
4167 int result;
4168 0 dXSARGS;
4169
4170 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4171 0 SWIG_croak("Usage: gsl_sort_vector_int_index(p,v);");
4172 }
4173 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4174 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4175 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int_index" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int_index" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
4176 }
4177 0 arg1 = (gsl_permutation *)(argp1);
4178 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4179 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4180 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector_int_index" "', argument " "2"" of type '" "gsl_vector_int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_sort_vector_int_index" "', argument " "2"" of type '" "gsl_vector_int const *""'"); 0 0 0
4181 }
4182 0 arg2 = (gsl_vector_int *)(argp2);
4183 0 result = (int)gsl_sort_vector_int_index(arg1,(gsl_vector_int const *)arg2);
4184 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4185
4186
4187 0 XSRETURN(argvi);
4188 0 fail:
4189
4190
4191 0 SWIG_croak_null();
4192 }
4193 }
4194  
4195  
4196 0 XS(_wrap_gsl_sort_vector_int_smallest) {
4197 {
4198 0 int *arg1 = (int *) 0 ;
4199 size_t arg2 ;
4200 0 gsl_vector_int *arg3 = (gsl_vector_int *) 0 ;
4201 0 void *argp1 = 0 ;
4202 0 int res1 = 0 ;
4203 size_t val2 ;
4204 0 int ecode2 = 0 ;
4205 0 void *argp3 = 0 ;
4206 0 int res3 = 0 ;
4207 0 int argvi = 0;
4208 int result;
4209 0 dXSARGS;
4210
4211 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
4212 0 SWIG_croak("Usage: gsl_sort_vector_int_smallest(dest,k,v);");
4213 }
4214 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
4215 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4216 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int_smallest" "', argument " "1"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int_smallest" "', argument " "1"" of type '" "int *""'"); 0 0 0
4217 }
4218 0 arg1 = (int *)(argp1);
4219 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4220 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4221 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_smallest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_smallest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4222 }
4223 0 arg2 = (size_t)(val2);
4224 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4225 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
4226 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_smallest" "', argument " "3"" of type '" "gsl_vector_int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_smallest" "', argument " "3"" of type '" "gsl_vector_int const *""'"); 0 0 0
4227 }
4228 0 arg3 = (gsl_vector_int *)(argp3);
4229 0 result = (int)gsl_sort_vector_int_smallest(arg1,arg2,(gsl_vector_int const *)arg3);
4230 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4231
4232
4233
4234 0 XSRETURN(argvi);
4235 0 fail:
4236
4237
4238
4239 0 SWIG_croak_null();
4240 }
4241 }
4242  
4243  
4244 0 XS(_wrap_gsl_sort_vector_int_largest) {
4245 {
4246 0 int *arg1 = (int *) 0 ;
4247 size_t arg2 ;
4248 0 gsl_vector_int *arg3 = (gsl_vector_int *) 0 ;
4249 0 void *argp1 = 0 ;
4250 0 int res1 = 0 ;
4251 size_t val2 ;
4252 0 int ecode2 = 0 ;
4253 0 void *argp3 = 0 ;
4254 0 int res3 = 0 ;
4255 0 int argvi = 0;
4256 int result;
4257 0 dXSARGS;
4258
4259 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
4260 0 SWIG_croak("Usage: gsl_sort_vector_int_largest(dest,k,v);");
4261 }
4262 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 | 0 );
4263 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4264 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int_largest" "', argument " "1"" of type '" "int *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_sort_vector_int_largest" "', argument " "1"" of type '" "int *""'"); 0 0 0
4265 }
4266 0 arg1 = (int *)(argp1);
4267 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4268 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4269 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_largest" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_largest" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4270 }
4271 0 arg2 = (size_t)(val2);
4272 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4273 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
4274 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_largest" "', argument " "3"" of type '" "gsl_vector_int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_largest" "', argument " "3"" of type '" "gsl_vector_int const *""'"); 0 0 0
4275 }
4276 0 arg3 = (gsl_vector_int *)(argp3);
4277 0 result = (int)gsl_sort_vector_int_largest(arg1,arg2,(gsl_vector_int const *)arg3);
4278 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4279
4280
4281
4282 0 XSRETURN(argvi);
4283 0 fail:
4284
4285
4286
4287 0 SWIG_croak_null();
4288 }
4289 }
4290  
4291  
4292 0 XS(_wrap_gsl_sort_vector_int_smallest_index) {
4293 {
4294 0 size_t *arg1 = (size_t *) 0 ;
4295 size_t arg2 ;
4296 0 gsl_vector_int *arg3 = (gsl_vector_int *) 0 ;
4297 size_t val2 ;
4298 0 int ecode2 = 0 ;
4299 0 void *argp3 = 0 ;
4300 0 int res3 = 0 ;
4301 0 int argvi = 0;
4302 int result;
4303 0 dXSARGS;
4304
4305 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
4306 0 SWIG_croak("Usage: gsl_sort_vector_int_smallest_index(p,k,v);");
4307 }
4308 {
4309 AV *tempav;
4310 I32 len;
4311 int i;
4312 SV **tv;
4313 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4314 0 croak("Math::GSL : $p is not a reference!");
4315 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4316 0 croak("Math::GSL : $p is not an array ref!");
4317
4318 0 tempav = (AV*)SvRV(ST(0));
4319 0 len = av_len(tempav);
4320 /* Why does this need to be len+2 ? */
4321 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
4322 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4323 0 tv = av_fetch(tempav, i, 0);
4324 0 arg1[i] = (size_t) SvIV(*tv);
4325 }
4326 }
4327 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4328 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4329 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_smallest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_smallest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4330 }
4331 0 arg2 = (size_t)(val2);
4332 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4333 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
4334 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_smallest_index" "', argument " "3"" of type '" "gsl_vector_int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_smallest_index" "', argument " "3"" of type '" "gsl_vector_int const *""'"); 0 0 0
4335 }
4336 0 arg3 = (gsl_vector_int *)(argp3);
4337 0 result = (int)gsl_sort_vector_int_smallest_index(arg1,arg2,(gsl_vector_int const *)arg3);
4338 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4339 {
4340 // if (arg1) free(arg1);
4341 }
4342
4343
4344 0 XSRETURN(argvi);
4345 0 fail:
4346 {
4347 // if (arg1) free(arg1);
4348 }
4349
4350
4351 0 SWIG_croak_null();
4352 }
4353 }
4354  
4355  
4356 0 XS(_wrap_gsl_sort_vector_int_largest_index) {
4357 {
4358 0 size_t *arg1 = (size_t *) 0 ;
4359 size_t arg2 ;
4360 0 gsl_vector_int *arg3 = (gsl_vector_int *) 0 ;
4361 size_t val2 ;
4362 0 int ecode2 = 0 ;
4363 0 void *argp3 = 0 ;
4364 0 int res3 = 0 ;
4365 0 int argvi = 0;
4366 int result;
4367 0 dXSARGS;
4368
4369 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
4370 0 SWIG_croak("Usage: gsl_sort_vector_int_largest_index(p,k,v);");
4371 }
4372 {
4373 AV *tempav;
4374 I32 len;
4375 int i;
4376 SV **tv;
4377 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
4378 0 croak("Math::GSL : $p is not a reference!");
4379 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
4380 0 croak("Math::GSL : $p is not an array ref!");
4381
4382 0 tempav = (AV*)SvRV(ST(0));
4383 0 len = av_len(tempav);
4384 /* Why does this need to be len+2 ? */
4385 0 arg1 = (size_t *) malloc((len+2)*sizeof(size_t));
4386 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
4387 0 tv = av_fetch(tempav, i, 0);
4388 0 arg1[i] = (size_t) SvIV(*tv);
4389 }
4390 }
4391 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4392 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4393 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_largest_index" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_sort_vector_int_largest_index" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4394 }
4395 0 arg2 = (size_t)(val2);
4396 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector_int, 0 | 0 );
4397 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
4398 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_largest_index" "', argument " "3"" of type '" "gsl_vector_int const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_sort_vector_int_largest_index" "', argument " "3"" of type '" "gsl_vector_int const *""'"); 0 0 0
4399 }
4400 0 arg3 = (gsl_vector_int *)(argp3);
4401 0 result = (int)gsl_sort_vector_int_largest_index(arg1,arg2,(gsl_vector_int const *)arg3);
4402 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4403 {
4404 // if (arg1) free(arg1);
4405 }
4406
4407
4408 0 XSRETURN(argvi);
4409 0 fail:
4410 {
4411 // if (arg1) free(arg1);
4412 }
4413
4414
4415 0 SWIG_croak_null();
4416 }
4417 }
4418  
4419  
4420 0 XS(_wrap_gsl_permutation_struct_size_set) {
4421 {
4422 0 struct gsl_permutation_struct *arg1 = (struct gsl_permutation_struct *) 0 ;
4423 size_t arg2 ;
4424 0 void *argp1 = 0 ;
4425 0 int res1 = 0 ;
4426 size_t val2 ;
4427 0 int ecode2 = 0 ;
4428 0 int argvi = 0;
4429 0 dXSARGS;
4430
4431 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4432 0 SWIG_croak("Usage: gsl_permutation_struct_size_set(self,size);");
4433 }
4434 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4435 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4436 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_size_set" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_size_set" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'"); 0 0 0
4437 }
4438 0 arg1 = (struct gsl_permutation_struct *)(argp1);
4439 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4440 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4441 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_permutation_struct_size_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_permutation_struct_size_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4442 }
4443 0 arg2 = (size_t)(val2);
4444 0 ▶ if (arg1) (arg1)->size = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->size = arg2; 0 0 0
4445 0 ST(argvi) = &PL_sv_undef;
4446
4447
4448 0 XSRETURN(argvi);
4449 0 fail:
4450
4451
4452 0 SWIG_croak_null();
4453 }
4454 }
4455  
4456  
4457 0 XS(_wrap_gsl_permutation_struct_size_get) {
4458 {
4459 0 struct gsl_permutation_struct *arg1 = (struct gsl_permutation_struct *) 0 ;
4460 0 void *argp1 = 0 ;
4461 0 int res1 = 0 ;
4462 0 int argvi = 0;
4463 size_t result;
4464 0 dXSARGS;
4465
4466 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
4467 0 SWIG_croak("Usage: gsl_permutation_struct_size_get(self);");
4468 }
4469 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4470 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4471 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_size_get" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_size_get" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'"); 0 0 0
4472 }
4473 0 arg1 = (struct gsl_permutation_struct *)(argp1);
4474 0 result = ((arg1)->size);
4475 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
4476
4477 0 XSRETURN(argvi);
4478 0 fail:
4479
4480 0 SWIG_croak_null();
4481 }
4482 }
4483  
4484  
4485 0 XS(_wrap_gsl_permutation_struct_data_set) {
4486 {
4487 0 struct gsl_permutation_struct *arg1 = (struct gsl_permutation_struct *) 0 ;
4488 0 size_t *arg2 = (size_t *) 0 ;
4489 0 void *argp1 = 0 ;
4490 0 int res1 = 0 ;
4491 0 void *argp2 = 0 ;
4492 0 int res2 = 0 ;
4493 0 int argvi = 0;
4494 0 dXSARGS;
4495
4496 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4497 0 SWIG_croak("Usage: gsl_permutation_struct_data_set(self,data);");
4498 }
4499 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4500 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4501 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_data_set" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_data_set" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'"); 0 0 0
4502 }
4503 0 arg1 = (struct gsl_permutation_struct *)(argp1);
4504 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_size_t, SWIG_POINTER_DISOWN | 0 );
4505 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4506 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_struct_data_set" "', argument " "2"" of type '" "size_t *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_struct_data_set" "', argument " "2"" of type '" "size_t *""'"); 0 0 0
4507 }
4508 0 arg2 = (size_t *)(argp2);
4509 0 ▶ if (arg1) (arg1)->data = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->data = arg2; 0 0 0
4510 0 ST(argvi) = &PL_sv_undef;
4511
4512
4513 0 XSRETURN(argvi);
4514 0 fail:
4515
4516
4517 0 SWIG_croak_null();
4518 }
4519 }
4520  
4521  
4522 0 XS(_wrap_gsl_permutation_struct_data_get) {
4523 {
4524 0 struct gsl_permutation_struct *arg1 = (struct gsl_permutation_struct *) 0 ;
4525 0 void *argp1 = 0 ;
4526 0 int res1 = 0 ;
4527 0 int argvi = 0;
4528 0 size_t *result = 0 ;
4529 0 dXSARGS;
4530
4531 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
4532 0 SWIG_croak("Usage: gsl_permutation_struct_data_get(self);");
4533 }
4534 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4535 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4536 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_data_get" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_struct_data_get" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'"); 0 0 0
4537 }
4538 0 arg1 = (struct gsl_permutation_struct *)(argp1);
4539 0 result = (size_t *) ((arg1)->data);
4540 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0); argvi++ ;
4541
4542 0 XSRETURN(argvi);
4543 0 fail:
4544
4545 0 SWIG_croak_null();
4546 }
4547 }
4548  
4549  
4550 0 XS(_wrap_new_gsl_permutation_struct) {
4551 {
4552 0 int argvi = 0;
4553 0 struct gsl_permutation_struct *result = 0 ;
4554 0 dXSARGS;
4555
4556 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
4557 0 SWIG_croak("Usage: new_gsl_permutation_struct();");
4558 }
4559 0 result = (struct gsl_permutation_struct *)calloc(1, sizeof(struct gsl_permutation_struct));
4560 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_permutation_struct, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4561 0 XSRETURN(argvi);
4562 0 fail:
4563 0 SWIG_croak_null();
4564 }
4565 }
4566  
4567  
4568 0 XS(_wrap_delete_gsl_permutation_struct) {
4569 {
4570 0 struct gsl_permutation_struct *arg1 = (struct gsl_permutation_struct *) 0 ;
4571 0 void *argp1 = 0 ;
4572 0 int res1 = 0 ;
4573 0 int argvi = 0;
4574 0 dXSARGS;
4575
4576 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
4577 0 SWIG_croak("Usage: delete_gsl_permutation_struct(self);");
4578 }
4579 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, SWIG_POINTER_DISOWN | 0 );
4580 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4581 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_permutation_struct" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_permutation_struct" "', argument " "1"" of type '" "struct gsl_permutation_struct *""'"); 0 0 0
4582 }
4583 0 arg1 = (struct gsl_permutation_struct *)(argp1);
4584 0 free((char *) arg1);
4585 0 ST(argvi) = &PL_sv_undef;
4586
4587 0 XSRETURN(argvi);
4588 0 fail:
4589
4590 0 SWIG_croak_null();
4591 }
4592 }
4593  
4594  
4595 0 XS(_wrap_gsl_permutation_alloc) {
4596 {
4597 size_t arg1 ;
4598 size_t val1 ;
4599 0 int ecode1 = 0 ;
4600 0 int argvi = 0;
4601 0 gsl_permutation *result = 0 ;
4602 0 dXSARGS;
4603
4604 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
4605 0 SWIG_croak("Usage: gsl_permutation_alloc(n);");
4606 }
4607 0 ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4608 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4609 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_permutation_alloc" "', argument " "1"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_permutation_alloc" "', argument " "1"" of type '" "size_t""'"); 0 0 0
4610 }
4611 0 arg1 = (size_t)(val1);
4612 0 result = (gsl_permutation *)gsl_permutation_alloc(arg1);
4613 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_permutation_struct, 0 | SWIG_SHADOW); argvi++ ;
4614
4615 0 XSRETURN(argvi);
4616 0 fail:
4617
4618 0 SWIG_croak_null();
4619 }
4620 }
4621  
4622  
4623 0 XS(_wrap_gsl_permutation_calloc) {
4624 {
4625 size_t arg1 ;
4626 size_t val1 ;
4627 0 int ecode1 = 0 ;
4628 0 int argvi = 0;
4629 0 gsl_permutation *result = 0 ;
4630 0 dXSARGS;
4631
4632 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
4633 0 SWIG_croak("Usage: gsl_permutation_calloc(n);");
4634 }
4635 0 ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4636 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4637 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_permutation_calloc" "', argument " "1"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_permutation_calloc" "', argument " "1"" of type '" "size_t""'"); 0 0 0
4638 }
4639 0 arg1 = (size_t)(val1);
4640 0 result = (gsl_permutation *)gsl_permutation_calloc(arg1);
4641 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_permutation_struct, 0 | SWIG_SHADOW); argvi++ ;
4642
4643 0 XSRETURN(argvi);
4644 0 fail:
4645
4646 0 SWIG_croak_null();
4647 }
4648 }
4649  
4650  
4651 0 XS(_wrap_gsl_permutation_init) {
4652 {
4653 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
4654 0 void *argp1 = 0 ;
4655 0 int res1 = 0 ;
4656 0 int argvi = 0;
4657 0 dXSARGS;
4658
4659 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
4660 0 SWIG_croak("Usage: gsl_permutation_init(p);");
4661 }
4662 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4663 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4664 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_init" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_init" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
4665 }
4666 0 arg1 = (gsl_permutation *)(argp1);
4667 0 gsl_permutation_init(arg1);
4668 0 ST(argvi) = &PL_sv_undef;
4669
4670 0 XSRETURN(argvi);
4671 0 fail:
4672
4673 0 SWIG_croak_null();
4674 }
4675 }
4676  
4677  
4678 0 XS(_wrap_gsl_permutation_free) {
4679 {
4680 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
4681 0 void *argp1 = 0 ;
4682 0 int res1 = 0 ;
4683 0 int argvi = 0;
4684 0 dXSARGS;
4685
4686 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
4687 0 SWIG_croak("Usage: gsl_permutation_free(p);");
4688 }
4689 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4690 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4691 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_free" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_free" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
4692 }
4693 0 arg1 = (gsl_permutation *)(argp1);
4694 0 gsl_permutation_free(arg1);
4695 0 ST(argvi) = &PL_sv_undef;
4696
4697 0 XSRETURN(argvi);
4698 0 fail:
4699
4700 0 SWIG_croak_null();
4701 }
4702 }
4703  
4704  
4705 0 XS(_wrap_gsl_permutation_memcpy) {
4706 {
4707 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
4708 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
4709 0 void *argp1 = 0 ;
4710 0 int res1 = 0 ;
4711 0 void *argp2 = 0 ;
4712 0 int res2 = 0 ;
4713 0 int argvi = 0;
4714 int result;
4715 0 dXSARGS;
4716
4717 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4718 0 SWIG_croak("Usage: gsl_permutation_memcpy(dest,src);");
4719 }
4720 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4721 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4722 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_memcpy" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_memcpy" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
4723 }
4724 0 arg1 = (gsl_permutation *)(argp1);
4725 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4726 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4727 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_memcpy" "', argument " "2"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_memcpy" "', argument " "2"" of type '" "gsl_permutation const *""'"); 0 0 0
4728 }
4729 0 arg2 = (gsl_permutation *)(argp2);
4730 0 result = (int)gsl_permutation_memcpy(arg1,(struct gsl_permutation_struct const *)arg2);
4731 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4732
4733
4734 0 XSRETURN(argvi);
4735 0 fail:
4736
4737
4738 0 SWIG_croak_null();
4739 }
4740 }
4741  
4742  
4743 0 XS(_wrap_gsl_permutation_fread) {
4744 {
4745 0 FILE *arg1 = (FILE *) 0 ;
4746 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
4747 0 void *argp1 = 0 ;
4748 0 int res1 = 0 ;
4749 0 void *argp2 = 0 ;
4750 0 int res2 = 0 ;
4751 0 int argvi = 0;
4752 int result;
4753 0 dXSARGS;
4754
4755 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4756 0 SWIG_croak("Usage: gsl_permutation_fread(stream,p);");
4757 }
4758 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
4759 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4760 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fread" "', argument " "1"" of type '" "FILE *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fread" "', argument " "1"" of type '" "FILE *""'"); 0 0 0
4761 }
4762 0 arg1 = (FILE *)(argp1);
4763 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4764 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4765 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fread" "', argument " "2"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fread" "', argument " "2"" of type '" "gsl_permutation *""'"); 0 0 0
4766 }
4767 0 arg2 = (gsl_permutation *)(argp2);
4768 0 result = (int)gsl_permutation_fread(arg1,arg2);
4769 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4770
4771
4772 0 XSRETURN(argvi);
4773 0 fail:
4774
4775
4776 0 SWIG_croak_null();
4777 }
4778 }
4779  
4780  
4781 0 XS(_wrap_gsl_permutation_fwrite) {
4782 {
4783 0 FILE *arg1 = (FILE *) 0 ;
4784 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
4785 0 void *argp1 = 0 ;
4786 0 int res1 = 0 ;
4787 0 void *argp2 = 0 ;
4788 0 int res2 = 0 ;
4789 0 int argvi = 0;
4790 int result;
4791 0 dXSARGS;
4792
4793 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4794 0 SWIG_croak("Usage: gsl_permutation_fwrite(stream,p);");
4795 }
4796 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
4797 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4798 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fwrite" "', argument " "1"" of type '" "FILE *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fwrite" "', argument " "1"" of type '" "FILE *""'"); 0 0 0
4799 }
4800 0 arg1 = (FILE *)(argp1);
4801 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4802 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4803 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fwrite" "', argument " "2"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fwrite" "', argument " "2"" of type '" "gsl_permutation const *""'"); 0 0 0
4804 }
4805 0 arg2 = (gsl_permutation *)(argp2);
4806 0 result = (int)gsl_permutation_fwrite(arg1,(struct gsl_permutation_struct const *)arg2);
4807 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4808
4809
4810 0 XSRETURN(argvi);
4811 0 fail:
4812
4813
4814 0 SWIG_croak_null();
4815 }
4816 }
4817  
4818  
4819 0 XS(_wrap_gsl_permutation_fscanf) {
4820 {
4821 0 FILE *arg1 = (FILE *) 0 ;
4822 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
4823 0 void *argp1 = 0 ;
4824 0 int res1 = 0 ;
4825 0 void *argp2 = 0 ;
4826 0 int res2 = 0 ;
4827 0 int argvi = 0;
4828 int result;
4829 0 dXSARGS;
4830
4831 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
4832 0 SWIG_croak("Usage: gsl_permutation_fscanf(stream,p);");
4833 }
4834 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
4835 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4836 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fscanf" "', argument " "1"" of type '" "FILE *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fscanf" "', argument " "1"" of type '" "FILE *""'"); 0 0 0
4837 }
4838 0 arg1 = (FILE *)(argp1);
4839 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4840 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4841 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fscanf" "', argument " "2"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fscanf" "', argument " "2"" of type '" "gsl_permutation *""'"); 0 0 0
4842 }
4843 0 arg2 = (gsl_permutation *)(argp2);
4844 0 result = (int)gsl_permutation_fscanf(arg1,arg2);
4845 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4846
4847
4848 0 XSRETURN(argvi);
4849 0 fail:
4850
4851
4852 0 SWIG_croak_null();
4853 }
4854 }
4855  
4856  
4857 0 XS(_wrap_gsl_permutation_fprintf) {
4858 {
4859 0 FILE *arg1 = (FILE *) 0 ;
4860 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
4861 0 char *arg3 = (char *) 0 ;
4862 0 void *argp1 = 0 ;
4863 0 int res1 = 0 ;
4864 0 void *argp2 = 0 ;
4865 0 int res2 = 0 ;
4866 int res3 ;
4867 0 char *buf3 = 0 ;
4868 0 int alloc3 = 0 ;
4869 0 int argvi = 0;
4870 int result;
4871 0 dXSARGS;
4872
4873 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
4874 0 SWIG_croak("Usage: gsl_permutation_fprintf(stream,p,format);");
4875 }
4876 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
4877 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4878 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fprintf" "', argument " "1"" of type '" "FILE *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_fprintf" "', argument " "1"" of type '" "FILE *""'"); 0 0 0
4879 }
4880 0 arg1 = (FILE *)(argp1);
4881 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4882 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4883 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fprintf" "', argument " "2"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_fprintf" "', argument " "2"" of type '" "gsl_permutation const *""'"); 0 0 0
4884 }
4885 0 arg2 = (gsl_permutation *)(argp2);
4886 0 res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
4887 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
4888 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_permutation_fprintf" "', argument " "3"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_permutation_fprintf" "', argument " "3"" of type '" "char const *""'"); 0 0 0
4889 }
4890 0 arg3 = (char *)(buf3);
4891 0 result = (int)gsl_permutation_fprintf(arg1,(struct gsl_permutation_struct const *)arg2,(char const *)arg3);
4892 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4893
4894
4895 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
4896 0 XSRETURN(argvi);
4897 0 fail:
4898
4899
4900 0 ▶ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 0 0 0
4901 0 SWIG_croak_null();
4902 }
4903 }
4904  
4905  
4906 0 XS(_wrap_gsl_permutation_size) {
4907 {
4908 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
4909 0 void *argp1 = 0 ;
4910 0 int res1 = 0 ;
4911 0 int argvi = 0;
4912 size_t result;
4913 0 dXSARGS;
4914
4915 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
4916 0 SWIG_croak("Usage: gsl_permutation_size(p);");
4917 }
4918 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4919 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4920 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_size" "', argument " "1"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_size" "', argument " "1"" of type '" "gsl_permutation const *""'"); 0 0 0
4921 }
4922 0 arg1 = (gsl_permutation *)(argp1);
4923 0 result = gsl_permutation_size((struct gsl_permutation_struct const *)arg1);
4924 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
4925
4926 0 XSRETURN(argvi);
4927 0 fail:
4928
4929 0 SWIG_croak_null();
4930 }
4931 }
4932  
4933  
4934 0 XS(_wrap_gsl_permutation_data) {
4935 {
4936 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
4937 0 void *argp1 = 0 ;
4938 0 int res1 = 0 ;
4939 0 int argvi = 0;
4940 0 size_t *result = 0 ;
4941 0 dXSARGS;
4942
4943 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
4944 0 SWIG_croak("Usage: gsl_permutation_data(p);");
4945 }
4946 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4947 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4948 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_data" "', argument " "1"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_data" "', argument " "1"" of type '" "gsl_permutation const *""'"); 0 0 0
4949 }
4950 0 arg1 = (gsl_permutation *)(argp1);
4951 0 result = (size_t *)gsl_permutation_data((struct gsl_permutation_struct const *)arg1);
4952 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0); argvi++ ;
4953
4954 0 XSRETURN(argvi);
4955 0 fail:
4956
4957 0 SWIG_croak_null();
4958 }
4959 }
4960  
4961  
4962 0 XS(_wrap_gsl_permutation_swap) {
4963 {
4964 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
4965 size_t arg2 ;
4966 size_t arg3 ;
4967 0 void *argp1 = 0 ;
4968 0 int res1 = 0 ;
4969 size_t val2 ;
4970 0 int ecode2 = 0 ;
4971 size_t val3 ;
4972 0 int ecode3 = 0 ;
4973 0 int argvi = 0;
4974 int result;
4975 0 dXSARGS;
4976
4977 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
4978 0 SWIG_croak("Usage: gsl_permutation_swap(p,i,j);");
4979 }
4980 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
4981 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4982 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_swap" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_swap" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
4983 }
4984 0 arg1 = (gsl_permutation *)(argp1);
4985 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4986 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4987 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_permutation_swap" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_permutation_swap" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4988 }
4989 0 arg2 = (size_t)(val2);
4990 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
4991 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
4992 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_permutation_swap" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_permutation_swap" "', argument " "3"" of type '" "size_t""'"); 0 0 0
4993 }
4994 0 arg3 = (size_t)(val3);
4995 0 result = (int)gsl_permutation_swap(arg1,arg2,arg3);
4996 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4997
4998
4999
5000 0 XSRETURN(argvi);
5001 0 fail:
5002
5003
5004
5005 0 SWIG_croak_null();
5006 }
5007 }
5008  
5009  
5010 0 XS(_wrap_gsl_permutation_valid) {
5011 {
5012 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5013 0 void *argp1 = 0 ;
5014 0 int res1 = 0 ;
5015 0 int argvi = 0;
5016 int result;
5017 0 dXSARGS;
5018
5019 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
5020 0 SWIG_croak("Usage: gsl_permutation_valid(p);");
5021 }
5022 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5023 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5024 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_valid" "', argument " "1"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_valid" "', argument " "1"" of type '" "gsl_permutation const *""'"); 0 0 0
5025 }
5026 0 arg1 = (gsl_permutation *)(argp1);
5027 0 result = (int)gsl_permutation_valid((struct gsl_permutation_struct const *)arg1);
5028 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5029
5030 0 XSRETURN(argvi);
5031 0 fail:
5032
5033 0 SWIG_croak_null();
5034 }
5035 }
5036  
5037  
5038 0 XS(_wrap_gsl_permutation_reverse) {
5039 {
5040 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5041 0 void *argp1 = 0 ;
5042 0 int res1 = 0 ;
5043 0 int argvi = 0;
5044 0 dXSARGS;
5045
5046 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
5047 0 SWIG_croak("Usage: gsl_permutation_reverse(p);");
5048 }
5049 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5050 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5051 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_reverse" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_reverse" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
5052 }
5053 0 arg1 = (gsl_permutation *)(argp1);
5054 0 gsl_permutation_reverse(arg1);
5055 0 ST(argvi) = &PL_sv_undef;
5056
5057 0 XSRETURN(argvi);
5058 0 fail:
5059
5060 0 SWIG_croak_null();
5061 }
5062 }
5063  
5064  
5065 0 XS(_wrap_gsl_permutation_inverse) {
5066 {
5067 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5068 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
5069 0 void *argp1 = 0 ;
5070 0 int res1 = 0 ;
5071 0 void *argp2 = 0 ;
5072 0 int res2 = 0 ;
5073 0 int argvi = 0;
5074 int result;
5075 0 dXSARGS;
5076
5077 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5078 0 SWIG_croak("Usage: gsl_permutation_inverse(inv,p);");
5079 }
5080 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5081 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5082 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_inverse" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_inverse" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
5083 }
5084 0 arg1 = (gsl_permutation *)(argp1);
5085 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5086 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5087 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_inverse" "', argument " "2"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_inverse" "', argument " "2"" of type '" "gsl_permutation const *""'"); 0 0 0
5088 }
5089 0 arg2 = (gsl_permutation *)(argp2);
5090 0 result = (int)gsl_permutation_inverse(arg1,(struct gsl_permutation_struct const *)arg2);
5091 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5092
5093
5094 0 XSRETURN(argvi);
5095 0 fail:
5096
5097
5098 0 SWIG_croak_null();
5099 }
5100 }
5101  
5102  
5103 0 XS(_wrap_gsl_permutation_next) {
5104 {
5105 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5106 0 void *argp1 = 0 ;
5107 0 int res1 = 0 ;
5108 0 int argvi = 0;
5109 int result;
5110 0 dXSARGS;
5111
5112 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
5113 0 SWIG_croak("Usage: gsl_permutation_next(p);");
5114 }
5115 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5116 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5117 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_next" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_next" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
5118 }
5119 0 arg1 = (gsl_permutation *)(argp1);
5120 0 result = (int)gsl_permutation_next(arg1);
5121 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5122
5123 0 XSRETURN(argvi);
5124 0 fail:
5125
5126 0 SWIG_croak_null();
5127 }
5128 }
5129  
5130  
5131 0 XS(_wrap_gsl_permutation_prev) {
5132 {
5133 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5134 0 void *argp1 = 0 ;
5135 0 int res1 = 0 ;
5136 0 int argvi = 0;
5137 int result;
5138 0 dXSARGS;
5139
5140 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
5141 0 SWIG_croak("Usage: gsl_permutation_prev(p);");
5142 }
5143 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5144 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5145 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_prev" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_prev" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
5146 }
5147 0 arg1 = (gsl_permutation *)(argp1);
5148 0 result = (int)gsl_permutation_prev(arg1);
5149 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5150
5151 0 XSRETURN(argvi);
5152 0 fail:
5153
5154 0 SWIG_croak_null();
5155 }
5156 }
5157  
5158  
5159 0 XS(_wrap_gsl_permutation_mul) {
5160 {
5161 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5162 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
5163 0 gsl_permutation *arg3 = (gsl_permutation *) 0 ;
5164 0 void *argp1 = 0 ;
5165 0 int res1 = 0 ;
5166 0 void *argp2 = 0 ;
5167 0 int res2 = 0 ;
5168 0 void *argp3 = 0 ;
5169 0 int res3 = 0 ;
5170 0 int argvi = 0;
5171 int result;
5172 0 dXSARGS;
5173
5174 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
5175 0 SWIG_croak("Usage: gsl_permutation_mul(p,pa,pb);");
5176 }
5177 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5178 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5179 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_mul" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_mul" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
5180 }
5181 0 arg1 = (gsl_permutation *)(argp1);
5182 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5183 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5184 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_mul" "', argument " "2"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_mul" "', argument " "2"" of type '" "gsl_permutation const *""'"); 0 0 0
5185 }
5186 0 arg2 = (gsl_permutation *)(argp2);
5187 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5188 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
5189 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_permutation_mul" "', argument " "3"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_permutation_mul" "', argument " "3"" of type '" "gsl_permutation const *""'"); 0 0 0
5190 }
5191 0 arg3 = (gsl_permutation *)(argp3);
5192 0 result = (int)gsl_permutation_mul(arg1,(struct gsl_permutation_struct const *)arg2,(struct gsl_permutation_struct const *)arg3);
5193 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5194
5195
5196
5197 0 XSRETURN(argvi);
5198 0 fail:
5199
5200
5201
5202 0 SWIG_croak_null();
5203 }
5204 }
5205  
5206  
5207 0 XS(_wrap_gsl_permutation_linear_to_canonical) {
5208 {
5209 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5210 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
5211 0 void *argp1 = 0 ;
5212 0 int res1 = 0 ;
5213 0 void *argp2 = 0 ;
5214 0 int res2 = 0 ;
5215 0 int argvi = 0;
5216 int result;
5217 0 dXSARGS;
5218
5219 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5220 0 SWIG_croak("Usage: gsl_permutation_linear_to_canonical(q,p);");
5221 }
5222 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5223 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5224 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_linear_to_canonical" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_linear_to_canonical" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
5225 }
5226 0 arg1 = (gsl_permutation *)(argp1);
5227 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5228 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5229 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_linear_to_canonical" "', argument " "2"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_linear_to_canonical" "', argument " "2"" of type '" "gsl_permutation const *""'"); 0 0 0
5230 }
5231 0 arg2 = (gsl_permutation *)(argp2);
5232 0 result = (int)gsl_permutation_linear_to_canonical(arg1,(struct gsl_permutation_struct const *)arg2);
5233 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5234
5235
5236 0 XSRETURN(argvi);
5237 0 fail:
5238
5239
5240 0 SWIG_croak_null();
5241 }
5242 }
5243  
5244  
5245 0 XS(_wrap_gsl_permutation_canonical_to_linear) {
5246 {
5247 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5248 0 gsl_permutation *arg2 = (gsl_permutation *) 0 ;
5249 0 void *argp1 = 0 ;
5250 0 int res1 = 0 ;
5251 0 void *argp2 = 0 ;
5252 0 int res2 = 0 ;
5253 0 int argvi = 0;
5254 int result;
5255 0 dXSARGS;
5256
5257 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5258 0 SWIG_croak("Usage: gsl_permutation_canonical_to_linear(p,q);");
5259 }
5260 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5261 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5262 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_canonical_to_linear" "', argument " "1"" of type '" "gsl_permutation *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_canonical_to_linear" "', argument " "1"" of type '" "gsl_permutation *""'"); 0 0 0
5263 }
5264 0 arg1 = (gsl_permutation *)(argp1);
5265 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5266 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5267 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_canonical_to_linear" "', argument " "2"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_permutation_canonical_to_linear" "', argument " "2"" of type '" "gsl_permutation const *""'"); 0 0 0
5268 }
5269 0 arg2 = (gsl_permutation *)(argp2);
5270 0 result = (int)gsl_permutation_canonical_to_linear(arg1,(struct gsl_permutation_struct const *)arg2);
5271 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5272
5273
5274 0 XSRETURN(argvi);
5275 0 fail:
5276
5277
5278 0 SWIG_croak_null();
5279 }
5280 }
5281  
5282  
5283 0 XS(_wrap_gsl_permutation_inversions) {
5284 {
5285 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5286 0 void *argp1 = 0 ;
5287 0 int res1 = 0 ;
5288 0 int argvi = 0;
5289 size_t result;
5290 0 dXSARGS;
5291
5292 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
5293 0 SWIG_croak("Usage: gsl_permutation_inversions(p);");
5294 }
5295 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5296 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5297 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_inversions" "', argument " "1"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_inversions" "', argument " "1"" of type '" "gsl_permutation const *""'"); 0 0 0
5298 }
5299 0 arg1 = (gsl_permutation *)(argp1);
5300 0 result = gsl_permutation_inversions((struct gsl_permutation_struct const *)arg1);
5301 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
5302
5303 0 XSRETURN(argvi);
5304 0 fail:
5305
5306 0 SWIG_croak_null();
5307 }
5308 }
5309  
5310  
5311 0 XS(_wrap_gsl_permutation_linear_cycles) {
5312 {
5313 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5314 0 void *argp1 = 0 ;
5315 0 int res1 = 0 ;
5316 0 int argvi = 0;
5317 size_t result;
5318 0 dXSARGS;
5319
5320 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
5321 0 SWIG_croak("Usage: gsl_permutation_linear_cycles(p);");
5322 }
5323 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5324 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5325 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_linear_cycles" "', argument " "1"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_linear_cycles" "', argument " "1"" of type '" "gsl_permutation const *""'"); 0 0 0
5326 }
5327 0 arg1 = (gsl_permutation *)(argp1);
5328 0 result = gsl_permutation_linear_cycles((struct gsl_permutation_struct const *)arg1);
5329 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
5330
5331 0 XSRETURN(argvi);
5332 0 fail:
5333
5334 0 SWIG_croak_null();
5335 }
5336 }
5337  
5338  
5339 0 XS(_wrap_gsl_permutation_canonical_cycles) {
5340 {
5341 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5342 0 void *argp1 = 0 ;
5343 0 int res1 = 0 ;
5344 0 int argvi = 0;
5345 size_t result;
5346 0 dXSARGS;
5347
5348 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
5349 0 SWIG_croak("Usage: gsl_permutation_canonical_cycles(q);");
5350 }
5351 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5352 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5353 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_canonical_cycles" "', argument " "1"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_canonical_cycles" "', argument " "1"" of type '" "gsl_permutation const *""'"); 0 0 0
5354 }
5355 0 arg1 = (gsl_permutation *)(argp1);
5356 0 result = gsl_permutation_canonical_cycles((struct gsl_permutation_struct const *)arg1);
5357 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
5358
5359 0 XSRETURN(argvi);
5360 0 fail:
5361
5362 0 SWIG_croak_null();
5363 }
5364 }
5365  
5366  
5367 0 XS(_wrap_gsl_permutation_get) {
5368 {
5369 0 gsl_permutation *arg1 = (gsl_permutation *) 0 ;
5370 size_t arg2 ;
5371 0 void *argp1 = 0 ;
5372 0 int res1 = 0 ;
5373 size_t val2 ;
5374 0 int ecode2 = 0 ;
5375 0 int argvi = 0;
5376 size_t result;
5377 0 dXSARGS;
5378
5379 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5380 0 SWIG_croak("Usage: gsl_permutation_get(p,i);");
5381 }
5382 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_permutation_struct, 0 | 0 );
5383 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5384 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_get" "', argument " "1"" of type '" "gsl_permutation const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_permutation_get" "', argument " "1"" of type '" "gsl_permutation const *""'"); 0 0 0
5385 }
5386 0 arg1 = (gsl_permutation *)(argp1);
5387 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5388 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5389 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_permutation_get" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_permutation_get" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5390 }
5391 0 arg2 = (size_t)(val2);
5392 0 result = gsl_permutation_get((struct gsl_permutation_struct const *)arg1,arg2);
5393 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
5394
5395
5396 0 XSRETURN(argvi);
5397 0 fail:
5398
5399
5400 0 SWIG_croak_null();
5401 }
5402 }
5403  
5404  
5405  
5406 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5407  
5408 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
5409 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
5410 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
5411 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};
5412 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};
5413 static swig_type_info _swigt__p_gsl_permutation_struct = {"_p_gsl_permutation_struct", "gsl_permutation *|struct gsl_permutation_struct *|gsl_permutation_struct *", 0, 0, (void*)"Math::GSL::Sort::gsl_permutation_struct", 0};
5414 static swig_type_info _swigt__p_gsl_vector = {"_p_gsl_vector", "gsl_vector *", 0, 0, (void*)0, 0};
5415 static swig_type_info _swigt__p_gsl_vector_int = {"_p_gsl_vector_int", "gsl_vector_int *", 0, 0, (void*)0, 0};
5416 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
5417 static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, (void*)0, 0};
5418  
5419 static swig_type_info *swig_type_initial[] = {
5420 &_swigt__p_FILE,
5421 &_swigt__p_char,
5422 &_swigt__p_double,
5423 &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void,
5424 &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
5425 &_swigt__p_gsl_permutation_struct,
5426 &_swigt__p_gsl_vector,
5427 &_swigt__p_gsl_vector_int,
5428 &_swigt__p_int,
5429 &_swigt__p_size_t,
5430 };
5431  
5432 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
5433 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
5434 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
5435 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}};
5436 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}};
5437 static swig_cast_info _swigc__p_gsl_permutation_struct[] = { {&_swigt__p_gsl_permutation_struct, 0, 0, 0},{0, 0, 0, 0}};
5438 static swig_cast_info _swigc__p_gsl_vector[] = { {&_swigt__p_gsl_vector, 0, 0, 0},{0, 0, 0, 0}};
5439 static swig_cast_info _swigc__p_gsl_vector_int[] = { {&_swigt__p_gsl_vector_int, 0, 0, 0},{0, 0, 0, 0}};
5440 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
5441 static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
5442  
5443 static swig_cast_info *swig_cast_initial[] = {
5444 _swigc__p_FILE,
5445 _swigc__p_char,
5446 _swigc__p_double,
5447 _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void,
5448 _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
5449 _swigc__p_gsl_permutation_struct,
5450 _swigc__p_gsl_vector,
5451 _swigc__p_gsl_vector_int,
5452 _swigc__p_int,
5453 _swigc__p_size_t,
5454 };
5455  
5456  
5457 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5458  
5459 static swig_constant_info swig_constants[] = {
5460 {0,0,0,0,0,0}
5461 };
5462 #ifdef __cplusplus
5463 }
5464 #endif
5465 static swig_variable_info swig_variables[] = {
5466 {0,0,0,0}
5467 };
5468 static swig_command_info swig_commands[] = {
5469 {"Math::GSL::Sortc::gsl_error", _wrap_gsl_error},
5470 {"Math::GSL::Sortc::gsl_stream_printf", _wrap_gsl_stream_printf},
5471 {"Math::GSL::Sortc::gsl_strerror", _wrap_gsl_strerror},
5472 {"Math::GSL::Sortc::gsl_set_error_handler", _wrap_gsl_set_error_handler},
5473 {"Math::GSL::Sortc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off},
5474 {"Math::GSL::Sortc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler},
5475 {"Math::GSL::Sortc::gsl_set_stream", _wrap_gsl_set_stream},
5476 {"Math::GSL::Sortc::gsl_sort", _wrap_gsl_sort},
5477 {"Math::GSL::Sortc::gsl_sort2", _wrap_gsl_sort2},
5478 {"Math::GSL::Sortc::gsl_sort_index", _wrap_gsl_sort_index},
5479 {"Math::GSL::Sortc::gsl_sort_smallest", _wrap_gsl_sort_smallest},
5480 {"Math::GSL::Sortc::gsl_sort_smallest_index", _wrap_gsl_sort_smallest_index},
5481 {"Math::GSL::Sortc::gsl_sort_largest", _wrap_gsl_sort_largest},
5482 {"Math::GSL::Sortc::gsl_sort_largest_index", _wrap_gsl_sort_largest_index},
5483 {"Math::GSL::Sortc::gsl_sort_int", _wrap_gsl_sort_int},
5484 {"Math::GSL::Sortc::gsl_sort2_int", _wrap_gsl_sort2_int},
5485 {"Math::GSL::Sortc::gsl_sort_int_index", _wrap_gsl_sort_int_index},
5486 {"Math::GSL::Sortc::gsl_sort_int_smallest", _wrap_gsl_sort_int_smallest},
5487 {"Math::GSL::Sortc::gsl_sort_int_smallest_index", _wrap_gsl_sort_int_smallest_index},
5488 {"Math::GSL::Sortc::gsl_sort_int_largest", _wrap_gsl_sort_int_largest},
5489 {"Math::GSL::Sortc::gsl_sort_int_largest_index", _wrap_gsl_sort_int_largest_index},
5490 {"Math::GSL::Sortc::gsl_sort_vector", _wrap_gsl_sort_vector},
5491 {"Math::GSL::Sortc::gsl_sort_vector2", _wrap_gsl_sort_vector2},
5492 {"Math::GSL::Sortc::gsl_sort_vector_index", _wrap_gsl_sort_vector_index},
5493 {"Math::GSL::Sortc::gsl_sort_vector_smallest", _wrap_gsl_sort_vector_smallest},
5494 {"Math::GSL::Sortc::gsl_sort_vector_largest", _wrap_gsl_sort_vector_largest},
5495 {"Math::GSL::Sortc::gsl_sort_vector_smallest_index", _wrap_gsl_sort_vector_smallest_index},
5496 {"Math::GSL::Sortc::gsl_sort_vector_largest_index", _wrap_gsl_sort_vector_largest_index},
5497 {"Math::GSL::Sortc::gsl_sort_vector_int", _wrap_gsl_sort_vector_int},
5498 {"Math::GSL::Sortc::gsl_sort_vector2_int", _wrap_gsl_sort_vector2_int},
5499 {"Math::GSL::Sortc::gsl_sort_vector_int_index", _wrap_gsl_sort_vector_int_index},
5500 {"Math::GSL::Sortc::gsl_sort_vector_int_smallest", _wrap_gsl_sort_vector_int_smallest},
5501 {"Math::GSL::Sortc::gsl_sort_vector_int_largest", _wrap_gsl_sort_vector_int_largest},
5502 {"Math::GSL::Sortc::gsl_sort_vector_int_smallest_index", _wrap_gsl_sort_vector_int_smallest_index},
5503 {"Math::GSL::Sortc::gsl_sort_vector_int_largest_index", _wrap_gsl_sort_vector_int_largest_index},
5504 {"Math::GSL::Sortc::gsl_permutation_struct_size_set", _wrap_gsl_permutation_struct_size_set},
5505 {"Math::GSL::Sortc::gsl_permutation_struct_size_get", _wrap_gsl_permutation_struct_size_get},
5506 {"Math::GSL::Sortc::gsl_permutation_struct_data_set", _wrap_gsl_permutation_struct_data_set},
5507 {"Math::GSL::Sortc::gsl_permutation_struct_data_get", _wrap_gsl_permutation_struct_data_get},
5508 {"Math::GSL::Sortc::new_gsl_permutation_struct", _wrap_new_gsl_permutation_struct},
5509 {"Math::GSL::Sortc::delete_gsl_permutation_struct", _wrap_delete_gsl_permutation_struct},
5510 {"Math::GSL::Sortc::gsl_permutation_alloc", _wrap_gsl_permutation_alloc},
5511 {"Math::GSL::Sortc::gsl_permutation_calloc", _wrap_gsl_permutation_calloc},
5512 {"Math::GSL::Sortc::gsl_permutation_init", _wrap_gsl_permutation_init},
5513 {"Math::GSL::Sortc::gsl_permutation_free", _wrap_gsl_permutation_free},
5514 {"Math::GSL::Sortc::gsl_permutation_memcpy", _wrap_gsl_permutation_memcpy},
5515 {"Math::GSL::Sortc::gsl_permutation_fread", _wrap_gsl_permutation_fread},
5516 {"Math::GSL::Sortc::gsl_permutation_fwrite", _wrap_gsl_permutation_fwrite},
5517 {"Math::GSL::Sortc::gsl_permutation_fscanf", _wrap_gsl_permutation_fscanf},
5518 {"Math::GSL::Sortc::gsl_permutation_fprintf", _wrap_gsl_permutation_fprintf},
5519 {"Math::GSL::Sortc::gsl_permutation_size", _wrap_gsl_permutation_size},
5520 {"Math::GSL::Sortc::gsl_permutation_data", _wrap_gsl_permutation_data},
5521 {"Math::GSL::Sortc::gsl_permutation_swap", _wrap_gsl_permutation_swap},
5522 {"Math::GSL::Sortc::gsl_permutation_valid", _wrap_gsl_permutation_valid},
5523 {"Math::GSL::Sortc::gsl_permutation_reverse", _wrap_gsl_permutation_reverse},
5524 {"Math::GSL::Sortc::gsl_permutation_inverse", _wrap_gsl_permutation_inverse},
5525 {"Math::GSL::Sortc::gsl_permutation_next", _wrap_gsl_permutation_next},
5526 {"Math::GSL::Sortc::gsl_permutation_prev", _wrap_gsl_permutation_prev},
5527 {"Math::GSL::Sortc::gsl_permutation_mul", _wrap_gsl_permutation_mul},
5528 {"Math::GSL::Sortc::gsl_permutation_linear_to_canonical", _wrap_gsl_permutation_linear_to_canonical},
5529 {"Math::GSL::Sortc::gsl_permutation_canonical_to_linear", _wrap_gsl_permutation_canonical_to_linear},
5530 {"Math::GSL::Sortc::gsl_permutation_inversions", _wrap_gsl_permutation_inversions},
5531 {"Math::GSL::Sortc::gsl_permutation_linear_cycles", _wrap_gsl_permutation_linear_cycles},
5532 {"Math::GSL::Sortc::gsl_permutation_canonical_cycles", _wrap_gsl_permutation_canonical_cycles},
5533 {"Math::GSL::Sortc::gsl_permutation_get", _wrap_gsl_permutation_get},
5534 {0,0}
5535 };
5536 /* -----------------------------------------------------------------------------
5537 * Type initialization:
5538 * This problem is tough by the requirement that no dynamic
5539 * memory is used. Also, since swig_type_info structures store pointers to
5540 * swig_cast_info structures and swig_cast_info structures store pointers back
5541 * to swig_type_info structures, we need some lookup code at initialization.
5542 * The idea is that swig generates all the structures that are needed.
5543 * The runtime then collects these partially filled structures.
5544 * The SWIG_InitializeModule function takes these initial arrays out of
5545 * swig_module, and does all the lookup, filling in the swig_module.types
5546 * array with the correct data and linking the correct swig_cast_info
5547 * structures together.
5548 *
5549 * The generated swig_type_info structures are assigned statically to an initial
5550 * array. We just loop through that array, and handle each type individually.
5551 * First we lookup if this type has been already loaded, and if so, use the
5552 * loaded structure instead of the generated one. Then we have to fill in the
5553 * cast linked list. The cast data is initially stored in something like a
5554 * two-dimensional array. Each row corresponds to a type (there are the same
5555 * number of rows as there are in the swig_type_initial array). Each entry in
5556 * a column is one of the swig_cast_info structures for that type.
5557 * The cast_initial array is actually an array of arrays, because each row has
5558 * a variable number of columns. So to actually build the cast linked list,
5559 * we find the array of casts associated with the type, and loop through it
5560 * adding the casts to the list. The one last trick we need to do is making
5561 * sure the type pointer in the swig_cast_info struct is correct.
5562 *
5563 * First off, we lookup the cast->type name to see if it is already loaded.
5564 * There are three cases to handle:
5565 * 1) If the cast->type has already been loaded AND the type we are adding
5566 * casting info to has not been loaded (it is in this module), THEN we
5567 * replace the cast->type pointer with the type pointer that has already
5568 * been loaded.
5569 * 2) If BOTH types (the one we are adding casting info to, and the
5570 * cast->type) are loaded, THEN the cast info has already been loaded by
5571 * the previous module so we just ignore it.
5572 * 3) Finally, if cast->type has not already been loaded, then we add that
5573 * swig_cast_info to the linked list (because the cast->type) pointer will
5574 * be correct.
5575 * ----------------------------------------------------------------------------- */
5576  
5577 #ifdef __cplusplus
5578 extern "C" {
5579 #if 0
5580 } /* c-mode */
5581 #endif
5582 #endif
5583  
5584 #if 0
5585 #define SWIGRUNTIME_DEBUG
5586 #endif
5587  
5588 #ifndef SWIG_INIT_CLIENT_DATA_TYPE
5589 #define SWIG_INIT_CLIENT_DATA_TYPE void *
5590 #endif
5591  
5592 SWIGRUNTIME void
5593 0 SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
5594 size_t i;
5595 swig_module_info *module_head, *iter;
5596 int init;
5597
5598 /* check to see if the circular list has been setup, if not, set it up */
5599 0 ▶ if (swig_module.next==0) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next==0) { 0 0 0
5600 /* Initialize the swig_module */
5601 0 swig_module.type_initial = swig_type_initial;
5602 0 swig_module.cast_initial = swig_cast_initial;
5603 0 swig_module.next = &swig_module;
5604 0 init = 1;
5605 } else {
5606 0 init = 0;
5607 }
5608
5609 /* Try and load any already created modules */
5610 0 module_head = SWIG_GetModule(clientdata);
5611 0 ▶ if (!module_head) {
Branch: 1 branch
BranchTrueFalseTotal
if (!module_head) { 0 0 0
5612 /* This is the first module loaded for this interpreter */
5613 /* so set the swig module into the interpreter */
5614 0 SWIG_SetModule(clientdata, &swig_module);
5615 } else {
5616 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5617 0 iter=module_head;
5618 do {
5619 0 ▶ if (iter==&swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter==&swig_module) { 0 0 0
5620 /* Our module is already in the list, so there's nothing more to do. */
5621 0 return;
5622 }
5623 0 iter=iter->next;
5624 0 ▶ } while (iter!= module_head);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter!= module_head); 0 0 0
5625
5626 /* otherwise we must add our module into the list */
5627 0 swig_module.next = module_head->next;
5628 0 module_head->next = &swig_module;
5629 }
5630
5631 /* When multiple interpreters are used, a module could have already been initialized in
5632 a different interpreter, but not yet have a pointer in this interpreter.
5633 In this case, we do not want to continue adding types... everything should be
5634 set up already */
5635 0 ▶ if (init == 0) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init == 0) return; 0 0 0
5636
5637 /* Now work on filling in swig_module.types */
5638 #ifdef SWIGRUNTIME_DEBUG
5639 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
5640 #endif
5641 0 ▶ for (i = 0; i < swig_module.size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; ++i) { 0 0 0
5642 0 swig_type_info *type = 0;
5643 swig_type_info *ret;
5644 swig_cast_info *cast;
5645
5646 #ifdef SWIGRUNTIME_DEBUG
5647 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5648 #endif
5649
5650 /* if there is another module already loaded */
5651 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
5652 0 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
5653 }
5654 0 ▶ if (type) {
Branch: 1 branch
BranchTrueFalseTotal
if (type) { 0 0 0
5655 /* Overwrite clientdata field */
5656 #ifdef SWIGRUNTIME_DEBUG
5657 printf("SWIG_InitializeModule: found type %s\n", type->name);
5658 #endif
5659 0 ▶ if (swig_module.type_initial[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.type_initial[i]->clientdata) { 0 0 0
5660 0 type->clientdata = swig_module.type_initial[i]->clientdata;
5661 #ifdef SWIGRUNTIME_DEBUG
5662 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5663 #endif
5664 }
5665 } else {
5666 0 type = swig_module.type_initial[i];
5667 }
5668
5669 /* Insert casting types */
5670 0 cast = swig_module.cast_initial[i];
5671 0 ▶ while (cast->type) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast->type) { 0 0 0
5672 /* Don't need to add information already in the list */
5673 0 ret = 0;
5674 #ifdef SWIGRUNTIME_DEBUG
5675 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5676 #endif
5677 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
5678 0 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
5679 #ifdef SWIGRUNTIME_DEBUG
5680 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5681 #endif
5682 }
5683 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
5684 0 ▶ if (type == swig_module.type_initial[i]) {
Branch: 1 branch
BranchTrueFalseTotal
if (type == swig_module.type_initial[i]) { 0 0 0
5685 #ifdef SWIGRUNTIME_DEBUG
5686 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5687 #endif
5688 0 cast->type = ret;
5689 0 ret = 0;
5690 } else {
5691 /* Check for casting already in the list */
5692 0 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5693 #ifdef SWIGRUNTIME_DEBUG
5694 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5695 #endif
5696 0 ▶ if (!ocast) ret = 0;
Branch: 1 branch
BranchTrueFalseTotal
if (!ocast) ret = 0; 0 0 0
5697 }
5698 }
5699
5700 0 ▶ if (!ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (!ret) { 0 0 0
5701 #ifdef SWIGRUNTIME_DEBUG
5702 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5703 #endif
5704 0 ▶ if (type->cast) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->cast) { 0 0 0
5705 0 type->cast->prev = cast;
5706 0 cast->next = type->cast;
5707 }
5708 0 type->cast = cast;
5709 }
5710 0 cast++;
5711 }
5712 /* Set entry in modules->types array equal to the type */
5713 0 swig_module.types[i] = type;
5714 }
5715 0 swig_module.types[i] = 0;
5716
5717 #ifdef SWIGRUNTIME_DEBUG
5718 printf("**** SWIG_InitializeModule: Cast List ******\n");
5719 for (i = 0; i < swig_module.size; ++i) {
5720 int j = 0;
5721 swig_cast_info *cast = swig_module.cast_initial[i];
5722 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
5723 while (cast->type) {
5724 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5725 cast++;
5726 ++j;
5727 }
5728 printf("---- Total casts: %d\n",j);
5729 }
5730 printf("**** SWIG_InitializeModule: Cast List ******\n");
5731 #endif
5732 }
5733  
5734 /* This function will propagate the clientdata field of type to
5735 * any new swig_type_info structures that have been added into the list
5736 * of equivalent types. It is like calling
5737 * SWIG_TypeClientData(type, clientdata) a second time.
5738 */
5739 SWIGRUNTIME void
5740 0 SWIG_PropagateClientData(void) {
5741 size_t i;
5742 swig_cast_info *equiv;
5743 static int init_run = 0;
5744
5745 0 ▶ if (init_run) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init_run) return; 0 0 0
5746 0 init_run = 1;
5747
5748 0 ▶ for (i = 0; i < swig_module.size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; i++) { 0 0 0
5749 0 ▶ if (swig_module.types[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.types[i]->clientdata) { 0 0 0
5750 0 equiv = swig_module.types[i]->cast;
5751 0 ▶ while (equiv) {
Branch: 1 branch
BranchTrueFalseTotal
while (equiv) { 0 0 0
5752 0 ▶ if (!equiv->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!equiv->converter) { 0 0 0
5753 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
5754 0 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
5755 }
5756 0 equiv = equiv->next;
5757 }
5758 }
5759 }
5760 }
5761  
5762 #ifdef __cplusplus
5763 #if 0
5764 {
5765 /* c-mode */
5766 #endif
5767 }
5768 #endif
5769  
5770  
5771  
5772 #if defined(__cplusplus) && ! defined(XSPROTO)
5773 extern "C"
5774 #endif
5775  
5776 0 XS(SWIG_init) {
5777 0 dXSARGS;
5778 int i;
5779 (void)items;
5780
5781 0 SWIG_InitializeModule(0);
5782
5783 /* Install commands */
5784 0 ▶ for (i = 0; swig_commands[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_commands[i].name; i++) { 0 0 0
5785 /* Casts only needed for Perl < 5.10. */
5786 #ifdef __cplusplus
5787 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
5788 #else
5789 0 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
5790 #endif
5791 }
5792
5793 /* Install variables */
5794 0 ▶ for (i = 0; swig_variables[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_variables[i].name; i++) { 0 0 0
5795 SV *sv;
5796 0 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
5797 0 ▶ if (swig_variables[i].type) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_variables[i].type) { 0 0 0
5798 0 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
5799 } else {
5800 0 sv_setiv(sv,(IV) 0);
5801 }
5802 0 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
5803 }
5804
5805 /* Install constant */
5806 0 ▶ for (i = 0; swig_constants[i].type; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_constants[i].type; i++) { 0 0 0
5807 SV *sv;
5808 0 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
5809 0 switch(swig_constants[i].type) {
5810 0 case SWIG_INT:
5811 0 sv_setiv(sv, (IV) swig_constants[i].lvalue);
5812 0 break;
5813 0 case SWIG_FLOAT:
5814 0 sv_setnv(sv, (double) swig_constants[i].dvalue);
5815 0 break;
5816 0 case SWIG_STRING:
5817 0 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
5818 0 break;
5819 0 case SWIG_POINTER:
5820 0 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
5821 0 break;
5822 0 case SWIG_BINARY:
5823 0 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
5824 0 break;
5825 0 default:
5826 0 break;
5827 }
5828 0 SvREADONLY_on(sv);
5829 }
5830
5831 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5832 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI);
5833 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8)));
5834 0 SvREADONLY_on(sv);
5835 } while(0) /*@SWIG@*/;
5836 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5837 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
5838 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2)));
5839 0 SvREADONLY_on(sv);
5840 } while(0) /*@SWIG@*/;
5841 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5842 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
5843 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8)));
5844 0 SvREADONLY_on(sv);
5845 } while(0) /*@SWIG@*/;
5846 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5847 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI);
5848 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0))));
5849 0 SvREADONLY_on(sv);
5850 } while(0) /*@SWIG@*/;
5851 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5852 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI);
5853 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0))));
5854 0 SvREADONLY_on(sv);
5855 } while(0) /*@SWIG@*/;
5856 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5857 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
5858 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS)));
5859 0 SvREADONLY_on(sv);
5860 } while(0) /*@SWIG@*/;
5861 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5862 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
5863 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE)));
5864 0 SvREADONLY_on(sv);
5865 } while(0) /*@SWIG@*/;
5866 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5867 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI);
5868 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE)));
5869 0 SvREADONLY_on(sv);
5870 } while(0) /*@SWIG@*/;
5871 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5872 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI);
5873 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM)));
5874 0 SvREADONLY_on(sv);
5875 } while(0) /*@SWIG@*/;
5876 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5877 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI);
5878 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE)));
5879 0 SvREADONLY_on(sv);
5880 } while(0) /*@SWIG@*/;
5881 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5882 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI);
5883 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT)));
5884 0 SvREADONLY_on(sv);
5885 } while(0) /*@SWIG@*/;
5886 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5887 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
5888 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL)));
5889 0 SvREADONLY_on(sv);
5890 } while(0) /*@SWIG@*/;
5891 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5892 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI);
5893 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED)));
5894 0 SvREADONLY_on(sv);
5895 } while(0) /*@SWIG@*/;
5896 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5897 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI);
5898 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR)));
5899 0 SvREADONLY_on(sv);
5900 } while(0) /*@SWIG@*/;
5901 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5902 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI);
5903 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY)));
5904 0 SvREADONLY_on(sv);
5905 } while(0) /*@SWIG@*/;
5906 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5907 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI);
5908 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM)));
5909 0 SvREADONLY_on(sv);
5910 } while(0) /*@SWIG@*/;
5911 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5912 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI);
5913 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC)));
5914 0 SvREADONLY_on(sv);
5915 } while(0) /*@SWIG@*/;
5916 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5917 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI);
5918 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY)));
5919 0 SvREADONLY_on(sv);
5920 } while(0) /*@SWIG@*/;
5921 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5922 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI);
5923 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER)));
5924 0 SvREADONLY_on(sv);
5925 } while(0) /*@SWIG@*/;
5926 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5927 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI);
5928 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV)));
5929 0 SvREADONLY_on(sv);
5930 } while(0) /*@SWIG@*/;
5931 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5932 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI);
5933 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL)));
5934 0 SvREADONLY_on(sv);
5935 } while(0) /*@SWIG@*/;
5936 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5937 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI);
5938 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL)));
5939 0 SvREADONLY_on(sv);
5940 } while(0) /*@SWIG@*/;
5941 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5942 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI);
5943 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW)));
5944 0 SvREADONLY_on(sv);
5945 } while(0) /*@SWIG@*/;
5946 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5947 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI);
5948 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW)));
5949 0 SvREADONLY_on(sv);
5950 } while(0) /*@SWIG@*/;
5951 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5952 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI);
5953 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS)));
5954 0 SvREADONLY_on(sv);
5955 } while(0) /*@SWIG@*/;
5956 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5957 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI);
5958 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND)));
5959 0 SvREADONLY_on(sv);
5960 } while(0) /*@SWIG@*/;
5961 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5962 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI);
5963 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN)));
5964 0 SvREADONLY_on(sv);
5965 } while(0) /*@SWIG@*/;
5966 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5967 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI);
5968 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR)));
5969 0 SvREADONLY_on(sv);
5970 } while(0) /*@SWIG@*/;
5971 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5972 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI);
5973 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING)));
5974 0 SvREADONLY_on(sv);
5975 } while(0) /*@SWIG@*/;
5976 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5977 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI);
5978 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE)));
5979 0 SvREADONLY_on(sv);
5980 } while(0) /*@SWIG@*/;
5981 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5982 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI);
5983 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP)));
5984 0 SvREADONLY_on(sv);
5985 } while(0) /*@SWIG@*/;
5986 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5987 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI);
5988 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL)));
5989 0 SvREADONLY_on(sv);
5990 } while(0) /*@SWIG@*/;
5991 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5992 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI);
5993 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE)));
5994 0 SvREADONLY_on(sv);
5995 } while(0) /*@SWIG@*/;
5996 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
5997 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI);
5998 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE)));
5999 0 SvREADONLY_on(sv);
6000 } while(0) /*@SWIG@*/;
6001 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6002 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI);
6003 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG)));
6004 0 SvREADONLY_on(sv);
6005 } while(0) /*@SWIG@*/;
6006 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6007 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI);
6008 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ)));
6009 0 SvREADONLY_on(sv);
6010 } while(0) /*@SWIG@*/;
6011 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6012 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI);
6013 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF)));
6014 0 SvREADONLY_on(sv);
6015 } while(0) /*@SWIG@*/;
6016 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6017 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI);
6018 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX)));
6019 0 SvREADONLY_on(sv);
6020 } while(0) /*@SWIG@*/;
6021 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6022 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI);
6023 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG)));
6024 0 SvREADONLY_on(sv);
6025 } while(0) /*@SWIG@*/;
6026 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6027 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI);
6028 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF)));
6029 0 SvREADONLY_on(sv);
6030 } while(0) /*@SWIG@*/;
6031 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_permutation_struct, (void*) "Math::GSL::Sort::gsl_permutation_struct");
6032 0 ST(0) = &PL_sv_yes;
6033 0 XSRETURN(1);
6034 }
6035  
« xs/Siman_wrap.2.8.c ↑ Summary xs/SparseMatrix_wrap.2.8.c »