xs/Multimin_wrap.2.8.c

filter: Statementstmt 0.0% 0 / 3106 Branchbran 0.0% 0 / 1694 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 4800 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Multilarge_wrap.2.8.c ↑ Summary xs/Multiroots_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_f_p_q_const__char_p_q_const__char_int_int__void swig_types[2]
1513 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void swig_types[3]
1514 #define SWIGTYPE_p_f_p_q_const__gsl_vector_p_void__double swig_types[4]
1515 #define SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void swig_types[5]
1516 #define SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void swig_types[6]
1517 #define SWIGTYPE_p_f_p_void__int swig_types[7]
1518 #define SWIGTYPE_p_f_p_void__void swig_types[8]
1519 #define SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int swig_types[9]
1520 #define SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int swig_types[10]
1521 #define SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int swig_types[11]
1522 #define SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int swig_types[12]
1523 #define SWIGTYPE_p_f_p_void_size_t__int swig_types[13]
1524 #define SWIGTYPE_p_gsl_multimin_fdfminimizer swig_types[14]
1525 #define SWIGTYPE_p_gsl_multimin_fdfminimizer_type swig_types[15]
1526 #define SWIGTYPE_p_gsl_multimin_fminimizer swig_types[16]
1527 #define SWIGTYPE_p_gsl_multimin_fminimizer_type swig_types[17]
1528 #define SWIGTYPE_p_gsl_multimin_function_fdf_struct swig_types[18]
1529 #define SWIGTYPE_p_gsl_multimin_function_struct swig_types[19]
1530 #define SWIGTYPE_p_gsl_vector swig_types[20]
1531 #define SWIGTYPE_p_void swig_types[21]
1532 static swig_type_info *swig_types[23];
1533 static swig_module_info swig_module = {swig_types, 22, 0, 0, 0, 0};
1534 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1535 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1536  
1537 /* -------- TYPES TABLE (END) -------- */
1538  
1539 #define SWIG_init boot_Math__GSL__Multimin
1540  
1541 #define SWIG_name "Math::GSL::Multiminc::boot_Math__GSL__Multimin"
1542 #define SWIG_prefix "Math::GSL::Multiminc::"
1543  
1544 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1545 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1546  
1547  
1548 #ifdef __cplusplus
1549 extern "C"
1550 #endif
1551 #ifndef MULTIPLICITY
1552 SWIGEXPORT void SWIG_init (CV* cv);
1553 #else
1554 SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
1555 #endif
1556  
1557  
1558 SWIGINTERNINLINE SV *
1559 0 SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value)
1560 {
1561 0 return sv_2mortal(newSVnv(value));
1562 }
1563  
1564  
1565 SWIGINTERNINLINE SV *
1566 0 SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
1567 {
1568 SV *sv;
1569 if (IVSIZE >= sizeof(value) || (value >= IV_MIN && value <= IV_MAX))
1570 0 sv = newSViv(value);
1571 else
1572 sv = newSVpvf("%ld", value);
1573 0 return sv_2mortal(sv);
1574 }
1575  
1576  
1577 SWIGINTERNINLINE SV *
1578 0 SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value)
1579 {
1580 0 return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
1581 }
1582  
1583  
1584 SWIGINTERN swig_type_info*
1585 0 SWIG_pchar_descriptor(void)
1586 {
1587 static int init = 0;
1588 static swig_type_info* info = 0;
1589 0 ▶ if (!init) {
Branch: 1 branch
BranchTrueFalseTotal
if (!init) { 0 0 0
1590 0 info = SWIG_TypeQuery("_p_char");
1591 0 init = 1;
1592 }
1593 0 return info;
1594 }
1595  
1596  
1597 SWIGINTERN int
1598 0 SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
1599 {
1600 0 ▶ if (SvMAGICAL(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvMAGICAL(obj)) { 0 0 0
1601 0 SV *tmp = sv_newmortal();
1602 0 ▶ SvSetSV(tmp, obj);
Branch: 1 branch
BranchTrueFalseTotal
SvSetSV(tmp, obj); 0 0 0
1603 0 obj = tmp;
1604 }
1605 0 ▶ if (SvPOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvPOK(obj)) { 0 0 0
1606 0 STRLEN len = 0;
1607 0 char *cstr = SvPV(obj, len);
1608 0 size_t size = len + 1;
1609 0 ▶ if (cptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) { 0 0 0
1610 0 ▶ if (alloc) {
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) { 0 0 0
1611 0 ▶ if (*alloc == SWIG_NEWOBJ) {
Branch: 1 branch
BranchTrueFalseTotal
if (*alloc == SWIG_NEWOBJ) { 0 0 0
1612 0 *cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1613 } else {
1614 0 *cptr = cstr;
1615 0 *alloc = SWIG_OLDOBJ;
1616 }
1617 }
1618 }
1619 0 ▶ if (psize) *psize = size;
Branch: 1 branch
BranchTrueFalseTotal
if (psize) *psize = size; 0 0 0
1620 0 return SWIG_OK;
1621 } else {
1622 0 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1623 0 ▶ if (pchar_descriptor) {
Branch: 1 branch
BranchTrueFalseTotal
if (pchar_descriptor) { 0 0 0
1624 0 char* vptr = 0;
1625 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
1626 0 ▶ if (cptr) *cptr = vptr;
Branch: 1 branch
BranchTrueFalseTotal
if (cptr) *cptr = vptr; 0 0 0
1627 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
1628 0 ▶ if (alloc) *alloc = SWIG_OLDOBJ;
Branch: 1 branch
BranchTrueFalseTotal
if (alloc) *alloc = SWIG_OLDOBJ; 0 0 0
1629 0 return SWIG_OK;
1630 }
1631 }
1632 }
1633 0 return SWIG_TypeError;
1634 }
1635  
1636  
1637  
1638  
1639  
1640 #include <limits.h>
1641 #if !defined(SWIG_NO_LLONG_MAX)
1642 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1643 # define LLONG_MAX __LONG_LONG_MAX__
1644 # define LLONG_MIN (-LLONG_MAX - 1LL)
1645 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1646 # endif
1647 #endif
1648  
1649  
1650 #include <stdlib.h>
1651 #ifdef _MSC_VER
1652 # ifndef strtoull
1653 # define strtoull _strtoui64
1654 # endif
1655 # ifndef strtoll
1656 # define strtoll _strtoi64
1657 # endif
1658 #endif
1659  
1660  
1661 SWIGINTERN int
1662 0 SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
1663 {
1664 0 ▶ if (SvNIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvNIOK(obj)) { 0 0 0
1665 0 ▶ if (val) *val = SvNV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvNV(obj); 0 0 0
1666 0 return SWIG_OK;
1667 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1668 0 ▶ if (val) *val = (double) SvIV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (double) SvIV(obj); 0 0 0
1669 0 return SWIG_AddCast(SWIG_OK);
1670 } else {
1671 0 const char *nptr = SvPV_nolen(obj);
1672 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1673 char *endptr;
1674 double v;
1675 0 errno = 0;
1676 0 v = strtod(nptr, &endptr);
1677 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1678 0 errno = 0;
1679 0 return SWIG_OverflowError;
1680 } else {
1681 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1682 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1683 0 return SWIG_Str2NumCast(SWIG_OK);
1684 }
1685 }
1686 }
1687 }
1688 0 return SWIG_TypeError;
1689 }
1690  
1691  
1692 #include <float.h>
1693  
1694  
1695 #include <math.h>
1696  
1697  
1698 SWIGINTERNINLINE int
1699 0 SWIG_CanCastAsInteger(double *d, double min, double max) {
1700 0 double x = *d;
1701 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
1702 double fx, cx, rd;
1703 0 errno = 0;
1704 0 fx = floor(x);
1705 0 cx = ceil(x);
1706 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
1707 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
1708 0 errno = 0;
1709 } else {
1710 double summ, reps, diff;
1711 0 ▶ if (rd < x) {
Branch: 1 branch
BranchTrueFalseTotal
if (rd < x) { 0 0 0
1712 0 diff = x - rd;
1713 0 ▶ } else if (rd > x) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (rd > x) { 0 0 0
1714 0 diff = rd - x;
1715 } else {
1716 0 return 1;
1717 }
1718 0 summ = rd + x;
1719 0 reps = diff/summ;
1720 0 ▶ if (reps < 8*DBL_EPSILON) {
Branch: 1 branch
BranchTrueFalseTotal
if (reps < 8*DBL_EPSILON) { 0 0 0
1721 0 *d = rd;
1722 0 return 1;
1723 }
1724 }
1725 }
1726 0 return 0;
1727 }
1728  
1729  
1730 SWIGINTERN int
1731 0 SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
1732 {
1733 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
1734 0 UV v = SvUV(obj);
1735 0 ▶ if (UVSIZE < sizeof(*val) || v <= LONG_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (UVSIZE < sizeof(*val) || v <= LONG_MAX) { 0 0 0
1736 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1737 0 return SWIG_OK;
1738 }
1739 0 return SWIG_OverflowError;
1740 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
1741 0 IV v = SvIV(obj);
1742 if (IVSIZE <= sizeof(*val) || (v >= LONG_MIN && v <= LONG_MAX)) {
1743 0 ▶ if(val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if(val) *val = v; 0 0 0
1744 0 return SWIG_OK;
1745 }
1746 return SWIG_OverflowError;
1747 } else {
1748 0 int dispatch = 0;
1749 0 const char *nptr = SvPV_nolen(obj);
1750 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
1751 char *endptr;
1752 long v;
1753 0 errno = 0;
1754 0 v = strtol(nptr, &endptr,0);
1755 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
1756 0 errno = 0;
1757 0 return SWIG_OverflowError;
1758 } else {
1759 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
1760 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
1761 0 return SWIG_Str2NumCast(SWIG_OK);
1762 }
1763 }
1764 }
1765 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
1766 double d;
1767 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
1768 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
1769 0 ▶ if (val) *val = (long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (long)(d); 0 0 0
1770 0 return res;
1771 }
1772 }
1773 }
1774 0 return SWIG_TypeError;
1775 }
1776  
1777  
1778 SWIGINTERN int
1779 0 SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
1780 {
1781 long v;
1782 0 int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
1783 0 ▶ if (SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SWIG_IsOK(res)) { 0 0 0
1784 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
1785 0 return SWIG_OverflowError;
1786 } else {
1787 0 ▶ if (val) *val = (int)(v);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (int)(v); 0 0 0
1788 }
1789 }
1790 0 return res;
1791 }
1792  
1793  
1794 SWIGINTERNINLINE SV *
1795 0 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1796 {
1797 0 SV *obj = sv_newmortal();
1798 0 ▶ if (carray) {
Branch: 1 branch
BranchTrueFalseTotal
if (carray) { 0 0 0
1799 0 sv_setpvn(obj, carray, size);
1800 } else {
1801 0 sv_setsv(obj, &PL_sv_undef);
1802 }
1803 0 return obj;
1804 }
1805  
1806  
1807 SWIGINTERNINLINE SV *
1808 0 SWIG_FromCharPtr(const char *cptr)
1809 {
1810 0 ▶ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
Branch: 1 branch
BranchTrueFalseTotal
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); 0 0 0
1811 }
1812  
1813  
1814 #include "gsl/gsl_nan.h"
1815 #include "gsl/gsl_errno.h"
1816 #include "gsl/gsl_math.h"
1817 #include "gsl/gsl_monte.h"
1818  
1819  
1820 struct perl_array {
1821 I32 len;
1822 AV *array;
1823 };
1824  
1825  
1826  
1827 enum awType { awDouble, awFloat, awInt, awUnsigned };
1828  
1829 typedef struct {
1830 I32 size;
1831 enum awType type;
1832 void * data;
1833 } array_wrapper;
1834  
1835 0 array_wrapper * array_wrapper_alloc(int numelem, enum awType type){
1836 0 array_wrapper * rv = malloc(sizeof(array_wrapper));
1837  
1838 0 ▶ if (rv == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv == NULL) 0 0 0
1839 0 croak("array_wrapper_alloc: can't malloc wrapper\n");
1840  
1841 0 switch (type){
1842 0 case awDouble:
1843 0 rv->data = malloc(sizeof(double) * numelem);
1844 0 break;
1845 0 case awFloat:
1846 0 rv->data = malloc(sizeof(float) * numelem);
1847 0 break;
1848 0 case awInt:
1849 0 rv->data = malloc(sizeof(int) * numelem);
1850 0 break;
1851 0 case awUnsigned:
1852 0 rv->data = malloc(sizeof(unsigned int) * numelem);
1853 0 break;
1854 0 default:
1855 0 croak("array_wrapper_alloc: type should be awDouble, awFloat, awInt, or awUnsigned");
1856 }
1857  
1858 0 ▶ if (rv->data == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (rv->data == NULL) 0 0 0
1859 0 croak("array_wrapper_alloc: can't malloc data");
1860  
1861 0 rv->size = numelem;
1862 0 rv->type = type;
1863 0 return rv;
1864 }
1865  
1866 0 void array_wrapper_free(array_wrapper * daw){
1867 0 free(daw->data);
1868 0 free(daw);
1869 0 }
1870  
1871  
1872 /* structure to hold required information while the gsl function call
1873 for each callback
1874 */
1875 struct gsl_function_perl {
1876 gsl_function C_gsl_function;
1877 SV * function;
1878 SV * params;
1879 };
1880  
1881 struct gsl_function_fdf_perl {
1882 gsl_function_fdf C_gsl_function_fdf;
1883 SV * f;
1884 SV * df;
1885 SV * fdf;
1886 SV * params;
1887 };
1888  
1889 struct gsl_monte_function_perl {
1890 gsl_monte_function C_gsl_monte_function;
1891 SV * f;
1892 SV * dim;
1893 SV * params;
1894 };
1895  
1896 0 void gsl_function_perl_free(struct gsl_function_perl * perl_f){
1897 0 ▶ if (perl_f != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_f != NULL) { 0 0 0
1898 0 SvREFCNT_dec(perl_f->function);
1899 0 SvREFCNT_dec(perl_f->params);
1900 0 Safefree(perl_f);
1901 }
1902 0 }
1903  
1904 0 void gsl_function_fdf_perl_free(struct gsl_function_fdf_perl * perl_fdf){
1905 0 ▶ if (perl_fdf != NULL) {
Branch: 1 branch
BranchTrueFalseTotal
if (perl_fdf != NULL) { 0 0 0
1906 0 SvREFCNT_dec(perl_fdf->f);
1907 0 SvREFCNT_dec(perl_fdf->df);
1908 0 SvREFCNT_dec(perl_fdf->fdf);
1909 0 SvREFCNT_dec(perl_fdf->params);
1910 0 Safefree(perl_fdf);
1911 }
1912 0 }
1913  
1914 /* These functions (C callbacks) calls the perl callbacks.
1915 Info for perl callback can be found using the 'void*params' parameter
1916 */
1917 0 double call_gsl_function_x_params(SV* function, double x, SV *params){
1918 unsigned int count;
1919 double y;
1920 0 dSP;
1921  
1922 //fprintf(stderr, "LOOKUP CALLBACK\n");
1923 0 ENTER;
1924 0 SAVETMPS;
1925  
1926 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1927 0 ▶ XPUSHs(sv_2mortal(newSVnv((double)x)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVnv((double)x))); 0 0 0
1928 0 ▶ XPUSHs(params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(params); 0 0 0
1929 0 PUTBACK; /* make local stack pointer global */
1930  
1931 0 count = call_sv(function, G_SCALAR);
1932 0 SPAGAIN;
1933  
1934 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
1935 0 croak("Expected to call subroutine in scalar context!");
1936  
1937 0 y = POPn;
1938  
1939 0 PUTBACK; /* make local stack pointer global */
1940 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1941 0 LEAVE;
1942  
1943 0 return y;
1944 }
1945  
1946 0 double call_gsl_function(double x , void *params){
1947 0 struct gsl_function_perl *F=(struct gsl_function_perl*)params;
1948 0 return call_gsl_function_x_params( F->function, x, F->params );
1949 }
1950  
1951 0 double call_gsl_function_fdf_f(double x , void *params){
1952 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1953 0 return call_gsl_function_x_params( F->f, x, F->params );
1954 }
1955  
1956 0 double call_gsl_function_fdf_df(double x , void *params){
1957 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1958 0 return call_gsl_function_x_params( F->df, x, F->params );
1959 }
1960  
1961 0 void call_gsl_function_fdf_fdf(double x , void *params, double *f, double *df ){
1962 0 struct gsl_function_fdf_perl *F=(struct gsl_function_fdf_perl*)params;
1963  
1964 0 dSP;
1965  
1966 0 ENTER;
1967 0 SAVETMPS;
1968  
1969 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
1970 0 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 0 0
1971 0 PUSHs(sv_2mortal(newSVnv((double)x)));
1972 0 PUSHs(F->params);
1973 0 PUTBACK; /* make local stack pointer global */
1974  
1975 {
1976 0 unsigned int count = call_sv(F->fdf, G_ARRAY);
1977 0 SPAGAIN;
1978  
1979 0 ▶ if (count != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 2) 0 0 0
1980 0 croak( "Expected two return values, got %d", count );
1981 }
1982  
1983 0 *df = POPn;
1984 0 *f = POPn;
1985  
1986 0 PUTBACK; /* make local stack pointer global */
1987 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
1988 0 LEAVE;
1989 0 }
1990  
1991 0 double call_gsl_monte_function(double *x_array , size_t dim, void *params){
1992 0 struct gsl_monte_function_perl *F=(struct gsl_monte_function_perl*)params;
1993 unsigned int count;
1994 unsigned int i;
1995 AV* perl_array;
1996 double y;
1997 0 dSP;
1998  
1999 //fprintf(stderr, "LOOKUP CALLBACK\n");
2000 0 ENTER;
2001 0 SAVETMPS;
2002  
2003 0 ▶ PUSHMARK(SP);
Branch: 1 branch
BranchTrueFalseTotal
PUSHMARK(SP); 0 0 0
2004 0 perl_array=newAV();
2005 0 sv_2mortal((SV*)perl_array);
2006 0 ▶ XPUSHs(sv_2mortal(newRV((SV *)perl_array)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newRV((SV *)perl_array))); 0 0 0
2007 0 ▶ for(i=0; i<dim; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for(i=0; i<dim; i++) { 0 0 0
2008 /* no mortal : it is referenced by the array */
2009 0 av_push(perl_array, newSVnv(x_array[i]));
2010 }
2011 0 ▶ XPUSHs(sv_2mortal(newSViv(dim)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSViv(dim))); 0 0 0
2012 0 ▶ XPUSHs(F->params);
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(F->params); 0 0 0
2013 0 PUTBACK; /* make local stack pointer global */
2014  
2015 0 count = call_sv(F->f, G_SCALAR);
2016 0 SPAGAIN;
2017  
2018 0 ▶ if (count != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (count != 1) 0 0 0
2019 0 croak("Expected to call subroutine in scalar context!");
2020  
2021 0 y = POPn;
2022  
2023 0 PUTBACK; /* make local stack pointer global */
2024 0 ▶ FREETMPS;
Branch: 1 branch
BranchTrueFalseTotal
FREETMPS; 0 0 0
2025 0 LEAVE;
2026  
2027 0 return y;
2028 }
2029  
2030  
2031 0 void gsl_function_fdf_extract( char* param_name, HV* hash, SV* func[] ) {
2032 static const char *keys[3] = { "f", "df", "fdf" };
2033  
2034 int ikey;
2035  
2036 0 ▶ for ( ikey = 0 ; ikey < 3 ; ++ikey ) {
Branch: 1 branch
BranchTrueFalseTotal
for ( ikey = 0 ; ikey < 3 ; ++ikey ) { 0 0 0
2037 0 func[ikey] = 0;
2038 0 const char* key = keys[ikey];
2039 /* it just so happens that strlen(keys[ikey]) == ikey + 1 */
2040 0 SV** pp_sv = hv_fetch( hash, key, ikey+1, 0 );
2041 SV* function;
2042  
2043 0 ▶ if ( !pp_sv )
Branch: 1 branch
BranchTrueFalseTotal
if ( !pp_sv ) 0 0 0
2044 0 croak("Math::GSL : %s: missing key %s!", param_name, key);
2045  
2046 0 function = *pp_sv;
2047  
2048 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
2049 /* hold on to SV after the enclosing hash goes away */
2050 0 SvREFCNT_inc( function );
2051 0 func[ikey] = function;
2052 }
2053 else {
2054 0 croak( "Math::GSL : %s: key %s is not a reference to code!", param_name, key);
2055 }
2056 }
2057 0 }
2058  
2059  
2060  
2061 #include "gsl/gsl_types.h"
2062 #include "gsl/gsl_multimin.h"
2063  
2064  
2065 SWIGINTERN int
2066 0 SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val)
2067 {
2068 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2069 0 UV v = SvUV(obj);
2070 if (UVSIZE <= sizeof(*val) || v <= ULONG_MAX) {
2071 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2072 0 return SWIG_OK;
2073 }
2074 return SWIG_OverflowError;
2075 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2076 0 IV v = SvIV(obj);
2077 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
2078 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2079 0 return SWIG_OK;
2080 }
2081 0 return SWIG_OverflowError;
2082 } else {
2083 0 int dispatch = 0;
2084 0 const char *nptr = SvPV_nolen(obj);
2085 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2086 char *endptr;
2087 unsigned long v;
2088 0 errno = 0;
2089 0 v = strtoul(nptr, &endptr,0);
2090 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2091 0 errno = 0;
2092 0 return SWIG_OverflowError;
2093 } else {
2094 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2095 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2096 0 return SWIG_Str2NumCast(SWIG_OK);
2097 }
2098 }
2099 }
2100 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2101 double d;
2102 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2103 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
2104 0 ▶ if (val) *val = (unsigned long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long)(d); 0 0 0
2105 0 return res;
2106 }
2107 }
2108 }
2109 0 return SWIG_TypeError;
2110 }
2111  
2112  
2113 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2114 # define SWIG_LONG_LONG_AVAILABLE
2115 #endif
2116  
2117  
2118 #ifdef SWIG_LONG_LONG_AVAILABLE
2119 SWIGINTERN int
2120 0 SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val)
2121 {
2122 0 ▶ if (SvUOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvUOK(obj)) { 0 0 0
2123 /* pretty sure this should be conditional on
2124 * (UVSIZE <= sizeof(*val) || v <= ULLONG_MAX) */
2125 0 ▶ if (val) *val = SvUV(obj);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = SvUV(obj); 0 0 0
2126 0 return SWIG_OK;
2127 0 ▶ } else if (SvIOK(obj)) {
Branch: 1 branch
BranchTrueFalseTotal
} else if (SvIOK(obj)) { 0 0 0
2128 0 IV v = SvIV(obj);
2129 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
2130 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2131 0 return SWIG_OK;
2132 } else {
2133 0 return SWIG_OverflowError;
2134 }
2135 } else {
2136 0 int dispatch = 0;
2137 0 const char *nptr = SvPV_nolen(obj);
2138 0 ▶ if (nptr) {
Branch: 1 branch
BranchTrueFalseTotal
if (nptr) { 0 0 0
2139 char *endptr;
2140 unsigned long long v;
2141 0 errno = 0;
2142 0 v = strtoull(nptr, &endptr,0);
2143 0 ▶ if (errno == ERANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if (errno == ERANGE) { 0 0 0
2144 0 errno = 0;
2145 0 return SWIG_OverflowError;
2146 } else {
2147 0 ▶ if (*endptr == '\0') {
Branch: 1 branch
BranchTrueFalseTotal
if (*endptr == '\0') { 0 0 0
2148 0 ▶ if (val) *val = v;
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = v; 0 0 0
2149 0 return SWIG_Str2NumCast(SWIG_OK);
2150 }
2151 }
2152 }
2153 0 ▶ if (!dispatch) {
Branch: 1 branch
BranchTrueFalseTotal
if (!dispatch) { 0 0 0
2154 0 const double mant_max = 1LL << DBL_MANT_DIG;
2155 double d;
2156 0 int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
2157 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
2158 0 ▶ if (val) *val = (unsigned long long)(d);
Branch: 1 branch
BranchTrueFalseTotal
if (val) *val = (unsigned long long)(d); 0 0 0
2159 0 return res;
2160 }
2161 }
2162 }
2163 0 return SWIG_TypeError;
2164 }
2165 #endif
2166  
2167  
2168 SWIGINTERNINLINE int
2169 0 SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
2170 {
2171 0 int res = SWIG_TypeError;
2172 #ifdef SWIG_LONG_LONG_AVAILABLE
2173 if (sizeof(size_t) <= sizeof(unsigned long)) {
2174 #endif
2175 unsigned long v;
2176 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
2177 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
2178 #ifdef SWIG_LONG_LONG_AVAILABLE
2179 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2180 unsigned long long v;
2181 res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
2182 if (SWIG_IsOK(res) && val) *val = (size_t)(v);
2183 }
2184 #endif
2185 0 return res;
2186 }
2187  
2188  
2189 SWIGINTERNINLINE SV *
2190 0 SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
2191 {
2192 SV *sv;
2193 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2194 0 sv = newSVuv(value);
2195 else
2196 sv = newSVpvf("%lu", value);
2197 0 return sv_2mortal(sv);
2198 }
2199  
2200  
2201 #include <stdio.h>
2202 #if (defined(_MSC_VER) && (_MSC_VER < 1900)) || defined(__BORLANDC__) || defined(_WATCOM)
2203 # ifndef snprintf
2204 # define snprintf _snprintf
2205 # endif
2206 #endif
2207  
2208  
2209 #ifdef SWIG_LONG_LONG_AVAILABLE
2210 SWIGINTERNINLINE SV *
2211 SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value)
2212 {
2213 SV *sv;
2214 if (UVSIZE >= sizeof(value) || value <= UV_MAX)
2215 sv = newSVuv((UV)(value));
2216 else {
2217 //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl
2218 char temp[256];
2219 SWIG_snprintf(temp, sizeof(temp), "%llu", value);
2220 sv = newSVpv(temp, 0);
2221 }
2222 return sv_2mortal(sv);
2223 }
2224 #endif
2225  
2226  
2227 SWIGINTERNINLINE SV *
2228 0 SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value)
2229 {
2230 #ifdef SWIG_LONG_LONG_AVAILABLE
2231 if (sizeof(size_t) <= sizeof(unsigned long)) {
2232 #endif
2233 0 return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long)(value));
2234 #ifdef SWIG_LONG_LONG_AVAILABLE
2235 } else {
2236 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
2237 return SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1((unsigned long long)(value));
2238 }
2239 #endif
2240 }
2241  
2242 #ifdef __cplusplus
2243 extern "C" {
2244 #endif
2245  
2246 #define MAGIC_CLASS
2247 0 SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
2248 MAGIC_PPERL
2249 0 croak("Value is read-only.");
2250 return 0;
2251 }
2252 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_steepest_descent_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2253 MAGIC_PPERL
2254 {
2255 0 void *argp = 0;
2256 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 );
2257 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2258 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_steepest_descent""' of type '""gsl_multimin_fdfminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_steepest_descent""' of type '""gsl_multimin_fdfminimizer_type const *""'"); 0 0 0
2259 }
2260 0 gsl_multimin_fdfminimizer_steepest_descent = (gsl_multimin_fdfminimizer_type *)(argp);
2261 }
2262 0 fail:
2263 0 return 1;
2264 }
2265  
2266  
2267 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_steepest_descent_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2268 MAGIC_PPERL
2269 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fdfminimizer_steepest_descent));
2270 0 return 1;
2271 }
2272  
2273  
2274 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_conjugate_pr_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2275 MAGIC_PPERL
2276 {
2277 0 void *argp = 0;
2278 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 );
2279 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2280 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_conjugate_pr""' of type '""gsl_multimin_fdfminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_conjugate_pr""' of type '""gsl_multimin_fdfminimizer_type const *""'"); 0 0 0
2281 }
2282 0 gsl_multimin_fdfminimizer_conjugate_pr = (gsl_multimin_fdfminimizer_type *)(argp);
2283 }
2284 0 fail:
2285 0 return 1;
2286 }
2287  
2288  
2289 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_conjugate_pr_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2290 MAGIC_PPERL
2291 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fdfminimizer_conjugate_pr));
2292 0 return 1;
2293 }
2294  
2295  
2296 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_conjugate_fr_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2297 MAGIC_PPERL
2298 {
2299 0 void *argp = 0;
2300 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 );
2301 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2302 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_conjugate_fr""' of type '""gsl_multimin_fdfminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_conjugate_fr""' of type '""gsl_multimin_fdfminimizer_type const *""'"); 0 0 0
2303 }
2304 0 gsl_multimin_fdfminimizer_conjugate_fr = (gsl_multimin_fdfminimizer_type *)(argp);
2305 }
2306 0 fail:
2307 0 return 1;
2308 }
2309  
2310  
2311 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_conjugate_fr_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2312 MAGIC_PPERL
2313 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fdfminimizer_conjugate_fr));
2314 0 return 1;
2315 }
2316  
2317  
2318 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_vector_bfgs_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2319 MAGIC_PPERL
2320 {
2321 0 void *argp = 0;
2322 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 );
2323 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2324 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_vector_bfgs""' of type '""gsl_multimin_fdfminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_vector_bfgs""' of type '""gsl_multimin_fdfminimizer_type const *""'"); 0 0 0
2325 }
2326 0 gsl_multimin_fdfminimizer_vector_bfgs = (gsl_multimin_fdfminimizer_type *)(argp);
2327 }
2328 0 fail:
2329 0 return 1;
2330 }
2331  
2332  
2333 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_vector_bfgs_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2334 MAGIC_PPERL
2335 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fdfminimizer_vector_bfgs));
2336 0 return 1;
2337 }
2338  
2339  
2340 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_vector_bfgs2_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2341 MAGIC_PPERL
2342 {
2343 0 void *argp = 0;
2344 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 );
2345 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2346 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_vector_bfgs2""' of type '""gsl_multimin_fdfminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fdfminimizer_vector_bfgs2""' of type '""gsl_multimin_fdfminimizer_type const *""'"); 0 0 0
2347 }
2348 0 gsl_multimin_fdfminimizer_vector_bfgs2 = (gsl_multimin_fdfminimizer_type *)(argp);
2349 }
2350 0 fail:
2351 0 return 1;
2352 }
2353  
2354  
2355 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fdfminimizer_vector_bfgs2_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2356 MAGIC_PPERL
2357 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fdfminimizer_vector_bfgs2));
2358 0 return 1;
2359 }
2360  
2361  
2362 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fminimizer_nmsimplex_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2363 MAGIC_PPERL
2364 {
2365 0 void *argp = 0;
2366 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 );
2367 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2368 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fminimizer_nmsimplex""' of type '""gsl_multimin_fminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fminimizer_nmsimplex""' of type '""gsl_multimin_fminimizer_type const *""'"); 0 0 0
2369 }
2370 0 gsl_multimin_fminimizer_nmsimplex = (gsl_multimin_fminimizer_type *)(argp);
2371 }
2372 0 fail:
2373 0 return 1;
2374 }
2375  
2376  
2377 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fminimizer_nmsimplex_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2378 MAGIC_PPERL
2379 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fminimizer_nmsimplex));
2380 0 return 1;
2381 }
2382  
2383  
2384 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fminimizer_nmsimplex2_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2385 MAGIC_PPERL
2386 {
2387 0 void *argp = 0;
2388 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 );
2389 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2390 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fminimizer_nmsimplex2""' of type '""gsl_multimin_fminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fminimizer_nmsimplex2""' of type '""gsl_multimin_fminimizer_type const *""'"); 0 0 0
2391 }
2392 0 gsl_multimin_fminimizer_nmsimplex2 = (gsl_multimin_fminimizer_type *)(argp);
2393 }
2394 0 fail:
2395 0 return 1;
2396 }
2397  
2398  
2399 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fminimizer_nmsimplex2_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2400 MAGIC_PPERL
2401 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fminimizer_nmsimplex2));
2402 0 return 1;
2403 }
2404  
2405  
2406 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fminimizer_nmsimplex2rand_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
2407 MAGIC_PPERL
2408 {
2409 0 void *argp = 0;
2410 0 int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 );
2411 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2412 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fminimizer_nmsimplex2rand""' of type '""gsl_multimin_fminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""gsl_multimin_fminimizer_nmsimplex2rand""' of type '""gsl_multimin_fminimizer_type const *""'"); 0 0 0
2413 }
2414 0 gsl_multimin_fminimizer_nmsimplex2rand = (gsl_multimin_fminimizer_type *)(argp);
2415 }
2416 0 fail:
2417 0 return 1;
2418 }
2419  
2420  
2421 0 SWIGCLASS_STATIC int _wrap_gsl_multimin_fminimizer_nmsimplex2rand_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
2422 MAGIC_PPERL
2423 0 sv_setiv(SvRV(sv),PTR2IV(gsl_multimin_fminimizer_nmsimplex2rand));
2424 0 return 1;
2425 }
2426  
2427  
2428  
2429 #ifdef __cplusplus
2430 }
2431 #endif
2432  
2433 #ifdef __cplusplus
2434 extern "C" {
2435 #endif
2436 0 XS(_wrap_gsl_error) {
2437 {
2438 0 char *arg1 = (char *) 0 ;
2439 0 char *arg2 = (char *) 0 ;
2440 int arg3 ;
2441 int arg4 ;
2442 int res1 ;
2443 0 char *buf1 = 0 ;
2444 0 int alloc1 = 0 ;
2445 int res2 ;
2446 0 char *buf2 = 0 ;
2447 0 int alloc2 = 0 ;
2448 int val3 ;
2449 0 int ecode3 = 0 ;
2450 int val4 ;
2451 0 int ecode4 = 0 ;
2452 0 int argvi = 0;
2453 0 dXSARGS;
2454
2455 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
2456 0 SWIG_croak("Usage: gsl_error(reason,file,line,gsl_errno);");
2457 }
2458 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2459 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2460 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
2461 }
2462 0 arg1 = (char *)(buf1);
2463 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2464 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2465 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
2466 }
2467 0 arg2 = (char *)(buf2);
2468 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2469 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2470 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
2471 }
2472 0 arg3 = (int)(val3);
2473 0 ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
2474 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
2475 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
2476 }
2477 0 arg4 = (int)(val4);
2478 0 gsl_error((char const *)arg1,(char const *)arg2,arg3,arg4);
2479 0 ST(argvi) = &PL_sv_undef;
2480 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2481 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2482
2483
2484 0 XSRETURN(argvi);
2485 0 fail:
2486 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2487 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2488
2489
2490 0 SWIG_croak_null();
2491 }
2492 }
2493  
2494  
2495 0 XS(_wrap_gsl_stream_printf) {
2496 {
2497 0 char *arg1 = (char *) 0 ;
2498 0 char *arg2 = (char *) 0 ;
2499 int arg3 ;
2500 0 char *arg4 = (char *) 0 ;
2501 int res1 ;
2502 0 char *buf1 = 0 ;
2503 0 int alloc1 = 0 ;
2504 int res2 ;
2505 0 char *buf2 = 0 ;
2506 0 int alloc2 = 0 ;
2507 int val3 ;
2508 0 int ecode3 = 0 ;
2509 int res4 ;
2510 0 char *buf4 = 0 ;
2511 0 int alloc4 = 0 ;
2512 0 int argvi = 0;
2513 0 dXSARGS;
2514
2515 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
2516 0 SWIG_croak("Usage: gsl_stream_printf(label,file,line,reason);");
2517 }
2518 0 res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
2519 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2520 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
2521 }
2522 0 arg1 = (char *)(buf1);
2523 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
2524 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2525 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
2526 }
2527 0 arg2 = (char *)(buf2);
2528 0 ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
2529 0 ▶ if (!SWIG_IsOK(ecode3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode3)) { 0 0 0
2530 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
2531 }
2532 0 arg3 = (int)(val3);
2533 0 res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
2534 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
2535 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
2536 }
2537 0 arg4 = (char *)(buf4);
2538 0 gsl_stream_printf((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
2539 0 ST(argvi) = &PL_sv_undef;
2540 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2541 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2542
2543 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2544 0 XSRETURN(argvi);
2545 0 fail:
2546 0 ▶ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); 0 0 0
2547 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
2548
2549 0 ▶ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); 0 0 0
2550 0 SWIG_croak_null();
2551 }
2552 }
2553  
2554  
2555 0 XS(_wrap_gsl_strerror) {
2556 {
2557 int arg1 ;
2558 int val1 ;
2559 0 int ecode1 = 0 ;
2560 0 int argvi = 0;
2561 0 char *result = 0 ;
2562 0 dXSARGS;
2563
2564 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
2565 0 SWIG_croak("Usage: gsl_strerror(gsl_errno);");
2566 }
2567 0 ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
2568 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
2569 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
2570 }
2571 0 arg1 = (int)(val1);
2572 0 result = (char *)gsl_strerror(arg1);
2573 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
2574
2575 0 XSRETURN(argvi);
2576 0 fail:
2577
2578 0 SWIG_croak_null();
2579 }
2580 }
2581  
2582  
2583 0 XS(_wrap_gsl_set_error_handler) {
2584 {
2585 0 gsl_error_handler_t *arg1 = (gsl_error_handler_t *) 0 ;
2586 0 int argvi = 0;
2587 0 gsl_error_handler_t *result = 0 ;
2588 0 dXSARGS;
2589
2590 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
2591 0 SWIG_croak("Usage: gsl_set_error_handler(new_handler);");
2592 }
2593 {
2594 0 int res = SWIG_ConvertFunctionPtr(ST(0), (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void);
2595 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2596 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
2597 }
2598 }
2599 0 result = (gsl_error_handler_t *)gsl_set_error_handler(arg1);
2600 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2601
2602 0 XSRETURN(argvi);
2603 0 fail:
2604
2605 0 SWIG_croak_null();
2606 }
2607 }
2608  
2609  
2610 0 XS(_wrap_gsl_set_error_handler_off) {
2611 {
2612 0 int argvi = 0;
2613 0 gsl_error_handler_t *result = 0 ;
2614 0 dXSARGS;
2615
2616 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
2617 0 SWIG_croak("Usage: gsl_set_error_handler_off();");
2618 }
2619 0 result = (gsl_error_handler_t *)gsl_set_error_handler_off();
2620 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_int_int__void); argvi++ ;
2621 0 XSRETURN(argvi);
2622 0 fail:
2623 0 SWIG_croak_null();
2624 }
2625 }
2626  
2627  
2628 0 XS(_wrap_gsl_set_stream_handler) {
2629 {
2630 0 gsl_stream_handler_t *arg1 = (gsl_stream_handler_t *) 0 ;
2631 0 int argvi = 0;
2632 0 gsl_stream_handler_t *result = 0 ;
2633 0 dXSARGS;
2634
2635 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
2636 0 SWIG_croak("Usage: gsl_set_stream_handler(new_handler);");
2637 }
2638 {
2639 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);
2640 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2641 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
2642 }
2643 }
2644 0 result = (gsl_stream_handler_t *)gsl_set_stream_handler(arg1);
2645 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++ ;
2646
2647 0 XSRETURN(argvi);
2648 0 fail:
2649
2650 0 SWIG_croak_null();
2651 }
2652 }
2653  
2654  
2655 0 XS(_wrap_gsl_set_stream) {
2656 {
2657 0 FILE *arg1 = (FILE *) 0 ;
2658 0 void *argp1 = 0 ;
2659 0 int res1 = 0 ;
2660 0 int argvi = 0;
2661 0 FILE *result = 0 ;
2662 0 dXSARGS;
2663
2664 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
2665 0 SWIG_croak("Usage: gsl_set_stream(new_stream);");
2666 }
2667 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2668 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2669 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
2670 }
2671 0 arg1 = (FILE *)(argp1);
2672 0 result = (FILE *)gsl_set_stream(arg1);
2673 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ;
2674
2675 0 XSRETURN(argvi);
2676 0 fail:
2677
2678 0 SWIG_croak_null();
2679 }
2680 }
2681  
2682  
2683 0 XS(_wrap_gsl_multimin_function_struct_f_set) {
2684 {
2685 0 struct gsl_multimin_function_struct *arg1 = (struct gsl_multimin_function_struct *) 0 ;
2686 0 double (*arg2)(gsl_vector const *,void *) = (double (*)(gsl_vector const *,void *)) 0 ;
2687 0 void *argp1 = 0 ;
2688 0 int res1 = 0 ;
2689 0 int argvi = 0;
2690 0 dXSARGS;
2691
2692 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
2693 0 SWIG_croak("Usage: gsl_multimin_function_struct_f_set(self,f);");
2694 }
2695 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
2696 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2697 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_f_set" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_f_set" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'"); 0 0 0
2698 }
2699 0 arg1 = (struct gsl_multimin_function_struct *)(argp1);
2700 {
2701 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void__double);
2702 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2703 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_struct_f_set" "', argument " "2"" of type '" "double (*)(gsl_vector const *,void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_struct_f_set" "', argument " "2"" of type '" "double (*)(gsl_vector const *,void *)""'"); 0 0 0
2704 }
2705 }
2706 0 ▶ if (arg1) (arg1)->f = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->f = arg2; 0 0 0
2707 0 ST(argvi) = &PL_sv_undef;
2708
2709
2710 0 XSRETURN(argvi);
2711 0 fail:
2712
2713
2714 0 SWIG_croak_null();
2715 }
2716 }
2717  
2718  
2719 0 XS(_wrap_gsl_multimin_function_struct_f_get) {
2720 {
2721 0 struct gsl_multimin_function_struct *arg1 = (struct gsl_multimin_function_struct *) 0 ;
2722 0 void *argp1 = 0 ;
2723 0 int res1 = 0 ;
2724 0 int argvi = 0;
2725 0 double (*result)(gsl_vector const *,void *) = 0 ;
2726 0 dXSARGS;
2727
2728 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
2729 0 SWIG_croak("Usage: gsl_multimin_function_struct_f_get(self);");
2730 }
2731 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
2732 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2733 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_f_get" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_f_get" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'"); 0 0 0
2734 }
2735 0 arg1 = (struct gsl_multimin_function_struct *)(argp1);
2736 0 result = (double (*)(gsl_vector const *,void *)) ((arg1)->f);
2737 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void__double); argvi++ ;
2738
2739 0 XSRETURN(argvi);
2740 0 fail:
2741
2742 0 SWIG_croak_null();
2743 }
2744 }
2745  
2746  
2747 0 XS(_wrap_gsl_multimin_function_struct_n_set) {
2748 {
2749 0 struct gsl_multimin_function_struct *arg1 = (struct gsl_multimin_function_struct *) 0 ;
2750 size_t arg2 ;
2751 0 void *argp1 = 0 ;
2752 0 int res1 = 0 ;
2753 size_t val2 ;
2754 0 int ecode2 = 0 ;
2755 0 int argvi = 0;
2756 0 dXSARGS;
2757
2758 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
2759 0 SWIG_croak("Usage: gsl_multimin_function_struct_n_set(self,n);");
2760 }
2761 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
2762 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2763 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_n_set" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_n_set" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'"); 0 0 0
2764 }
2765 0 arg1 = (struct gsl_multimin_function_struct *)(argp1);
2766 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
2767 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
2768 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_function_struct_n_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_function_struct_n_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
2769 }
2770 0 arg2 = (size_t)(val2);
2771 0 ▶ if (arg1) (arg1)->n = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->n = arg2; 0 0 0
2772 0 ST(argvi) = &PL_sv_undef;
2773
2774
2775 0 XSRETURN(argvi);
2776 0 fail:
2777
2778
2779 0 SWIG_croak_null();
2780 }
2781 }
2782  
2783  
2784 0 XS(_wrap_gsl_multimin_function_struct_n_get) {
2785 {
2786 0 struct gsl_multimin_function_struct *arg1 = (struct gsl_multimin_function_struct *) 0 ;
2787 0 void *argp1 = 0 ;
2788 0 int res1 = 0 ;
2789 0 int argvi = 0;
2790 size_t result;
2791 0 dXSARGS;
2792
2793 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
2794 0 SWIG_croak("Usage: gsl_multimin_function_struct_n_get(self);");
2795 }
2796 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
2797 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2798 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_n_get" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_n_get" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'"); 0 0 0
2799 }
2800 0 arg1 = (struct gsl_multimin_function_struct *)(argp1);
2801 0 result = ((arg1)->n);
2802 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
2803
2804 0 XSRETURN(argvi);
2805 0 fail:
2806
2807 0 SWIG_croak_null();
2808 }
2809 }
2810  
2811  
2812 0 XS(_wrap_gsl_multimin_function_struct_params_set) {
2813 {
2814 0 struct gsl_multimin_function_struct *arg1 = (struct gsl_multimin_function_struct *) 0 ;
2815 0 void *arg2 = (void *) 0 ;
2816 0 void *argp1 = 0 ;
2817 0 int res1 = 0 ;
2818 int res2 ;
2819 0 int argvi = 0;
2820 0 dXSARGS;
2821
2822 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
2823 0 SWIG_croak("Usage: gsl_multimin_function_struct_params_set(self,params);");
2824 }
2825 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
2826 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2827 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_params_set" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_params_set" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'"); 0 0 0
2828 }
2829 0 arg1 = (struct gsl_multimin_function_struct *)(argp1);
2830 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
2831 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
2832 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_function_struct_params_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_function_struct_params_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
2833 }
2834 0 ▶ if (arg1) (arg1)->params = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->params = arg2; 0 0 0
2835 0 ST(argvi) = &PL_sv_undef;
2836
2837
2838 0 XSRETURN(argvi);
2839 0 fail:
2840
2841
2842 0 SWIG_croak_null();
2843 }
2844 }
2845  
2846  
2847 0 XS(_wrap_gsl_multimin_function_struct_params_get) {
2848 {
2849 0 struct gsl_multimin_function_struct *arg1 = (struct gsl_multimin_function_struct *) 0 ;
2850 0 void *argp1 = 0 ;
2851 0 int res1 = 0 ;
2852 0 int argvi = 0;
2853 0 void *result = 0 ;
2854 0 dXSARGS;
2855
2856 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
2857 0 SWIG_croak("Usage: gsl_multimin_function_struct_params_get(self);");
2858 }
2859 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
2860 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2861 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_params_get" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_struct_params_get" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'"); 0 0 0
2862 }
2863 0 arg1 = (struct gsl_multimin_function_struct *)(argp1);
2864 0 result = (void *) ((arg1)->params);
2865 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
2866
2867 0 XSRETURN(argvi);
2868 0 fail:
2869
2870 0 SWIG_croak_null();
2871 }
2872 }
2873  
2874  
2875 0 XS(_wrap_new_gsl_multimin_function_struct) {
2876 {
2877 0 int argvi = 0;
2878 0 struct gsl_multimin_function_struct *result = 0 ;
2879 0 dXSARGS;
2880
2881 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
2882 0 SWIG_croak("Usage: new_gsl_multimin_function_struct();");
2883 }
2884 0 result = (struct gsl_multimin_function_struct *)calloc(1, sizeof(struct gsl_multimin_function_struct));
2885 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_function_struct, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
2886 0 XSRETURN(argvi);
2887 0 fail:
2888 0 SWIG_croak_null();
2889 }
2890 }
2891  
2892  
2893 0 XS(_wrap_delete_gsl_multimin_function_struct) {
2894 {
2895 0 struct gsl_multimin_function_struct *arg1 = (struct gsl_multimin_function_struct *) 0 ;
2896 0 void *argp1 = 0 ;
2897 0 int res1 = 0 ;
2898 0 int argvi = 0;
2899 0 dXSARGS;
2900
2901 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
2902 0 SWIG_croak("Usage: delete_gsl_multimin_function_struct(self);");
2903 }
2904 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, SWIG_POINTER_DISOWN | 0 );
2905 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2906 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_function_struct" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_function_struct" "', argument " "1"" of type '" "struct gsl_multimin_function_struct *""'"); 0 0 0
2907 }
2908 0 arg1 = (struct gsl_multimin_function_struct *)(argp1);
2909 0 free((char *) arg1);
2910 0 ST(argvi) = &PL_sv_undef;
2911
2912 0 XSRETURN(argvi);
2913 0 fail:
2914
2915 0 SWIG_croak_null();
2916 }
2917 }
2918  
2919  
2920 0 XS(_wrap_gsl_multimin_function_fdf_struct_f_set) {
2921 {
2922 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
2923 0 double (*arg2)(gsl_vector const *,void *) = (double (*)(gsl_vector const *,void *)) 0 ;
2924 0 void *argp1 = 0 ;
2925 0 int res1 = 0 ;
2926 0 int argvi = 0;
2927 0 dXSARGS;
2928
2929 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
2930 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_f_set(self,f);");
2931 }
2932 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
2933 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2934 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_f_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_f_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
2935 }
2936 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
2937 {
2938 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void__double);
2939 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
2940 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_fdf_struct_f_set" "', argument " "2"" of type '" "double (*)(gsl_vector const *,void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_fdf_struct_f_set" "', argument " "2"" of type '" "double (*)(gsl_vector const *,void *)""'"); 0 0 0
2941 }
2942 }
2943 0 ▶ if (arg1) (arg1)->f = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->f = arg2; 0 0 0
2944 0 ST(argvi) = &PL_sv_undef;
2945
2946
2947 0 XSRETURN(argvi);
2948 0 fail:
2949
2950
2951 0 SWIG_croak_null();
2952 }
2953 }
2954  
2955  
2956 0 XS(_wrap_gsl_multimin_function_fdf_struct_f_get) {
2957 {
2958 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
2959 0 void *argp1 = 0 ;
2960 0 int res1 = 0 ;
2961 0 int argvi = 0;
2962 0 double (*result)(gsl_vector const *,void *) = 0 ;
2963 0 dXSARGS;
2964
2965 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
2966 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_f_get(self);");
2967 }
2968 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
2969 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2970 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_f_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_f_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
2971 }
2972 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
2973 0 result = (double (*)(gsl_vector const *,void *)) ((arg1)->f);
2974 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void__double); argvi++ ;
2975
2976 0 XSRETURN(argvi);
2977 0 fail:
2978
2979 0 SWIG_croak_null();
2980 }
2981 }
2982  
2983  
2984 0 XS(_wrap_gsl_multimin_function_fdf_struct_df_set) {
2985 {
2986 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
2987 0 void (*arg2)(gsl_vector const *,void *,gsl_vector *) = (void (*)(gsl_vector const *,void *,gsl_vector *)) 0 ;
2988 0 void *argp1 = 0 ;
2989 0 int res1 = 0 ;
2990 0 int argvi = 0;
2991 0 dXSARGS;
2992
2993 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
2994 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_df_set(self,df);");
2995 }
2996 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
2997 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
2998 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_df_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_df_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
2999 }
3000 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3001 {
3002 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void);
3003 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3004 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_fdf_struct_df_set" "', argument " "2"" of type '" "void (*)(gsl_vector const *,void *,gsl_vector *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_fdf_struct_df_set" "', argument " "2"" of type '" "void (*)(gsl_vector const *,void *,gsl_vector *)""'"); 0 0 0
3005 }
3006 }
3007 0 ▶ if (arg1) (arg1)->df = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->df = arg2; 0 0 0
3008 0 ST(argvi) = &PL_sv_undef;
3009
3010
3011 0 XSRETURN(argvi);
3012 0 fail:
3013
3014
3015 0 SWIG_croak_null();
3016 }
3017 }
3018  
3019  
3020 0 XS(_wrap_gsl_multimin_function_fdf_struct_df_get) {
3021 {
3022 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3023 0 void *argp1 = 0 ;
3024 0 int res1 = 0 ;
3025 0 int argvi = 0;
3026 0 void (*result)(gsl_vector const *,void *,gsl_vector *) = 0 ;
3027 0 dXSARGS;
3028
3029 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
3030 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_df_get(self);");
3031 }
3032 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
3033 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3034 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_df_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_df_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3035 }
3036 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3037 0 result = (void (*)(gsl_vector const *,void *,gsl_vector *)) ((arg1)->df);
3038 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void); argvi++ ;
3039
3040 0 XSRETURN(argvi);
3041 0 fail:
3042
3043 0 SWIG_croak_null();
3044 }
3045 }
3046  
3047  
3048 0 XS(_wrap_gsl_multimin_function_fdf_struct_fdf_set) {
3049 {
3050 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3051 0 void (*arg2)(gsl_vector const *,void *,double *,gsl_vector *) = (void (*)(gsl_vector const *,void *,double *,gsl_vector *)) 0 ;
3052 0 void *argp1 = 0 ;
3053 0 int res1 = 0 ;
3054 0 int argvi = 0;
3055 0 dXSARGS;
3056
3057 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
3058 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_fdf_set(self,fdf);");
3059 }
3060 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
3061 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3062 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_fdf_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_fdf_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3063 }
3064 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3065 {
3066 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void);
3067 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3068 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_fdf_struct_fdf_set" "', argument " "2"" of type '" "void (*)(gsl_vector const *,void *,double *,gsl_vector *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_function_fdf_struct_fdf_set" "', argument " "2"" of type '" "void (*)(gsl_vector const *,void *,double *,gsl_vector *)""'"); 0 0 0
3069 }
3070 }
3071 0 ▶ if (arg1) (arg1)->fdf = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->fdf = arg2; 0 0 0
3072 0 ST(argvi) = &PL_sv_undef;
3073
3074
3075 0 XSRETURN(argvi);
3076 0 fail:
3077
3078
3079 0 SWIG_croak_null();
3080 }
3081 }
3082  
3083  
3084 0 XS(_wrap_gsl_multimin_function_fdf_struct_fdf_get) {
3085 {
3086 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3087 0 void *argp1 = 0 ;
3088 0 int res1 = 0 ;
3089 0 int argvi = 0;
3090 0 void (*result)(gsl_vector const *,void *,double *,gsl_vector *) = 0 ;
3091 0 dXSARGS;
3092
3093 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
3094 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_fdf_get(self);");
3095 }
3096 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
3097 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3098 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_fdf_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_fdf_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3099 }
3100 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3101 0 result = (void (*)(gsl_vector const *,void *,double *,gsl_vector *)) ((arg1)->fdf);
3102 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void); argvi++ ;
3103
3104 0 XSRETURN(argvi);
3105 0 fail:
3106
3107 0 SWIG_croak_null();
3108 }
3109 }
3110  
3111  
3112 0 XS(_wrap_gsl_multimin_function_fdf_struct_n_set) {
3113 {
3114 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3115 size_t arg2 ;
3116 0 void *argp1 = 0 ;
3117 0 int res1 = 0 ;
3118 size_t val2 ;
3119 0 int ecode2 = 0 ;
3120 0 int argvi = 0;
3121 0 dXSARGS;
3122
3123 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
3124 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_n_set(self,n);");
3125 }
3126 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
3127 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3128 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_n_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_n_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3129 }
3130 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3131 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3132 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3133 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_function_fdf_struct_n_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_function_fdf_struct_n_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3134 }
3135 0 arg2 = (size_t)(val2);
3136 0 ▶ if (arg1) (arg1)->n = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->n = arg2; 0 0 0
3137 0 ST(argvi) = &PL_sv_undef;
3138
3139
3140 0 XSRETURN(argvi);
3141 0 fail:
3142
3143
3144 0 SWIG_croak_null();
3145 }
3146 }
3147  
3148  
3149 0 XS(_wrap_gsl_multimin_function_fdf_struct_n_get) {
3150 {
3151 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3152 0 void *argp1 = 0 ;
3153 0 int res1 = 0 ;
3154 0 int argvi = 0;
3155 size_t result;
3156 0 dXSARGS;
3157
3158 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
3159 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_n_get(self);");
3160 }
3161 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
3162 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3163 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_n_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_n_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3164 }
3165 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3166 0 result = ((arg1)->n);
3167 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
3168
3169 0 XSRETURN(argvi);
3170 0 fail:
3171
3172 0 SWIG_croak_null();
3173 }
3174 }
3175  
3176  
3177 0 XS(_wrap_gsl_multimin_function_fdf_struct_params_set) {
3178 {
3179 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3180 0 void *arg2 = (void *) 0 ;
3181 0 void *argp1 = 0 ;
3182 0 int res1 = 0 ;
3183 int res2 ;
3184 0 int argvi = 0;
3185 0 dXSARGS;
3186
3187 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
3188 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_params_set(self,params);");
3189 }
3190 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
3191 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3192 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_params_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_params_set" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3193 }
3194 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3195 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
3196 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3197 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_function_fdf_struct_params_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_function_fdf_struct_params_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
3198 }
3199 0 ▶ if (arg1) (arg1)->params = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->params = arg2; 0 0 0
3200 0 ST(argvi) = &PL_sv_undef;
3201
3202
3203 0 XSRETURN(argvi);
3204 0 fail:
3205
3206
3207 0 SWIG_croak_null();
3208 }
3209 }
3210  
3211  
3212 0 XS(_wrap_gsl_multimin_function_fdf_struct_params_get) {
3213 {
3214 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3215 0 void *argp1 = 0 ;
3216 0 int res1 = 0 ;
3217 0 int argvi = 0;
3218 0 void *result = 0 ;
3219 0 dXSARGS;
3220
3221 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
3222 0 SWIG_croak("Usage: gsl_multimin_function_fdf_struct_params_get(self);");
3223 }
3224 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
3225 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3226 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_params_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_function_fdf_struct_params_get" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3227 }
3228 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3229 0 result = (void *) ((arg1)->params);
3230 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
3231
3232 0 XSRETURN(argvi);
3233 0 fail:
3234
3235 0 SWIG_croak_null();
3236 }
3237 }
3238  
3239  
3240 0 XS(_wrap_new_gsl_multimin_function_fdf_struct) {
3241 {
3242 0 int argvi = 0;
3243 0 struct gsl_multimin_function_fdf_struct *result = 0 ;
3244 0 dXSARGS;
3245
3246 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
3247 0 SWIG_croak("Usage: new_gsl_multimin_function_fdf_struct();");
3248 }
3249 0 result = (struct gsl_multimin_function_fdf_struct *)calloc(1, sizeof(struct gsl_multimin_function_fdf_struct));
3250 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_function_fdf_struct, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3251 0 XSRETURN(argvi);
3252 0 fail:
3253 0 SWIG_croak_null();
3254 }
3255 }
3256  
3257  
3258 0 XS(_wrap_delete_gsl_multimin_function_fdf_struct) {
3259 {
3260 0 struct gsl_multimin_function_fdf_struct *arg1 = (struct gsl_multimin_function_fdf_struct *) 0 ;
3261 0 void *argp1 = 0 ;
3262 0 int res1 = 0 ;
3263 0 int argvi = 0;
3264 0 dXSARGS;
3265
3266 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
3267 0 SWIG_croak("Usage: delete_gsl_multimin_function_fdf_struct(self);");
3268 }
3269 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_fdf_struct, SWIG_POINTER_DISOWN | 0 );
3270 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3271 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_function_fdf_struct" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_function_fdf_struct" "', argument " "1"" of type '" "struct gsl_multimin_function_fdf_struct *""'"); 0 0 0
3272 }
3273 0 arg1 = (struct gsl_multimin_function_fdf_struct *)(argp1);
3274 0 free((char *) arg1);
3275 0 ST(argvi) = &PL_sv_undef;
3276
3277 0 XSRETURN(argvi);
3278 0 fail:
3279
3280 0 SWIG_croak_null();
3281 }
3282 }
3283  
3284  
3285 0 XS(_wrap_gsl_multimin_diff) {
3286 {
3287 0 gsl_multimin_function *arg1 = (gsl_multimin_function *) 0 ;
3288 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
3289 0 gsl_vector *arg3 = (gsl_vector *) 0 ;
3290 0 void *argp1 = 0 ;
3291 0 int res1 = 0 ;
3292 0 void *argp2 = 0 ;
3293 0 int res2 = 0 ;
3294 0 void *argp3 = 0 ;
3295 0 int res3 = 0 ;
3296 0 int argvi = 0;
3297 int result;
3298 0 dXSARGS;
3299
3300 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
3301 0 SWIG_croak("Usage: gsl_multimin_diff(f,x,g);");
3302 }
3303 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
3304 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3305 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_diff" "', argument " "1"" of type '" "gsl_multimin_function const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_diff" "', argument " "1"" of type '" "gsl_multimin_function const *""'"); 0 0 0
3306 }
3307 0 arg1 = (gsl_multimin_function *)(argp1);
3308 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, 0 | 0 );
3309 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3310 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_diff" "', argument " "2"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_diff" "', argument " "2"" of type '" "gsl_vector const *""'"); 0 0 0
3311 }
3312 0 arg2 = (gsl_vector *)(argp2);
3313 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 );
3314 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
3315 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multimin_diff" "', argument " "3"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multimin_diff" "', argument " "3"" of type '" "gsl_vector *""'"); 0 0 0
3316 }
3317 0 arg3 = (gsl_vector *)(argp3);
3318 0 result = (int)gsl_multimin_diff((struct gsl_multimin_function_struct const *)arg1,(gsl_vector const *)arg2,arg3);
3319 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
3320
3321
3322
3323 0 XSRETURN(argvi);
3324 0 fail:
3325
3326
3327
3328 0 SWIG_croak_null();
3329 }
3330 }
3331  
3332  
3333 0 XS(_wrap_gsl_multimin_fminimizer_type_name_set) {
3334 {
3335 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3336 0 char *arg2 = (char *) 0 ;
3337 0 void *argp1 = 0 ;
3338 0 int res1 = 0 ;
3339 int res2 ;
3340 0 char *buf2 = 0 ;
3341 0 int alloc2 = 0 ;
3342 0 int argvi = 0;
3343 0 dXSARGS;
3344
3345 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
3346 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_name_set(self,name);");
3347 }
3348 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3349 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3350 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_name_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_name_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3351 }
3352 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3353 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
3354 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3355 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_type_name_set" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_type_name_set" "', argument " "2"" of type '" "char const *""'"); 0 0 0
3356 }
3357 0 arg2 = (char *)(buf2);
3358 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
3359 0 size_t size = strlen((const char *)((const char *)(arg2))) + 1;
3360 0 arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
3361 } else {
3362 0 arg1->name = 0;
3363 }
3364 0 ST(argvi) = &PL_sv_undef;
3365
3366 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
3367 0 XSRETURN(argvi);
3368 0 fail:
3369
3370 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
3371 0 SWIG_croak_null();
3372 }
3373 }
3374  
3375  
3376 0 XS(_wrap_gsl_multimin_fminimizer_type_name_get) {
3377 {
3378 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3379 0 void *argp1 = 0 ;
3380 0 int res1 = 0 ;
3381 0 int argvi = 0;
3382 0 char *result = 0 ;
3383 0 dXSARGS;
3384
3385 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
3386 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_name_get(self);");
3387 }
3388 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3389 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3390 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_name_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_name_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3391 }
3392 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3393 0 result = (char *) ((arg1)->name);
3394 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
3395
3396 0 XSRETURN(argvi);
3397 0 fail:
3398
3399 0 SWIG_croak_null();
3400 }
3401 }
3402  
3403  
3404 0 XS(_wrap_gsl_multimin_fminimizer_type_size_set) {
3405 {
3406 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3407 size_t arg2 ;
3408 0 void *argp1 = 0 ;
3409 0 int res1 = 0 ;
3410 size_t val2 ;
3411 0 int ecode2 = 0 ;
3412 0 int argvi = 0;
3413 0 dXSARGS;
3414
3415 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
3416 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_size_set(self,size);");
3417 }
3418 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3419 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3420 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_size_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_size_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3421 }
3422 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3423 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3424 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3425 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_type_size_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_type_size_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
3426 }
3427 0 arg2 = (size_t)(val2);
3428 0 ▶ if (arg1) (arg1)->size = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->size = arg2; 0 0 0
3429 0 ST(argvi) = &PL_sv_undef;
3430
3431
3432 0 XSRETURN(argvi);
3433 0 fail:
3434
3435
3436 0 SWIG_croak_null();
3437 }
3438 }
3439  
3440  
3441 0 XS(_wrap_gsl_multimin_fminimizer_type_size_get) {
3442 {
3443 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3444 0 void *argp1 = 0 ;
3445 0 int res1 = 0 ;
3446 0 int argvi = 0;
3447 size_t result;
3448 0 dXSARGS;
3449
3450 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
3451 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_size_get(self);");
3452 }
3453 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3454 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3455 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_size_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_size_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3456 }
3457 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3458 0 result = ((arg1)->size);
3459 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
3460
3461 0 XSRETURN(argvi);
3462 0 fail:
3463
3464 0 SWIG_croak_null();
3465 }
3466 }
3467  
3468  
3469 0 XS(_wrap_gsl_multimin_fminimizer_type_alloc_set) {
3470 {
3471 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3472 0 int (*arg2)(void *,size_t) = (int (*)(void *,size_t)) 0 ;
3473 0 void *argp1 = 0 ;
3474 0 int res1 = 0 ;
3475 0 int argvi = 0;
3476 0 dXSARGS;
3477
3478 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
3479 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_alloc_set(self,alloc);");
3480 }
3481 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3482 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3483 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_alloc_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_alloc_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3484 }
3485 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3486 {
3487 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t__int);
3488 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3489 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'"); 0 0 0
3490 }
3491 }
3492 0 ▶ if (arg1) (arg1)->alloc = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->alloc = arg2; 0 0 0
3493 0 ST(argvi) = &PL_sv_undef;
3494
3495
3496 0 XSRETURN(argvi);
3497 0 fail:
3498
3499
3500 0 SWIG_croak_null();
3501 }
3502 }
3503  
3504  
3505 0 XS(_wrap_gsl_multimin_fminimizer_type_alloc_get) {
3506 {
3507 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3508 0 void *argp1 = 0 ;
3509 0 int res1 = 0 ;
3510 0 int argvi = 0;
3511 0 int (*result)(void *,size_t) = 0 ;
3512 0 dXSARGS;
3513
3514 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
3515 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_alloc_get(self);");
3516 }
3517 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3518 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3519 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_alloc_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_alloc_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3520 }
3521 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3522 0 result = (int (*)(void *,size_t)) ((arg1)->alloc);
3523 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t__int); argvi++ ;
3524
3525 0 XSRETURN(argvi);
3526 0 fail:
3527
3528 0 SWIG_croak_null();
3529 }
3530 }
3531  
3532  
3533 0 XS(_wrap_gsl_multimin_fminimizer_type_set_set) {
3534 {
3535 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3536 0 int (*arg2)(void *,gsl_multimin_function *,gsl_vector const *,double *,gsl_vector const *) = (int (*)(void *,gsl_multimin_function *,gsl_vector const *,double *,gsl_vector const *)) 0 ;
3537 0 void *argp1 = 0 ;
3538 0 int res1 = 0 ;
3539 0 int argvi = 0;
3540 0 dXSARGS;
3541
3542 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
3543 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_set_set(self,set);");
3544 }
3545 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3546 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3547 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_set_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_set_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3548 }
3549 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3550 {
3551 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int);
3552 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3553 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function *,gsl_vector const *,double *,gsl_vector const *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function *,gsl_vector const *,double *,gsl_vector const *)""'"); 0 0 0
3554 }
3555 }
3556 0 ▶ if (arg1) (arg1)->set = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->set = arg2; 0 0 0
3557 0 ST(argvi) = &PL_sv_undef;
3558
3559
3560 0 XSRETURN(argvi);
3561 0 fail:
3562
3563
3564 0 SWIG_croak_null();
3565 }
3566 }
3567  
3568  
3569 0 XS(_wrap_gsl_multimin_fminimizer_type_set_get) {
3570 {
3571 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3572 0 void *argp1 = 0 ;
3573 0 int res1 = 0 ;
3574 0 int argvi = 0;
3575 0 int (*result)(void *,gsl_multimin_function *,gsl_vector const *,double *,gsl_vector const *) = 0 ;
3576 0 dXSARGS;
3577
3578 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
3579 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_set_get(self);");
3580 }
3581 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3582 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3583 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_set_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_set_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3584 }
3585 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3586 0 result = (int (*)(void *,gsl_multimin_function *,gsl_vector const *,double *,gsl_vector const *)) ((arg1)->set);
3587 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int); argvi++ ;
3588
3589 0 XSRETURN(argvi);
3590 0 fail:
3591
3592 0 SWIG_croak_null();
3593 }
3594 }
3595  
3596  
3597 0 XS(_wrap_gsl_multimin_fminimizer_type_iterate_set) {
3598 {
3599 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3600 0 int (*arg2)(void *,gsl_multimin_function *,gsl_vector *,double *,double *) = (int (*)(void *,gsl_multimin_function *,gsl_vector *,double *,double *)) 0 ;
3601 0 void *argp1 = 0 ;
3602 0 int res1 = 0 ;
3603 0 int argvi = 0;
3604 0 dXSARGS;
3605
3606 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
3607 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_iterate_set(self,iterate);");
3608 }
3609 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3610 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3611 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_iterate_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_iterate_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3612 }
3613 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3614 {
3615 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int);
3616 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3617 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function *,gsl_vector *,double *,double *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function *,gsl_vector *,double *,double *)""'"); 0 0 0
3618 }
3619 }
3620 0 ▶ if (arg1) (arg1)->iterate = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->iterate = arg2; 0 0 0
3621 0 ST(argvi) = &PL_sv_undef;
3622
3623
3624 0 XSRETURN(argvi);
3625 0 fail:
3626
3627
3628 0 SWIG_croak_null();
3629 }
3630 }
3631  
3632  
3633 0 XS(_wrap_gsl_multimin_fminimizer_type_iterate_get) {
3634 {
3635 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3636 0 void *argp1 = 0 ;
3637 0 int res1 = 0 ;
3638 0 int argvi = 0;
3639 0 int (*result)(void *,gsl_multimin_function *,gsl_vector *,double *,double *) = 0 ;
3640 0 dXSARGS;
3641
3642 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
3643 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_iterate_get(self);");
3644 }
3645 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3646 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3647 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_iterate_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_iterate_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3648 }
3649 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3650 0 result = (int (*)(void *,gsl_multimin_function *,gsl_vector *,double *,double *)) ((arg1)->iterate);
3651 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int); argvi++ ;
3652
3653 0 XSRETURN(argvi);
3654 0 fail:
3655
3656 0 SWIG_croak_null();
3657 }
3658 }
3659  
3660  
3661 0 XS(_wrap_gsl_multimin_fminimizer_type_free_set) {
3662 {
3663 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3664 0 void (*arg2)(void *) = (void (*)(void *)) 0 ;
3665 0 void *argp1 = 0 ;
3666 0 int res1 = 0 ;
3667 0 int argvi = 0;
3668 0 dXSARGS;
3669
3670 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
3671 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_free_set(self,free);");
3672 }
3673 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3674 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3675 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_free_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_free_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3676 }
3677 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3678 {
3679 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
3680 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
3681 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fminimizer_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); 0 0 0
3682 }
3683 }
3684 0 ▶ if (arg1) (arg1)->free = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->free = arg2; 0 0 0
3685 0 ST(argvi) = &PL_sv_undef;
3686
3687
3688 0 XSRETURN(argvi);
3689 0 fail:
3690
3691
3692 0 SWIG_croak_null();
3693 }
3694 }
3695  
3696  
3697 0 XS(_wrap_gsl_multimin_fminimizer_type_free_get) {
3698 {
3699 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3700 0 void *argp1 = 0 ;
3701 0 int res1 = 0 ;
3702 0 int argvi = 0;
3703 0 void (*result)(void *) = 0 ;
3704 0 dXSARGS;
3705
3706 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
3707 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_free_get(self);");
3708 }
3709 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
3710 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3711 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_free_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_free_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3712 }
3713 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3714 0 result = (void (*)(void *)) ((arg1)->free);
3715 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); argvi++ ;
3716
3717 0 XSRETURN(argvi);
3718 0 fail:
3719
3720 0 SWIG_croak_null();
3721 }
3722 }
3723  
3724  
3725 0 XS(_wrap_new_gsl_multimin_fminimizer_type) {
3726 {
3727 0 int argvi = 0;
3728 0 gsl_multimin_fminimizer_type *result = 0 ;
3729 0 dXSARGS;
3730
3731 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
3732 0 SWIG_croak("Usage: new_gsl_multimin_fminimizer_type();");
3733 }
3734 0 result = (gsl_multimin_fminimizer_type *)calloc(1, sizeof(gsl_multimin_fminimizer_type));
3735 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fminimizer_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
3736 0 XSRETURN(argvi);
3737 0 fail:
3738 0 SWIG_croak_null();
3739 }
3740 }
3741  
3742  
3743 0 XS(_wrap_delete_gsl_multimin_fminimizer_type) {
3744 {
3745 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
3746 0 void *argp1 = 0 ;
3747 0 int res1 = 0 ;
3748 0 int argvi = 0;
3749 0 dXSARGS;
3750
3751 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
3752 0 SWIG_croak("Usage: delete_gsl_multimin_fminimizer_type(self);");
3753 }
3754 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, SWIG_POINTER_DISOWN | 0 );
3755 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3756 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fminimizer_type" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fminimizer_type" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type *""'"); 0 0 0
3757 }
3758 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
3759 0 free((char *) arg1);
3760 0 ST(argvi) = &PL_sv_undef;
3761
3762 0 XSRETURN(argvi);
3763 0 fail:
3764
3765 0 SWIG_croak_null();
3766 }
3767 }
3768  
3769  
3770 0 XS(_wrap_gsl_multimin_fminimizer_type_set) {
3771 {
3772 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
3773 0 gsl_multimin_fminimizer_type *arg2 = (gsl_multimin_fminimizer_type *) 0 ;
3774 0 void *argp1 = 0 ;
3775 0 int res1 = 0 ;
3776 0 void *argp2 = 0 ;
3777 0 int res2 = 0 ;
3778 0 int argvi = 0;
3779 0 dXSARGS;
3780
3781 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
3782 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_set(self,type);");
3783 }
3784 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
3785 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3786 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
3787 }
3788 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
3789 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multimin_fminimizer_type, SWIG_POINTER_DISOWN | 0 );
3790 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3791 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_type_set" "', argument " "2"" of type '" "gsl_multimin_fminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_type_set" "', argument " "2"" of type '" "gsl_multimin_fminimizer_type const *""'"); 0 0 0
3792 }
3793 0 arg2 = (gsl_multimin_fminimizer_type *)(argp2);
3794 0 ▶ if (arg1) (arg1)->type = (gsl_multimin_fminimizer_type const *)arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->type = (gsl_multimin_fminimizer_type const *)arg2; 0 0 0
3795 0 ST(argvi) = &PL_sv_undef;
3796
3797
3798 0 XSRETURN(argvi);
3799 0 fail:
3800
3801
3802 0 SWIG_croak_null();
3803 }
3804 }
3805  
3806  
3807 0 XS(_wrap_gsl_multimin_fminimizer_type_get) {
3808 {
3809 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
3810 0 void *argp1 = 0 ;
3811 0 int res1 = 0 ;
3812 0 int argvi = 0;
3813 0 gsl_multimin_fminimizer_type *result = 0 ;
3814 0 dXSARGS;
3815
3816 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
3817 0 SWIG_croak("Usage: gsl_multimin_fminimizer_type_get(self);");
3818 }
3819 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
3820 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3821 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_type_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
3822 }
3823 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
3824 0 result = (gsl_multimin_fminimizer_type *) ((arg1)->type);
3825 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | SWIG_SHADOW); argvi++ ;
3826
3827 0 XSRETURN(argvi);
3828 0 fail:
3829
3830 0 SWIG_croak_null();
3831 }
3832 }
3833  
3834  
3835 0 XS(_wrap_gsl_multimin_fminimizer_f_set) {
3836 {
3837 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
3838 0 gsl_multimin_function *arg2 = (gsl_multimin_function *) 0 ;
3839 0 void *argp1 = 0 ;
3840 0 int res1 = 0 ;
3841 0 void *argp2 = 0 ;
3842 0 int res2 = 0 ;
3843 0 int argvi = 0;
3844 0 dXSARGS;
3845
3846 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
3847 0 SWIG_croak("Usage: gsl_multimin_fminimizer_f_set(self,f);");
3848 }
3849 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
3850 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3851 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_f_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_f_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
3852 }
3853 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
3854 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multimin_function_struct, SWIG_POINTER_DISOWN | 0 );
3855 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3856 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_f_set" "', argument " "2"" of type '" "gsl_multimin_function *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_f_set" "', argument " "2"" of type '" "gsl_multimin_function *""'"); 0 0 0
3857 }
3858 0 arg2 = (gsl_multimin_function *)(argp2);
3859 0 ▶ if (arg1) (arg1)->f = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->f = arg2; 0 0 0
3860 0 ST(argvi) = &PL_sv_undef;
3861
3862
3863 0 XSRETURN(argvi);
3864 0 fail:
3865
3866
3867 0 SWIG_croak_null();
3868 }
3869 }
3870  
3871  
3872 0 XS(_wrap_gsl_multimin_fminimizer_f_get) {
3873 {
3874 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
3875 0 void *argp1 = 0 ;
3876 0 int res1 = 0 ;
3877 0 int argvi = 0;
3878 0 gsl_multimin_function *result = 0 ;
3879 0 dXSARGS;
3880
3881 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
3882 0 SWIG_croak("Usage: gsl_multimin_fminimizer_f_get(self);");
3883 }
3884 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
3885 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3886 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_f_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_f_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
3887 }
3888 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
3889 0 result = (gsl_multimin_function *) ((arg1)->f);
3890 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_function_struct, 0 | SWIG_SHADOW); argvi++ ;
3891
3892 0 XSRETURN(argvi);
3893 0 fail:
3894
3895 0 SWIG_croak_null();
3896 }
3897 }
3898  
3899  
3900 0 XS(_wrap_gsl_multimin_fminimizer_fval_set) {
3901 {
3902 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
3903 double arg2 ;
3904 0 void *argp1 = 0 ;
3905 0 int res1 = 0 ;
3906 double val2 ;
3907 0 int ecode2 = 0 ;
3908 0 int argvi = 0;
3909 0 dXSARGS;
3910
3911 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
3912 0 SWIG_croak("Usage: gsl_multimin_fminimizer_fval_set(self,fval);");
3913 }
3914 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
3915 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3916 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_fval_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_fval_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
3917 }
3918 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
3919 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
3920 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
3921 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_fval_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_fval_set" "', argument " "2"" of type '" "double""'"); 0 0 0
3922 }
3923 0 arg2 = (double)(val2);
3924 0 ▶ if (arg1) (arg1)->fval = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->fval = arg2; 0 0 0
3925 0 ST(argvi) = &PL_sv_undef;
3926
3927
3928 0 XSRETURN(argvi);
3929 0 fail:
3930
3931
3932 0 SWIG_croak_null();
3933 }
3934 }
3935  
3936  
3937 0 XS(_wrap_gsl_multimin_fminimizer_fval_get) {
3938 {
3939 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
3940 0 void *argp1 = 0 ;
3941 0 int res1 = 0 ;
3942 0 int argvi = 0;
3943 double result;
3944 0 dXSARGS;
3945
3946 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
3947 0 SWIG_croak("Usage: gsl_multimin_fminimizer_fval_get(self);");
3948 }
3949 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
3950 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3951 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_fval_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_fval_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
3952 }
3953 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
3954 0 result = (double) ((arg1)->fval);
3955 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
3956
3957 0 XSRETURN(argvi);
3958 0 fail:
3959
3960 0 SWIG_croak_null();
3961 }
3962 }
3963  
3964  
3965 0 XS(_wrap_gsl_multimin_fminimizer_x_set) {
3966 {
3967 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
3968 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
3969 0 void *argp1 = 0 ;
3970 0 int res1 = 0 ;
3971 0 void *argp2 = 0 ;
3972 0 int res2 = 0 ;
3973 0 int argvi = 0;
3974 0 dXSARGS;
3975
3976 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
3977 0 SWIG_croak("Usage: gsl_multimin_fminimizer_x_set(self,x);");
3978 }
3979 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
3980 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
3981 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_x_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_x_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
3982 }
3983 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
3984 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 );
3985 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
3986 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_x_set" "', argument " "2"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_x_set" "', argument " "2"" of type '" "gsl_vector *""'"); 0 0 0
3987 }
3988 0 arg2 = (gsl_vector *)(argp2);
3989 0 ▶ if (arg1) (arg1)->x = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->x = arg2; 0 0 0
3990 0 ST(argvi) = &PL_sv_undef;
3991
3992
3993 0 XSRETURN(argvi);
3994 0 fail:
3995
3996
3997 0 SWIG_croak_null();
3998 }
3999 }
4000  
4001  
4002 0 XS(_wrap_gsl_multimin_fminimizer_x_get) {
4003 {
4004 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4005 0 void *argp1 = 0 ;
4006 0 int res1 = 0 ;
4007 0 int argvi = 0;
4008 0 gsl_vector *result = 0 ;
4009 0 dXSARGS;
4010
4011 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
4012 0 SWIG_croak("Usage: gsl_multimin_fminimizer_x_get(self);");
4013 }
4014 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4015 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4016 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_x_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_x_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4017 }
4018 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4019 0 result = (gsl_vector *) ((arg1)->x);
4020 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
4021
4022 0 XSRETURN(argvi);
4023 0 fail:
4024
4025 0 SWIG_croak_null();
4026 }
4027 }
4028  
4029  
4030 0 XS(_wrap_gsl_multimin_fminimizer_size_set) {
4031 {
4032 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4033 double arg2 ;
4034 0 void *argp1 = 0 ;
4035 0 int res1 = 0 ;
4036 double val2 ;
4037 0 int ecode2 = 0 ;
4038 0 int argvi = 0;
4039 0 dXSARGS;
4040
4041 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
4042 0 SWIG_croak("Usage: gsl_multimin_fminimizer_size_set(self,size);");
4043 }
4044 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4045 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4046 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_size_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_size_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4047 }
4048 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4049 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4050 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4051 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_size_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_size_set" "', argument " "2"" of type '" "double""'"); 0 0 0
4052 }
4053 0 arg2 = (double)(val2);
4054 0 ▶ if (arg1) (arg1)->size = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->size = arg2; 0 0 0
4055 0 ST(argvi) = &PL_sv_undef;
4056
4057
4058 0 XSRETURN(argvi);
4059 0 fail:
4060
4061
4062 0 SWIG_croak_null();
4063 }
4064 }
4065  
4066  
4067 0 XS(_wrap_gsl_multimin_fminimizer_size_get) {
4068 {
4069 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4070 0 void *argp1 = 0 ;
4071 0 int res1 = 0 ;
4072 0 int argvi = 0;
4073 double result;
4074 0 dXSARGS;
4075
4076 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
4077 0 SWIG_croak("Usage: gsl_multimin_fminimizer_size_get(self);");
4078 }
4079 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4080 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4081 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_size_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_size_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4082 }
4083 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4084 0 result = (double) ((arg1)->size);
4085 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4086
4087 0 XSRETURN(argvi);
4088 0 fail:
4089
4090 0 SWIG_croak_null();
4091 }
4092 }
4093  
4094  
4095 0 XS(_wrap_gsl_multimin_fminimizer_state_set) {
4096 {
4097 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4098 0 void *arg2 = (void *) 0 ;
4099 0 void *argp1 = 0 ;
4100 0 int res1 = 0 ;
4101 int res2 ;
4102 0 int argvi = 0;
4103 0 dXSARGS;
4104
4105 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
4106 0 SWIG_croak("Usage: gsl_multimin_fminimizer_state_set(self,state);");
4107 }
4108 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4109 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4110 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_state_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_state_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4111 }
4112 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4113 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
4114 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4115 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_state_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_state_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
4116 }
4117 0 ▶ if (arg1) (arg1)->state = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->state = arg2; 0 0 0
4118 0 ST(argvi) = &PL_sv_undef;
4119
4120
4121 0 XSRETURN(argvi);
4122 0 fail:
4123
4124
4125 0 SWIG_croak_null();
4126 }
4127 }
4128  
4129  
4130 0 XS(_wrap_gsl_multimin_fminimizer_state_get) {
4131 {
4132 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4133 0 void *argp1 = 0 ;
4134 0 int res1 = 0 ;
4135 0 int argvi = 0;
4136 0 void *result = 0 ;
4137 0 dXSARGS;
4138
4139 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
4140 0 SWIG_croak("Usage: gsl_multimin_fminimizer_state_get(self);");
4141 }
4142 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4143 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4144 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_state_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_state_get" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4145 }
4146 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4147 0 result = (void *) ((arg1)->state);
4148 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
4149
4150 0 XSRETURN(argvi);
4151 0 fail:
4152
4153 0 SWIG_croak_null();
4154 }
4155 }
4156  
4157  
4158 0 XS(_wrap_new_gsl_multimin_fminimizer) {
4159 {
4160 0 int argvi = 0;
4161 0 gsl_multimin_fminimizer *result = 0 ;
4162 0 dXSARGS;
4163
4164 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
4165 0 SWIG_croak("Usage: new_gsl_multimin_fminimizer();");
4166 }
4167 0 result = (gsl_multimin_fminimizer *)calloc(1, sizeof(gsl_multimin_fminimizer));
4168 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fminimizer, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
4169 0 XSRETURN(argvi);
4170 0 fail:
4171 0 SWIG_croak_null();
4172 }
4173 }
4174  
4175  
4176 0 XS(_wrap_delete_gsl_multimin_fminimizer) {
4177 {
4178 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4179 0 void *argp1 = 0 ;
4180 0 int res1 = 0 ;
4181 0 int argvi = 0;
4182 0 dXSARGS;
4183
4184 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
4185 0 SWIG_croak("Usage: delete_gsl_multimin_fminimizer(self);");
4186 }
4187 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, SWIG_POINTER_DISOWN | 0 );
4188 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4189 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fminimizer" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fminimizer" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4190 }
4191 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4192 0 free((char *) arg1);
4193 0 ST(argvi) = &PL_sv_undef;
4194
4195 0 XSRETURN(argvi);
4196 0 fail:
4197
4198 0 SWIG_croak_null();
4199 }
4200 }
4201  
4202  
4203 0 XS(_wrap_gsl_multimin_fminimizer_alloc) {
4204 {
4205 0 gsl_multimin_fminimizer_type *arg1 = (gsl_multimin_fminimizer_type *) 0 ;
4206 size_t arg2 ;
4207 0 void *argp1 = 0 ;
4208 0 int res1 = 0 ;
4209 size_t val2 ;
4210 0 int ecode2 = 0 ;
4211 0 int argvi = 0;
4212 0 gsl_multimin_fminimizer *result = 0 ;
4213 0 dXSARGS;
4214
4215 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
4216 0 SWIG_croak("Usage: gsl_multimin_fminimizer_alloc(T,n);");
4217 }
4218 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer_type, 0 | 0 );
4219 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4220 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_alloc" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_alloc" "', argument " "1"" of type '" "gsl_multimin_fminimizer_type const *""'"); 0 0 0
4221 }
4222 0 arg1 = (gsl_multimin_fminimizer_type *)(argp1);
4223 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4224 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4225 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_alloc" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fminimizer_alloc" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4226 }
4227 0 arg2 = (size_t)(val2);
4228 0 result = (gsl_multimin_fminimizer *)gsl_multimin_fminimizer_alloc((gsl_multimin_fminimizer_type const *)arg1,arg2);
4229 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fminimizer, 0 | SWIG_SHADOW); argvi++ ;
4230
4231
4232 0 XSRETURN(argvi);
4233 0 fail:
4234
4235
4236 0 SWIG_croak_null();
4237 }
4238 }
4239  
4240  
4241 0 XS(_wrap_gsl_multimin_fminimizer_set) {
4242 {
4243 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4244 0 gsl_multimin_function *arg2 = (gsl_multimin_function *) 0 ;
4245 0 gsl_vector *arg3 = (gsl_vector *) 0 ;
4246 0 gsl_vector *arg4 = (gsl_vector *) 0 ;
4247 0 void *argp1 = 0 ;
4248 0 int res1 = 0 ;
4249 0 void *argp2 = 0 ;
4250 0 int res2 = 0 ;
4251 0 void *argp3 = 0 ;
4252 0 int res3 = 0 ;
4253 0 void *argp4 = 0 ;
4254 0 int res4 = 0 ;
4255 0 int argvi = 0;
4256 int result;
4257 0 dXSARGS;
4258
4259 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
4260 0 SWIG_croak("Usage: gsl_multimin_fminimizer_set(s,f,x,step_size);");
4261 }
4262 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4263 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4264 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_set" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4265 }
4266 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4267 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multimin_function_struct, 0 | 0 );
4268 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4269 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_set" "', argument " "2"" of type '" "gsl_multimin_function *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fminimizer_set" "', argument " "2"" of type '" "gsl_multimin_function *""'"); 0 0 0
4270 }
4271 0 arg2 = (gsl_multimin_function *)(argp2);
4272 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 );
4273 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
4274 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multimin_fminimizer_set" "', argument " "3"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multimin_fminimizer_set" "', argument " "3"" of type '" "gsl_vector const *""'"); 0 0 0
4275 }
4276 0 arg3 = (gsl_vector *)(argp3);
4277 0 res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_gsl_vector, 0 | 0 );
4278 0 ▶ if (!SWIG_IsOK(res4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res4)) { 0 0 0
4279 0 ▶ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_multimin_fminimizer_set" "', argument " "4"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gsl_multimin_fminimizer_set" "', argument " "4"" of type '" "gsl_vector const *""'"); 0 0 0
4280 }
4281 0 arg4 = (gsl_vector *)(argp4);
4282 0 result = (int)gsl_multimin_fminimizer_set(arg1,arg2,(gsl_vector const *)arg3,(gsl_vector const *)arg4);
4283 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4284
4285
4286
4287
4288 0 XSRETURN(argvi);
4289 0 fail:
4290
4291
4292
4293
4294 0 SWIG_croak_null();
4295 }
4296 }
4297  
4298  
4299 0 XS(_wrap_gsl_multimin_fminimizer_free) {
4300 {
4301 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4302 0 void *argp1 = 0 ;
4303 0 int res1 = 0 ;
4304 0 int argvi = 0;
4305 0 dXSARGS;
4306
4307 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
4308 0 SWIG_croak("Usage: gsl_multimin_fminimizer_free(s);");
4309 }
4310 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4311 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4312 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_free" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_free" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4313 }
4314 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4315 0 gsl_multimin_fminimizer_free(arg1);
4316 0 ST(argvi) = &PL_sv_undef;
4317
4318 0 XSRETURN(argvi);
4319 0 fail:
4320
4321 0 SWIG_croak_null();
4322 }
4323 }
4324  
4325  
4326 0 XS(_wrap_gsl_multimin_fminimizer_name) {
4327 {
4328 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4329 0 void *argp1 = 0 ;
4330 0 int res1 = 0 ;
4331 0 int argvi = 0;
4332 0 char *result = 0 ;
4333 0 dXSARGS;
4334
4335 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
4336 0 SWIG_croak("Usage: gsl_multimin_fminimizer_name(s);");
4337 }
4338 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4339 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4340 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_name" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_name" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'"); 0 0 0
4341 }
4342 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4343 0 result = (char *)gsl_multimin_fminimizer_name((gsl_multimin_fminimizer const *)arg1);
4344 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
4345
4346 0 XSRETURN(argvi);
4347 0 fail:
4348
4349 0 SWIG_croak_null();
4350 }
4351 }
4352  
4353  
4354 0 XS(_wrap_gsl_multimin_fminimizer_iterate) {
4355 {
4356 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4357 0 void *argp1 = 0 ;
4358 0 int res1 = 0 ;
4359 0 int argvi = 0;
4360 int result;
4361 0 dXSARGS;
4362
4363 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
4364 0 SWIG_croak("Usage: gsl_multimin_fminimizer_iterate(s);");
4365 }
4366 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4367 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4368 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_iterate" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_iterate" "', argument " "1"" of type '" "gsl_multimin_fminimizer *""'"); 0 0 0
4369 }
4370 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4371 0 result = (int)gsl_multimin_fminimizer_iterate(arg1);
4372 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4373
4374 0 XSRETURN(argvi);
4375 0 fail:
4376
4377 0 SWIG_croak_null();
4378 }
4379 }
4380  
4381  
4382 0 XS(_wrap_gsl_multimin_fminimizer_x) {
4383 {
4384 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4385 0 void *argp1 = 0 ;
4386 0 int res1 = 0 ;
4387 0 int argvi = 0;
4388 0 gsl_vector *result = 0 ;
4389 0 dXSARGS;
4390
4391 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
4392 0 SWIG_croak("Usage: gsl_multimin_fminimizer_x(s);");
4393 }
4394 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4395 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4396 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_x" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_x" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'"); 0 0 0
4397 }
4398 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4399 0 result = (gsl_vector *)gsl_multimin_fminimizer_x((gsl_multimin_fminimizer const *)arg1);
4400 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
4401
4402 0 XSRETURN(argvi);
4403 0 fail:
4404
4405 0 SWIG_croak_null();
4406 }
4407 }
4408  
4409  
4410 0 XS(_wrap_gsl_multimin_fminimizer_minimum) {
4411 {
4412 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4413 0 void *argp1 = 0 ;
4414 0 int res1 = 0 ;
4415 0 int argvi = 0;
4416 double result;
4417 0 dXSARGS;
4418
4419 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
4420 0 SWIG_croak("Usage: gsl_multimin_fminimizer_minimum(s);");
4421 }
4422 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4423 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4424 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_minimum" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_minimum" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'"); 0 0 0
4425 }
4426 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4427 0 result = (double)gsl_multimin_fminimizer_minimum((gsl_multimin_fminimizer const *)arg1);
4428 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4429
4430 0 XSRETURN(argvi);
4431 0 fail:
4432
4433 0 SWIG_croak_null();
4434 }
4435 }
4436  
4437  
4438 0 XS(_wrap_gsl_multimin_fminimizer_size) {
4439 {
4440 0 gsl_multimin_fminimizer *arg1 = (gsl_multimin_fminimizer *) 0 ;
4441 0 void *argp1 = 0 ;
4442 0 int res1 = 0 ;
4443 0 int argvi = 0;
4444 double result;
4445 0 dXSARGS;
4446
4447 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
4448 0 SWIG_croak("Usage: gsl_multimin_fminimizer_size(s);");
4449 }
4450 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fminimizer, 0 | 0 );
4451 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4452 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_size" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fminimizer_size" "', argument " "1"" of type '" "gsl_multimin_fminimizer const *""'"); 0 0 0
4453 }
4454 0 arg1 = (gsl_multimin_fminimizer *)(argp1);
4455 0 result = (double)gsl_multimin_fminimizer_size((gsl_multimin_fminimizer const *)arg1);
4456 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
4457
4458 0 XSRETURN(argvi);
4459 0 fail:
4460
4461 0 SWIG_croak_null();
4462 }
4463 }
4464  
4465  
4466 0 XS(_wrap_gsl_multimin_test_gradient) {
4467 {
4468 0 gsl_vector *arg1 = (gsl_vector *) 0 ;
4469 double arg2 ;
4470 0 void *argp1 = 0 ;
4471 0 int res1 = 0 ;
4472 double val2 ;
4473 0 int ecode2 = 0 ;
4474 0 int argvi = 0;
4475 int result;
4476 0 dXSARGS;
4477
4478 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
4479 0 SWIG_croak("Usage: gsl_multimin_test_gradient(g,epsabs);");
4480 }
4481 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_vector, 0 | 0 );
4482 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4483 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_test_gradient" "', argument " "1"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_test_gradient" "', argument " "1"" of type '" "gsl_vector const *""'"); 0 0 0
4484 }
4485 0 arg1 = (gsl_vector *)(argp1);
4486 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4487 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4488 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_test_gradient" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_test_gradient" "', argument " "2"" of type '" "double""'"); 0 0 0
4489 }
4490 0 arg2 = (double)(val2);
4491 0 result = (int)gsl_multimin_test_gradient((gsl_vector const *)arg1,arg2);
4492 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4493
4494
4495 0 XSRETURN(argvi);
4496 0 fail:
4497
4498
4499 0 SWIG_croak_null();
4500 }
4501 }
4502  
4503  
4504 0 XS(_wrap_gsl_multimin_test_size) {
4505 {
4506 double arg1 ;
4507 double arg2 ;
4508 double val1 ;
4509 0 int ecode1 = 0 ;
4510 double val2 ;
4511 0 int ecode2 = 0 ;
4512 0 int argvi = 0;
4513 int result;
4514 0 dXSARGS;
4515
4516 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
4517 0 SWIG_croak("Usage: gsl_multimin_test_size(size,epsabs);");
4518 }
4519 0 ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
4520 0 ▶ if (!SWIG_IsOK(ecode1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode1)) { 0 0 0
4521 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_multimin_test_size" "', argument " "1"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gsl_multimin_test_size" "', argument " "1"" of type '" "double""'"); 0 0 0
4522 }
4523 0 arg1 = (double)(val1);
4524 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4525 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4526 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_test_size" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_test_size" "', argument " "2"" of type '" "double""'"); 0 0 0
4527 }
4528 0 arg2 = (double)(val2);
4529 0 result = (int)gsl_multimin_test_size(arg1,arg2);
4530 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
4531
4532
4533 0 XSRETURN(argvi);
4534 0 fail:
4535
4536
4537 0 SWIG_croak_null();
4538 }
4539 }
4540  
4541  
4542 0 XS(_wrap_gsl_multimin_fdfminimizer_type_name_set) {
4543 {
4544 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4545 0 char *arg2 = (char *) 0 ;
4546 0 void *argp1 = 0 ;
4547 0 int res1 = 0 ;
4548 int res2 ;
4549 0 char *buf2 = 0 ;
4550 0 int alloc2 = 0 ;
4551 0 int argvi = 0;
4552 0 dXSARGS;
4553
4554 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
4555 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_name_set(self,name);");
4556 }
4557 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4558 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4559 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_name_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_name_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4560 }
4561 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4562 0 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
4563 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
4564 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_type_name_set" "', argument " "2"" of type '" "char const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_type_name_set" "', argument " "2"" of type '" "char const *""'"); 0 0 0
4565 }
4566 0 arg2 = (char *)(buf2);
4567 0 ▶ if (arg2) {
Branch: 1 branch
BranchTrueFalseTotal
if (arg2) { 0 0 0
4568 0 size_t size = strlen((const char *)((const char *)(arg2))) + 1;
4569 0 arg1->name = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4570 } else {
4571 0 arg1->name = 0;
4572 }
4573 0 ST(argvi) = &PL_sv_undef;
4574
4575 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
4576 0 XSRETURN(argvi);
4577 0 fail:
4578
4579 0 ▶ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
Branch: 1 branch
BranchTrueFalseTotal
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); 0 0 0
4580 0 SWIG_croak_null();
4581 }
4582 }
4583  
4584  
4585 0 XS(_wrap_gsl_multimin_fdfminimizer_type_name_get) {
4586 {
4587 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4588 0 void *argp1 = 0 ;
4589 0 int res1 = 0 ;
4590 0 int argvi = 0;
4591 0 char *result = 0 ;
4592 0 dXSARGS;
4593
4594 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
4595 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_name_get(self);");
4596 }
4597 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4598 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4599 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_name_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_name_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4600 }
4601 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4602 0 result = (char *) ((arg1)->name);
4603 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
4604
4605 0 XSRETURN(argvi);
4606 0 fail:
4607
4608 0 SWIG_croak_null();
4609 }
4610 }
4611  
4612  
4613 0 XS(_wrap_gsl_multimin_fdfminimizer_type_size_set) {
4614 {
4615 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4616 size_t arg2 ;
4617 0 void *argp1 = 0 ;
4618 0 int res1 = 0 ;
4619 size_t val2 ;
4620 0 int ecode2 = 0 ;
4621 0 int argvi = 0;
4622 0 dXSARGS;
4623
4624 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
4625 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_size_set(self,size);");
4626 }
4627 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4628 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4629 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_size_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_size_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4630 }
4631 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4632 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
4633 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
4634 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fdfminimizer_type_size_set" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fdfminimizer_type_size_set" "', argument " "2"" of type '" "size_t""'"); 0 0 0
4635 }
4636 0 arg2 = (size_t)(val2);
4637 0 ▶ if (arg1) (arg1)->size = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->size = arg2; 0 0 0
4638 0 ST(argvi) = &PL_sv_undef;
4639
4640
4641 0 XSRETURN(argvi);
4642 0 fail:
4643
4644
4645 0 SWIG_croak_null();
4646 }
4647 }
4648  
4649  
4650 0 XS(_wrap_gsl_multimin_fdfminimizer_type_size_get) {
4651 {
4652 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4653 0 void *argp1 = 0 ;
4654 0 int res1 = 0 ;
4655 0 int argvi = 0;
4656 size_t result;
4657 0 dXSARGS;
4658
4659 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4660 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_size_get(self);");
4661 }
4662 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4663 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4664 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_size_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_size_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4665 }
4666 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4667 0 result = ((arg1)->size);
4668 0 ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1((size_t)(result)); argvi++ ;
4669
4670 0 XSRETURN(argvi);
4671 0 fail:
4672
4673 0 SWIG_croak_null();
4674 }
4675 }
4676  
4677  
4678 0 XS(_wrap_gsl_multimin_fdfminimizer_type_alloc_set) {
4679 {
4680 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4681 0 int (*arg2)(void *,size_t) = (int (*)(void *,size_t)) 0 ;
4682 0 void *argp1 = 0 ;
4683 0 int res1 = 0 ;
4684 0 int argvi = 0;
4685 0 dXSARGS;
4686
4687 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
4688 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_alloc_set(self,alloc);");
4689 }
4690 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4691 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4692 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_alloc_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_alloc_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4693 }
4694 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4695 {
4696 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t__int);
4697 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4698 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_alloc_set" "', argument " "2"" of type '" "int (*)(void *,size_t)""'"); 0 0 0
4699 }
4700 }
4701 0 ▶ if (arg1) (arg1)->alloc = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->alloc = arg2; 0 0 0
4702 0 ST(argvi) = &PL_sv_undef;
4703
4704
4705 0 XSRETURN(argvi);
4706 0 fail:
4707
4708
4709 0 SWIG_croak_null();
4710 }
4711 }
4712  
4713  
4714 0 XS(_wrap_gsl_multimin_fdfminimizer_type_alloc_get) {
4715 {
4716 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4717 0 void *argp1 = 0 ;
4718 0 int res1 = 0 ;
4719 0 int argvi = 0;
4720 0 int (*result)(void *,size_t) = 0 ;
4721 0 dXSARGS;
4722
4723 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
4724 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_alloc_get(self);");
4725 }
4726 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4727 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4728 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_alloc_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_alloc_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4729 }
4730 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4731 0 result = (int (*)(void *,size_t)) ((arg1)->alloc);
4732 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t__int); argvi++ ;
4733
4734 0 XSRETURN(argvi);
4735 0 fail:
4736
4737 0 SWIG_croak_null();
4738 }
4739 }
4740  
4741  
4742 0 XS(_wrap_gsl_multimin_fdfminimizer_type_set_set) {
4743 {
4744 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4745 0 int (*arg2)(void *,gsl_multimin_function_fdf *,gsl_vector const *,double *,gsl_vector *,double,double) = (int (*)(void *,gsl_multimin_function_fdf *,gsl_vector const *,double *,gsl_vector *,double,double)) 0 ;
4746 0 void *argp1 = 0 ;
4747 0 int res1 = 0 ;
4748 0 int argvi = 0;
4749 0 dXSARGS;
4750
4751 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
4752 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_set_set(self,set);");
4753 }
4754 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4755 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4756 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_set_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_set_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4757 }
4758 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4759 {
4760 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int);
4761 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4762 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function_fdf *,gsl_vector const *,double *,gsl_vector *,double,double)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_set_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function_fdf *,gsl_vector const *,double *,gsl_vector *,double,double)""'"); 0 0 0
4763 }
4764 }
4765 0 ▶ if (arg1) (arg1)->set = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->set = arg2; 0 0 0
4766 0 ST(argvi) = &PL_sv_undef;
4767
4768
4769 0 XSRETURN(argvi);
4770 0 fail:
4771
4772
4773 0 SWIG_croak_null();
4774 }
4775 }
4776  
4777  
4778 0 XS(_wrap_gsl_multimin_fdfminimizer_type_set_get) {
4779 {
4780 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4781 0 void *argp1 = 0 ;
4782 0 int res1 = 0 ;
4783 0 int argvi = 0;
4784 0 int (*result)(void *,gsl_multimin_function_fdf *,gsl_vector const *,double *,gsl_vector *,double,double) = 0 ;
4785 0 dXSARGS;
4786
4787 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
4788 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_set_get(self);");
4789 }
4790 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4791 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4792 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_set_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_set_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4793 }
4794 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4795 0 result = (int (*)(void *,gsl_multimin_function_fdf *,gsl_vector const *,double *,gsl_vector *,double,double)) ((arg1)->set);
4796 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int); argvi++ ;
4797
4798 0 XSRETURN(argvi);
4799 0 fail:
4800
4801 0 SWIG_croak_null();
4802 }
4803 }
4804  
4805  
4806 0 XS(_wrap_gsl_multimin_fdfminimizer_type_iterate_set) {
4807 {
4808 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4809 0 int (*arg2)(void *,gsl_multimin_function_fdf *,gsl_vector *,double *,gsl_vector *,gsl_vector *) = (int (*)(void *,gsl_multimin_function_fdf *,gsl_vector *,double *,gsl_vector *,gsl_vector *)) 0 ;
4810 0 void *argp1 = 0 ;
4811 0 int res1 = 0 ;
4812 0 int argvi = 0;
4813 0 dXSARGS;
4814
4815 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
4816 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_iterate_set(self,iterate);");
4817 }
4818 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4819 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4820 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_iterate_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_iterate_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4821 }
4822 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4823 {
4824 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int);
4825 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4826 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function_fdf *,gsl_vector *,double *,gsl_vector *,gsl_vector *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_iterate_set" "', argument " "2"" of type '" "int (*)(void *,gsl_multimin_function_fdf *,gsl_vector *,double *,gsl_vector *,gsl_vector *)""'"); 0 0 0
4827 }
4828 }
4829 0 ▶ if (arg1) (arg1)->iterate = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->iterate = arg2; 0 0 0
4830 0 ST(argvi) = &PL_sv_undef;
4831
4832
4833 0 XSRETURN(argvi);
4834 0 fail:
4835
4836
4837 0 SWIG_croak_null();
4838 }
4839 }
4840  
4841  
4842 0 XS(_wrap_gsl_multimin_fdfminimizer_type_iterate_get) {
4843 {
4844 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4845 0 void *argp1 = 0 ;
4846 0 int res1 = 0 ;
4847 0 int argvi = 0;
4848 0 int (*result)(void *,gsl_multimin_function_fdf *,gsl_vector *,double *,gsl_vector *,gsl_vector *) = 0 ;
4849 0 dXSARGS;
4850
4851 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
4852 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_iterate_get(self);");
4853 }
4854 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4855 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4856 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_iterate_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_iterate_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4857 }
4858 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4859 0 result = (int (*)(void *,gsl_multimin_function_fdf *,gsl_vector *,double *,gsl_vector *,gsl_vector *)) ((arg1)->iterate);
4860 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int); argvi++ ;
4861
4862 0 XSRETURN(argvi);
4863 0 fail:
4864
4865 0 SWIG_croak_null();
4866 }
4867 }
4868  
4869  
4870 0 XS(_wrap_gsl_multimin_fdfminimizer_type_restart_set) {
4871 {
4872 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4873 0 int (*arg2)(void *) = (int (*)(void *)) 0 ;
4874 0 void *argp1 = 0 ;
4875 0 int res1 = 0 ;
4876 0 int argvi = 0;
4877 0 dXSARGS;
4878
4879 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
4880 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_restart_set(self,restart);");
4881 }
4882 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4883 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4884 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_restart_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_restart_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4885 }
4886 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4887 {
4888 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__int);
4889 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4890 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_restart_set" "', argument " "2"" of type '" "int (*)(void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_restart_set" "', argument " "2"" of type '" "int (*)(void *)""'"); 0 0 0
4891 }
4892 }
4893 0 ▶ if (arg1) (arg1)->restart = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->restart = arg2; 0 0 0
4894 0 ST(argvi) = &PL_sv_undef;
4895
4896
4897 0 XSRETURN(argvi);
4898 0 fail:
4899
4900
4901 0 SWIG_croak_null();
4902 }
4903 }
4904  
4905  
4906 0 XS(_wrap_gsl_multimin_fdfminimizer_type_restart_get) {
4907 {
4908 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4909 0 void *argp1 = 0 ;
4910 0 int res1 = 0 ;
4911 0 int argvi = 0;
4912 0 int (*result)(void *) = 0 ;
4913 0 dXSARGS;
4914
4915 0 ▶ if ((items < 1) || (items > 1)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 1) || (items > 1)) { 0 0 0
if ((items < 1) || (items > 1)) { 0 0 0
4916 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_restart_get(self);");
4917 }
4918 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4919 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4920 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_restart_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_restart_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4921 }
4922 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4923 0 result = (int (*)(void *)) ((arg1)->restart);
4924 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__int); argvi++ ;
4925
4926 0 XSRETURN(argvi);
4927 0 fail:
4928
4929 0 SWIG_croak_null();
4930 }
4931 }
4932  
4933  
4934 0 XS(_wrap_gsl_multimin_fdfminimizer_type_free_set) {
4935 {
4936 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4937 0 void (*arg2)(void *) = (void (*)(void *)) 0 ;
4938 0 void *argp1 = 0 ;
4939 0 int res1 = 0 ;
4940 0 int argvi = 0;
4941 0 dXSARGS;
4942
4943 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
4944 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_free_set(self,free);");
4945 }
4946 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4947 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4948 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_free_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_free_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4949 }
4950 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4951 {
4952 0 int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
4953 0 ▶ if (!SWIG_IsOK(res)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res)) { 0 0 0
4954 0 ▶ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "gsl_multimin_fdfminimizer_type_free_set" "', argument " "2"" of type '" "void (*)(void *)""'"); 0 0 0
4955 }
4956 }
4957 0 ▶ if (arg1) (arg1)->free = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->free = arg2; 0 0 0
4958 0 ST(argvi) = &PL_sv_undef;
4959
4960
4961 0 XSRETURN(argvi);
4962 0 fail:
4963
4964
4965 0 SWIG_croak_null();
4966 }
4967 }
4968  
4969  
4970 0 XS(_wrap_gsl_multimin_fdfminimizer_type_free_get) {
4971 {
4972 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
4973 0 void *argp1 = 0 ;
4974 0 int res1 = 0 ;
4975 0 int argvi = 0;
4976 0 void (*result)(void *) = 0 ;
4977 0 dXSARGS;
4978
4979 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
4980 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_free_get(self);");
4981 }
4982 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
4983 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
4984 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_free_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_free_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
4985 }
4986 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
4987 0 result = (void (*)(void *)) ((arg1)->free);
4988 0 ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); argvi++ ;
4989
4990 0 XSRETURN(argvi);
4991 0 fail:
4992
4993 0 SWIG_croak_null();
4994 }
4995 }
4996  
4997  
4998 0 XS(_wrap_new_gsl_multimin_fdfminimizer_type) {
4999 {
5000 0 int argvi = 0;
5001 0 gsl_multimin_fdfminimizer_type *result = 0 ;
5002 0 dXSARGS;
5003
5004 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
5005 0 SWIG_croak("Usage: new_gsl_multimin_fdfminimizer_type();");
5006 }
5007 0 result = (gsl_multimin_fdfminimizer_type *)calloc(1, sizeof(gsl_multimin_fdfminimizer_type));
5008 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fdfminimizer_type, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
5009 0 XSRETURN(argvi);
5010 0 fail:
5011 0 SWIG_croak_null();
5012 }
5013 }
5014  
5015  
5016 0 XS(_wrap_delete_gsl_multimin_fdfminimizer_type) {
5017 {
5018 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
5019 0 void *argp1 = 0 ;
5020 0 int res1 = 0 ;
5021 0 int argvi = 0;
5022 0 dXSARGS;
5023
5024 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
5025 0 SWIG_croak("Usage: delete_gsl_multimin_fdfminimizer_type(self);");
5026 }
5027 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, SWIG_POINTER_DISOWN | 0 );
5028 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5029 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fdfminimizer_type" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fdfminimizer_type" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type *""'"); 0 0 0
5030 }
5031 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
5032 0 free((char *) arg1);
5033 0 ST(argvi) = &PL_sv_undef;
5034
5035 0 XSRETURN(argvi);
5036 0 fail:
5037
5038 0 SWIG_croak_null();
5039 }
5040 }
5041  
5042  
5043 0 XS(_wrap_gsl_multimin_fdfminimizer_type_set) {
5044 {
5045 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5046 0 gsl_multimin_fdfminimizer_type *arg2 = (gsl_multimin_fdfminimizer_type *) 0 ;
5047 0 void *argp1 = 0 ;
5048 0 int res1 = 0 ;
5049 0 void *argp2 = 0 ;
5050 0 int res2 = 0 ;
5051 0 int argvi = 0;
5052 0 dXSARGS;
5053
5054 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
5055 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_set(self,type);");
5056 }
5057 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5058 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5059 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5060 }
5061 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5062 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, SWIG_POINTER_DISOWN | 0 );
5063 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5064 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_type_set" "', argument " "2"" of type '" "gsl_multimin_fdfminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_type_set" "', argument " "2"" of type '" "gsl_multimin_fdfminimizer_type const *""'"); 0 0 0
5065 }
5066 0 arg2 = (gsl_multimin_fdfminimizer_type *)(argp2);
5067 0 ▶ if (arg1) (arg1)->type = (gsl_multimin_fdfminimizer_type const *)arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->type = (gsl_multimin_fdfminimizer_type const *)arg2; 0 0 0
5068 0 ST(argvi) = &PL_sv_undef;
5069
5070
5071 0 XSRETURN(argvi);
5072 0 fail:
5073
5074
5075 0 SWIG_croak_null();
5076 }
5077 }
5078  
5079  
5080 0 XS(_wrap_gsl_multimin_fdfminimizer_type_get) {
5081 {
5082 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5083 0 void *argp1 = 0 ;
5084 0 int res1 = 0 ;
5085 0 int argvi = 0;
5086 0 gsl_multimin_fdfminimizer_type *result = 0 ;
5087 0 dXSARGS;
5088
5089 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
5090 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_type_get(self);");
5091 }
5092 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5093 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5094 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_type_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5095 }
5096 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5097 0 result = (gsl_multimin_fdfminimizer_type *) ((arg1)->type);
5098 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | SWIG_SHADOW); argvi++ ;
5099
5100 0 XSRETURN(argvi);
5101 0 fail:
5102
5103 0 SWIG_croak_null();
5104 }
5105 }
5106  
5107  
5108 0 XS(_wrap_gsl_multimin_fdfminimizer_fdf_set) {
5109 {
5110 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5111 0 gsl_multimin_function_fdf *arg2 = (gsl_multimin_function_fdf *) 0 ;
5112 0 void *argp1 = 0 ;
5113 0 int res1 = 0 ;
5114 0 void *argp2 = 0 ;
5115 0 int res2 = 0 ;
5116 0 int argvi = 0;
5117 0 dXSARGS;
5118
5119 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
5120 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_fdf_set(self,fdf);");
5121 }
5122 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5123 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5124 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_fdf_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_fdf_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5125 }
5126 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5127 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multimin_function_fdf_struct, SWIG_POINTER_DISOWN | 0 );
5128 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5129 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_fdf_set" "', argument " "2"" of type '" "gsl_multimin_function_fdf *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_fdf_set" "', argument " "2"" of type '" "gsl_multimin_function_fdf *""'"); 0 0 0
5130 }
5131 0 arg2 = (gsl_multimin_function_fdf *)(argp2);
5132 0 ▶ if (arg1) (arg1)->fdf = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->fdf = arg2; 0 0 0
5133 0 ST(argvi) = &PL_sv_undef;
5134
5135
5136 0 XSRETURN(argvi);
5137 0 fail:
5138
5139
5140 0 SWIG_croak_null();
5141 }
5142 }
5143  
5144  
5145 0 XS(_wrap_gsl_multimin_fdfminimizer_fdf_get) {
5146 {
5147 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5148 0 void *argp1 = 0 ;
5149 0 int res1 = 0 ;
5150 0 int argvi = 0;
5151 0 gsl_multimin_function_fdf *result = 0 ;
5152 0 dXSARGS;
5153
5154 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
5155 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_fdf_get(self);");
5156 }
5157 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5158 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5159 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_fdf_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_fdf_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5160 }
5161 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5162 0 result = (gsl_multimin_function_fdf *) ((arg1)->fdf);
5163 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | SWIG_SHADOW); argvi++ ;
5164
5165 0 XSRETURN(argvi);
5166 0 fail:
5167
5168 0 SWIG_croak_null();
5169 }
5170 }
5171  
5172  
5173 0 XS(_wrap_gsl_multimin_fdfminimizer_f_set) {
5174 {
5175 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5176 double arg2 ;
5177 0 void *argp1 = 0 ;
5178 0 int res1 = 0 ;
5179 double val2 ;
5180 0 int ecode2 = 0 ;
5181 0 int argvi = 0;
5182 0 dXSARGS;
5183
5184 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
5185 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_f_set(self,f);");
5186 }
5187 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5188 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5189 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_f_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_f_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5190 }
5191 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5192 0 ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5193 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5194 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fdfminimizer_f_set" "', argument " "2"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fdfminimizer_f_set" "', argument " "2"" of type '" "double""'"); 0 0 0
5195 }
5196 0 arg2 = (double)(val2);
5197 0 ▶ if (arg1) (arg1)->f = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->f = arg2; 0 0 0
5198 0 ST(argvi) = &PL_sv_undef;
5199
5200
5201 0 XSRETURN(argvi);
5202 0 fail:
5203
5204
5205 0 SWIG_croak_null();
5206 }
5207 }
5208  
5209  
5210 0 XS(_wrap_gsl_multimin_fdfminimizer_f_get) {
5211 {
5212 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5213 0 void *argp1 = 0 ;
5214 0 int res1 = 0 ;
5215 0 int argvi = 0;
5216 double result;
5217 0 dXSARGS;
5218
5219 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
5220 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_f_get(self);");
5221 }
5222 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5223 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5224 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_f_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_f_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5225 }
5226 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5227 0 result = (double) ((arg1)->f);
5228 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5229
5230 0 XSRETURN(argvi);
5231 0 fail:
5232
5233 0 SWIG_croak_null();
5234 }
5235 }
5236  
5237  
5238 0 XS(_wrap_gsl_multimin_fdfminimizer_x_set) {
5239 {
5240 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5241 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
5242 0 void *argp1 = 0 ;
5243 0 int res1 = 0 ;
5244 0 void *argp2 = 0 ;
5245 0 int res2 = 0 ;
5246 0 int argvi = 0;
5247 0 dXSARGS;
5248
5249 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
5250 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_x_set(self,x);");
5251 }
5252 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 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_multimin_fdfminimizer_x_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_x_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5255 }
5256 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5257 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 );
5258 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5259 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_x_set" "', argument " "2"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_x_set" "', argument " "2"" of type '" "gsl_vector *""'"); 0 0 0
5260 }
5261 0 arg2 = (gsl_vector *)(argp2);
5262 0 ▶ if (arg1) (arg1)->x = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->x = arg2; 0 0 0
5263 0 ST(argvi) = &PL_sv_undef;
5264
5265
5266 0 XSRETURN(argvi);
5267 0 fail:
5268
5269
5270 0 SWIG_croak_null();
5271 }
5272 }
5273  
5274  
5275 0 XS(_wrap_gsl_multimin_fdfminimizer_x_get) {
5276 {
5277 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5278 0 void *argp1 = 0 ;
5279 0 int res1 = 0 ;
5280 0 int argvi = 0;
5281 0 gsl_vector *result = 0 ;
5282 0 dXSARGS;
5283
5284 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
5285 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_x_get(self);");
5286 }
5287 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5288 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5289 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_x_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_x_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5290 }
5291 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5292 0 result = (gsl_vector *) ((arg1)->x);
5293 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
5294
5295 0 XSRETURN(argvi);
5296 0 fail:
5297
5298 0 SWIG_croak_null();
5299 }
5300 }
5301  
5302  
5303 0 XS(_wrap_gsl_multimin_fdfminimizer_gradient_set) {
5304 {
5305 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5306 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
5307 0 void *argp1 = 0 ;
5308 0 int res1 = 0 ;
5309 0 void *argp2 = 0 ;
5310 0 int res2 = 0 ;
5311 0 int argvi = 0;
5312 0 dXSARGS;
5313
5314 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
5315 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_gradient_set(self,gradient);");
5316 }
5317 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5318 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5319 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_gradient_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_gradient_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5320 }
5321 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5322 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 );
5323 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5324 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_gradient_set" "', argument " "2"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_gradient_set" "', argument " "2"" of type '" "gsl_vector *""'"); 0 0 0
5325 }
5326 0 arg2 = (gsl_vector *)(argp2);
5327 0 ▶ if (arg1) (arg1)->gradient = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->gradient = arg2; 0 0 0
5328 0 ST(argvi) = &PL_sv_undef;
5329
5330
5331 0 XSRETURN(argvi);
5332 0 fail:
5333
5334
5335 0 SWIG_croak_null();
5336 }
5337 }
5338  
5339  
5340 0 XS(_wrap_gsl_multimin_fdfminimizer_gradient_get) {
5341 {
5342 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5343 0 void *argp1 = 0 ;
5344 0 int res1 = 0 ;
5345 0 int argvi = 0;
5346 0 gsl_vector *result = 0 ;
5347 0 dXSARGS;
5348
5349 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
5350 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_gradient_get(self);");
5351 }
5352 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5353 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5354 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_gradient_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_gradient_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5355 }
5356 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5357 0 result = (gsl_vector *) ((arg1)->gradient);
5358 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
5359
5360 0 XSRETURN(argvi);
5361 0 fail:
5362
5363 0 SWIG_croak_null();
5364 }
5365 }
5366  
5367  
5368 0 XS(_wrap_gsl_multimin_fdfminimizer_dx_set) {
5369 {
5370 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5371 0 gsl_vector *arg2 = (gsl_vector *) 0 ;
5372 0 void *argp1 = 0 ;
5373 0 int res1 = 0 ;
5374 0 void *argp2 = 0 ;
5375 0 int res2 = 0 ;
5376 0 int argvi = 0;
5377 0 dXSARGS;
5378
5379 0 ▶ if ((items < 2) || (items > 2)) {
Branch: 2 branches
BranchTrueFalseTotal
if ((items < 2) || (items > 2)) { 0 0 0
if ((items < 2) || (items > 2)) { 0 0 0
5380 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_dx_set(self,dx);");
5381 }
5382 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5383 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5384 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_dx_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_dx_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5385 }
5386 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5387 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_vector, SWIG_POINTER_DISOWN | 0 );
5388 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5389 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_dx_set" "', argument " "2"" of type '" "gsl_vector *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_dx_set" "', argument " "2"" of type '" "gsl_vector *""'"); 0 0 0
5390 }
5391 0 arg2 = (gsl_vector *)(argp2);
5392 0 ▶ if (arg1) (arg1)->dx = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->dx = arg2; 0 0 0
5393 0 ST(argvi) = &PL_sv_undef;
5394
5395
5396 0 XSRETURN(argvi);
5397 0 fail:
5398
5399
5400 0 SWIG_croak_null();
5401 }
5402 }
5403  
5404  
5405 0 XS(_wrap_gsl_multimin_fdfminimizer_dx_get) {
5406 {
5407 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5408 0 void *argp1 = 0 ;
5409 0 int res1 = 0 ;
5410 0 int argvi = 0;
5411 0 gsl_vector *result = 0 ;
5412 0 dXSARGS;
5413
5414 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
5415 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_dx_get(self);");
5416 }
5417 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5418 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5419 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_dx_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_dx_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5420 }
5421 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5422 0 result = (gsl_vector *) ((arg1)->dx);
5423 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
5424
5425 0 XSRETURN(argvi);
5426 0 fail:
5427
5428 0 SWIG_croak_null();
5429 }
5430 }
5431  
5432  
5433 0 XS(_wrap_gsl_multimin_fdfminimizer_state_set) {
5434 {
5435 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5436 0 void *arg2 = (void *) 0 ;
5437 0 void *argp1 = 0 ;
5438 0 int res1 = 0 ;
5439 int res2 ;
5440 0 int argvi = 0;
5441 0 dXSARGS;
5442
5443 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
5444 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_state_set(self,state);");
5445 }
5446 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5447 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5448 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_state_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_state_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5449 }
5450 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5451 0 res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
5452 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5453 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_state_set" "', argument " "2"" of type '" "void *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_state_set" "', argument " "2"" of type '" "void *""'"); 0 0 0
5454 }
5455 0 ▶ if (arg1) (arg1)->state = arg2;
Branch: 1 branch
BranchTrueFalseTotal
if (arg1) (arg1)->state = arg2; 0 0 0
5456 0 ST(argvi) = &PL_sv_undef;
5457
5458
5459 0 XSRETURN(argvi);
5460 0 fail:
5461
5462
5463 0 SWIG_croak_null();
5464 }
5465 }
5466  
5467  
5468 0 XS(_wrap_gsl_multimin_fdfminimizer_state_get) {
5469 {
5470 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5471 0 void *argp1 = 0 ;
5472 0 int res1 = 0 ;
5473 0 int argvi = 0;
5474 0 void *result = 0 ;
5475 0 dXSARGS;
5476
5477 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
5478 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_state_get(self);");
5479 }
5480 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5481 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5482 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_state_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_state_get" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5483 }
5484 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5485 0 result = (void *) ((arg1)->state);
5486 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
5487
5488 0 XSRETURN(argvi);
5489 0 fail:
5490
5491 0 SWIG_croak_null();
5492 }
5493 }
5494  
5495  
5496 0 XS(_wrap_new_gsl_multimin_fdfminimizer) {
5497 {
5498 0 int argvi = 0;
5499 0 gsl_multimin_fdfminimizer *result = 0 ;
5500 0 dXSARGS;
5501
5502 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
5503 0 SWIG_croak("Usage: new_gsl_multimin_fdfminimizer();");
5504 }
5505 0 result = (gsl_multimin_fdfminimizer *)calloc(1, sizeof(gsl_multimin_fdfminimizer));
5506 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fdfminimizer, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
5507 0 XSRETURN(argvi);
5508 0 fail:
5509 0 SWIG_croak_null();
5510 }
5511 }
5512  
5513  
5514 0 XS(_wrap_delete_gsl_multimin_fdfminimizer) {
5515 {
5516 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5517 0 void *argp1 = 0 ;
5518 0 int res1 = 0 ;
5519 0 int argvi = 0;
5520 0 dXSARGS;
5521
5522 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
5523 0 SWIG_croak("Usage: delete_gsl_multimin_fdfminimizer(self);");
5524 }
5525 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, SWIG_POINTER_DISOWN | 0 );
5526 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5527 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fdfminimizer" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_gsl_multimin_fdfminimizer" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5528 }
5529 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5530 0 free((char *) arg1);
5531 0 ST(argvi) = &PL_sv_undef;
5532
5533 0 XSRETURN(argvi);
5534 0 fail:
5535
5536 0 SWIG_croak_null();
5537 }
5538 }
5539  
5540  
5541 0 XS(_wrap_gsl_multimin_fdfminimizer_alloc) {
5542 {
5543 0 gsl_multimin_fdfminimizer_type *arg1 = (gsl_multimin_fdfminimizer_type *) 0 ;
5544 size_t arg2 ;
5545 0 void *argp1 = 0 ;
5546 0 int res1 = 0 ;
5547 size_t val2 ;
5548 0 int ecode2 = 0 ;
5549 0 int argvi = 0;
5550 0 gsl_multimin_fdfminimizer *result = 0 ;
5551 0 dXSARGS;
5552
5553 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
5554 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_alloc(T,n);");
5555 }
5556 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer_type, 0 | 0 );
5557 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5558 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_alloc" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_alloc" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer_type const *""'"); 0 0 0
5559 }
5560 0 arg1 = (gsl_multimin_fdfminimizer_type *)(argp1);
5561 0 ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
5562 0 ▶ if (!SWIG_IsOK(ecode2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode2)) { 0 0 0
5563 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fdfminimizer_alloc" "', argument " "2"" of type '" "size_t""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gsl_multimin_fdfminimizer_alloc" "', argument " "2"" of type '" "size_t""'"); 0 0 0
5564 }
5565 0 arg2 = (size_t)(val2);
5566 0 result = (gsl_multimin_fdfminimizer *)gsl_multimin_fdfminimizer_alloc((gsl_multimin_fdfminimizer_type const *)arg1,arg2);
5567 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | SWIG_SHADOW); argvi++ ;
5568
5569
5570 0 XSRETURN(argvi);
5571 0 fail:
5572
5573
5574 0 SWIG_croak_null();
5575 }
5576 }
5577  
5578  
5579 0 XS(_wrap_gsl_multimin_fdfminimizer_set) {
5580 {
5581 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5582 0 gsl_multimin_function_fdf *arg2 = (gsl_multimin_function_fdf *) 0 ;
5583 0 gsl_vector *arg3 = (gsl_vector *) 0 ;
5584 double arg4 ;
5585 double arg5 ;
5586 0 void *argp1 = 0 ;
5587 0 int res1 = 0 ;
5588 0 void *argp2 = 0 ;
5589 0 int res2 = 0 ;
5590 0 void *argp3 = 0 ;
5591 0 int res3 = 0 ;
5592 double val4 ;
5593 0 int ecode4 = 0 ;
5594 double val5 ;
5595 0 int ecode5 = 0 ;
5596 0 int argvi = 0;
5597 int result;
5598 0 dXSARGS;
5599
5600 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
5601 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_set(s,fdf,x,step_size,tol);");
5602 }
5603 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5604 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5605 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5606 }
5607 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5608 0 res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_gsl_multimin_function_fdf_struct, 0 | 0 );
5609 0 ▶ if (!SWIG_IsOK(res2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res2)) { 0 0 0
5610 0 ▶ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "2"" of type '" "gsl_multimin_function_fdf *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "2"" of type '" "gsl_multimin_function_fdf *""'"); 0 0 0
5611 }
5612 0 arg2 = (gsl_multimin_function_fdf *)(argp2);
5613 0 res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_gsl_vector, 0 | 0 );
5614 0 ▶ if (!SWIG_IsOK(res3)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res3)) { 0 0 0
5615 0 ▶ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "3"" of type '" "gsl_vector const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "3"" of type '" "gsl_vector const *""'"); 0 0 0
5616 }
5617 0 arg3 = (gsl_vector *)(argp3);
5618 0 ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
5619 0 ▶ if (!SWIG_IsOK(ecode4)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode4)) { 0 0 0
5620 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "4"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "4"" of type '" "double""'"); 0 0 0
5621 }
5622 0 arg4 = (double)(val4);
5623 0 ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
5624 0 ▶ if (!SWIG_IsOK(ecode5)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(ecode5)) { 0 0 0
5625 0 ▶ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "5"" of type '" "double""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gsl_multimin_fdfminimizer_set" "', argument " "5"" of type '" "double""'"); 0 0 0
5626 }
5627 0 arg5 = (double)(val5);
5628 0 result = (int)gsl_multimin_fdfminimizer_set(arg1,arg2,(gsl_vector const *)arg3,arg4,arg5);
5629 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5630
5631
5632
5633
5634
5635 0 XSRETURN(argvi);
5636 0 fail:
5637
5638
5639
5640
5641
5642 0 SWIG_croak_null();
5643 }
5644 }
5645  
5646  
5647 0 XS(_wrap_gsl_multimin_fdfminimizer_free) {
5648 {
5649 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5650 0 void *argp1 = 0 ;
5651 0 int res1 = 0 ;
5652 0 int argvi = 0;
5653 0 dXSARGS;
5654
5655 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
5656 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_free(s);");
5657 }
5658 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5659 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5660 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_free" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_free" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5661 }
5662 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5663 0 gsl_multimin_fdfminimizer_free(arg1);
5664 0 ST(argvi) = &PL_sv_undef;
5665
5666 0 XSRETURN(argvi);
5667 0 fail:
5668
5669 0 SWIG_croak_null();
5670 }
5671 }
5672  
5673  
5674 0 XS(_wrap_gsl_multimin_fdfminimizer_name) {
5675 {
5676 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5677 0 void *argp1 = 0 ;
5678 0 int res1 = 0 ;
5679 0 int argvi = 0;
5680 0 char *result = 0 ;
5681 0 dXSARGS;
5682
5683 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
5684 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_name(s);");
5685 }
5686 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5687 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5688 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_name" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_name" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'"); 0 0 0
5689 }
5690 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5691 0 result = (char *)gsl_multimin_fdfminimizer_name((gsl_multimin_fdfminimizer const *)arg1);
5692 0 ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
5693
5694 0 XSRETURN(argvi);
5695 0 fail:
5696
5697 0 SWIG_croak_null();
5698 }
5699 }
5700  
5701  
5702 0 XS(_wrap_gsl_multimin_fdfminimizer_iterate) {
5703 {
5704 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5705 0 void *argp1 = 0 ;
5706 0 int res1 = 0 ;
5707 0 int argvi = 0;
5708 int result;
5709 0 dXSARGS;
5710
5711 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
5712 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_iterate(s);");
5713 }
5714 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5715 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5716 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_iterate" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_iterate" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5717 }
5718 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5719 0 result = (int)gsl_multimin_fdfminimizer_iterate(arg1);
5720 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5721
5722 0 XSRETURN(argvi);
5723 0 fail:
5724
5725 0 SWIG_croak_null();
5726 }
5727 }
5728  
5729  
5730 0 XS(_wrap_gsl_multimin_fdfminimizer_restart) {
5731 {
5732 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5733 0 void *argp1 = 0 ;
5734 0 int res1 = 0 ;
5735 0 int argvi = 0;
5736 int result;
5737 0 dXSARGS;
5738
5739 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
5740 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_restart(s);");
5741 }
5742 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5743 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5744 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_restart" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_restart" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer *""'"); 0 0 0
5745 }
5746 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5747 0 result = (int)gsl_multimin_fdfminimizer_restart(arg1);
5748 0 ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
5749
5750 0 XSRETURN(argvi);
5751 0 fail:
5752
5753 0 SWIG_croak_null();
5754 }
5755 }
5756  
5757  
5758 0 XS(_wrap_gsl_multimin_fdfminimizer_x) {
5759 {
5760 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5761 0 void *argp1 = 0 ;
5762 0 int res1 = 0 ;
5763 0 int argvi = 0;
5764 0 gsl_vector *result = 0 ;
5765 0 dXSARGS;
5766
5767 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
5768 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_x(s);");
5769 }
5770 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5771 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5772 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_x" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_x" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'"); 0 0 0
5773 }
5774 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5775 0 result = (gsl_vector *)gsl_multimin_fdfminimizer_x((gsl_multimin_fdfminimizer const *)arg1);
5776 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
5777
5778 0 XSRETURN(argvi);
5779 0 fail:
5780
5781 0 SWIG_croak_null();
5782 }
5783 }
5784  
5785  
5786 0 XS(_wrap_gsl_multimin_fdfminimizer_dx) {
5787 {
5788 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5789 0 void *argp1 = 0 ;
5790 0 int res1 = 0 ;
5791 0 int argvi = 0;
5792 0 gsl_vector *result = 0 ;
5793 0 dXSARGS;
5794
5795 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
5796 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_dx(s);");
5797 }
5798 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5799 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5800 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_dx" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_dx" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'"); 0 0 0
5801 }
5802 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5803 0 result = (gsl_vector *)gsl_multimin_fdfminimizer_dx((gsl_multimin_fdfminimizer const *)arg1);
5804 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
5805
5806 0 XSRETURN(argvi);
5807 0 fail:
5808
5809 0 SWIG_croak_null();
5810 }
5811 }
5812  
5813  
5814 0 XS(_wrap_gsl_multimin_fdfminimizer_gradient) {
5815 {
5816 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5817 0 void *argp1 = 0 ;
5818 0 int res1 = 0 ;
5819 0 int argvi = 0;
5820 0 gsl_vector *result = 0 ;
5821 0 dXSARGS;
5822
5823 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
5824 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_gradient(s);");
5825 }
5826 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5827 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5828 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_gradient" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_gradient" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'"); 0 0 0
5829 }
5830 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5831 0 result = (gsl_vector *)gsl_multimin_fdfminimizer_gradient((gsl_multimin_fdfminimizer const *)arg1);
5832 0 ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gsl_vector, 0 | 0); argvi++ ;
5833
5834 0 XSRETURN(argvi);
5835 0 fail:
5836
5837 0 SWIG_croak_null();
5838 }
5839 }
5840  
5841  
5842 0 XS(_wrap_gsl_multimin_fdfminimizer_minimum) {
5843 {
5844 0 gsl_multimin_fdfminimizer *arg1 = (gsl_multimin_fdfminimizer *) 0 ;
5845 0 void *argp1 = 0 ;
5846 0 int res1 = 0 ;
5847 0 int argvi = 0;
5848 double result;
5849 0 dXSARGS;
5850
5851 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
5852 0 SWIG_croak("Usage: gsl_multimin_fdfminimizer_minimum(s);");
5853 }
5854 0 res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_gsl_multimin_fdfminimizer, 0 | 0 );
5855 0 ▶ if (!SWIG_IsOK(res1)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!SWIG_IsOK(res1)) { 0 0 0
5856 0 ▶ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_minimum" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'");
Branch: 1 branch
BranchTrueFalseTotal
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gsl_multimin_fdfminimizer_minimum" "', argument " "1"" of type '" "gsl_multimin_fdfminimizer const *""'"); 0 0 0
5857 }
5858 0 arg1 = (gsl_multimin_fdfminimizer *)(argp1);
5859 0 result = (double)gsl_multimin_fdfminimizer_minimum((gsl_multimin_fdfminimizer const *)arg1);
5860 0 ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
5861
5862 0 XSRETURN(argvi);
5863 0 fail:
5864
5865 0 SWIG_croak_null();
5866 }
5867 }
5868  
5869  
5870  
5871 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5872  
5873 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
5874 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
5875 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};
5876 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};
5877 static swig_type_info _swigt__p_f_p_q_const__gsl_vector_p_void__double = {"_p_f_p_q_const__gsl_vector_p_void__double", "double (*)(gsl_vector const *,void *)", 0, 0, (void*)0, 0};
5878 static swig_type_info _swigt__p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void = {"_p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void", "void (*)(gsl_vector const *,void *,double *,gsl_vector *)", 0, 0, (void*)0, 0};
5879 static swig_type_info _swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void = {"_p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void", "void (*)(gsl_vector const *,void *,gsl_vector *)", 0, 0, (void*)0, 0};
5880 static swig_type_info _swigt__p_f_p_void__int = {"_p_f_p_void__int", "int (*)(void *)", 0, 0, (void*)0, 0};
5881 static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0};
5882 static swig_type_info _swigt__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int = {"_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int", "int (*)(void *,gsl_multimin_function_fdf *,gsl_vector *,double *,gsl_vector *,gsl_vector *)|int (*)(void *,struct gsl_multimin_function_fdf_struct *,gsl_vector *,double *,gsl_vector *,gsl_vector *)", 0, 0, (void*)0, 0};
5883 static swig_type_info _swigt__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int = {"_p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int", "int (*)(void *,gsl_multimin_function_fdf *,gsl_vector const *,double *,gsl_vector *,double,double)|int (*)(void *,struct gsl_multimin_function_fdf_struct *,gsl_vector const *,double *,gsl_vector *,double,double)", 0, 0, (void*)0, 0};
5884 static swig_type_info _swigt__p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int = {"_p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int", "int (*)(void *,gsl_multimin_function *,gsl_vector *,double *,double *)|int (*)(void *,struct gsl_multimin_function_struct *,gsl_vector *,double *,double *)", 0, 0, (void*)0, 0};
5885 static swig_type_info _swigt__p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int = {"_p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int", "int (*)(void *,gsl_multimin_function *,gsl_vector const *,double *,gsl_vector const *)|int (*)(void *,struct gsl_multimin_function_struct *,gsl_vector const *,double *,gsl_vector const *)", 0, 0, (void*)0, 0};
5886 static swig_type_info _swigt__p_f_p_void_size_t__int = {"_p_f_p_void_size_t__int", "int (*)(void *,size_t)", 0, 0, (void*)0, 0};
5887 static swig_type_info _swigt__p_gsl_multimin_fdfminimizer = {"_p_gsl_multimin_fdfminimizer", "gsl_multimin_fdfminimizer *", 0, 0, (void*)"Math::GSL::Multimin::gsl_multimin_fdfminimizer", 0};
5888 static swig_type_info _swigt__p_gsl_multimin_fdfminimizer_type = {"_p_gsl_multimin_fdfminimizer_type", "gsl_multimin_fdfminimizer_type *", 0, 0, (void*)"Math::GSL::Multimin::gsl_multimin_fdfminimizer_type", 0};
5889 static swig_type_info _swigt__p_gsl_multimin_fminimizer = {"_p_gsl_multimin_fminimizer", "gsl_multimin_fminimizer *", 0, 0, (void*)"Math::GSL::Multimin::gsl_multimin_fminimizer", 0};
5890 static swig_type_info _swigt__p_gsl_multimin_fminimizer_type = {"_p_gsl_multimin_fminimizer_type", "gsl_multimin_fminimizer_type *", 0, 0, (void*)"Math::GSL::Multimin::gsl_multimin_fminimizer_type", 0};
5891 static swig_type_info _swigt__p_gsl_multimin_function_fdf_struct = {"_p_gsl_multimin_function_fdf_struct", "gsl_multimin_function_fdf *|struct gsl_multimin_function_fdf_struct *|gsl_multimin_function_fdf_struct *", 0, 0, (void*)"Math::GSL::Multimin::gsl_multimin_function_fdf_struct", 0};
5892 static swig_type_info _swigt__p_gsl_multimin_function_struct = {"_p_gsl_multimin_function_struct", "gsl_multimin_function *|struct gsl_multimin_function_struct *|gsl_multimin_function_struct *", 0, 0, (void*)"Math::GSL::Multimin::gsl_multimin_function_struct", 0};
5893 static swig_type_info _swigt__p_gsl_vector = {"_p_gsl_vector", "gsl_vector *", 0, 0, (void*)0, 0};
5894 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
5895  
5896 static swig_type_info *swig_type_initial[] = {
5897 &_swigt__p_FILE,
5898 &_swigt__p_char,
5899 &_swigt__p_f_p_q_const__char_p_q_const__char_int_int__void,
5900 &_swigt__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
5901 &_swigt__p_f_p_q_const__gsl_vector_p_void__double,
5902 &_swigt__p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void,
5903 &_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void,
5904 &_swigt__p_f_p_void__int,
5905 &_swigt__p_f_p_void__void,
5906 &_swigt__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int,
5907 &_swigt__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int,
5908 &_swigt__p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int,
5909 &_swigt__p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int,
5910 &_swigt__p_f_p_void_size_t__int,
5911 &_swigt__p_gsl_multimin_fdfminimizer,
5912 &_swigt__p_gsl_multimin_fdfminimizer_type,
5913 &_swigt__p_gsl_multimin_fminimizer,
5914 &_swigt__p_gsl_multimin_fminimizer_type,
5915 &_swigt__p_gsl_multimin_function_fdf_struct,
5916 &_swigt__p_gsl_multimin_function_struct,
5917 &_swigt__p_gsl_vector,
5918 &_swigt__p_void,
5919 };
5920  
5921 static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
5922 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
5923 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}};
5924 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}};
5925 static swig_cast_info _swigc__p_f_p_q_const__gsl_vector_p_void__double[] = { {&_swigt__p_f_p_q_const__gsl_vector_p_void__double, 0, 0, 0},{0, 0, 0, 0}};
5926 static swig_cast_info _swigc__p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void[] = { {&_swigt__p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void, 0, 0, 0},{0, 0, 0, 0}};
5927 static swig_cast_info _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void[] = { {&_swigt__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void, 0, 0, 0},{0, 0, 0, 0}};
5928 static swig_cast_info _swigc__p_f_p_void__int[] = { {&_swigt__p_f_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
5929 static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
5930 static swig_cast_info _swigc__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int[] = { {&_swigt__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int, 0, 0, 0},{0, 0, 0, 0}};
5931 static swig_cast_info _swigc__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int[] = { {&_swigt__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int, 0, 0, 0},{0, 0, 0, 0}};
5932 static swig_cast_info _swigc__p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int[] = { {&_swigt__p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int, 0, 0, 0},{0, 0, 0, 0}};
5933 static swig_cast_info _swigc__p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int[] = { {&_swigt__p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int, 0, 0, 0},{0, 0, 0, 0}};
5934 static swig_cast_info _swigc__p_f_p_void_size_t__int[] = { {&_swigt__p_f_p_void_size_t__int, 0, 0, 0},{0, 0, 0, 0}};
5935 static swig_cast_info _swigc__p_gsl_multimin_fdfminimizer[] = { {&_swigt__p_gsl_multimin_fdfminimizer, 0, 0, 0},{0, 0, 0, 0}};
5936 static swig_cast_info _swigc__p_gsl_multimin_fdfminimizer_type[] = { {&_swigt__p_gsl_multimin_fdfminimizer_type, 0, 0, 0},{0, 0, 0, 0}};
5937 static swig_cast_info _swigc__p_gsl_multimin_fminimizer[] = { {&_swigt__p_gsl_multimin_fminimizer, 0, 0, 0},{0, 0, 0, 0}};
5938 static swig_cast_info _swigc__p_gsl_multimin_fminimizer_type[] = { {&_swigt__p_gsl_multimin_fminimizer_type, 0, 0, 0},{0, 0, 0, 0}};
5939 static swig_cast_info _swigc__p_gsl_multimin_function_fdf_struct[] = { {&_swigt__p_gsl_multimin_function_fdf_struct, 0, 0, 0},{0, 0, 0, 0}};
5940 static swig_cast_info _swigc__p_gsl_multimin_function_struct[] = { {&_swigt__p_gsl_multimin_function_struct, 0, 0, 0},{0, 0, 0, 0}};
5941 static swig_cast_info _swigc__p_gsl_vector[] = { {&_swigt__p_gsl_vector, 0, 0, 0},{0, 0, 0, 0}};
5942 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
5943  
5944 static swig_cast_info *swig_cast_initial[] = {
5945 _swigc__p_FILE,
5946 _swigc__p_char,
5947 _swigc__p_f_p_q_const__char_p_q_const__char_int_int__void,
5948 _swigc__p_f_p_q_const__char_p_q_const__char_int_p_q_const__char__void,
5949 _swigc__p_f_p_q_const__gsl_vector_p_void__double,
5950 _swigc__p_f_p_q_const__gsl_vector_p_void_p_double_p_gsl_vector__void,
5951 _swigc__p_f_p_q_const__gsl_vector_p_void_p_gsl_vector__void,
5952 _swigc__p_f_p_void__int,
5953 _swigc__p_f_p_void__void,
5954 _swigc__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_gsl_vector_p_double_p_gsl_vector_p_gsl_vector__int,
5955 _swigc__p_f_p_void_p_struct_gsl_multimin_function_fdf_struct_p_q_const__gsl_vector_p_double_p_gsl_vector_double_double__int,
5956 _swigc__p_f_p_void_p_struct_gsl_multimin_function_struct_p_gsl_vector_p_double_p_double__int,
5957 _swigc__p_f_p_void_p_struct_gsl_multimin_function_struct_p_q_const__gsl_vector_p_double_p_q_const__gsl_vector__int,
5958 _swigc__p_f_p_void_size_t__int,
5959 _swigc__p_gsl_multimin_fdfminimizer,
5960 _swigc__p_gsl_multimin_fdfminimizer_type,
5961 _swigc__p_gsl_multimin_fminimizer,
5962 _swigc__p_gsl_multimin_fminimizer_type,
5963 _swigc__p_gsl_multimin_function_fdf_struct,
5964 _swigc__p_gsl_multimin_function_struct,
5965 _swigc__p_gsl_vector,
5966 _swigc__p_void,
5967 };
5968  
5969  
5970 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5971  
5972 static swig_constant_info swig_constants[] = {
5973 {0,0,0,0,0,0}
5974 };
5975 #ifdef __cplusplus
5976 }
5977 #endif
5978 static swig_variable_info swig_variables[] = {
5979 { "Math::GSL::Multiminc::gsl_multimin_fdfminimizer_steepest_descent", MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_steepest_descent_set, MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_steepest_descent_get,&SWIGTYPE_p_gsl_multimin_fdfminimizer_type },
5980 { "Math::GSL::Multiminc::gsl_multimin_fdfminimizer_conjugate_pr", MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_conjugate_pr_set, MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_conjugate_pr_get,&SWIGTYPE_p_gsl_multimin_fdfminimizer_type },
5981 { "Math::GSL::Multiminc::gsl_multimin_fdfminimizer_conjugate_fr", MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_conjugate_fr_set, MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_conjugate_fr_get,&SWIGTYPE_p_gsl_multimin_fdfminimizer_type },
5982 { "Math::GSL::Multiminc::gsl_multimin_fdfminimizer_vector_bfgs", MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_vector_bfgs_set, MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_vector_bfgs_get,&SWIGTYPE_p_gsl_multimin_fdfminimizer_type },
5983 { "Math::GSL::Multiminc::gsl_multimin_fdfminimizer_vector_bfgs2", MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_vector_bfgs2_set, MAGIC_CLASS _wrap_gsl_multimin_fdfminimizer_vector_bfgs2_get,&SWIGTYPE_p_gsl_multimin_fdfminimizer_type },
5984 { "Math::GSL::Multiminc::gsl_multimin_fminimizer_nmsimplex", MAGIC_CLASS _wrap_gsl_multimin_fminimizer_nmsimplex_set, MAGIC_CLASS _wrap_gsl_multimin_fminimizer_nmsimplex_get,&SWIGTYPE_p_gsl_multimin_fminimizer_type },
5985 { "Math::GSL::Multiminc::gsl_multimin_fminimizer_nmsimplex2", MAGIC_CLASS _wrap_gsl_multimin_fminimizer_nmsimplex2_set, MAGIC_CLASS _wrap_gsl_multimin_fminimizer_nmsimplex2_get,&SWIGTYPE_p_gsl_multimin_fminimizer_type },
5986 { "Math::GSL::Multiminc::gsl_multimin_fminimizer_nmsimplex2rand", MAGIC_CLASS _wrap_gsl_multimin_fminimizer_nmsimplex2rand_set, MAGIC_CLASS _wrap_gsl_multimin_fminimizer_nmsimplex2rand_get,&SWIGTYPE_p_gsl_multimin_fminimizer_type },
5987 {0,0,0,0}
5988 };
5989 static swig_command_info swig_commands[] = {
5990 {"Math::GSL::Multiminc::gsl_error", _wrap_gsl_error},
5991 {"Math::GSL::Multiminc::gsl_stream_printf", _wrap_gsl_stream_printf},
5992 {"Math::GSL::Multiminc::gsl_strerror", _wrap_gsl_strerror},
5993 {"Math::GSL::Multiminc::gsl_set_error_handler", _wrap_gsl_set_error_handler},
5994 {"Math::GSL::Multiminc::gsl_set_error_handler_off", _wrap_gsl_set_error_handler_off},
5995 {"Math::GSL::Multiminc::gsl_set_stream_handler", _wrap_gsl_set_stream_handler},
5996 {"Math::GSL::Multiminc::gsl_set_stream", _wrap_gsl_set_stream},
5997 {"Math::GSL::Multiminc::gsl_multimin_function_struct_f_set", _wrap_gsl_multimin_function_struct_f_set},
5998 {"Math::GSL::Multiminc::gsl_multimin_function_struct_f_get", _wrap_gsl_multimin_function_struct_f_get},
5999 {"Math::GSL::Multiminc::gsl_multimin_function_struct_n_set", _wrap_gsl_multimin_function_struct_n_set},
6000 {"Math::GSL::Multiminc::gsl_multimin_function_struct_n_get", _wrap_gsl_multimin_function_struct_n_get},
6001 {"Math::GSL::Multiminc::gsl_multimin_function_struct_params_set", _wrap_gsl_multimin_function_struct_params_set},
6002 {"Math::GSL::Multiminc::gsl_multimin_function_struct_params_get", _wrap_gsl_multimin_function_struct_params_get},
6003 {"Math::GSL::Multiminc::new_gsl_multimin_function_struct", _wrap_new_gsl_multimin_function_struct},
6004 {"Math::GSL::Multiminc::delete_gsl_multimin_function_struct", _wrap_delete_gsl_multimin_function_struct},
6005 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_f_set", _wrap_gsl_multimin_function_fdf_struct_f_set},
6006 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_f_get", _wrap_gsl_multimin_function_fdf_struct_f_get},
6007 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_df_set", _wrap_gsl_multimin_function_fdf_struct_df_set},
6008 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_df_get", _wrap_gsl_multimin_function_fdf_struct_df_get},
6009 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_fdf_set", _wrap_gsl_multimin_function_fdf_struct_fdf_set},
6010 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_fdf_get", _wrap_gsl_multimin_function_fdf_struct_fdf_get},
6011 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_n_set", _wrap_gsl_multimin_function_fdf_struct_n_set},
6012 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_n_get", _wrap_gsl_multimin_function_fdf_struct_n_get},
6013 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_params_set", _wrap_gsl_multimin_function_fdf_struct_params_set},
6014 {"Math::GSL::Multiminc::gsl_multimin_function_fdf_struct_params_get", _wrap_gsl_multimin_function_fdf_struct_params_get},
6015 {"Math::GSL::Multiminc::new_gsl_multimin_function_fdf_struct", _wrap_new_gsl_multimin_function_fdf_struct},
6016 {"Math::GSL::Multiminc::delete_gsl_multimin_function_fdf_struct", _wrap_delete_gsl_multimin_function_fdf_struct},
6017 {"Math::GSL::Multiminc::gsl_multimin_diff", _wrap_gsl_multimin_diff},
6018 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_name_set", _wrap_gsl_multimin_fminimizer_type_name_set},
6019 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_name_get", _wrap_gsl_multimin_fminimizer_type_name_get},
6020 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_size_set", _wrap_gsl_multimin_fminimizer_type_size_set},
6021 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_size_get", _wrap_gsl_multimin_fminimizer_type_size_get},
6022 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_alloc_set", _wrap_gsl_multimin_fminimizer_type_alloc_set},
6023 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_alloc_get", _wrap_gsl_multimin_fminimizer_type_alloc_get},
6024 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_set_set", _wrap_gsl_multimin_fminimizer_type_set_set},
6025 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_set_get", _wrap_gsl_multimin_fminimizer_type_set_get},
6026 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_iterate_set", _wrap_gsl_multimin_fminimizer_type_iterate_set},
6027 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_iterate_get", _wrap_gsl_multimin_fminimizer_type_iterate_get},
6028 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_free_set", _wrap_gsl_multimin_fminimizer_type_free_set},
6029 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_free_get", _wrap_gsl_multimin_fminimizer_type_free_get},
6030 {"Math::GSL::Multiminc::new_gsl_multimin_fminimizer_type", _wrap_new_gsl_multimin_fminimizer_type},
6031 {"Math::GSL::Multiminc::delete_gsl_multimin_fminimizer_type", _wrap_delete_gsl_multimin_fminimizer_type},
6032 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_set", _wrap_gsl_multimin_fminimizer_type_set},
6033 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_type_get", _wrap_gsl_multimin_fminimizer_type_get},
6034 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_f_set", _wrap_gsl_multimin_fminimizer_f_set},
6035 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_f_get", _wrap_gsl_multimin_fminimizer_f_get},
6036 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_fval_set", _wrap_gsl_multimin_fminimizer_fval_set},
6037 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_fval_get", _wrap_gsl_multimin_fminimizer_fval_get},
6038 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_x_set", _wrap_gsl_multimin_fminimizer_x_set},
6039 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_x_get", _wrap_gsl_multimin_fminimizer_x_get},
6040 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_size_set", _wrap_gsl_multimin_fminimizer_size_set},
6041 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_size_get", _wrap_gsl_multimin_fminimizer_size_get},
6042 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_state_set", _wrap_gsl_multimin_fminimizer_state_set},
6043 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_state_get", _wrap_gsl_multimin_fminimizer_state_get},
6044 {"Math::GSL::Multiminc::new_gsl_multimin_fminimizer", _wrap_new_gsl_multimin_fminimizer},
6045 {"Math::GSL::Multiminc::delete_gsl_multimin_fminimizer", _wrap_delete_gsl_multimin_fminimizer},
6046 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_alloc", _wrap_gsl_multimin_fminimizer_alloc},
6047 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_set", _wrap_gsl_multimin_fminimizer_set},
6048 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_free", _wrap_gsl_multimin_fminimizer_free},
6049 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_name", _wrap_gsl_multimin_fminimizer_name},
6050 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_iterate", _wrap_gsl_multimin_fminimizer_iterate},
6051 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_x", _wrap_gsl_multimin_fminimizer_x},
6052 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_minimum", _wrap_gsl_multimin_fminimizer_minimum},
6053 {"Math::GSL::Multiminc::gsl_multimin_fminimizer_size", _wrap_gsl_multimin_fminimizer_size},
6054 {"Math::GSL::Multiminc::gsl_multimin_test_gradient", _wrap_gsl_multimin_test_gradient},
6055 {"Math::GSL::Multiminc::gsl_multimin_test_size", _wrap_gsl_multimin_test_size},
6056 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_name_set", _wrap_gsl_multimin_fdfminimizer_type_name_set},
6057 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_name_get", _wrap_gsl_multimin_fdfminimizer_type_name_get},
6058 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_size_set", _wrap_gsl_multimin_fdfminimizer_type_size_set},
6059 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_size_get", _wrap_gsl_multimin_fdfminimizer_type_size_get},
6060 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_alloc_set", _wrap_gsl_multimin_fdfminimizer_type_alloc_set},
6061 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_alloc_get", _wrap_gsl_multimin_fdfminimizer_type_alloc_get},
6062 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_set_set", _wrap_gsl_multimin_fdfminimizer_type_set_set},
6063 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_set_get", _wrap_gsl_multimin_fdfminimizer_type_set_get},
6064 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_iterate_set", _wrap_gsl_multimin_fdfminimizer_type_iterate_set},
6065 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_iterate_get", _wrap_gsl_multimin_fdfminimizer_type_iterate_get},
6066 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_restart_set", _wrap_gsl_multimin_fdfminimizer_type_restart_set},
6067 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_restart_get", _wrap_gsl_multimin_fdfminimizer_type_restart_get},
6068 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_free_set", _wrap_gsl_multimin_fdfminimizer_type_free_set},
6069 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_free_get", _wrap_gsl_multimin_fdfminimizer_type_free_get},
6070 {"Math::GSL::Multiminc::new_gsl_multimin_fdfminimizer_type", _wrap_new_gsl_multimin_fdfminimizer_type},
6071 {"Math::GSL::Multiminc::delete_gsl_multimin_fdfminimizer_type", _wrap_delete_gsl_multimin_fdfminimizer_type},
6072 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_set", _wrap_gsl_multimin_fdfminimizer_type_set},
6073 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_type_get", _wrap_gsl_multimin_fdfminimizer_type_get},
6074 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_fdf_set", _wrap_gsl_multimin_fdfminimizer_fdf_set},
6075 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_fdf_get", _wrap_gsl_multimin_fdfminimizer_fdf_get},
6076 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_f_set", _wrap_gsl_multimin_fdfminimizer_f_set},
6077 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_f_get", _wrap_gsl_multimin_fdfminimizer_f_get},
6078 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_x_set", _wrap_gsl_multimin_fdfminimizer_x_set},
6079 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_x_get", _wrap_gsl_multimin_fdfminimizer_x_get},
6080 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_gradient_set", _wrap_gsl_multimin_fdfminimizer_gradient_set},
6081 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_gradient_get", _wrap_gsl_multimin_fdfminimizer_gradient_get},
6082 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_dx_set", _wrap_gsl_multimin_fdfminimizer_dx_set},
6083 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_dx_get", _wrap_gsl_multimin_fdfminimizer_dx_get},
6084 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_state_set", _wrap_gsl_multimin_fdfminimizer_state_set},
6085 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_state_get", _wrap_gsl_multimin_fdfminimizer_state_get},
6086 {"Math::GSL::Multiminc::new_gsl_multimin_fdfminimizer", _wrap_new_gsl_multimin_fdfminimizer},
6087 {"Math::GSL::Multiminc::delete_gsl_multimin_fdfminimizer", _wrap_delete_gsl_multimin_fdfminimizer},
6088 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_alloc", _wrap_gsl_multimin_fdfminimizer_alloc},
6089 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_set", _wrap_gsl_multimin_fdfminimizer_set},
6090 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_free", _wrap_gsl_multimin_fdfminimizer_free},
6091 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_name", _wrap_gsl_multimin_fdfminimizer_name},
6092 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_iterate", _wrap_gsl_multimin_fdfminimizer_iterate},
6093 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_restart", _wrap_gsl_multimin_fdfminimizer_restart},
6094 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_x", _wrap_gsl_multimin_fdfminimizer_x},
6095 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_dx", _wrap_gsl_multimin_fdfminimizer_dx},
6096 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_gradient", _wrap_gsl_multimin_fdfminimizer_gradient},
6097 {"Math::GSL::Multiminc::gsl_multimin_fdfminimizer_minimum", _wrap_gsl_multimin_fdfminimizer_minimum},
6098 {0,0}
6099 };
6100 /* -----------------------------------------------------------------------------
6101 * Type initialization:
6102 * This problem is tough by the requirement that no dynamic
6103 * memory is used. Also, since swig_type_info structures store pointers to
6104 * swig_cast_info structures and swig_cast_info structures store pointers back
6105 * to swig_type_info structures, we need some lookup code at initialization.
6106 * The idea is that swig generates all the structures that are needed.
6107 * The runtime then collects these partially filled structures.
6108 * The SWIG_InitializeModule function takes these initial arrays out of
6109 * swig_module, and does all the lookup, filling in the swig_module.types
6110 * array with the correct data and linking the correct swig_cast_info
6111 * structures together.
6112 *
6113 * The generated swig_type_info structures are assigned statically to an initial
6114 * array. We just loop through that array, and handle each type individually.
6115 * First we lookup if this type has been already loaded, and if so, use the
6116 * loaded structure instead of the generated one. Then we have to fill in the
6117 * cast linked list. The cast data is initially stored in something like a
6118 * two-dimensional array. Each row corresponds to a type (there are the same
6119 * number of rows as there are in the swig_type_initial array). Each entry in
6120 * a column is one of the swig_cast_info structures for that type.
6121 * The cast_initial array is actually an array of arrays, because each row has
6122 * a variable number of columns. So to actually build the cast linked list,
6123 * we find the array of casts associated with the type, and loop through it
6124 * adding the casts to the list. The one last trick we need to do is making
6125 * sure the type pointer in the swig_cast_info struct is correct.
6126 *
6127 * First off, we lookup the cast->type name to see if it is already loaded.
6128 * There are three cases to handle:
6129 * 1) If the cast->type has already been loaded AND the type we are adding
6130 * casting info to has not been loaded (it is in this module), THEN we
6131 * replace the cast->type pointer with the type pointer that has already
6132 * been loaded.
6133 * 2) If BOTH types (the one we are adding casting info to, and the
6134 * cast->type) are loaded, THEN the cast info has already been loaded by
6135 * the previous module so we just ignore it.
6136 * 3) Finally, if cast->type has not already been loaded, then we add that
6137 * swig_cast_info to the linked list (because the cast->type) pointer will
6138 * be correct.
6139 * ----------------------------------------------------------------------------- */
6140  
6141 #ifdef __cplusplus
6142 extern "C" {
6143 #if 0
6144 } /* c-mode */
6145 #endif
6146 #endif
6147  
6148 #if 0
6149 #define SWIGRUNTIME_DEBUG
6150 #endif
6151  
6152 #ifndef SWIG_INIT_CLIENT_DATA_TYPE
6153 #define SWIG_INIT_CLIENT_DATA_TYPE void *
6154 #endif
6155  
6156 SWIGRUNTIME void
6157 0 SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
6158 size_t i;
6159 swig_module_info *module_head, *iter;
6160 int init;
6161
6162 /* check to see if the circular list has been setup, if not, set it up */
6163 0 ▶ if (swig_module.next==0) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next==0) { 0 0 0
6164 /* Initialize the swig_module */
6165 0 swig_module.type_initial = swig_type_initial;
6166 0 swig_module.cast_initial = swig_cast_initial;
6167 0 swig_module.next = &swig_module;
6168 0 init = 1;
6169 } else {
6170 0 init = 0;
6171 }
6172
6173 /* Try and load any already created modules */
6174 0 module_head = SWIG_GetModule(clientdata);
6175 0 ▶ if (!module_head) {
Branch: 1 branch
BranchTrueFalseTotal
if (!module_head) { 0 0 0
6176 /* This is the first module loaded for this interpreter */
6177 /* so set the swig module into the interpreter */
6178 0 SWIG_SetModule(clientdata, &swig_module);
6179 } else {
6180 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
6181 0 iter=module_head;
6182 do {
6183 0 ▶ if (iter==&swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (iter==&swig_module) { 0 0 0
6184 /* Our module is already in the list, so there's nothing more to do. */
6185 0 return;
6186 }
6187 0 iter=iter->next;
6188 0 ▶ } while (iter!= module_head);
Branch: 1 branch
BranchTrueFalseTotal
} while (iter!= module_head); 0 0 0
6189
6190 /* otherwise we must add our module into the list */
6191 0 swig_module.next = module_head->next;
6192 0 module_head->next = &swig_module;
6193 }
6194
6195 /* When multiple interpreters are used, a module could have already been initialized in
6196 a different interpreter, but not yet have a pointer in this interpreter.
6197 In this case, we do not want to continue adding types... everything should be
6198 set up already */
6199 0 ▶ if (init == 0) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init == 0) return; 0 0 0
6200
6201 /* Now work on filling in swig_module.types */
6202 #ifdef SWIGRUNTIME_DEBUG
6203 printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
6204 #endif
6205 0 ▶ for (i = 0; i < swig_module.size; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; ++i) { 0 0 0
6206 0 swig_type_info *type = 0;
6207 swig_type_info *ret;
6208 swig_cast_info *cast;
6209
6210 #ifdef SWIGRUNTIME_DEBUG
6211 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6212 #endif
6213
6214 /* if there is another module already loaded */
6215 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
6216 0 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
6217 }
6218 0 ▶ if (type) {
Branch: 1 branch
BranchTrueFalseTotal
if (type) { 0 0 0
6219 /* Overwrite clientdata field */
6220 #ifdef SWIGRUNTIME_DEBUG
6221 printf("SWIG_InitializeModule: found type %s\n", type->name);
6222 #endif
6223 0 ▶ if (swig_module.type_initial[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.type_initial[i]->clientdata) { 0 0 0
6224 0 type->clientdata = swig_module.type_initial[i]->clientdata;
6225 #ifdef SWIGRUNTIME_DEBUG
6226 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
6227 #endif
6228 }
6229 } else {
6230 0 type = swig_module.type_initial[i];
6231 }
6232
6233 /* Insert casting types */
6234 0 cast = swig_module.cast_initial[i];
6235 0 ▶ while (cast->type) {
Branch: 1 branch
BranchTrueFalseTotal
while (cast->type) { 0 0 0
6236 /* Don't need to add information already in the list */
6237 0 ret = 0;
6238 #ifdef SWIGRUNTIME_DEBUG
6239 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
6240 #endif
6241 0 ▶ if (swig_module.next != &swig_module) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.next != &swig_module) { 0 0 0
6242 0 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
6243 #ifdef SWIGRUNTIME_DEBUG
6244 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
6245 #endif
6246 }
6247 0 ▶ if (ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (ret) { 0 0 0
6248 0 ▶ if (type == swig_module.type_initial[i]) {
Branch: 1 branch
BranchTrueFalseTotal
if (type == swig_module.type_initial[i]) { 0 0 0
6249 #ifdef SWIGRUNTIME_DEBUG
6250 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
6251 #endif
6252 0 cast->type = ret;
6253 0 ret = 0;
6254 } else {
6255 /* Check for casting already in the list */
6256 0 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
6257 #ifdef SWIGRUNTIME_DEBUG
6258 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
6259 #endif
6260 0 ▶ if (!ocast) ret = 0;
Branch: 1 branch
BranchTrueFalseTotal
if (!ocast) ret = 0; 0 0 0
6261 }
6262 }
6263
6264 0 ▶ if (!ret) {
Branch: 1 branch
BranchTrueFalseTotal
if (!ret) { 0 0 0
6265 #ifdef SWIGRUNTIME_DEBUG
6266 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
6267 #endif
6268 0 ▶ if (type->cast) {
Branch: 1 branch
BranchTrueFalseTotal
if (type->cast) { 0 0 0
6269 0 type->cast->prev = cast;
6270 0 cast->next = type->cast;
6271 }
6272 0 type->cast = cast;
6273 }
6274 0 cast++;
6275 }
6276 /* Set entry in modules->types array equal to the type */
6277 0 swig_module.types[i] = type;
6278 }
6279 0 swig_module.types[i] = 0;
6280
6281 #ifdef SWIGRUNTIME_DEBUG
6282 printf("**** SWIG_InitializeModule: Cast List ******\n");
6283 for (i = 0; i < swig_module.size; ++i) {
6284 int j = 0;
6285 swig_cast_info *cast = swig_module.cast_initial[i];
6286 printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6287 while (cast->type) {
6288 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
6289 cast++;
6290 ++j;
6291 }
6292 printf("---- Total casts: %d\n",j);
6293 }
6294 printf("**** SWIG_InitializeModule: Cast List ******\n");
6295 #endif
6296 }
6297  
6298 /* This function will propagate the clientdata field of type to
6299 * any new swig_type_info structures that have been added into the list
6300 * of equivalent types. It is like calling
6301 * SWIG_TypeClientData(type, clientdata) a second time.
6302 */
6303 SWIGRUNTIME void
6304 0 SWIG_PropagateClientData(void) {
6305 size_t i;
6306 swig_cast_info *equiv;
6307 static int init_run = 0;
6308
6309 0 ▶ if (init_run) return;
Branch: 1 branch
BranchTrueFalseTotal
if (init_run) return; 0 0 0
6310 0 init_run = 1;
6311
6312 0 ▶ for (i = 0; i < swig_module.size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < swig_module.size; i++) { 0 0 0
6313 0 ▶ if (swig_module.types[i]->clientdata) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_module.types[i]->clientdata) { 0 0 0
6314 0 equiv = swig_module.types[i]->cast;
6315 0 ▶ while (equiv) {
Branch: 1 branch
BranchTrueFalseTotal
while (equiv) { 0 0 0
6316 0 ▶ if (!equiv->converter) {
Branch: 1 branch
BranchTrueFalseTotal
if (!equiv->converter) { 0 0 0
6317 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
6318 0 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
6319 }
6320 0 equiv = equiv->next;
6321 }
6322 }
6323 }
6324 }
6325  
6326 #ifdef __cplusplus
6327 #if 0
6328 {
6329 /* c-mode */
6330 #endif
6331 }
6332 #endif
6333  
6334  
6335  
6336 #if defined(__cplusplus) && ! defined(XSPROTO)
6337 extern "C"
6338 #endif
6339  
6340 0 XS(SWIG_init) {
6341 0 dXSARGS;
6342 int i;
6343 (void)items;
6344
6345 0 SWIG_InitializeModule(0);
6346
6347 /* Install commands */
6348 0 ▶ for (i = 0; swig_commands[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_commands[i].name; i++) { 0 0 0
6349 /* Casts only needed for Perl < 5.10. */
6350 #ifdef __cplusplus
6351 newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
6352 #else
6353 0 newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
6354 #endif
6355 }
6356
6357 /* Install variables */
6358 0 ▶ for (i = 0; swig_variables[i].name; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_variables[i].name; i++) { 0 0 0
6359 SV *sv;
6360 0 sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
6361 0 ▶ if (swig_variables[i].type) {
Branch: 1 branch
BranchTrueFalseTotal
if (swig_variables[i].type) { 0 0 0
6362 0 SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
6363 } else {
6364 0 sv_setiv(sv,(IV) 0);
6365 }
6366 0 swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get);
6367 }
6368
6369 /* Install constant */
6370 0 ▶ for (i = 0; swig_constants[i].type; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; swig_constants[i].type; i++) { 0 0 0
6371 SV *sv;
6372 0 sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
6373 0 switch(swig_constants[i].type) {
6374 0 case SWIG_INT:
6375 0 sv_setiv(sv, (IV) swig_constants[i].lvalue);
6376 0 break;
6377 0 case SWIG_FLOAT:
6378 0 sv_setnv(sv, (double) swig_constants[i].dvalue);
6379 0 break;
6380 0 case SWIG_STRING:
6381 0 sv_setpv(sv, (const char *) swig_constants[i].pvalue);
6382 0 break;
6383 0 case SWIG_POINTER:
6384 0 SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
6385 0 break;
6386 0 case SWIG_BINARY:
6387 0 SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
6388 0 break;
6389 0 default:
6390 0 break;
6391 }
6392 0 SvREADONLY_on(sv);
6393 }
6394
6395 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6396 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_VERSION", TRUE | 0x2 | GV_ADDMULTI);
6397 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)(2.8)));
6398 0 SvREADONLY_on(sv);
6399 } while(0) /*@SWIG@*/;
6400 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6401 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MAJOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
6402 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(2)));
6403 0 SvREADONLY_on(sv);
6404 } while(0) /*@SWIG@*/;
6405 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6406 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_MINOR_VERSION", TRUE | 0x2 | GV_ADDMULTI);
6407 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(8)));
6408 0 SvREADONLY_on(sv);
6409 } while(0) /*@SWIG@*/;
6410 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6411 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_POSZERO", TRUE | 0x2 | GV_ADDMULTI);
6412 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((+0.0))));
6413 0 SvREADONLY_on(sv);
6414 } while(0) /*@SWIG@*/;
6415 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6416 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_NEGZERO", TRUE | 0x2 | GV_ADDMULTI);
6417 0 sv_setsv(sv, SWIG_From_double SWIG_PERL_CALL_ARGS_1((double)((-0.0))));
6418 0 SvREADONLY_on(sv);
6419 } while(0) /*@SWIG@*/;
6420 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6421 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
6422 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_SUCCESS)));
6423 0 SvREADONLY_on(sv);
6424 } while(0) /*@SWIG@*/;
6425 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6426 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
6427 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_FAILURE)));
6428 0 SvREADONLY_on(sv);
6429 } while(0) /*@SWIG@*/;
6430 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6431 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_CONTINUE", TRUE | 0x2 | GV_ADDMULTI);
6432 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_CONTINUE)));
6433 0 SvREADONLY_on(sv);
6434 } while(0) /*@SWIG@*/;
6435 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6436 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDOM", TRUE | 0x2 | GV_ADDMULTI);
6437 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDOM)));
6438 0 SvREADONLY_on(sv);
6439 } while(0) /*@SWIG@*/;
6440 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6441 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERANGE", TRUE | 0x2 | GV_ADDMULTI);
6442 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERANGE)));
6443 0 SvREADONLY_on(sv);
6444 } while(0) /*@SWIG@*/;
6445 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6446 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAULT", TRUE | 0x2 | GV_ADDMULTI);
6447 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAULT)));
6448 0 SvREADONLY_on(sv);
6449 } while(0) /*@SWIG@*/;
6450 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6451 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EINVAL", TRUE | 0x2 | GV_ADDMULTI);
6452 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EINVAL)));
6453 0 SvREADONLY_on(sv);
6454 } while(0) /*@SWIG@*/;
6455 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6456 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFAILED", TRUE | 0x2 | GV_ADDMULTI);
6457 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFAILED)));
6458 0 SvREADONLY_on(sv);
6459 } while(0) /*@SWIG@*/;
6460 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6461 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EFACTOR", TRUE | 0x2 | GV_ADDMULTI);
6462 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EFACTOR)));
6463 0 SvREADONLY_on(sv);
6464 } while(0) /*@SWIG@*/;
6465 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6466 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESANITY", TRUE | 0x2 | GV_ADDMULTI);
6467 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESANITY)));
6468 0 SvREADONLY_on(sv);
6469 } while(0) /*@SWIG@*/;
6470 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6471 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOMEM", TRUE | 0x2 | GV_ADDMULTI);
6472 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOMEM)));
6473 0 SvREADONLY_on(sv);
6474 } while(0) /*@SWIG@*/;
6475 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6476 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADFUNC", TRUE | 0x2 | GV_ADDMULTI);
6477 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADFUNC)));
6478 0 SvREADONLY_on(sv);
6479 } while(0) /*@SWIG@*/;
6480 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6481 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ERUNAWAY", TRUE | 0x2 | GV_ADDMULTI);
6482 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ERUNAWAY)));
6483 0 SvREADONLY_on(sv);
6484 } while(0) /*@SWIG@*/;
6485 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6486 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EMAXITER", TRUE | 0x2 | GV_ADDMULTI);
6487 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EMAXITER)));
6488 0 SvREADONLY_on(sv);
6489 } while(0) /*@SWIG@*/;
6490 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6491 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EZERODIV", TRUE | 0x2 | GV_ADDMULTI);
6492 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EZERODIV)));
6493 0 SvREADONLY_on(sv);
6494 } while(0) /*@SWIG@*/;
6495 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6496 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADTOL", TRUE | 0x2 | GV_ADDMULTI);
6497 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADTOL)));
6498 0 SvREADONLY_on(sv);
6499 } while(0) /*@SWIG@*/;
6500 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6501 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOL", TRUE | 0x2 | GV_ADDMULTI);
6502 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOL)));
6503 0 SvREADONLY_on(sv);
6504 } while(0) /*@SWIG@*/;
6505 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6506 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNDRFLW", TRUE | 0x2 | GV_ADDMULTI);
6507 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNDRFLW)));
6508 0 SvREADONLY_on(sv);
6509 } while(0) /*@SWIG@*/;
6510 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6511 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOVRFLW", TRUE | 0x2 | GV_ADDMULTI);
6512 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOVRFLW)));
6513 0 SvREADONLY_on(sv);
6514 } while(0) /*@SWIG@*/;
6515 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6516 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ELOSS", TRUE | 0x2 | GV_ADDMULTI);
6517 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ELOSS)));
6518 0 SvREADONLY_on(sv);
6519 } while(0) /*@SWIG@*/;
6520 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6521 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EROUND", TRUE | 0x2 | GV_ADDMULTI);
6522 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EROUND)));
6523 0 SvREADONLY_on(sv);
6524 } while(0) /*@SWIG@*/;
6525 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6526 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EBADLEN", TRUE | 0x2 | GV_ADDMULTI);
6527 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EBADLEN)));
6528 0 SvREADONLY_on(sv);
6529 } while(0) /*@SWIG@*/;
6530 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6531 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOTSQR", TRUE | 0x2 | GV_ADDMULTI);
6532 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOTSQR)));
6533 0 SvREADONLY_on(sv);
6534 } while(0) /*@SWIG@*/;
6535 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6536 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ESING", TRUE | 0x2 | GV_ADDMULTI);
6537 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ESING)));
6538 0 SvREADONLY_on(sv);
6539 } while(0) /*@SWIG@*/;
6540 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6541 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EDIVERGE", TRUE | 0x2 | GV_ADDMULTI);
6542 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EDIVERGE)));
6543 0 SvREADONLY_on(sv);
6544 } while(0) /*@SWIG@*/;
6545 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6546 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNSUP", TRUE | 0x2 | GV_ADDMULTI);
6547 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNSUP)));
6548 0 SvREADONLY_on(sv);
6549 } while(0) /*@SWIG@*/;
6550 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6551 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EUNIMPL", TRUE | 0x2 | GV_ADDMULTI);
6552 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EUNIMPL)));
6553 0 SvREADONLY_on(sv);
6554 } while(0) /*@SWIG@*/;
6555 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6556 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ECACHE", TRUE | 0x2 | GV_ADDMULTI);
6557 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ECACHE)));
6558 0 SvREADONLY_on(sv);
6559 } while(0) /*@SWIG@*/;
6560 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6561 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETABLE", TRUE | 0x2 | GV_ADDMULTI);
6562 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETABLE)));
6563 0 SvREADONLY_on(sv);
6564 } while(0) /*@SWIG@*/;
6565 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6566 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROG", TRUE | 0x2 | GV_ADDMULTI);
6567 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROG)));
6568 0 SvREADONLY_on(sv);
6569 } while(0) /*@SWIG@*/;
6570 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6571 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ENOPROGJ", TRUE | 0x2 | GV_ADDMULTI);
6572 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ENOPROGJ)));
6573 0 SvREADONLY_on(sv);
6574 } while(0) /*@SWIG@*/;
6575 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6576 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLF", TRUE | 0x2 | GV_ADDMULTI);
6577 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLF)));
6578 0 SvREADONLY_on(sv);
6579 } while(0) /*@SWIG@*/;
6580 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6581 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLX", TRUE | 0x2 | GV_ADDMULTI);
6582 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLX)));
6583 0 SvREADONLY_on(sv);
6584 } while(0) /*@SWIG@*/;
6585 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6586 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_ETOLG", TRUE | 0x2 | GV_ADDMULTI);
6587 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_ETOLG)));
6588 0 SvREADONLY_on(sv);
6589 } while(0) /*@SWIG@*/;
6590 /*@SWIG:/usr/share/swig4.0/perl5/perltypemaps.swg,67,%set_constant@*/ do {
6591 0 SV *sv = get_sv((char*) SWIG_prefix "GSL_EOF", TRUE | 0x2 | GV_ADDMULTI);
6592 0 sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1((int)(GSL_EOF)));
6593 0 SvREADONLY_on(sv);
6594 } while(0) /*@SWIG@*/;
6595 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_multimin_function_struct, (void*) "Math::GSL::Multimin::gsl_multimin_function_struct");
6596 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_multimin_function_fdf_struct, (void*) "Math::GSL::Multimin::gsl_multimin_function_fdf_struct");
6597 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_multimin_fminimizer_type, (void*) "Math::GSL::Multimin::gsl_multimin_fminimizer_type");
6598 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_multimin_fminimizer, (void*) "Math::GSL::Multimin::gsl_multimin_fminimizer");
6599 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_multimin_fdfminimizer_type, (void*) "Math::GSL::Multimin::gsl_multimin_fdfminimizer_type");
6600 0 SWIG_TypeClientData(SWIGTYPE_p_gsl_multimin_fdfminimizer, (void*) "Math::GSL::Multimin::gsl_multimin_fdfminimizer");
6601 0 ST(0) = &PL_sv_yes;
6602 0 XSRETURN(1);
6603 }
6604  
« xs/Multilarge_wrap.2.8.c ↑ Summary xs/Multiroots_wrap.2.8.c »