xs/Poly_wrap.2.8.c

filter: Statementstmt 0.0% 0 / 3510 Branchbran 0.0% 0 / 2070 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 5580 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Permutation_wrap.2.8.c ↑ Summary xs/PowInt_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_float swig_types[5]
1516 #define SWIGTYPE_p_gsl_complex swig_types[6]
1517 #define SWIGTYPE_p_gsl_complex_float swig_types[7]
1518 #define SWIGTYPE_p_gsl_complex_long_double swig_types[8]
1519 #define SWIGTYPE_p_gsl_poly_complex_workspace swig_types[9]
1520 #define SWIGTYPE_p_long_double swig_types[10]
1521 static swig_type_info *swig_types[12];
1522 static swig_module_info swig_module = {swig_types, 11, 0, 0, 0, 0};
1523 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1524 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1525  
1526 /* -------- TYPES TABLE (END) -------- */
1527  
1528 #define SWIG_init boot_Math__GSL__Poly
1529  
1530 #define SWIG_name "Math::GSL::Polyc::boot_Math__GSL__Poly"
1531 #define SWIG_prefix "Math::GSL::Polyc::"
1532  
1533 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1534 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1535  
1536  
1537 #ifdef __cplusplus
1538 extern "C"
1539 #endif
1540 #ifndef MULTIPLICITY
1541 SWIGEXPORT void SWIG_init (CV* cv);
1542 #else
1543 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1544 #endif
1545  
1546  
1547 SWIGINTERNINLINE SV *
1548 0 SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value)
1549 {
1550 0 return sv_2mortal(newSVnv(value));
1551 }
1552  
1553  
1554 SWIGINTERNINLINE SV *
1555 0 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1556 {
1557 SV *sv;
1558 if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
1559 0 sv = newSViv(value);
1560 else
1561 sv = newSVpvf("%ld", value);
1562 0 return sv_2mortal(sv);
1563 }
1564  
1565  
1566 SWIGINTERNINLINE SV *
1567 0 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1568 {
1569 0 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1570 }
1571  
1572  
1573 SWIGINTERN swig_type_info*
1574 0 SWIG_pchar_descriptor(void)
1575 {
1576 static int init = 0;
1577 static swig_type_info* info = 0;
1578 0 ▶ if (!init) {
Branch: 1 branch
BranchTrueFalseTotal
if (!init) { 0 0 0
1579 0 info = SWIG_TypeQuery("_p_char");
1580 0 init = 1;
1581 }
1582 0 return info;
1583 }
1584  
1585  
1586 SWIGINTERN int
1587 0 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1588 {
1589 0 ▶ if (SvMAGICAL(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(obj)) { 0 0 0
1590 0 SV *tmp = sv_newmortal();
1591 0 ▶ SvSetSV(tmp, obj);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(tmp, obj); 0 0 0
1592 0 obj = tmp;
1593 }
1594 0 ▶ if (SvPOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvPOK(obj)) { 0 0 0
1595 0 STRLEN len = 0;
1596 0 char *cstr = SvPV(obj, len);
1597 0 size_t size = len + 1;
1598 0 ▶ if (cptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) { 0 0 0
1599 0 ▶ if (alloc) {
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) { 0 0 0
1600 0 ▶ if (*alloc == SWIG_NEWOBJ) {
Branch: 1 branch
BranchTrueFalseTotal
if (*alloc == SWIG_NEWOBJ) { 0 0 0
1601 0 *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1602 } else {
1603 0 *cptr = cstr;
1604 0 *alloc = SWIG_OLDOBJ;
1605 }
1606 }
1607 }
1608 0 ▶ if (psize) *psize = size;
Branch: 1 branch
BranchTrueFalseTotal
if (psize) *psize = size; 0 0 0
1609 0 return SWIG_OK;
1610 } else {
1611 0 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1612 0 ▶ if (pchar_descriptor) {
Branch: 1 branch
BranchTrueFalseTotal
if (pchar_descriptor) { 0 0 0
1613 0 char* vptr = 0;
1614 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
1615 0 ▶ if (cptr) *cptr = vptr;
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) *cptr = vptr; 0 0 0
1616 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
1617 0 ▶ if (alloc) *alloc = SWIG_OLDOBJ;
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) *alloc = SWIG_OLDOBJ; 0 0 0
1618 0 return SWIG_OK;
1619 }
1620 }
1621 }
1622 0 return SWIG_TypeError;
1623 }
1624  
1625  
1626  
1627  
1628  
1629 #include <limits.h>
1630 #if !defined(SWIG_NO_LLONG_MAX)
1631 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1632 # define LLONG_MAX __LONG_LONG_MAX__
1633 # define LLONG_MIN (-LLONG_MAX - 1LL)
1634 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1635 # endif
1636 #endif
1637  
1638  
1639 #include <stdlib.h>
1640 #ifdef _MSC_VER
1641 # ifndef strtoull
1642 # define strtoull _strtoui64
1643 # endif
1644 # ifndef strtoll
1645 # define strtoll _strtoi64
1646 # endif
1647 #endif
1648  
1649  
1650 SWIGINTERN int
1651 0 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1652 {
1653 0 ▶ if (SvNIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvNIOK(obj)) { 0 0 0
1654 0 ▶ if (val) *val = SvNV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvNV(obj); 0 0 0
1655 0 return SWIG_OK;
1656 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1657 0 ▶ if (val) *val = (double) SvIV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (double) SvIV(obj); 0 0 0
1658 0 return SWIG_AddCast(SWIG_OK);
1659 } else {
1660 0 const char *nptr = SvPV_nolen(obj);
1661 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1662 char *endptr;
1663 double v;
1664 0 errno = 0;
1665 0 v = strtod(nptr, &endptr);
1666 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1667 0 errno = 0;
1668 0 return SWIG_OverflowError;
1669 } else {
1670 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1671 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1672 0 return SWIG_Str2NumCast(SWIG_OK);
1673 }
1674 }
1675 }
1676 }
1677 0 return SWIG_TypeError;
1678 }
1679  
1680  
1681 #include <float.h>
1682  
1683  
1684 #include <math.h>
1685  
1686  
1687 SWIGINTERNINLINE int
1688 0 SWIG_CanCastAsInteger(double *d, double min, double max) {
1689 0 double x = *d;
1690 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
1691 double fx, cx, rd;
1692 0 errno = 0;
1693 0 fx = floor(x);
1694 0 cx = ceil(x);
1695 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
1696 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
1697 0 errno = 0;
1698 } else {
1699 double summ, reps, diff;
1700 0 ▶ if (rd < x) {
Branch: 1 branch
BranchTrueFalseTotal
if (rd < x) { 0 0 0
1701 0 diff = x - rd;
1702 0 ▶ } else if (rd > x) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (rd > x) { 0 0 0
1703 0 diff = rd - x;
1704 } else {
1705 0 return 1;
1706 }
1707 0 summ = rd + x;
1708 0 reps = diff/summ;
1709 0 ▶ if (reps < 8*DBL_EPSILON) {
Branch: 1 branch
BranchTrueFalseTotal
if (reps < 8*DBL_EPSILON) { 0 0 0
1710 0 *d = rd;
1711 0 return 1;
1712 }
1713 }
1714 }
1715 0 return 0;
1716 }
1717  
1718  
1719 SWIGINTERN int
1720 0 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1721 {
1722 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
1723 0 UV v = SvUV(obj);
1724 0 ▶ if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { 0 0 0
1725 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1726 0 return SWIG_OK;
1727 }
1728 0 return SWIG_OverflowError;
1729 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1730 0 IV v = SvIV(obj);
1731 if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
1732 0 ▶ if(val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if(val) *val = v; 0 0 0
1733 0 return SWIG_OK;
1734 }
1735 return SWIG_OverflowError;
1736 } else {
1737 0 int dispatch = 0;
1738 0 const char *nptr = SvPV_nolen(obj);
1739 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1740 char *endptr;
1741 long v;
1742 0 errno = 0;
1743 0 v = strtol(nptr, &endptr,0);
1744 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1745 0 errno = 0;
1746 0 return SWIG_OverflowError;
1747 } else {
1748 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1749 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1750 0 return SWIG_Str2NumCast(SWIG_OK);
1751 }
1752 }
1753 }
1754 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
1755 double d;
1756 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1757 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
1758 0 ▶ if (val) *val = (long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (long)(d); 0 0 0
1759 0 return res;
1760 }
1761 }
1762 }
1763 0 return SWIG_TypeError;
1764 }
1765  
1766  
1767 SWIGINTERN int
1768 0 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1769 {
1770 long v;
1771 0 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1772 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
1773 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
1774 0 return SWIG_OverflowError;
1775 } else {
1776 0 ▶ if (val) *val = (int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (int)(v); 0 0 0
1777 }
1778 }
1779 0 return res;
1780 }
1781  
1782  
1783 SWIGINTERNINLINE SV *
1784 0 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1785 {
1786 0 SV *obj = sv_newmortal();
1787 0 ▶ if (carray) {
Branch: 1 branch
BranchTrueFalseTotal
if (carray) { 0 0 0
1788 0 sv_setpvn(obj, carray, size);
1789 } else {
1790 0 sv_setsv(obj, &PL_sv_undef);
1791 }
1792 0 return obj;
1793 }
1794  
1795  
1796 SWIGINTERNINLINE SV *
1797 0 SWIG_FromCharPtr(const char *cptr)
1798 {
1799 0 ▶ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
Branch: 1 branch
BranchTrueFalseTotal
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); 0 0 0
1800 }
1801  
1802  
1803 #include "gsl/gsl_nan.h"
1804 #include "gsl/gsl_errno.h"
1805 #include "gsl/gsl_math.h"
1806 #include "gsl/gsl_monte.h"
1807  
1808  
1809 struct perl_array {
1810 I32 len;
1811 AV *array;
1812 };
1813  
1814  
1815  
1816 enum awType { awDouble, awFloat, awInt, awUnsigned };
1817  
1818 typedef struct {
1819 I32 size;
1820 enum awType type;
1821 void * data;
1822 } array_wrapper;
1823  
1824 0 array_wrapper * array_wrapper_alloc(int numelem, enum awType type){
1825 0 array_wrapper * rv = malloc(sizeof(array_wrapper));
1826  
1827 0 ▶ if (rv == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv == NULL) 0 0 0
1828 0 croak("array_wrapper_alloc: can't malloc wrapper\n");
1829  
1830 0 switch (type){
1831 0 case awDouble:
1832 0 rv->data = malloc(sizeof(double) * numelem);
1833 0 break;
1834 0 case awFloat:
1835 0 rv->data = malloc(sizeof(float) * numelem);
1836 0 break;
1837 0 case awInt:
1838 0 rv->data = malloc(sizeof(int) * numelem);
1839 0 break;
1840 0 case awUnsigned:
1841 0 rv->data = malloc(sizeof(unsigned int) * numelem);
1842 0 break;
1843 0 default:
1844 0 croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned");
1845 }
1846  
1847 0 ▶ if (rv->data == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv->data == NULL) 0 0 0
1848 0 croak("array_wrapper_alloc: can't malloc data");
1849  
1850 0 rv->size = numelem;
1851 0 rv->type = type;
1852 0 return rv;
1853 }
1854  
1855 0 void array_wrapper_free(array_wrapper * daw){
1856 0 free(daw->data);
1857 0 free(daw);
1858 0 }
1859  
1860  
1861 /* structure to hold required information while the gsl function call
1862 for each callback
1863 */
1864 struct gsl_function_perl {
1865 gsl_function C_gsl_function;
1866 SV * function;
1867 SV * params;
1868 };
1869  
1870 struct gsl_function_fdf_perl {
1871 gsl_function_fdf C_gsl_function_fdf;
1872 SV * f;
1873 SV * df;
1874 SV * fdf;
1875 SV * params;
1876 };
1877  
1878 struct gsl_monte_function_perl {
1879 gsl_monte_function C_gsl_monte_function;
1880 SV * f;
1881 SV * dim;
1882 SV * params;
1883 };
1884  
1885 0 void gsl_function_perl_free(struct gsl_function_perl * perl_f){
1886 0 ▶ if (perl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_f != NULL) { 0 0 0
1887 0 SvREFCNT_dec(perl_f->function);
1888 0 SvREFCNT_dec(perl_f->params);
1889 0 Safefree(perl_f);
1890 }
1891 0 }
1892  
1893 0 void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){
1894 0 ▶ if (perl_fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_fdf != NULL) { 0 0 0
1895 0 SvREFCNT_dec(perl_fdf->f);
1896 0 SvREFCNT_dec(perl_fdf->df);
1897 0 SvREFCNT_dec(perl_fdf->fdf);
1898 0 SvREFCNT_dec(perl_fdf->params);
1899 0 Safefree(perl_fdf);
1900 }
1901 0 }
1902  
1903 /* These functions (C callbacks) calls the perl callbacks.
1904 Info for perl callback can be found using the 'void*params' parameter
1905 */
1906 0 double call_gsl_function_x_params(SV* function, double x, SV *params){
1907 unsigned int count;
1908 double y;
1909 0 dSP;
1910  
1911 //fprintf(stderr, "LOOKUP CALLBACK\n");
1912 0 ENTER;
1913 0 SAVETMPS;
1914  
1915 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1916 0 ▶ XPUSHs(sv_2mortal(newSVnv((double)x)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVnv((double)x))); 0 0 0
1917 0 ▶ XPUSHs(params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(params); 0 0 0
1918 0 PUTBACK; /* make local stack pointer global */
1919  
1920 0 count = call_sv(function, G_SCALAR);
1921 0 SPAGAIN;
1922  
1923 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
1924 0 croak("Expected to call subroutine in scalar context!");
1925  
1926 0 y = POPn;
1927  
1928 0 PUTBACK; /* make local stack pointer global */
1929 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1930 0 LEAVE;
1931  
1932 0 return y;
1933 }
1934  
1935 0 double call_gsl_function(double x , void *params){
1936 0 struct gsl_function_perl *F=(struct gsl_function_perl*)params;
1937 0 return call_gsl_function_x_params( F->function, x, F->params );
1938 }
1939  
1940 0 double call_gsl_function_fdf_f(double x , void *params){
1941 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1942 0 return call_gsl_function_x_params( F->f, x, F->params );
1943 }
1944  
1945 0 double call_gsl_function_fdf_df(double x , void *params){
1946 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1947 0 return call_gsl_function_x_params( F->df, x, F->params );
1948 }
1949  
1950 0 void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){
1951 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1952  
1953 0 dSP;
1954  
1955 0 ENTER;
1956 0 SAVETMPS;
1957  
1958 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1959 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
1960 0 PUSHs(sv_2mortal(newSVnv((double)x)));
1961 0 PUSHs(F->params);
1962 0 PUTBACK; /* make local stack pointer global */
1963  
1964 {
1965 0 unsigned int count = call_sv(F->fdf, G_ARRAY);
1966 0 SPAGAIN;
1967  
1968 0 ▶ if (count != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 2) 0 0 0
1969 0 croak( "Expected two return values, got %d", count );
1970 }
1971  
1972 0 *df = POPn;
1973 0 *f = POPn;
1974  
1975 0 PUTBACK; /* make local stack pointer global */
1976 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1977 0 LEAVE;
1978 0 }
1979  
1980 0 double call_gsl_monte_function(double *x_array , size_t dim, void *params){
1981 0 struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params;
1982 unsigned int count;
1983 unsigned int i;
1984 AV* perl_array;
1985 double y;
1986 0 dSP;
1987  
1988 //fprintf(stderr, "LOOKUP CALLBACK\n");
1989 0 ENTER;
1990 0 SAVETMPS;
1991  
1992 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1993 0 perl_array=newAV();
1994 0 sv_2mortal((SV*)perl_array);
1995 0 ▶ XPUSHs(sv_2mortal(newRV((SV *)perl_array)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newRV((SV *)perl_array))); 0 0 0
1996 0 ▶ for(i=0; i<dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(i=0; i<dim; i++) { 0 0 0
1997 /* no mortal : it is referenced by the array */
1998 0 av_push(perl_array, newSVnv(x_array[i]));
1999 }
2000 0 ▶ XPUSHs(sv_2mortal(newSViv(dim)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSViv(dim))); 0 0 0
2001 0 ▶ XPUSHs(F->params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(F->params); 0 0 0
2002 0 PUTBACK; /* make local stack pointer global */
2003  
2004 0 count = call_sv(F->f, G_SCALAR);
2005 0 SPAGAIN;
2006  
2007 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
2008 0 croak("Expected to call subroutine in scalar context!");
2009  
2010 0 y = POPn;
2011  
2012 0 PUTBACK; /* make local stack pointer global */
2013 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2014 0 LEAVE;
2015  
2016 0 return y;
2017 }
2018  
2019  
2020 0 void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) {
2021 static const char *keys[3] = { "f", "df", "fdf" };
2022  
2023 int ikey;
2024  
2025 0 ▶ for ( ikey = 0 ; ikey < 3 ; ++ikey ) {
Branch: 1 branch
BranchTrueFalseTotal
for ( ikey = 0 ; ikey < 3 ; ++ikey ) { 0 0 0
2026 0 func[ikey] = 0;
2027 0 const char* key = keys[ikey];
2028 /* it just so happens that strlen(keys[ikey]) == ikey + 1 */
2029 0 SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 );
2030 SV* function;
2031  
2032 0 ▶ if ( !pp_sv )
Branch: 1 branch
BranchTrueFalseTotal
if ( !pp_sv ) 0 0 0
2033 0 croak("Math::GSL : %s: missing key %s!", param_name, key);
2034  
2035 0 function = *pp_sv;
2036  
2037 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
2038 /* hold on to SV after the enclosing hash goes away */
2039 0 SvREFCNT_inc( function );
2040 0 func[ikey] = function;
2041 }
2042 else {
2043 0 croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key);
2044 }
2045 }
2046 0 }
2047  
2048  
2049  
2050 #include "gsl/gsl_sys.h"
2051  
2052  
2053 #include "gsl/gsl_inline.h"
2054 #include "gsl/gsl_nan.h"
2055 #include "gsl/gsl_poly.h"
2056 #include "gsl/gsl_complex.h"
2057 #include "gsl/gsl_complex_math.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_poly_eval) {
2503 {
2504 0 double *arg1 = (double *) (double *)0 ;
2505 int arg2 ;
2506 double arg3 ;
2507 int val2 ;
2508 0 int ecode2 = 0 ;
2509 double val3 ;
2510 0 int ecode3 = 0 ;
2511 0 int argvi = 0;
2512 double result;
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_poly_eval(c,len,x);");
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 : $c 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 : $c 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_int 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_poly_eval" "', argument " "2"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_eval" "', argument " "2"" of type '" "int""'"); 0 0 0
2539 }
2540 0 arg2 = (int)(val2);
2541 0 ecode3 = SWIG_AsVal_double 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_poly_eval" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_eval" "', argument " "3"" of type '" "double""'"); 0 0 0
2544 }
2545 0 arg3 = (double)(val3);
2546 0 result = (double)gsl_poly_eval((double const (*))arg1,arg2,arg3);
2547 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2548 {
2549 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2550 }
2551
2552
2553 0 XSRETURN(argvi);
2554 0 fail:
2555 {
2556 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2557 }
2558
2559
2560 0 SWIG_croak_null();
2561 }
2562 }
2563  
2564  
2565 0 XS(_wrap_gsl_poly_complex_eval) {
2566 {
2567 0 double *arg1 = (double *) (double *)0 ;
2568 int arg2 ;
2569 gsl_complex arg3 ;
2570 int val2 ;
2571 0 int ecode2 = 0 ;
2572 void *argp3 ;
2573 0 int res3 = 0 ;
2574 0 int argvi = 0;
2575 SV * _saved[1] ;
2576 gsl_complex result;
2577 0 dXSARGS;
2578
2579 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
2580 0 SWIG_croak("Usage: gsl_poly_complex_eval(c,len,z);");
2581 }
2582 {
2583 AV *tempav;
2584 I32 len;
2585 int i;
2586 SV **tv;
2587 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2588 0 croak("Math::GSL : $c is not a reference!");
2589 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2590 0 croak("Math::GSL : $c is not an array ref!");
2591
2592 0 tempav = (AV*)SvRV(ST(0));
2593 0 len = av_len(tempav);
2594 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2595 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2596 0 tv = av_fetch(tempav, i, 0);
2597 0 arg1[i] = (double) SvNV(*tv);
2598 }
2599 }
2600 0 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2601 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2602 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_eval" "', argument " "2"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_eval" "', argument " "2"" of type '" "int""'"); 0 0 0
2603 }
2604 0 arg2 = (int)(val2);
2605 {
2606 0 res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_gsl_complex, 0 );
2607 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
2608 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_poly_complex_eval" "', argument " "3"" of type '" "gsl_complex const""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_poly_complex_eval" "', argument " "3"" of type '" "gsl_complex const""'"); 0 0 0
2609 }
2610 0 ▶ if (!argp3) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp3) { 0 0 0
2611 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_poly_complex_eval" "', argument " "3"" of type '" "gsl_complex const""'");
2612 } else {
2613 0 arg3 = *((gsl_complex *)(argp3));
2614 }
2615 }
2616 0 _saved[0] = ST(2);
2617 0 result = gsl_poly_complex_eval((double const (*))arg1,arg2,arg3);
2618 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
2619 {
2620 0 AV* tempav = newAV();
2621 double x,y;
2622 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
2623 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
2624 }
2625 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg3));
2626 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg3));
2627
2628 0 ST(argvi) = sv_newmortal();
2629
2630 0 x = GSL_REAL(arg3);
2631 0 y = GSL_IMAG(arg3);
2632
2633 /* the next 2 lines blow up
2634 sv_setnv(ST(argvi), x);
2635 argvi++;
2636 */
2637 }
2638 {
2639 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2640 }
2641
2642 0 XSRETURN(argvi);
2643 0 fail:
2644 {
2645 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2646 }
2647
2648 0 SWIG_croak_null();
2649 }
2650 }
2651  
2652  
2653 0 XS(_wrap_gsl_complex_poly_complex_eval) {
2654 {
2655 0 gsl_complex *arg1 = (gsl_complex *) (gsl_complex *)0 ;
2656 int arg2 ;
2657 gsl_complex arg3 ;
2658 int val2 ;
2659 0 int ecode2 = 0 ;
2660 void *argp3 ;
2661 0 int res3 = 0 ;
2662 0 int argvi = 0;
2663 SV * _saved[1] ;
2664 gsl_complex result;
2665 0 dXSARGS;
2666
2667 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
2668 0 SWIG_croak("Usage: gsl_complex_poly_complex_eval(c,len,z);");
2669 }
2670 {
2671 AV *tempav;
2672 I32 len;
2673 int i, magic, stuff;
2674 double x,y;
2675 gsl_complex z;
2676 SV **elem, **helem, **real, **imag;
2677 HV *hash, *htmp;
2678 SV *svtmp, tmp;
2679 double result[2];
2680
2681 0 printf("gsl_complex typemap\n");
2682 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2683 0 croak("Math::GSL : ST(0) is not a reference!");
2684 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2685 0 croak("Math::GSL : ST(0) is not an array ref!");
2686
2687 0 z = gsl_complex_rect(0,0);
2688 0 tempav = (AV*)SvRV(ST(0));
2689 0 len = av_len(tempav);
2690 0 arg1 = (gsl_complex *) malloc((len+1)*sizeof(gsl_complex));
2691 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2692 0 elem = av_fetch(tempav, i, 0);
2693
2694 0 hash = (HV*) SvRV(*elem);
2695 0 helem = hv_fetch(hash, "dat", 3, 0);
2696 0 magic = mg_get(*helem);
2697 0 ▶ if ( magic != 0)
Branch: 1 branch
BranchTrueFalseTotal
if ( magic != 0) 0 0 0
2698 0 croak("FETCH magic failed!\n");
2699
2700 0 printf("magic = %d\n", magic);
2701 0 ▶ if( *helem == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if( *helem == NULL) 0 0 0
2702 0 croak("Structure does not contain 'dat' element\n");
2703 0 printf("helem is:\n");
2704 //Perl_sv_dump(*helem);
2705 0 ▶ if( i == 0){
Branch: 1 branch
BranchTrueFalseTotal
if( i == 0){ 0 0 0
2706 0 svtmp = (SV*)SvRV(*helem);
2707 //Perl_sv_dump(svtmp);
2708 }
2709 0 printf("re z = %f\n", GSL_REAL(z) );
2710 0 printf("im z = %f\n", GSL_IMAG(z) );
2711 0 arg1[i] = z;
2712 }
2713 }
2714 0 ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2715 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2716 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_poly_complex_eval" "', argument " "2"" of type '" "int""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_poly_complex_eval" "', argument " "2"" of type '" "int""'"); 0 0 0
2717 }
2718 0 arg2 = (int)(val2);
2719 {
2720 0 res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_gsl_complex, 0 );
2721 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
2722 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_complex_poly_complex_eval" "', argument " "3"" of type '" "gsl_complex const""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_complex_poly_complex_eval" "', argument " "3"" of type '" "gsl_complex const""'"); 0 0 0
2723 }
2724 0 ▶ if (!argp3) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp3) { 0 0 0
2725 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_poly_complex_eval" "', argument " "3"" of type '" "gsl_complex const""'");
2726 } else {
2727 0 arg3 = *((gsl_complex *)(argp3));
2728 }
2729 }
2730 0 _saved[0] = ST(2);
2731 0 result = gsl_complex_poly_complex_eval((gsl_complex const (*))arg1,arg2,arg3);
2732 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
2733 {
2734 0 AV* tempav = newAV();
2735 double x,y;
2736 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
2737 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
2738 }
2739 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg3));
2740 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg3));
2741
2742 0 ST(argvi) = sv_newmortal();
2743
2744 0 x = GSL_REAL(arg3);
2745 0 y = GSL_IMAG(arg3);
2746
2747 /* the next 2 lines blow up
2748 sv_setnv(ST(argvi), x);
2749 argvi++;
2750 */
2751 }
2752
2753
2754 0 XSRETURN(argvi);
2755 0 fail:
2756
2757
2758 0 SWIG_croak_null();
2759 }
2760 }
2761  
2762  
2763 0 XS(_wrap_gsl_poly_eval_derivs) {
2764 {
2765 0 double *arg1 = (double *) (double *)0 ;
2766 size_t arg2 ;
2767 double arg3 ;
2768 0 double *arg4 = (double *) (double *)0 ;
2769 size_t arg5 ;
2770 size_t val2 ;
2771 0 int ecode2 = 0 ;
2772 double val3 ;
2773 0 int ecode3 = 0 ;
2774 0 void *argp4 = 0 ;
2775 0 int res4 = 0 ;
2776 size_t val5 ;
2777 0 int ecode5 = 0 ;
2778 0 int argvi = 0;
2779 int result;
2780 0 dXSARGS;
2781
2782 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
2783 0 SWIG_croak("Usage: gsl_poly_eval_derivs(c,lenc,x,res,lenres);");
2784 }
2785 {
2786 AV *tempav;
2787 I32 len;
2788 int i;
2789 SV **tv;
2790 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2791 0 croak("Math::GSL : $c is not a reference!");
2792 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2793 0 croak("Math::GSL : $c is not an array ref!");
2794
2795 0 tempav = (AV*)SvRV(ST(0));
2796 0 len = av_len(tempav);
2797 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2798 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2799 0 tv = av_fetch(tempav, i, 0);
2800 0 arg1[i] = (double) SvNV(*tv);
2801 }
2802 }
2803 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2804 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2805 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_eval_derivs" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_eval_derivs" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2806 }
2807 0 arg2 = (size_t)(val2);
2808 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2809 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2810 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_eval_derivs" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_eval_derivs" "', argument " "3"" of type '" "double""'"); 0 0 0
2811 }
2812 0 arg3 = (double)(val3);
2813 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_double, 0 | 0 );
2814 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
2815 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_poly_eval_derivs" "', argument " "4"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_poly_eval_derivs" "', argument " "4"" of type '" "double []""'"); 0 0 0
2816 }
2817 0 arg4 = (double *)(argp4);
2818 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
2819 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
2820 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_poly_eval_derivs" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_poly_eval_derivs" "', argument " "5"" of type '" "size_t""'"); 0 0 0
2821 }
2822 0 arg5 = (size_t)(val5);
2823 0 result = (int)gsl_poly_eval_derivs((double const (*))arg1,arg2,arg3,arg4,arg5);
2824 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
2825 {
2826 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2827 }
2828
2829
2830
2831
2832 0 XSRETURN(argvi);
2833 0 fail:
2834 {
2835 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
2836 }
2837
2838
2839
2840
2841 0 SWIG_croak_null();
2842 }
2843 }
2844  
2845  
2846 0 XS(_wrap_gsl_poly_dd_init) {
2847 {
2848 0 double *arg1 = (double *) (double *)0 ;
2849 0 double *arg2 = (double *) (double *)0 ;
2850 0 double *arg3 = (double *) (double *)0 ;
2851 size_t arg4 ;
2852 0 void *argp1 = 0 ;
2853 0 int res1 = 0 ;
2854 size_t val4 ;
2855 0 int ecode4 = 0 ;
2856 0 int argvi = 0;
2857 int result;
2858 0 dXSARGS;
2859
2860 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
2861 0 SWIG_croak("Usage: gsl_poly_dd_init(dd,x,y,size);");
2862 }
2863 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_double, 0 | 0 );
2864 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2865 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_dd_init" "', argument " "1"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_dd_init" "', argument " "1"" of type '" "double []""'"); 0 0 0
2866 }
2867 0 arg1 = (double *)(argp1);
2868 {
2869 AV *tempav;
2870 I32 len;
2871 int i;
2872 SV **tv;
2873 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
2874 0 croak("Math::GSL : $x is not a reference!");
2875 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
2876 0 croak("Math::GSL : $x is not an array ref!");
2877
2878 0 tempav = (AV*)SvRV(ST(1));
2879 0 len = av_len(tempav);
2880 0 arg2 = (double *) malloc((len+2)*sizeof(double));
2881 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2882 0 tv = av_fetch(tempav, i, 0);
2883 0 arg2[i] = (double) SvNV(*tv);
2884 }
2885 }
2886 {
2887 AV *tempav;
2888 I32 len;
2889 int i;
2890 SV **tv;
2891 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
2892 0 croak("Math::GSL : $y is not a reference!");
2893 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
2894 0 croak("Math::GSL : $y is not an array ref!");
2895
2896 0 tempav = (AV*)SvRV(ST(2));
2897 0 len = av_len(tempav);
2898 0 arg3 = (double *) malloc((len+2)*sizeof(double));
2899 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2900 0 tv = av_fetch(tempav, i, 0);
2901 0 arg3[i] = (double) SvNV(*tv);
2902 }
2903 }
2904 0 ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2905 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2906 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_poly_dd_init" "', argument " "4"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_poly_dd_init" "', argument " "4"" of type '" "size_t""'"); 0 0 0
2907 }
2908 0 arg4 = (size_t)(val4);
2909 0 result = (int)gsl_poly_dd_init(arg1,(double const (*))arg2,(double const (*))arg3,arg4);
2910 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
2911
2912 {
2913 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
2914 }
2915 {
2916 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
2917 }
2918
2919 0 XSRETURN(argvi);
2920 0 fail:
2921
2922 {
2923 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
2924 }
2925 {
2926 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
2927 }
2928
2929 0 SWIG_croak_null();
2930 }
2931 }
2932  
2933  
2934 0 XS(_wrap_gsl_poly_dd_eval) {
2935 {
2936 0 double *arg1 = (double *) (double *)0 ;
2937 0 double *arg2 = (double *) (double *)0 ;
2938 size_t arg3 ;
2939 double arg4 ;
2940 size_t val3 ;
2941 0 int ecode3 = 0 ;
2942 double val4 ;
2943 0 int ecode4 = 0 ;
2944 0 int argvi = 0;
2945 double result;
2946 0 dXSARGS;
2947
2948 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
2949 0 SWIG_croak("Usage: gsl_poly_dd_eval(dd,xa,size,x);");
2950 }
2951 {
2952 AV *tempav;
2953 I32 len;
2954 int i;
2955 SV **tv;
2956 0 ▶ if (!SvROK(ST(0)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) 0 0 0
2957 0 croak("Math::GSL : $dd is not a reference!");
2958 0 ▶ if (SvTYPE(SvRV(ST(0))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(0))) != SVt_PVAV) 0 0 0
2959 0 croak("Math::GSL : $dd is not an array ref!");
2960
2961 0 tempav = (AV*)SvRV(ST(0));
2962 0 len = av_len(tempav);
2963 0 arg1 = (double *) malloc((len+2)*sizeof(double));
2964 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2965 0 tv = av_fetch(tempav, i, 0);
2966 0 arg1[i] = (double) SvNV(*tv);
2967 }
2968 }
2969 {
2970 AV *tempav;
2971 I32 len;
2972 int i;
2973 SV **tv;
2974 0 ▶ if (!SvROK(ST(1)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) 0 0 0
2975 0 croak("Math::GSL : $xa is not a reference!");
2976 0 ▶ if (SvTYPE(SvRV(ST(1))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(1))) != SVt_PVAV) 0 0 0
2977 0 croak("Math::GSL : $xa is not an array ref!");
2978
2979 0 tempav = (AV*)SvRV(ST(1));
2980 0 len = av_len(tempav);
2981 0 arg2 = (double *) malloc((len+2)*sizeof(double));
2982 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
2983 0 tv = av_fetch(tempav, i, 0);
2984 0 arg2[i] = (double) SvNV(*tv);
2985 }
2986 }
2987 0 ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2988 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2989 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_dd_eval" "', argument " "3"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_dd_eval" "', argument " "3"" of type '" "size_t""'"); 0 0 0
2990 }
2991 0 arg3 = (size_t)(val3);
2992 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2993 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2994 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_poly_dd_eval" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_poly_dd_eval" "', argument " "4"" of type '" "double""'"); 0 0 0
2995 }
2996 0 arg4 = (double)(val4);
2997 0 result = (double)gsl_poly_dd_eval((double const (*))arg1,(double const (*))arg2,arg3,arg4);
2998 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
2999 {
3000 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3001 }
3002 {
3003 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
3004 }
3005
3006
3007 0 XSRETURN(argvi);
3008 0 fail:
3009 {
3010 0 ▶ if (arg1) free(arg1);
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) free(arg1); 0 0 0
3011 }
3012 {
3013 0 ▶ if (arg2) free(arg2);
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) free(arg2); 0 0 0
3014 }
3015
3016
3017 0 SWIG_croak_null();
3018 }
3019 }
3020  
3021  
3022 0 XS(_wrap_gsl_poly_dd_taylor) {
3023 {
3024 0 double *arg1 = (double *) (double *)0 ;
3025 double arg2 ;
3026 0 double *arg3 = (double *) (double *)0 ;
3027 0 double *arg4 = (double *) (double *)0 ;
3028 size_t arg5 ;
3029 0 double *arg6 = (double *) (double *)0 ;
3030 0 void *argp1 = 0 ;
3031 0 int res1 = 0 ;
3032 double val2 ;
3033 0 int ecode2 = 0 ;
3034 size_t val5 ;
3035 0 int ecode5 = 0 ;
3036 0 void *argp6 = 0 ;
3037 0 int res6 = 0 ;
3038 0 int argvi = 0;
3039 int result;
3040 0 dXSARGS;
3041
3042 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
3043 0 SWIG_croak("Usage: gsl_poly_dd_taylor(c,xp,dd,x,size,w);");
3044 }
3045 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_double, 0 | 0 );
3046 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3047 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_dd_taylor" "', argument " "1"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_dd_taylor" "', argument " "1"" of type '" "double []""'"); 0 0 0
3048 }
3049 0 arg1 = (double *)(argp1);
3050 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3051 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3052 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_dd_taylor" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_dd_taylor" "', argument " "2"" of type '" "double""'"); 0 0 0
3053 }
3054 0 arg2 = (double)(val2);
3055 {
3056 AV *tempav;
3057 I32 len;
3058 int i;
3059 SV **tv;
3060 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
3061 0 croak("Math::GSL : $dd is not a reference!");
3062 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
3063 0 croak("Math::GSL : $dd is not an array ref!");
3064
3065 0 tempav = (AV*)SvRV(ST(2));
3066 0 len = av_len(tempav);
3067 0 arg3 = (double *) malloc((len+2)*sizeof(double));
3068 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3069 0 tv = av_fetch(tempav, i, 0);
3070 0 arg3[i] = (double) SvNV(*tv);
3071 }
3072 }
3073 {
3074 AV *tempav;
3075 I32 len;
3076 int i;
3077 SV **tv;
3078 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
3079 0 croak("Math::GSL : $x is not a reference!");
3080 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
3081 0 croak("Math::GSL : $x is not an array ref!");
3082
3083 0 tempav = (AV*)SvRV(ST(3));
3084 0 len = av_len(tempav);
3085 0 arg4 = (double *) malloc((len+2)*sizeof(double));
3086 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3087 0 tv = av_fetch(tempav, i, 0);
3088 0 arg4[i] = (double) SvNV(*tv);
3089 }
3090 }
3091 0 ecode5 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
3092 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
3093 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_poly_dd_taylor" "', argument " "5"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_poly_dd_taylor" "', argument " "5"" of type '" "size_t""'"); 0 0 0
3094 }
3095 0 arg5 = (size_t)(val5);
3096 0 res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_double, 0 | 0 );
3097 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
3098 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_poly_dd_taylor" "', argument " "6"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_poly_dd_taylor" "', argument " "6"" of type '" "double []""'"); 0 0 0
3099 }
3100 0 arg6 = (double *)(argp6);
3101 0 result = (int)gsl_poly_dd_taylor(arg1,arg2,(double const (*))arg3,(double const (*))arg4,arg5,arg6);
3102 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3103
3104
3105 {
3106 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3107 }
3108 {
3109 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
3110 }
3111
3112
3113 0 XSRETURN(argvi);
3114 0 fail:
3115
3116
3117 {
3118 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3119 }
3120 {
3121 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
3122 }
3123
3124
3125 0 SWIG_croak_null();
3126 }
3127 }
3128  
3129  
3130 0 XS(_wrap_gsl_poly_dd_hermite_init) {
3131 {
3132 0 double *arg1 = (double *) (double *)0 ;
3133 0 double *arg2 = (double *) (double *)0 ;
3134 0 double *arg3 = (double *) (double *)0 ;
3135 0 double *arg4 = (double *) (double *)0 ;
3136 0 double *arg5 = (double *) (double *)0 ;
3137 size_t arg6 ;
3138 0 void *argp1 = 0 ;
3139 0 int res1 = 0 ;
3140 0 void *argp2 = 0 ;
3141 0 int res2 = 0 ;
3142 size_t val6 ;
3143 0 int ecode6 = 0 ;
3144 0 int argvi = 0;
3145 int result;
3146 0 dXSARGS;
3147
3148 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
3149 0 SWIG_croak("Usage: gsl_poly_dd_hermite_init(dd,z,xa,ya,dya,size);");
3150 }
3151 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_double, 0 | 0 );
3152 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3153 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_dd_hermite_init" "', argument " "1"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_dd_hermite_init" "', argument " "1"" of type '" "double []""'"); 0 0 0
3154 }
3155 0 arg1 = (double *)(argp1);
3156 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, 0 | 0 );
3157 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3158 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_poly_dd_hermite_init" "', argument " "2"" of type '" "double []""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_poly_dd_hermite_init" "', argument " "2"" of type '" "double []""'"); 0 0 0
3159 }
3160 0 arg2 = (double *)(argp2);
3161 {
3162 AV *tempav;
3163 I32 len;
3164 int i;
3165 SV **tv;
3166 0 ▶ if (!SvROK(ST(2)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(2))) 0 0 0
3167 0 croak("Math::GSL : $xa is not a reference!");
3168 0 ▶ if (SvTYPE(SvRV(ST(2))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(2))) != SVt_PVAV) 0 0 0
3169 0 croak("Math::GSL : $xa is not an array ref!");
3170
3171 0 tempav = (AV*)SvRV(ST(2));
3172 0 len = av_len(tempav);
3173 0 arg3 = (double *) malloc((len+2)*sizeof(double));
3174 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3175 0 tv = av_fetch(tempav, i, 0);
3176 0 arg3[i] = (double) SvNV(*tv);
3177 }
3178 }
3179 {
3180 AV *tempav;
3181 I32 len;
3182 int i;
3183 SV **tv;
3184 0 ▶ if (!SvROK(ST(3)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) 0 0 0
3185 0 croak("Math::GSL : $ya is not a reference!");
3186 0 ▶ if (SvTYPE(SvRV(ST(3))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(3))) != SVt_PVAV) 0 0 0
3187 0 croak("Math::GSL : $ya is not an array ref!");
3188
3189 0 tempav = (AV*)SvRV(ST(3));
3190 0 len = av_len(tempav);
3191 0 arg4 = (double *) malloc((len+2)*sizeof(double));
3192 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3193 0 tv = av_fetch(tempav, i, 0);
3194 0 arg4[i] = (double) SvNV(*tv);
3195 }
3196 }
3197 {
3198 AV *tempav;
3199 I32 len;
3200 int i;
3201 SV **tv;
3202 0 ▶ if (!SvROK(ST(4)))
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(4))) 0 0 0
3203 0 croak("Math::GSL : $dya is not a reference!");
3204 0 ▶ if (SvTYPE(SvRV(ST(4))) != SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(SvRV(ST(4))) != SVt_PVAV) 0 0 0
3205 0 croak("Math::GSL : $dya is not an array ref!");
3206
3207 0 tempav = (AV*)SvRV(ST(4));
3208 0 len = av_len(tempav);
3209 0 arg5 = (double *) malloc((len+2)*sizeof(double));
3210 0 ▶ for (i = 0; i <= len; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i <= len; i++) { 0 0 0
3211 0 tv = av_fetch(tempav, i, 0);
3212 0 arg5[i] = (double) SvNV(*tv);
3213 }
3214 }
3215 0 ecode6 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
3216 0 ▶ if (!SWIG_IsOK(ecode6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode6)) { 0 0 0
3217 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_poly_dd_hermite_init" "', argument " "6"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gsl_poly_dd_hermite_init" "', argument " "6"" of type '" "size_t""'"); 0 0 0
3218 }
3219 0 arg6 = (size_t)(val6);
3220 0 result = (int)gsl_poly_dd_hermite_init(arg1,arg2,(double const (*))arg3,(double const (*))arg4,(double const (*))arg5,arg6);
3221 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3222
3223
3224 {
3225 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3226 }
3227 {
3228 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
3229 }
3230 {
3231 0 ▶ if (arg5) free(arg5);
Branch: 1 branch
BranchTrueFalseTotal
if (arg5) free(arg5); 0 0 0
3232 }
3233
3234 0 XSRETURN(argvi);
3235 0 fail:
3236
3237
3238 {
3239 0 ▶ if (arg3) free(arg3);
Branch: 1 branch
BranchTrueFalseTotal
if (arg3) free(arg3); 0 0 0
3240 }
3241 {
3242 0 ▶ if (arg4) free(arg4);
Branch: 1 branch
BranchTrueFalseTotal
if (arg4) free(arg4); 0 0 0
3243 }
3244 {
3245 0 ▶ if (arg5) free(arg5);
Branch: 1 branch
BranchTrueFalseTotal
if (arg5) free(arg5); 0 0 0
3246 }
3247
3248 0 SWIG_croak_null();
3249 }
3250 }
3251  
3252  
3253 0 XS(_wrap_gsl_poly_solve_quadratic) {
3254 {
3255 double arg1 ;
3256 double arg2 ;
3257 double arg3 ;
3258 0 double *arg4 = (double *) 0 ;
3259 0 double *arg5 = (double *) 0 ;
3260 double val1 ;
3261 0 int ecode1 = 0 ;
3262 double val2 ;
3263 0 int ecode2 = 0 ;
3264 double val3 ;
3265 0 int ecode3 = 0 ;
3266 double dvalue4 ;
3267 double dvalue5 ;
3268 0 int argvi = 0;
3269 SV * _saved[2] ;
3270 int result;
3271 0 dXSARGS;
3272
3273 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
3274 0 SWIG_croak("Usage: gsl_poly_solve_quadratic(a,b,c,x0,x1);");
3275 }
3276 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3277 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3278 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_solve_quadratic" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_solve_quadratic" "', argument " "1"" of type '" "double""'"); 0 0 0
3279 }
3280 0 arg1 = (double)(val1);
3281 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3282 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3283 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_solve_quadratic" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_solve_quadratic" "', argument " "2"" of type '" "double""'"); 0 0 0
3284 }
3285 0 arg2 = (double)(val2);
3286 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3287 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3288 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_solve_quadratic" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_solve_quadratic" "', argument " "3"" of type '" "double""'"); 0 0 0
3289 }
3290 0 arg3 = (double)(val3);
3291 {
3292 SV* tempsv;
3293 0 ▶ if (!SvROK(ST(3))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) { 0 0 0
3294 0 croak("ST(3) is not a reference!\n");
3295 }
3296 0 tempsv = SvRV(ST(3));
3297 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3298 0 croak("ST(3) is not a reference to number!\n");
3299 }
3300 0 dvalue4 = SvNV(tempsv);
3301 0 arg4 = &dvalue4;
3302 }
3303 {
3304 SV* tempsv;
3305 0 ▶ if (!SvROK(ST(4))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(4))) { 0 0 0
3306 0 croak("ST(4) is not a reference!\n");
3307 }
3308 0 tempsv = SvRV(ST(4));
3309 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3310 0 croak("ST(4) is not a reference to number!\n");
3311 }
3312 0 dvalue5 = SvNV(tempsv);
3313 0 arg5 = &dvalue5;
3314 }
3315 0 _saved[0] = ST(3);
3316 0 _saved[1] = ST(4);
3317 0 result = (int)gsl_poly_solve_quadratic(arg1,arg2,arg3,arg4,arg5);
3318 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3319 {
3320 SV *tempsv;
3321 0 tempsv = SvRV(_saved[0]);
3322 0 sv_setnv(tempsv, *arg4);
3323 }
3324 {
3325 SV *tempsv;
3326 0 tempsv = SvRV(_saved[1]);
3327 0 sv_setnv(tempsv, *arg5);
3328 }
3329
3330
3331
3332
3333
3334 0 XSRETURN(argvi);
3335 0 fail:
3336
3337
3338
3339
3340
3341 0 SWIG_croak_null();
3342 }
3343 }
3344  
3345  
3346 0 XS(_wrap_gsl_poly_complex_solve_quadratic) {
3347 {
3348 double arg1 ;
3349 double arg2 ;
3350 double arg3 ;
3351 0 gsl_complex *arg4 = (gsl_complex *) 0 ;
3352 0 gsl_complex *arg5 = (gsl_complex *) 0 ;
3353 double val1 ;
3354 0 int ecode1 = 0 ;
3355 double val2 ;
3356 0 int ecode2 = 0 ;
3357 double val3 ;
3358 0 int ecode3 = 0 ;
3359 0 void *argp4 = 0 ;
3360 0 int res4 = 0 ;
3361 0 void *argp5 = 0 ;
3362 0 int res5 = 0 ;
3363 0 int argvi = 0;
3364 int result;
3365 0 dXSARGS;
3366
3367 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
3368 0 SWIG_croak("Usage: gsl_poly_complex_solve_quadratic(a,b,c,z0,z1);");
3369 }
3370 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3371 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3372 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "1"" of type '" "double""'"); 0 0 0
3373 }
3374 0 arg1 = (double)(val1);
3375 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3376 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3377 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "2"" of type '" "double""'"); 0 0 0
3378 }
3379 0 arg2 = (double)(val2);
3380 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3381 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3382 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "3"" of type '" "double""'"); 0 0 0
3383 }
3384 0 arg3 = (double)(val3);
3385 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_complex, 0 | 0 );
3386 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
3387 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "4"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "4"" of type '" "gsl_complex *""'"); 0 0 0
3388 }
3389 0 arg4 = (gsl_complex *)(argp4);
3390 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_gsl_complex, 0 | 0 );
3391 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
3392 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "5"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_poly_complex_solve_quadratic" "', argument " "5"" of type '" "gsl_complex *""'"); 0 0 0
3393 }
3394 0 arg5 = (gsl_complex *)(argp5);
3395 0 result = (int)gsl_poly_complex_solve_quadratic(arg1,arg2,arg3,arg4,arg5);
3396 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3397
3398
3399
3400
3401
3402 0 XSRETURN(argvi);
3403 0 fail:
3404
3405
3406
3407
3408
3409 0 SWIG_croak_null();
3410 }
3411 }
3412  
3413  
3414 0 XS(_wrap_gsl_poly_solve_cubic) {
3415 {
3416 double arg1 ;
3417 double arg2 ;
3418 double arg3 ;
3419 0 double *arg4 = (double *) 0 ;
3420 0 double *arg5 = (double *) 0 ;
3421 0 double *arg6 = (double *) 0 ;
3422 double val1 ;
3423 0 int ecode1 = 0 ;
3424 double val2 ;
3425 0 int ecode2 = 0 ;
3426 double val3 ;
3427 0 int ecode3 = 0 ;
3428 double dvalue4 ;
3429 double dvalue5 ;
3430 double dvalue6 ;
3431 0 int argvi = 0;
3432 SV * _saved[3] ;
3433 int result;
3434 0 dXSARGS;
3435
3436 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
3437 0 SWIG_croak("Usage: gsl_poly_solve_cubic(a,b,c,x0,x1,x2);");
3438 }
3439 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3440 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3441 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_solve_cubic" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_solve_cubic" "', argument " "1"" of type '" "double""'"); 0 0 0
3442 }
3443 0 arg1 = (double)(val1);
3444 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3445 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3446 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_solve_cubic" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_solve_cubic" "', argument " "2"" of type '" "double""'"); 0 0 0
3447 }
3448 0 arg2 = (double)(val2);
3449 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3450 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3451 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_solve_cubic" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_solve_cubic" "', argument " "3"" of type '" "double""'"); 0 0 0
3452 }
3453 0 arg3 = (double)(val3);
3454 {
3455 SV* tempsv;
3456 0 ▶ if (!SvROK(ST(3))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) { 0 0 0
3457 0 croak("ST(3) is not a reference!\n");
3458 }
3459 0 tempsv = SvRV(ST(3));
3460 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3461 0 croak("ST(3) is not a reference to number!\n");
3462 }
3463 0 dvalue4 = SvNV(tempsv);
3464 0 arg4 = &dvalue4;
3465 }
3466 {
3467 SV* tempsv;
3468 0 ▶ if (!SvROK(ST(4))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(4))) { 0 0 0
3469 0 croak("ST(4) is not a reference!\n");
3470 }
3471 0 tempsv = SvRV(ST(4));
3472 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3473 0 croak("ST(4) is not a reference to number!\n");
3474 }
3475 0 dvalue5 = SvNV(tempsv);
3476 0 arg5 = &dvalue5;
3477 }
3478 {
3479 SV* tempsv;
3480 0 ▶ if (!SvROK(ST(5))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(5))) { 0 0 0
3481 0 croak("ST(5) is not a reference!\n");
3482 }
3483 0 tempsv = SvRV(ST(5));
3484 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3485 0 croak("ST(5) is not a reference to number!\n");
3486 }
3487 0 dvalue6 = SvNV(tempsv);
3488 0 arg6 = &dvalue6;
3489 }
3490 0 _saved[0] = ST(3);
3491 0 _saved[1] = ST(4);
3492 0 _saved[2] = ST(5);
3493 0 result = (int)gsl_poly_solve_cubic(arg1,arg2,arg3,arg4,arg5,arg6);
3494 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3495 {
3496 SV *tempsv;
3497 0 tempsv = SvRV(_saved[0]);
3498 0 sv_setnv(tempsv, *arg4);
3499 }
3500 {
3501 SV *tempsv;
3502 0 tempsv = SvRV(_saved[1]);
3503 0 sv_setnv(tempsv, *arg5);
3504 }
3505 {
3506 SV *tempsv;
3507 0 tempsv = SvRV(_saved[2]);
3508 0 sv_setnv(tempsv, *arg6);
3509 }
3510
3511
3512
3513
3514
3515
3516 0 XSRETURN(argvi);
3517 0 fail:
3518
3519
3520
3521
3522
3523
3524 0 SWIG_croak_null();
3525 }
3526 }
3527  
3528  
3529 0 XS(_wrap_gsl_poly_complex_solve_cubic) {
3530 {
3531 double arg1 ;
3532 double arg2 ;
3533 double arg3 ;
3534 0 gsl_complex *arg4 = (gsl_complex *) 0 ;
3535 0 gsl_complex *arg5 = (gsl_complex *) 0 ;
3536 0 gsl_complex *arg6 = (gsl_complex *) 0 ;
3537 double val1 ;
3538 0 int ecode1 = 0 ;
3539 double val2 ;
3540 0 int ecode2 = 0 ;
3541 double val3 ;
3542 0 int ecode3 = 0 ;
3543 0 void *argp4 = 0 ;
3544 0 int res4 = 0 ;
3545 0 void *argp5 = 0 ;
3546 0 int res5 = 0 ;
3547 0 void *argp6 = 0 ;
3548 0 int res6 = 0 ;
3549 0 int argvi = 0;
3550 int result;
3551 0 dXSARGS;
3552
3553 0 ▶ if ((items < 6) || (items > 6)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 6) || (items > 6)) { 0 0 0
if ((items < 6) || (items > 6)) { 0 0 0
3554 0 SWIG_croak("Usage: gsl_poly_complex_solve_cubic(a,b,c,z0,z1,z2);");
3555 }
3556 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3557 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3558 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "1"" of type '" "double""'"); 0 0 0
3559 }
3560 0 arg1 = (double)(val1);
3561 0 ecode2 = SWIG_AsVal_double 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_poly_complex_solve_cubic" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "2"" of type '" "double""'"); 0 0 0
3564 }
3565 0 arg2 = (double)(val2);
3566 0 ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
3567 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
3568 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "3"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "3"" of type '" "double""'"); 0 0 0
3569 }
3570 0 arg3 = (double)(val3);
3571 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_complex, 0 | 0 );
3572 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
3573 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "4"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "4"" of type '" "gsl_complex *""'"); 0 0 0
3574 }
3575 0 arg4 = (gsl_complex *)(argp4);
3576 0 res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_gsl_complex, 0 | 0 );
3577 0 ▶ if (!SWIG_IsOK(res5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res5)) { 0 0 0
3578 0 ▶ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "5"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "5"" of type '" "gsl_complex *""'"); 0 0 0
3579 }
3580 0 arg5 = (gsl_complex *)(argp5);
3581 0 res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_gsl_complex, 0 | 0 );
3582 0 ▶ if (!SWIG_IsOK(res6)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res6)) { 0 0 0
3583 0 ▶ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "6"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "gsl_poly_complex_solve_cubic" "', argument " "6"" of type '" "gsl_complex *""'"); 0 0 0
3584 }
3585 0 arg6 = (gsl_complex *)(argp6);
3586 0 result = (int)gsl_poly_complex_solve_cubic(arg1,arg2,arg3,arg4,arg5,arg6);
3587 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3588
3589
3590
3591
3592
3593
3594 0 XSRETURN(argvi);
3595 0 fail:
3596
3597
3598
3599
3600
3601
3602 0 SWIG_croak_null();
3603 }
3604 }
3605  
3606  
3607 0 XS(_wrap_gsl_poly_complex_workspace_nc_set) {
3608 {
3609 0 gsl_poly_complex_workspace *arg1 = (gsl_poly_complex_workspace *) 0 ;
3610 size_t arg2 ;
3611 0 void *argp1 = 0 ;
3612 0 int res1 = 0 ;
3613 size_t val2 ;
3614 0 int ecode2 = 0 ;
3615 0 int argvi = 0;
3616 0 dXSARGS;
3617
3618 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
3619 0 SWIG_croak("Usage: gsl_poly_complex_workspace_nc_set(self,nc);");
3620 }
3621 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_poly_complex_workspace, 0 | 0 );
3622 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3623 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_nc_set" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_nc_set" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'"); 0 0 0
3624 }
3625 0 arg1 = (gsl_poly_complex_workspace *)(argp1);
3626 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3627 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3628 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_workspace_nc_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_workspace_nc_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3629 }
3630 0 arg2 = (size_t)(val2);
3631 0 ▶ if (arg1) (arg1)->nc = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->nc = arg2; 0 0 0
3632 0 ST(argvi) = &PL_sv_undef;
3633
3634
3635 0 XSRETURN(argvi);
3636 0 fail:
3637
3638
3639 0 SWIG_croak_null();
3640 }
3641 }
3642  
3643  
3644 0 XS(_wrap_gsl_poly_complex_workspace_nc_get) {
3645 {
3646 0 gsl_poly_complex_workspace *arg1 = (gsl_poly_complex_workspace *) 0 ;
3647 0 void *argp1 = 0 ;
3648 0 int res1 = 0 ;
3649 0 int argvi = 0;
3650 size_t result;
3651 0 dXSARGS;
3652
3653 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
3654 0 SWIG_croak("Usage: gsl_poly_complex_workspace_nc_get(self);");
3655 }
3656 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_poly_complex_workspace, 0 | 0 );
3657 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3658 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_nc_get" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_nc_get" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'"); 0 0 0
3659 }
3660 0 arg1 = (gsl_poly_complex_workspace *)(argp1);
3661 0 result = ((arg1)->nc);
3662 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
3663
3664 0 XSRETURN(argvi);
3665 0 fail:
3666
3667 0 SWIG_croak_null();
3668 }
3669 }
3670  
3671  
3672 0 XS(_wrap_gsl_poly_complex_workspace_matrix_set) {
3673 {
3674 0 gsl_poly_complex_workspace *arg1 = (gsl_poly_complex_workspace *) 0 ;
3675 0 double *arg2 = (double *) 0 ;
3676 0 void *argp1 = 0 ;
3677 0 int res1 = 0 ;
3678 double dvalue2 ;
3679 0 int argvi = 0;
3680 SV * _saved[1] ;
3681 0 dXSARGS;
3682
3683 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
3684 0 SWIG_croak("Usage: gsl_poly_complex_workspace_matrix_set(self,matrix);");
3685 }
3686 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_poly_complex_workspace, 0 | 0 );
3687 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3688 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_matrix_set" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_matrix_set" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'"); 0 0 0
3689 }
3690 0 arg1 = (gsl_poly_complex_workspace *)(argp1);
3691 {
3692 SV* tempsv;
3693 0 ▶ if (!SvROK(ST(1))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(1))) { 0 0 0
3694 0 croak("ST(1) is not a reference!\n");
3695 }
3696 0 tempsv = SvRV(ST(1));
3697 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3698 0 croak("ST(1) is not a reference to number!\n");
3699 }
3700 0 dvalue2 = SvNV(tempsv);
3701 0 arg2 = &dvalue2;
3702 }
3703 0 _saved[0] = ST(1);
3704 0 ▶ if (arg1) (arg1)->matrix = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->matrix = arg2; 0 0 0
3705 0 ST(argvi) = &PL_sv_undef;
3706 {
3707 SV *tempsv;
3708 0 tempsv = SvRV(_saved[0]);
3709 0 sv_setnv(tempsv, *arg2);
3710 }
3711
3712
3713 0 XSRETURN(argvi);
3714 0 fail:
3715
3716
3717 0 SWIG_croak_null();
3718 }
3719 }
3720  
3721  
3722 0 XS(_wrap_gsl_poly_complex_workspace_matrix_get) {
3723 {
3724 0 gsl_poly_complex_workspace *arg1 = (gsl_poly_complex_workspace *) 0 ;
3725 0 void *argp1 = 0 ;
3726 0 int res1 = 0 ;
3727 0 int argvi = 0;
3728 0 double *result = 0 ;
3729 0 dXSARGS;
3730
3731 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
3732 0 SWIG_croak("Usage: gsl_poly_complex_workspace_matrix_get(self);");
3733 }
3734 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_poly_complex_workspace, 0 | 0 );
3735 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3736 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_matrix_get" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_matrix_get" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'"); 0 0 0
3737 }
3738 0 arg1 = (gsl_poly_complex_workspace *)(argp1);
3739 0 result = (double *) ((arg1)->matrix);
3740 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
3741
3742 0 XSRETURN(argvi);
3743 0 fail:
3744
3745 0 SWIG_croak_null();
3746 }
3747 }
3748  
3749  
3750 0 XS(_wrap_new_gsl_poly_complex_workspace) {
3751 {
3752 0 int argvi = 0;
3753 0 gsl_poly_complex_workspace *result = 0 ;
3754 0 dXSARGS;
3755
3756 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
3757 0 SWIG_croak("Usage: new_gsl_poly_complex_workspace();");
3758 }
3759 0 result = (gsl_poly_complex_workspace *)calloc(1, sizeof(gsl_poly_complex_workspace));
3760 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_poly_complex_workspace, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3761 0 XSRETURN(argvi);
3762 0 fail:
3763 0 SWIG_croak_null();
3764 }
3765 }
3766  
3767  
3768 0 XS(_wrap_delete_gsl_poly_complex_workspace) {
3769 {
3770 0 gsl_poly_complex_workspace *arg1 = (gsl_poly_complex_workspace *) 0 ;
3771 0 void *argp1 = 0 ;
3772 0 int res1 = 0 ;
3773 0 int argvi = 0;
3774 0 dXSARGS;
3775
3776 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
3777 0 SWIG_croak("Usage: delete_gsl_poly_complex_workspace(self);");
3778 }
3779 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_poly_complex_workspace, SWIG_POINTER_DISOWN | 0 );
3780 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3781 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_poly_complex_workspace" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_poly_complex_workspace" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'"); 0 0 0
3782 }
3783 0 arg1 = (gsl_poly_complex_workspace *)(argp1);
3784 0 free((char *) arg1);
3785 0 ST(argvi) = &PL_sv_undef;
3786
3787 0 XSRETURN(argvi);
3788 0 fail:
3789
3790 0 SWIG_croak_null();
3791 }
3792 }
3793  
3794  
3795 0 XS(_wrap_gsl_poly_complex_workspace_alloc) {
3796 {
3797 size_t arg1 ;
3798 size_t val1 ;
3799 0 int ecode1 = 0 ;
3800 0 int argvi = 0;
3801 0 gsl_poly_complex_workspace *result = 0 ;
3802 0 dXSARGS;
3803
3804 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
3805 0 SWIG_croak("Usage: gsl_poly_complex_workspace_alloc(n);");
3806 }
3807 0 ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
3808 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
3809 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_complex_workspace_alloc" "', argument " "1"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_poly_complex_workspace_alloc" "', argument " "1"" of type '" "size_t""'"); 0 0 0
3810 }
3811 0 arg1 = (size_t)(val1);
3812 0 result = (gsl_poly_complex_workspace *)gsl_poly_complex_workspace_alloc(arg1);
3813 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_poly_complex_workspace, 0 | SWIG_SHADOW); argvi++ ;
3814
3815 0 XSRETURN(argvi);
3816 0 fail:
3817
3818 0 SWIG_croak_null();
3819 }
3820 }
3821  
3822  
3823 0 XS(_wrap_gsl_poly_complex_workspace_free) {
3824 {
3825 0 gsl_poly_complex_workspace *arg1 = (gsl_poly_complex_workspace *) 0 ;
3826 0 void *argp1 = 0 ;
3827 0 int res1 = 0 ;
3828 0 int argvi = 0;
3829 0 dXSARGS;
3830
3831 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
3832 0 SWIG_croak("Usage: gsl_poly_complex_workspace_free(w);");
3833 }
3834 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_poly_complex_workspace, 0 | 0 );
3835 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3836 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_free" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_poly_complex_workspace_free" "', argument " "1"" of type '" "gsl_poly_complex_workspace *""'"); 0 0 0
3837 }
3838 0 arg1 = (gsl_poly_complex_workspace *)(argp1);
3839 0 gsl_poly_complex_workspace_free(arg1);
3840 0 ST(argvi) = &PL_sv_undef;
3841
3842 0 XSRETURN(argvi);
3843 0 fail:
3844
3845 0 SWIG_croak_null();
3846 }
3847 }
3848  
3849  
3850 0 XS(_wrap_gsl_poly_complex_solve) {
3851 {
3852 0 double *arg1 = (double *) 0 ;
3853 size_t arg2 ;
3854 0 gsl_poly_complex_workspace *arg3 = (gsl_poly_complex_workspace *) 0 ;
3855 0 gsl_complex_packed_ptr arg4 = (gsl_complex_packed_ptr) 0 ;
3856 double dvalue1 ;
3857 size_t val2 ;
3858 0 int ecode2 = 0 ;
3859 0 void *argp3 = 0 ;
3860 0 int res3 = 0 ;
3861 double dvalue4 ;
3862 0 int argvi = 0;
3863 SV * _saved[2] ;
3864 int result;
3865 0 dXSARGS;
3866
3867 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
3868 0 SWIG_croak("Usage: gsl_poly_complex_solve(a,n,w,z);");
3869 }
3870 {
3871 SV* tempsv;
3872 0 ▶ if (!SvROK(ST(0))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(0))) { 0 0 0
3873 0 croak("ST(0) is not a reference!\n");
3874 }
3875 0 tempsv = SvRV(ST(0));
3876 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3877 0 croak("ST(0) is not a reference to number!\n");
3878 }
3879 0 dvalue1 = SvNV(tempsv);
3880 0 arg1 = &dvalue1;
3881 }
3882 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3883 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3884 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_solve" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_poly_complex_solve" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3885 }
3886 0 arg2 = (size_t)(val2);
3887 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_poly_complex_workspace, 0 | 0 );
3888 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3889 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_poly_complex_solve" "', argument " "3"" of type '" "gsl_poly_complex_workspace *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_poly_complex_solve" "', argument " "3"" of type '" "gsl_poly_complex_workspace *""'"); 0 0 0
3890 }
3891 0 arg3 = (gsl_poly_complex_workspace *)(argp3);
3892 {
3893 SV* tempsv;
3894 0 ▶ if (!SvROK(ST(3))) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SvROK(ST(3))) { 0 0 0
3895 0 croak("ST(3) is not a reference!\n");
3896 }
3897 0 tempsv = SvRV(ST(3));
3898 0 ▶ if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) {
Branch: 2 branches
BranchTrueFalseTotal
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
if ((!SvNOK(tempsv)) && (!SvIOK(tempsv))) { 0 0 0
3899 0 croak("ST(3) is not a reference to number!\n");
3900 }
3901 0 dvalue4 = SvNV(tempsv);
3902 0 arg4 = &dvalue4;
3903 }
3904 0 _saved[0] = ST(0);
3905 0 _saved[1] = ST(3);
3906 0 result = (int)gsl_poly_complex_solve((double const *)arg1,arg2,arg3,arg4);
3907 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3908 {
3909 SV *tempsv;
3910 0 tempsv = SvRV(_saved[0]);
3911 0 sv_setnv(tempsv, *arg1);
3912 }
3913 {
3914 SV *tempsv;
3915 0 tempsv = SvRV(_saved[1]);
3916 0 sv_setnv(tempsv, *arg4);
3917 }
3918
3919
3920
3921
3922 0 XSRETURN(argvi);
3923 0 fail:
3924
3925
3926
3927
3928 0 SWIG_croak_null();
3929 }
3930 }
3931  
3932  
3933 0 XS(_wrap_gsl_complex_dat_set) {
3934 {
3935 0 gsl_complex *arg1 = (gsl_complex *) 0 ;
3936 0 double *arg2 = (double *) (double *)0 ;
3937 0 void *argp1 = 0 ;
3938 0 int res1 = 0 ;
3939 0 void *argp2 = 0 ;
3940 0 int res2 = 0 ;
3941 0 int argvi = 0;
3942 0 dXSARGS;
3943
3944 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
3945 0 SWIG_croak("Usage: gsl_complex_dat_set(self,dat);");
3946 }
3947 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex, 0 | 0 );
3948 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3949 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_dat_set" "', argument " "1"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_dat_set" "', argument " "1"" of type '" "gsl_complex *""'"); 0 0 0
3950 }
3951 0 arg1 = (gsl_complex *)(argp1);
3952 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, 0 | 0 );
3953 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3954 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_dat_set" "', argument " "2"" of type '" "double [2]""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_dat_set" "', argument " "2"" of type '" "double [2]""'"); 0 0 0
3955 }
3956 0 arg2 = (double *)(argp2);
3957 {
3958 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
3959 0 size_t ii = 0;
3960 0 ▶ for (; ii < (size_t)2; ++ii) *(double *)&arg1->dat[ii] = *((double *)arg2 + ii);
Branch: 1 branch
BranchTrueFalseTotal
for (; ii < (size_t)2; ++ii) *(double *)&arg1->dat[ii] = *((double *)arg2 + ii); 0 0 0
3961 } else {
3962 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""dat""' of type '""double [2]""'");
3963 }
3964 }
3965 0 ST(argvi) = &PL_sv_undef;
3966
3967
3968 0 XSRETURN(argvi);
3969 0 fail:
3970
3971
3972 0 SWIG_croak_null();
3973 }
3974 }
3975  
3976  
3977 0 XS(_wrap_gsl_complex_dat_get) {
3978 {
3979 0 gsl_complex *arg1 = (gsl_complex *) 0 ;
3980 0 void *argp1 = 0 ;
3981 0 int res1 = 0 ;
3982 0 int argvi = 0;
3983 0 double *result = 0 ;
3984 0 dXSARGS;
3985
3986 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
3987 0 SWIG_croak("Usage: gsl_complex_dat_get(self);");
3988 }
3989 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex, 0 | 0 );
3990 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3991 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_dat_get" "', argument " "1"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_dat_get" "', argument " "1"" of type '" "gsl_complex *""'"); 0 0 0
3992 }
3993 0 arg1 = (gsl_complex *)(argp1);
3994 0 result = (double *)(double *) ((arg1)->dat);
3995 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
3996
3997 0 XSRETURN(argvi);
3998 0 fail:
3999
4000 0 SWIG_croak_null();
4001 }
4002 }
4003  
4004  
4005 0 XS(_wrap_new_gsl_complex) {
4006 {
4007 0 int argvi = 0;
4008 0 gsl_complex *result = 0 ;
4009 0 dXSARGS;
4010
4011 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
4012 0 SWIG_croak("Usage: new_gsl_complex();");
4013 }
4014 0 result = (gsl_complex *)calloc(1, sizeof(gsl_complex));
4015 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_complex, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4016 0 XSRETURN(argvi);
4017 0 fail:
4018 0 SWIG_croak_null();
4019 }
4020 }
4021  
4022  
4023 0 XS(_wrap_delete_gsl_complex) {
4024 {
4025 0 gsl_complex *arg1 = (gsl_complex *) 0 ;
4026 0 void *argp1 = 0 ;
4027 0 int res1 = 0 ;
4028 0 int argvi = 0;
4029 0 dXSARGS;
4030
4031 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
4032 0 SWIG_croak("Usage: delete_gsl_complex(self);");
4033 }
4034 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex, SWIG_POINTER_DISOWN | 0 );
4035 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4036 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_complex" "', argument " "1"" of type '" "gsl_complex *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_complex" "', argument " "1"" of type '" "gsl_complex *""'"); 0 0 0
4037 }
4038 0 arg1 = (gsl_complex *)(argp1);
4039 0 free((char *) arg1);
4040 0 ST(argvi) = &PL_sv_undef;
4041
4042 0 XSRETURN(argvi);
4043 0 fail:
4044
4045 0 SWIG_croak_null();
4046 }
4047 }
4048  
4049  
4050 0 XS(_wrap_gsl_complex_long_double_dat_set) {
4051 {
4052 0 gsl_complex_long_double *arg1 = (gsl_complex_long_double *) 0 ;
4053 0 long double *arg2 = (long double *) (long double *)0 ;
4054 0 void *argp1 = 0 ;
4055 0 int res1 = 0 ;
4056 0 void *argp2 = 0 ;
4057 0 int res2 = 0 ;
4058 0 int argvi = 0;
4059 0 dXSARGS;
4060
4061 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
4062 0 SWIG_croak("Usage: gsl_complex_long_double_dat_set(self,dat);");
4063 }
4064 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex_long_double, 0 | 0 );
4065 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4066 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_long_double_dat_set" "', argument " "1"" of type '" "gsl_complex_long_double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_long_double_dat_set" "', argument " "1"" of type '" "gsl_complex_long_double *""'"); 0 0 0
4067 }
4068 0 arg1 = (gsl_complex_long_double *)(argp1);
4069 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_long_double, 0 | 0 );
4070 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4071 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_long_double_dat_set" "', argument " "2"" of type '" "long double [2]""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_long_double_dat_set" "', argument " "2"" of type '" "long double [2]""'"); 0 0 0
4072 }
4073 0 arg2 = (long double *)(argp2);
4074 {
4075 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
4076 0 size_t ii = 0;
4077 0 ▶ for (; ii < (size_t)2; ++ii) *(long double *)&arg1->dat[ii] = *((long double *)arg2 + ii);
Branch: 1 branch
BranchTrueFalseTotal
for (; ii < (size_t)2; ++ii) *(long double *)&arg1->dat[ii] = *((long double *)arg2 + ii); 0 0 0
4078 } else {
4079 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""dat""' of type '""long double [2]""'");
4080 }
4081 }
4082 0 ST(argvi) = &PL_sv_undef;
4083
4084
4085 0 XSRETURN(argvi);
4086 0 fail:
4087
4088
4089 0 SWIG_croak_null();
4090 }
4091 }
4092  
4093  
4094 0 XS(_wrap_gsl_complex_long_double_dat_get) {
4095 {
4096 0 gsl_complex_long_double *arg1 = (gsl_complex_long_double *) 0 ;
4097 0 void *argp1 = 0 ;
4098 0 int res1 = 0 ;
4099 0 int argvi = 0;
4100 0 long double *result = 0 ;
4101 0 dXSARGS;
4102
4103 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
4104 0 SWIG_croak("Usage: gsl_complex_long_double_dat_get(self);");
4105 }
4106 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex_long_double, 0 | 0 );
4107 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4108 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_long_double_dat_get" "', argument " "1"" of type '" "gsl_complex_long_double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_long_double_dat_get" "', argument " "1"" of type '" "gsl_complex_long_double *""'"); 0 0 0
4109 }
4110 0 arg1 = (gsl_complex_long_double *)(argp1);
4111 0 result = (long double *)(long double *) ((arg1)->dat);
4112 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long_double, 0 | 0); argvi++ ;
4113
4114 0 XSRETURN(argvi);
4115 0 fail:
4116
4117 0 SWIG_croak_null();
4118 }
4119 }
4120  
4121  
4122 0 XS(_wrap_new_gsl_complex_long_double) {
4123 {
4124 0 int argvi = 0;
4125 0 gsl_complex_long_double *result = 0 ;
4126 0 dXSARGS;
4127
4128 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
4129 0 SWIG_croak("Usage: new_gsl_complex_long_double();");
4130 }
4131 0 result = (gsl_complex_long_double *)calloc(1, sizeof(gsl_complex_long_double));
4132 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_complex_long_double, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4133 0 XSRETURN(argvi);
4134 0 fail:
4135 0 SWIG_croak_null();
4136 }
4137 }
4138  
4139  
4140 0 XS(_wrap_delete_gsl_complex_long_double) {
4141 {
4142 0 gsl_complex_long_double *arg1 = (gsl_complex_long_double *) 0 ;
4143 0 void *argp1 = 0 ;
4144 0 int res1 = 0 ;
4145 0 int argvi = 0;
4146 0 dXSARGS;
4147
4148 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
4149 0 SWIG_croak("Usage: delete_gsl_complex_long_double(self);");
4150 }
4151 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex_long_double, SWIG_POINTER_DISOWN | 0 );
4152 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4153 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_complex_long_double" "', argument " "1"" of type '" "gsl_complex_long_double *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_complex_long_double" "', argument " "1"" of type '" "gsl_complex_long_double *""'"); 0 0 0
4154 }
4155 0 arg1 = (gsl_complex_long_double *)(argp1);
4156 0 free((char *) arg1);
4157 0 ST(argvi) = &PL_sv_undef;
4158
4159 0 XSRETURN(argvi);
4160 0 fail:
4161
4162 0 SWIG_croak_null();
4163 }
4164 }
4165  
4166  
4167 0 XS(_wrap_gsl_complex_float_dat_set) {
4168 {
4169 0 gsl_complex_float *arg1 = (gsl_complex_float *) 0 ;
4170 0 float *arg2 = (float *) (float *)0 ;
4171 0 void *argp1 = 0 ;
4172 0 int res1 = 0 ;
4173 0 void *argp2 = 0 ;
4174 0 int res2 = 0 ;
4175 0 int argvi = 0;
4176 0 dXSARGS;
4177
4178 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
4179 0 SWIG_croak("Usage: gsl_complex_float_dat_set(self,dat);");
4180 }
4181 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex_float, 0 | 0 );
4182 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4183 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_float_dat_set" "', argument " "1"" of type '" "gsl_complex_float *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_float_dat_set" "', argument " "1"" of type '" "gsl_complex_float *""'"); 0 0 0
4184 }
4185 0 arg1 = (gsl_complex_float *)(argp1);
4186 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_float, 0 | 0 );
4187 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4188 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_float_dat_set" "', argument " "2"" of type '" "float [2]""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_float_dat_set" "', argument " "2"" of type '" "float [2]""'"); 0 0 0
4189 }
4190 0 arg2 = (float *)(argp2);
4191 {
4192 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
4193 0 size_t ii = 0;
4194 0 ▶ for (; ii < (size_t)2; ++ii) *(float *)&arg1->dat[ii] = *((float *)arg2 + ii);
Branch: 1 branch
BranchTrueFalseTotal
for (; ii < (size_t)2; ++ii) *(float *)&arg1->dat[ii] = *((float *)arg2 + ii); 0 0 0
4195 } else {
4196 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""dat""' of type '""float [2]""'");
4197 }
4198 }
4199 0 ST(argvi) = &PL_sv_undef;
4200
4201
4202 0 XSRETURN(argvi);
4203 0 fail:
4204
4205
4206 0 SWIG_croak_null();
4207 }
4208 }
4209  
4210  
4211 0 XS(_wrap_gsl_complex_float_dat_get) {
4212 {
4213 0 gsl_complex_float *arg1 = (gsl_complex_float *) 0 ;
4214 0 void *argp1 = 0 ;
4215 0 int res1 = 0 ;
4216 0 int argvi = 0;
4217 0 float *result = 0 ;
4218 0 dXSARGS;
4219
4220 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
4221 0 SWIG_croak("Usage: gsl_complex_float_dat_get(self);");
4222 }
4223 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex_float, 0 | 0 );
4224 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4225 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_float_dat_get" "', argument " "1"" of type '" "gsl_complex_float *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_float_dat_get" "', argument " "1"" of type '" "gsl_complex_float *""'"); 0 0 0
4226 }
4227 0 arg1 = (gsl_complex_float *)(argp1);
4228 0 result = (float *)(float *) ((arg1)->dat);
4229 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0); argvi++ ;
4230
4231 0 XSRETURN(argvi);
4232 0 fail:
4233
4234 0 SWIG_croak_null();
4235 }
4236 }
4237  
4238  
4239 0 XS(_wrap_new_gsl_complex_float) {
4240 {
4241 0 int argvi = 0;
4242 0 gsl_complex_float *result = 0 ;
4243 0 dXSARGS;
4244
4245 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
4246 0 SWIG_croak("Usage: new_gsl_complex_float();");
4247 }
4248 0 result = (gsl_complex_float *)calloc(1, sizeof(gsl_complex_float));
4249 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_complex_float, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4250 0 XSRETURN(argvi);
4251 0 fail:
4252 0 SWIG_croak_null();
4253 }
4254 }
4255  
4256  
4257 0 XS(_wrap_delete_gsl_complex_float) {
4258 {
4259 0 gsl_complex_float *arg1 = (gsl_complex_float *) 0 ;
4260 0 void *argp1 = 0 ;
4261 0 int res1 = 0 ;
4262 0 int argvi = 0;
4263 0 dXSARGS;
4264
4265 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
4266 0 SWIG_croak("Usage: delete_gsl_complex_float(self);");
4267 }
4268 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_complex_float, SWIG_POINTER_DISOWN | 0 );
4269 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4270 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_complex_float" "', argument " "1"" of type '" "gsl_complex_float *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_complex_float" "', argument " "1"" of type '" "gsl_complex_float *""'"); 0 0 0
4271 }
4272 0 arg1 = (gsl_complex_float *)(argp1);
4273 0 free((char *) arg1);
4274 0 ST(argvi) = &PL_sv_undef;
4275
4276 0 XSRETURN(argvi);
4277 0 fail:
4278
4279 0 SWIG_croak_null();
4280 }
4281 }
4282  
4283  
4284 0 XS(_wrap_gsl_complex_polar) {
4285 {
4286 double arg1 ;
4287 double arg2 ;
4288 double val1 ;
4289 0 int ecode1 = 0 ;
4290 double val2 ;
4291 0 int ecode2 = 0 ;
4292 0 int argvi = 0;
4293 gsl_complex result;
4294 0 dXSARGS;
4295
4296 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
4297 0 SWIG_croak("Usage: gsl_complex_polar(r,theta);");
4298 }
4299 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4300 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4301 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_polar" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_polar" "', argument " "1"" of type '" "double""'"); 0 0 0
4302 }
4303 0 arg1 = (double)(val1);
4304 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4305 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4306 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_polar" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_polar" "', argument " "2"" of type '" "double""'"); 0 0 0
4307 }
4308 0 arg2 = (double)(val2);
4309 0 result = gsl_complex_polar(arg1,arg2);
4310 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
4311
4312
4313 0 XSRETURN(argvi);
4314 0 fail:
4315
4316
4317 0 SWIG_croak_null();
4318 }
4319 }
4320  
4321  
4322 0 XS(_wrap_gsl_complex_rect) {
4323 {
4324 double arg1 ;
4325 double arg2 ;
4326 double val1 ;
4327 0 int ecode1 = 0 ;
4328 double val2 ;
4329 0 int ecode2 = 0 ;
4330 0 int argvi = 0;
4331 gsl_complex result;
4332 0 dXSARGS;
4333
4334 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
4335 0 SWIG_croak("Usage: gsl_complex_rect(x,y);");
4336 }
4337 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4338 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4339 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_rect" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_rect" "', argument " "1"" of type '" "double""'"); 0 0 0
4340 }
4341 0 arg1 = (double)(val1);
4342 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4343 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4344 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_rect" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_rect" "', argument " "2"" of type '" "double""'"); 0 0 0
4345 }
4346 0 arg2 = (double)(val2);
4347 0 result = gsl_complex_rect(arg1,arg2);
4348 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
4349
4350
4351 0 XSRETURN(argvi);
4352 0 fail:
4353
4354
4355 0 SWIG_croak_null();
4356 }
4357 }
4358  
4359  
4360 0 XS(_wrap_gsl_complex_arg) {
4361 {
4362 gsl_complex arg1 ;
4363 void *argp1 ;
4364 0 int res1 = 0 ;
4365 0 int argvi = 0;
4366 SV * _saved[1] ;
4367 double result;
4368 0 dXSARGS;
4369
4370 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
4371 0 SWIG_croak("Usage: gsl_complex_arg(z);");
4372 }
4373 {
4374 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4375 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4376 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arg" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arg" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4377 }
4378 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4379 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arg" "', argument " "1"" of type '" "gsl_complex""'");
4380 } else {
4381 0 arg1 = *((gsl_complex *)(argp1));
4382 }
4383 }
4384 0 _saved[0] = ST(0);
4385 0 result = (double)gsl_complex_arg(arg1);
4386 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4387 {
4388 0 AV* tempav = newAV();
4389 double x,y;
4390 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4391 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4392 }
4393 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4394 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4395
4396 0 ST(argvi) = sv_newmortal();
4397
4398 0 x = GSL_REAL(arg1);
4399 0 y = GSL_IMAG(arg1);
4400
4401 /* the next 2 lines blow up
4402 sv_setnv(ST(argvi), x);
4403 argvi++;
4404 */
4405 }
4406 0 XSRETURN(argvi);
4407 0 fail:
4408 0 SWIG_croak_null();
4409 }
4410 }
4411  
4412  
4413 0 XS(_wrap_gsl_complex_abs) {
4414 {
4415 gsl_complex arg1 ;
4416 void *argp1 ;
4417 0 int res1 = 0 ;
4418 0 int argvi = 0;
4419 SV * _saved[1] ;
4420 double result;
4421 0 dXSARGS;
4422
4423 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
4424 0 SWIG_croak("Usage: gsl_complex_abs(z);");
4425 }
4426 {
4427 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4428 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4429 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_abs" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_abs" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4430 }
4431 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4432 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_abs" "', argument " "1"" of type '" "gsl_complex""'");
4433 } else {
4434 0 arg1 = *((gsl_complex *)(argp1));
4435 }
4436 }
4437 0 _saved[0] = ST(0);
4438 0 result = (double)gsl_complex_abs(arg1);
4439 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4440 {
4441 0 AV* tempav = newAV();
4442 double x,y;
4443 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4444 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4445 }
4446 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4447 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4448
4449 0 ST(argvi) = sv_newmortal();
4450
4451 0 x = GSL_REAL(arg1);
4452 0 y = GSL_IMAG(arg1);
4453
4454 /* the next 2 lines blow up
4455 sv_setnv(ST(argvi), x);
4456 argvi++;
4457 */
4458 }
4459 0 XSRETURN(argvi);
4460 0 fail:
4461 0 SWIG_croak_null();
4462 }
4463 }
4464  
4465  
4466 0 XS(_wrap_gsl_complex_abs2) {
4467 {
4468 gsl_complex arg1 ;
4469 void *argp1 ;
4470 0 int res1 = 0 ;
4471 0 int argvi = 0;
4472 SV * _saved[1] ;
4473 double result;
4474 0 dXSARGS;
4475
4476 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
4477 0 SWIG_croak("Usage: gsl_complex_abs2(z);");
4478 }
4479 {
4480 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4481 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4482 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_abs2" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_abs2" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4483 }
4484 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4485 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_abs2" "', argument " "1"" of type '" "gsl_complex""'");
4486 } else {
4487 0 arg1 = *((gsl_complex *)(argp1));
4488 }
4489 }
4490 0 _saved[0] = ST(0);
4491 0 result = (double)gsl_complex_abs2(arg1);
4492 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4493 {
4494 0 AV* tempav = newAV();
4495 double x,y;
4496 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4497 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4498 }
4499 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4500 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4501
4502 0 ST(argvi) = sv_newmortal();
4503
4504 0 x = GSL_REAL(arg1);
4505 0 y = GSL_IMAG(arg1);
4506
4507 /* the next 2 lines blow up
4508 sv_setnv(ST(argvi), x);
4509 argvi++;
4510 */
4511 }
4512 0 XSRETURN(argvi);
4513 0 fail:
4514 0 SWIG_croak_null();
4515 }
4516 }
4517  
4518  
4519 0 XS(_wrap_gsl_complex_logabs) {
4520 {
4521 gsl_complex arg1 ;
4522 void *argp1 ;
4523 0 int res1 = 0 ;
4524 0 int argvi = 0;
4525 SV * _saved[1] ;
4526 double result;
4527 0 dXSARGS;
4528
4529 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
4530 0 SWIG_croak("Usage: gsl_complex_logabs(z);");
4531 }
4532 {
4533 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4534 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4535 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_logabs" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_logabs" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4536 }
4537 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4538 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_logabs" "', argument " "1"" of type '" "gsl_complex""'");
4539 } else {
4540 0 arg1 = *((gsl_complex *)(argp1));
4541 }
4542 }
4543 0 _saved[0] = ST(0);
4544 0 result = (double)gsl_complex_logabs(arg1);
4545 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4546 {
4547 0 AV* tempav = newAV();
4548 double x,y;
4549 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4550 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4551 }
4552 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4553 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4554
4555 0 ST(argvi) = sv_newmortal();
4556
4557 0 x = GSL_REAL(arg1);
4558 0 y = GSL_IMAG(arg1);
4559
4560 /* the next 2 lines blow up
4561 sv_setnv(ST(argvi), x);
4562 argvi++;
4563 */
4564 }
4565 0 XSRETURN(argvi);
4566 0 fail:
4567 0 SWIG_croak_null();
4568 }
4569 }
4570  
4571  
4572 0 XS(_wrap_gsl_complex_add) {
4573 {
4574 gsl_complex arg1 ;
4575 gsl_complex arg2 ;
4576 void *argp1 ;
4577 0 int res1 = 0 ;
4578 void *argp2 ;
4579 0 int res2 = 0 ;
4580 0 int argvi = 0;
4581 SV * _saved[2] ;
4582 gsl_complex result;
4583 0 dXSARGS;
4584
4585 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
4586 0 SWIG_croak("Usage: gsl_complex_add(a,b);");
4587 }
4588 {
4589 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4590 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4591 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_add" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_add" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4592 }
4593 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4594 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_add" "', argument " "1"" of type '" "gsl_complex""'");
4595 } else {
4596 0 arg1 = *((gsl_complex *)(argp1));
4597 }
4598 }
4599 {
4600 0 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_gsl_complex, 0 );
4601 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4602 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_add" "', argument " "2"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_add" "', argument " "2"" of type '" "gsl_complex""'"); 0 0 0
4603 }
4604 0 ▶ if (!argp2) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp2) { 0 0 0
4605 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_add" "', argument " "2"" of type '" "gsl_complex""'");
4606 } else {
4607 0 arg2 = *((gsl_complex *)(argp2));
4608 }
4609 }
4610 0 _saved[0] = ST(0);
4611 0 _saved[1] = ST(1);
4612 0 result = gsl_complex_add(arg1,arg2);
4613 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
4614 {
4615 0 AV* tempav = newAV();
4616 double x,y;
4617 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4618 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4619 }
4620 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4621 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4622
4623 0 ST(argvi) = sv_newmortal();
4624
4625 0 x = GSL_REAL(arg1);
4626 0 y = GSL_IMAG(arg1);
4627
4628 /* the next 2 lines blow up
4629 sv_setnv(ST(argvi), x);
4630 argvi++;
4631 */
4632 }
4633 {
4634 0 AV* tempav = newAV();
4635 double x,y;
4636 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4637 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4638 }
4639 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg2));
4640 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg2));
4641
4642 0 ST(argvi) = sv_newmortal();
4643
4644 0 x = GSL_REAL(arg2);
4645 0 y = GSL_IMAG(arg2);
4646
4647 /* the next 2 lines blow up
4648 sv_setnv(ST(argvi), x);
4649 argvi++;
4650 */
4651 }
4652 0 XSRETURN(argvi);
4653 0 fail:
4654 0 SWIG_croak_null();
4655 }
4656 }
4657  
4658  
4659 0 XS(_wrap_gsl_complex_sub) {
4660 {
4661 gsl_complex arg1 ;
4662 gsl_complex arg2 ;
4663 void *argp1 ;
4664 0 int res1 = 0 ;
4665 void *argp2 ;
4666 0 int res2 = 0 ;
4667 0 int argvi = 0;
4668 SV * _saved[2] ;
4669 gsl_complex result;
4670 0 dXSARGS;
4671
4672 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
4673 0 SWIG_croak("Usage: gsl_complex_sub(a,b);");
4674 }
4675 {
4676 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4677 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4678 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sub" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sub" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4679 }
4680 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4681 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sub" "', argument " "1"" of type '" "gsl_complex""'");
4682 } else {
4683 0 arg1 = *((gsl_complex *)(argp1));
4684 }
4685 }
4686 {
4687 0 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_gsl_complex, 0 );
4688 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4689 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_sub" "', argument " "2"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_sub" "', argument " "2"" of type '" "gsl_complex""'"); 0 0 0
4690 }
4691 0 ▶ if (!argp2) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp2) { 0 0 0
4692 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sub" "', argument " "2"" of type '" "gsl_complex""'");
4693 } else {
4694 0 arg2 = *((gsl_complex *)(argp2));
4695 }
4696 }
4697 0 _saved[0] = ST(0);
4698 0 _saved[1] = ST(1);
4699 0 result = gsl_complex_sub(arg1,arg2);
4700 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
4701 {
4702 0 AV* tempav = newAV();
4703 double x,y;
4704 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4705 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4706 }
4707 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4708 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4709
4710 0 ST(argvi) = sv_newmortal();
4711
4712 0 x = GSL_REAL(arg1);
4713 0 y = GSL_IMAG(arg1);
4714
4715 /* the next 2 lines blow up
4716 sv_setnv(ST(argvi), x);
4717 argvi++;
4718 */
4719 }
4720 {
4721 0 AV* tempav = newAV();
4722 double x,y;
4723 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4724 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4725 }
4726 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg2));
4727 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg2));
4728
4729 0 ST(argvi) = sv_newmortal();
4730
4731 0 x = GSL_REAL(arg2);
4732 0 y = GSL_IMAG(arg2);
4733
4734 /* the next 2 lines blow up
4735 sv_setnv(ST(argvi), x);
4736 argvi++;
4737 */
4738 }
4739 0 XSRETURN(argvi);
4740 0 fail:
4741 0 SWIG_croak_null();
4742 }
4743 }
4744  
4745  
4746 0 XS(_wrap_gsl_complex_mul) {
4747 {
4748 gsl_complex arg1 ;
4749 gsl_complex arg2 ;
4750 void *argp1 ;
4751 0 int res1 = 0 ;
4752 void *argp2 ;
4753 0 int res2 = 0 ;
4754 0 int argvi = 0;
4755 SV * _saved[2] ;
4756 gsl_complex result;
4757 0 dXSARGS;
4758
4759 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
4760 0 SWIG_croak("Usage: gsl_complex_mul(a,b);");
4761 }
4762 {
4763 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4764 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4765 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_mul" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_mul" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4766 }
4767 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4768 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_mul" "', argument " "1"" of type '" "gsl_complex""'");
4769 } else {
4770 0 arg1 = *((gsl_complex *)(argp1));
4771 }
4772 }
4773 {
4774 0 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_gsl_complex, 0 );
4775 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4776 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_mul" "', argument " "2"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_mul" "', argument " "2"" of type '" "gsl_complex""'"); 0 0 0
4777 }
4778 0 ▶ if (!argp2) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp2) { 0 0 0
4779 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_mul" "', argument " "2"" of type '" "gsl_complex""'");
4780 } else {
4781 0 arg2 = *((gsl_complex *)(argp2));
4782 }
4783 }
4784 0 _saved[0] = ST(0);
4785 0 _saved[1] = ST(1);
4786 0 result = gsl_complex_mul(arg1,arg2);
4787 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
4788 {
4789 0 AV* tempav = newAV();
4790 double x,y;
4791 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4792 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4793 }
4794 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4795 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4796
4797 0 ST(argvi) = sv_newmortal();
4798
4799 0 x = GSL_REAL(arg1);
4800 0 y = GSL_IMAG(arg1);
4801
4802 /* the next 2 lines blow up
4803 sv_setnv(ST(argvi), x);
4804 argvi++;
4805 */
4806 }
4807 {
4808 0 AV* tempav = newAV();
4809 double x,y;
4810 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4811 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4812 }
4813 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg2));
4814 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg2));
4815
4816 0 ST(argvi) = sv_newmortal();
4817
4818 0 x = GSL_REAL(arg2);
4819 0 y = GSL_IMAG(arg2);
4820
4821 /* the next 2 lines blow up
4822 sv_setnv(ST(argvi), x);
4823 argvi++;
4824 */
4825 }
4826 0 XSRETURN(argvi);
4827 0 fail:
4828 0 SWIG_croak_null();
4829 }
4830 }
4831  
4832  
4833 0 XS(_wrap_gsl_complex_div) {
4834 {
4835 gsl_complex arg1 ;
4836 gsl_complex arg2 ;
4837 void *argp1 ;
4838 0 int res1 = 0 ;
4839 void *argp2 ;
4840 0 int res2 = 0 ;
4841 0 int argvi = 0;
4842 SV * _saved[2] ;
4843 gsl_complex result;
4844 0 dXSARGS;
4845
4846 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
4847 0 SWIG_croak("Usage: gsl_complex_div(a,b);");
4848 }
4849 {
4850 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4851 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4852 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_div" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_div" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4853 }
4854 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4855 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_div" "', argument " "1"" of type '" "gsl_complex""'");
4856 } else {
4857 0 arg1 = *((gsl_complex *)(argp1));
4858 }
4859 }
4860 {
4861 0 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_gsl_complex, 0 );
4862 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4863 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_div" "', argument " "2"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_div" "', argument " "2"" of type '" "gsl_complex""'"); 0 0 0
4864 }
4865 0 ▶ if (!argp2) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp2) { 0 0 0
4866 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_div" "', argument " "2"" of type '" "gsl_complex""'");
4867 } else {
4868 0 arg2 = *((gsl_complex *)(argp2));
4869 }
4870 }
4871 0 _saved[0] = ST(0);
4872 0 _saved[1] = ST(1);
4873 0 result = gsl_complex_div(arg1,arg2);
4874 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
4875 {
4876 0 AV* tempav = newAV();
4877 double x,y;
4878 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4879 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4880 }
4881 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4882 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4883
4884 0 ST(argvi) = sv_newmortal();
4885
4886 0 x = GSL_REAL(arg1);
4887 0 y = GSL_IMAG(arg1);
4888
4889 /* the next 2 lines blow up
4890 sv_setnv(ST(argvi), x);
4891 argvi++;
4892 */
4893 }
4894 {
4895 0 AV* tempav = newAV();
4896 double x,y;
4897 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4898 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4899 }
4900 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg2));
4901 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg2));
4902
4903 0 ST(argvi) = sv_newmortal();
4904
4905 0 x = GSL_REAL(arg2);
4906 0 y = GSL_IMAG(arg2);
4907
4908 /* the next 2 lines blow up
4909 sv_setnv(ST(argvi), x);
4910 argvi++;
4911 */
4912 }
4913 0 XSRETURN(argvi);
4914 0 fail:
4915 0 SWIG_croak_null();
4916 }
4917 }
4918  
4919  
4920 0 XS(_wrap_gsl_complex_add_real) {
4921 {
4922 gsl_complex arg1 ;
4923 double arg2 ;
4924 void *argp1 ;
4925 0 int res1 = 0 ;
4926 double val2 ;
4927 0 int ecode2 = 0 ;
4928 0 int argvi = 0;
4929 SV * _saved[1] ;
4930 gsl_complex result;
4931 0 dXSARGS;
4932
4933 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
4934 0 SWIG_croak("Usage: gsl_complex_add_real(a,x);");
4935 }
4936 {
4937 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
4938 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4939 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_add_real" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_add_real" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
4940 }
4941 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
4942 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_add_real" "', argument " "1"" of type '" "gsl_complex""'");
4943 } else {
4944 0 arg1 = *((gsl_complex *)(argp1));
4945 }
4946 }
4947 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4948 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4949 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_add_real" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_add_real" "', argument " "2"" of type '" "double""'"); 0 0 0
4950 }
4951 0 arg2 = (double)(val2);
4952 0 _saved[0] = ST(0);
4953 0 result = gsl_complex_add_real(arg1,arg2);
4954 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
4955 {
4956 0 AV* tempav = newAV();
4957 double x,y;
4958 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
4959 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
4960 }
4961 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
4962 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
4963
4964 0 ST(argvi) = sv_newmortal();
4965
4966 0 x = GSL_REAL(arg1);
4967 0 y = GSL_IMAG(arg1);
4968
4969 /* the next 2 lines blow up
4970 sv_setnv(ST(argvi), x);
4971 argvi++;
4972 */
4973 }
4974
4975 0 XSRETURN(argvi);
4976 0 fail:
4977
4978 0 SWIG_croak_null();
4979 }
4980 }
4981  
4982  
4983 0 XS(_wrap_gsl_complex_sub_real) {
4984 {
4985 gsl_complex arg1 ;
4986 double arg2 ;
4987 void *argp1 ;
4988 0 int res1 = 0 ;
4989 double val2 ;
4990 0 int ecode2 = 0 ;
4991 0 int argvi = 0;
4992 SV * _saved[1] ;
4993 gsl_complex result;
4994 0 dXSARGS;
4995
4996 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
4997 0 SWIG_croak("Usage: gsl_complex_sub_real(a,x);");
4998 }
4999 {
5000 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5001 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5002 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sub_real" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sub_real" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5003 }
5004 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5005 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sub_real" "', argument " "1"" of type '" "gsl_complex""'");
5006 } else {
5007 0 arg1 = *((gsl_complex *)(argp1));
5008 }
5009 }
5010 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5011 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5012 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_sub_real" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_sub_real" "', argument " "2"" of type '" "double""'"); 0 0 0
5013 }
5014 0 arg2 = (double)(val2);
5015 0 _saved[0] = ST(0);
5016 0 result = gsl_complex_sub_real(arg1,arg2);
5017 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5018 {
5019 0 AV* tempav = newAV();
5020 double x,y;
5021 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5022 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5023 }
5024 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5025 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5026
5027 0 ST(argvi) = sv_newmortal();
5028
5029 0 x = GSL_REAL(arg1);
5030 0 y = GSL_IMAG(arg1);
5031
5032 /* the next 2 lines blow up
5033 sv_setnv(ST(argvi), x);
5034 argvi++;
5035 */
5036 }
5037
5038 0 XSRETURN(argvi);
5039 0 fail:
5040
5041 0 SWIG_croak_null();
5042 }
5043 }
5044  
5045  
5046 0 XS(_wrap_gsl_complex_mul_real) {
5047 {
5048 gsl_complex arg1 ;
5049 double arg2 ;
5050 void *argp1 ;
5051 0 int res1 = 0 ;
5052 double val2 ;
5053 0 int ecode2 = 0 ;
5054 0 int argvi = 0;
5055 SV * _saved[1] ;
5056 gsl_complex result;
5057 0 dXSARGS;
5058
5059 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
5060 0 SWIG_croak("Usage: gsl_complex_mul_real(a,x);");
5061 }
5062 {
5063 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5064 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5065 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_mul_real" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_mul_real" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5066 }
5067 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5068 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_mul_real" "', argument " "1"" of type '" "gsl_complex""'");
5069 } else {
5070 0 arg1 = *((gsl_complex *)(argp1));
5071 }
5072 }
5073 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5074 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5075 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_mul_real" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_mul_real" "', argument " "2"" of type '" "double""'"); 0 0 0
5076 }
5077 0 arg2 = (double)(val2);
5078 0 _saved[0] = ST(0);
5079 0 result = gsl_complex_mul_real(arg1,arg2);
5080 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5081 {
5082 0 AV* tempav = newAV();
5083 double x,y;
5084 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5085 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5086 }
5087 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5088 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5089
5090 0 ST(argvi) = sv_newmortal();
5091
5092 0 x = GSL_REAL(arg1);
5093 0 y = GSL_IMAG(arg1);
5094
5095 /* the next 2 lines blow up
5096 sv_setnv(ST(argvi), x);
5097 argvi++;
5098 */
5099 }
5100
5101 0 XSRETURN(argvi);
5102 0 fail:
5103
5104 0 SWIG_croak_null();
5105 }
5106 }
5107  
5108  
5109 0 XS(_wrap_gsl_complex_div_real) {
5110 {
5111 gsl_complex arg1 ;
5112 double arg2 ;
5113 void *argp1 ;
5114 0 int res1 = 0 ;
5115 double val2 ;
5116 0 int ecode2 = 0 ;
5117 0 int argvi = 0;
5118 SV * _saved[1] ;
5119 gsl_complex result;
5120 0 dXSARGS;
5121
5122 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
5123 0 SWIG_croak("Usage: gsl_complex_div_real(a,x);");
5124 }
5125 {
5126 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5127 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5128 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_div_real" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_div_real" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5129 }
5130 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5131 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_div_real" "', argument " "1"" of type '" "gsl_complex""'");
5132 } else {
5133 0 arg1 = *((gsl_complex *)(argp1));
5134 }
5135 }
5136 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5137 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5138 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_div_real" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_div_real" "', argument " "2"" of type '" "double""'"); 0 0 0
5139 }
5140 0 arg2 = (double)(val2);
5141 0 _saved[0] = ST(0);
5142 0 result = gsl_complex_div_real(arg1,arg2);
5143 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5144 {
5145 0 AV* tempav = newAV();
5146 double x,y;
5147 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5148 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5149 }
5150 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5151 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5152
5153 0 ST(argvi) = sv_newmortal();
5154
5155 0 x = GSL_REAL(arg1);
5156 0 y = GSL_IMAG(arg1);
5157
5158 /* the next 2 lines blow up
5159 sv_setnv(ST(argvi), x);
5160 argvi++;
5161 */
5162 }
5163
5164 0 XSRETURN(argvi);
5165 0 fail:
5166
5167 0 SWIG_croak_null();
5168 }
5169 }
5170  
5171  
5172 0 XS(_wrap_gsl_complex_add_imag) {
5173 {
5174 gsl_complex arg1 ;
5175 double arg2 ;
5176 void *argp1 ;
5177 0 int res1 = 0 ;
5178 double val2 ;
5179 0 int ecode2 = 0 ;
5180 0 int argvi = 0;
5181 SV * _saved[1] ;
5182 gsl_complex result;
5183 0 dXSARGS;
5184
5185 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
5186 0 SWIG_croak("Usage: gsl_complex_add_imag(a,y);");
5187 }
5188 {
5189 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5190 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5191 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_add_imag" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_add_imag" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5192 }
5193 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5194 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_add_imag" "', argument " "1"" of type '" "gsl_complex""'");
5195 } else {
5196 0 arg1 = *((gsl_complex *)(argp1));
5197 }
5198 }
5199 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5200 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5201 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_add_imag" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_add_imag" "', argument " "2"" of type '" "double""'"); 0 0 0
5202 }
5203 0 arg2 = (double)(val2);
5204 0 _saved[0] = ST(0);
5205 0 result = gsl_complex_add_imag(arg1,arg2);
5206 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5207 {
5208 0 AV* tempav = newAV();
5209 double x,y;
5210 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5211 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5212 }
5213 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5214 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5215
5216 0 ST(argvi) = sv_newmortal();
5217
5218 0 x = GSL_REAL(arg1);
5219 0 y = GSL_IMAG(arg1);
5220
5221 /* the next 2 lines blow up
5222 sv_setnv(ST(argvi), x);
5223 argvi++;
5224 */
5225 }
5226
5227 0 XSRETURN(argvi);
5228 0 fail:
5229
5230 0 SWIG_croak_null();
5231 }
5232 }
5233  
5234  
5235 0 XS(_wrap_gsl_complex_sub_imag) {
5236 {
5237 gsl_complex arg1 ;
5238 double arg2 ;
5239 void *argp1 ;
5240 0 int res1 = 0 ;
5241 double val2 ;
5242 0 int ecode2 = 0 ;
5243 0 int argvi = 0;
5244 SV * _saved[1] ;
5245 gsl_complex result;
5246 0 dXSARGS;
5247
5248 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
5249 0 SWIG_croak("Usage: gsl_complex_sub_imag(a,y);");
5250 }
5251 {
5252 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5253 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5254 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sub_imag" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sub_imag" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5255 }
5256 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5257 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sub_imag" "', argument " "1"" of type '" "gsl_complex""'");
5258 } else {
5259 0 arg1 = *((gsl_complex *)(argp1));
5260 }
5261 }
5262 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5263 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5264 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_sub_imag" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_sub_imag" "', argument " "2"" of type '" "double""'"); 0 0 0
5265 }
5266 0 arg2 = (double)(val2);
5267 0 _saved[0] = ST(0);
5268 0 result = gsl_complex_sub_imag(arg1,arg2);
5269 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5270 {
5271 0 AV* tempav = newAV();
5272 double x,y;
5273 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5274 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5275 }
5276 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5277 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5278
5279 0 ST(argvi) = sv_newmortal();
5280
5281 0 x = GSL_REAL(arg1);
5282 0 y = GSL_IMAG(arg1);
5283
5284 /* the next 2 lines blow up
5285 sv_setnv(ST(argvi), x);
5286 argvi++;
5287 */
5288 }
5289
5290 0 XSRETURN(argvi);
5291 0 fail:
5292
5293 0 SWIG_croak_null();
5294 }
5295 }
5296  
5297  
5298 0 XS(_wrap_gsl_complex_mul_imag) {
5299 {
5300 gsl_complex arg1 ;
5301 double arg2 ;
5302 void *argp1 ;
5303 0 int res1 = 0 ;
5304 double val2 ;
5305 0 int ecode2 = 0 ;
5306 0 int argvi = 0;
5307 SV * _saved[1] ;
5308 gsl_complex result;
5309 0 dXSARGS;
5310
5311 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
5312 0 SWIG_croak("Usage: gsl_complex_mul_imag(a,y);");
5313 }
5314 {
5315 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5316 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5317 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_mul_imag" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_mul_imag" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5318 }
5319 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5320 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_mul_imag" "', argument " "1"" of type '" "gsl_complex""'");
5321 } else {
5322 0 arg1 = *((gsl_complex *)(argp1));
5323 }
5324 }
5325 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5326 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5327 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_mul_imag" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_mul_imag" "', argument " "2"" of type '" "double""'"); 0 0 0
5328 }
5329 0 arg2 = (double)(val2);
5330 0 _saved[0] = ST(0);
5331 0 result = gsl_complex_mul_imag(arg1,arg2);
5332 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5333 {
5334 0 AV* tempav = newAV();
5335 double x,y;
5336 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5337 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5338 }
5339 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5340 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5341
5342 0 ST(argvi) = sv_newmortal();
5343
5344 0 x = GSL_REAL(arg1);
5345 0 y = GSL_IMAG(arg1);
5346
5347 /* the next 2 lines blow up
5348 sv_setnv(ST(argvi), x);
5349 argvi++;
5350 */
5351 }
5352
5353 0 XSRETURN(argvi);
5354 0 fail:
5355
5356 0 SWIG_croak_null();
5357 }
5358 }
5359  
5360  
5361 0 XS(_wrap_gsl_complex_div_imag) {
5362 {
5363 gsl_complex arg1 ;
5364 double arg2 ;
5365 void *argp1 ;
5366 0 int res1 = 0 ;
5367 double val2 ;
5368 0 int ecode2 = 0 ;
5369 0 int argvi = 0;
5370 SV * _saved[1] ;
5371 gsl_complex result;
5372 0 dXSARGS;
5373
5374 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
5375 0 SWIG_croak("Usage: gsl_complex_div_imag(a,y);");
5376 }
5377 {
5378 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5379 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5380 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_div_imag" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_div_imag" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5381 }
5382 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5383 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_div_imag" "', argument " "1"" of type '" "gsl_complex""'");
5384 } else {
5385 0 arg1 = *((gsl_complex *)(argp1));
5386 }
5387 }
5388 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5389 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5390 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_div_imag" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_div_imag" "', argument " "2"" of type '" "double""'"); 0 0 0
5391 }
5392 0 arg2 = (double)(val2);
5393 0 _saved[0] = ST(0);
5394 0 result = gsl_complex_div_imag(arg1,arg2);
5395 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5396 {
5397 0 AV* tempav = newAV();
5398 double x,y;
5399 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5400 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5401 }
5402 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5403 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5404
5405 0 ST(argvi) = sv_newmortal();
5406
5407 0 x = GSL_REAL(arg1);
5408 0 y = GSL_IMAG(arg1);
5409
5410 /* the next 2 lines blow up
5411 sv_setnv(ST(argvi), x);
5412 argvi++;
5413 */
5414 }
5415
5416 0 XSRETURN(argvi);
5417 0 fail:
5418
5419 0 SWIG_croak_null();
5420 }
5421 }
5422  
5423  
5424 0 XS(_wrap_gsl_complex_conjugate) {
5425 {
5426 gsl_complex arg1 ;
5427 void *argp1 ;
5428 0 int res1 = 0 ;
5429 0 int argvi = 0;
5430 SV * _saved[1] ;
5431 gsl_complex result;
5432 0 dXSARGS;
5433
5434 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
5435 0 SWIG_croak("Usage: gsl_complex_conjugate(z);");
5436 }
5437 {
5438 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5439 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5440 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_conjugate" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_conjugate" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5441 }
5442 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5443 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_conjugate" "', argument " "1"" of type '" "gsl_complex""'");
5444 } else {
5445 0 arg1 = *((gsl_complex *)(argp1));
5446 }
5447 }
5448 0 _saved[0] = ST(0);
5449 0 result = gsl_complex_conjugate(arg1);
5450 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5451 {
5452 0 AV* tempav = newAV();
5453 double x,y;
5454 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5455 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5456 }
5457 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5458 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5459
5460 0 ST(argvi) = sv_newmortal();
5461
5462 0 x = GSL_REAL(arg1);
5463 0 y = GSL_IMAG(arg1);
5464
5465 /* the next 2 lines blow up
5466 sv_setnv(ST(argvi), x);
5467 argvi++;
5468 */
5469 }
5470 0 XSRETURN(argvi);
5471 0 fail:
5472 0 SWIG_croak_null();
5473 }
5474 }
5475  
5476  
5477 0 XS(_wrap_gsl_complex_inverse) {
5478 {
5479 gsl_complex arg1 ;
5480 void *argp1 ;
5481 0 int res1 = 0 ;
5482 0 int argvi = 0;
5483 SV * _saved[1] ;
5484 gsl_complex result;
5485 0 dXSARGS;
5486
5487 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
5488 0 SWIG_croak("Usage: gsl_complex_inverse(a);");
5489 }
5490 {
5491 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5492 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5493 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_inverse" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_inverse" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5494 }
5495 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5496 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_inverse" "', argument " "1"" of type '" "gsl_complex""'");
5497 } else {
5498 0 arg1 = *((gsl_complex *)(argp1));
5499 }
5500 }
5501 0 _saved[0] = ST(0);
5502 0 result = gsl_complex_inverse(arg1);
5503 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5504 {
5505 0 AV* tempav = newAV();
5506 double x,y;
5507 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5508 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5509 }
5510 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5511 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5512
5513 0 ST(argvi) = sv_newmortal();
5514
5515 0 x = GSL_REAL(arg1);
5516 0 y = GSL_IMAG(arg1);
5517
5518 /* the next 2 lines blow up
5519 sv_setnv(ST(argvi), x);
5520 argvi++;
5521 */
5522 }
5523 0 XSRETURN(argvi);
5524 0 fail:
5525 0 SWIG_croak_null();
5526 }
5527 }
5528  
5529  
5530 0 XS(_wrap_gsl_complex_negative) {
5531 {
5532 gsl_complex arg1 ;
5533 void *argp1 ;
5534 0 int res1 = 0 ;
5535 0 int argvi = 0;
5536 SV * _saved[1] ;
5537 gsl_complex result;
5538 0 dXSARGS;
5539
5540 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
5541 0 SWIG_croak("Usage: gsl_complex_negative(a);");
5542 }
5543 {
5544 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5545 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5546 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_negative" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_negative" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5547 }
5548 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5549 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_negative" "', argument " "1"" of type '" "gsl_complex""'");
5550 } else {
5551 0 arg1 = *((gsl_complex *)(argp1));
5552 }
5553 }
5554 0 _saved[0] = ST(0);
5555 0 result = gsl_complex_negative(arg1);
5556 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5557 {
5558 0 AV* tempav = newAV();
5559 double x,y;
5560 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5561 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5562 }
5563 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5564 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5565
5566 0 ST(argvi) = sv_newmortal();
5567
5568 0 x = GSL_REAL(arg1);
5569 0 y = GSL_IMAG(arg1);
5570
5571 /* the next 2 lines blow up
5572 sv_setnv(ST(argvi), x);
5573 argvi++;
5574 */
5575 }
5576 0 XSRETURN(argvi);
5577 0 fail:
5578 0 SWIG_croak_null();
5579 }
5580 }
5581  
5582  
5583 0 XS(_wrap_gsl_complex_sqrt) {
5584 {
5585 gsl_complex arg1 ;
5586 void *argp1 ;
5587 0 int res1 = 0 ;
5588 0 int argvi = 0;
5589 SV * _saved[1] ;
5590 gsl_complex result;
5591 0 dXSARGS;
5592
5593 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
5594 0 SWIG_croak("Usage: gsl_complex_sqrt(z);");
5595 }
5596 {
5597 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5598 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5599 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sqrt" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sqrt" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5600 }
5601 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5602 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sqrt" "', argument " "1"" of type '" "gsl_complex""'");
5603 } else {
5604 0 arg1 = *((gsl_complex *)(argp1));
5605 }
5606 }
5607 0 _saved[0] = ST(0);
5608 0 result = gsl_complex_sqrt(arg1);
5609 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5610 {
5611 0 AV* tempav = newAV();
5612 double x,y;
5613 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5614 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5615 }
5616 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5617 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5618
5619 0 ST(argvi) = sv_newmortal();
5620
5621 0 x = GSL_REAL(arg1);
5622 0 y = GSL_IMAG(arg1);
5623
5624 /* the next 2 lines blow up
5625 sv_setnv(ST(argvi), x);
5626 argvi++;
5627 */
5628 }
5629 0 XSRETURN(argvi);
5630 0 fail:
5631 0 SWIG_croak_null();
5632 }
5633 }
5634  
5635  
5636 0 XS(_wrap_gsl_complex_sqrt_real) {
5637 {
5638 double arg1 ;
5639 double val1 ;
5640 0 int ecode1 = 0 ;
5641 0 int argvi = 0;
5642 gsl_complex result;
5643 0 dXSARGS;
5644
5645 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
5646 0 SWIG_croak("Usage: gsl_complex_sqrt_real(x);");
5647 }
5648 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
5649 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
5650 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_sqrt_real" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_sqrt_real" "', argument " "1"" of type '" "double""'"); 0 0 0
5651 }
5652 0 arg1 = (double)(val1);
5653 0 result = gsl_complex_sqrt_real(arg1);
5654 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5655
5656 0 XSRETURN(argvi);
5657 0 fail:
5658
5659 0 SWIG_croak_null();
5660 }
5661 }
5662  
5663  
5664 0 XS(_wrap_gsl_complex_pow) {
5665 {
5666 gsl_complex arg1 ;
5667 gsl_complex arg2 ;
5668 void *argp1 ;
5669 0 int res1 = 0 ;
5670 void *argp2 ;
5671 0 int res2 = 0 ;
5672 0 int argvi = 0;
5673 SV * _saved[2] ;
5674 gsl_complex result;
5675 0 dXSARGS;
5676
5677 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
5678 0 SWIG_croak("Usage: gsl_complex_pow(a,b);");
5679 }
5680 {
5681 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5682 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5683 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_pow" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_pow" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5684 }
5685 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5686 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_pow" "', argument " "1"" of type '" "gsl_complex""'");
5687 } else {
5688 0 arg1 = *((gsl_complex *)(argp1));
5689 }
5690 }
5691 {
5692 0 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_gsl_complex, 0 );
5693 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5694 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_pow" "', argument " "2"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_pow" "', argument " "2"" of type '" "gsl_complex""'"); 0 0 0
5695 }
5696 0 ▶ if (!argp2) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp2) { 0 0 0
5697 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_pow" "', argument " "2"" of type '" "gsl_complex""'");
5698 } else {
5699 0 arg2 = *((gsl_complex *)(argp2));
5700 }
5701 }
5702 0 _saved[0] = ST(0);
5703 0 _saved[1] = ST(1);
5704 0 result = gsl_complex_pow(arg1,arg2);
5705 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5706 {
5707 0 AV* tempav = newAV();
5708 double x,y;
5709 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5710 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5711 }
5712 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5713 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5714
5715 0 ST(argvi) = sv_newmortal();
5716
5717 0 x = GSL_REAL(arg1);
5718 0 y = GSL_IMAG(arg1);
5719
5720 /* the next 2 lines blow up
5721 sv_setnv(ST(argvi), x);
5722 argvi++;
5723 */
5724 }
5725 {
5726 0 AV* tempav = newAV();
5727 double x,y;
5728 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5729 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5730 }
5731 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg2));
5732 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg2));
5733
5734 0 ST(argvi) = sv_newmortal();
5735
5736 0 x = GSL_REAL(arg2);
5737 0 y = GSL_IMAG(arg2);
5738
5739 /* the next 2 lines blow up
5740 sv_setnv(ST(argvi), x);
5741 argvi++;
5742 */
5743 }
5744 0 XSRETURN(argvi);
5745 0 fail:
5746 0 SWIG_croak_null();
5747 }
5748 }
5749  
5750  
5751 0 XS(_wrap_gsl_complex_pow_real) {
5752 {
5753 gsl_complex arg1 ;
5754 double arg2 ;
5755 void *argp1 ;
5756 0 int res1 = 0 ;
5757 double val2 ;
5758 0 int ecode2 = 0 ;
5759 0 int argvi = 0;
5760 SV * _saved[1] ;
5761 gsl_complex result;
5762 0 dXSARGS;
5763
5764 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
5765 0 SWIG_croak("Usage: gsl_complex_pow_real(a,b);");
5766 }
5767 {
5768 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5769 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5770 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_pow_real" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_pow_real" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5771 }
5772 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5773 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_pow_real" "', argument " "1"" of type '" "gsl_complex""'");
5774 } else {
5775 0 arg1 = *((gsl_complex *)(argp1));
5776 }
5777 }
5778 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5779 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5780 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_pow_real" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_complex_pow_real" "', argument " "2"" of type '" "double""'"); 0 0 0
5781 }
5782 0 arg2 = (double)(val2);
5783 0 _saved[0] = ST(0);
5784 0 result = gsl_complex_pow_real(arg1,arg2);
5785 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5786 {
5787 0 AV* tempav = newAV();
5788 double x,y;
5789 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5790 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5791 }
5792 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5793 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5794
5795 0 ST(argvi) = sv_newmortal();
5796
5797 0 x = GSL_REAL(arg1);
5798 0 y = GSL_IMAG(arg1);
5799
5800 /* the next 2 lines blow up
5801 sv_setnv(ST(argvi), x);
5802 argvi++;
5803 */
5804 }
5805
5806 0 XSRETURN(argvi);
5807 0 fail:
5808
5809 0 SWIG_croak_null();
5810 }
5811 }
5812  
5813  
5814 0 XS(_wrap_gsl_complex_exp) {
5815 {
5816 gsl_complex arg1 ;
5817 void *argp1 ;
5818 0 int res1 = 0 ;
5819 0 int argvi = 0;
5820 SV * _saved[1] ;
5821 gsl_complex result;
5822 0 dXSARGS;
5823
5824 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
5825 0 SWIG_croak("Usage: gsl_complex_exp(a);");
5826 }
5827 {
5828 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5829 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5830 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_exp" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_exp" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5831 }
5832 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5833 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_exp" "', argument " "1"" of type '" "gsl_complex""'");
5834 } else {
5835 0 arg1 = *((gsl_complex *)(argp1));
5836 }
5837 }
5838 0 _saved[0] = ST(0);
5839 0 result = gsl_complex_exp(arg1);
5840 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5841 {
5842 0 AV* tempav = newAV();
5843 double x,y;
5844 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5845 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5846 }
5847 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5848 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5849
5850 0 ST(argvi) = sv_newmortal();
5851
5852 0 x = GSL_REAL(arg1);
5853 0 y = GSL_IMAG(arg1);
5854
5855 /* the next 2 lines blow up
5856 sv_setnv(ST(argvi), x);
5857 argvi++;
5858 */
5859 }
5860 0 XSRETURN(argvi);
5861 0 fail:
5862 0 SWIG_croak_null();
5863 }
5864 }
5865  
5866  
5867 0 XS(_wrap_gsl_complex_log) {
5868 {
5869 gsl_complex arg1 ;
5870 void *argp1 ;
5871 0 int res1 = 0 ;
5872 0 int argvi = 0;
5873 SV * _saved[1] ;
5874 gsl_complex result;
5875 0 dXSARGS;
5876
5877 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
5878 0 SWIG_croak("Usage: gsl_complex_log(a);");
5879 }
5880 {
5881 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5882 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5883 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_log" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_log" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5884 }
5885 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5886 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_log" "', argument " "1"" of type '" "gsl_complex""'");
5887 } else {
5888 0 arg1 = *((gsl_complex *)(argp1));
5889 }
5890 }
5891 0 _saved[0] = ST(0);
5892 0 result = gsl_complex_log(arg1);
5893 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5894 {
5895 0 AV* tempav = newAV();
5896 double x,y;
5897 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5898 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5899 }
5900 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5901 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5902
5903 0 ST(argvi) = sv_newmortal();
5904
5905 0 x = GSL_REAL(arg1);
5906 0 y = GSL_IMAG(arg1);
5907
5908 /* the next 2 lines blow up
5909 sv_setnv(ST(argvi), x);
5910 argvi++;
5911 */
5912 }
5913 0 XSRETURN(argvi);
5914 0 fail:
5915 0 SWIG_croak_null();
5916 }
5917 }
5918  
5919  
5920 0 XS(_wrap_gsl_complex_log10) {
5921 {
5922 gsl_complex arg1 ;
5923 void *argp1 ;
5924 0 int res1 = 0 ;
5925 0 int argvi = 0;
5926 SV * _saved[1] ;
5927 gsl_complex result;
5928 0 dXSARGS;
5929
5930 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
5931 0 SWIG_croak("Usage: gsl_complex_log10(a);");
5932 }
5933 {
5934 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5935 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5936 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_log10" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_log10" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5937 }
5938 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5939 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_log10" "', argument " "1"" of type '" "gsl_complex""'");
5940 } else {
5941 0 arg1 = *((gsl_complex *)(argp1));
5942 }
5943 }
5944 0 _saved[0] = ST(0);
5945 0 result = gsl_complex_log10(arg1);
5946 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
5947 {
5948 0 AV* tempav = newAV();
5949 double x,y;
5950 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
5951 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
5952 }
5953 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
5954 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
5955
5956 0 ST(argvi) = sv_newmortal();
5957
5958 0 x = GSL_REAL(arg1);
5959 0 y = GSL_IMAG(arg1);
5960
5961 /* the next 2 lines blow up
5962 sv_setnv(ST(argvi), x);
5963 argvi++;
5964 */
5965 }
5966 0 XSRETURN(argvi);
5967 0 fail:
5968 0 SWIG_croak_null();
5969 }
5970 }
5971  
5972  
5973 0 XS(_wrap_gsl_complex_log_b) {
5974 {
5975 gsl_complex arg1 ;
5976 gsl_complex arg2 ;
5977 void *argp1 ;
5978 0 int res1 = 0 ;
5979 void *argp2 ;
5980 0 int res2 = 0 ;
5981 0 int argvi = 0;
5982 SV * _saved[2] ;
5983 gsl_complex result;
5984 0 dXSARGS;
5985
5986 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
5987 0 SWIG_croak("Usage: gsl_complex_log_b(a,b);");
5988 }
5989 {
5990 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
5991 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5992 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_log_b" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_log_b" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
5993 }
5994 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
5995 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_log_b" "', argument " "1"" of type '" "gsl_complex""'");
5996 } else {
5997 0 arg1 = *((gsl_complex *)(argp1));
5998 }
5999 }
6000 {
6001 0 res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_gsl_complex, 0 );
6002 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
6003 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_log_b" "', argument " "2"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_complex_log_b" "', argument " "2"" of type '" "gsl_complex""'"); 0 0 0
6004 }
6005 0 ▶ if (!argp2) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp2) { 0 0 0
6006 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_log_b" "', argument " "2"" of type '" "gsl_complex""'");
6007 } else {
6008 0 arg2 = *((gsl_complex *)(argp2));
6009 }
6010 }
6011 0 _saved[0] = ST(0);
6012 0 _saved[1] = ST(1);
6013 0 result = gsl_complex_log_b(arg1,arg2);
6014 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6015 {
6016 0 AV* tempav = newAV();
6017 double x,y;
6018 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6019 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6020 }
6021 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6022 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6023
6024 0 ST(argvi) = sv_newmortal();
6025
6026 0 x = GSL_REAL(arg1);
6027 0 y = GSL_IMAG(arg1);
6028
6029 /* the next 2 lines blow up
6030 sv_setnv(ST(argvi), x);
6031 argvi++;
6032 */
6033 }
6034 {
6035 0 AV* tempav = newAV();
6036 double x,y;
6037 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6038 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6039 }
6040 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg2));
6041 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg2));
6042
6043 0 ST(argvi) = sv_newmortal();
6044
6045 0 x = GSL_REAL(arg2);
6046 0 y = GSL_IMAG(arg2);
6047
6048 /* the next 2 lines blow up
6049 sv_setnv(ST(argvi), x);
6050 argvi++;
6051 */
6052 }
6053 0 XSRETURN(argvi);
6054 0 fail:
6055 0 SWIG_croak_null();
6056 }
6057 }
6058  
6059  
6060 0 XS(_wrap_gsl_complex_sin) {
6061 {
6062 gsl_complex arg1 ;
6063 void *argp1 ;
6064 0 int res1 = 0 ;
6065 0 int argvi = 0;
6066 SV * _saved[1] ;
6067 gsl_complex result;
6068 0 dXSARGS;
6069
6070 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
6071 0 SWIG_croak("Usage: gsl_complex_sin(a);");
6072 }
6073 {
6074 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6075 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6076 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sin" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sin" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6077 }
6078 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6079 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sin" "', argument " "1"" of type '" "gsl_complex""'");
6080 } else {
6081 0 arg1 = *((gsl_complex *)(argp1));
6082 }
6083 }
6084 0 _saved[0] = ST(0);
6085 0 result = gsl_complex_sin(arg1);
6086 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6087 {
6088 0 AV* tempav = newAV();
6089 double x,y;
6090 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6091 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6092 }
6093 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6094 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6095
6096 0 ST(argvi) = sv_newmortal();
6097
6098 0 x = GSL_REAL(arg1);
6099 0 y = GSL_IMAG(arg1);
6100
6101 /* the next 2 lines blow up
6102 sv_setnv(ST(argvi), x);
6103 argvi++;
6104 */
6105 }
6106 0 XSRETURN(argvi);
6107 0 fail:
6108 0 SWIG_croak_null();
6109 }
6110 }
6111  
6112  
6113 0 XS(_wrap_gsl_complex_cos) {
6114 {
6115 gsl_complex arg1 ;
6116 void *argp1 ;
6117 0 int res1 = 0 ;
6118 0 int argvi = 0;
6119 SV * _saved[1] ;
6120 gsl_complex result;
6121 0 dXSARGS;
6122
6123 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
6124 0 SWIG_croak("Usage: gsl_complex_cos(a);");
6125 }
6126 {
6127 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6128 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6129 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_cos" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_cos" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6130 }
6131 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6132 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_cos" "', argument " "1"" of type '" "gsl_complex""'");
6133 } else {
6134 0 arg1 = *((gsl_complex *)(argp1));
6135 }
6136 }
6137 0 _saved[0] = ST(0);
6138 0 result = gsl_complex_cos(arg1);
6139 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6140 {
6141 0 AV* tempav = newAV();
6142 double x,y;
6143 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6144 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6145 }
6146 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6147 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6148
6149 0 ST(argvi) = sv_newmortal();
6150
6151 0 x = GSL_REAL(arg1);
6152 0 y = GSL_IMAG(arg1);
6153
6154 /* the next 2 lines blow up
6155 sv_setnv(ST(argvi), x);
6156 argvi++;
6157 */
6158 }
6159 0 XSRETURN(argvi);
6160 0 fail:
6161 0 SWIG_croak_null();
6162 }
6163 }
6164  
6165  
6166 0 XS(_wrap_gsl_complex_sec) {
6167 {
6168 gsl_complex arg1 ;
6169 void *argp1 ;
6170 0 int res1 = 0 ;
6171 0 int argvi = 0;
6172 SV * _saved[1] ;
6173 gsl_complex result;
6174 0 dXSARGS;
6175
6176 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
6177 0 SWIG_croak("Usage: gsl_complex_sec(a);");
6178 }
6179 {
6180 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6181 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6182 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sec" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sec" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6183 }
6184 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6185 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sec" "', argument " "1"" of type '" "gsl_complex""'");
6186 } else {
6187 0 arg1 = *((gsl_complex *)(argp1));
6188 }
6189 }
6190 0 _saved[0] = ST(0);
6191 0 result = gsl_complex_sec(arg1);
6192 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6193 {
6194 0 AV* tempav = newAV();
6195 double x,y;
6196 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6197 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6198 }
6199 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6200 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6201
6202 0 ST(argvi) = sv_newmortal();
6203
6204 0 x = GSL_REAL(arg1);
6205 0 y = GSL_IMAG(arg1);
6206
6207 /* the next 2 lines blow up
6208 sv_setnv(ST(argvi), x);
6209 argvi++;
6210 */
6211 }
6212 0 XSRETURN(argvi);
6213 0 fail:
6214 0 SWIG_croak_null();
6215 }
6216 }
6217  
6218  
6219 0 XS(_wrap_gsl_complex_csc) {
6220 {
6221 gsl_complex arg1 ;
6222 void *argp1 ;
6223 0 int res1 = 0 ;
6224 0 int argvi = 0;
6225 SV * _saved[1] ;
6226 gsl_complex result;
6227 0 dXSARGS;
6228
6229 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
6230 0 SWIG_croak("Usage: gsl_complex_csc(a);");
6231 }
6232 {
6233 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6234 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6235 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_csc" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_csc" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6236 }
6237 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6238 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_csc" "', argument " "1"" of type '" "gsl_complex""'");
6239 } else {
6240 0 arg1 = *((gsl_complex *)(argp1));
6241 }
6242 }
6243 0 _saved[0] = ST(0);
6244 0 result = gsl_complex_csc(arg1);
6245 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6246 {
6247 0 AV* tempav = newAV();
6248 double x,y;
6249 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6250 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6251 }
6252 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6253 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6254
6255 0 ST(argvi) = sv_newmortal();
6256
6257 0 x = GSL_REAL(arg1);
6258 0 y = GSL_IMAG(arg1);
6259
6260 /* the next 2 lines blow up
6261 sv_setnv(ST(argvi), x);
6262 argvi++;
6263 */
6264 }
6265 0 XSRETURN(argvi);
6266 0 fail:
6267 0 SWIG_croak_null();
6268 }
6269 }
6270  
6271  
6272 0 XS(_wrap_gsl_complex_tan) {
6273 {
6274 gsl_complex arg1 ;
6275 void *argp1 ;
6276 0 int res1 = 0 ;
6277 0 int argvi = 0;
6278 SV * _saved[1] ;
6279 gsl_complex result;
6280 0 dXSARGS;
6281
6282 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
6283 0 SWIG_croak("Usage: gsl_complex_tan(a);");
6284 }
6285 {
6286 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6287 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6288 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_tan" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_tan" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6289 }
6290 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6291 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_tan" "', argument " "1"" of type '" "gsl_complex""'");
6292 } else {
6293 0 arg1 = *((gsl_complex *)(argp1));
6294 }
6295 }
6296 0 _saved[0] = ST(0);
6297 0 result = gsl_complex_tan(arg1);
6298 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6299 {
6300 0 AV* tempav = newAV();
6301 double x,y;
6302 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6303 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6304 }
6305 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6306 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6307
6308 0 ST(argvi) = sv_newmortal();
6309
6310 0 x = GSL_REAL(arg1);
6311 0 y = GSL_IMAG(arg1);
6312
6313 /* the next 2 lines blow up
6314 sv_setnv(ST(argvi), x);
6315 argvi++;
6316 */
6317 }
6318 0 XSRETURN(argvi);
6319 0 fail:
6320 0 SWIG_croak_null();
6321 }
6322 }
6323  
6324  
6325 0 XS(_wrap_gsl_complex_cot) {
6326 {
6327 gsl_complex arg1 ;
6328 void *argp1 ;
6329 0 int res1 = 0 ;
6330 0 int argvi = 0;
6331 SV * _saved[1] ;
6332 gsl_complex result;
6333 0 dXSARGS;
6334
6335 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
6336 0 SWIG_croak("Usage: gsl_complex_cot(a);");
6337 }
6338 {
6339 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6340 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6341 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_cot" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_cot" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6342 }
6343 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6344 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_cot" "', argument " "1"" of type '" "gsl_complex""'");
6345 } else {
6346 0 arg1 = *((gsl_complex *)(argp1));
6347 }
6348 }
6349 0 _saved[0] = ST(0);
6350 0 result = gsl_complex_cot(arg1);
6351 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6352 {
6353 0 AV* tempav = newAV();
6354 double x,y;
6355 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6356 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6357 }
6358 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6359 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6360
6361 0 ST(argvi) = sv_newmortal();
6362
6363 0 x = GSL_REAL(arg1);
6364 0 y = GSL_IMAG(arg1);
6365
6366 /* the next 2 lines blow up
6367 sv_setnv(ST(argvi), x);
6368 argvi++;
6369 */
6370 }
6371 0 XSRETURN(argvi);
6372 0 fail:
6373 0 SWIG_croak_null();
6374 }
6375 }
6376  
6377  
6378 0 XS(_wrap_gsl_complex_arcsin) {
6379 {
6380 gsl_complex arg1 ;
6381 void *argp1 ;
6382 0 int res1 = 0 ;
6383 0 int argvi = 0;
6384 SV * _saved[1] ;
6385 gsl_complex result;
6386 0 dXSARGS;
6387
6388 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
6389 0 SWIG_croak("Usage: gsl_complex_arcsin(a);");
6390 }
6391 {
6392 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6393 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6394 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsin" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsin" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6395 }
6396 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6397 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arcsin" "', argument " "1"" of type '" "gsl_complex""'");
6398 } else {
6399 0 arg1 = *((gsl_complex *)(argp1));
6400 }
6401 }
6402 0 _saved[0] = ST(0);
6403 0 result = gsl_complex_arcsin(arg1);
6404 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6405 {
6406 0 AV* tempav = newAV();
6407 double x,y;
6408 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6409 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6410 }
6411 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6412 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6413
6414 0 ST(argvi) = sv_newmortal();
6415
6416 0 x = GSL_REAL(arg1);
6417 0 y = GSL_IMAG(arg1);
6418
6419 /* the next 2 lines blow up
6420 sv_setnv(ST(argvi), x);
6421 argvi++;
6422 */
6423 }
6424 0 XSRETURN(argvi);
6425 0 fail:
6426 0 SWIG_croak_null();
6427 }
6428 }
6429  
6430  
6431 0 XS(_wrap_gsl_complex_arcsin_real) {
6432 {
6433 double arg1 ;
6434 double val1 ;
6435 0 int ecode1 = 0 ;
6436 0 int argvi = 0;
6437 gsl_complex result;
6438 0 dXSARGS;
6439
6440 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
6441 0 SWIG_croak("Usage: gsl_complex_arcsin_real(a);");
6442 }
6443 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6444 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6445 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arcsin_real" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arcsin_real" "', argument " "1"" of type '" "double""'"); 0 0 0
6446 }
6447 0 arg1 = (double)(val1);
6448 0 result = gsl_complex_arcsin_real(arg1);
6449 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6450
6451 0 XSRETURN(argvi);
6452 0 fail:
6453
6454 0 SWIG_croak_null();
6455 }
6456 }
6457  
6458  
6459 0 XS(_wrap_gsl_complex_arccos) {
6460 {
6461 gsl_complex arg1 ;
6462 void *argp1 ;
6463 0 int res1 = 0 ;
6464 0 int argvi = 0;
6465 SV * _saved[1] ;
6466 gsl_complex result;
6467 0 dXSARGS;
6468
6469 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
6470 0 SWIG_croak("Usage: gsl_complex_arccos(a);");
6471 }
6472 {
6473 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6474 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6475 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccos" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccos" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6476 }
6477 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6478 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arccos" "', argument " "1"" of type '" "gsl_complex""'");
6479 } else {
6480 0 arg1 = *((gsl_complex *)(argp1));
6481 }
6482 }
6483 0 _saved[0] = ST(0);
6484 0 result = gsl_complex_arccos(arg1);
6485 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6486 {
6487 0 AV* tempav = newAV();
6488 double x,y;
6489 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6490 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6491 }
6492 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6493 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6494
6495 0 ST(argvi) = sv_newmortal();
6496
6497 0 x = GSL_REAL(arg1);
6498 0 y = GSL_IMAG(arg1);
6499
6500 /* the next 2 lines blow up
6501 sv_setnv(ST(argvi), x);
6502 argvi++;
6503 */
6504 }
6505 0 XSRETURN(argvi);
6506 0 fail:
6507 0 SWIG_croak_null();
6508 }
6509 }
6510  
6511  
6512 0 XS(_wrap_gsl_complex_arccos_real) {
6513 {
6514 double arg1 ;
6515 double val1 ;
6516 0 int ecode1 = 0 ;
6517 0 int argvi = 0;
6518 gsl_complex result;
6519 0 dXSARGS;
6520
6521 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
6522 0 SWIG_croak("Usage: gsl_complex_arccos_real(a);");
6523 }
6524 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6525 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6526 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arccos_real" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arccos_real" "', argument " "1"" of type '" "double""'"); 0 0 0
6527 }
6528 0 arg1 = (double)(val1);
6529 0 result = gsl_complex_arccos_real(arg1);
6530 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6531
6532 0 XSRETURN(argvi);
6533 0 fail:
6534
6535 0 SWIG_croak_null();
6536 }
6537 }
6538  
6539  
6540 0 XS(_wrap_gsl_complex_arcsec) {
6541 {
6542 gsl_complex arg1 ;
6543 void *argp1 ;
6544 0 int res1 = 0 ;
6545 0 int argvi = 0;
6546 SV * _saved[1] ;
6547 gsl_complex result;
6548 0 dXSARGS;
6549
6550 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
6551 0 SWIG_croak("Usage: gsl_complex_arcsec(a);");
6552 }
6553 {
6554 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6555 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6556 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsec" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsec" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6557 }
6558 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6559 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arcsec" "', argument " "1"" of type '" "gsl_complex""'");
6560 } else {
6561 0 arg1 = *((gsl_complex *)(argp1));
6562 }
6563 }
6564 0 _saved[0] = ST(0);
6565 0 result = gsl_complex_arcsec(arg1);
6566 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6567 {
6568 0 AV* tempav = newAV();
6569 double x,y;
6570 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6571 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6572 }
6573 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6574 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6575
6576 0 ST(argvi) = sv_newmortal();
6577
6578 0 x = GSL_REAL(arg1);
6579 0 y = GSL_IMAG(arg1);
6580
6581 /* the next 2 lines blow up
6582 sv_setnv(ST(argvi), x);
6583 argvi++;
6584 */
6585 }
6586 0 XSRETURN(argvi);
6587 0 fail:
6588 0 SWIG_croak_null();
6589 }
6590 }
6591  
6592  
6593 0 XS(_wrap_gsl_complex_arcsec_real) {
6594 {
6595 double arg1 ;
6596 double val1 ;
6597 0 int ecode1 = 0 ;
6598 0 int argvi = 0;
6599 gsl_complex result;
6600 0 dXSARGS;
6601
6602 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
6603 0 SWIG_croak("Usage: gsl_complex_arcsec_real(a);");
6604 }
6605 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6606 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6607 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arcsec_real" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arcsec_real" "', argument " "1"" of type '" "double""'"); 0 0 0
6608 }
6609 0 arg1 = (double)(val1);
6610 0 result = gsl_complex_arcsec_real(arg1);
6611 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6612
6613 0 XSRETURN(argvi);
6614 0 fail:
6615
6616 0 SWIG_croak_null();
6617 }
6618 }
6619  
6620  
6621 0 XS(_wrap_gsl_complex_arccsc) {
6622 {
6623 gsl_complex arg1 ;
6624 void *argp1 ;
6625 0 int res1 = 0 ;
6626 0 int argvi = 0;
6627 SV * _saved[1] ;
6628 gsl_complex result;
6629 0 dXSARGS;
6630
6631 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
6632 0 SWIG_croak("Usage: gsl_complex_arccsc(a);");
6633 }
6634 {
6635 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6636 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6637 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccsc" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccsc" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6638 }
6639 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6640 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arccsc" "', argument " "1"" of type '" "gsl_complex""'");
6641 } else {
6642 0 arg1 = *((gsl_complex *)(argp1));
6643 }
6644 }
6645 0 _saved[0] = ST(0);
6646 0 result = gsl_complex_arccsc(arg1);
6647 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6648 {
6649 0 AV* tempav = newAV();
6650 double x,y;
6651 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6652 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6653 }
6654 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6655 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6656
6657 0 ST(argvi) = sv_newmortal();
6658
6659 0 x = GSL_REAL(arg1);
6660 0 y = GSL_IMAG(arg1);
6661
6662 /* the next 2 lines blow up
6663 sv_setnv(ST(argvi), x);
6664 argvi++;
6665 */
6666 }
6667 0 XSRETURN(argvi);
6668 0 fail:
6669 0 SWIG_croak_null();
6670 }
6671 }
6672  
6673  
6674 0 XS(_wrap_gsl_complex_arccsc_real) {
6675 {
6676 double arg1 ;
6677 double val1 ;
6678 0 int ecode1 = 0 ;
6679 0 int argvi = 0;
6680 gsl_complex result;
6681 0 dXSARGS;
6682
6683 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
6684 0 SWIG_croak("Usage: gsl_complex_arccsc_real(a);");
6685 }
6686 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
6687 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
6688 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arccsc_real" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arccsc_real" "', argument " "1"" of type '" "double""'"); 0 0 0
6689 }
6690 0 arg1 = (double)(val1);
6691 0 result = gsl_complex_arccsc_real(arg1);
6692 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6693
6694 0 XSRETURN(argvi);
6695 0 fail:
6696
6697 0 SWIG_croak_null();
6698 }
6699 }
6700  
6701  
6702 0 XS(_wrap_gsl_complex_arctan) {
6703 {
6704 gsl_complex arg1 ;
6705 void *argp1 ;
6706 0 int res1 = 0 ;
6707 0 int argvi = 0;
6708 SV * _saved[1] ;
6709 gsl_complex result;
6710 0 dXSARGS;
6711
6712 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
6713 0 SWIG_croak("Usage: gsl_complex_arctan(a);");
6714 }
6715 {
6716 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6717 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6718 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arctan" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arctan" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6719 }
6720 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6721 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arctan" "', argument " "1"" of type '" "gsl_complex""'");
6722 } else {
6723 0 arg1 = *((gsl_complex *)(argp1));
6724 }
6725 }
6726 0 _saved[0] = ST(0);
6727 0 result = gsl_complex_arctan(arg1);
6728 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6729 {
6730 0 AV* tempav = newAV();
6731 double x,y;
6732 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6733 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6734 }
6735 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6736 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6737
6738 0 ST(argvi) = sv_newmortal();
6739
6740 0 x = GSL_REAL(arg1);
6741 0 y = GSL_IMAG(arg1);
6742
6743 /* the next 2 lines blow up
6744 sv_setnv(ST(argvi), x);
6745 argvi++;
6746 */
6747 }
6748 0 XSRETURN(argvi);
6749 0 fail:
6750 0 SWIG_croak_null();
6751 }
6752 }
6753  
6754  
6755 0 XS(_wrap_gsl_complex_arccot) {
6756 {
6757 gsl_complex arg1 ;
6758 void *argp1 ;
6759 0 int res1 = 0 ;
6760 0 int argvi = 0;
6761 SV * _saved[1] ;
6762 gsl_complex result;
6763 0 dXSARGS;
6764
6765 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
6766 0 SWIG_croak("Usage: gsl_complex_arccot(a);");
6767 }
6768 {
6769 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6770 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6771 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccot" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccot" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6772 }
6773 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6774 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arccot" "', argument " "1"" of type '" "gsl_complex""'");
6775 } else {
6776 0 arg1 = *((gsl_complex *)(argp1));
6777 }
6778 }
6779 0 _saved[0] = ST(0);
6780 0 result = gsl_complex_arccot(arg1);
6781 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6782 {
6783 0 AV* tempav = newAV();
6784 double x,y;
6785 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6786 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6787 }
6788 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6789 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6790
6791 0 ST(argvi) = sv_newmortal();
6792
6793 0 x = GSL_REAL(arg1);
6794 0 y = GSL_IMAG(arg1);
6795
6796 /* the next 2 lines blow up
6797 sv_setnv(ST(argvi), x);
6798 argvi++;
6799 */
6800 }
6801 0 XSRETURN(argvi);
6802 0 fail:
6803 0 SWIG_croak_null();
6804 }
6805 }
6806  
6807  
6808 0 XS(_wrap_gsl_complex_sinh) {
6809 {
6810 gsl_complex arg1 ;
6811 void *argp1 ;
6812 0 int res1 = 0 ;
6813 0 int argvi = 0;
6814 SV * _saved[1] ;
6815 gsl_complex result;
6816 0 dXSARGS;
6817
6818 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
6819 0 SWIG_croak("Usage: gsl_complex_sinh(a);");
6820 }
6821 {
6822 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6823 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6824 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sinh" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sinh" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6825 }
6826 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6827 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sinh" "', argument " "1"" of type '" "gsl_complex""'");
6828 } else {
6829 0 arg1 = *((gsl_complex *)(argp1));
6830 }
6831 }
6832 0 _saved[0] = ST(0);
6833 0 result = gsl_complex_sinh(arg1);
6834 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6835 {
6836 0 AV* tempav = newAV();
6837 double x,y;
6838 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6839 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6840 }
6841 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6842 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6843
6844 0 ST(argvi) = sv_newmortal();
6845
6846 0 x = GSL_REAL(arg1);
6847 0 y = GSL_IMAG(arg1);
6848
6849 /* the next 2 lines blow up
6850 sv_setnv(ST(argvi), x);
6851 argvi++;
6852 */
6853 }
6854 0 XSRETURN(argvi);
6855 0 fail:
6856 0 SWIG_croak_null();
6857 }
6858 }
6859  
6860  
6861 0 XS(_wrap_gsl_complex_cosh) {
6862 {
6863 gsl_complex arg1 ;
6864 void *argp1 ;
6865 0 int res1 = 0 ;
6866 0 int argvi = 0;
6867 SV * _saved[1] ;
6868 gsl_complex result;
6869 0 dXSARGS;
6870
6871 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
6872 0 SWIG_croak("Usage: gsl_complex_cosh(a);");
6873 }
6874 {
6875 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6876 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6877 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_cosh" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_cosh" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6878 }
6879 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6880 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_cosh" "', argument " "1"" of type '" "gsl_complex""'");
6881 } else {
6882 0 arg1 = *((gsl_complex *)(argp1));
6883 }
6884 }
6885 0 _saved[0] = ST(0);
6886 0 result = gsl_complex_cosh(arg1);
6887 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6888 {
6889 0 AV* tempav = newAV();
6890 double x,y;
6891 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6892 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6893 }
6894 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6895 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6896
6897 0 ST(argvi) = sv_newmortal();
6898
6899 0 x = GSL_REAL(arg1);
6900 0 y = GSL_IMAG(arg1);
6901
6902 /* the next 2 lines blow up
6903 sv_setnv(ST(argvi), x);
6904 argvi++;
6905 */
6906 }
6907 0 XSRETURN(argvi);
6908 0 fail:
6909 0 SWIG_croak_null();
6910 }
6911 }
6912  
6913  
6914 0 XS(_wrap_gsl_complex_sech) {
6915 {
6916 gsl_complex arg1 ;
6917 void *argp1 ;
6918 0 int res1 = 0 ;
6919 0 int argvi = 0;
6920 SV * _saved[1] ;
6921 gsl_complex result;
6922 0 dXSARGS;
6923
6924 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
6925 0 SWIG_croak("Usage: gsl_complex_sech(a);");
6926 }
6927 {
6928 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6929 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6930 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sech" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_sech" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6931 }
6932 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6933 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_sech" "', argument " "1"" of type '" "gsl_complex""'");
6934 } else {
6935 0 arg1 = *((gsl_complex *)(argp1));
6936 }
6937 }
6938 0 _saved[0] = ST(0);
6939 0 result = gsl_complex_sech(arg1);
6940 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6941 {
6942 0 AV* tempav = newAV();
6943 double x,y;
6944 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6945 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6946 }
6947 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
6948 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
6949
6950 0 ST(argvi) = sv_newmortal();
6951
6952 0 x = GSL_REAL(arg1);
6953 0 y = GSL_IMAG(arg1);
6954
6955 /* the next 2 lines blow up
6956 sv_setnv(ST(argvi), x);
6957 argvi++;
6958 */
6959 }
6960 0 XSRETURN(argvi);
6961 0 fail:
6962 0 SWIG_croak_null();
6963 }
6964 }
6965  
6966  
6967 0 XS(_wrap_gsl_complex_csch) {
6968 {
6969 gsl_complex arg1 ;
6970 void *argp1 ;
6971 0 int res1 = 0 ;
6972 0 int argvi = 0;
6973 SV * _saved[1] ;
6974 gsl_complex result;
6975 0 dXSARGS;
6976
6977 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
6978 0 SWIG_croak("Usage: gsl_complex_csch(a);");
6979 }
6980 {
6981 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
6982 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
6983 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_csch" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_csch" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
6984 }
6985 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
6986 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_csch" "', argument " "1"" of type '" "gsl_complex""'");
6987 } else {
6988 0 arg1 = *((gsl_complex *)(argp1));
6989 }
6990 }
6991 0 _saved[0] = ST(0);
6992 0 result = gsl_complex_csch(arg1);
6993 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
6994 {
6995 0 AV* tempav = newAV();
6996 double x,y;
6997 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
6998 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
6999 }
7000 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7001 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7002
7003 0 ST(argvi) = sv_newmortal();
7004
7005 0 x = GSL_REAL(arg1);
7006 0 y = GSL_IMAG(arg1);
7007
7008 /* the next 2 lines blow up
7009 sv_setnv(ST(argvi), x);
7010 argvi++;
7011 */
7012 }
7013 0 XSRETURN(argvi);
7014 0 fail:
7015 0 SWIG_croak_null();
7016 }
7017 }
7018  
7019  
7020 0 XS(_wrap_gsl_complex_tanh) {
7021 {
7022 gsl_complex arg1 ;
7023 void *argp1 ;
7024 0 int res1 = 0 ;
7025 0 int argvi = 0;
7026 SV * _saved[1] ;
7027 gsl_complex result;
7028 0 dXSARGS;
7029
7030 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
7031 0 SWIG_croak("Usage: gsl_complex_tanh(a);");
7032 }
7033 {
7034 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7035 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7036 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_tanh" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_tanh" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7037 }
7038 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7039 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_tanh" "', argument " "1"" of type '" "gsl_complex""'");
7040 } else {
7041 0 arg1 = *((gsl_complex *)(argp1));
7042 }
7043 }
7044 0 _saved[0] = ST(0);
7045 0 result = gsl_complex_tanh(arg1);
7046 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7047 {
7048 0 AV* tempav = newAV();
7049 double x,y;
7050 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7051 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7052 }
7053 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7054 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7055
7056 0 ST(argvi) = sv_newmortal();
7057
7058 0 x = GSL_REAL(arg1);
7059 0 y = GSL_IMAG(arg1);
7060
7061 /* the next 2 lines blow up
7062 sv_setnv(ST(argvi), x);
7063 argvi++;
7064 */
7065 }
7066 0 XSRETURN(argvi);
7067 0 fail:
7068 0 SWIG_croak_null();
7069 }
7070 }
7071  
7072  
7073 0 XS(_wrap_gsl_complex_coth) {
7074 {
7075 gsl_complex arg1 ;
7076 void *argp1 ;
7077 0 int res1 = 0 ;
7078 0 int argvi = 0;
7079 SV * _saved[1] ;
7080 gsl_complex result;
7081 0 dXSARGS;
7082
7083 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
7084 0 SWIG_croak("Usage: gsl_complex_coth(a);");
7085 }
7086 {
7087 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7088 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7089 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_coth" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_coth" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7090 }
7091 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7092 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_coth" "', argument " "1"" of type '" "gsl_complex""'");
7093 } else {
7094 0 arg1 = *((gsl_complex *)(argp1));
7095 }
7096 }
7097 0 _saved[0] = ST(0);
7098 0 result = gsl_complex_coth(arg1);
7099 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7100 {
7101 0 AV* tempav = newAV();
7102 double x,y;
7103 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7104 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7105 }
7106 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7107 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7108
7109 0 ST(argvi) = sv_newmortal();
7110
7111 0 x = GSL_REAL(arg1);
7112 0 y = GSL_IMAG(arg1);
7113
7114 /* the next 2 lines blow up
7115 sv_setnv(ST(argvi), x);
7116 argvi++;
7117 */
7118 }
7119 0 XSRETURN(argvi);
7120 0 fail:
7121 0 SWIG_croak_null();
7122 }
7123 }
7124  
7125  
7126 0 XS(_wrap_gsl_complex_arcsinh) {
7127 {
7128 gsl_complex arg1 ;
7129 void *argp1 ;
7130 0 int res1 = 0 ;
7131 0 int argvi = 0;
7132 SV * _saved[1] ;
7133 gsl_complex result;
7134 0 dXSARGS;
7135
7136 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
7137 0 SWIG_croak("Usage: gsl_complex_arcsinh(a);");
7138 }
7139 {
7140 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7141 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7142 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsinh" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsinh" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7143 }
7144 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7145 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arcsinh" "', argument " "1"" of type '" "gsl_complex""'");
7146 } else {
7147 0 arg1 = *((gsl_complex *)(argp1));
7148 }
7149 }
7150 0 _saved[0] = ST(0);
7151 0 result = gsl_complex_arcsinh(arg1);
7152 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7153 {
7154 0 AV* tempav = newAV();
7155 double x,y;
7156 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7157 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7158 }
7159 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7160 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7161
7162 0 ST(argvi) = sv_newmortal();
7163
7164 0 x = GSL_REAL(arg1);
7165 0 y = GSL_IMAG(arg1);
7166
7167 /* the next 2 lines blow up
7168 sv_setnv(ST(argvi), x);
7169 argvi++;
7170 */
7171 }
7172 0 XSRETURN(argvi);
7173 0 fail:
7174 0 SWIG_croak_null();
7175 }
7176 }
7177  
7178  
7179 0 XS(_wrap_gsl_complex_arccosh) {
7180 {
7181 gsl_complex arg1 ;
7182 void *argp1 ;
7183 0 int res1 = 0 ;
7184 0 int argvi = 0;
7185 SV * _saved[1] ;
7186 gsl_complex result;
7187 0 dXSARGS;
7188
7189 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
7190 0 SWIG_croak("Usage: gsl_complex_arccosh(a);");
7191 }
7192 {
7193 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7194 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7195 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccosh" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccosh" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7196 }
7197 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7198 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arccosh" "', argument " "1"" of type '" "gsl_complex""'");
7199 } else {
7200 0 arg1 = *((gsl_complex *)(argp1));
7201 }
7202 }
7203 0 _saved[0] = ST(0);
7204 0 result = gsl_complex_arccosh(arg1);
7205 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7206 {
7207 0 AV* tempav = newAV();
7208 double x,y;
7209 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7210 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7211 }
7212 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7213 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7214
7215 0 ST(argvi) = sv_newmortal();
7216
7217 0 x = GSL_REAL(arg1);
7218 0 y = GSL_IMAG(arg1);
7219
7220 /* the next 2 lines blow up
7221 sv_setnv(ST(argvi), x);
7222 argvi++;
7223 */
7224 }
7225 0 XSRETURN(argvi);
7226 0 fail:
7227 0 SWIG_croak_null();
7228 }
7229 }
7230  
7231  
7232 0 XS(_wrap_gsl_complex_arccosh_real) {
7233 {
7234 double arg1 ;
7235 double val1 ;
7236 0 int ecode1 = 0 ;
7237 0 int argvi = 0;
7238 gsl_complex result;
7239 0 dXSARGS;
7240
7241 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
7242 0 SWIG_croak("Usage: gsl_complex_arccosh_real(a);");
7243 }
7244 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
7245 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
7246 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arccosh_real" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arccosh_real" "', argument " "1"" of type '" "double""'"); 0 0 0
7247 }
7248 0 arg1 = (double)(val1);
7249 0 result = gsl_complex_arccosh_real(arg1);
7250 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7251
7252 0 XSRETURN(argvi);
7253 0 fail:
7254
7255 0 SWIG_croak_null();
7256 }
7257 }
7258  
7259  
7260 0 XS(_wrap_gsl_complex_arcsech) {
7261 {
7262 gsl_complex arg1 ;
7263 void *argp1 ;
7264 0 int res1 = 0 ;
7265 0 int argvi = 0;
7266 SV * _saved[1] ;
7267 gsl_complex result;
7268 0 dXSARGS;
7269
7270 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
7271 0 SWIG_croak("Usage: gsl_complex_arcsech(a);");
7272 }
7273 {
7274 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7275 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7276 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsech" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arcsech" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7277 }
7278 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7279 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arcsech" "', argument " "1"" of type '" "gsl_complex""'");
7280 } else {
7281 0 arg1 = *((gsl_complex *)(argp1));
7282 }
7283 }
7284 0 _saved[0] = ST(0);
7285 0 result = gsl_complex_arcsech(arg1);
7286 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7287 {
7288 0 AV* tempav = newAV();
7289 double x,y;
7290 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7291 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7292 }
7293 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7294 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7295
7296 0 ST(argvi) = sv_newmortal();
7297
7298 0 x = GSL_REAL(arg1);
7299 0 y = GSL_IMAG(arg1);
7300
7301 /* the next 2 lines blow up
7302 sv_setnv(ST(argvi), x);
7303 argvi++;
7304 */
7305 }
7306 0 XSRETURN(argvi);
7307 0 fail:
7308 0 SWIG_croak_null();
7309 }
7310 }
7311  
7312  
7313 0 XS(_wrap_gsl_complex_arccsch) {
7314 {
7315 gsl_complex arg1 ;
7316 void *argp1 ;
7317 0 int res1 = 0 ;
7318 0 int argvi = 0;
7319 SV * _saved[1] ;
7320 gsl_complex result;
7321 0 dXSARGS;
7322
7323 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
7324 0 SWIG_croak("Usage: gsl_complex_arccsch(a);");
7325 }
7326 {
7327 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7328 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7329 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccsch" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccsch" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7330 }
7331 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7332 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arccsch" "', argument " "1"" of type '" "gsl_complex""'");
7333 } else {
7334 0 arg1 = *((gsl_complex *)(argp1));
7335 }
7336 }
7337 0 _saved[0] = ST(0);
7338 0 result = gsl_complex_arccsch(arg1);
7339 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7340 {
7341 0 AV* tempav = newAV();
7342 double x,y;
7343 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7344 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7345 }
7346 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7347 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7348
7349 0 ST(argvi) = sv_newmortal();
7350
7351 0 x = GSL_REAL(arg1);
7352 0 y = GSL_IMAG(arg1);
7353
7354 /* the next 2 lines blow up
7355 sv_setnv(ST(argvi), x);
7356 argvi++;
7357 */
7358 }
7359 0 XSRETURN(argvi);
7360 0 fail:
7361 0 SWIG_croak_null();
7362 }
7363 }
7364  
7365  
7366 0 XS(_wrap_gsl_complex_arctanh) {
7367 {
7368 gsl_complex arg1 ;
7369 void *argp1 ;
7370 0 int res1 = 0 ;
7371 0 int argvi = 0;
7372 SV * _saved[1] ;
7373 gsl_complex result;
7374 0 dXSARGS;
7375
7376 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
7377 0 SWIG_croak("Usage: gsl_complex_arctanh(a);");
7378 }
7379 {
7380 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7381 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7382 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arctanh" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arctanh" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7383 }
7384 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7385 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arctanh" "', argument " "1"" of type '" "gsl_complex""'");
7386 } else {
7387 0 arg1 = *((gsl_complex *)(argp1));
7388 }
7389 }
7390 0 _saved[0] = ST(0);
7391 0 result = gsl_complex_arctanh(arg1);
7392 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7393 {
7394 0 AV* tempav = newAV();
7395 double x,y;
7396 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7397 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7398 }
7399 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7400 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7401
7402 0 ST(argvi) = sv_newmortal();
7403
7404 0 x = GSL_REAL(arg1);
7405 0 y = GSL_IMAG(arg1);
7406
7407 /* the next 2 lines blow up
7408 sv_setnv(ST(argvi), x);
7409 argvi++;
7410 */
7411 }
7412 0 XSRETURN(argvi);
7413 0 fail:
7414 0 SWIG_croak_null();
7415 }
7416 }
7417  
7418  
7419 0 XS(_wrap_gsl_complex_arctanh_real) {
7420 {
7421 double arg1 ;
7422 double val1 ;
7423 0 int ecode1 = 0 ;
7424 0 int argvi = 0;
7425 gsl_complex result;
7426 0 dXSARGS;
7427
7428 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
7429 0 SWIG_croak("Usage: gsl_complex_arctanh_real(a);");
7430 }
7431 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
7432 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
7433 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arctanh_real" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_complex_arctanh_real" "', argument " "1"" of type '" "double""'"); 0 0 0
7434 }
7435 0 arg1 = (double)(val1);
7436 0 result = gsl_complex_arctanh_real(arg1);
7437 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7438
7439 0 XSRETURN(argvi);
7440 0 fail:
7441
7442 0 SWIG_croak_null();
7443 }
7444 }
7445  
7446  
7447 0 XS(_wrap_gsl_complex_arccoth) {
7448 {
7449 gsl_complex arg1 ;
7450 void *argp1 ;
7451 0 int res1 = 0 ;
7452 0 int argvi = 0;
7453 SV * _saved[1] ;
7454 gsl_complex result;
7455 0 dXSARGS;
7456
7457 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
7458 0 SWIG_croak("Usage: gsl_complex_arccoth(a);");
7459 }
7460 {
7461 0 res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_gsl_complex, 0 );
7462 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
7463 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccoth" "', argument " "1"" of type '" "gsl_complex""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_complex_arccoth" "', argument " "1"" of type '" "gsl_complex""'"); 0 0 0
7464 }
7465 0 ▶ if (!argp1) {
Branch: 1 branch
BranchTrueFalseTotal
if (!argp1) { 0 0 0
7466 0 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "gsl_complex_arccoth" "', argument " "1"" of type '" "gsl_complex""'");
7467 } else {
7468 0 arg1 = *((gsl_complex *)(argp1));
7469 }
7470 }
7471 0 _saved[0] = ST(0);
7472 0 result = gsl_complex_arccoth(arg1);
7473 0 ST(argvi) = SWIG_NewPointerObj((gsl_complex *)memcpy((gsl_complex *)calloc(1,sizeof(gsl_complex)),&result,sizeof(gsl_complex)), SWIGTYPE_p_gsl_complex, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
7474 {
7475 0 AV* tempav = newAV();
7476 double x,y;
7477 0 ▶ if (argvi >= items) {
Branch: 1 branch
BranchTrueFalseTotal
if (argvi >= items) { 0 0 0
7478 0 ▶ EXTEND(sp,1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(sp,1); 0 0 0
7479 }
7480 //fprintf(stderr,"--> %g <--\n", GSL_REAL(arg1));
7481 //fprintf(stderr,"--> %g <--\n", GSL_IMAG(arg1));
7482
7483 0 ST(argvi) = sv_newmortal();
7484
7485 0 x = GSL_REAL(arg1);
7486 0 y = GSL_IMAG(arg1);
7487
7488 /* the next 2 lines blow up
7489 sv_setnv(ST(argvi), x);
7490 argvi++;
7491 */
7492 }
7493 0 XSRETURN(argvi);
7494 0 fail:
7495 0 SWIG_croak_null();
7496 }
7497 }
7498  
7499  
7500  
7501 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7502  
7503 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
7504 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7505 static swig_type_info _swigt__p_double = {"_p_double", "gsl_complex_packed_ptr|double *", 0, 0, (void*)0, 0};
7506 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};
7507 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};
7508 static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0};
7509 static swig_type_info _swigt__p_gsl_complex = {"_p_gsl_complex", "gsl_complex *", 0, 0, (void*)"Math::GSL::Poly::gsl_complex", 0};
7510 static swig_type_info _swigt__p_gsl_complex_float = {"_p_gsl_complex_float", "gsl_complex_float *", 0, 0, (void*)"Math::GSL::Poly::gsl_complex_float", 0};
7511 static swig_type_info _swigt__p_gsl_complex_long_double = {"_p_gsl_complex_long_double", "gsl_complex_long_double *", 0, 0, (void*)"Math::GSL::Poly::gsl_complex_long_double", 0};
7512 static swig_type_info _swigt__p_gsl_poly_complex_workspace = {"_p_gsl_poly_complex_workspace", "gsl_poly_complex_workspace *", 0, 0, (void*)"Math::GSL::Poly::gsl_poly_complex_workspace", 0};
7513 static swig_type_info _swigt__p_long_double = {"_p_long_double", "long double *", 0, 0, (void*)0, 0};
7514  
7515 static swig_type_info *swig_type_initial[] = {
7516 &_swigt__p_FILE,
7517 &_swigt__p_char,
7518 &_swigt__p_double,
7519 &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void,
7520 &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
7521 &_swigt__p_float,
7522 &_swigt__p_gsl_complex,
7523 &_swigt__p_gsl_complex_float,
7524 &_swigt__p_gsl_complex_long_double,
7525 &_swigt__p_gsl_poly_complex_workspace,
7526 &_swigt__p_long_double,
7527 };
7528  
7529 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
7530 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7531 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
7532 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}};
7533 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}};
7534 static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
7535 static swig_cast_info _swigc__p_gsl_complex[] = { {&_swigt__p_gsl_complex, 0, 0, 0},{0, 0, 0, 0}};
7536 static swig_cast_info _swigc__p_gsl_complex_float[] = { {&_swigt__p_gsl_complex_float, 0, 0, 0},{0, 0, 0, 0}};
7537 static swig_cast_info _swigc__p_gsl_complex_long_double[] = { {&_swigt__p_gsl_complex_long_double, 0, 0, 0},{0, 0, 0, 0}};
7538 static swig_cast_info _swigc__p_gsl_poly_complex_workspace[] = { {&_swigt__p_gsl_poly_complex_workspace, 0, 0, 0},{0, 0, 0, 0}};
7539 static swig_cast_info _swigc__p_long_double[] = { {&_swigt__p_long_double, 0, 0, 0},{0, 0, 0, 0}};
7540  
7541 static swig_cast_info *swig_cast_initial[] = {
7542 _swigc__p_FILE,
7543 _swigc__p_char,
7544 _swigc__p_double,
7545 _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void,
7546 _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
7547 _swigc__p_float,
7548 _swigc__p_gsl_complex,
7549 _swigc__p_gsl_complex_float,
7550 _swigc__p_gsl_complex_long_double,
7551 _swigc__p_gsl_poly_complex_workspace,
7552 _swigc__p_long_double,
7553 };
7554  
7555  
7556 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7557  
7558 static swig_constant_info swig_constants[] = {
7559 {0,0,0,0,0,0}
7560 };
7561 #ifdef __cplusplus
7562 }
7563 #endif
7564 static swig_variable_info swig_variables[] = {
7565 {0,0,0,0}
7566 };
7567 static swig_command_info swig_commands[] = {
7568 {"Math::GSL::Polyc::gsl_error", _wrap_gsl_error},
7569 {"Math::GSL::Polyc::gsl_stream_printf", _wrap_gsl_stream_printf},
7570 {"Math::GSL::Polyc::gsl_strerror", _wrap_gsl_strerror},
7571 {"Math::GSL::Polyc::gsl_set_error_handler", _wrap_gsl_set_error_handler},
7572 {"Math::GSL::Polyc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off},
7573 {"Math::GSL::Polyc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler},
7574 {"Math::GSL::Polyc::gsl_set_stream", _wrap_gsl_set_stream},
7575 {"Math::GSL::Polyc::gsl_poly_eval", _wrap_gsl_poly_eval},
7576 {"Math::GSL::Polyc::gsl_poly_complex_eval", _wrap_gsl_poly_complex_eval},
7577 {"Math::GSL::Polyc::gsl_complex_poly_complex_eval", _wrap_gsl_complex_poly_complex_eval},
7578 {"Math::GSL::Polyc::gsl_poly_eval_derivs", _wrap_gsl_poly_eval_derivs},
7579 {"Math::GSL::Polyc::gsl_poly_dd_init", _wrap_gsl_poly_dd_init},
7580 {"Math::GSL::Polyc::gsl_poly_dd_eval", _wrap_gsl_poly_dd_eval},
7581 {"Math::GSL::Polyc::gsl_poly_dd_taylor", _wrap_gsl_poly_dd_taylor},
7582 {"Math::GSL::Polyc::gsl_poly_dd_hermite_init", _wrap_gsl_poly_dd_hermite_init},
7583 {"Math::GSL::Polyc::gsl_poly_solve_quadratic", _wrap_gsl_poly_solve_quadratic},
7584 {"Math::GSL::Polyc::gsl_poly_complex_solve_quadratic", _wrap_gsl_poly_complex_solve_quadratic},
7585 {"Math::GSL::Polyc::gsl_poly_solve_cubic", _wrap_gsl_poly_solve_cubic},
7586 {"Math::GSL::Polyc::gsl_poly_complex_solve_cubic", _wrap_gsl_poly_complex_solve_cubic},
7587 {"Math::GSL::Polyc::gsl_poly_complex_workspace_nc_set", _wrap_gsl_poly_complex_workspace_nc_set},
7588 {"Math::GSL::Polyc::gsl_poly_complex_workspace_nc_get", _wrap_gsl_poly_complex_workspace_nc_get},
7589 {"Math::GSL::Polyc::gsl_poly_complex_workspace_matrix_set", _wrap_gsl_poly_complex_workspace_matrix_set},
7590 {"Math::GSL::Polyc::gsl_poly_complex_workspace_matrix_get", _wrap_gsl_poly_complex_workspace_matrix_get},
7591 {"Math::GSL::Polyc::new_gsl_poly_complex_workspace", _wrap_new_gsl_poly_complex_workspace},
7592 {"Math::GSL::Polyc::delete_gsl_poly_complex_workspace", _wrap_delete_gsl_poly_complex_workspace},
7593 {"Math::GSL::Polyc::gsl_poly_complex_workspace_alloc", _wrap_gsl_poly_complex_workspace_alloc},
7594 {"Math::GSL::Polyc::gsl_poly_complex_workspace_free", _wrap_gsl_poly_complex_workspace_free},
7595 {"Math::GSL::Polyc::gsl_poly_complex_solve", _wrap_gsl_poly_complex_solve},
7596 {"Math::GSL::Polyc::gsl_complex_dat_set", _wrap_gsl_complex_dat_set},
7597 {"Math::GSL::Polyc::gsl_complex_dat_get", _wrap_gsl_complex_dat_get},
7598 {"Math::GSL::Polyc::new_gsl_complex", _wrap_new_gsl_complex},
7599 {"Math::GSL::Polyc::delete_gsl_complex", _wrap_delete_gsl_complex},
7600 {"Math::GSL::Polyc::gsl_complex_long_double_dat_set", _wrap_gsl_complex_long_double_dat_set},
7601 {"Math::GSL::Polyc::gsl_complex_long_double_dat_get", _wrap_gsl_complex_long_double_dat_get},
7602 {"Math::GSL::Polyc::new_gsl_complex_long_double", _wrap_new_gsl_complex_long_double},
7603 {"Math::GSL::Polyc::delete_gsl_complex_long_double", _wrap_delete_gsl_complex_long_double},
7604 {"Math::GSL::Polyc::gsl_complex_float_dat_set", _wrap_gsl_complex_float_dat_set},
7605 {"Math::GSL::Polyc::gsl_complex_float_dat_get", _wrap_gsl_complex_float_dat_get},
7606 {"Math::GSL::Polyc::new_gsl_complex_float", _wrap_new_gsl_complex_float},
7607 {"Math::GSL::Polyc::delete_gsl_complex_float", _wrap_delete_gsl_complex_float},
7608 {"Math::GSL::Polyc::gsl_complex_polar", _wrap_gsl_complex_polar},
7609 {"Math::GSL::Polyc::gsl_complex_rect", _wrap_gsl_complex_rect},
7610 {"Math::GSL::Polyc::gsl_complex_arg", _wrap_gsl_complex_arg},
7611 {"Math::GSL::Polyc::gsl_complex_abs", _wrap_gsl_complex_abs},
7612 {"Math::GSL::Polyc::gsl_complex_abs2", _wrap_gsl_complex_abs2},
7613 {"Math::GSL::Polyc::gsl_complex_logabs", _wrap_gsl_complex_logabs},
7614 {"Math::GSL::Polyc::gsl_complex_add", _wrap_gsl_complex_add},
7615 {"Math::GSL::Polyc::gsl_complex_sub", _wrap_gsl_complex_sub},
7616 {"Math::GSL::Polyc::gsl_complex_mul", _wrap_gsl_complex_mul},
7617 {"Math::GSL::Polyc::gsl_complex_div", _wrap_gsl_complex_div},
7618 {"Math::GSL::Polyc::gsl_complex_add_real", _wrap_gsl_complex_add_real},
7619 {"Math::GSL::Polyc::gsl_complex_sub_real", _wrap_gsl_complex_sub_real},
7620 {"Math::GSL::Polyc::gsl_complex_mul_real", _wrap_gsl_complex_mul_real},
7621 {"Math::GSL::Polyc::gsl_complex_div_real", _wrap_gsl_complex_div_real},
7622 {"Math::GSL::Polyc::gsl_complex_add_imag", _wrap_gsl_complex_add_imag},
7623 {"Math::GSL::Polyc::gsl_complex_sub_imag", _wrap_gsl_complex_sub_imag},
7624 {"Math::GSL::Polyc::gsl_complex_mul_imag", _wrap_gsl_complex_mul_imag},
7625 {"Math::GSL::Polyc::gsl_complex_div_imag", _wrap_gsl_complex_div_imag},
7626 {"Math::GSL::Polyc::gsl_complex_conjugate", _wrap_gsl_complex_conjugate},
7627 {"Math::GSL::Polyc::gsl_complex_inverse", _wrap_gsl_complex_inverse},
7628 {"Math::GSL::Polyc::gsl_complex_negative", _wrap_gsl_complex_negative},
7629 {"Math::GSL::Polyc::gsl_complex_sqrt", _wrap_gsl_complex_sqrt},
7630 {"Math::GSL::Polyc::gsl_complex_sqrt_real", _wrap_gsl_complex_sqrt_real},
7631 {"Math::GSL::Polyc::gsl_complex_pow", _wrap_gsl_complex_pow},
7632 {"Math::GSL::Polyc::gsl_complex_pow_real", _wrap_gsl_complex_pow_real},
7633 {"Math::GSL::Polyc::gsl_complex_exp", _wrap_gsl_complex_exp},
7634 {"Math::GSL::Polyc::gsl_complex_log", _wrap_gsl_complex_log},
7635 {"Math::GSL::Polyc::gsl_complex_log10", _wrap_gsl_complex_log10},
7636 {"Math::GSL::Polyc::gsl_complex_log_b", _wrap_gsl_complex_log_b},
7637 {"Math::GSL::Polyc::gsl_complex_sin", _wrap_gsl_complex_sin},
7638 {"Math::GSL::Polyc::gsl_complex_cos", _wrap_gsl_complex_cos},
7639 {"Math::GSL::Polyc::gsl_complex_sec", _wrap_gsl_complex_sec},
7640 {"Math::GSL::Polyc::gsl_complex_csc", _wrap_gsl_complex_csc},
7641 {"Math::GSL::Polyc::gsl_complex_tan", _wrap_gsl_complex_tan},
7642 {"Math::GSL::Polyc::gsl_complex_cot", _wrap_gsl_complex_cot},
7643 {"Math::GSL::Polyc::gsl_complex_arcsin", _wrap_gsl_complex_arcsin},
7644 {"Math::GSL::Polyc::gsl_complex_arcsin_real", _wrap_gsl_complex_arcsin_real},
7645 {"Math::GSL::Polyc::gsl_complex_arccos", _wrap_gsl_complex_arccos},
7646 {"Math::GSL::Polyc::gsl_complex_arccos_real", _wrap_gsl_complex_arccos_real},
7647 {"Math::GSL::Polyc::gsl_complex_arcsec", _wrap_gsl_complex_arcsec},
7648 {"Math::GSL::Polyc::gsl_complex_arcsec_real", _wrap_gsl_complex_arcsec_real},
7649 {"Math::GSL::Polyc::gsl_complex_arccsc", _wrap_gsl_complex_arccsc},
7650 {"Math::GSL::Polyc::gsl_complex_arccsc_real", _wrap_gsl_complex_arccsc_real},
7651 {"Math::GSL::Polyc::gsl_complex_arctan", _wrap_gsl_complex_arctan},
7652 {"Math::GSL::Polyc::gsl_complex_arccot", _wrap_gsl_complex_arccot},
7653 {"Math::GSL::Polyc::gsl_complex_sinh", _wrap_gsl_complex_sinh},
7654 {"Math::GSL::Polyc::gsl_complex_cosh", _wrap_gsl_complex_cosh},
7655 {"Math::GSL::Polyc::gsl_complex_sech", _wrap_gsl_complex_sech},
7656 {"Math::GSL::Polyc::gsl_complex_csch", _wrap_gsl_complex_csch},
7657 {"Math::GSL::Polyc::gsl_complex_tanh", _wrap_gsl_complex_tanh},
7658 {"Math::GSL::Polyc::gsl_complex_coth", _wrap_gsl_complex_coth},
7659 {"Math::GSL::Polyc::gsl_complex_arcsinh", _wrap_gsl_complex_arcsinh},
7660 {"Math::GSL::Polyc::gsl_complex_arccosh", _wrap_gsl_complex_arccosh},
7661 {"Math::GSL::Polyc::gsl_complex_arccosh_real", _wrap_gsl_complex_arccosh_real},
7662 {"Math::GSL::Polyc::gsl_complex_arcsech", _wrap_gsl_complex_arcsech},
7663 {"Math::GSL::Polyc::gsl_complex_arccsch", _wrap_gsl_complex_arccsch},
7664 {"Math::GSL::Polyc::gsl_complex_arctanh", _wrap_gsl_complex_arctanh},
7665 {"Math::GSL::Polyc::gsl_complex_arctanh_real", _wrap_gsl_complex_arctanh_real},
7666 {"Math::GSL::Polyc::gsl_complex_arccoth", _wrap_gsl_complex_arccoth},
7667 {0,0}
7668 };
7669 /* -----------------------------------------------------------------------------
7670 * Type initialization:
7671 * This problem is tough by the requirement that no dynamic
7672 * memory is used. Also, since swig_type_info structures store pointers to
7673 * swig_cast_info structures and swig_cast_info structures store pointers back
7674 * to swig_type_info structures, we need some lookup code at initialization.
7675 * The idea is that swig generates all the structures that are needed.
7676 * The runtime then collects these partially filled structures.
7677 * The SWIG_InitializeModule function takes these initial arrays out of
7678 * swig_module, and does all the lookup, filling in the swig_module.types
7679 * array with the correct data and linking the correct swig_cast_info
7680 * structures together.
7681 *
7682 * The generated swig_type_info structures are assigned statically to an initial
7683 * array. We just loop through that array, and handle each type individually.
7684 * First we lookup if this type has been already loaded, and if so, use the
7685 * loaded structure instead of the generated one. Then we have to fill in the
7686 * cast linked list. The cast data is initially stored in something like a
7687 * two-dimensional array. Each row corresponds to a type (there are the same
7688 * number of rows as there are in the swig_type_initial array). Each entry in
7689 * a column is one of the swig_cast_info structures for that type.
7690 * The cast_initial array is actually an array of arrays, because each row has
7691 * a variable number of columns. So to actually build the cast linked list,
7692 * we find the array of casts associated with the type, and loop through it
7693 * adding the casts to the list. The one last trick we need to do is making
7694 * sure the type pointer in the swig_cast_info struct is correct.
7695 *
7696 * First off, we lookup the cast->type name to see if it is already loaded.
7697 * There are three cases to handle:
7698 * 1) If the cast->type has already been loaded AND the type we are adding
7699 * casting info to has not been loaded (it is in this module), THEN we
7700 * replace the cast->type pointer with the type pointer that has already
7701 * been loaded.
7702 * 2) If BOTH types (the one we are adding casting info to, and the
7703 * cast->type) are loaded, THEN the cast info has already been loaded by
7704 * the previous module so we just ignore it.
7705 * 3) Finally, if cast->type has not already been loaded, then we add that
7706 * swig_cast_info to the linked list (because the cast->type) pointer will
7707 * be correct.
7708 * ----------------------------------------------------------------------------- */
7709  
7710 #ifdef __cplusplus
7711 extern "C" {
7712 #if 0
7713 } /* c-mode */
7714 #endif
7715 #endif
7716  
7717 #if 0
7718 #define SWIGRUNTIME_DEBUG
7719 #endif
7720  
7721 #ifndef SWIG_INIT_CLIENT_DATA_TYPE
7722 #define SWIG_INIT_CLIENT_DATA_TYPE void *
7723 #endif
7724  
7725 SWIGRUNTIME void
7726 0 SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
7727 size_t i;
7728 swig_module_info *module_head, *iter;
7729 int init;
7730
7731 /* check to see if the circular list has been setup, if not, set it up */
7732 0 ▶ if (swig_module.next==0) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next==0) { 0 0 0
7733 /* Initialize the swig_module */
7734 0 swig_module.type_initial = swig_type_initial;
7735 0 swig_module.cast_initial = swig_cast_initial;
7736 0 swig_module.next = &swig_module;
7737 0 init = 1;
7738 } else {
7739 0 init = 0;
7740 }
7741
7742 /* Try and load any already created modules */
7743 0 module_head = SWIG_GetModule(clientdata);
7744 0 ▶ if (!module_head) {
Branch: 1 branch
BranchTrueFalseTotal
if (!module_head) { 0 0 0
7745 /* This is the first module loaded for this interpreter */
7746 /* so set the swig module into the interpreter */
7747 0 SWIG_SetModule(clientdata, &swig_module);
7748 } else {
7749 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
7750 0 iter=module_head;
7751 do {
7752 0 ▶ if (iter==&swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter==&swig_module) { 0 0 0
7753 /* Our module is already in the list, so there's nothing more to do. */
7754 0 return;
7755 }
7756 0 iter=iter->next;
7757 0 ▶ } while (iter!= module_head);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter!= module_head); 0 0 0
7758
7759 /* otherwise we must add our module into the list */
7760 0 swig_module.next = module_head->next;
7761 0 module_head->next = &swig_module;
7762 }
7763
7764 /* When multiple interpreters are used, a module could have already been initialized in
7765 a different interpreter, but not yet have a pointer in this interpreter.
7766 In this case, we do not want to continue adding types... everything should be
7767 set up already */
7768 0 ▶ if (init == 0) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init == 0) return; 0 0 0
7769
7770 /* Now work on filling in swig_module.types */
7771 #ifdef SWIGRUNTIME_DEBUG
7772 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
7773 #endif
7774 0 ▶ for (i = 0; i < swig_module.size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; ++i) { 0 0 0
7775 0 swig_type_info *type = 0;
7776 swig_type_info *ret;
7777 swig_cast_info *cast;
7778
7779 #ifdef SWIGRUNTIME_DEBUG
7780 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
7781 #endif
7782
7783 /* if there is another module already loaded */
7784 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
7785 0 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
7786 }
7787 0 ▶ if (type) {
Branch: 1 branch
BranchTrueFalseTotal
if (type) { 0 0 0
7788 /* Overwrite clientdata field */
7789 #ifdef SWIGRUNTIME_DEBUG
7790 printf("SWIG_InitializeModule: found type %s\n", type->name);
7791 #endif
7792 0 ▶ if (swig_module.type_initial[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.type_initial[i]->clientdata) { 0 0 0
7793 0 type->clientdata = swig_module.type_initial[i]->clientdata;
7794 #ifdef SWIGRUNTIME_DEBUG
7795 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
7796 #endif
7797 }
7798 } else {
7799 0 type = swig_module.type_initial[i];
7800 }
7801
7802 /* Insert casting types */
7803 0 cast = swig_module.cast_initial[i];
7804 0 ▶ while (cast->type) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast->type) { 0 0 0
7805 /* Don't need to add information already in the list */
7806 0 ret = 0;
7807 #ifdef SWIGRUNTIME_DEBUG
7808 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
7809 #endif
7810 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
7811 0 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
7812 #ifdef SWIGRUNTIME_DEBUG
7813 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
7814 #endif
7815 }
7816 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
7817 0 ▶ if (type == swig_module.type_initial[i]) {
Branch: 1 branch
BranchTrueFalseTotal
if (type == swig_module.type_initial[i]) { 0 0 0
7818 #ifdef SWIGRUNTIME_DEBUG
7819 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
7820 #endif
7821 0 cast->type = ret;
7822 0 ret = 0;
7823 } else {
7824 /* Check for casting already in the list */
7825 0 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
7826 #ifdef SWIGRUNTIME_DEBUG
7827 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
7828 #endif
7829 0 ▶ if (!ocast) ret = 0;
Branch: 1 branch
BranchTrueFalseTotal
if (!ocast) ret = 0; 0 0 0
7830 }
7831 }
7832
7833 0 ▶ if (!ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (!ret) { 0 0 0
7834 #ifdef SWIGRUNTIME_DEBUG
7835 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
7836 #endif
7837 0 ▶ if (type->cast) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->cast) { 0 0 0
7838 0 type->cast->prev = cast;
7839 0 cast->next = type->cast;
7840 }
7841 0 type->cast = cast;
7842 }
7843 0 cast++;
7844 }
7845 /* Set entry in modules->types array equal to the type */
7846 0 swig_module.types[i] = type;
7847 }
7848 0 swig_module.types[i] = 0;
7849
7850 #ifdef SWIGRUNTIME_DEBUG
7851 printf("**** SWIG_InitializeModule: Cast List ******\n");
7852 for (i = 0; i < swig_module.size; ++i) {
7853 int j = 0;
7854 swig_cast_info *cast = swig_module.cast_initial[i];
7855 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
7856 while (cast->type) {
7857 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
7858 cast++;
7859 ++j;
7860 }
7861 printf("---- Total casts: %d\n",j);
7862 }
7863 printf("**** SWIG_InitializeModule: Cast List ******\n");
7864 #endif
7865 }
7866  
7867 /* This function will propagate the clientdata field of type to
7868 * any new swig_type_info structures that have been added into the list
7869 * of equivalent types. It is like calling
7870 * SWIG_TypeClientData(type, clientdata) a second time.
7871 */
7872 SWIGRUNTIME void
7873 0 SWIG_PropagateClientData(void) {
7874 size_t i;
7875 swig_cast_info *equiv;
7876 static int init_run = 0;
7877
7878 0 ▶ if (init_run) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init_run) return; 0 0 0
7879 0 init_run = 1;
7880
7881 0 ▶ for (i = 0; i < swig_module.size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; i++) { 0 0 0
7882 0 ▶ if (swig_module.types[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.types[i]->clientdata) { 0 0 0
7883 0 equiv = swig_module.types[i]->cast;
7884 0 ▶ while (equiv) {
Branch: 1 branch
BranchTrueFalseTotal
while (equiv) { 0 0 0
7885 0 ▶ if (!equiv->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!equiv->converter) { 0 0 0
7886 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
7887 0 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
7888 }
7889 0 equiv = equiv->next;
7890 }
7891 }
7892 }
7893 }
7894  
7895 #ifdef __cplusplus
7896 #if 0
7897 {
7898 /* c-mode */
7899 #endif
7900 }
7901 #endif
7902  
7903  
7904  
7905 #if defined(__cplusplus) && ! defined(XSPROTO)
7906 extern "C"
7907 #endif
7908  
7909 0 XS(SWIG_init) {
7910 0 dXSARGS;
7911 int i;
7912 (void)items;
7913
7914 0 SWIG_InitializeModule(0);
7915
7916 /* Install commands */
7917 0 ▶ for (i = 0; swig_commands[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_commands[i].name; i++) { 0 0 0
7918 /* Casts only needed for Perl < 5.10. */
7919 #ifdef __cplusplus
7920 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
7921 #else
7922 0 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
7923 #endif
7924 }
7925
7926 /* Install variables */
7927 0 ▶ for (i = 0; swig_variables[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_variables[i].name; i++) { 0 0 0
7928 SV *sv;
7929 0 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
7930 0 ▶ if (swig_variables[i].type) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_variables[i].type) { 0 0 0
7931 0 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
7932 } else {
7933 0 sv_setiv(sv,(IV) 0);
7934 }
7935 0 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
7936 }
7937
7938 /* Install constant */
7939 0 ▶ for (i = 0; swig_constants[i].type; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_constants[i].type; i++) { 0 0 0
7940 SV *sv;
7941 0 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
7942 0 switch(swig_constants[i].type) {
7943 0 case SWIG_INT:
7944 0 sv_setiv(sv, (IV) swig_constants[i].lvalue);
7945 0 break;
7946 0 case SWIG_FLOAT:
7947 0 sv_setnv(sv, (double) swig_constants[i].dvalue);
7948 0 break;
7949 0 case SWIG_STRING:
7950 0 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
7951 0 break;
7952 0 case SWIG_POINTER:
7953 0 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
7954 0 break;
7955 0 case SWIG_BINARY:
7956 0 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
7957 0 break;
7958 0 default:
7959 0 break;
7960 }
7961 0 SvREADONLY_on(sv);
7962 }
7963
7964 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7965 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI);
7966 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8)));
7967 0 SvREADONLY_on(sv);
7968 } while(0) /*@SWIG@*/;
7969 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7970 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
7971 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2)));
7972 0 SvREADONLY_on(sv);
7973 } while(0) /*@SWIG@*/;
7974 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7975 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
7976 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8)));
7977 0 SvREADONLY_on(sv);
7978 } while(0) /*@SWIG@*/;
7979 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7980 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI);
7981 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0))));
7982 0 SvREADONLY_on(sv);
7983 } while(0) /*@SWIG@*/;
7984 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7985 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI);
7986 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0))));
7987 0 SvREADONLY_on(sv);
7988 } while(0) /*@SWIG@*/;
7989 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7990 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
7991 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS)));
7992 0 SvREADONLY_on(sv);
7993 } while(0) /*@SWIG@*/;
7994 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
7995 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
7996 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE)));
7997 0 SvREADONLY_on(sv);
7998 } while(0) /*@SWIG@*/;
7999 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8000 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI);
8001 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE)));
8002 0 SvREADONLY_on(sv);
8003 } while(0) /*@SWIG@*/;
8004 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8005 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI);
8006 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM)));
8007 0 SvREADONLY_on(sv);
8008 } while(0) /*@SWIG@*/;
8009 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8010 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI);
8011 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE)));
8012 0 SvREADONLY_on(sv);
8013 } while(0) /*@SWIG@*/;
8014 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8015 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI);
8016 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT)));
8017 0 SvREADONLY_on(sv);
8018 } while(0) /*@SWIG@*/;
8019 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8020 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
8021 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL)));
8022 0 SvREADONLY_on(sv);
8023 } while(0) /*@SWIG@*/;
8024 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8025 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI);
8026 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED)));
8027 0 SvREADONLY_on(sv);
8028 } while(0) /*@SWIG@*/;
8029 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8030 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI);
8031 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR)));
8032 0 SvREADONLY_on(sv);
8033 } while(0) /*@SWIG@*/;
8034 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8035 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI);
8036 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY)));
8037 0 SvREADONLY_on(sv);
8038 } while(0) /*@SWIG@*/;
8039 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8040 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI);
8041 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM)));
8042 0 SvREADONLY_on(sv);
8043 } while(0) /*@SWIG@*/;
8044 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8045 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI);
8046 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC)));
8047 0 SvREADONLY_on(sv);
8048 } while(0) /*@SWIG@*/;
8049 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8050 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI);
8051 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY)));
8052 0 SvREADONLY_on(sv);
8053 } while(0) /*@SWIG@*/;
8054 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8055 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI);
8056 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER)));
8057 0 SvREADONLY_on(sv);
8058 } while(0) /*@SWIG@*/;
8059 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8060 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI);
8061 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV)));
8062 0 SvREADONLY_on(sv);
8063 } while(0) /*@SWIG@*/;
8064 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8065 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI);
8066 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL)));
8067 0 SvREADONLY_on(sv);
8068 } while(0) /*@SWIG@*/;
8069 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8070 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI);
8071 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL)));
8072 0 SvREADONLY_on(sv);
8073 } while(0) /*@SWIG@*/;
8074 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8075 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI);
8076 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW)));
8077 0 SvREADONLY_on(sv);
8078 } while(0) /*@SWIG@*/;
8079 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8080 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI);
8081 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW)));
8082 0 SvREADONLY_on(sv);
8083 } while(0) /*@SWIG@*/;
8084 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8085 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI);
8086 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS)));
8087 0 SvREADONLY_on(sv);
8088 } while(0) /*@SWIG@*/;
8089 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8090 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI);
8091 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND)));
8092 0 SvREADONLY_on(sv);
8093 } while(0) /*@SWIG@*/;
8094 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8095 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI);
8096 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN)));
8097 0 SvREADONLY_on(sv);
8098 } while(0) /*@SWIG@*/;
8099 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8100 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI);
8101 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR)));
8102 0 SvREADONLY_on(sv);
8103 } while(0) /*@SWIG@*/;
8104 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8105 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI);
8106 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING)));
8107 0 SvREADONLY_on(sv);
8108 } while(0) /*@SWIG@*/;
8109 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8110 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI);
8111 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE)));
8112 0 SvREADONLY_on(sv);
8113 } while(0) /*@SWIG@*/;
8114 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8115 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI);
8116 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP)));
8117 0 SvREADONLY_on(sv);
8118 } while(0) /*@SWIG@*/;
8119 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8120 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI);
8121 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL)));
8122 0 SvREADONLY_on(sv);
8123 } while(0) /*@SWIG@*/;
8124 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8125 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI);
8126 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE)));
8127 0 SvREADONLY_on(sv);
8128 } while(0) /*@SWIG@*/;
8129 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8130 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI);
8131 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE)));
8132 0 SvREADONLY_on(sv);
8133 } while(0) /*@SWIG@*/;
8134 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8135 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI);
8136 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG)));
8137 0 SvREADONLY_on(sv);
8138 } while(0) /*@SWIG@*/;
8139 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8140 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI);
8141 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ)));
8142 0 SvREADONLY_on(sv);
8143 } while(0) /*@SWIG@*/;
8144 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8145 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI);
8146 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF)));
8147 0 SvREADONLY_on(sv);
8148 } while(0) /*@SWIG@*/;
8149 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8150 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI);
8151 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX)));
8152 0 SvREADONLY_on(sv);
8153 } while(0) /*@SWIG@*/;
8154 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8155 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI);
8156 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG)));
8157 0 SvREADONLY_on(sv);
8158 } while(0) /*@SWIG@*/;
8159 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
8160 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI);
8161 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF)));
8162 0 SvREADONLY_on(sv);
8163 } while(0) /*@SWIG@*/;
8164 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_poly_complex_workspace, (void*) "Math::GSL::Poly::gsl_poly_complex_workspace");
8165 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_complex, (void*) "Math::GSL::Poly::gsl_complex");
8166 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_complex_long_double, (void*) "Math::GSL::Poly::gsl_complex_long_double");
8167 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_complex_float, (void*) "Math::GSL::Poly::gsl_complex_float");
8168 0 ST(0) = &PL_sv_yes;
8169 0 XSRETURN(1);
8170 }
8171  
« xs/Permutation_wrap.2.8.c ↑ Summary xs/PowInt_wrap.2.8.c »