Bug Summary

File:pyext/gammalib/linalg_wrap.cpp
Location:line 16421, column 5
Description:Value stored to 'module_head' is never read

Annotated Source Code

1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 2.0.11
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14
15#ifdef __cplusplus199711L
16/* SwigValueWrapper is described in swig.swg */
17template<typename T> class SwigValueWrapper {
18 struct SwigMovePointer {
19 T *ptr;
20 SwigMovePointer(T *p) : ptr(p) { }
21 ~SwigMovePointer() { delete ptr; }
22 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
23 } pointer;
24 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
25 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
26public:
27 SwigValueWrapper() : pointer(0) { }
28 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
29 operator T&() const { return *pointer.ptr; }
30 T *operator&() { return pointer.ptr; }
31};
32
33template <typename T> T SwigValueInit() {
34 return T();
35}
36#endif
37
38/* -----------------------------------------------------------------------------
39 * This section contains generic SWIG labels for method/variable
40 * declarations/attributes, and other compiler dependent labels.
41 * ----------------------------------------------------------------------------- */
42
43/* template workaround for compilers that cannot correctly implement the C++ standard */
44#ifndef SWIGTEMPLATEDISAMBIGUATOR
45# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
46# define SWIGTEMPLATEDISAMBIGUATOR template
47# elif defined(__HP_aCC)
48/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
49/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
50# define SWIGTEMPLATEDISAMBIGUATOR template
51# else
52# define SWIGTEMPLATEDISAMBIGUATOR
53# endif
54#endif
55
56/* inline attribute */
57#ifndef SWIGINLINEinline
58# if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__))
59# define SWIGINLINEinline inline
60# else
61# define SWIGINLINEinline
62# endif
63#endif
64
65/* attribute recognised by some compilers to avoid 'unused' warnings */
66#ifndef SWIGUNUSED__attribute__ ((__unused__))
67# if defined(__GNUC__4)
68# if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
69# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
70# else
71# define SWIGUNUSED__attribute__ ((__unused__))
72# endif
73# elif defined(__ICC)
74# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
75# else
76# define SWIGUNUSED__attribute__ ((__unused__))
77# endif
78#endif
79
80#ifndef SWIG_MSC_UNSUPPRESS_4505
81# if defined(_MSC_VER)
82# pragma warning(disable : 4505) /* unreferenced local function has been removed */
83# endif
84#endif
85
86#ifndef SWIGUNUSEDPARM
87# ifdef __cplusplus199711L
88# define SWIGUNUSEDPARM(p)
89# else
90# define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__))
91# endif
92#endif
93
94/* internal SWIG method */
95#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
96# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
97#endif
98
99/* internal inline SWIG method */
100#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
101# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
102#endif
103
104/* exporting methods */
105#if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
106# ifndef GCC_HASCLASSVISIBILITY
107# define GCC_HASCLASSVISIBILITY
108# endif
109#endif
110
111#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
112# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
113# if defined(STATIC_LINKED)
114# define SWIGEXPORT__attribute__ ((visibility("default")))
115# else
116# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
117# endif
118# else
119# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
120# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
121# else
122# define SWIGEXPORT__attribute__ ((visibility("default")))
123# endif
124# endif
125#endif
126
127/* calling conventions for Windows */
128#ifndef SWIGSTDCALL
129# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
130# define SWIGSTDCALL __stdcall
131# else
132# define SWIGSTDCALL
133# endif
134#endif
135
136/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
137#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
138# define _CRT_SECURE_NO_DEPRECATE
139#endif
140
141/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
142#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
143# define _SCL_SECURE_NO_DEPRECATE
144#endif
145
146
147
148#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
149/* Use debug wrappers with the Python release dll */
150# undef _DEBUG
151# include <Python.h>
152# define _DEBUG
153#else
154# include <Python.h>
155#endif
156
157/* -----------------------------------------------------------------------------
158 * swigrun.swg
159 *
160 * This file contains generic C API SWIG runtime support for pointer
161 * type checking.
162 * ----------------------------------------------------------------------------- */
163
164/* This should only be incremented when either the layout of swig_type_info changes,
165 or for whatever reason, the runtime changes incompatibly */
166#define SWIG_RUNTIME_VERSION"4" "4"
167
168/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
169#ifdef SWIG_TYPE_TABLE
170# define SWIG_QUOTE_STRING(x) #x
171# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
172# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
173#else
174# define SWIG_TYPE_TABLE_NAME
175#endif
176
177/*
178 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
179 creating a static or dynamic library from the SWIG runtime code.
180 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
181
182 But only do this if strictly necessary, ie, if you have problems
183 with your compiler or suchlike.
184*/
185
186#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
187# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
188#endif
189
190#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
191# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
192#endif
193
194/* Generic buffer size */
195#ifndef SWIG_BUFFER_SIZE1024
196# define SWIG_BUFFER_SIZE1024 1024
197#endif
198
199/* Flags for pointer conversions */
200#define SWIG_POINTER_DISOWN0x1 0x1
201#define SWIG_CAST_NEW_MEMORY0x2 0x2
202
203/* Flags for new pointer objects */
204#define SWIG_POINTER_OWN0x1 0x1
205
206
207/*
208 Flags/methods for returning states.
209
210 The SWIG conversion methods, as ConvertPtr, return an integer
211 that tells if the conversion was successful or not. And if not,
212 an error code can be returned (see swigerrors.swg for the codes).
213
214 Use the following macros/flags to set or process the returning
215 states.
216
217 In old versions of SWIG, code such as the following was usually written:
218
219 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
220 // success code
221 } else {
222 //fail code
223 }
224
225 Now you can be more explicit:
226
227 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
228 if (SWIG_IsOK(res)) {
229 // success code
230 } else {
231 // fail code
232 }
233
234 which is the same really, but now you can also do
235
236 Type *ptr;
237 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
238 if (SWIG_IsOK(res)) {
239 // success code
240 if (SWIG_IsNewObj(res) {
241 ...
242 delete *ptr;
243 } else {
244 ...
245 }
246 } else {
247 // fail code
248 }
249
250 I.e., now SWIG_ConvertPtr can return new objects and you can
251 identify the case and take care of the deallocation. Of course that
252 also requires SWIG_ConvertPtr to return new result values, such as
253
254 int SWIG_ConvertPtr(obj, ptr,...) {
255 if (<obj is ok>) {
256 if (<need new object>) {
257 *ptr = <ptr to new allocated object>;
258 return SWIG_NEWOBJ;
259 } else {
260 *ptr = <ptr to old object>;
261 return SWIG_OLDOBJ;
262 }
263 } else {
264 return SWIG_BADOBJ;
265 }
266 }
267
268 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
269 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
270 SWIG errors code.
271
272 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
273 allows to return the 'cast rank', for example, if you have this
274
275 int food(double)
276 int fooi(int);
277
278 and you call
279
280 food(1) // cast rank '1' (1 -> 1.0)
281 fooi(1) // cast rank '0'
282
283 just use the SWIG_AddCast()/SWIG_CheckState()
284*/
285
286#define SWIG_OK(0) (0)
287#define SWIG_ERROR(-1) (-1)
288#define SWIG_IsOK(r)(r >= 0) (r >= 0)
289#define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5)
290
291/* The CastRankLimit says how many bits are used for the cast rank */
292#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
293/* The NewMask denotes the object was created (using new/malloc) */
294#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
295/* The TmpMask is for in/out typemaps that use temporal objects */
296#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
297/* Simple returning values */
298#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
299#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
300#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
301#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
302/* Check, add and del mask methods */
303#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
304#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
305#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
306#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
307#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
308#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
309
310/* Cast-Rank Mode */
311#if defined(SWIG_CASTRANK_MODE)
312# ifndef SWIG_TypeRank
313# define SWIG_TypeRank unsigned long
314# endif
315# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
316# define SWIG_MAXCASTRANK (2)
317# endif
318# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
319# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
320SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) {
321 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
322}
323SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
324 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
325}
326#else /* no cast-rank mode */
327# define SWIG_AddCast(r)(r) (r)
328# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
329#endif
330
331
332#include <string.h>
333
334#ifdef __cplusplus199711L
335extern "C" {
336#endif
337
338typedef void *(*swig_converter_func)(void *, int *);
339typedef struct swig_type_info *(*swig_dycast_func)(void **);
340
341/* Structure to store information on one type */
342typedef struct swig_type_info {
343 const char *name; /* mangled name of this type */
344 const char *str; /* human readable name of this type */
345 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
346 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
347 void *clientdata; /* language specific type data */
348 int owndata; /* flag if the structure owns the clientdata */
349} swig_type_info;
350
351/* Structure to store a type and conversion function used for casting */
352typedef struct swig_cast_info {
353 swig_type_info *type; /* pointer to type that is equivalent to this type */
354 swig_converter_func converter; /* function to cast the void pointers */
355 struct swig_cast_info *next; /* pointer to next cast in linked list */
356 struct swig_cast_info *prev; /* pointer to the previous cast */
357} swig_cast_info;
358
359/* Structure used to store module information
360 * Each module generates one structure like this, and the runtime collects
361 * all of these structures and stores them in a circularly linked list.*/
362typedef struct swig_module_info {
363 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
364 size_t size; /* Number of types in this module */
365 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
366 swig_type_info **type_initial; /* Array of initially generated type structures */
367 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
368 void *clientdata; /* Language specific module data */
369} swig_module_info;
370
371/*
372 Compare two type names skipping the space characters, therefore
373 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
374
375 Return 0 when the two name types are equivalent, as in
376 strncmp, but skipping ' '.
377*/
378SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
379SWIG_TypeNameComp(const char *f1, const char *l1,
380 const char *f2, const char *l2) {
381 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
382 while ((*f1 == ' ') && (f1 != l1)) ++f1;
383 while ((*f2 == ' ') && (f2 != l2)) ++f2;
384 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
385 }
386 return (int)((l1 - f1) - (l2 - f2));
387}
388
389/*
390 Check type equivalence in a name list like <name1>|<name2>|...
391 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
392*/
393SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
394SWIG_TypeCmp(const char *nb, const char *tb) {
395 int equiv = 1;
396 const char* te = tb + strlen(tb);
397 const char* ne = nb;
398 while (equiv != 0 && *ne) {
399 for (nb = ne; *ne; ++ne) {
400 if (*ne == '|') break;
401 }
402 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
403 if (*ne) ++ne;
404 }
405 return equiv;
406}
407
408/*
409 Check type equivalence in a name list like <name1>|<name2>|...
410 Return 0 if not equal, 1 if equal
411*/
412SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
413SWIG_TypeEquiv(const char *nb, const char *tb) {
414 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
415}
416
417/*
418 Check the typename
419*/
420SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
421SWIG_TypeCheck(const char *c, swig_type_info *ty) {
422 if (ty) {
423 swig_cast_info *iter = ty->cast;
424 while (iter) {
425 if (strcmp(iter->type->name, c) == 0) {
426 if (iter == ty->cast)
427 return iter;
428 /* Move iter to the top of the linked list */
429 iter->prev->next = iter->next;
430 if (iter->next)
431 iter->next->prev = iter->prev;
432 iter->next = ty->cast;
433 iter->prev = 0;
434 if (ty->cast) ty->cast->prev = iter;
435 ty->cast = iter;
436 return iter;
437 }
438 iter = iter->next;
439 }
440 }
441 return 0;
442}
443
444/*
445 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
446*/
447SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
448SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
449 if (ty) {
450 swig_cast_info *iter = ty->cast;
451 while (iter) {
452 if (iter->type == from) {
453 if (iter == ty->cast)
454 return iter;
455 /* Move iter to the top of the linked list */
456 iter->prev->next = iter->next;
457 if (iter->next)
458 iter->next->prev = iter->prev;
459 iter->next = ty->cast;
460 iter->prev = 0;
461 if (ty->cast) ty->cast->prev = iter;
462 ty->cast = iter;
463 return iter;
464 }
465 iter = iter->next;
466 }
467 }
468 return 0;
469}
470
471/*
472 Cast a pointer up an inheritance hierarchy
473*/
474SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
475SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
476 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
477}
478
479/*
480 Dynamic pointer casting. Down an inheritance hierarchy
481*/
482SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
483SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
484 swig_type_info *lastty = ty;
485 if (!ty || !ty->dcast) return ty;
486 while (ty && (ty->dcast)) {
487 ty = (*ty->dcast)(ptr);
488 if (ty) lastty = ty;
489 }
490 return lastty;
491}
492
493/*
494 Return the name associated with this type
495*/
496SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
497SWIG_TypeName(const swig_type_info *ty) {
498 return ty->name;
499}
500
501/*
502 Return the pretty name associated with this type,
503 that is an unmangled type name in a form presentable to the user.
504*/
505SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
506SWIG_TypePrettyName(const swig_type_info *type) {
507 /* The "str" field contains the equivalent pretty names of the
508 type, separated by vertical-bar characters. We choose
509 to print the last name, as it is often (?) the most
510 specific. */
511 if (!type) return NULL__null;
512 if (type->str != NULL__null) {
513 const char *last_name = type->str;
514 const char *s;
515 for (s = type->str; *s; s++)
516 if (*s == '|') last_name = s+1;
517 return last_name;
518 }
519 else
520 return type->name;
521}
522
523/*
524 Set the clientdata field for a type
525*/
526SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
527SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
528 swig_cast_info *cast = ti->cast;
529 /* if (ti->clientdata == clientdata) return; */
530 ti->clientdata = clientdata;
531
532 while (cast) {
533 if (!cast->converter) {
534 swig_type_info *tc = cast->type;
535 if (!tc->clientdata) {
536 SWIG_TypeClientData(tc, clientdata);
537 }
538 }
539 cast = cast->next;
540 }
541}
542SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
543SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
544 SWIG_TypeClientData(ti, clientdata);
545 ti->owndata = 1;
546}
547
548/*
549 Search for a swig_type_info structure only by mangled name
550 Search is a O(log #types)
551
552 We start searching at module start, and finish searching when start == end.
553 Note: if start == end at the beginning of the function, we go all the way around
554 the circular list.
555*/
556SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
557SWIG_MangledTypeQueryModule(swig_module_info *start,
558 swig_module_info *end,
559 const char *name) {
560 swig_module_info *iter = start;
561 do {
562 if (iter->size) {
563 register size_t l = 0;
564 register size_t r = iter->size - 1;
565 do {
566 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
567 register size_t i = (l + r) >> 1;
568 const char *iname = iter->types[i]->name;
569 if (iname) {
570 register int compare = strcmp(name, iname);
571 if (compare == 0) {
572 return iter->types[i];
573 } else if (compare < 0) {
574 if (i) {
575 r = i - 1;
576 } else {
577 break;
578 }
579 } else if (compare > 0) {
580 l = i + 1;
581 }
582 } else {
583 break; /* should never happen */
584 }
585 } while (l <= r);
586 }
587 iter = iter->next;
588 } while (iter != end);
589 return 0;
590}
591
592/*
593 Search for a swig_type_info structure for either a mangled name or a human readable name.
594 It first searches the mangled names of the types, which is a O(log #types)
595 If a type is not found it then searches the human readable names, which is O(#types).
596
597 We start searching at module start, and finish searching when start == end.
598 Note: if start == end at the beginning of the function, we go all the way around
599 the circular list.
600*/
601SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
602SWIG_TypeQueryModule(swig_module_info *start,
603 swig_module_info *end,
604 const char *name) {
605 /* STEP 1: Search the name field using binary search */
606 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
607 if (ret) {
608 return ret;
609 } else {
610 /* STEP 2: If the type hasn't been found, do a complete search
611 of the str field (the human readable name) */
612 swig_module_info *iter = start;
613 do {
614 register size_t i = 0;
615 for (; i < iter->size; ++i) {
616 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
617 return iter->types[i];
618 }
619 iter = iter->next;
620 } while (iter != end);
621 }
622
623 /* neither found a match */
624 return 0;
625}
626
627/*
628 Pack binary data into a string
629*/
630SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
631SWIG_PackData(char *c, void *ptr, size_t sz) {
632 static const char hex[17] = "0123456789abcdef";
633 register const unsigned char *u = (unsigned char *) ptr;
634 register const unsigned char *eu = u + sz;
635 for (; u != eu; ++u) {
636 register unsigned char uu = *u;
637 *(c++) = hex[(uu & 0xf0) >> 4];
638 *(c++) = hex[uu & 0xf];
639 }
640 return c;
641}
642
643/*
644 Unpack binary data from a string
645*/
646SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
647SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
648 register unsigned char *u = (unsigned char *) ptr;
649 register const unsigned char *eu = u + sz;
650 for (; u != eu; ++u) {
651 register char d = *(c++);
652 register unsigned char uu;
653 if ((d >= '0') && (d <= '9'))
654 uu = ((d - '0') << 4);
655 else if ((d >= 'a') && (d <= 'f'))
656 uu = ((d - ('a'-10)) << 4);
657 else
658 return (char *) 0;
659 d = *(c++);
660 if ((d >= '0') && (d <= '9'))
661 uu |= (d - '0');
662 else if ((d >= 'a') && (d <= 'f'))
663 uu |= (d - ('a'-10));
664 else
665 return (char *) 0;
666 *u = uu;
667 }
668 return c;
669}
670
671/*
672 Pack 'void *' into a string buffer.
673*/
674SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
675SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
676 char *r = buff;
677 if ((2*sizeof(void *) + 2) > bsz) return 0;
678 *(r++) = '_';
679 r = SWIG_PackData(r,&ptr,sizeof(void *));
680 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
681 strcpy(r,name);
682 return buff;
683}
684
685SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
686SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
687 if (*c != '_') {
688 if (strcmp(c,"NULL") == 0) {
689 *ptr = (void *) 0;
690 return name;
691 } else {
692 return 0;
693 }
694 }
695 return SWIG_UnpackData(++c,ptr,sizeof(void *));
696}
697
698SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
699SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
700 char *r = buff;
701 size_t lname = (name ? strlen(name) : 0);
702 if ((2*sz + 2 + lname) > bsz) return 0;
703 *(r++) = '_';
704 r = SWIG_PackData(r,ptr,sz);
705 if (lname) {
706 strncpy(r,name,lname+1);
707 } else {
708 *r = 0;
709 }
710 return buff;
711}
712
713SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
714SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
715 if (*c != '_') {
716 if (strcmp(c,"NULL") == 0) {
717 memset(ptr,0,sz);
718 return name;
719 } else {
720 return 0;
721 }
722 }
723 return SWIG_UnpackData(++c,ptr,sz);
724}
725
726#ifdef __cplusplus199711L
727}
728#endif
729
730/* Errors in SWIG */
731#define SWIG_UnknownError-1 -1
732#define SWIG_IOError-2 -2
733#define SWIG_RuntimeError-3 -3
734#define SWIG_IndexError-4 -4
735#define SWIG_TypeError-5 -5
736#define SWIG_DivisionByZero-6 -6
737#define SWIG_OverflowError-7 -7
738#define SWIG_SyntaxError-8 -8
739#define SWIG_ValueError-9 -9
740#define SWIG_SystemError-10 -10
741#define SWIG_AttributeError-11 -11
742#define SWIG_MemoryError-12 -12
743#define SWIG_NullReferenceError-13 -13
744
745
746
747/* Compatibility macros for Python 3 */
748#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
749
750#define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
751#define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0
)
PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<
24))) != 0)
752#define PyInt_AsLong(x) PyLong_AsLong(x)
753#define PyInt_FromLong(x) PyLong_FromLong(x)
754#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
755#define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
756#define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x)
757#define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args)
758#define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str)
759#define PyString_Size(str) PyBytes_SizePyString_Size(str)
760#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
761#define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10)
762#define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x)
763#define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
764
765#endif
766
767#ifndef Py_TYPE
768# define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type)
769#endif
770
771/* SWIG APIs for compatibility of both Python 2 & 3 */
772
773#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
774# define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat
775#else
776# define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat
777#endif
778
779
780/* Warning: This function will allocate a new string in Python 3,
781 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
782 */
783SWIGINTERNstatic __attribute__ ((__unused__)) char*
784SWIG_Python_str_AsChar(PyObject *str)
785{
786#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
787 char *cstr;
788 char *newstr;
789 Py_ssize_t len;
790 str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str);
791 PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len);
792 newstr = (char *) malloc(len+1);
793 memcpy(newstr, cstr, len+1);
794 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
795 return newstr;
796#else
797 return PyString_AsString(str);
798#endif
799}
800
801#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
802# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
803#else
804# define SWIG_Python_str_DelForPy3(x)
805#endif
806
807
808SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
809SWIG_Python_str_FromChar(const char *c)
810{
811#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
812 return PyUnicode_FromStringPyUnicodeUCS2_FromString(c);
813#else
814 return PyString_FromString(c);
815#endif
816}
817
818/* Add PyOS_snprintf for old Pythons */
819#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
820# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
821# define PyOS_snprintf _snprintf
822# else
823# define PyOS_snprintf snprintf
824# endif
825#endif
826
827/* A crude PyString_FromFormat implementation for old Pythons */
828#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
829
830#ifndef SWIG_PYBUFFER_SIZE
831# define SWIG_PYBUFFER_SIZE 1024
832#endif
833
834static PyObject *
835PyString_FromFormat(const char *fmt, ...) {
836 va_list ap;
837 char buf[SWIG_PYBUFFER_SIZE * 2];
838 int res;
839 va_start(ap, fmt)__builtin_va_start(ap, fmt);
840 res = vsnprintf(buf, sizeof(buf), fmt, ap);
841 va_end(ap)__builtin_va_end(ap);
842 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
843}
844#endif
845
846/* Add PyObject_Del for old Pythons */
847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x01060000
848# define PyObject_DelPyObject_Free(op) PyMem_DELfree((op))
849#endif
850#ifndef PyObject_DELPyObject_Free
851# define PyObject_DELPyObject_Free PyObject_DelPyObject_Free
852#endif
853
854/* A crude PyExc_StopIteration exception for old Pythons */
855#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
856# ifndef PyExc_StopIteration
857# define PyExc_StopIteration PyExc_RuntimeError
858# endif
859# ifndef PyObject_GenericGetAttr
860# define PyObject_GenericGetAttr 0
861# endif
862#endif
863
864/* Py_NotImplemented is defined in 2.1 and up. */
865#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
866# ifndef Py_NotImplemented(&_Py_NotImplementedStruct)
867# define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError
868# endif
869#endif
870
871/* A crude PyString_AsStringAndSize implementation for old Pythons */
872#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
873# ifndef PyString_AsStringAndSize
874# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
875# endif
876#endif
877
878/* PySequence_Size for old Pythons */
879#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02000000
880# ifndef PySequence_Size
881# define PySequence_Size PySequence_LengthPySequence_Size
882# endif
883#endif
884
885/* PyBool_FromLong for old Pythons */
886#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
887static
888PyObject *PyBool_FromLong(long ok)
889{
890 PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct);
891 Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++);
892 return result;
893}
894#endif
895
896/* Py_ssize_t for old Pythons */
897/* This code is as recommended by: */
898/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
899#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1))
900typedef int Py_ssize_t;
901# define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647
902# define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1)
903typedef inquiry lenfunc;
904typedef intargfunc ssizeargfunc;
905typedef intintargfunc ssizessizeargfunc;
906typedef intobjargproc ssizeobjargproc;
907typedef intintobjargproc ssizessizeobjargproc;
908typedef getreadbufferproc readbufferproc;
909typedef getwritebufferproc writebufferproc;
910typedef getsegcountproc segcountproc;
911typedef getcharbufferproc charbufferproc;
912static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
913{
914 long result = 0;
915 PyObject *i = PyNumber_Int(x);
916 if (i) {
917 result = PyInt_AsLong(i);
918 Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(i)))); } while (0)
;
919 }
920 return result;
921}
922#endif
923
924#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000
925#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
926#endif
927
928#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02040000
929#define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret
) return vret; } } while (0)
\
930 do { \
931 if (op) { \
932 int vret = visit((op), arg); \
933 if (vret) \
934 return vret; \
935 } \
936 } while (0)
937#endif
938
939#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
940typedef struct {
941 PyTypeObject type;
942 PyNumberMethods as_number;
943 PyMappingMethods as_mapping;
944 PySequenceMethods as_sequence;
945 PyBufferProcs as_buffer;
946 PyObject *name, *slots;
947} PyHeapTypeObject;
948#endif
949
950#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
951typedef destructor freefunc;
952#endif
953
954#if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \
955 (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \
956 (PY_MAJOR_VERSION2 > 3))
957# define SWIGPY_USE_CAPSULE
958# define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
959#endif
960
961#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03020000
962#define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type)
963#define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name)
964#endif
965
966/* -----------------------------------------------------------------------------
967 * error manipulation
968 * ----------------------------------------------------------------------------- */
969
970SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
971SWIG_Python_ErrorType(int code) {
972 PyObject* type = 0;
973 switch(code) {
974 case SWIG_MemoryError-12:
975 type = PyExc_MemoryError;
976 break;
977 case SWIG_IOError-2:
978 type = PyExc_IOError;
979 break;
980 case SWIG_RuntimeError-3:
981 type = PyExc_RuntimeError;
982 break;
983 case SWIG_IndexError-4:
984 type = PyExc_IndexError;
985 break;
986 case SWIG_TypeError-5:
987 type = PyExc_TypeError;
988 break;
989 case SWIG_DivisionByZero-6:
990 type = PyExc_ZeroDivisionError;
991 break;
992 case SWIG_OverflowError-7:
993 type = PyExc_OverflowError;
994 break;
995 case SWIG_SyntaxError-8:
996 type = PyExc_SyntaxError;
997 break;
998 case SWIG_ValueError-9:
999 type = PyExc_ValueError;
1000 break;
1001 case SWIG_SystemError-10:
1002 type = PyExc_SystemError;
1003 break;
1004 case SWIG_AttributeError-11:
1005 type = PyExc_AttributeError;
1006 break;
1007 default:
1008 type = PyExc_RuntimeError;
1009 }
1010 return type;
1011}
1012
1013
1014SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1015SWIG_Python_AddErrorMsg(const char* mesg)
1016{
1017 PyObject *type = 0;
1018 PyObject *value = 0;
1019 PyObject *traceback = 0;
1020
1021 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1022 if (value) {
1023 char *tmp;
1024 PyObject *old_str = PyObject_Str(value);
1025 PyErr_Clear();
1026 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
1027
1028 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1029 SWIG_Python_str_DelForPy3(tmp);
1030 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
1031 Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(value)))); } while (0)
;
1032 } else {
1033 PyErr_SetString(PyExc_RuntimeError, mesg);
1034 }
1035}
1036
1037#if defined(SWIG_PYTHON_NO_THREADS)
1038# if defined(SWIG_PYTHON_THREADS)
1039# undef SWIG_PYTHON_THREADS
1040# endif
1041#endif
1042#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1043# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1044# if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1045# define SWIG_PYTHON_USE_GIL
1046# endif
1047# endif
1048# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1049# ifndef SWIG_PYTHON_INITIALIZE_THREADS
1050# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1051# endif
1052# ifdef __cplusplus199711L /* C++ code */
1053 class SWIG_Python_Thread_Block {
1054 bool status;
1055 PyGILState_STATE state;
1056 public:
1057 void end() { if (status) { PyGILState_Release(state); status = false;} }
1058 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1059 ~SWIG_Python_Thread_Block() { end(); }
1060 };
1061 class SWIG_Python_Thread_Allow {
1062 bool status;
1063 PyThreadState *save;
1064 public:
1065 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1066 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1067 ~SWIG_Python_Thread_Allow() { end(); }
1068 };
1069# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1070# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1071# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1072# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1073# else /* C code */
1074# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1075# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1076# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1077# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1078# endif
1079# else /* Old thread way, not implemented, user must provide it */
1080# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1081# define SWIG_PYTHON_INITIALIZE_THREADS
1082# endif
1083# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1084# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1085# endif
1086# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1087# define SWIG_PYTHON_THREAD_END_BLOCK
1088# endif
1089# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1090# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1091# endif
1092# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1093# define SWIG_PYTHON_THREAD_END_ALLOW
1094# endif
1095# endif
1096#else /* No thread support */
1097# define SWIG_PYTHON_INITIALIZE_THREADS
1098# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1099# define SWIG_PYTHON_THREAD_END_BLOCK
1100# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1101# define SWIG_PYTHON_THREAD_END_ALLOW
1102#endif
1103
1104/* -----------------------------------------------------------------------------
1105 * Python API portion that goes into the runtime
1106 * ----------------------------------------------------------------------------- */
1107
1108#ifdef __cplusplus199711L
1109extern "C" {
1110#endif
1111
1112/* -----------------------------------------------------------------------------
1113 * Constant declarations
1114 * ----------------------------------------------------------------------------- */
1115
1116/* Constant Types */
1117#define SWIG_PY_POINTER4 4
1118#define SWIG_PY_BINARY5 5
1119
1120/* Constant information structure */
1121typedef struct swig_const_info {
1122 int type;
1123 char *name;
1124 long lvalue;
1125 double dvalue;
1126 void *pvalue;
1127 swig_type_info **ptype;
1128} swig_const_info;
1129
1130
1131/* -----------------------------------------------------------------------------
1132 * Wrapper of PyInstanceMethod_New() used in Python 3
1133 * It is exported to the generated module, used for -fastproxy
1134 * ----------------------------------------------------------------------------- */
1135#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1136SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1137{
1138 return PyInstanceMethod_New(func);
1139}
1140#else
1141SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1142{
1143 return NULL__null;
1144}
1145#endif
1146
1147#ifdef __cplusplus199711L
1148}
1149#endif
1150
1151
1152/* -----------------------------------------------------------------------------
1153 * pyrun.swg
1154 *
1155 * This file contains the runtime support for Python modules
1156 * and includes code for managing global variables and pointer
1157 * type checking.
1158 *
1159 * ----------------------------------------------------------------------------- */
1160
1161/* Common SWIG API */
1162
1163/* for raw pointers */
1164#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1165#define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1166#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1167
1168#ifdef SWIGPYTHON_BUILTIN
1169#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1170#else
1171#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1172#endif
1173
1174#define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1175
1176#define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1177#define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1178#define swig_owntypeint int
1179
1180/* for raw packed data */
1181#define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1182#define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1183
1184/* for class or struct pointers */
1185#define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1186#define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags)
1187
1188/* for C or C++ function pointers */
1189#define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1190#define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0)
1191
1192/* for C++ member pointers, ie, member methods */
1193#define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1194#define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1195
1196
1197/* Runtime API */
1198
1199#define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1200#define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer)
1201#define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj)
1202
1203#define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj
1204#define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg
1205#define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code)
1206#define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg)
1207#define SWIG_failgoto fail goto fail
1208
1209
1210/* Runtime API implementation */
1211
1212/* Error manipulation */
1213
1214SWIGINTERNstatic __attribute__ ((__unused__)) void
1215SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1216 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1217 PyErr_SetObject(errtype, obj);
1218 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1219 SWIG_PYTHON_THREAD_END_BLOCK;
1220}
1221
1222SWIGINTERNstatic __attribute__ ((__unused__)) void
1223SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1224 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1225 PyErr_SetString(errtype, msg);
1226 SWIG_PYTHON_THREAD_END_BLOCK;
1227}
1228
1229#define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1230
1231/* Set a constant value */
1232
1233#if defined(SWIGPYTHON_BUILTIN)
1234
1235SWIGINTERNstatic __attribute__ ((__unused__)) void
1236SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1237 PyObject *s = PyString_InternFromString(key);
1238 PyList_Append(seq, s);
1239 Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(s)))); } while (0)
;
1240}
1241
1242SWIGINTERNstatic __attribute__ ((__unused__)) void
1243SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1244#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1245 PyDict_SetItemString(d, (char *)name, obj);
1246#else
1247 PyDict_SetItemString(d, name, obj);
1248#endif
1249 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1250 if (public_interface)
1251 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1252}
1253
1254#else
1255
1256SWIGINTERNstatic __attribute__ ((__unused__)) void
1257SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1258#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1259 PyDict_SetItemString(d, (char *)name, obj);
1260#else
1261 PyDict_SetItemString(d, name, obj);
1262#endif
1263 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1264}
1265
1266#endif
1267
1268/* Append a value to the result obj */
1269
1270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1271SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1272#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1273 if (!result) {
1274 result = obj;
1275 } else if (result == Py_None(&_Py_NoneStruct)) {
1276 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1277 result = obj;
1278 } else {
1279 if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<25))) != 0)
) {
1280 PyObject *o2 = result;
1281 result = PyList_New(1);
1282 PyList_SetItem(result, 0, o2);
1283 }
1284 PyList_Append(result,obj);
1285 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1286 }
1287 return result;
1288#else
1289 PyObject* o2;
1290 PyObject* o3;
1291 if (!result) {
1292 result = obj;
1293 } else if (result == Py_None(&_Py_NoneStruct)) {
1294 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1295 result = obj;
1296 } else {
1297 if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<26))) != 0)
) {
1298 o2 = result;
1299 result = PyTuple_New(1);
1300 PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2);
1301 }
1302 o3 = PyTuple_New(1);
1303 PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj);
1304 o2 = result;
1305 result = PySequence_Concat(o2, o3);
1306 Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o2)))); } while (0)
;
1307 Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o3)))); } while (0)
;
1308 }
1309 return result;
1310#endif
1311}
1312
1313/* Unpack the argument tuple */
1314
1315SWIGINTERNstatic __attribute__ ((__unused__)) int
1316SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1317{
1318 if (!args) {
1319 if (!min && !max) {
1320 return 1;
1321 } else {
1322 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1323 name, (min == max ? "" : "at least "), (int)min);
1324 return 0;
1325 }
1326 }
1327 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) {
1328 if (min <= 1 && max >= 1) {
1329 register int i;
1330 objs[0] = args;
1331 for (i = 1; i < max; ++i) {
1332 objs[i] = 0;
1333 }
1334 return 2;
1335 }
1336 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1337 return 0;
1338 } else {
1339 register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size);
1340 if (l < min) {
1341 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1342 name, (min == max ? "" : "at least "), (int)min, (int)l);
1343 return 0;
1344 } else if (l > max) {
1345 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1346 name, (min == max ? "" : "at most "), (int)max, (int)l);
1347 return 0;
1348 } else {
1349 register int i;
1350 for (i = 0; i < l; ++i) {
1351 objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]);
1352 }
1353 for (; l < max; ++l) {
1354 objs[l] = 0;
1355 }
1356 return i + 1;
1357 }
1358 }
1359}
1360
1361/* A functor is a function object with one single object argument */
1362#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1363#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null);
1364#else
1365#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj);
1366#endif
1367
1368/*
1369 Helper for static pointer initialization for both C and C++ code, for example
1370 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1371*/
1372#ifdef __cplusplus199711L
1373#define SWIG_STATIC_POINTER(var)var var
1374#else
1375#define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var
1376#endif
1377
1378/* -----------------------------------------------------------------------------
1379 * Pointer declarations
1380 * ----------------------------------------------------------------------------- */
1381
1382/* Flags for new pointer objects */
1383#define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1)
1384#define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1)
1385
1386#define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1)
1387
1388#define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2)
1389#define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1)
1390
1391#ifdef __cplusplus199711L
1392extern "C" {
1393#endif
1394
1395/* How to access Py_None */
1396#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1397# ifndef SWIG_PYTHON_NO_BUILD_NONE
1398# ifndef SWIG_PYTHON_BUILD_NONE
1399# define SWIG_PYTHON_BUILD_NONE
1400# endif
1401# endif
1402#endif
1403
1404#ifdef SWIG_PYTHON_BUILD_NONE
1405# ifdef Py_None(&_Py_NoneStruct)
1406# undef Py_None(&_Py_NoneStruct)
1407# define Py_None(&_Py_NoneStruct) SWIG_Py_None()
1408# endif
1409SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1410_SWIG_Py_None(void)
1411{
1412 PyObject *none = Py_BuildValue((char*)"");
1413 Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(none)))); } while (0)
;
1414 return none;
1415}
1416SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1417SWIG_Py_None(void)
1418{
1419 static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None();
1420 return none;
1421}
1422#endif
1423
1424/* The python void return value */
1425
1426SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1427SWIG_Py_Void(void)
1428{
1429 PyObject *none = Py_None(&_Py_NoneStruct);
1430 Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++);
1431 return none;
1432}
1433
1434/* SwigPyClientData */
1435
1436typedef struct {
1437 PyObject *klass;
1438 PyObject *newraw;
1439 PyObject *newargs;
1440 PyObject *destroy;
1441 int delargs;
1442 int implicitconv;
1443 PyTypeObject *pytype;
1444} SwigPyClientData;
1445
1446SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1447SWIG_Python_CheckImplicit(swig_type_info *ty)
1448{
1449 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1450 return data ? data->implicitconv : 0;
1451}
1452
1453SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1454SWIG_Python_ExceptionType(swig_type_info *desc) {
1455 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1456 PyObject *klass = data ? data->klass : 0;
1457 return (klass ? klass : PyExc_RuntimeError);
1458}
1459
1460
1461SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1462SwigPyClientData_New(PyObject* obj)
1463{
1464 if (!obj) {
1465 return 0;
1466 } else {
1467 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1468 /* the klass element */
1469 data->klass = obj;
1470 Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++);
1471 /* the newraw method and newargs arguments used to create a new raw instance */
1472 if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) {
1473 data->newraw = 0;
1474 data->newargs = obj;
1475 Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++);
1476 } else {
1477#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1478 data->newraw = 0;
1479#else
1480 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1481#endif
1482 if (data->newraw) {
1483 Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++);
1484 data->newargs = PyTuple_New(1);
1485 PyTuple_SetItem(data->newargs, 0, obj);
1486 } else {
1487 data->newargs = obj;
1488 }
1489 Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++);
1490 }
1491 /* the destroy method, aka as the C++ delete method */
1492 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1493 if (PyErr_Occurred()) {
1494 PyErr_Clear();
1495 data->destroy = 0;
1496 }
1497 if (data->destroy) {
1498 int flags;
1499 Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++);
1500 flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags
)
;
1501#ifdef METH_O0x0008
1502 data->delargs = !(flags & (METH_O0x0008));
1503#else
1504 data->delargs = 0;
1505#endif
1506 } else {
1507 data->delargs = 0;
1508 }
1509 data->implicitconv = 0;
1510 data->pytype = 0;
1511 return data;
1512 }
1513}
1514
1515SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1516SwigPyClientData_Del(SwigPyClientData *data) {
1517 Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject
*)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newraw)))); } while (0);
} while (0)
;
1518 Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject
*)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newargs)))); } while (0)
; } while (0)
;
1519 Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject
*)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->destroy)))); } while (0)
; } while (0)
;
1520}
1521
1522/* =============== SwigPyObject =====================*/
1523
1524typedef struct {
1525 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1526 void *ptr;
1527 swig_type_info *ty;
1528 int own;
1529 PyObject *next;
1530#ifdef SWIGPYTHON_BUILTIN
1531 PyObject *dict;
1532#endif
1533} SwigPyObject;
1534
1535SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1536SwigPyObject_long(SwigPyObject *v)
1537{
1538 return PyLong_FromVoidPtr(v->ptr);
1539}
1540
1541SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1542SwigPyObject_format(const char* fmt, SwigPyObject *v)
1543{
1544 PyObject *res = NULL__null;
1545 PyObject *args = PyTuple_New(1);
1546 if (args) {
1547 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1548 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1549 if (ofmt) {
1550#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1551 res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args);
1552#else
1553 res = PyString_Format(ofmt,args);
1554#endif
1555 Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(ofmt)))); } while (0)
;
1556 }
1557 Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(args)))); } while (0)
;
1558 }
1559 }
1560 return res;
1561}
1562
1563SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1564SwigPyObject_oct(SwigPyObject *v)
1565{
1566 return SwigPyObject_format("%o",v);
1567}
1568
1569SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1570SwigPyObject_hex(SwigPyObject *v)
1571{
1572 return SwigPyObject_format("%x",v);
1573}
1574
1575SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1576#ifdef METH_NOARGS0x0004
1577SwigPyObject_repr(SwigPyObject *v)
1578#else
1579SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1580#endif
1581{
1582 const char *name = SWIG_TypePrettyName(v->ty);
1583 PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1584 if (v->next) {
1585# ifdef METH_NOARGS0x0004
1586 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1587# else
1588 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1589# endif
1590# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1591 PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep);
1592 Py_DecRef(repr);
1593 Py_DecRef(nrep);
1594 repr = joined;
1595# else
1596 PyString_ConcatAndDel(&repr,nrep);
1597# endif
1598 }
1599 return repr;
1600}
1601
1602SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1603SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1604{
1605 void *i = v->ptr;
1606 void *j = w->ptr;
1607 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1608}
1609
1610/* Added for Python 3.x, would it also be useful for Python 2.x? */
1611SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1612SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1613{
1614 PyObject* res;
1615 if( op != Py_EQ2 && op != Py_NE3 ) {
1616 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
1617 return Py_NotImplemented(&_Py_NotImplementedStruct);
1618 }
1619 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0);
1620 return res;
1621}
1622
1623
1624SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1625
1626#ifdef SWIGPYTHON_BUILTIN
1627static swig_type_info *SwigPyObject_stype = 0;
1628SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1629SwigPyObject_type(void) {
1630 SwigPyClientData *cd;
1631 assert(SwigPyObject_stype)((void)0);
1632 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1633 assert(cd)((void)0);
1634 assert(cd->pytype)((void)0);
1635 return cd->pytype;
1636}
1637#else
1638SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1639SwigPyObject_type(void) {
1640 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce();
1641 return type;
1642}
1643#endif
1644
1645SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1646SwigPyObject_Check(PyObject *op) {
1647#ifdef SWIGPYTHON_BUILTIN
1648 PyTypeObject *target_tp = SwigPyObject_type();
1649 if (PyType_IsSubtype(op->ob_type, target_tp))
1650 return 1;
1651 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1652#else
1653 return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type())
1654 || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0);
1655#endif
1656}
1657
1658SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1659SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1660
1661SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1662SwigPyObject_dealloc(PyObject *v)
1663{
1664 SwigPyObject *sobj = (SwigPyObject *) v;
1665 PyObject *next = sobj->next;
1666 if (sobj->own == SWIG_POINTER_OWN0x1) {
1667 swig_type_info *ty = sobj->ty;
1668 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1669 PyObject *destroy = data ? data->destroy : 0;
1670 if (destroy) {
1671 /* destroy is always a VARARGS method */
1672 PyObject *res;
1673 if (data->delargs) {
1674 /* we need to create a temporary object to carry the destroy operation */
1675 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1676 res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);;
1677 Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(tmp)))); } while (0)
;
1678 } else {
1679 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
1680 PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self);
1681 res = ((*meth)(mself, v));
1682 }
1683 Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(res)))); } while (0); } while (0)
;
1684 }
1685#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1686 else {
1687 const char *name = SWIG_TypePrettyName(ty);
1688 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1689 }
1690#endif
1691 }
1692 Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(next)))); } while (0); } while (0)
;
1693 PyObject_DELPyObject_Free(v);
1694}
1695
1696SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1697SwigPyObject_append(PyObject* v, PyObject* next)
1698{
1699 SwigPyObject *sobj = (SwigPyObject *) v;
1700#ifndef METH_O0x0008
1701 PyObject *tmp = 0;
1702 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null;
1703 next = tmp;
1704#endif
1705 if (!SwigPyObject_Check(next)) {
1706 return NULL__null;
1707 }
1708 sobj->next = next;
1709 Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++);
1710 return SWIG_Py_Void();
1711}
1712
1713SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1714#ifdef METH_NOARGS0x0004
1715SwigPyObject_next(PyObject* v)
1716#else
1717SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1718#endif
1719{
1720 SwigPyObject *sobj = (SwigPyObject *) v;
1721 if (sobj->next) {
1722 Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++);
1723 return sobj->next;
1724 } else {
1725 return SWIG_Py_Void();
1726 }
1727}
1728
1729SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1730#ifdef METH_NOARGS0x0004
1731SwigPyObject_disown(PyObject *v)
1732#else
1733SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1734#endif
1735{
1736 SwigPyObject *sobj = (SwigPyObject *)v;
1737 sobj->own = 0;
1738 return SWIG_Py_Void();
1739}
1740
1741SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1742#ifdef METH_NOARGS0x0004
1743SwigPyObject_acquire(PyObject *v)
1744#else
1745SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1746#endif
1747{
1748 SwigPyObject *sobj = (SwigPyObject *)v;
1749 sobj->own = SWIG_POINTER_OWN0x1;
1750 return SWIG_Py_Void();
1751}
1752
1753SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1754SwigPyObject_own(PyObject *v, PyObject *args)
1755{
1756 PyObject *val = 0;
1757#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1758 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1759#elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000)
1760 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1761#else
1762 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1763#endif
1764 {
1765 return NULL__null;
1766 }
1767 else
1768 {
1769 SwigPyObject *sobj = (SwigPyObject *)v;
1770 PyObject *obj = PyBool_FromLong(sobj->own);
1771 if (val) {
1772#ifdef METH_NOARGS0x0004
1773 if (PyObject_IsTrue(val)) {
1774 SwigPyObject_acquire(v);
1775 } else {
1776 SwigPyObject_disown(v);
1777 }
1778#else
1779 if (PyObject_IsTrue(val)) {
1780 SwigPyObject_acquire(v,args);
1781 } else {
1782 SwigPyObject_disown(v,args);
1783 }
1784#endif
1785 }
1786 return obj;
1787 }
1788}
1789
1790#ifdef METH_O0x0008
1791static PyMethodDef
1792swigobject_methods[] = {
1793 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"},
1794 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"},
1795 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1796 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"},
1797 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"},
1798 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"},
1799 {0, 0, 0, 0}
1800};
1801#else
1802static PyMethodDef
1803swigobject_methods[] = {
1804 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"},
1805 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"},
1806 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1807 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"},
1808 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"},
1809 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"},
1810 {0, 0, 0, 0}
1811};
1812#endif
1813
1814#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1816SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1817{
1818 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1819}
1820#endif
1821
1822SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1823SwigPyObject_TypeOnce(void) {
1824 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1825
1826 static PyNumberMethods SwigPyObject_as_number = {
1827 (binaryfunc)0, /*nb_add*/
1828 (binaryfunc)0, /*nb_subtract*/
1829 (binaryfunc)0, /*nb_multiply*/
1830 /* nb_divide removed in Python 3 */
1831#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1832 (binaryfunc)0, /*nb_divide*/
1833#endif
1834 (binaryfunc)0, /*nb_remainder*/
1835 (binaryfunc)0, /*nb_divmod*/
1836 (ternaryfunc)0,/*nb_power*/
1837 (unaryfunc)0, /*nb_negative*/
1838 (unaryfunc)0, /*nb_positive*/
1839 (unaryfunc)0, /*nb_absolute*/
1840 (inquiry)0, /*nb_nonzero*/
1841 0, /*nb_invert*/
1842 0, /*nb_lshift*/
1843 0, /*nb_rshift*/
1844 0, /*nb_and*/
1845 0, /*nb_xor*/
1846 0, /*nb_or*/
1847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1848 0, /*nb_coerce*/
1849#endif
1850 (unaryfunc)SwigPyObject_long, /*nb_int*/
1851#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1852 (unaryfunc)SwigPyObject_long, /*nb_long*/
1853#else
1854 0, /*nb_reserved*/
1855#endif
1856 (unaryfunc)0, /*nb_float*/
1857#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1858 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1859 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1860#endif
1861#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000 /* 3.0 */
1862 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1863#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000 /* 2.5.0 */
1864 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1865#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000 /* 2.2.0 */
1866 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1867#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02000000 /* 2.0.0 */
1868 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1869#endif
1870 };
1871
1872 static PyTypeObject swigpyobject_type;
1873 static int type_init = 0;
1874 if (!type_init) {
1875 const PyTypeObject tmp = {
1876 /* PyObject header changed in Python 3 */
1877#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1878 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
1879#else
1880 PyObject_HEAD_INIT(NULL)1, __null,
1881 0, /* ob_size */
1882#endif
1883 (char *)"SwigPyObject", /* tp_name */
1884 sizeof(SwigPyObject), /* tp_basicsize */
1885 0, /* tp_itemsize */
1886 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1887 0, /* tp_print */
1888#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1889 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1890#else
1891 (getattrfunc)0, /* tp_getattr */
1892#endif
1893 (setattrfunc)0, /* tp_setattr */
1894#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1895 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1896#else
1897 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1898#endif
1899 (reprfunc)SwigPyObject_repr, /* tp_repr */
1900 &SwigPyObject_as_number, /* tp_as_number */
1901 0, /* tp_as_sequence */
1902 0, /* tp_as_mapping */
1903 (hashfunc)0, /* tp_hash */
1904 (ternaryfunc)0, /* tp_call */
1905 0, /* tp_str */
1906 PyObject_GenericGetAttr, /* tp_getattro */
1907 0, /* tp_setattro */
1908 0, /* tp_as_buffer */
1909 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
1910 swigobject_doc, /* tp_doc */
1911 0, /* tp_traverse */
1912 0, /* tp_clear */
1913 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1914 0, /* tp_weaklistoffset */
1915#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1916 0, /* tp_iter */
1917 0, /* tp_iternext */
1918 swigobject_methods, /* tp_methods */
1919 0, /* tp_members */
1920 0, /* tp_getset */
1921 0, /* tp_base */
1922 0, /* tp_dict */
1923 0, /* tp_descr_get */
1924 0, /* tp_descr_set */
1925 0, /* tp_dictoffset */
1926 0, /* tp_init */
1927 0, /* tp_alloc */
1928 0, /* tp_new */
1929 0, /* tp_free */
1930 0, /* tp_is_gc */
1931 0, /* tp_bases */
1932 0, /* tp_mro */
1933 0, /* tp_cache */
1934 0, /* tp_subclasses */
1935 0, /* tp_weaklist */
1936#endif
1937#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
1938 0, /* tp_del */
1939#endif
1940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
1941 0, /* tp_version */
1942#endif
1943#ifdef COUNT_ALLOCS
1944 0,0,0,0 /* tp_alloc -> tp_next */
1945#endif
1946 };
1947 swigpyobject_type = tmp;
1948 type_init = 1;
1949#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1950 swigpyobject_type.ob_type = &PyType_Type;
1951#else
1952 if (PyType_Ready(&swigpyobject_type) < 0)
1953 return NULL__null;
1954#endif
1955 }
1956 return &swigpyobject_type;
1957}
1958
1959SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1960SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1961{
1962 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type
())) )
;
1963 if (sobj) {
1964 sobj->ptr = ptr;
1965 sobj->ty = ty;
1966 sobj->own = own;
1967 sobj->next = 0;
1968 }
1969 return (PyObject *)sobj;
1970}
1971
1972/* -----------------------------------------------------------------------------
1973 * Implements a simple Swig Packed type, and use it instead of string
1974 * ----------------------------------------------------------------------------- */
1975
1976typedef struct {
1977 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1978 void *pack;
1979 swig_type_info *ty;
1980 size_t size;
1981} SwigPyPacked;
1982
1983SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1984SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1985{
1986 char result[SWIG_BUFFER_SIZE1024];
1987 fputs("<Swig Packed ", fp);
1988 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1989 fputs("at ", fp);
1990 fputs(result, fp);
1991 }
1992 fputs(v->ty->name,fp);
1993 fputs(">", fp);
1994 return 0;
1995}
1996
1997SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1998SwigPyPacked_repr(SwigPyPacked *v)
1999{
2000 char result[SWIG_BUFFER_SIZE1024];
2001 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2002 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2003 } else {
2004 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name);
2005 }
2006}
2007
2008SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2009SwigPyPacked_str(SwigPyPacked *v)
2010{
2011 char result[SWIG_BUFFER_SIZE1024];
2012 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2013 return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name);
2014 } else {
2015 return SWIG_Python_str_FromChar(v->ty->name);
2016 }
2017}
2018
2019SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2020SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2021{
2022 size_t i = v->size;
2023 size_t j = w->size;
2024 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2025 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2026}
2027
2028SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2029
2030SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2031SwigPyPacked_type(void) {
2032 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce();
2033 return type;
2034}
2035
2036SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2037SwigPyPacked_Check(PyObject *op) {
2038 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2039 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2040}
2041
2042SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2043SwigPyPacked_dealloc(PyObject *v)
2044{
2045 if (SwigPyPacked_Check(v)) {
2046 SwigPyPacked *sobj = (SwigPyPacked *) v;
2047 free(sobj->pack);
2048 }
2049 PyObject_DELPyObject_Free(v);
2050}
2051
2052SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2053SwigPyPacked_TypeOnce(void) {
2054 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2055 static PyTypeObject swigpypacked_type;
2056 static int type_init = 0;
2057 if (!type_init) {
2058 const PyTypeObject tmp = {
2059 /* PyObject header changed in Python 3 */
2060#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2061 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
2062#else
2063 PyObject_HEAD_INIT(NULL)1, __null,
2064 0, /* ob_size */
2065#endif
2066 (char *)"SwigPyPacked", /* tp_name */
2067 sizeof(SwigPyPacked), /* tp_basicsize */
2068 0, /* tp_itemsize */
2069 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2070 (printfunc)SwigPyPacked_print, /* tp_print */
2071 (getattrfunc)0, /* tp_getattr */
2072 (setattrfunc)0, /* tp_setattr */
2073#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2074 0, /* tp_reserved in 3.0.1 */
2075#else
2076 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2077#endif
2078 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2079 0, /* tp_as_number */
2080 0, /* tp_as_sequence */
2081 0, /* tp_as_mapping */
2082 (hashfunc)0, /* tp_hash */
2083 (ternaryfunc)0, /* tp_call */
2084 (reprfunc)SwigPyPacked_str, /* tp_str */
2085 PyObject_GenericGetAttr, /* tp_getattro */
2086 0, /* tp_setattro */
2087 0, /* tp_as_buffer */
2088 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
2089 swigpacked_doc, /* tp_doc */
2090 0, /* tp_traverse */
2091 0, /* tp_clear */
2092 0, /* tp_richcompare */
2093 0, /* tp_weaklistoffset */
2094#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
2095 0, /* tp_iter */
2096 0, /* tp_iternext */
2097 0, /* tp_methods */
2098 0, /* tp_members */
2099 0, /* tp_getset */
2100 0, /* tp_base */
2101 0, /* tp_dict */
2102 0, /* tp_descr_get */
2103 0, /* tp_descr_set */
2104 0, /* tp_dictoffset */
2105 0, /* tp_init */
2106 0, /* tp_alloc */
2107 0, /* tp_new */
2108 0, /* tp_free */
2109 0, /* tp_is_gc */
2110 0, /* tp_bases */
2111 0, /* tp_mro */
2112 0, /* tp_cache */
2113 0, /* tp_subclasses */
2114 0, /* tp_weaklist */
2115#endif
2116#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
2117 0, /* tp_del */
2118#endif
2119#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
2120 0, /* tp_version */
2121#endif
2122#ifdef COUNT_ALLOCS
2123 0,0,0,0 /* tp_alloc -> tp_next */
2124#endif
2125 };
2126 swigpypacked_type = tmp;
2127 type_init = 1;
2128#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2129 swigpypacked_type.ob_type = &PyType_Type;
2130#else
2131 if (PyType_Ready(&swigpypacked_type) < 0)
2132 return NULL__null;
2133#endif
2134 }
2135 return &swigpypacked_type;
2136}
2137
2138SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2139SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2140{
2141 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type
())) )
;
2142 if (sobj) {
2143 void *pack = malloc(size);
2144 if (pack) {
2145 memcpy(pack, ptr, size);
2146 sobj->pack = pack;
2147 sobj->ty = ty;
2148 sobj->size = size;
2149 } else {
2150 PyObject_DELPyObject_Free((PyObject *) sobj);
2151 sobj = 0;
2152 }
2153 }
2154 return (PyObject *) sobj;
2155}
2156
2157SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2158SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2159{
2160 if (SwigPyPacked_Check(obj)) {
2161 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2162 if (sobj->size != size) return 0;
2163 memcpy(ptr, sobj->pack, size);
2164 return sobj->ty;
2165 } else {
2166 return 0;
2167 }
2168}
2169
2170/* -----------------------------------------------------------------------------
2171 * pointers/data manipulation
2172 * ----------------------------------------------------------------------------- */
2173
2174SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2175_SWIG_This(void)
2176{
2177 return SWIG_Python_str_FromChar("this");
2178}
2179
2180static PyObject *swig_this = NULL__null;
2181
2182SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2183SWIG_This(void)
2184{
2185 if (swig_this == NULL__null)
2186 swig_this = _SWIG_This();
2187 return swig_this;
2188}
2189
2190/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2191
2192/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2193#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2194#define SWIG_PYTHON_SLOW_GETSET_THIS
2195#endif
2196
2197SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2198SWIG_Python_GetSwigThis(PyObject *pyobj)
2199{
2200 PyObject *obj;
2201
2202 if (SwigPyObject_Check(pyobj))
2203 return (SwigPyObject *) pyobj;
2204
2205#ifdef SWIGPYTHON_BUILTIN
2206 (void)obj;
2207# ifdef PyWeakref_CheckProxy
2208 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2209 pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2210 if (pyobj && SwigPyObject_Check(pyobj))
2211 return (SwigPyObject*) pyobj;
2212 }
2213# endif
2214 return NULL__null;
2215#else
2216
2217 obj = 0;
2218
2219#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000))
2220 if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) {
2221 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2222 } else {
2223 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2224 if (dictptr != NULL__null) {
2225 PyObject *dict = *dictptr;
2226 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2227 } else {
2228#ifdef PyWeakref_CheckProxy
2229 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2230 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2231 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2232 }
2233#endif
2234 obj = PyObject_GetAttr(pyobj,SWIG_This());
2235 if (obj) {
2236 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2237 } else {
2238 if (PyErr_Occurred()) PyErr_Clear();
2239 return 0;
2240 }
2241 }
2242 }
2243#else
2244 obj = PyObject_GetAttr(pyobj,SWIG_This());
2245 if (obj) {
2246 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2247 } else {
2248 if (PyErr_Occurred()) PyErr_Clear();
2249 return 0;
2250 }
2251#endif
2252 if (obj && !SwigPyObject_Check(obj)) {
2253 /* a PyObject is called 'this', try to get the 'real this'
2254 SwigPyObject from it */
2255 return SWIG_Python_GetSwigThis(obj);
2256 }
2257 return (SwigPyObject *)obj;
2258#endif
2259}
2260
2261/* Acquire a pointer value */
2262
2263SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2264SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2265 if (own == SWIG_POINTER_OWN0x1) {
2266 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2267 if (sobj) {
2268 int oldown = sobj->own;
2269 sobj->own = own;
2270 return oldown;
2271 }
2272 }
2273 return 0;
2274}
2275
2276/* Convert a pointer value */
2277
2278SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2279SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2280 int res;
2281 SwigPyObject *sobj;
2282 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0;
2283
2284 if (!obj)
2285 return SWIG_ERROR(-1);
2286 if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) {
2287 if (ptr)
2288 *ptr = 0;
2289 return SWIG_OK(0);
2290 }
2291
2292 res = SWIG_ERROR(-1);
2293
2294 sobj = SWIG_Python_GetSwigThis(obj);
2295 if (own)
2296 *own = 0;
2297 while (sobj) {
2298 void *vptr = sobj->ptr;
2299 if (ty) {
2300 swig_type_info *to = sobj->ty;
2301 if (to == ty) {
2302 /* no type cast needed */
2303 if (ptr) *ptr = vptr;
2304 break;
2305 } else {
2306 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2307 if (!tc) {
2308 sobj = (SwigPyObject *)sobj->next;
2309 } else {
2310 if (ptr) {
2311 int newmemory = 0;
2312 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2313 if (newmemory == SWIG_CAST_NEW_MEMORY0x2) {
2314 assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2315 if (own)
2316 *own = *own | SWIG_CAST_NEW_MEMORY0x2;
2317 }
2318 }
2319 break;
2320 }
2321 }
2322 } else {
2323 if (ptr) *ptr = vptr;
2324 break;
2325 }
2326 }
2327 if (sobj) {
2328 if (own)
2329 *own = *own | sobj->own;
2330 if (flags & SWIG_POINTER_DISOWN0x1) {
2331 sobj->own = 0;
2332 }
2333 res = SWIG_OK(0);
2334 } else {
2335 if (implicit_conv) {
2336 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2337 if (data && !data->implicitconv) {
2338 PyObject *klass = data->klass;
2339 if (klass) {
2340 PyObject *impconv;
2341 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2342 impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);;
2343 data->implicitconv = 0;
2344 if (PyErr_Occurred()) {
2345 PyErr_Clear();
2346 impconv = 0;
2347 }
2348 if (impconv) {
2349 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2350 if (iobj) {
2351 void *vptr;
2352 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2353 if (SWIG_IsOK(res)(res >= 0)) {
2354 if (ptr) {
2355 *ptr = vptr;
2356 /* transfer the ownership to 'ptr' */
2357 iobj->own = 0;
2358 res = SWIG_AddCast(res)(res);
2359 res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res);
2360 } else {
2361 res = SWIG_AddCast(res)(res);
2362 }
2363 }
2364 }
2365 Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(impconv)))); } while (0)
;
2366 }
2367 }
2368 }
2369 }
2370 if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) {
2371 if (ptr)
2372 *ptr = 0;
2373 if (PyErr_Occurred())
2374 PyErr_Clear();
2375 res = SWIG_OK(0);
2376 }
2377 }
2378 return res;
2379}
2380
2381/* Convert a function ptr value */
2382
2383SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2384SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2385 if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
2386 return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
2387 } else {
2388 void *vptr = 0;
2389
2390 /* here we get the method pointer for callbacks */
2391 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2392 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2393 if (desc)
2394 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2395 if (!desc)
2396 return SWIG_ERROR(-1);
2397 if (ty) {
2398 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2399 if (tc) {
2400 int newmemory = 0;
2401 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2402 assert(!newmemory)((void)0); /* newmemory handling not yet implemented */
2403 } else {
2404 return SWIG_ERROR(-1);
2405 }
2406 } else {
2407 *ptr = vptr;
2408 }
2409 return SWIG_OK(0);
2410 }
2411}
2412
2413/* Convert a packed value value */
2414
2415SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2416SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2417 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2418 if (!to) return SWIG_ERROR(-1);
2419 if (ty) {
2420 if (to != ty) {
2421 /* check type cast? */
2422 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2423 if (!tc) return SWIG_ERROR(-1);
2424 }
2425 }
2426 return SWIG_OK(0);
2427}
2428
2429/* -----------------------------------------------------------------------------
2430 * Create a new pointer object
2431 * ----------------------------------------------------------------------------- */
2432
2433/*
2434 Create a new instance object, without calling __init__, and set the
2435 'this' attribute.
2436*/
2437
2438SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2439SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2440{
2441#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000)
2442 PyObject *inst = 0;
2443 PyObject *newraw = data->newraw;
2444 if (newraw) {
2445 inst = PyObject_Call(newraw, data->newargs, NULL__null);
2446 if (inst) {
2447#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2448 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2449 if (dictptr != NULL__null) {
2450 PyObject *dict = *dictptr;
2451 if (dict == NULL__null) {
2452 dict = PyDict_New();
2453 *dictptr = dict;
2454 PyDict_SetItem(dict, SWIG_This(), swig_this);
2455 }
2456 }
2457#else
2458 PyObject *key = SWIG_This();
2459 PyObject_SetAttr(inst, key, swig_this);
2460#endif
2461 }
2462 } else {
2463#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2464 inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct));
2465 if (inst) {
2466 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2467 Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19);
2468 }
2469#else
2470 PyObject *dict = PyDict_New();
2471 if (dict) {
2472 PyDict_SetItem(dict, SWIG_This(), swig_this);
2473 inst = PyInstance_NewRaw(data->newargs, dict);
2474 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2475 }
2476#endif
2477 }
2478 return inst;
2479#else
2480#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02010000)
2481 PyObject *inst = 0;
2482 PyObject *dict = PyDict_New();
2483 if (dict) {
2484 PyDict_SetItem(dict, SWIG_This(), swig_this);
2485 inst = PyInstance_NewRaw(data->newargs, dict);
2486 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2487 }
2488 return (PyObject *) inst;
2489#else
2490 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type
)) )
;
2491 if (inst == NULL__null) {
2492 return NULL__null;
2493 }
2494 inst->in_class = (PyClassObject *)data->newargs;
2495 Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++);
2496 inst->in_dict = PyDict_New();
2497 if (inst->in_dict == NULL__null) {
2498 Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(inst)))); } while (0)
;
2499 return NULL__null;
2500 }
2501#ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6)
2502 inst->in_weakreflist = NULL__null;
2503#endif
2504#ifdef Py_TPFLAGS_GC0
2505 PyObject_GC_Init(inst);
2506#endif
2507 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2508 return (PyObject *) inst;
2509#endif
2510#endif
2511}
2512
2513SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2514SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2515{
2516 PyObject *dict;
2517#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2518 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2519 if (dictptr != NULL__null) {
2520 dict = *dictptr;
2521 if (dict == NULL__null) {
2522 dict = PyDict_New();
2523 *dictptr = dict;
2524 }
2525 PyDict_SetItem(dict, SWIG_This(), swig_this);
2526 return;
2527 }
2528#endif
2529 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2530 PyDict_SetItem(dict, SWIG_This(), swig_this);
2531 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2532}
2533
2534
2535SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2536SWIG_Python_InitShadowInstance(PyObject *args) {
2537 PyObject *obj[2];
2538 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2539 return NULL__null;
2540 } else {
2541 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2542 if (sthis) {
2543 SwigPyObject_append((PyObject*) sthis, obj[1]);
2544 } else {
2545 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2546 }
2547 return SWIG_Py_Void();
2548 }
2549}
2550
2551/* Create a new pointer object */
2552
2553SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2554SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2555 SwigPyClientData *clientdata;
2556 PyObject * robj;
2557 int own;
2558
2559 if (!ptr)
2560 return SWIG_Py_Void();
2561
2562 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2563 own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0;
2564 if (clientdata && clientdata->pytype) {
2565 SwigPyObject *newobj;
2566 if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) {
2567 newobj = (SwigPyObject*) self;
2568 if (newobj->ptr) {
2569 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2570 while (newobj->next)
2571 newobj = (SwigPyObject *) newobj->next;
2572 newobj->next = next_self;
2573 newobj = (SwigPyObject *)next_self;
2574 }
2575 } else {
2576 newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) );
2577 }
2578 if (newobj) {
2579 newobj->ptr = ptr;
2580 newobj->ty = type;
2581 newobj->own = own;
2582 newobj->next = 0;
2583#ifdef SWIGPYTHON_BUILTIN
2584 newobj->dict = 0;
2585#endif
2586 return (PyObject*) newobj;
2587 }
2588 return SWIG_Py_Void();
2589 }
2590
2591 assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0);
2592
2593 robj = SwigPyObject_New(ptr, type, own);
2594 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) {
2595 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2596 Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(robj)))); } while (0)
;
2597 robj = inst;
2598 }
2599 return robj;
2600}
2601
2602/* Create a new packed object */
2603
2604SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2605SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2606 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2607}
2608
2609/* -----------------------------------------------------------------------------*
2610 * Get type list
2611 * -----------------------------------------------------------------------------*/
2612
2613#ifdef SWIG_LINK_RUNTIME
2614void *SWIG_ReturnGlobalTypeList(void *);
2615#endif
2616
2617SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2618SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2619 static void *type_pointer = (void *)0;
2620 /* first check if module already created */
2621 if (!type_pointer) {
2622#ifdef SWIG_LINK_RUNTIME
2623 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2624#else
2625# ifdef SWIGPY_USE_CAPSULE
2626 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0);
2627# else
2628 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4",
2629 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2630# endif
2631 if (PyErr_Occurred()) {
2632 PyErr_Clear();
2633 type_pointer = (void *)0;
2634 }
2635#endif
2636 }
2637 return (swig_module_info *) type_pointer;
2638}
2639
2640#if PY_MAJOR_VERSION2 < 2
2641/* PyModule_AddObject function was introduced in Python 2.0. The following function
2642 is copied out of Python/modsupport.c in python version 2.3.4 */
2643SWIGINTERNstatic __attribute__ ((__unused__)) int
2644PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2645{
2646 PyObject *dict;
2647 if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype
((((PyObject*)(m))->ob_type), (&PyModule_Type)))
) {
2648 PyErr_SetString(PyExc_TypeError,
2649 "PyModule_AddObject() needs module as first arg");
2650 return SWIG_ERROR(-1);
2651 }
2652 if (!o) {
2653 PyErr_SetString(PyExc_TypeError,
2654 "PyModule_AddObject() needs non-NULL value");
2655 return SWIG_ERROR(-1);
2656 }
2657
2658 dict = PyModule_GetDict(m);
2659 if (dict == NULL__null) {
2660 /* Internal error -- modules must have a dict! */
2661 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2662 PyModule_GetName(m));
2663 return SWIG_ERROR(-1);
2664 }
2665 if (PyDict_SetItemString(dict, name, o))
2666 return SWIG_ERROR(-1);
2667 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
2668 return SWIG_OK(0);
2669}
2670#endif
2671
2672SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2673#ifdef SWIGPY_USE_CAPSULE
2674SWIG_Python_DestroyModule(PyObject *obj)
2675#else
2676SWIG_Python_DestroyModule(void *vptr)
2677#endif
2678{
2679#ifdef SWIGPY_USE_CAPSULE
2680 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ));
2681#else
2682 swig_module_info *swig_module = (swig_module_info *) vptr;
2683#endif
2684 swig_type_info **types = swig_module->types;
2685 size_t i;
2686 for (i =0; i < swig_module->size; ++i) {
2687 swig_type_info *ty = types[i];
2688 if (ty->owndata) {
2689 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2690 if (data) SwigPyClientData_Del(data);
2691 }
2692 }
2693 Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)->
tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while
(0)
;
2694 swig_this = NULL__null;
2695}
2696
2697SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2698SWIG_Python_SetModule(swig_module_info *swig_module) {
2699#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2700 /* Add a dummy module object into sys.modules */
2701 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4");
2702#else
2703 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */
2704 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table
, (char *)__null, (PyObject *)__null, 1013)
;
2705#endif
2706#ifdef SWIGPY_USE_CAPSULE
2707 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule);
2708 if (pointer && module) {
2709 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2710 } else {
2711 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2712 }
2713#else
2714 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2715 if (pointer && module) {
2716 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2717 } else {
2718 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2719 }
2720#endif
2721}
2722
2723/* The python cached type query */
2724SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2725SWIG_Python_TypeCache(void) {
2726 static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New();
2727 return cache;
2728}
2729
2730SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2731SWIG_Python_TypeQuery(const char *type)
2732{
2733 PyObject *cache = SWIG_Python_TypeCache();
2734 PyObject *key = SWIG_Python_str_FromChar(type);
2735 PyObject *obj = PyDict_GetItem(cache, key);
2736 swig_type_info *descriptor;
2737 if (obj) {
2738#ifdef SWIGPY_USE_CAPSULE
2739 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null);
2740#else
2741 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2742#endif
2743 } else {
2744 swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0);
2745 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2746 if (descriptor) {
2747#ifdef SWIGPY_USE_CAPSULE
2748 obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null);
2749#else
2750 obj = PyCObject_FromVoidPtr(descriptor, NULL__null);
2751#endif
2752 PyDict_SetItem(cache, key, obj);
2753 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2754 }
2755 }
2756 Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(key)))); } while (0)
;
2757 return descriptor;
2758}
2759
2760/*
2761 For backward compatibility only
2762*/
2763#define SWIG_POINTER_EXCEPTION0 0
2764#define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg)
2765#define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2766
2767SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2768SWIG_Python_AddErrMesg(const char* mesg, int infront)
2769{
2770 if (PyErr_Occurred()) {
2771 PyObject *type = 0;
2772 PyObject *value = 0;
2773 PyObject *traceback = 0;
2774 PyErr_Fetch(&type, &value, &traceback);
2775 if (value) {
2776 char *tmp;
2777 PyObject *old_str = PyObject_Str(value);
2778 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
2779 PyErr_Clear();
2780 if (infront) {
2781 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2782 } else {
2783 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2784 }
2785 SWIG_Python_str_DelForPy3(tmp);
2786 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
2787 }
2788 return 1;
2789 } else {
2790 return 0;
2791 }
2792}
2793
2794SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2795SWIG_Python_ArgFail(int argnum)
2796{
2797 if (PyErr_Occurred()) {
2798 /* add information about failing argument */
2799 char mesg[256];
2800 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2801 return SWIG_Python_AddErrMesg(mesg, 1);
2802 } else {
2803 return 0;
2804 }
2805}
2806
2807SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2808SwigPyObject_GetDesc(PyObject *self)
2809{
2810 SwigPyObject *v = (SwigPyObject *)self;
2811 swig_type_info *ty = v ? v->ty : 0;
2812 return ty ? ty->str : "";
2813}
2814
2815SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2816SWIG_Python_TypeError(const char *type, PyObject *obj)
2817{
2818 if (type) {
2819#if defined(SWIG_COBJECT_TYPES)
2820 if (obj && SwigPyObject_Check(obj)) {
2821 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2822 if (otype) {
2823 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2824 type, otype);
2825 return;
2826 }
2827 } else
2828#endif
2829 {
2830 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2831 if (otype) {
2832 PyObject *str = PyObject_Str(obj);
2833 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2834 if (cstr) {
2835 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2836 type, otype, cstr);
2837 SWIG_Python_str_DelForPy3(cstr);
2838 } else {
2839 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2840 type, otype);
2841 }
2842 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
2843 return;
2844 }
2845 }
2846 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2847 } else {
2848 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2849 }
2850}
2851
2852
2853/* Convert a pointer value, signal an exception on a type mismatch */
2854SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2855SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2856 void *result;
2857 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
2858 PyErr_Clear();
2859#if SWIG_POINTER_EXCEPTION0
2860 if (flags) {
2861 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2862 SWIG_Python_ArgFail(argnum);
2863 }
2864#endif
2865 }
2866 return result;
2867}
2868
2869#ifdef SWIGPYTHON_BUILTIN
2870SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2871SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2872 PyTypeObject *tp = obj->ob_type;
2873 PyObject *descr;
2874 PyObject *encoded_name;
2875 descrsetfunc f;
2876 int res = -1;
2877
2878# ifdef Py_USING_UNICODE1
2879 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2880 name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null);
2881 if (!name)
2882 return -1;
2883 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<28))) != 0)
)
2884# else
2885 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
)
2886# endif
2887 {
2888 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2889 return -1;
2890 } else {
2891 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2892 }
2893
2894 if (!tp->tp_dict) {
2895 if (PyType_Ready(tp) < 0)
2896 goto done;
2897 }
2898
2899 descr = _PyType_Lookup(tp, name);
2900 f = NULL__null;
2901 if (descr != NULL__null)
2902 f = descr->ob_type->tp_descr_set;
2903 if (!f) {
2904 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2905 encoded_name = name;
2906 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2907 } else {
2908 encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name);
2909 }
2910 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2911 Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(encoded_name))));
} while (0)
;
2912 } else {
2913 res = f(descr, obj, value);
2914 }
2915
2916 done:
2917 Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(name)))); } while (0)
;
2918 return res;
2919}
2920#endif
2921
2922
2923#ifdef __cplusplus199711L
2924}
2925#endif
2926
2927
2928
2929#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
2930
2931#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
2932
2933
2934
2935 #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail;; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0)
2936
2937
2938/* -------- TYPES TABLE (BEGIN) -------- */
2939
2940#define SWIGTYPE_p_GBaseswig_types[0] swig_types[0]
2941#define SWIGTYPE_p_GMatrixswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GMatrixBaseswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_GMatrixSparseswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_GMatrixSymmetricswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_GVectorswig_types[5] swig_types[5]
2946#define SWIGTYPE_p_charswig_types[6] swig_types[6]
2947#define SWIGTYPE_p_doubleswig_types[7] swig_types[7]
2948#define SWIGTYPE_p_intswig_types[8] swig_types[8]
2949#define SWIGTYPE_p_std__invalid_argumentswig_types[9] swig_types[9]
2950#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[10] swig_types[10]
2951static swig_type_info *swig_types[12];
2952static swig_module_info swig_module = {swig_types, 11, 0, 0, 0, 0};
2953#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2954#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2955
2956/* -------- TYPES TABLE (END) -------- */
2957
2958#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2959# if !defined(SWIG_PYTHON_CLASSIC)
2960# error "This python version requires swig to be run with the '-classic' option"
2961# endif
2962#endif
2963
2964/*-----------------------------------------------
2965 @(target):= _linalg.so
2966 ------------------------------------------------*/
2967#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2968# define SWIG_initinit_linalg PyInit__linalg
2969
2970#else
2971# define SWIG_initinit_linalg init_linalg
2972
2973#endif
2974#define SWIG_name"_linalg" "_linalg"
2975
2976#define SWIGVERSION0x020011 0x020011
2977#define SWIG_VERSION0x020011 SWIGVERSION0x020011
2978
2979
2980#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
2981#define SWIG_as_voidptrptr(a)((void)const_cast< void * >(static_cast< const void *
>(*a)),reinterpret_cast< void** >(a))
((void)SWIG_as_voidptr(*a)const_cast< void * >(static_cast< const void * >(
*a))
,reinterpret_cast< void** >(a))
2982
2983
2984#include <stdexcept>
2985
2986
2987namespace swig {
2988 class SwigPtr_PyObject {
2989 protected:
2990 PyObject *_obj;
2991
2992 public:
2993 SwigPtr_PyObject() :_obj(0)
2994 {
2995 }
2996
2997 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
2998 {
2999 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3000 }
3001
3002 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3003 {
3004 if (initial_ref) {
3005 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3006 }
3007 }
3008
3009 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3010 {
3011 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3012 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3013 _obj = item._obj;
3014 return *this;
3015 }
3016
3017 ~SwigPtr_PyObject()
3018 {
3019 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3020 }
3021
3022 operator PyObject *() const
3023 {
3024 return _obj;
3025 }
3026
3027 PyObject *operator->() const
3028 {
3029 return _obj;
3030 }
3031 };
3032}
3033
3034
3035namespace swig {
3036 struct SwigVar_PyObject : SwigPtr_PyObject {
3037 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3038
3039 SwigVar_PyObject & operator = (PyObject* obj)
3040 {
3041 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3042 _obj = obj;
3043 return *this;
3044 }
3045 };
3046}
3047
3048
3049#include <stddef.h>
3050#include "GException.hpp"
3051#include "GTools.hpp"
3052
3053
3054#include <stdexcept>
3055
3056
3057#if defined(__GNUC__4)
3058# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3059# define SWIG_STD_NOMODERN_STL
3060# endif
3061#endif
3062
3063
3064#include <string>
3065#include <stdexcept>
3066#include <stddef.h>
3067
3068
3069#include <string>
3070
3071
3072#include <iostream>
3073
3074#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3075# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3076#else
3077# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3078#endif
3079
3080
3081 #include <stddef.h>
3082
3083
3084namespace swig {
3085 struct stop_iteration {
3086 };
3087
3088 struct SwigPyIterator {
3089 private:
3090 SwigPtr_PyObject _seq;
3091
3092 protected:
3093 SwigPyIterator(PyObject *seq) : _seq(seq)
3094 {
3095 }
3096
3097 public:
3098 virtual ~SwigPyIterator() {}
3099
3100 // Access iterator method, required by Python
3101 virtual PyObject *value() const = 0;
3102
3103 // Forward iterator method, required by Python
3104 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3105
3106 // Backward iterator method, very common in C++, but not required in Python
3107 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3108 {
3109 throw stop_iteration();
3110 }
3111
3112 // Random access iterator methods, but not required in Python
3113 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3114 {
3115 throw std::invalid_argument("operation not supported");
3116 }
3117
3118 virtual bool equal (const SwigPyIterator &/*x*/) const
3119 {
3120 throw std::invalid_argument("operation not supported");
3121 }
3122
3123 // C++ common/needed methods
3124 virtual SwigPyIterator *copy() const = 0;
3125
3126 PyObject *next()
3127 {
3128 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3129 PyObject *obj = value();
3130 incr();
3131 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3132 return obj;
3133 }
3134
3135 /* Make an alias for Python 3.x */
3136 PyObject *__next__()
3137 {
3138 return next();
3139 }
3140
3141 PyObject *previous()
3142 {
3143 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3144 decr();
3145 PyObject *obj = value();
3146 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3147 return obj;
3148 }
3149
3150 SwigPyIterator *advance(ptrdiff_t n)
3151 {
3152 return (n > 0) ? incr(n) : decr(-n);
3153 }
3154
3155 bool operator == (const SwigPyIterator& x) const
3156 {
3157 return equal(x);
3158 }
3159
3160 bool operator != (const SwigPyIterator& x) const
3161 {
3162 return ! operator==(x);
3163 }
3164
3165 SwigPyIterator& operator += (ptrdiff_t n)
3166 {
3167 return *advance(n);
3168 }
3169
3170 SwigPyIterator& operator -= (ptrdiff_t n)
3171 {
3172 return *advance(-n);
3173 }
3174
3175 SwigPyIterator* operator + (ptrdiff_t n) const
3176 {
3177 return copy()->advance(n);
3178 }
3179
3180 SwigPyIterator* operator - (ptrdiff_t n) const
3181 {
3182 return copy()->advance(-n);
3183 }
3184
3185 ptrdiff_t operator - (const SwigPyIterator& x) const
3186 {
3187 return x.distance(*this);
3188 }
3189
3190 static swig_type_info* descriptor() {
3191 static int init = 0;
3192 static swig_type_info* desc = 0;
3193 if (!init) {
3194 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3195 init = 1;
3196 }
3197 return desc;
3198 }
3199 };
3200
3201#if defined(SWIGPYTHON_BUILTIN)
3202 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3203 {
3204 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3205 return pyself;
3206 }
3207#endif
3208}
3209
3210
3211SWIGINTERNstatic __attribute__ ((__unused__)) int
3212SWIG_AsVal_double (PyObject *obj, double *val)
3213{
3214 int res = SWIG_TypeError-5;
3215 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3216 if (val) *val = PyFloat_AsDouble(obj);
3217 return SWIG_OK(0);
3218 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3219 if (val) *val = PyInt_AsLong(obj);
3220 return SWIG_OK(0);
3221 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3222 double v = PyLong_AsDouble(obj);
3223 if (!PyErr_Occurred()) {
3224 if (val) *val = v;
3225 return SWIG_OK(0);
3226 } else {
3227 PyErr_Clear();
3228 }
3229 }
3230#ifdef SWIG_PYTHON_CAST_MODE
3231 {
3232 int dispatch = 0;
3233 double d = PyFloat_AsDouble(obj);
3234 if (!PyErr_Occurred()) {
3235 if (val) *val = d;
3236 return SWIG_AddCast(SWIG_OK)((0));
3237 } else {
3238 PyErr_Clear();
3239 }
3240 if (!dispatch) {
3241 long v = PyLong_AsLong(obj);
3242 if (!PyErr_Occurred()) {
3243 if (val) *val = v;
3244 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3245 } else {
3246 PyErr_Clear();
3247 }
3248 }
3249 }
3250#endif
3251 return res;
3252}
3253
3254
3255#include <float.h>
3256
3257
3258#include <math.h>
3259
3260
3261SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3262SWIG_CanCastAsInteger(double *d, double min, double max) {
3263 double x = *d;
3264 if ((min <= x && x <= max)) {
3265 double fx = floor(x);
3266 double cx = ceil(x);
3267 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3268 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3269 errno(*__error()) = 0;
3270 } else {
3271 double summ, reps, diff;
3272 if (rd < x) {
3273 diff = x - rd;
3274 } else if (rd > x) {
3275 diff = rd - x;
3276 } else {
3277 return 1;
3278 }
3279 summ = rd + x;
3280 reps = diff/summ;
3281 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3282 *d = rd;
3283 return 1;
3284 }
3285 }
3286 }
3287 return 0;
3288}
3289
3290
3291SWIGINTERNstatic __attribute__ ((__unused__)) int
3292SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3293{
3294#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3295 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3296 long v = PyInt_AsLong(obj);
3297 if (v >= 0) {
3298 if (val) *val = v;
3299 return SWIG_OK(0);
3300 } else {
3301 return SWIG_OverflowError-7;
3302 }
3303 } else
3304#endif
3305 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3306 unsigned long v = PyLong_AsUnsignedLong(obj);
3307 if (!PyErr_Occurred()) {
3308 if (val) *val = v;
3309 return SWIG_OK(0);
3310 } else {
3311 PyErr_Clear();
3312#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3313 {
3314 long v = PyLong_AsLong(obj);
3315 if (!PyErr_Occurred()) {
3316 if (v < 0) {
3317 return SWIG_OverflowError-7;
3318 }
3319 } else {
3320 PyErr_Clear();
3321 }
3322 }
3323#endif
3324 }
3325 }
3326#ifdef SWIG_PYTHON_CAST_MODE
3327 {
3328 int dispatch = 0;
3329 unsigned long v = PyLong_AsUnsignedLong(obj);
3330 if (!PyErr_Occurred()) {
3331 if (val) *val = v;
3332 return SWIG_AddCast(SWIG_OK)((0));
3333 } else {
3334 PyErr_Clear();
3335 }
3336 if (!dispatch) {
3337 double d;
3338 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3339 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3340 if (val) *val = (unsigned long)(d);
3341 return res;
3342 }
3343 }
3344 }
3345#endif
3346 return SWIG_TypeError-5;
3347}
3348
3349
3350SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3351SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3352{
3353 unsigned long v;
3354 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3355 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3356 return res;
3357}
3358
3359
3360 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3361
3362
3363SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3364SWIG_From_ptrdiff_t (ptrdiff_t value)
3365{
3366 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3367}
3368
3369
3370SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3371 SWIG_From_bool (bool value)
3372{
3373 return PyBool_FromLong(value ? 1 : 0);
3374}
3375
3376
3377SWIGINTERNstatic __attribute__ ((__unused__)) int
3378SWIG_AsVal_long (PyObject *obj, long* val)
3379{
3380 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3381 if (val) *val = PyInt_AsLong(obj);
3382 return SWIG_OK(0);
3383 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3384 long v = PyLong_AsLong(obj);
3385 if (!PyErr_Occurred()) {
3386 if (val) *val = v;
3387 return SWIG_OK(0);
3388 } else {
3389 PyErr_Clear();
3390 }
3391 }
3392#ifdef SWIG_PYTHON_CAST_MODE
3393 {
3394 int dispatch = 0;
3395 long v = PyInt_AsLong(obj);
3396 if (!PyErr_Occurred()) {
3397 if (val) *val = v;
3398 return SWIG_AddCast(SWIG_OK)((0));
3399 } else {
3400 PyErr_Clear();
3401 }
3402 if (!dispatch) {
3403 double d;
3404 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3405 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3406 if (val) *val = (long)(d);
3407 return res;
3408 }
3409 }
3410 }
3411#endif
3412 return SWIG_TypeError-5;
3413}
3414
3415
3416SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3417SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3418{
3419 long v;
3420 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3421 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3422 return res;
3423}
3424
3425
3426#include <stdexcept>
3427
3428
3429#include <algorithm>
3430
3431
3432#include <vector>
3433
3434
3435#include <utility>
3436
3437
3438#include <map>
3439#include <algorithm>
3440#include <stdexcept>
3441
3442
3443/* Put headers and other declarations here that are needed for compilation */
3444#include "GVector.hpp"
3445#include "GTools.hpp"
3446
3447
3448#include <limits.h>
3449#if !defined(SWIG_NO_LLONG_MAX)
3450# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3451# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3452# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3453# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3454# endif
3455#endif
3456
3457
3458SWIGINTERNstatic __attribute__ ((__unused__)) int
3459SWIG_AsVal_int (PyObject * obj, int *val)
3460{
3461 long v;
3462 int res = SWIG_AsVal_long (obj, &v);
3463 if (SWIG_IsOK(res)(res >= 0)) {
3464 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3465 return SWIG_OverflowError-7;
3466 } else {
3467 if (val) *val = static_cast< int >(v);
3468 }
3469 }
3470 return res;
3471}
3472
3473
3474SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3475 SWIG_From_int (int value)
3476{
3477 return PyInt_FromLong((long) value);
3478}
3479
3480SWIGINTERNstatic __attribute__ ((__unused__)) double GVector___getitem__(GVector *self,int const &index){
3481 if (index >= 0 && index < self->size()) {
3482 return (*self)[index];
3483 }
3484 else {
3485 throw GException::out_of_range("__getitem__(int)", index, self->size());
3486 }
3487 }
3488
3489 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
3490
3491SWIGINTERNstatic __attribute__ ((__unused__)) void GVector___setitem__(GVector *self,int const &index,double const &val){
3492 if (index>=0 && index < self->size()) {
3493 (*self)[index] = val;
3494 }
3495 else {
3496 throw GException::out_of_range("__setitem__(int)", index, self->size());
3497 }
3498 }
3499SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector___add____SWIG_0(GVector *self,GVector const &a){
3500 return (*self) + a;
3501 }
3502SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector___add____SWIG_1(GVector *self,double const &a){
3503 return (*self) + a;
3504 }
3505SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector___sub____SWIG_0(GVector *self,GVector const &a){
3506 return (*self) - a;
3507 }
3508SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector___sub____SWIG_1(GVector *self,double const &a){
3509 return (*self) - a;
3510 }
3511SWIGINTERNstatic __attribute__ ((__unused__)) double GVector___mul____SWIG_0(GVector *self,GVector const &a){
3512 return (*self) * a;
3513 }
3514SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector___mul____SWIG_1(GVector *self,double const &a){
3515 return (*self) * a;
3516 }
3517SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector___div__(GVector *self,double const &a){
3518 return (*self) / a;
3519 }
3520SWIGINTERNstatic __attribute__ ((__unused__)) int GVector___is__(GVector *self,GVector const &a){
3521 return (*self) == a;
3522 }
3523SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_copy(GVector *self){
3524 return (*self);
3525 }
3526SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_cross(GVector *self,GVector const &a){
3527 return cross(*self, a);
3528 }
3529SWIGINTERNstatic __attribute__ ((__unused__)) double GVector_norm(GVector *self){
3530 return norm(*self);
3531 }
3532SWIGINTERNstatic __attribute__ ((__unused__)) double GVector_min(GVector *self){
3533 return min(*self);
3534 }
3535SWIGINTERNstatic __attribute__ ((__unused__)) double GVector_max(GVector *self){
3536 return max(*self);
3537 }
3538SWIGINTERNstatic __attribute__ ((__unused__)) double GVector_sum(GVector *self){
3539 return sum(*self);
3540 }
3541SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_acos(GVector *self){
3542 return acos(*self);
3543 }
3544SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_acosh(GVector *self){
3545 return acosh(*self);
3546 }
3547SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_asin(GVector *self){
3548 return asin(*self);
3549 }
3550SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_asinh(GVector *self){
3551 return asinh(*self);
3552 }
3553SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_atan(GVector *self){
3554 return atan(*self);
3555 }
3556SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_atanh(GVector *self){
3557 return atanh(*self);
3558 }
3559SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_cos(GVector *self){
3560 return cos(*self);
3561 }
3562SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_cosh(GVector *self){
3563 return cosh(*self);
3564 }
3565SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_exp(GVector *self){
3566 return exp(*self);
3567 }
3568SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_abs(GVector *self){
3569 return abs(*self);
3570 }
3571SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_log(GVector *self){
3572 return log(*self);
3573 }
3574SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_log10(GVector *self){
3575 return log10(*self);
3576 }
3577SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_sin(GVector *self){
3578 return sin(*self);
3579 }
3580SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_sinh(GVector *self){
3581 return sinh(*self);
3582 }
3583SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_sqrt(GVector *self){
3584 return sqrt(*self);
3585 }
3586SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_tan(GVector *self){
3587 return tan(*self);
3588 }
3589SWIGINTERNstatic __attribute__ ((__unused__)) GVector GVector_tanh(GVector *self){
3590 return tanh(*self);
3591 }
3592
3593/* Put headers and other declarations here that are needed for compilation */
3594#include "GMatrixBase.hpp"
3595
3596
3597/* Put headers and other declarations here that are needed for compilation */
3598#include "GMatrix.hpp"
3599#include "GVector.hpp"
3600#include "GTools.hpp"
3601
3602
3603/* Put headers and other declarations here that are needed for compilation */
3604
3605
3606static int var_tuple_to_index(PyObject *input, int *ptr) {
3607 if (PySequence_Check(input)) {
3608 int size = PyObject_LengthPyObject_Size(input);
3609 if (size > 4) {
3610 PyErr_SetString(PyExc_ValueError,"Too many arguments in tuple");
3611 return 0;
3612 }
3613 ptr[0] = size;
3614 for (int i = 0; i < size; i++) {
3615 PyObject *o = PySequence_GetItem(input,i);
3616 if (!PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
3617 Py_XDECREF(o)do { if ((o) == __null) ; else do { if ( --((PyObject*)(o))->
ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(o)))->
ob_type)->tp_dealloc)((PyObject *)((PyObject *)(o)))); } while
(0); } while (0)
;
3618 PyErr_SetString(PyExc_ValueError,"Expecting a tuple of integers");
3619 return 0;
3620 }
3621 ptr[i+1] = (int)PyInt_AsLong(o);
3622 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
3623 }
3624 return 1;
3625 }
3626 else {
3627 ptr[0] = 1;
3628 if (!PyInt_Check(input)((((input)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3629 PyErr_SetString(PyExc_ValueError,"Expecting an integer");
3630 return 0;
3631 }
3632 ptr[1] = (int)PyInt_AsLong(input);
3633 return 1;
3634 }
3635}
3636
3637SWIGINTERNstatic __attribute__ ((__unused__)) double GMatrix___getitem__(GMatrix *self,int GTuple[2]){
3638 return (*self)(GTuple[0], GTuple[1]);
3639 }
3640SWIGINTERNstatic __attribute__ ((__unused__)) void GMatrix___setitem__(GMatrix *self,int GTuple[2],double value){
3641 (*self)(GTuple[0], GTuple[1]) = value;
3642 }
3643SWIGINTERNstatic __attribute__ ((__unused__)) GVector GMatrix___mul____SWIG_0(GMatrix *self,GVector const &vector){
3644 return ((*self) * vector);
3645 }
3646SWIGINTERNstatic __attribute__ ((__unused__)) GMatrix GMatrix___mul____SWIG_1(GMatrix *self,GMatrix const &matrix){
3647 return ((*self) * matrix);
3648 }
3649SWIGINTERNstatic __attribute__ ((__unused__)) GMatrix GMatrix___mul____SWIG_2(GMatrix *self,double const &scalar){
3650 return ((*self) * scalar);
3651 }
3652SWIGINTERNstatic __attribute__ ((__unused__)) GMatrix GMatrix___div__(GMatrix *self,double const &scalar){
3653 return ((*self) / scalar);
3654 }
3655SWIGINTERNstatic __attribute__ ((__unused__)) GMatrix GMatrix_copy(GMatrix *self){
3656 return (*self);
3657 }
3658SWIGINTERNstatic __attribute__ ((__unused__)) GMatrix GMatrix_set(GMatrix *self,double const &value){
3659 (*self) = value;
3660 return (*self);
3661 }
3662
3663/* Put headers and other declarations here that are needed for compilation */
3664#include "GMatrixSparse.hpp"
3665#include "GTools.hpp"
3666
3667
3668SWIGINTERNstatic __attribute__ ((__unused__)) int
3669SWIG_AsVal_bool (PyObject *obj, bool *val)
3670{
3671 int r = PyObject_IsTrue(obj);
3672 if (r == -1)
3673 return SWIG_ERROR(-1);
3674 if (val) *val = r ? true : false;
3675 return SWIG_OK(0);
3676}
3677
3678SWIGINTERNstatic __attribute__ ((__unused__)) double GMatrixSparse___getitem__(GMatrixSparse *self,int GTuple[2]){
3679 return (*self)(GTuple[0], GTuple[1]);
3680 }
3681SWIGINTERNstatic __attribute__ ((__unused__)) void GMatrixSparse___setitem__(GMatrixSparse *self,int GTuple[2],double value){
3682 (*self)(GTuple[0], GTuple[1]) = value;
3683 }
3684SWIGINTERNstatic __attribute__ ((__unused__)) GVector GMatrixSparse___mul____SWIG_0(GMatrixSparse *self,GVector const &vector){
3685 return ((*self) * vector);
3686 }
3687SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSparse GMatrixSparse___mul____SWIG_1(GMatrixSparse *self,GMatrixSparse const &matrix){
3688 return ((*self) * matrix);
3689 }
3690SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSparse GMatrixSparse___mul____SWIG_2(GMatrixSparse *self,double const &scalar){
3691 return ((*self) * scalar);
3692 }
3693SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSparse GMatrixSparse___div__(GMatrixSparse *self,double const &scalar){
3694 return ((*self) / scalar);
3695 }
3696SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSparse GMatrixSparse_copy(GMatrixSparse *self){
3697 return (*self);
3698 }
3699SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSparse GMatrixSparse_set(GMatrixSparse *self,double const &value){
3700 (*self) = value;
3701 return (*self);
3702 }
3703
3704/* Put headers and other declarations here that are needed for compilation */
3705#include "GMatrixSymmetric.hpp"
3706#include "GTools.hpp"
3707
3708SWIGINTERNstatic __attribute__ ((__unused__)) double GMatrixSymmetric___getitem__(GMatrixSymmetric *self,int GTuple[2]){
3709 return (*self)(GTuple[0], GTuple[1]);
3710 }
3711SWIGINTERNstatic __attribute__ ((__unused__)) void GMatrixSymmetric___setitem__(GMatrixSymmetric *self,int GTuple[2],double value){
3712 (*self)(GTuple[0], GTuple[1]) = value;
3713 }
3714SWIGINTERNstatic __attribute__ ((__unused__)) GVector GMatrixSymmetric___mul____SWIG_0(GMatrixSymmetric *self,GVector const &vector){
3715 return ((*self) * vector);
3716 }
3717SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSymmetric GMatrixSymmetric___mul____SWIG_1(GMatrixSymmetric *self,GMatrixSymmetric const &matrix){
3718 return ((*self) * matrix);
3719 }
3720SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSymmetric GMatrixSymmetric___mul____SWIG_2(GMatrixSymmetric *self,double const &scalar){
3721 return ((*self) * scalar);
3722 }
3723SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSymmetric GMatrixSymmetric___div__(GMatrixSymmetric *self,double const &scalar){
3724 return ((*self) / scalar);
3725 }
3726SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSymmetric GMatrixSymmetric_copy(GMatrixSymmetric *self){
3727 return (*self);
3728 }
3729SWIGINTERNstatic __attribute__ ((__unused__)) GMatrixSymmetric GMatrixSymmetric_set(GMatrixSymmetric *self,double const &value){
3730 (*self) = value;
3731 return (*self);
3732 }
3733#ifdef __cplusplus199711L
3734extern "C" {
3735#endif
3736SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3737 PyObject *resultobj = 0;
3738 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3739 void *argp1 = 0 ;
3740 int res1 = 0 ;
3741 PyObject * obj0 = 0 ;
3742
3743 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
3744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0x1 | 0, 0)
;
3745 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_SwigPyIterator" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3747 }
3748 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3749 delete arg1;
3750 resultobj = SWIG_Py_Void();
3751 return resultobj;
3752fail:
3753 return NULL__null;
3754}
3755
3756
3757SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *resultobj = 0;
3759 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3760 void *argp1 = 0 ;
3761 int res1 = 0 ;
3762 PyObject * obj0 = 0 ;
3763 PyObject *result = 0 ;
3764
3765 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
3766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
3767 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_value" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
3769 }
3770 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3771 try {
3772 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
3773 }
3774 catch(swig::stop_iteration &_e) {
3775 {
3776 (void)_e;
3777 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3778 SWIG_failgoto fail;
3779 }
3780 }
3781
3782 resultobj = result;
3783 return resultobj;
3784fail:
3785 return NULL__null;
3786}
3787
3788
3789SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3790 PyObject *resultobj = 0;
3791 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3792 size_t arg2 ;
3793 void *argp1 = 0 ;
3794 int res1 = 0 ;
3795 size_t val2 ;
3796 int ecode2 = 0 ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 swig::SwigPyIterator *result = 0 ;
3800
3801 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
3802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
3803 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3805 }
3806 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3807 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3808 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_incr" "', argument "
"2"" of type '" "size_t""'"); goto fail; } while(0)
;
3810 }
3811 arg2 = static_cast< size_t >(val2);
3812 try {
3813 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
3814 }
3815 catch(swig::stop_iteration &_e) {
3816 {
3817 (void)_e;
3818 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3819 SWIG_failgoto fail;
3820 }
3821 }
3822
3823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
3824 return resultobj;
3825fail:
3826 return NULL__null;
3827}
3828
3829
3830SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3831 PyObject *resultobj = 0;
3832 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3833 void *argp1 = 0 ;
3834 int res1 = 0 ;
3835 PyObject * obj0 = 0 ;
3836 swig::SwigPyIterator *result = 0 ;
3837
3838 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
3839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
3840 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3842 }
3843 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3844 try {
3845 result = (swig::SwigPyIterator *)(arg1)->incr();
3846 }
3847 catch(swig::stop_iteration &_e) {
3848 {
3849 (void)_e;
3850 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3851 SWIG_failgoto fail;
3852 }
3853 }
3854
3855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
3856 return resultobj;
3857fail:
3858 return NULL__null;
3859}
3860
3861
3862SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
3863 int argc;
3864 PyObject *argv[3];
3865 int ii;
3866
3867 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3868 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3869 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3870 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3871 }
3872 if (argc == 1) {
3873 int _v;
3874 void *vptr = 0;
3875 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
3876 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3877 if (_v) {
3878 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
3879 }
3880 }
3881 if (argc == 2) {
3882 int _v;
3883 void *vptr = 0;
3884 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
3885 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3886 if (_v) {
3887 {
3888 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3889 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3890 }
3891 if (_v) {
3892 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
3893 }
3894 }
3895 }
3896
3897fail:
3898 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
3899 " Possible C/C++ prototypes are:\n"
3900 " swig::SwigPyIterator::incr(size_t)\n"
3901 " swig::SwigPyIterator::incr()\n");
3902 return 0;
3903}
3904
3905
3906SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3907 PyObject *resultobj = 0;
3908 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3909 size_t arg2 ;
3910 void *argp1 = 0 ;
3911 int res1 = 0 ;
3912 size_t val2 ;
3913 int ecode2 = 0 ;
3914 PyObject * obj0 = 0 ;
3915 PyObject * obj1 = 0 ;
3916 swig::SwigPyIterator *result = 0 ;
3917
3918 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
3919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
3920 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3922 }
3923 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3924 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3925 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_decr" "', argument "
"2"" of type '" "size_t""'"); goto fail; } while(0)
;
3927 }
3928 arg2 = static_cast< size_t >(val2);
3929 try {
3930 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
3931 }
3932 catch(swig::stop_iteration &_e) {
3933 {
3934 (void)_e;
3935 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3936 SWIG_failgoto fail;
3937 }
3938 }
3939
3940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
3941 return resultobj;
3942fail:
3943 return NULL__null;
3944}
3945
3946
3947SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3948 PyObject *resultobj = 0;
3949 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3950 void *argp1 = 0 ;
3951 int res1 = 0 ;
3952 PyObject * obj0 = 0 ;
3953 swig::SwigPyIterator *result = 0 ;
3954
3955 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
3956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
3957 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3959 }
3960 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3961 try {
3962 result = (swig::SwigPyIterator *)(arg1)->decr();
3963 }
3964 catch(swig::stop_iteration &_e) {
3965 {
3966 (void)_e;
3967 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3968 SWIG_failgoto fail;
3969 }
3970 }
3971
3972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
3973 return resultobj;
3974fail:
3975 return NULL__null;
3976}
3977
3978
3979SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
3980 int argc;
3981 PyObject *argv[3];
3982 int ii;
3983
3984 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3985 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3986 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3987 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3988 }
3989 if (argc == 1) {
3990 int _v;
3991 void *vptr = 0;
3992 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
3993 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3994 if (_v) {
3995 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
3996 }
3997 }
3998 if (argc == 2) {
3999 int _v;
4000 void *vptr = 0;
4001 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
4002 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4003 if (_v) {
4004 {
4005 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
4006 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4007 }
4008 if (_v) {
4009 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
4010 }
4011 }
4012 }
4013
4014fail:
4015 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
4016 " Possible C/C++ prototypes are:\n"
4017 " swig::SwigPyIterator::decr(size_t)\n"
4018 " swig::SwigPyIterator::decr()\n");
4019 return 0;
4020}
4021
4022
4023SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4024 PyObject *resultobj = 0;
4025 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4026 swig::SwigPyIterator *arg2 = 0 ;
4027 void *argp1 = 0 ;
4028 int res1 = 0 ;
4029 void *argp2 = 0 ;
4030 int res2 = 0 ;
4031 PyObject * obj0 = 0 ;
4032 PyObject * obj1 = 0 ;
4033 ptrdiff_t result;
4034
4035 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
4036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4037 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_distance" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4039 }
4040 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10]
, 0 | 0, 0)
;
4042 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator_distance" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4044 }
4045 if (!argp2) {
4046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator_distance" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4047 }
4048 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4049 try {
4050 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
4051 }
4052 catch(std::invalid_argument &_e) {
4053 SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[
9]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[9], 0x1))
; SWIG_failgoto fail;
4054 }
4055
4056 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4057 return resultobj;
4058fail:
4059 return NULL__null;
4060}
4061
4062
4063SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4064 PyObject *resultobj = 0;
4065 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4066 swig::SwigPyIterator *arg2 = 0 ;
4067 void *argp1 = 0 ;
4068 int res1 = 0 ;
4069 void *argp2 = 0 ;
4070 int res2 = 0 ;
4071 PyObject * obj0 = 0 ;
4072 PyObject * obj1 = 0 ;
4073 bool result;
4074
4075 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
4076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4077 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_equal" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4079 }
4080 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10]
, 0 | 0, 0)
;
4082 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator_equal" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4084 }
4085 if (!argp2) {
4086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator_equal" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4087 }
4088 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4089 try {
4090 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
4091 }
4092 catch(std::invalid_argument &_e) {
4093 SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[
9]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[9], 0x1))
; SWIG_failgoto fail;
4094 }
4095
4096 resultobj = SWIG_From_bool(static_cast< bool >(result));
4097 return resultobj;
4098fail:
4099 return NULL__null;
4100}
4101
4102
4103SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4104 PyObject *resultobj = 0;
4105 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4106 void *argp1 = 0 ;
4107 int res1 = 0 ;
4108 PyObject * obj0 = 0 ;
4109 swig::SwigPyIterator *result = 0 ;
4110
4111 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
4112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4113 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_copy" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4115 }
4116 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4117 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
4118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0x1
| 0)
;
4119 return resultobj;
4120fail:
4121 return NULL__null;
4122}
4123
4124
4125SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4128 void *argp1 = 0 ;
4129 int res1 = 0 ;
4130 PyObject * obj0 = 0 ;
4131 PyObject *result = 0 ;
4132
4133 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
4134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4135 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_next" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4137 }
4138 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4139 try {
4140 result = (PyObject *)(arg1)->next();
4141 }
4142 catch(swig::stop_iteration &_e) {
4143 {
4144 (void)_e;
4145 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4146 SWIG_failgoto fail;
4147 }
4148 }
4149
4150 resultobj = result;
4151 return resultobj;
4152fail:
4153 return NULL__null;
4154}
4155
4156
4157SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4158 PyObject *resultobj = 0;
4159 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4160 void *argp1 = 0 ;
4161 int res1 = 0 ;
4162 PyObject * obj0 = 0 ;
4163 PyObject *result = 0 ;
4164
4165 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
4166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4167 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___next__" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4169 }
4170 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4171 try {
4172 result = (PyObject *)(arg1)->__next__();
4173 }
4174 catch(swig::stop_iteration &_e) {
4175 {
4176 (void)_e;
4177 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4178 SWIG_failgoto fail;
4179 }
4180 }
4181
4182 resultobj = result;
4183 return resultobj;
4184fail:
4185 return NULL__null;
4186}
4187
4188
4189SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4190 PyObject *resultobj = 0;
4191 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4192 void *argp1 = 0 ;
4193 int res1 = 0 ;
4194 PyObject * obj0 = 0 ;
4195 PyObject *result = 0 ;
4196
4197 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
4198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4199 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_previous" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4201 }
4202 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4203 try {
4204 result = (PyObject *)(arg1)->previous();
4205 }
4206 catch(swig::stop_iteration &_e) {
4207 {
4208 (void)_e;
4209 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4210 SWIG_failgoto fail;
4211 }
4212 }
4213
4214 resultobj = result;
4215 return resultobj;
4216fail:
4217 return NULL__null;
4218}
4219
4220
4221SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4222 PyObject *resultobj = 0;
4223 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4224 ptrdiff_t arg2 ;
4225 void *argp1 = 0 ;
4226 int res1 = 0 ;
4227 ptrdiff_t val2 ;
4228 int ecode2 = 0 ;
4229 PyObject * obj0 = 0 ;
4230 PyObject * obj1 = 0 ;
4231 swig::SwigPyIterator *result = 0 ;
4232
4233 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4235 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_advance" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4237 }
4238 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4239 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4240 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_advance"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4242 }
4243 arg2 = static_cast< ptrdiff_t >(val2);
4244 try {
4245 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4246 }
4247 catch(swig::stop_iteration &_e) {
4248 {
4249 (void)_e;
4250 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4251 SWIG_failgoto fail;
4252 }
4253 }
4254
4255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
4256 return resultobj;
4257fail:
4258 return NULL__null;
4259}
4260
4261
4262SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4263 PyObject *resultobj = 0;
4264 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4265 swig::SwigPyIterator *arg2 = 0 ;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 void *argp2 = 0 ;
4269 int res2 = 0 ;
4270 PyObject * obj0 = 0 ;
4271 PyObject * obj1 = 0 ;
4272 bool result;
4273
4274 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4276 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___eq__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4278 }
4279 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10]
, 0 | 0, 0)
;
4281 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator___eq__" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4283 }
4284 if (!argp2) {
4285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4286 }
4287 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4288 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4289 resultobj = SWIG_From_bool(static_cast< bool >(result));
4290 return resultobj;
4291fail:
4292 return NULL__null;
4293}
4294
4295
4296SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4297 PyObject *resultobj = 0;
4298 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4299 swig::SwigPyIterator *arg2 = 0 ;
4300 void *argp1 = 0 ;
4301 int res1 = 0 ;
4302 void *argp2 = 0 ;
4303 int res2 = 0 ;
4304 PyObject * obj0 = 0 ;
4305 PyObject * obj1 = 0 ;
4306 bool result;
4307
4308 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4310 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___ne__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4312 }
4313 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10]
, 0 | 0, 0)
;
4315 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator___ne__" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4317 }
4318 if (!argp2) {
4319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4320 }
4321 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4322 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4323 resultobj = SWIG_From_bool(static_cast< bool >(result));
4324 return resultobj;
4325fail:
4326 return NULL__null;
4327}
4328
4329
4330SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4331 PyObject *resultobj = 0;
4332 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4333 ptrdiff_t arg2 ;
4334 void *argp1 = 0 ;
4335 int res1 = 0 ;
4336 ptrdiff_t val2 ;
4337 int ecode2 = 0 ;
4338 PyObject * obj0 = 0 ;
4339 PyObject * obj1 = 0 ;
4340 swig::SwigPyIterator *result = 0 ;
4341
4342 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0x1 | 0, 0)
;
4344 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4346 }
4347 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4348 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4349 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___iadd__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4351 }
4352 arg2 = static_cast< ptrdiff_t >(val2);
4353 try {
4354 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4355 }
4356 catch(swig::stop_iteration &_e) {
4357 {
4358 (void)_e;
4359 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4360 SWIG_failgoto fail;
4361 }
4362 }
4363
4364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0x1
| 0)
;
4365 return resultobj;
4366fail:
4367 return NULL__null;
4368}
4369
4370
4371SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4372 PyObject *resultobj = 0;
4373 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4374 ptrdiff_t arg2 ;
4375 void *argp1 = 0 ;
4376 int res1 = 0 ;
4377 ptrdiff_t val2 ;
4378 int ecode2 = 0 ;
4379 PyObject * obj0 = 0 ;
4380 PyObject * obj1 = 0 ;
4381 swig::SwigPyIterator *result = 0 ;
4382
4383 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0x1 | 0, 0)
;
4385 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___isub__" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4387 }
4388 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4389 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4390 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___isub__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4392 }
4393 arg2 = static_cast< ptrdiff_t >(val2);
4394 try {
4395 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4396 }
4397 catch(swig::stop_iteration &_e) {
4398 {
4399 (void)_e;
4400 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4401 SWIG_failgoto fail;
4402 }
4403 }
4404
4405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0x1
| 0)
;
4406 return resultobj;
4407fail:
4408 return NULL__null;
4409}
4410
4411
4412SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4413 PyObject *resultobj = 0;
4414 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4415 ptrdiff_t arg2 ;
4416 void *argp1 = 0 ;
4417 int res1 = 0 ;
4418 ptrdiff_t val2 ;
4419 int ecode2 = 0 ;
4420 PyObject * obj0 = 0 ;
4421 PyObject * obj1 = 0 ;
4422 swig::SwigPyIterator *result = 0 ;
4423
4424 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4426 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___add__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4428 }
4429 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4430 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4431 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___add__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4433 }
4434 arg2 = static_cast< ptrdiff_t >(val2);
4435 try {
4436 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4437 }
4438 catch(swig::stop_iteration &_e) {
4439 {
4440 (void)_e;
4441 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4442 SWIG_failgoto fail;
4443 }
4444 }
4445
4446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0x1
| 0)
;
4447 return resultobj;
4448fail:
4449 return NULL__null;
4450}
4451
4452
4453SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4454 PyObject *resultobj = 0;
4455 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4456 ptrdiff_t arg2 ;
4457 void *argp1 = 0 ;
4458 int res1 = 0 ;
4459 ptrdiff_t val2 ;
4460 int ecode2 = 0 ;
4461 PyObject * obj0 = 0 ;
4462 PyObject * obj1 = 0 ;
4463 swig::SwigPyIterator *result = 0 ;
4464
4465 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4467 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4469 }
4470 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4471 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4472 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___sub__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4474 }
4475 arg2 = static_cast< ptrdiff_t >(val2);
4476 try {
4477 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4478 }
4479 catch(swig::stop_iteration &_e) {
4480 {
4481 (void)_e;
4482 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4483 SWIG_failgoto fail;
4484 }
4485 }
4486
4487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0x1
| 0)
;
4488 return resultobj;
4489fail:
4490 return NULL__null;
4491}
4492
4493
4494SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4495 PyObject *resultobj = 0;
4496 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4497 swig::SwigPyIterator *arg2 = 0 ;
4498 void *argp1 = 0 ;
4499 int res1 = 0 ;
4500 void *argp2 = 0 ;
4501 int res2 = 0 ;
4502 PyObject * obj0 = 0 ;
4503 PyObject * obj1 = 0 ;
4504 ptrdiff_t result;
4505
4506 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
4508 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4510 }
4511 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10]
, 0 | 0, 0)
;
4513 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4515 }
4516 if (!argp2) {
4517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4518 }
4519 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4520 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4521 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4522 return resultobj;
4523fail:
4524 return NULL__null;
4525}
4526
4527
4528SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4529 int argc;
4530 PyObject *argv[3];
4531 int ii;
4532
4533 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4534 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4535 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4536 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4537 }
4538 if (argc == 2) {
4539 int _v;
4540 void *vptr = 0;
4541 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
4542 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4543 if (_v) {
4544 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[10], 0, 0
)
;
4545 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4546 if (_v) {
4547 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4548 }
4549 }
4550 }
4551 if (argc == 2) {
4552 int _v;
4553 void *vptr = 0;
4554 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
4555 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4556 if (_v) {
4557 {
4558 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4559 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4560 }
4561 if (_v) {
4562 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4563 }
4564 }
4565 }
4566
4567fail:
4568 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4569 return Py_NotImplemented(&_Py_NotImplementedStruct);
4570}
4571
4572
4573SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4574 PyObject *obj;
4575 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4576 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[10], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4577 return SWIG_Py_Void();
4578}
4579
4580SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4581 PyObject *resultobj = 0;
4582 GVector *result = 0 ;
4583
4584 if (!PyArg_ParseTuple(args,(char *)":new_GVector")) SWIG_failgoto fail;
4585 {
4586 try {
4587 result = (GVector *)new GVector();
4588 }
4589 catch (const GException::out_of_range& e) {
4590 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4591 }
4592 catch (const GExceptionHandler& e) {
4593 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4594 }
4595 catch (const std::exception& e) {
4596 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4597 }
4598 }
4599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4600 return resultobj;
4601fail:
4602 return NULL__null;
4603}
4604
4605
4606SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4607 PyObject *resultobj = 0;
4608 int *arg1 = 0 ;
4609 int temp1 ;
4610 int val1 ;
4611 int ecode1 = 0 ;
4612 PyObject * obj0 = 0 ;
4613 GVector *result = 0 ;
4614
4615 if (!PyArg_ParseTuple(args,(char *)"O:new_GVector",&obj0)) SWIG_failgoto fail;
4616 ecode1 = SWIG_AsVal_int(obj0, &val1);
4617 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4618 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GVector" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GVector" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
4619 }
4620 temp1 = static_cast< int >(val1);
4621 arg1 = &temp1;
4622 {
4623 try {
4624 result = (GVector *)new GVector((int const &)*arg1);
4625 }
4626 catch (const GException::out_of_range& e) {
4627 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4628 }
4629 catch (const GExceptionHandler& e) {
4630 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4631 }
4632 catch (const std::exception& e) {
4633 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4634 }
4635 }
4636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4637 return resultobj;
4638fail:
4639 return NULL__null;
4640}
4641
4642
4643SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4644 PyObject *resultobj = 0;
4645 double *arg1 = 0 ;
4646 double temp1 ;
4647 double val1 ;
4648 int ecode1 = 0 ;
4649 PyObject * obj0 = 0 ;
4650 GVector *result = 0 ;
4651
4652 if (!PyArg_ParseTuple(args,(char *)"O:new_GVector",&obj0)) SWIG_failgoto fail;
4653 ecode1 = SWIG_AsVal_double(obj0, &val1);
4654 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4655 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GVector" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GVector" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
4656 }
4657 temp1 = static_cast< double >(val1);
4658 arg1 = &temp1;
4659 {
4660 try {
4661 result = (GVector *)new GVector((double const &)*arg1);
4662 }
4663 catch (const GException::out_of_range& e) {
4664 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4665 }
4666 catch (const GExceptionHandler& e) {
4667 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4668 }
4669 catch (const std::exception& e) {
4670 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4671 }
4672 }
4673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4674 return resultobj;
4675fail:
4676 return NULL__null;
4677}
4678
4679
4680SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4681 PyObject *resultobj = 0;
4682 double *arg1 = 0 ;
4683 double *arg2 = 0 ;
4684 double temp1 ;
4685 double val1 ;
4686 int ecode1 = 0 ;
4687 double temp2 ;
4688 double val2 ;
4689 int ecode2 = 0 ;
4690 PyObject * obj0 = 0 ;
4691 PyObject * obj1 = 0 ;
4692 GVector *result = 0 ;
4693
4694 if (!PyArg_ParseTuple(args,(char *)"OO:new_GVector",&obj0,&obj1)) SWIG_failgoto fail;
4695 ecode1 = SWIG_AsVal_double(obj0, &val1);
4696 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GVector" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GVector" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
4698 }
4699 temp1 = static_cast< double >(val1);
4700 arg1 = &temp1;
4701 ecode2 = SWIG_AsVal_double(obj1, &val2);
4702 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GVector" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GVector" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
4704 }
4705 temp2 = static_cast< double >(val2);
4706 arg2 = &temp2;
4707 {
4708 try {
4709 result = (GVector *)new GVector((double const &)*arg1,(double const &)*arg2);
4710 }
4711 catch (const GException::out_of_range& e) {
4712 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4713 }
4714 catch (const GExceptionHandler& e) {
4715 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4716 }
4717 catch (const std::exception& e) {
4718 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4719 }
4720 }
4721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4722 return resultobj;
4723fail:
4724 return NULL__null;
4725}
4726
4727
4728SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GVector__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4729 PyObject *resultobj = 0;
4730 double *arg1 = 0 ;
4731 double *arg2 = 0 ;
4732 double *arg3 = 0 ;
4733 double temp1 ;
4734 double val1 ;
4735 int ecode1 = 0 ;
4736 double temp2 ;
4737 double val2 ;
4738 int ecode2 = 0 ;
4739 double temp3 ;
4740 double val3 ;
4741 int ecode3 = 0 ;
4742 PyObject * obj0 = 0 ;
4743 PyObject * obj1 = 0 ;
4744 PyObject * obj2 = 0 ;
4745 GVector *result = 0 ;
4746
4747 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GVector",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
4748 ecode1 = SWIG_AsVal_double(obj0, &val1);
4749 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GVector" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GVector" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
4751 }
4752 temp1 = static_cast< double >(val1);
4753 arg1 = &temp1;
4754 ecode2 = SWIG_AsVal_double(obj1, &val2);
4755 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GVector" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GVector" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
4757 }
4758 temp2 = static_cast< double >(val2);
4759 arg2 = &temp2;
4760 ecode3 = SWIG_AsVal_double(obj2, &val3);
4761 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
4762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GVector" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_GVector" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
4763 }
4764 temp3 = static_cast< double >(val3);
4765 arg3 = &temp3;
4766 {
4767 try {
4768 result = (GVector *)new GVector((double const &)*arg1,(double const &)*arg2,(double const &)*arg3);
4769 }
4770 catch (const GException::out_of_range& e) {
4771 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4772 }
4773 catch (const GExceptionHandler& e) {
4774 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4775 }
4776 catch (const std::exception& e) {
4777 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4778 }
4779 }
4780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4781 return resultobj;
4782fail:
4783 return NULL__null;
4784}
4785
4786
4787SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GVector__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4788 PyObject *resultobj = 0;
4789 GVector *arg1 = 0 ;
4790 void *argp1 = 0 ;
4791 int res1 = 0 ;
4792 PyObject * obj0 = 0 ;
4793 GVector *result = 0 ;
4794
4795 if (!PyArg_ParseTuple(args,(char *)"O:new_GVector",&obj0)) SWIG_failgoto fail;
4796 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4797 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GVector" "', argument " "1"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GVector" "', argument "
"1"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
4799 }
4800 if (!argp1) {
4801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GVector" "', argument " "1"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GVector" "', argument " "1"" of type '" "GVector const &"
"'"); goto fail; } while(0)
;
4802 }
4803 arg1 = reinterpret_cast< GVector * >(argp1);
4804 {
4805 try {
4806 result = (GVector *)new GVector((GVector const &)*arg1);
4807 }
4808 catch (const GException::out_of_range& e) {
4809 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4810 }
4811 catch (const GExceptionHandler& e) {
4812 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4813 }
4814 catch (const std::exception& e) {
4815 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4816 }
4817 }
4818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4819 return resultobj;
4820fail:
4821 return NULL__null;
4822}
4823
4824
4825SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GVector(PyObject *self, PyObject *args) {
4826 int argc;
4827 PyObject *argv[4];
4828 int ii;
4829
4830 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4831 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4832 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
4833 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4834 }
4835 if (argc == 0) {
4836 return _wrap_new_GVector__SWIG_0(self, args);
4837 }
4838 if (argc == 1) {
4839 int _v;
4840 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[5], 0, 0);
4841 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4842 if (_v) {
4843 return _wrap_new_GVector__SWIG_5(self, args);
4844 }
4845 }
4846 if (argc == 1) {
4847 int _v;
4848 {
4849 int res = SWIG_AsVal_int(argv[0], NULL__null);
4850 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4851 }
4852 if (_v) {
4853 return _wrap_new_GVector__SWIG_1(self, args);
4854 }
4855 }
4856 if (argc == 1) {
4857 int _v;
4858 {
4859 int res = SWIG_AsVal_double(argv[0], NULL__null);
4860 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4861 }
4862 if (_v) {
4863 return _wrap_new_GVector__SWIG_2(self, args);
4864 }
4865 }
4866 if (argc == 2) {
4867 int _v;
4868 {
4869 int res = SWIG_AsVal_double(argv[0], NULL__null);
4870 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4871 }
4872 if (_v) {
4873 {
4874 int res = SWIG_AsVal_double(argv[1], NULL__null);
4875 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4876 }
4877 if (_v) {
4878 return _wrap_new_GVector__SWIG_3(self, args);
4879 }
4880 }
4881 }
4882 if (argc == 3) {
4883 int _v;
4884 {
4885 int res = SWIG_AsVal_double(argv[0], NULL__null);
4886 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4887 }
4888 if (_v) {
4889 {
4890 int res = SWIG_AsVal_double(argv[1], NULL__null);
4891 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4892 }
4893 if (_v) {
4894 {
4895 int res = SWIG_AsVal_double(argv[2], NULL__null);
4896 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4897 }
4898 if (_v) {
4899 return _wrap_new_GVector__SWIG_4(self, args);
4900 }
4901 }
4902 }
4903 }
4904
4905fail:
4906 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GVector'.\n"
4907 " Possible C/C++ prototypes are:\n"
4908 " GVector::GVector()\n"
4909 " GVector::GVector(int const &)\n"
4910 " GVector::GVector(double const &)\n"
4911 " GVector::GVector(double const &,double const &)\n"
4912 " GVector::GVector(double const &,double const &,double const &)\n"
4913 " GVector::GVector(GVector const &)\n");
4914 return 0;
4915}
4916
4917
4918SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4919 PyObject *resultobj = 0;
4920 GVector *arg1 = (GVector *) 0 ;
4921 void *argp1 = 0 ;
4922 int res1 = 0 ;
4923 PyObject * obj0 = 0 ;
4924
4925 if (!PyArg_ParseTuple(args,(char *)"O:delete_GVector",&obj0)) SWIG_failgoto fail;
4926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
4927 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GVector" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GVector" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
4929 }
4930 arg1 = reinterpret_cast< GVector * >(argp1);
4931 {
4932 try {
4933 delete arg1;
4934 }
4935 catch (const GException::out_of_range& e) {
4936 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4937 }
4938 catch (const GExceptionHandler& e) {
4939 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4940 }
4941 catch (const std::exception& e) {
4942 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4943 }
4944 }
4945 resultobj = SWIG_Py_Void();
4946 return resultobj;
4947fail:
4948 return NULL__null;
4949}
4950
4951
4952SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4953 PyObject *resultobj = 0;
4954 GVector *arg1 = (GVector *) 0 ;
4955 GVector *arg2 = 0 ;
4956 void *argp1 = 0 ;
4957 int res1 = 0 ;
4958 void *argp2 = 0 ;
4959 int res2 = 0 ;
4960 PyObject * obj0 = 0 ;
4961 PyObject * obj1 = 0 ;
4962 bool result;
4963
4964 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4966 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___eq__" "', argument " "1"" of type '" "GVector const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___eq__" "', argument "
"1"" of type '" "GVector const *""'"); goto fail; } while(0)
;
4968 }
4969 arg1 = reinterpret_cast< GVector * >(argp1);
4970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
4971 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___eq__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___eq__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
4973 }
4974 if (!argp2) {
4975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___eq__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___eq__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
4976 }
4977 arg2 = reinterpret_cast< GVector * >(argp2);
4978 {
4979 try {
4980 result = (bool)((GVector const *)arg1)->operator ==((GVector const &)*arg2);
4981 }
4982 catch (const GException::out_of_range& e) {
4983 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4984 }
4985 catch (const GExceptionHandler& e) {
4986 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4987 }
4988 catch (const std::exception& e) {
4989 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4990 }
4991 }
4992 resultobj = SWIG_From_bool(static_cast< bool >(result));
4993 return resultobj;
4994fail:
4995 return NULL__null;
4996}
4997
4998
4999SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5000 PyObject *resultobj = 0;
5001 GVector *arg1 = (GVector *) 0 ;
5002 GVector *arg2 = 0 ;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 void *argp2 = 0 ;
5006 int res2 = 0 ;
5007 PyObject * obj0 = 0 ;
5008 PyObject * obj1 = 0 ;
5009 bool result;
5010
5011 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___ne__",&obj0,&obj1)) SWIG_failgoto fail;
5012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5013 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___ne__" "', argument " "1"" of type '" "GVector const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___ne__" "', argument "
"1"" of type '" "GVector const *""'"); goto fail; } while(0)
;
5015 }
5016 arg1 = reinterpret_cast< GVector * >(argp1);
5017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5018 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___ne__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___ne__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
5020 }
5021 if (!argp2) {
5022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___ne__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___ne__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
5023 }
5024 arg2 = reinterpret_cast< GVector * >(argp2);
5025 {
5026 try {
5027 result = (bool)((GVector const *)arg1)->operator !=((GVector const &)*arg2);
5028 }
5029 catch (const GException::out_of_range& e) {
5030 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5031 }
5032 catch (const GExceptionHandler& e) {
5033 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5034 }
5035 catch (const std::exception& e) {
5036 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5037 }
5038 }
5039 resultobj = SWIG_From_bool(static_cast< bool >(result));
5040 return resultobj;
5041fail:
5042 return NULL__null;
5043}
5044
5045
5046SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5047 PyObject *resultobj = 0;
5048 GVector *arg1 = (GVector *) 0 ;
5049 GVector *arg2 = 0 ;
5050 void *argp1 = 0 ;
5051 int res1 = 0 ;
5052 void *argp2 = 0 ;
5053 int res2 = 0 ;
5054 PyObject * obj0 = 0 ;
5055 PyObject * obj1 = 0 ;
5056 GVector *result = 0 ;
5057
5058 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
5059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5060 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___iadd__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___iadd__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5062 }
5063 arg1 = reinterpret_cast< GVector * >(argp1);
5064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5065 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___iadd__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___iadd__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
5067 }
5068 if (!argp2) {
5069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___iadd__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___iadd__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
5070 }
5071 arg2 = reinterpret_cast< GVector * >(argp2);
5072 {
5073 try {
5074 result = (GVector *) &(arg1)->operator +=((GVector const &)*arg2);
5075 }
5076 catch (const GException::out_of_range& e) {
5077 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5078 }
5079 catch (const GExceptionHandler& e) {
5080 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5081 }
5082 catch (const std::exception& e) {
5083 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5084 }
5085 }
5086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5087 return resultobj;
5088fail:
5089 return NULL__null;
5090}
5091
5092
5093SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5094 PyObject *resultobj = 0;
5095 GVector *arg1 = (GVector *) 0 ;
5096 GVector *arg2 = 0 ;
5097 void *argp1 = 0 ;
5098 int res1 = 0 ;
5099 void *argp2 = 0 ;
5100 int res2 = 0 ;
5101 PyObject * obj0 = 0 ;
5102 PyObject * obj1 = 0 ;
5103 GVector *result = 0 ;
5104
5105 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___isub__",&obj0,&obj1)) SWIG_failgoto fail;
5106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5107 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___isub__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___isub__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5109 }
5110 arg1 = reinterpret_cast< GVector * >(argp1);
5111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5112 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___isub__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___isub__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
5114 }
5115 if (!argp2) {
5116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___isub__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___isub__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
5117 }
5118 arg2 = reinterpret_cast< GVector * >(argp2);
5119 {
5120 try {
5121 result = (GVector *) &(arg1)->operator -=((GVector const &)*arg2);
5122 }
5123 catch (const GException::out_of_range& e) {
5124 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5125 }
5126 catch (const GExceptionHandler& e) {
5127 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5128 }
5129 catch (const std::exception& e) {
5130 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5131 }
5132 }
5133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5134 return resultobj;
5135fail:
5136 return NULL__null;
5137}
5138
5139
5140SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5141 PyObject *resultobj = 0;
5142 GVector *arg1 = (GVector *) 0 ;
5143 double *arg2 = 0 ;
5144 void *argp1 = 0 ;
5145 int res1 = 0 ;
5146 double temp2 ;
5147 double val2 ;
5148 int ecode2 = 0 ;
5149 PyObject * obj0 = 0 ;
5150 PyObject * obj1 = 0 ;
5151 GVector *result = 0 ;
5152
5153 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
5154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5155 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___iadd__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___iadd__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5157 }
5158 arg1 = reinterpret_cast< GVector * >(argp1);
5159 ecode2 = SWIG_AsVal_double(obj1, &val2);
5160 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___iadd__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___iadd__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5162 }
5163 temp2 = static_cast< double >(val2);
5164 arg2 = &temp2;
5165 {
5166 try {
5167 result = (GVector *) &(arg1)->operator +=((double const &)*arg2);
5168 }
5169 catch (const GException::out_of_range& e) {
5170 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5171 }
5172 catch (const GExceptionHandler& e) {
5173 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5174 }
5175 catch (const std::exception& e) {
5176 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5177 }
5178 }
5179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5180 return resultobj;
5181fail:
5182 return NULL__null;
5183}
5184
5185
5186SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___iadd__(PyObject *self, PyObject *args) {
5187 int argc;
5188 PyObject *argv[3];
5189 int ii;
5190
5191 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5192 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5193 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5194 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5195 }
5196 if (argc == 2) {
5197 int _v;
5198 void *vptr = 0;
5199 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5200 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5201 if (_v) {
5202 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
5203 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5204 if (_v) {
5205 return _wrap_GVector___iadd____SWIG_0(self, args);
5206 }
5207 }
5208 }
5209 if (argc == 2) {
5210 int _v;
5211 void *vptr = 0;
5212 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5213 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5214 if (_v) {
5215 {
5216 int res = SWIG_AsVal_double(argv[1], NULL__null);
5217 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5218 }
5219 if (_v) {
5220 return _wrap_GVector___iadd____SWIG_1(self, args);
5221 }
5222 }
5223 }
5224
5225fail:
5226 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GVector___iadd__'.\n"
5227 " Possible C/C++ prototypes are:\n"
5228 " GVector::operator +=(GVector const &)\n"
5229 " GVector::operator +=(double const &)\n");
5230 return 0;
5231}
5232
5233
5234SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5235 PyObject *resultobj = 0;
5236 GVector *arg1 = (GVector *) 0 ;
5237 double *arg2 = 0 ;
5238 void *argp1 = 0 ;
5239 int res1 = 0 ;
5240 double temp2 ;
5241 double val2 ;
5242 int ecode2 = 0 ;
5243 PyObject * obj0 = 0 ;
5244 PyObject * obj1 = 0 ;
5245 GVector *result = 0 ;
5246
5247 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___isub__",&obj0,&obj1)) SWIG_failgoto fail;
5248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5249 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___isub__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___isub__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5251 }
5252 arg1 = reinterpret_cast< GVector * >(argp1);
5253 ecode2 = SWIG_AsVal_double(obj1, &val2);
5254 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___isub__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___isub__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5256 }
5257 temp2 = static_cast< double >(val2);
5258 arg2 = &temp2;
5259 {
5260 try {
5261 result = (GVector *) &(arg1)->operator -=((double const &)*arg2);
5262 }
5263 catch (const GException::out_of_range& e) {
5264 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5265 }
5266 catch (const GExceptionHandler& e) {
5267 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5268 }
5269 catch (const std::exception& e) {
5270 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5271 }
5272 }
5273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5274 return resultobj;
5275fail:
5276 return NULL__null;
5277}
5278
5279
5280SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___isub__(PyObject *self, PyObject *args) {
5281 int argc;
5282 PyObject *argv[3];
5283 int ii;
5284
5285 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5286 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5287 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5288 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5289 }
5290 if (argc == 2) {
5291 int _v;
5292 void *vptr = 0;
5293 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5294 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5295 if (_v) {
5296 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
5297 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5298 if (_v) {
5299 return _wrap_GVector___isub____SWIG_0(self, args);
5300 }
5301 }
5302 }
5303 if (argc == 2) {
5304 int _v;
5305 void *vptr = 0;
5306 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5307 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5308 if (_v) {
5309 {
5310 int res = SWIG_AsVal_double(argv[1], NULL__null);
5311 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5312 }
5313 if (_v) {
5314 return _wrap_GVector___isub____SWIG_1(self, args);
5315 }
5316 }
5317 }
5318
5319fail:
5320 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GVector___isub__'.\n"
5321 " Possible C/C++ prototypes are:\n"
5322 " GVector::operator -=(GVector const &)\n"
5323 " GVector::operator -=(double const &)\n");
5324 return 0;
5325}
5326
5327
5328SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5329 PyObject *resultobj = 0;
5330 GVector *arg1 = (GVector *) 0 ;
5331 double *arg2 = 0 ;
5332 void *argp1 = 0 ;
5333 int res1 = 0 ;
5334 double temp2 ;
5335 double val2 ;
5336 int ecode2 = 0 ;
5337 PyObject * obj0 = 0 ;
5338 PyObject * obj1 = 0 ;
5339 GVector *result = 0 ;
5340
5341 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___imul__",&obj0,&obj1)) SWIG_failgoto fail;
5342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5343 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___imul__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___imul__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5345 }
5346 arg1 = reinterpret_cast< GVector * >(argp1);
5347 ecode2 = SWIG_AsVal_double(obj1, &val2);
5348 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___imul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___imul__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5350 }
5351 temp2 = static_cast< double >(val2);
5352 arg2 = &temp2;
5353 {
5354 try {
5355 result = (GVector *) &(arg1)->operator *=((double const &)*arg2);
5356 }
5357 catch (const GException::out_of_range& e) {
5358 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5359 }
5360 catch (const GExceptionHandler& e) {
5361 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5362 }
5363 catch (const std::exception& e) {
5364 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5365 }
5366 }
5367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5368 return resultobj;
5369fail:
5370 return NULL__null;
5371}
5372
5373
5374SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5375 PyObject *resultobj = 0;
5376 GVector *arg1 = (GVector *) 0 ;
5377 double *arg2 = 0 ;
5378 void *argp1 = 0 ;
5379 int res1 = 0 ;
5380 double temp2 ;
5381 double val2 ;
5382 int ecode2 = 0 ;
5383 PyObject * obj0 = 0 ;
5384 PyObject * obj1 = 0 ;
5385 GVector *result = 0 ;
5386
5387 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___idiv__",&obj0,&obj1)) SWIG_failgoto fail;
5388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5389 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___idiv__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___idiv__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5391 }
5392 arg1 = reinterpret_cast< GVector * >(argp1);
5393 ecode2 = SWIG_AsVal_double(obj1, &val2);
5394 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___idiv__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___idiv__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5396 }
5397 temp2 = static_cast< double >(val2);
5398 arg2 = &temp2;
5399 {
5400 try {
5401 result = (GVector *) &(arg1)->operator /=((double const &)*arg2);
5402 }
5403 catch (const GException::out_of_range& e) {
5404 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5405 }
5406 catch (const GExceptionHandler& e) {
5407 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5408 }
5409 catch (const std::exception& e) {
5410 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5411 }
5412 }
5413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5414 return resultobj;
5415fail:
5416 return NULL__null;
5417}
5418
5419
5420SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5421 PyObject *resultobj = 0;
5422 GVector *arg1 = (GVector *) 0 ;
5423 void *argp1 = 0 ;
5424 int res1 = 0 ;
5425 PyObject * obj0 = 0 ;
5426 GVector result;
5427
5428 if (!PyArg_ParseTuple(args,(char *)"O:GVector___neg__",&obj0)) SWIG_failgoto fail;
5429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5430 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___neg__" "', argument " "1"" of type '" "GVector const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___neg__" "', argument "
"1"" of type '" "GVector const *""'"); goto fail; } while(0)
;
5432 }
5433 arg1 = reinterpret_cast< GVector * >(argp1);
5434 {
5435 try {
5436 result = ((GVector const *)arg1)->operator -();
5437 }
5438 catch (const GException::out_of_range& e) {
5439 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5440 }
5441 catch (const GExceptionHandler& e) {
5442 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5443 }
5444 catch (const std::exception& e) {
5445 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5446 }
5447 }
5448 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
5449 return resultobj;
5450fail:
5451 return NULL__null;
5452}
5453
5454
5455SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5456 PyObject *resultobj = 0;
5457 GVector *arg1 = (GVector *) 0 ;
5458 void *argp1 = 0 ;
5459 int res1 = 0 ;
5460 PyObject * obj0 = 0 ;
5461
5462 if (!PyArg_ParseTuple(args,(char *)"O:GVector_clear",&obj0)) SWIG_failgoto fail;
5463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5464 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_clear" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_clear" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5466 }
5467 arg1 = reinterpret_cast< GVector * >(argp1);
5468 {
5469 try {
5470 (arg1)->clear();
5471 }
5472 catch (const GException::out_of_range& e) {
5473 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5474 }
5475 catch (const GExceptionHandler& e) {
5476 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5477 }
5478 catch (const std::exception& e) {
5479 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5480 }
5481 }
5482 resultobj = SWIG_Py_Void();
5483 return resultobj;
5484fail:
5485 return NULL__null;
5486}
5487
5488
5489SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5490 PyObject *resultobj = 0;
5491 GVector *arg1 = (GVector *) 0 ;
5492 void *argp1 = 0 ;
5493 int res1 = 0 ;
5494 PyObject * obj0 = 0 ;
5495 GVector *result = 0 ;
5496
5497 if (!PyArg_ParseTuple(args,(char *)"O:GVector_clone",&obj0)) SWIG_failgoto fail;
5498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5499 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_clone" "', argument " "1"" of type '" "GVector const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_clone" "', argument "
"1"" of type '" "GVector const *""'"); goto fail; } while(0)
;
5501 }
5502 arg1 = reinterpret_cast< GVector * >(argp1);
5503 {
5504 try {
5505 result = (GVector *)((GVector const *)arg1)->clone();
5506 }
5507 catch (const GException::out_of_range& e) {
5508 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5509 }
5510 catch (const GExceptionHandler& e) {
5511 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5512 }
5513 catch (const std::exception& e) {
5514 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5515 }
5516 }
5517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
5518 return resultobj;
5519fail:
5520 return NULL__null;
5521}
5522
5523
5524SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5525 PyObject *resultobj = 0;
5526 GVector *arg1 = (GVector *) 0 ;
5527 void *argp1 = 0 ;
5528 int res1 = 0 ;
5529 PyObject * obj0 = 0 ;
5530 int *result = 0 ;
5531
5532 if (!PyArg_ParseTuple(args,(char *)"O:GVector_size",&obj0)) SWIG_failgoto fail;
5533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5534 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_size" "', argument " "1"" of type '" "GVector const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_size" "', argument "
"1"" of type '" "GVector const *""'"); goto fail; } while(0)
;
5536 }
5537 arg1 = reinterpret_cast< GVector * >(argp1);
5538 {
5539 try {
5540 result = (int *) &((GVector const *)arg1)->size();
5541 }
5542 catch (const GException::out_of_range& e) {
5543 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5544 }
5545 catch (const GExceptionHandler& e) {
5546 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5547 }
5548 catch (const std::exception& e) {
5549 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5550 }
5551 }
5552 resultobj = SWIG_From_int(static_cast< int >(*result));
5553 return resultobj;
5554fail:
5555 return NULL__null;
5556}
5557
5558
5559SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5560 PyObject *resultobj = 0;
5561 GVector *arg1 = (GVector *) 0 ;
5562 int *arg2 = 0 ;
5563 void *argp1 = 0 ;
5564 int res1 = 0 ;
5565 int temp2 ;
5566 int val2 ;
5567 int ecode2 = 0 ;
5568 PyObject * obj0 = 0 ;
5569 PyObject * obj1 = 0 ;
5570 double *result = 0 ;
5571
5572 if (!PyArg_ParseTuple(args,(char *)"OO:GVector_at",&obj0,&obj1)) SWIG_failgoto fail;
5573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5574 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_at" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_at" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5576 }
5577 arg1 = reinterpret_cast< GVector * >(argp1);
5578 ecode2 = SWIG_AsVal_int(obj1, &val2);
5579 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5581 }
5582 temp2 = static_cast< int >(val2);
5583 arg2 = &temp2;
5584 {
5585 try {
5586 result = (double *) &(arg1)->at((int const &)*arg2);
5587 }
5588 catch (const GException::out_of_range& e) {
5589 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5590 }
5591 catch (const GExceptionHandler& e) {
5592 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5593 }
5594 catch (const std::exception& e) {
5595 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5596 }
5597 }
5598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5599 return resultobj;
5600fail:
5601 return NULL__null;
5602}
5603
5604
5605SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_non_zeros(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5606 PyObject *resultobj = 0;
5607 GVector *arg1 = (GVector *) 0 ;
5608 void *argp1 = 0 ;
5609 int res1 = 0 ;
5610 PyObject * obj0 = 0 ;
5611 int result;
5612
5613 if (!PyArg_ParseTuple(args,(char *)"O:GVector_non_zeros",&obj0)) SWIG_failgoto fail;
5614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5615 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_non_zeros" "', argument " "1"" of type '" "GVector const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_non_zeros" "', argument "
"1"" of type '" "GVector const *""'"); goto fail; } while(0)
;
5617 }
5618 arg1 = reinterpret_cast< GVector * >(argp1);
5619 {
5620 try {
5621 result = (int)((GVector const *)arg1)->non_zeros();
5622 }
5623 catch (const GException::out_of_range& e) {
5624 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5625 }
5626 catch (const GExceptionHandler& e) {
5627 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5628 }
5629 catch (const std::exception& e) {
5630 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5631 }
5632 }
5633 resultobj = SWIG_From_int(static_cast< int >(result));
5634 return resultobj;
5635fail:
5636 return NULL__null;
5637}
5638
5639
5640SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 GVector *arg1 = (GVector *) 0 ;
5643 int *arg2 = 0 ;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 int temp2 ;
5647 int val2 ;
5648 int ecode2 = 0 ;
5649 PyObject * obj0 = 0 ;
5650 PyObject * obj1 = 0 ;
5651 double result;
5652
5653 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
5654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5655 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___getitem__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___getitem__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5657 }
5658 arg1 = reinterpret_cast< GVector * >(argp1);
5659 ecode2 = SWIG_AsVal_int(obj1, &val2);
5660 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5662 }
5663 temp2 = static_cast< int >(val2);
5664 arg2 = &temp2;
5665 {
5666 try {
5667 result = (double)GVector___getitem__(arg1,(int const &)*arg2);
5668 }
5669 catch (const GException::out_of_range& e) {
5670 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5671 }
5672 catch (const GExceptionHandler& e) {
5673 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5674 }
5675 catch (const std::exception& e) {
5676 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5677 }
5678 }
5679 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5680 return resultobj;
5681fail:
5682 return NULL__null;
5683}
5684
5685
5686SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5687 PyObject *resultobj = 0;
5688 GVector *arg1 = (GVector *) 0 ;
5689 int *arg2 = 0 ;
5690 double *arg3 = 0 ;
5691 void *argp1 = 0 ;
5692 int res1 = 0 ;
5693 int temp2 ;
5694 int val2 ;
5695 int ecode2 = 0 ;
5696 double temp3 ;
5697 double val3 ;
5698 int ecode3 = 0 ;
5699 PyObject * obj0 = 0 ;
5700 PyObject * obj1 = 0 ;
5701 PyObject * obj2 = 0 ;
5702
5703 if (!PyArg_ParseTuple(args,(char *)"OOO:GVector___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5705 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___setitem__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___setitem__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5707 }
5708 arg1 = reinterpret_cast< GVector * >(argp1);
5709 ecode2 = SWIG_AsVal_int(obj1, &val2);
5710 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5712 }
5713 temp2 = static_cast< int >(val2);
5714 arg2 = &temp2;
5715 ecode3 = SWIG_AsVal_double(obj2, &val3);
5716 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GVector___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GVector___setitem__" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
5718 }
5719 temp3 = static_cast< double >(val3);
5720 arg3 = &temp3;
5721 {
5722 try {
5723 GVector___setitem__(arg1,(int const &)*arg2,(double const &)*arg3);
5724 }
5725 catch (const GException::out_of_range& e) {
5726 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5727 }
5728 catch (const GExceptionHandler& e) {
5729 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5730 }
5731 catch (const std::exception& e) {
5732 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5733 }
5734 }
5735 resultobj = SWIG_Py_Void();
5736 return resultobj;
5737fail:
5738 return NULL__null;
5739}
5740
5741
5742SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5743 PyObject *resultobj = 0;
5744 GVector *arg1 = (GVector *) 0 ;
5745 GVector *arg2 = 0 ;
5746 void *argp1 = 0 ;
5747 int res1 = 0 ;
5748 void *argp2 = 0 ;
5749 int res2 = 0 ;
5750 PyObject * obj0 = 0 ;
5751 PyObject * obj1 = 0 ;
5752 GVector result;
5753
5754 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___add__",&obj0,&obj1)) SWIG_failgoto fail;
5755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5756 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___add__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___add__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5758 }
5759 arg1 = reinterpret_cast< GVector * >(argp1);
5760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5761 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___add__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___add__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
5763 }
5764 if (!argp2) {
5765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___add__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___add__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
5766 }
5767 arg2 = reinterpret_cast< GVector * >(argp2);
5768 {
5769 try {
5770 result = GVector___add____SWIG_0(arg1,(GVector const &)*arg2);
5771 }
5772 catch (const GException::out_of_range& e) {
5773 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5774 }
5775 catch (const GExceptionHandler& e) {
5776 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5777 }
5778 catch (const std::exception& e) {
5779 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5780 }
5781 }
5782 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
5783 return resultobj;
5784fail:
5785 return NULL__null;
5786}
5787
5788
5789SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5790 PyObject *resultobj = 0;
5791 GVector *arg1 = (GVector *) 0 ;
5792 double *arg2 = 0 ;
5793 void *argp1 = 0 ;
5794 int res1 = 0 ;
5795 double temp2 ;
5796 double val2 ;
5797 int ecode2 = 0 ;
5798 PyObject * obj0 = 0 ;
5799 PyObject * obj1 = 0 ;
5800 GVector result;
5801
5802 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___add__",&obj0,&obj1)) SWIG_failgoto fail;
5803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5804 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___add__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___add__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5806 }
5807 arg1 = reinterpret_cast< GVector * >(argp1);
5808 ecode2 = SWIG_AsVal_double(obj1, &val2);
5809 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___add__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___add__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5811 }
5812 temp2 = static_cast< double >(val2);
5813 arg2 = &temp2;
5814 {
5815 try {
5816 result = GVector___add____SWIG_1(arg1,(double const &)*arg2);
5817 }
5818 catch (const GException::out_of_range& e) {
5819 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5820 }
5821 catch (const GExceptionHandler& e) {
5822 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5823 }
5824 catch (const std::exception& e) {
5825 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5826 }
5827 }
5828 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
5829 return resultobj;
5830fail:
5831 return NULL__null;
5832}
5833
5834
5835SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___add__(PyObject *self, PyObject *args) {
5836 int argc;
5837 PyObject *argv[3];
5838 int ii;
5839
5840 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5841 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5842 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5843 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5844 }
5845 if (argc == 2) {
5846 int _v;
5847 void *vptr = 0;
5848 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5849 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5850 if (_v) {
5851 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
5852 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5853 if (_v) {
5854 return _wrap_GVector___add____SWIG_0(self, args);
5855 }
5856 }
5857 }
5858 if (argc == 2) {
5859 int _v;
5860 void *vptr = 0;
5861 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5862 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5863 if (_v) {
5864 {
5865 int res = SWIG_AsVal_double(argv[1], NULL__null);
5866 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5867 }
5868 if (_v) {
5869 return _wrap_GVector___add____SWIG_1(self, args);
5870 }
5871 }
5872 }
5873
5874fail:
5875 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
5876 return Py_NotImplemented(&_Py_NotImplementedStruct);
5877}
5878
5879
5880SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5881 PyObject *resultobj = 0;
5882 GVector *arg1 = (GVector *) 0 ;
5883 GVector *arg2 = 0 ;
5884 void *argp1 = 0 ;
5885 int res1 = 0 ;
5886 void *argp2 = 0 ;
5887 int res2 = 0 ;
5888 PyObject * obj0 = 0 ;
5889 PyObject * obj1 = 0 ;
5890 GVector result;
5891
5892 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___sub__",&obj0,&obj1)) SWIG_failgoto fail;
5893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5894 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___sub__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___sub__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5896 }
5897 arg1 = reinterpret_cast< GVector * >(argp1);
5898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5899 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___sub__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___sub__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
5901 }
5902 if (!argp2) {
5903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___sub__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___sub__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
5904 }
5905 arg2 = reinterpret_cast< GVector * >(argp2);
5906 {
5907 try {
5908 result = GVector___sub____SWIG_0(arg1,(GVector const &)*arg2);
5909 }
5910 catch (const GException::out_of_range& e) {
5911 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5912 }
5913 catch (const GExceptionHandler& e) {
5914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5915 }
5916 catch (const std::exception& e) {
5917 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5918 }
5919 }
5920 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
5921 return resultobj;
5922fail:
5923 return NULL__null;
5924}
5925
5926
5927SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 GVector *arg1 = (GVector *) 0 ;
5930 double *arg2 = 0 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 double temp2 ;
5934 double val2 ;
5935 int ecode2 = 0 ;
5936 PyObject * obj0 = 0 ;
5937 PyObject * obj1 = 0 ;
5938 GVector result;
5939
5940 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___sub__",&obj0,&obj1)) SWIG_failgoto fail;
5941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5942 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___sub__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___sub__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
5944 }
5945 arg1 = reinterpret_cast< GVector * >(argp1);
5946 ecode2 = SWIG_AsVal_double(obj1, &val2);
5947 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___sub__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___sub__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5949 }
5950 temp2 = static_cast< double >(val2);
5951 arg2 = &temp2;
5952 {
5953 try {
5954 result = GVector___sub____SWIG_1(arg1,(double const &)*arg2);
5955 }
5956 catch (const GException::out_of_range& e) {
5957 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5958 }
5959 catch (const GExceptionHandler& e) {
5960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5961 }
5962 catch (const std::exception& e) {
5963 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5964 }
5965 }
5966 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
5967 return resultobj;
5968fail:
5969 return NULL__null;
5970}
5971
5972
5973SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___sub__(PyObject *self, PyObject *args) {
5974 int argc;
5975 PyObject *argv[3];
5976 int ii;
5977
5978 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5979 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5980 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5981 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5982 }
5983 if (argc == 2) {
5984 int _v;
5985 void *vptr = 0;
5986 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5987 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5988 if (_v) {
5989 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
5990 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5991 if (_v) {
5992 return _wrap_GVector___sub____SWIG_0(self, args);
5993 }
5994 }
5995 }
5996 if (argc == 2) {
5997 int _v;
5998 void *vptr = 0;
5999 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6000 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6001 if (_v) {
6002 {
6003 int res = SWIG_AsVal_double(argv[1], NULL__null);
6004 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6005 }
6006 if (_v) {
6007 return _wrap_GVector___sub____SWIG_1(self, args);
6008 }
6009 }
6010 }
6011
6012fail:
6013 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
6014 return Py_NotImplemented(&_Py_NotImplementedStruct);
6015}
6016
6017
6018SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6019 PyObject *resultobj = 0;
6020 GVector *arg1 = (GVector *) 0 ;
6021 GVector *arg2 = 0 ;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 void *argp2 = 0 ;
6025 int res2 = 0 ;
6026 PyObject * obj0 = 0 ;
6027 PyObject * obj1 = 0 ;
6028 double result;
6029
6030 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___mul__",&obj0,&obj1)) SWIG_failgoto fail;
6031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6032 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___mul__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___mul__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6034 }
6035 arg1 = reinterpret_cast< GVector * >(argp1);
6036 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6037 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___mul__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
6039 }
6040 if (!argp2) {
6041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___mul__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
6042 }
6043 arg2 = reinterpret_cast< GVector * >(argp2);
6044 {
6045 try {
6046 result = (double)GVector___mul____SWIG_0(arg1,(GVector const &)*arg2);
6047 }
6048 catch (const GException::out_of_range& e) {
6049 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6050 }
6051 catch (const GExceptionHandler& e) {
6052 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6053 }
6054 catch (const std::exception& e) {
6055 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6056 }
6057 }
6058 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6059 return resultobj;
6060fail:
6061 return NULL__null;
6062}
6063
6064
6065SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6066 PyObject *resultobj = 0;
6067 GVector *arg1 = (GVector *) 0 ;
6068 double *arg2 = 0 ;
6069 void *argp1 = 0 ;
6070 int res1 = 0 ;
6071 double temp2 ;
6072 double val2 ;
6073 int ecode2 = 0 ;
6074 PyObject * obj0 = 0 ;
6075 PyObject * obj1 = 0 ;
6076 GVector result;
6077
6078 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___mul__",&obj0,&obj1)) SWIG_failgoto fail;
6079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6080 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___mul__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___mul__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6082 }
6083 arg1 = reinterpret_cast< GVector * >(argp1);
6084 ecode2 = SWIG_AsVal_double(obj1, &val2);
6085 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___mul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___mul__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6087 }
6088 temp2 = static_cast< double >(val2);
6089 arg2 = &temp2;
6090 {
6091 try {
6092 result = GVector___mul____SWIG_1(arg1,(double const &)*arg2);
6093 }
6094 catch (const GException::out_of_range& e) {
6095 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6096 }
6097 catch (const GExceptionHandler& e) {
6098 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6099 }
6100 catch (const std::exception& e) {
6101 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6102 }
6103 }
6104 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6105 return resultobj;
6106fail:
6107 return NULL__null;
6108}
6109
6110
6111SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___mul__(PyObject *self, PyObject *args) {
6112 int argc;
6113 PyObject *argv[3];
6114 int ii;
6115
6116 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6117 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6118 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6119 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6120 }
6121 if (argc == 2) {
6122 int _v;
6123 void *vptr = 0;
6124 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6125 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6126 if (_v) {
6127 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
6128 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6129 if (_v) {
6130 return _wrap_GVector___mul____SWIG_0(self, args);
6131 }
6132 }
6133 }
6134 if (argc == 2) {
6135 int _v;
6136 void *vptr = 0;
6137 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6138 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6139 if (_v) {
6140 {
6141 int res = SWIG_AsVal_double(argv[1], NULL__null);
6142 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6143 }
6144 if (_v) {
6145 return _wrap_GVector___mul____SWIG_1(self, args);
6146 }
6147 }
6148 }
6149
6150fail:
6151 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
6152 return Py_NotImplemented(&_Py_NotImplementedStruct);
6153}
6154
6155
6156SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6157 PyObject *resultobj = 0;
6158 GVector *arg1 = (GVector *) 0 ;
6159 double *arg2 = 0 ;
6160 void *argp1 = 0 ;
6161 int res1 = 0 ;
6162 double temp2 ;
6163 double val2 ;
6164 int ecode2 = 0 ;
6165 PyObject * obj0 = 0 ;
6166 PyObject * obj1 = 0 ;
6167 GVector result;
6168
6169 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___div__",&obj0,&obj1)) SWIG_failgoto fail;
6170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6171 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___div__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___div__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6173 }
6174 arg1 = reinterpret_cast< GVector * >(argp1);
6175 ecode2 = SWIG_AsVal_double(obj1, &val2);
6176 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GVector___div__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GVector___div__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6178 }
6179 temp2 = static_cast< double >(val2);
6180 arg2 = &temp2;
6181 {
6182 try {
6183 result = GVector___div__(arg1,(double const &)*arg2);
6184 }
6185 catch (const GException::out_of_range& e) {
6186 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6187 }
6188 catch (const GExceptionHandler& e) {
6189 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6190 }
6191 catch (const std::exception& e) {
6192 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6193 }
6194 }
6195 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6196 return resultobj;
6197fail:
6198 return NULL__null;
6199}
6200
6201
6202SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector___is__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6203 PyObject *resultobj = 0;
6204 GVector *arg1 = (GVector *) 0 ;
6205 GVector *arg2 = 0 ;
6206 void *argp1 = 0 ;
6207 int res1 = 0 ;
6208 void *argp2 = 0 ;
6209 int res2 = 0 ;
6210 PyObject * obj0 = 0 ;
6211 PyObject * obj1 = 0 ;
6212 int result;
6213
6214 if (!PyArg_ParseTuple(args,(char *)"OO:GVector___is__",&obj0,&obj1)) SWIG_failgoto fail;
6215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6216 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector___is__" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector___is__" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6218 }
6219 arg1 = reinterpret_cast< GVector * >(argp1);
6220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6221 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector___is__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector___is__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
6223 }
6224 if (!argp2) {
6225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector___is__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector___is__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
6226 }
6227 arg2 = reinterpret_cast< GVector * >(argp2);
6228 {
6229 try {
6230 result = (int)GVector___is__(arg1,(GVector const &)*arg2);
6231 }
6232 catch (const GException::out_of_range& e) {
6233 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6234 }
6235 catch (const GExceptionHandler& e) {
6236 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6237 }
6238 catch (const std::exception& e) {
6239 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6240 }
6241 }
6242 resultobj = SWIG_From_int(static_cast< int >(result));
6243 return resultobj;
6244fail:
6245 return NULL__null;
6246}
6247
6248
6249SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6250 PyObject *resultobj = 0;
6251 GVector *arg1 = (GVector *) 0 ;
6252 void *argp1 = 0 ;
6253 int res1 = 0 ;
6254 PyObject * obj0 = 0 ;
6255 GVector result;
6256
6257 if (!PyArg_ParseTuple(args,(char *)"O:GVector_copy",&obj0)) SWIG_failgoto fail;
6258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6259 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_copy" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_copy" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6261 }
6262 arg1 = reinterpret_cast< GVector * >(argp1);
6263 {
6264 try {
6265 result = GVector_copy(arg1);
6266 }
6267 catch (const GException::out_of_range& e) {
6268 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6269 }
6270 catch (const GExceptionHandler& e) {
6271 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6272 }
6273 catch (const std::exception& e) {
6274 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6275 }
6276 }
6277 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6278 return resultobj;
6279fail:
6280 return NULL__null;
6281}
6282
6283
6284SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_cross(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6285 PyObject *resultobj = 0;
6286 GVector *arg1 = (GVector *) 0 ;
6287 GVector *arg2 = 0 ;
6288 void *argp1 = 0 ;
6289 int res1 = 0 ;
6290 void *argp2 = 0 ;
6291 int res2 = 0 ;
6292 PyObject * obj0 = 0 ;
6293 PyObject * obj1 = 0 ;
6294 GVector result;
6295
6296 if (!PyArg_ParseTuple(args,(char *)"OO:GVector_cross",&obj0,&obj1)) SWIG_failgoto fail;
6297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6298 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_cross" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_cross" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6300 }
6301 arg1 = reinterpret_cast< GVector * >(argp1);
6302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6303 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GVector_cross" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GVector_cross" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
6305 }
6306 if (!argp2) {
6307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GVector_cross" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GVector_cross" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
6308 }
6309 arg2 = reinterpret_cast< GVector * >(argp2);
6310 {
6311 try {
6312 result = GVector_cross(arg1,(GVector const &)*arg2);
6313 }
6314 catch (const GException::out_of_range& e) {
6315 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6316 }
6317 catch (const GExceptionHandler& e) {
6318 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6319 }
6320 catch (const std::exception& e) {
6321 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6322 }
6323 }
6324 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6325 return resultobj;
6326fail:
6327 return NULL__null;
6328}
6329
6330
6331SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_norm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6332 PyObject *resultobj = 0;
6333 GVector *arg1 = (GVector *) 0 ;
6334 void *argp1 = 0 ;
6335 int res1 = 0 ;
6336 PyObject * obj0 = 0 ;
6337 double result;
6338
6339 if (!PyArg_ParseTuple(args,(char *)"O:GVector_norm",&obj0)) SWIG_failgoto fail;
6340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6341 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_norm" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_norm" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6343 }
6344 arg1 = reinterpret_cast< GVector * >(argp1);
6345 {
6346 try {
6347 result = (double)GVector_norm(arg1);
6348 }
6349 catch (const GException::out_of_range& e) {
6350 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6351 }
6352 catch (const GExceptionHandler& e) {
6353 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6354 }
6355 catch (const std::exception& e) {
6356 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6357 }
6358 }
6359 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6360 return resultobj;
6361fail:
6362 return NULL__null;
6363}
6364
6365
6366SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6367 PyObject *resultobj = 0;
6368 GVector *arg1 = (GVector *) 0 ;
6369 void *argp1 = 0 ;
6370 int res1 = 0 ;
6371 PyObject * obj0 = 0 ;
6372 double result;
6373
6374 if (!PyArg_ParseTuple(args,(char *)"O:GVector_min",&obj0)) SWIG_failgoto fail;
6375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6376 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_min" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_min" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6378 }
6379 arg1 = reinterpret_cast< GVector * >(argp1);
6380 {
6381 try {
6382 result = (double)GVector_min(arg1);
6383 }
6384 catch (const GException::out_of_range& e) {
6385 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6386 }
6387 catch (const GExceptionHandler& e) {
6388 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6389 }
6390 catch (const std::exception& e) {
6391 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6392 }
6393 }
6394 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6395 return resultobj;
6396fail:
6397 return NULL__null;
6398}
6399
6400
6401SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6402 PyObject *resultobj = 0;
6403 GVector *arg1 = (GVector *) 0 ;
6404 void *argp1 = 0 ;
6405 int res1 = 0 ;
6406 PyObject * obj0 = 0 ;
6407 double result;
6408
6409 if (!PyArg_ParseTuple(args,(char *)"O:GVector_max",&obj0)) SWIG_failgoto fail;
6410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6411 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_max" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_max" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6413 }
6414 arg1 = reinterpret_cast< GVector * >(argp1);
6415 {
6416 try {
6417 result = (double)GVector_max(arg1);
6418 }
6419 catch (const GException::out_of_range& e) {
6420 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6421 }
6422 catch (const GExceptionHandler& e) {
6423 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6424 }
6425 catch (const std::exception& e) {
6426 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6427 }
6428 }
6429 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6430 return resultobj;
6431fail:
6432 return NULL__null;
6433}
6434
6435
6436SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6437 PyObject *resultobj = 0;
6438 GVector *arg1 = (GVector *) 0 ;
6439 void *argp1 = 0 ;
6440 int res1 = 0 ;
6441 PyObject * obj0 = 0 ;
6442 double result;
6443
6444 if (!PyArg_ParseTuple(args,(char *)"O:GVector_sum",&obj0)) SWIG_failgoto fail;
6445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6446 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_sum" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_sum" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6448 }
6449 arg1 = reinterpret_cast< GVector * >(argp1);
6450 {
6451 try {
6452 result = (double)GVector_sum(arg1);
6453 }
6454 catch (const GException::out_of_range& e) {
6455 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6456 }
6457 catch (const GExceptionHandler& e) {
6458 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6459 }
6460 catch (const std::exception& e) {
6461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6462 }
6463 }
6464 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6465 return resultobj;
6466fail:
6467 return NULL__null;
6468}
6469
6470
6471SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_acos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6472 PyObject *resultobj = 0;
6473 GVector *arg1 = (GVector *) 0 ;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject * obj0 = 0 ;
6477 GVector result;
6478
6479 if (!PyArg_ParseTuple(args,(char *)"O:GVector_acos",&obj0)) SWIG_failgoto fail;
6480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6481 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_acos" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_acos" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6483 }
6484 arg1 = reinterpret_cast< GVector * >(argp1);
6485 {
6486 try {
6487 result = GVector_acos(arg1);
6488 }
6489 catch (const GException::out_of_range& e) {
6490 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6491 }
6492 catch (const GExceptionHandler& e) {
6493 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6494 }
6495 catch (const std::exception& e) {
6496 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6497 }
6498 }
6499 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6500 return resultobj;
6501fail:
6502 return NULL__null;
6503}
6504
6505
6506SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_acosh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6507 PyObject *resultobj = 0;
6508 GVector *arg1 = (GVector *) 0 ;
6509 void *argp1 = 0 ;
6510 int res1 = 0 ;
6511 PyObject * obj0 = 0 ;
6512 GVector result;
6513
6514 if (!PyArg_ParseTuple(args,(char *)"O:GVector_acosh",&obj0)) SWIG_failgoto fail;
6515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6516 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_acosh" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_acosh" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6518 }
6519 arg1 = reinterpret_cast< GVector * >(argp1);
6520 {
6521 try {
6522 result = GVector_acosh(arg1);
6523 }
6524 catch (const GException::out_of_range& e) {
6525 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6526 }
6527 catch (const GExceptionHandler& e) {
6528 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6529 }
6530 catch (const std::exception& e) {
6531 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6532 }
6533 }
6534 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6535 return resultobj;
6536fail:
6537 return NULL__null;
6538}
6539
6540
6541SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_asin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6542 PyObject *resultobj = 0;
6543 GVector *arg1 = (GVector *) 0 ;
6544 void *argp1 = 0 ;
6545 int res1 = 0 ;
6546 PyObject * obj0 = 0 ;
6547 GVector result;
6548
6549 if (!PyArg_ParseTuple(args,(char *)"O:GVector_asin",&obj0)) SWIG_failgoto fail;
6550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6551 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_asin" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_asin" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6553 }
6554 arg1 = reinterpret_cast< GVector * >(argp1);
6555 {
6556 try {
6557 result = GVector_asin(arg1);
6558 }
6559 catch (const GException::out_of_range& e) {
6560 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6561 }
6562 catch (const GExceptionHandler& e) {
6563 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6564 }
6565 catch (const std::exception& e) {
6566 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6567 }
6568 }
6569 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6570 return resultobj;
6571fail:
6572 return NULL__null;
6573}
6574
6575
6576SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_asinh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6577 PyObject *resultobj = 0;
6578 GVector *arg1 = (GVector *) 0 ;
6579 void *argp1 = 0 ;
6580 int res1 = 0 ;
6581 PyObject * obj0 = 0 ;
6582 GVector result;
6583
6584 if (!PyArg_ParseTuple(args,(char *)"O:GVector_asinh",&obj0)) SWIG_failgoto fail;
6585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6586 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_asinh" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_asinh" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6588 }
6589 arg1 = reinterpret_cast< GVector * >(argp1);
6590 {
6591 try {
6592 result = GVector_asinh(arg1);
6593 }
6594 catch (const GException::out_of_range& e) {
6595 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6596 }
6597 catch (const GExceptionHandler& e) {
6598 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6599 }
6600 catch (const std::exception& e) {
6601 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6602 }
6603 }
6604 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6605 return resultobj;
6606fail:
6607 return NULL__null;
6608}
6609
6610
6611SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_atan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 GVector *arg1 = (GVector *) 0 ;
6614 void *argp1 = 0 ;
6615 int res1 = 0 ;
6616 PyObject * obj0 = 0 ;
6617 GVector result;
6618
6619 if (!PyArg_ParseTuple(args,(char *)"O:GVector_atan",&obj0)) SWIG_failgoto fail;
6620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6621 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_atan" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_atan" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6623 }
6624 arg1 = reinterpret_cast< GVector * >(argp1);
6625 {
6626 try {
6627 result = GVector_atan(arg1);
6628 }
6629 catch (const GException::out_of_range& e) {
6630 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6631 }
6632 catch (const GExceptionHandler& e) {
6633 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6634 }
6635 catch (const std::exception& e) {
6636 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6637 }
6638 }
6639 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6640 return resultobj;
6641fail:
6642 return NULL__null;
6643}
6644
6645
6646SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_atanh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6647 PyObject *resultobj = 0;
6648 GVector *arg1 = (GVector *) 0 ;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject * obj0 = 0 ;
6652 GVector result;
6653
6654 if (!PyArg_ParseTuple(args,(char *)"O:GVector_atanh",&obj0)) SWIG_failgoto fail;
6655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6656 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_atanh" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_atanh" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6658 }
6659 arg1 = reinterpret_cast< GVector * >(argp1);
6660 {
6661 try {
6662 result = GVector_atanh(arg1);
6663 }
6664 catch (const GException::out_of_range& e) {
6665 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6666 }
6667 catch (const GExceptionHandler& e) {
6668 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6669 }
6670 catch (const std::exception& e) {
6671 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6672 }
6673 }
6674 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6675 return resultobj;
6676fail:
6677 return NULL__null;
6678}
6679
6680
6681SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_cos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6682 PyObject *resultobj = 0;
6683 GVector *arg1 = (GVector *) 0 ;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 PyObject * obj0 = 0 ;
6687 GVector result;
6688
6689 if (!PyArg_ParseTuple(args,(char *)"O:GVector_cos",&obj0)) SWIG_failgoto fail;
6690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6691 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_cos" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_cos" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6693 }
6694 arg1 = reinterpret_cast< GVector * >(argp1);
6695 {
6696 try {
6697 result = GVector_cos(arg1);
6698 }
6699 catch (const GException::out_of_range& e) {
6700 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6701 }
6702 catch (const GExceptionHandler& e) {
6703 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6704 }
6705 catch (const std::exception& e) {
6706 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6707 }
6708 }
6709 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6710 return resultobj;
6711fail:
6712 return NULL__null;
6713}
6714
6715
6716SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_cosh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6717 PyObject *resultobj = 0;
6718 GVector *arg1 = (GVector *) 0 ;
6719 void *argp1 = 0 ;
6720 int res1 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 GVector result;
6723
6724 if (!PyArg_ParseTuple(args,(char *)"O:GVector_cosh",&obj0)) SWIG_failgoto fail;
6725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6726 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_cosh" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_cosh" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6728 }
6729 arg1 = reinterpret_cast< GVector * >(argp1);
6730 {
6731 try {
6732 result = GVector_cosh(arg1);
6733 }
6734 catch (const GException::out_of_range& e) {
6735 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6736 }
6737 catch (const GExceptionHandler& e) {
6738 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6739 }
6740 catch (const std::exception& e) {
6741 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6742 }
6743 }
6744 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6745 return resultobj;
6746fail:
6747 return NULL__null;
6748}
6749
6750
6751SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_exp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6752 PyObject *resultobj = 0;
6753 GVector *arg1 = (GVector *) 0 ;
6754 void *argp1 = 0 ;
6755 int res1 = 0 ;
6756 PyObject * obj0 = 0 ;
6757 GVector result;
6758
6759 if (!PyArg_ParseTuple(args,(char *)"O:GVector_exp",&obj0)) SWIG_failgoto fail;
6760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6761 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_exp" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_exp" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6763 }
6764 arg1 = reinterpret_cast< GVector * >(argp1);
6765 {
6766 try {
6767 result = GVector_exp(arg1);
6768 }
6769 catch (const GException::out_of_range& e) {
6770 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6771 }
6772 catch (const GExceptionHandler& e) {
6773 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6774 }
6775 catch (const std::exception& e) {
6776 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6777 }
6778 }
6779 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6780 return resultobj;
6781fail:
6782 return NULL__null;
6783}
6784
6785
6786SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_abs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6787 PyObject *resultobj = 0;
6788 GVector *arg1 = (GVector *) 0 ;
6789 void *argp1 = 0 ;
6790 int res1 = 0 ;
6791 PyObject * obj0 = 0 ;
6792 GVector result;
6793
6794 if (!PyArg_ParseTuple(args,(char *)"O:GVector_abs",&obj0)) SWIG_failgoto fail;
6795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6796 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_abs" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_abs" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6798 }
6799 arg1 = reinterpret_cast< GVector * >(argp1);
6800 {
6801 try {
6802 result = GVector_abs(arg1);
6803 }
6804 catch (const GException::out_of_range& e) {
6805 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6806 }
6807 catch (const GExceptionHandler& e) {
6808 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6809 }
6810 catch (const std::exception& e) {
6811 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6812 }
6813 }
6814 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6815 return resultobj;
6816fail:
6817 return NULL__null;
6818}
6819
6820
6821SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6822 PyObject *resultobj = 0;
6823 GVector *arg1 = (GVector *) 0 ;
6824 void *argp1 = 0 ;
6825 int res1 = 0 ;
6826 PyObject * obj0 = 0 ;
6827 GVector result;
6828
6829 if (!PyArg_ParseTuple(args,(char *)"O:GVector_log",&obj0)) SWIG_failgoto fail;
6830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6831 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_log" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_log" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6833 }
6834 arg1 = reinterpret_cast< GVector * >(argp1);
6835 {
6836 try {
6837 result = GVector_log(arg1);
6838 }
6839 catch (const GException::out_of_range& e) {
6840 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6841 }
6842 catch (const GExceptionHandler& e) {
6843 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6844 }
6845 catch (const std::exception& e) {
6846 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6847 }
6848 }
6849 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6850 return resultobj;
6851fail:
6852 return NULL__null;
6853}
6854
6855
6856SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_log10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6857 PyObject *resultobj = 0;
6858 GVector *arg1 = (GVector *) 0 ;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 PyObject * obj0 = 0 ;
6862 GVector result;
6863
6864 if (!PyArg_ParseTuple(args,(char *)"O:GVector_log10",&obj0)) SWIG_failgoto fail;
6865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6866 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_log10" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_log10" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6868 }
6869 arg1 = reinterpret_cast< GVector * >(argp1);
6870 {
6871 try {
6872 result = GVector_log10(arg1);
6873 }
6874 catch (const GException::out_of_range& e) {
6875 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6876 }
6877 catch (const GExceptionHandler& e) {
6878 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6879 }
6880 catch (const std::exception& e) {
6881 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6882 }
6883 }
6884 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6885 return resultobj;
6886fail:
6887 return NULL__null;
6888}
6889
6890
6891SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_sin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6892 PyObject *resultobj = 0;
6893 GVector *arg1 = (GVector *) 0 ;
6894 void *argp1 = 0 ;
6895 int res1 = 0 ;
6896 PyObject * obj0 = 0 ;
6897 GVector result;
6898
6899 if (!PyArg_ParseTuple(args,(char *)"O:GVector_sin",&obj0)) SWIG_failgoto fail;
6900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6901 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_sin" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_sin" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6903 }
6904 arg1 = reinterpret_cast< GVector * >(argp1);
6905 {
6906 try {
6907 result = GVector_sin(arg1);
6908 }
6909 catch (const GException::out_of_range& e) {
6910 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6911 }
6912 catch (const GExceptionHandler& e) {
6913 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6914 }
6915 catch (const std::exception& e) {
6916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6917 }
6918 }
6919 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6920 return resultobj;
6921fail:
6922 return NULL__null;
6923}
6924
6925
6926SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_sinh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6927 PyObject *resultobj = 0;
6928 GVector *arg1 = (GVector *) 0 ;
6929 void *argp1 = 0 ;
6930 int res1 = 0 ;
6931 PyObject * obj0 = 0 ;
6932 GVector result;
6933
6934 if (!PyArg_ParseTuple(args,(char *)"O:GVector_sinh",&obj0)) SWIG_failgoto fail;
6935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6936 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_sinh" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_sinh" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6938 }
6939 arg1 = reinterpret_cast< GVector * >(argp1);
6940 {
6941 try {
6942 result = GVector_sinh(arg1);
6943 }
6944 catch (const GException::out_of_range& e) {
6945 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6946 }
6947 catch (const GExceptionHandler& e) {
6948 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6949 }
6950 catch (const std::exception& e) {
6951 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6952 }
6953 }
6954 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6955 return resultobj;
6956fail:
6957 return NULL__null;
6958}
6959
6960
6961SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_sqrt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6962 PyObject *resultobj = 0;
6963 GVector *arg1 = (GVector *) 0 ;
6964 void *argp1 = 0 ;
6965 int res1 = 0 ;
6966 PyObject * obj0 = 0 ;
6967 GVector result;
6968
6969 if (!PyArg_ParseTuple(args,(char *)"O:GVector_sqrt",&obj0)) SWIG_failgoto fail;
6970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6971 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_sqrt" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_sqrt" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
6973 }
6974 arg1 = reinterpret_cast< GVector * >(argp1);
6975 {
6976 try {
6977 result = GVector_sqrt(arg1);
6978 }
6979 catch (const GException::out_of_range& e) {
6980 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6981 }
6982 catch (const GExceptionHandler& e) {
6983 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6984 }
6985 catch (const std::exception& e) {
6986 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6987 }
6988 }
6989 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
6990 return resultobj;
6991fail:
6992 return NULL__null;
6993}
6994
6995
6996SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_tan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6997 PyObject *resultobj = 0;
6998 GVector *arg1 = (GVector *) 0 ;
6999 void *argp1 = 0 ;
7000 int res1 = 0 ;
7001 PyObject * obj0 = 0 ;
7002 GVector result;
7003
7004 if (!PyArg_ParseTuple(args,(char *)"O:GVector_tan",&obj0)) SWIG_failgoto fail;
7005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
7006 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_tan" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_tan" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
7008 }
7009 arg1 = reinterpret_cast< GVector * >(argp1);
7010 {
7011 try {
7012 result = GVector_tan(arg1);
7013 }
7014 catch (const GException::out_of_range& e) {
7015 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7016 }
7017 catch (const GExceptionHandler& e) {
7018 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7019 }
7020 catch (const std::exception& e) {
7021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7022 }
7023 }
7024 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
7025 return resultobj;
7026fail:
7027 return NULL__null;
7028}
7029
7030
7031SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GVector_tanh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7032 PyObject *resultobj = 0;
7033 GVector *arg1 = (GVector *) 0 ;
7034 void *argp1 = 0 ;
7035 int res1 = 0 ;
7036 PyObject * obj0 = 0 ;
7037 GVector result;
7038
7039 if (!PyArg_ParseTuple(args,(char *)"O:GVector_tanh",&obj0)) SWIG_failgoto fail;
7040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
7041 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GVector_tanh" "', argument " "1"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GVector_tanh" "', argument "
"1"" of type '" "GVector *""'"); goto fail; } while(0)
;
7043 }
7044 arg1 = reinterpret_cast< GVector * >(argp1);
7045 {
7046 try {
7047 result = GVector_tanh(arg1);
7048 }
7049 catch (const GException::out_of_range& e) {
7050 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7051 }
7052 catch (const GExceptionHandler& e) {
7053 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7054 }
7055 catch (const std::exception& e) {
7056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7057 }
7058 }
7059 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
7060 return resultobj;
7061fail:
7062 return NULL__null;
7063}
7064
7065
7066SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7067 PyObject *obj;
7068 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
7069 SWIG_TypeNewClientData(SWIGTYPE_p_GVectorswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
7070 return SWIG_Py_Void();
7071}
7072
7073SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GMatrixBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7074 PyObject *resultobj = 0;
7075 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7076 void *argp1 = 0 ;
7077 int res1 = 0 ;
7078 PyObject * obj0 = 0 ;
7079
7080 if (!PyArg_ParseTuple(args,(char *)"O:delete_GMatrixBase",&obj0)) SWIG_failgoto fail;
7081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0x1 | 0, 0)
;
7082 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GMatrixBase" "', argument " "1"" of type '" "GMatrixBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GMatrixBase" "', argument "
"1"" of type '" "GMatrixBase *""'"); goto fail; } while(0)
;
7084 }
7085 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7086 {
7087 try {
7088 delete arg1;
7089 }
7090 catch (const GException::out_of_range& e) {
7091 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7092 }
7093 catch (const GExceptionHandler& e) {
7094 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7095 }
7096 catch (const std::exception& e) {
7097 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7098 }
7099 }
7100 resultobj = SWIG_Py_Void();
7101 return resultobj;
7102fail:
7103 return NULL__null;
7104}
7105
7106
7107SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7108 PyObject *resultobj = 0;
7109 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7110 GMatrixBase *arg2 = 0 ;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 void *argp2 = 0 ;
7114 int res2 = 0 ;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 bool result;
7118
7119 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixBase___eq__",&obj0,&obj1)) SWIG_failgoto fail;
7120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7121 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase___eq__" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase___eq__" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7123 }
7124 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixBase, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
7126 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixBase___eq__" "', argument " "2"" of type '" "GMatrixBase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixBase___eq__" "', argument "
"2"" of type '" "GMatrixBase const &""'"); goto fail; } while
(0)
;
7128 }
7129 if (!argp2) {
7130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixBase___eq__" "', argument " "2"" of type '" "GMatrixBase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixBase___eq__" "', argument " "2"" of type '"
"GMatrixBase const &""'"); goto fail; } while(0)
;
7131 }
7132 arg2 = reinterpret_cast< GMatrixBase * >(argp2);
7133 {
7134 try {
7135 result = (bool)((GMatrixBase const *)arg1)->operator ==((GMatrixBase const &)*arg2);
7136 }
7137 catch (const GException::out_of_range& e) {
7138 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7139 }
7140 catch (const GExceptionHandler& e) {
7141 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7142 }
7143 catch (const std::exception& e) {
7144 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7145 }
7146 }
7147 resultobj = SWIG_From_bool(static_cast< bool >(result));
7148 return resultobj;
7149fail:
7150 return NULL__null;
7151}
7152
7153
7154SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7155 PyObject *resultobj = 0;
7156 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7157 GMatrixBase *arg2 = 0 ;
7158 void *argp1 = 0 ;
7159 int res1 = 0 ;
7160 void *argp2 = 0 ;
7161 int res2 = 0 ;
7162 PyObject * obj0 = 0 ;
7163 PyObject * obj1 = 0 ;
7164 bool result;
7165
7166 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixBase___ne__",&obj0,&obj1)) SWIG_failgoto fail;
7167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7168 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase___ne__" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase___ne__" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7170 }
7171 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixBase, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
7173 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixBase___ne__" "', argument " "2"" of type '" "GMatrixBase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixBase___ne__" "', argument "
"2"" of type '" "GMatrixBase const &""'"); goto fail; } while
(0)
;
7175 }
7176 if (!argp2) {
7177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixBase___ne__" "', argument " "2"" of type '" "GMatrixBase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixBase___ne__" "', argument " "2"" of type '"
"GMatrixBase const &""'"); goto fail; } while(0)
;
7178 }
7179 arg2 = reinterpret_cast< GMatrixBase * >(argp2);
7180 {
7181 try {
7182 result = (bool)((GMatrixBase const *)arg1)->operator !=((GMatrixBase const &)*arg2);
7183 }
7184 catch (const GException::out_of_range& e) {
7185 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7186 }
7187 catch (const GExceptionHandler& e) {
7188 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7189 }
7190 catch (const std::exception& e) {
7191 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7192 }
7193 }
7194 resultobj = SWIG_From_bool(static_cast< bool >(result));
7195 return resultobj;
7196fail:
7197 return NULL__null;
7198}
7199
7200
7201SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7202 PyObject *resultobj = 0;
7203 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7204 void *argp1 = 0 ;
7205 int res1 = 0 ;
7206 PyObject * obj0 = 0 ;
7207
7208 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_clear",&obj0)) SWIG_failgoto fail;
7209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7210 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_clear" "', argument " "1"" of type '" "GMatrixBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_clear" "', argument "
"1"" of type '" "GMatrixBase *""'"); goto fail; } while(0)
;
7212 }
7213 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7214 {
7215 try {
7216 (arg1)->clear();
7217 }
7218 catch (const GException::out_of_range& e) {
7219 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7220 }
7221 catch (const GExceptionHandler& e) {
7222 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7223 }
7224 catch (const std::exception& e) {
7225 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7226 }
7227 }
7228 resultobj = SWIG_Py_Void();
7229 return resultobj;
7230fail:
7231 return NULL__null;
7232}
7233
7234
7235SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7236 PyObject *resultobj = 0;
7237 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7238 void *argp1 = 0 ;
7239 int res1 = 0 ;
7240 PyObject * obj0 = 0 ;
7241 GMatrixBase *result = 0 ;
7242
7243 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_clone",&obj0)) SWIG_failgoto fail;
7244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7245 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_clone" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_clone" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7247 }
7248 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7249 {
7250 try {
7251 result = (GMatrixBase *)((GMatrixBase const *)arg1)->clone();
7252 }
7253 catch (const GException::out_of_range& e) {
7254 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7255 }
7256 catch (const GExceptionHandler& e) {
7257 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7258 }
7259 catch (const std::exception& e) {
7260 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7261 }
7262 }
7263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[2], 0 |
0)
;
7264 return resultobj;
7265fail:
7266 return NULL__null;
7267}
7268
7269
7270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7271 PyObject *resultobj = 0;
7272 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7273 int *arg2 = 0 ;
7274 int *arg3 = 0 ;
7275 void *argp1 = 0 ;
7276 int res1 = 0 ;
7277 int temp2 ;
7278 int val2 ;
7279 int ecode2 = 0 ;
7280 int temp3 ;
7281 int val3 ;
7282 int ecode3 = 0 ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 PyObject * obj2 = 0 ;
7286 double *result = 0 ;
7287
7288 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixBase_at",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7290 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_at" "', argument " "1"" of type '" "GMatrixBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_at" "', argument "
"1"" of type '" "GMatrixBase *""'"); goto fail; } while(0)
;
7292 }
7293 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7294 ecode2 = SWIG_AsVal_int(obj1, &val2);
7295 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixBase_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixBase_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7297 }
7298 temp2 = static_cast< int >(val2);
7299 arg2 = &temp2;
7300 ecode3 = SWIG_AsVal_int(obj2, &val3);
7301 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixBase_at" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixBase_at" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
7303 }
7304 temp3 = static_cast< int >(val3);
7305 arg3 = &temp3;
7306 {
7307 try {
7308 result = (double *) &(arg1)->at((int const &)*arg2,(int const &)*arg3);
7309 }
7310 catch (const GException::out_of_range& e) {
7311 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7312 }
7313 catch (const GExceptionHandler& e) {
7314 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7315 }
7316 catch (const std::exception& e) {
7317 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7318 }
7319 }
7320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
7321 return resultobj;
7322fail:
7323 return NULL__null;
7324}
7325
7326
7327SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_row__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7328 PyObject *resultobj = 0;
7329 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7330 int *arg2 = 0 ;
7331 void *argp1 = 0 ;
7332 int res1 = 0 ;
7333 int temp2 ;
7334 int val2 ;
7335 int ecode2 = 0 ;
7336 PyObject * obj0 = 0 ;
7337 PyObject * obj1 = 0 ;
7338 GVector result;
7339
7340 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixBase_row",&obj0,&obj1)) SWIG_failgoto fail;
7341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7342 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_row" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_row" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7344 }
7345 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7346 ecode2 = SWIG_AsVal_int(obj1, &val2);
7347 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixBase_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixBase_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7349 }
7350 temp2 = static_cast< int >(val2);
7351 arg2 = &temp2;
7352 {
7353 try {
7354 result = ((GMatrixBase const *)arg1)->row((int const &)*arg2);
7355 }
7356 catch (const GException::out_of_range& e) {
7357 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7358 }
7359 catch (const GExceptionHandler& e) {
7360 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7361 }
7362 catch (const std::exception& e) {
7363 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7364 }
7365 }
7366 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
7367 return resultobj;
7368fail:
7369 return NULL__null;
7370}
7371
7372
7373SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_row__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7374 PyObject *resultobj = 0;
7375 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7376 int *arg2 = 0 ;
7377 GVector *arg3 = 0 ;
7378 void *argp1 = 0 ;
7379 int res1 = 0 ;
7380 int temp2 ;
7381 int val2 ;
7382 int ecode2 = 0 ;
7383 void *argp3 = 0 ;
7384 int res3 = 0 ;
7385 PyObject * obj0 = 0 ;
7386 PyObject * obj1 = 0 ;
7387 PyObject * obj2 = 0 ;
7388
7389 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixBase_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7391 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_row" "', argument " "1"" of type '" "GMatrixBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_row" "', argument "
"1"" of type '" "GMatrixBase *""'"); goto fail; } while(0)
;
7393 }
7394 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7395 ecode2 = SWIG_AsVal_int(obj1, &val2);
7396 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixBase_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixBase_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7398 }
7399 temp2 = static_cast< int >(val2);
7400 arg2 = &temp2;
7401 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
7402 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixBase_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixBase_row" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
7404 }
7405 if (!argp3) {
7406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixBase_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixBase_row" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
7407 }
7408 arg3 = reinterpret_cast< GVector * >(argp3);
7409 {
7410 try {
7411 (arg1)->row((int const &)*arg2,(GVector const &)*arg3);
7412 }
7413 catch (const GException::out_of_range& e) {
7414 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7415 }
7416 catch (const GExceptionHandler& e) {
7417 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7418 }
7419 catch (const std::exception& e) {
7420 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7421 }
7422 }
7423 resultobj = SWIG_Py_Void();
7424 return resultobj;
7425fail:
7426 return NULL__null;
7427}
7428
7429
7430SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_row(PyObject *self, PyObject *args) {
7431 int argc;
7432 PyObject *argv[4];
7433 int ii;
7434
7435 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7436 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7437 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7438 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7439 }
7440 if (argc == 2) {
7441 int _v;
7442 void *vptr = 0;
7443 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixBase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2
], 0, 0)
;
7444 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7445 if (_v) {
7446 {
7447 int res = SWIG_AsVal_int(argv[1], NULL__null);
7448 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7449 }
7450 if (_v) {
7451 return _wrap_GMatrixBase_row__SWIG_0(self, args);
7452 }
7453 }
7454 }
7455 if (argc == 3) {
7456 int _v;
7457 void *vptr = 0;
7458 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixBase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2
], 0, 0)
;
7459 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7460 if (_v) {
7461 {
7462 int res = SWIG_AsVal_int(argv[1], NULL__null);
7463 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7464 }
7465 if (_v) {
7466 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
7467 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7468 if (_v) {
7469 return _wrap_GMatrixBase_row__SWIG_1(self, args);
7470 }
7471 }
7472 }
7473 }
7474
7475fail:
7476 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixBase_row'.\n"
7477 " Possible C/C++ prototypes are:\n"
7478 " GMatrixBase::row(int const &) const\n"
7479 " GMatrixBase::row(int const &,GVector const &)\n");
7480 return 0;
7481}
7482
7483
7484SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_column__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7485 PyObject *resultobj = 0;
7486 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7487 int *arg2 = 0 ;
7488 void *argp1 = 0 ;
7489 int res1 = 0 ;
7490 int temp2 ;
7491 int val2 ;
7492 int ecode2 = 0 ;
7493 PyObject * obj0 = 0 ;
7494 PyObject * obj1 = 0 ;
7495 GVector result;
7496
7497 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixBase_column",&obj0,&obj1)) SWIG_failgoto fail;
7498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7499 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_column" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_column" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7501 }
7502 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7503 ecode2 = SWIG_AsVal_int(obj1, &val2);
7504 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixBase_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixBase_column" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7506 }
7507 temp2 = static_cast< int >(val2);
7508 arg2 = &temp2;
7509 {
7510 try {
7511 result = ((GMatrixBase const *)arg1)->column((int const &)*arg2);
7512 }
7513 catch (const GException::out_of_range& e) {
7514 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7515 }
7516 catch (const GExceptionHandler& e) {
7517 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7518 }
7519 catch (const std::exception& e) {
7520 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7521 }
7522 }
7523 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
7524 return resultobj;
7525fail:
7526 return NULL__null;
7527}
7528
7529
7530SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_column__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7531 PyObject *resultobj = 0;
7532 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7533 int *arg2 = 0 ;
7534 GVector *arg3 = 0 ;
7535 void *argp1 = 0 ;
7536 int res1 = 0 ;
7537 int temp2 ;
7538 int val2 ;
7539 int ecode2 = 0 ;
7540 void *argp3 = 0 ;
7541 int res3 = 0 ;
7542 PyObject * obj0 = 0 ;
7543 PyObject * obj1 = 0 ;
7544 PyObject * obj2 = 0 ;
7545
7546 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixBase_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7548 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_column" "', argument " "1"" of type '" "GMatrixBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_column" "', argument "
"1"" of type '" "GMatrixBase *""'"); goto fail; } while(0)
;
7550 }
7551 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7552 ecode2 = SWIG_AsVal_int(obj1, &val2);
7553 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixBase_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixBase_column" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7555 }
7556 temp2 = static_cast< int >(val2);
7557 arg2 = &temp2;
7558 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
7559 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7560 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixBase_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixBase_column" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
7561 }
7562 if (!argp3) {
7563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixBase_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixBase_column" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
7564 }
7565 arg3 = reinterpret_cast< GVector * >(argp3);
7566 {
7567 try {
7568 (arg1)->column((int const &)*arg2,(GVector const &)*arg3);
7569 }
7570 catch (const GException::out_of_range& e) {
7571 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7572 }
7573 catch (const GExceptionHandler& e) {
7574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7575 }
7576 catch (const std::exception& e) {
7577 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7578 }
7579 }
7580 resultobj = SWIG_Py_Void();
7581 return resultobj;
7582fail:
7583 return NULL__null;
7584}
7585
7586
7587SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_column(PyObject *self, PyObject *args) {
7588 int argc;
7589 PyObject *argv[4];
7590 int ii;
7591
7592 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7593 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7594 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7595 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7596 }
7597 if (argc == 2) {
7598 int _v;
7599 void *vptr = 0;
7600 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixBase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2
], 0, 0)
;
7601 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7602 if (_v) {
7603 {
7604 int res = SWIG_AsVal_int(argv[1], NULL__null);
7605 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7606 }
7607 if (_v) {
7608 return _wrap_GMatrixBase_column__SWIG_0(self, args);
7609 }
7610 }
7611 }
7612 if (argc == 3) {
7613 int _v;
7614 void *vptr = 0;
7615 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixBase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2
], 0, 0)
;
7616 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7617 if (_v) {
7618 {
7619 int res = SWIG_AsVal_int(argv[1], NULL__null);
7620 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7621 }
7622 if (_v) {
7623 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
7624 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7625 if (_v) {
7626 return _wrap_GMatrixBase_column__SWIG_1(self, args);
7627 }
7628 }
7629 }
7630 }
7631
7632fail:
7633 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixBase_column'.\n"
7634 " Possible C/C++ prototypes are:\n"
7635 " GMatrixBase::column(int const &) const\n"
7636 " GMatrixBase::column(int const &,GVector const &)\n");
7637 return 0;
7638}
7639
7640
7641SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_add_to_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7642 PyObject *resultobj = 0;
7643 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7644 int *arg2 = 0 ;
7645 GVector *arg3 = 0 ;
7646 void *argp1 = 0 ;
7647 int res1 = 0 ;
7648 int temp2 ;
7649 int val2 ;
7650 int ecode2 = 0 ;
7651 void *argp3 = 0 ;
7652 int res3 = 0 ;
7653 PyObject * obj0 = 0 ;
7654 PyObject * obj1 = 0 ;
7655 PyObject * obj2 = 0 ;
7656
7657 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixBase_add_to_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7659 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_add_to_row" "', argument " "1"" of type '" "GMatrixBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_add_to_row" "', argument "
"1"" of type '" "GMatrixBase *""'"); goto fail; } while(0)
;
7661 }
7662 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7663 ecode2 = SWIG_AsVal_int(obj1, &val2);
7664 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixBase_add_to_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixBase_add_to_row"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
7666 }
7667 temp2 = static_cast< int >(val2);
7668 arg2 = &temp2;
7669 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
7670 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7671 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixBase_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixBase_add_to_row" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
7672 }
7673 if (!argp3) {
7674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixBase_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixBase_add_to_row" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
7675 }
7676 arg3 = reinterpret_cast< GVector * >(argp3);
7677 {
7678 try {
7679 (arg1)->add_to_row((int const &)*arg2,(GVector const &)*arg3);
7680 }
7681 catch (const GException::out_of_range& e) {
7682 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7683 }
7684 catch (const GExceptionHandler& e) {
7685 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7686 }
7687 catch (const std::exception& e) {
7688 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7689 }
7690 }
7691 resultobj = SWIG_Py_Void();
7692 return resultobj;
7693fail:
7694 return NULL__null;
7695}
7696
7697
7698SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_add_to_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7699 PyObject *resultobj = 0;
7700 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7701 int *arg2 = 0 ;
7702 GVector *arg3 = 0 ;
7703 void *argp1 = 0 ;
7704 int res1 = 0 ;
7705 int temp2 ;
7706 int val2 ;
7707 int ecode2 = 0 ;
7708 void *argp3 = 0 ;
7709 int res3 = 0 ;
7710 PyObject * obj0 = 0 ;
7711 PyObject * obj1 = 0 ;
7712 PyObject * obj2 = 0 ;
7713
7714 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixBase_add_to_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7716 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_add_to_column" "', argument " "1"" of type '" "GMatrixBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_add_to_column"
"', argument " "1"" of type '" "GMatrixBase *""'"); goto fail
; } while(0)
;
7718 }
7719 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7720 ecode2 = SWIG_AsVal_int(obj1, &val2);
7721 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixBase_add_to_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixBase_add_to_column"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
7723 }
7724 temp2 = static_cast< int >(val2);
7725 arg2 = &temp2;
7726 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
7727 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7728 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixBase_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixBase_add_to_column"
"', argument " "3"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
7729 }
7730 if (!argp3) {
7731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixBase_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixBase_add_to_column" "', argument " "3"
" of type '" "GVector const &""'"); goto fail; } while(0)
;
7732 }
7733 arg3 = reinterpret_cast< GVector * >(argp3);
7734 {
7735 try {
7736 (arg1)->add_to_column((int const &)*arg2,(GVector const &)*arg3);
7737 }
7738 catch (const GException::out_of_range& e) {
7739 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7740 }
7741 catch (const GExceptionHandler& e) {
7742 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7743 }
7744 catch (const std::exception& e) {
7745 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7746 }
7747 }
7748 resultobj = SWIG_Py_Void();
7749 return resultobj;
7750fail:
7751 return NULL__null;
7752}
7753
7754
7755SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7756 PyObject *resultobj = 0;
7757 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7758 void *argp1 = 0 ;
7759 int res1 = 0 ;
7760 PyObject * obj0 = 0 ;
7761 double result;
7762
7763 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_fill",&obj0)) SWIG_failgoto fail;
7764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7765 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_fill" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_fill" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7767 }
7768 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7769 {
7770 try {
7771 result = (double)((GMatrixBase const *)arg1)->fill();
7772 }
7773 catch (const GException::out_of_range& e) {
7774 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7775 }
7776 catch (const GExceptionHandler& e) {
7777 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7778 }
7779 catch (const std::exception& e) {
7780 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7781 }
7782 }
7783 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7784 return resultobj;
7785fail:
7786 return NULL__null;
7787}
7788
7789
7790SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7791 PyObject *resultobj = 0;
7792 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7793 void *argp1 = 0 ;
7794 int res1 = 0 ;
7795 PyObject * obj0 = 0 ;
7796 double result;
7797
7798 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_min",&obj0)) SWIG_failgoto fail;
7799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7800 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_min" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_min" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7802 }
7803 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7804 {
7805 try {
7806 result = (double)((GMatrixBase const *)arg1)->min();
7807 }
7808 catch (const GException::out_of_range& e) {
7809 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7810 }
7811 catch (const GExceptionHandler& e) {
7812 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7813 }
7814 catch (const std::exception& e) {
7815 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7816 }
7817 }
7818 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7819 return resultobj;
7820fail:
7821 return NULL__null;
7822}
7823
7824
7825SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7826 PyObject *resultobj = 0;
7827 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7828 void *argp1 = 0 ;
7829 int res1 = 0 ;
7830 PyObject * obj0 = 0 ;
7831 double result;
7832
7833 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_max",&obj0)) SWIG_failgoto fail;
7834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7835 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_max" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_max" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7837 }
7838 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7839 {
7840 try {
7841 result = (double)((GMatrixBase const *)arg1)->max();
7842 }
7843 catch (const GException::out_of_range& e) {
7844 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7845 }
7846 catch (const GExceptionHandler& e) {
7847 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7848 }
7849 catch (const std::exception& e) {
7850 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7851 }
7852 }
7853 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7854 return resultobj;
7855fail:
7856 return NULL__null;
7857}
7858
7859
7860SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7861 PyObject *resultobj = 0;
7862 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7863 void *argp1 = 0 ;
7864 int res1 = 0 ;
7865 PyObject * obj0 = 0 ;
7866 double result;
7867
7868 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_sum",&obj0)) SWIG_failgoto fail;
7869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7870 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_sum" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_sum" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7872 }
7873 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7874 {
7875 try {
7876 result = (double)((GMatrixBase const *)arg1)->sum();
7877 }
7878 catch (const GException::out_of_range& e) {
7879 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7880 }
7881 catch (const GExceptionHandler& e) {
7882 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7883 }
7884 catch (const std::exception& e) {
7885 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7886 }
7887 }
7888 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7889 return resultobj;
7890fail:
7891 return NULL__null;
7892}
7893
7894
7895SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7896 PyObject *resultobj = 0;
7897 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7898 void *argp1 = 0 ;
7899 int res1 = 0 ;
7900 PyObject * obj0 = 0 ;
7901 int *result = 0 ;
7902
7903 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_size",&obj0)) SWIG_failgoto fail;
7904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7905 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_size" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_size" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7907 }
7908 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7909 {
7910 try {
7911 result = (int *) &((GMatrixBase const *)arg1)->size();
7912 }
7913 catch (const GException::out_of_range& e) {
7914 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7915 }
7916 catch (const GExceptionHandler& e) {
7917 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7918 }
7919 catch (const std::exception& e) {
7920 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7921 }
7922 }
7923 resultobj = SWIG_From_int(static_cast< int >(*result));
7924 return resultobj;
7925fail:
7926 return NULL__null;
7927}
7928
7929
7930SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_columns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7931 PyObject *resultobj = 0;
7932 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7933 void *argp1 = 0 ;
7934 int res1 = 0 ;
7935 PyObject * obj0 = 0 ;
7936 int *result = 0 ;
7937
7938 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_columns",&obj0)) SWIG_failgoto fail;
7939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7940 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_columns" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_columns" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7942 }
7943 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7944 {
7945 try {
7946 result = (int *) &((GMatrixBase const *)arg1)->columns();
7947 }
7948 catch (const GException::out_of_range& e) {
7949 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7950 }
7951 catch (const GExceptionHandler& e) {
7952 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7953 }
7954 catch (const std::exception& e) {
7955 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7956 }
7957 }
7958 resultobj = SWIG_From_int(static_cast< int >(*result));
7959 return resultobj;
7960fail:
7961 return NULL__null;
7962}
7963
7964
7965SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixBase_rows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7966 PyObject *resultobj = 0;
7967 GMatrixBase *arg1 = (GMatrixBase *) 0 ;
7968 void *argp1 = 0 ;
7969 int res1 = 0 ;
7970 PyObject * obj0 = 0 ;
7971 int *result = 0 ;
7972
7973 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixBase_rows",&obj0)) SWIG_failgoto fail;
7974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
7975 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixBase_rows" "', argument " "1"" of type '" "GMatrixBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixBase_rows" "', argument "
"1"" of type '" "GMatrixBase const *""'"); goto fail; } while
(0)
;
7977 }
7978 arg1 = reinterpret_cast< GMatrixBase * >(argp1);
7979 {
7980 try {
7981 result = (int *) &((GMatrixBase const *)arg1)->rows();
7982 }
7983 catch (const GException::out_of_range& e) {
7984 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7985 }
7986 catch (const GExceptionHandler& e) {
7987 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7988 }
7989 catch (const std::exception& e) {
7990 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7991 }
7992 }
7993 resultobj = SWIG_From_int(static_cast< int >(*result));
7994 return resultobj;
7995fail:
7996 return NULL__null;
7997}
7998
7999
8000SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GMatrixBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *obj;
8002 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
8003 SWIG_TypeNewClientData(SWIGTYPE_p_GMatrixBaseswig_types[2], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
8004 return SWIG_Py_Void();
8005}
8006
8007SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8008 PyObject *resultobj = 0;
8009 GMatrix *result = 0 ;
8010
8011 if (!PyArg_ParseTuple(args,(char *)":new_GMatrix")) SWIG_failgoto fail;
8012 {
8013 try {
8014 result = (GMatrix *)new GMatrix();
8015 }
8016 catch (const GException::out_of_range& e) {
8017 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8018 }
8019 catch (const GExceptionHandler& e) {
8020 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8021 }
8022 catch (const std::exception& e) {
8023 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8024 }
8025 }
8026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
8027 return resultobj;
8028fail:
8029 return NULL__null;
8030}
8031
8032
8033SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8034 PyObject *resultobj = 0;
8035 int *arg1 = 0 ;
8036 int *arg2 = 0 ;
8037 int temp1 ;
8038 int val1 ;
8039 int ecode1 = 0 ;
8040 int temp2 ;
8041 int val2 ;
8042 int ecode2 = 0 ;
8043 PyObject * obj0 = 0 ;
8044 PyObject * obj1 = 0 ;
8045 GMatrix *result = 0 ;
8046
8047 if (!PyArg_ParseTuple(args,(char *)"OO:new_GMatrix",&obj0,&obj1)) SWIG_failgoto fail;
8048 ecode1 = SWIG_AsVal_int(obj0, &val1);
8049 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
8050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GMatrix" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GMatrix" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
8051 }
8052 temp1 = static_cast< int >(val1);
8053 arg1 = &temp1;
8054 ecode2 = SWIG_AsVal_int(obj1, &val2);
8055 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GMatrix" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GMatrix" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
8057 }
8058 temp2 = static_cast< int >(val2);
8059 arg2 = &temp2;
8060 {
8061 try {
8062 result = (GMatrix *)new GMatrix((int const &)*arg1,(int const &)*arg2);
8063 }
8064 catch (const GException::out_of_range& e) {
8065 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8066 }
8067 catch (const GExceptionHandler& e) {
8068 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8069 }
8070 catch (const std::exception& e) {
8071 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8072 }
8073 }
8074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
8075 return resultobj;
8076fail:
8077 return NULL__null;
8078}
8079
8080
8081SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8082 PyObject *resultobj = 0;
8083 GMatrix *arg1 = 0 ;
8084 void *argp1 = 0 ;
8085 int res1 = 0 ;
8086 PyObject * obj0 = 0 ;
8087 GMatrix *result = 0 ;
8088
8089 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrix",&obj0)) SWIG_failgoto fail;
8090 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8091 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrix" "', argument "
"1"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
8093 }
8094 if (!argp1) {
8095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrix const &"
"'"); goto fail; } while(0)
;
8096 }
8097 arg1 = reinterpret_cast< GMatrix * >(argp1);
8098 {
8099 try {
8100 result = (GMatrix *)new GMatrix((GMatrix const &)*arg1);
8101 }
8102 catch (const GException::out_of_range& e) {
8103 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8104 }
8105 catch (const GExceptionHandler& e) {
8106 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8107 }
8108 catch (const std::exception& e) {
8109 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8110 }
8111 }
8112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
8113 return resultobj;
8114fail:
8115 return NULL__null;
8116}
8117
8118
8119SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8120 PyObject *resultobj = 0;
8121 GMatrixSymmetric *arg1 = 0 ;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 PyObject * obj0 = 0 ;
8125 GMatrix *result = 0 ;
8126
8127 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrix",&obj0)) SWIG_failgoto fail;
8128 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
8129 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrix" "', argument "
"1"" of type '" "GMatrixSymmetric const &""'"); goto fail
; } while(0)
;
8131 }
8132 if (!argp1) {
8133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrixSymmetric const &"
"'"); goto fail; } while(0)
;
8134 }
8135 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
8136 {
8137 try {
8138 result = (GMatrix *)new GMatrix((GMatrixSymmetric const &)*arg1);
8139 }
8140 catch (const GException::out_of_range& e) {
8141 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8142 }
8143 catch (const GExceptionHandler& e) {
8144 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8145 }
8146 catch (const std::exception& e) {
8147 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8148 }
8149 }
8150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
8151 return resultobj;
8152fail:
8153 return NULL__null;
8154}
8155
8156
8157SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8158 PyObject *resultobj = 0;
8159 GMatrixSparse *arg1 = 0 ;
8160 void *argp1 = 0 ;
8161 int res1 = 0 ;
8162 PyObject * obj0 = 0 ;
8163 GMatrix *result = 0 ;
8164
8165 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrix",&obj0)) SWIG_failgoto fail;
8166 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
8167 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrix" "', argument "
"1"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
8169 }
8170 if (!argp1) {
8171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrix" "', argument " "1"" of type '" "GMatrixSparse const &"
"'"); goto fail; } while(0)
;
8172 }
8173 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
8174 {
8175 try {
8176 result = (GMatrix *)new GMatrix((GMatrixSparse const &)*arg1);
8177 }
8178 catch (const GException::out_of_range& e) {
8179 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8180 }
8181 catch (const GExceptionHandler& e) {
8182 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8183 }
8184 catch (const std::exception& e) {
8185 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8186 }
8187 }
8188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
8189 return resultobj;
8190fail:
8191 return NULL__null;
8192}
8193
8194
8195SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrix(PyObject *self, PyObject *args) {
8196 int argc;
8197 PyObject *argv[3];
8198 int ii;
8199
8200 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8201 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8202 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8203 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8204 }
8205 if (argc == 0) {
8206 return _wrap_new_GMatrix__SWIG_0(self, args);
8207 }
8208 if (argc == 1) {
8209 int _v;
8210 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[1], 0, 0);
8211 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8212 if (_v) {
8213 return _wrap_new_GMatrix__SWIG_2(self, args);
8214 }
8215 }
8216 if (argc == 1) {
8217 int _v;
8218 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0);
8219 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8220 if (_v) {
8221 return _wrap_new_GMatrix__SWIG_3(self, args);
8222 }
8223 }
8224 if (argc == 1) {
8225 int _v;
8226 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0);
8227 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8228 if (_v) {
8229 return _wrap_new_GMatrix__SWIG_4(self, args);
8230 }
8231 }
8232 if (argc == 2) {
8233 int _v;
8234 {
8235 int res = SWIG_AsVal_int(argv[0], NULL__null);
8236 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8237 }
8238 if (_v) {
8239 {
8240 int res = SWIG_AsVal_int(argv[1], NULL__null);
8241 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8242 }
8243 if (_v) {
8244 return _wrap_new_GMatrix__SWIG_1(self, args);
8245 }
8246 }
8247 }
8248
8249fail:
8250 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GMatrix'.\n"
8251 " Possible C/C++ prototypes are:\n"
8252 " GMatrix::GMatrix()\n"
8253 " GMatrix::GMatrix(int const &,int const &)\n"
8254 " GMatrix::GMatrix(GMatrix const &)\n"
8255 " GMatrix::GMatrix(GMatrixSymmetric const &)\n"
8256 " GMatrix::GMatrix(GMatrixSparse const &)\n");
8257 return 0;
8258}
8259
8260
8261SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8262 PyObject *resultobj = 0;
8263 GMatrix *arg1 = (GMatrix *) 0 ;
8264 void *argp1 = 0 ;
8265 int res1 = 0 ;
8266 PyObject * obj0 = 0 ;
8267
8268 if (!PyArg_ParseTuple(args,(char *)"O:delete_GMatrix",&obj0)) SWIG_failgoto fail;
8269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
8270 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GMatrix" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GMatrix" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8272 }
8273 arg1 = reinterpret_cast< GMatrix * >(argp1);
8274 {
8275 try {
8276 delete arg1;
8277 }
8278 catch (const GException::out_of_range& e) {
8279 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8280 }
8281 catch (const GExceptionHandler& e) {
8282 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8283 }
8284 catch (const std::exception& e) {
8285 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8286 }
8287 }
8288 resultobj = SWIG_Py_Void();
8289 return resultobj;
8290fail:
8291 return NULL__null;
8292}
8293
8294
8295SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8296 PyObject *resultobj = 0;
8297 GMatrix *arg1 = (GMatrix *) 0 ;
8298 GMatrix *arg2 = 0 ;
8299 void *argp1 = 0 ;
8300 int res1 = 0 ;
8301 void *argp2 = 0 ;
8302 int res2 = 0 ;
8303 PyObject * obj0 = 0 ;
8304 PyObject * obj1 = 0 ;
8305 GMatrix result;
8306
8307 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___add__",&obj0,&obj1)) SWIG_failgoto fail;
8308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8309 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___add__" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___add__" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
8311 }
8312 arg1 = reinterpret_cast< GMatrix * >(argp1);
8313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1],
0 | 0, 0)
;
8314 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix___add__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix___add__" "', argument "
"2"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
8316 }
8317 if (!argp2) {
8318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix___add__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix___add__" "', argument " "2"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
8319 }
8320 arg2 = reinterpret_cast< GMatrix * >(argp2);
8321 {
8322 try {
8323 result = ((GMatrix const *)arg1)->operator +((GMatrix const &)*arg2);
8324 }
8325 catch (const GException::out_of_range& e) {
8326 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8327 }
8328 catch (const GExceptionHandler& e) {
8329 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8330 }
8331 catch (const std::exception& e) {
8332 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8333 }
8334 }
8335 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
8336 return resultobj;
8337fail:
8338 return NULL__null;
8339}
8340
8341
8342SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8343 PyObject *resultobj = 0;
8344 GMatrix *arg1 = (GMatrix *) 0 ;
8345 GMatrix *arg2 = 0 ;
8346 void *argp1 = 0 ;
8347 int res1 = 0 ;
8348 void *argp2 = 0 ;
8349 int res2 = 0 ;
8350 PyObject * obj0 = 0 ;
8351 PyObject * obj1 = 0 ;
8352 GMatrix result;
8353
8354 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___sub__",&obj0,&obj1)) SWIG_failgoto fail;
8355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8356 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___sub__" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___sub__" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
8358 }
8359 arg1 = reinterpret_cast< GMatrix * >(argp1);
8360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1],
0 | 0, 0)
;
8361 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix___sub__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix___sub__" "', argument "
"2"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
8363 }
8364 if (!argp2) {
8365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix___sub__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix___sub__" "', argument " "2"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
8366 }
8367 arg2 = reinterpret_cast< GMatrix * >(argp2);
8368 {
8369 try {
8370 result = ((GMatrix const *)arg1)->operator -((GMatrix const &)*arg2);
8371 }
8372 catch (const GException::out_of_range& e) {
8373 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8374 }
8375 catch (const GExceptionHandler& e) {
8376 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8377 }
8378 catch (const std::exception& e) {
8379 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8380 }
8381 }
8382 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
8383 return resultobj;
8384fail:
8385 return NULL__null;
8386}
8387
8388
8389SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8390 PyObject *resultobj = 0;
8391 GMatrix *arg1 = (GMatrix *) 0 ;
8392 void *argp1 = 0 ;
8393 int res1 = 0 ;
8394 PyObject * obj0 = 0 ;
8395 GMatrix result;
8396
8397 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix___neg__",&obj0)) SWIG_failgoto fail;
8398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8399 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___neg__" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___neg__" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
8401 }
8402 arg1 = reinterpret_cast< GMatrix * >(argp1);
8403 {
8404 try {
8405 result = ((GMatrix const *)arg1)->operator -();
8406 }
8407 catch (const GException::out_of_range& e) {
8408 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8409 }
8410 catch (const GExceptionHandler& e) {
8411 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8412 }
8413 catch (const std::exception& e) {
8414 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8415 }
8416 }
8417 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
8418 return resultobj;
8419fail:
8420 return NULL__null;
8421}
8422
8423
8424SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8425 PyObject *resultobj = 0;
8426 GMatrix *arg1 = (GMatrix *) 0 ;
8427 GMatrix *arg2 = 0 ;
8428 void *argp1 = 0 ;
8429 int res1 = 0 ;
8430 void *argp2 = 0 ;
8431 int res2 = 0 ;
8432 PyObject * obj0 = 0 ;
8433 PyObject * obj1 = 0 ;
8434 GMatrix *result = 0 ;
8435
8436 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
8437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
8438 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___iadd__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___iadd__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8440 }
8441 arg1 = reinterpret_cast< GMatrix * >(argp1);
8442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1],
0 | 0, 0)
;
8443 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix___iadd__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix___iadd__" "', argument "
"2"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
8445 }
8446 if (!argp2) {
8447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix___iadd__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix___iadd__" "', argument " "2"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
8448 }
8449 arg2 = reinterpret_cast< GMatrix * >(argp2);
8450 {
8451 try {
8452 result = (GMatrix *) &(arg1)->operator +=((GMatrix const &)*arg2);
8453 }
8454 catch (const GException::out_of_range& e) {
8455 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8456 }
8457 catch (const GExceptionHandler& e) {
8458 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8459 }
8460 catch (const std::exception& e) {
8461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8462 }
8463 }
8464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0x1
| 0)
;
8465 return resultobj;
8466fail:
8467 return NULL__null;
8468}
8469
8470
8471SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8472 PyObject *resultobj = 0;
8473 GMatrix *arg1 = (GMatrix *) 0 ;
8474 GMatrix *arg2 = 0 ;
8475 void *argp1 = 0 ;
8476 int res1 = 0 ;
8477 void *argp2 = 0 ;
8478 int res2 = 0 ;
8479 PyObject * obj0 = 0 ;
8480 PyObject * obj1 = 0 ;
8481 GMatrix *result = 0 ;
8482
8483 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___isub__",&obj0,&obj1)) SWIG_failgoto fail;
8484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
8485 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___isub__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___isub__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8487 }
8488 arg1 = reinterpret_cast< GMatrix * >(argp1);
8489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1],
0 | 0, 0)
;
8490 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix___isub__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix___isub__" "', argument "
"2"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
8492 }
8493 if (!argp2) {
8494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix___isub__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix___isub__" "', argument " "2"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
8495 }
8496 arg2 = reinterpret_cast< GMatrix * >(argp2);
8497 {
8498 try {
8499 result = (GMatrix *) &(arg1)->operator -=((GMatrix const &)*arg2);
8500 }
8501 catch (const GException::out_of_range& e) {
8502 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8503 }
8504 catch (const GExceptionHandler& e) {
8505 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8506 }
8507 catch (const std::exception& e) {
8508 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8509 }
8510 }
8511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0x1
| 0)
;
8512 return resultobj;
8513fail:
8514 return NULL__null;
8515}
8516
8517
8518SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8519 PyObject *resultobj = 0;
8520 GMatrix *arg1 = (GMatrix *) 0 ;
8521 GMatrix *arg2 = 0 ;
8522 void *argp1 = 0 ;
8523 int res1 = 0 ;
8524 void *argp2 = 0 ;
8525 int res2 = 0 ;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 GMatrix *result = 0 ;
8529
8530 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___imul__",&obj0,&obj1)) SWIG_failgoto fail;
8531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
8532 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___imul__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___imul__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8534 }
8535 arg1 = reinterpret_cast< GMatrix * >(argp1);
8536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1],
0 | 0, 0)
;
8537 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix___imul__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix___imul__" "', argument "
"2"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
8539 }
8540 if (!argp2) {
8541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix___imul__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix___imul__" "', argument " "2"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
8542 }
8543 arg2 = reinterpret_cast< GMatrix * >(argp2);
8544 {
8545 try {
8546 result = (GMatrix *) &(arg1)->operator *=((GMatrix const &)*arg2);
8547 }
8548 catch (const GException::out_of_range& e) {
8549 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8550 }
8551 catch (const GExceptionHandler& e) {
8552 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8553 }
8554 catch (const std::exception& e) {
8555 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8556 }
8557 }
8558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0x1
| 0)
;
8559 return resultobj;
8560fail:
8561 return NULL__null;
8562}
8563
8564
8565SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8566 PyObject *resultobj = 0;
8567 GMatrix *arg1 = (GMatrix *) 0 ;
8568 double *arg2 = 0 ;
8569 void *argp1 = 0 ;
8570 int res1 = 0 ;
8571 double temp2 ;
8572 double val2 ;
8573 int ecode2 = 0 ;
8574 PyObject * obj0 = 0 ;
8575 PyObject * obj1 = 0 ;
8576 GMatrix *result = 0 ;
8577
8578 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___imul__",&obj0,&obj1)) SWIG_failgoto fail;
8579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
8580 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___imul__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___imul__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8582 }
8583 arg1 = reinterpret_cast< GMatrix * >(argp1);
8584 ecode2 = SWIG_AsVal_double(obj1, &val2);
8585 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix___imul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix___imul__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
8587 }
8588 temp2 = static_cast< double >(val2);
8589 arg2 = &temp2;
8590 {
8591 try {
8592 result = (GMatrix *) &(arg1)->operator *=((double const &)*arg2);
8593 }
8594 catch (const GException::out_of_range& e) {
8595 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8596 }
8597 catch (const GExceptionHandler& e) {
8598 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8599 }
8600 catch (const std::exception& e) {
8601 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8602 }
8603 }
8604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0x1
| 0)
;
8605 return resultobj;
8606fail:
8607 return NULL__null;
8608}
8609
8610
8611SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___imul__(PyObject *self, PyObject *args) {
8612 int argc;
8613 PyObject *argv[3];
8614 int ii;
8615
8616 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8617 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8618 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8619 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8620 }
8621 if (argc == 2) {
8622 int _v;
8623 void *vptr = 0;
8624 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
8625 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8626 if (_v) {
8627 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[1], 0, 0);
8628 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8629 if (_v) {
8630 return _wrap_GMatrix___imul____SWIG_0(self, args);
8631 }
8632 }
8633 }
8634 if (argc == 2) {
8635 int _v;
8636 void *vptr = 0;
8637 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
8638 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8639 if (_v) {
8640 {
8641 int res = SWIG_AsVal_double(argv[1], NULL__null);
8642 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8643 }
8644 if (_v) {
8645 return _wrap_GMatrix___imul____SWIG_1(self, args);
8646 }
8647 }
8648 }
8649
8650fail:
8651 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrix___imul__'.\n"
8652 " Possible C/C++ prototypes are:\n"
8653 " GMatrix::operator *=(GMatrix const &)\n"
8654 " GMatrix::operator *=(double const &)\n");
8655 return 0;
8656}
8657
8658
8659SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8660 PyObject *resultobj = 0;
8661 GMatrix *arg1 = (GMatrix *) 0 ;
8662 double *arg2 = 0 ;
8663 void *argp1 = 0 ;
8664 int res1 = 0 ;
8665 double temp2 ;
8666 double val2 ;
8667 int ecode2 = 0 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 GMatrix *result = 0 ;
8671
8672 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___idiv__",&obj0,&obj1)) SWIG_failgoto fail;
8673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
8674 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___idiv__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___idiv__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8676 }
8677 arg1 = reinterpret_cast< GMatrix * >(argp1);
8678 ecode2 = SWIG_AsVal_double(obj1, &val2);
8679 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix___idiv__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix___idiv__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
8681 }
8682 temp2 = static_cast< double >(val2);
8683 arg2 = &temp2;
8684 {
8685 try {
8686 result = (GMatrix *) &(arg1)->operator /=((double const &)*arg2);
8687 }
8688 catch (const GException::out_of_range& e) {
8689 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8690 }
8691 catch (const GExceptionHandler& e) {
8692 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8693 }
8694 catch (const std::exception& e) {
8695 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8696 }
8697 }
8698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0x1
| 0)
;
8699 return resultobj;
8700fail:
8701 return NULL__null;
8702}
8703
8704
8705SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8706 PyObject *resultobj = 0;
8707 GMatrix *arg1 = (GMatrix *) 0 ;
8708 void *argp1 = 0 ;
8709 int res1 = 0 ;
8710 PyObject * obj0 = 0 ;
8711
8712 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_clear",&obj0)) SWIG_failgoto fail;
8713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8714 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_clear" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_clear" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8716 }
8717 arg1 = reinterpret_cast< GMatrix * >(argp1);
8718 {
8719 try {
8720 (arg1)->clear();
8721 }
8722 catch (const GException::out_of_range& e) {
8723 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8724 }
8725 catch (const GExceptionHandler& e) {
8726 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8727 }
8728 catch (const std::exception& e) {
8729 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8730 }
8731 }
8732 resultobj = SWIG_Py_Void();
8733 return resultobj;
8734fail:
8735 return NULL__null;
8736}
8737
8738
8739SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8740 PyObject *resultobj = 0;
8741 GMatrix *arg1 = (GMatrix *) 0 ;
8742 void *argp1 = 0 ;
8743 int res1 = 0 ;
8744 PyObject * obj0 = 0 ;
8745 GMatrix *result = 0 ;
8746
8747 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_clone",&obj0)) SWIG_failgoto fail;
8748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8749 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_clone" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_clone" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
8751 }
8752 arg1 = reinterpret_cast< GMatrix * >(argp1);
8753 {
8754 try {
8755 result = (GMatrix *)((GMatrix const *)arg1)->clone();
8756 }
8757 catch (const GException::out_of_range& e) {
8758 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8759 }
8760 catch (const GExceptionHandler& e) {
8761 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8762 }
8763 catch (const std::exception& e) {
8764 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8765 }
8766 }
8767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0 |
0)
;
8768 return resultobj;
8769fail:
8770 return NULL__null;
8771}
8772
8773
8774SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8775 PyObject *resultobj = 0;
8776 GMatrix *arg1 = (GMatrix *) 0 ;
8777 int *arg2 = 0 ;
8778 int *arg3 = 0 ;
8779 void *argp1 = 0 ;
8780 int res1 = 0 ;
8781 int temp2 ;
8782 int val2 ;
8783 int ecode2 = 0 ;
8784 int temp3 ;
8785 int val3 ;
8786 int ecode3 = 0 ;
8787 PyObject * obj0 = 0 ;
8788 PyObject * obj1 = 0 ;
8789 PyObject * obj2 = 0 ;
8790 double *result = 0 ;
8791
8792 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrix_at",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
8793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8794 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_at" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_at" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8796 }
8797 arg1 = reinterpret_cast< GMatrix * >(argp1);
8798 ecode2 = SWIG_AsVal_int(obj1, &val2);
8799 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
8801 }
8802 temp2 = static_cast< int >(val2);
8803 arg2 = &temp2;
8804 ecode3 = SWIG_AsVal_int(obj2, &val3);
8805 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
8806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrix_at" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrix_at" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
8807 }
8808 temp3 = static_cast< int >(val3);
8809 arg3 = &temp3;
8810 {
8811 try {
8812 result = (double *) &(arg1)->at((int const &)*arg2,(int const &)*arg3);
8813 }
8814 catch (const GException::out_of_range& e) {
8815 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8816 }
8817 catch (const GExceptionHandler& e) {
8818 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8819 }
8820 catch (const std::exception& e) {
8821 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8822 }
8823 }
8824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
8825 return resultobj;
8826fail:
8827 return NULL__null;
8828}
8829
8830
8831SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_row__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8832 PyObject *resultobj = 0;
8833 GMatrix *arg1 = (GMatrix *) 0 ;
8834 int *arg2 = 0 ;
8835 void *argp1 = 0 ;
8836 int res1 = 0 ;
8837 int temp2 ;
8838 int val2 ;
8839 int ecode2 = 0 ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 GVector result;
8843
8844 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix_row",&obj0,&obj1)) SWIG_failgoto fail;
8845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8846 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_row" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_row" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
8848 }
8849 arg1 = reinterpret_cast< GMatrix * >(argp1);
8850 ecode2 = SWIG_AsVal_int(obj1, &val2);
8851 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
8853 }
8854 temp2 = static_cast< int >(val2);
8855 arg2 = &temp2;
8856 {
8857 try {
8858 result = ((GMatrix const *)arg1)->row((int const &)*arg2);
8859 }
8860 catch (const GException::out_of_range& e) {
8861 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8862 }
8863 catch (const GExceptionHandler& e) {
8864 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8865 }
8866 catch (const std::exception& e) {
8867 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8868 }
8869 }
8870 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
8871 return resultobj;
8872fail:
8873 return NULL__null;
8874}
8875
8876
8877SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_row__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8878 PyObject *resultobj = 0;
8879 GMatrix *arg1 = (GMatrix *) 0 ;
8880 int *arg2 = 0 ;
8881 GVector *arg3 = 0 ;
8882 void *argp1 = 0 ;
8883 int res1 = 0 ;
8884 int temp2 ;
8885 int val2 ;
8886 int ecode2 = 0 ;
8887 void *argp3 = 0 ;
8888 int res3 = 0 ;
8889 PyObject * obj0 = 0 ;
8890 PyObject * obj1 = 0 ;
8891 PyObject * obj2 = 0 ;
8892
8893 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrix_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
8894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
8895 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_row" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_row" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
8897 }
8898 arg1 = reinterpret_cast< GMatrix * >(argp1);
8899 ecode2 = SWIG_AsVal_int(obj1, &val2);
8900 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
8902 }
8903 temp2 = static_cast< int >(val2);
8904 arg2 = &temp2;
8905 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
8906 if (!SWIG_IsOK(res3)(res3 >= 0)) {
8907 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrix_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrix_row" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
8908 }
8909 if (!argp3) {
8910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix_row" "', argument " "3"" of type '" "GVector const &"
"'"); goto fail; } while(0)
;
8911 }
8912 arg3 = reinterpret_cast< GVector * >(argp3);
8913 {
8914 try {
8915 (arg1)->row((int const &)*arg2,(GVector const &)*arg3);
8916 }
8917 catch (const GException::out_of_range& e) {
8918 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8919 }
8920 catch (const GExceptionHandler& e) {
8921 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8922 }
8923 catch (const std::exception& e) {
8924 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8925 }
8926 }
8927 resultobj = SWIG_Py_Void();
8928 return resultobj;
8929fail:
8930 return NULL__null;
8931}
8932
8933
8934SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_row(PyObject *self, PyObject *args) {
8935 int argc;
8936 PyObject *argv[4];
8937 int ii;
8938
8939 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8940 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8941 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
8942 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8943 }
8944 if (argc == 2) {
8945 int _v;
8946 void *vptr = 0;
8947 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
8948 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8949 if (_v) {
8950 {
8951 int res = SWIG_AsVal_int(argv[1], NULL__null);
8952 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8953 }
8954 if (_v) {
8955 return _wrap_GMatrix_row__SWIG_0(self, args);
8956 }
8957 }
8958 }
8959 if (argc == 3) {
8960 int _v;
8961 void *vptr = 0;
8962 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
8963 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8964 if (_v) {
8965 {
8966 int res = SWIG_AsVal_int(argv[1], NULL__null);
8967 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8968 }
8969 if (_v) {
8970 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
8971 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8972 if (_v) {
8973 return _wrap_GMatrix_row__SWIG_1(self, args);
8974 }
8975 }
8976 }
8977 }
8978
8979fail:
8980 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrix_row'.\n"
8981 " Possible C/C++ prototypes are:\n"
8982 " GMatrix::row(int const &) const\n"
8983 " GMatrix::row(int const &,GVector const &)\n");
8984 return 0;
8985}
8986
8987
8988SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_column__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8989 PyObject *resultobj = 0;
8990 GMatrix *arg1 = (GMatrix *) 0 ;
8991 int *arg2 = 0 ;
8992 void *argp1 = 0 ;
8993 int res1 = 0 ;
8994 int temp2 ;
8995 int val2 ;
8996 int ecode2 = 0 ;
8997 PyObject * obj0 = 0 ;
8998 PyObject * obj1 = 0 ;
8999 GVector result;
9000
9001 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix_column",&obj0,&obj1)) SWIG_failgoto fail;
9002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9003 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_column" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_column" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9005 }
9006 arg1 = reinterpret_cast< GMatrix * >(argp1);
9007 ecode2 = SWIG_AsVal_int(obj1, &val2);
9008 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_column" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
9010 }
9011 temp2 = static_cast< int >(val2);
9012 arg2 = &temp2;
9013 {
9014 try {
9015 result = ((GMatrix const *)arg1)->column((int const &)*arg2);
9016 }
9017 catch (const GException::out_of_range& e) {
9018 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9019 }
9020 catch (const GExceptionHandler& e) {
9021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9022 }
9023 catch (const std::exception& e) {
9024 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9025 }
9026 }
9027 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
9028 return resultobj;
9029fail:
9030 return NULL__null;
9031}
9032
9033
9034SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_column__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *resultobj = 0;
9036 GMatrix *arg1 = (GMatrix *) 0 ;
9037 int *arg2 = 0 ;
9038 GVector *arg3 = 0 ;
9039 void *argp1 = 0 ;
9040 int res1 = 0 ;
9041 int temp2 ;
9042 int val2 ;
9043 int ecode2 = 0 ;
9044 void *argp3 = 0 ;
9045 int res3 = 0 ;
9046 PyObject * obj0 = 0 ;
9047 PyObject * obj1 = 0 ;
9048 PyObject * obj2 = 0 ;
9049
9050 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrix_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9052 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_column" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_column" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9054 }
9055 arg1 = reinterpret_cast< GMatrix * >(argp1);
9056 ecode2 = SWIG_AsVal_int(obj1, &val2);
9057 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_column" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
9059 }
9060 temp2 = static_cast< int >(val2);
9061 arg2 = &temp2;
9062 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
9063 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9064 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrix_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrix_column" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
9065 }
9066 if (!argp3) {
9067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix_column" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
9068 }
9069 arg3 = reinterpret_cast< GVector * >(argp3);
9070 {
9071 try {
9072 (arg1)->column((int const &)*arg2,(GVector const &)*arg3);
9073 }
9074 catch (const GException::out_of_range& e) {
9075 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9076 }
9077 catch (const GExceptionHandler& e) {
9078 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9079 }
9080 catch (const std::exception& e) {
9081 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9082 }
9083 }
9084 resultobj = SWIG_Py_Void();
9085 return resultobj;
9086fail:
9087 return NULL__null;
9088}
9089
9090
9091SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_column(PyObject *self, PyObject *args) {
9092 int argc;
9093 PyObject *argv[4];
9094 int ii;
9095
9096 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9097 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9098 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
9099 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9100 }
9101 if (argc == 2) {
9102 int _v;
9103 void *vptr = 0;
9104 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
9105 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9106 if (_v) {
9107 {
9108 int res = SWIG_AsVal_int(argv[1], NULL__null);
9109 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9110 }
9111 if (_v) {
9112 return _wrap_GMatrix_column__SWIG_0(self, args);
9113 }
9114 }
9115 }
9116 if (argc == 3) {
9117 int _v;
9118 void *vptr = 0;
9119 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
9120 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9121 if (_v) {
9122 {
9123 int res = SWIG_AsVal_int(argv[1], NULL__null);
9124 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9125 }
9126 if (_v) {
9127 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
9128 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9129 if (_v) {
9130 return _wrap_GMatrix_column__SWIG_1(self, args);
9131 }
9132 }
9133 }
9134 }
9135
9136fail:
9137 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrix_column'.\n"
9138 " Possible C/C++ prototypes are:\n"
9139 " GMatrix::column(int const &) const\n"
9140 " GMatrix::column(int const &,GVector const &)\n");
9141 return 0;
9142}
9143
9144
9145SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_add_to_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9146 PyObject *resultobj = 0;
9147 GMatrix *arg1 = (GMatrix *) 0 ;
9148 int *arg2 = 0 ;
9149 GVector *arg3 = 0 ;
9150 void *argp1 = 0 ;
9151 int res1 = 0 ;
9152 int temp2 ;
9153 int val2 ;
9154 int ecode2 = 0 ;
9155 void *argp3 = 0 ;
9156 int res3 = 0 ;
9157 PyObject * obj0 = 0 ;
9158 PyObject * obj1 = 0 ;
9159 PyObject * obj2 = 0 ;
9160
9161 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrix_add_to_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9163 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_add_to_row" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_add_to_row" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9165 }
9166 arg1 = reinterpret_cast< GMatrix * >(argp1);
9167 ecode2 = SWIG_AsVal_int(obj1, &val2);
9168 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_add_to_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_add_to_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
9170 }
9171 temp2 = static_cast< int >(val2);
9172 arg2 = &temp2;
9173 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
9174 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9175 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrix_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrix_add_to_row" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
9176 }
9177 if (!argp3) {
9178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix_add_to_row" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
9179 }
9180 arg3 = reinterpret_cast< GVector * >(argp3);
9181 {
9182 try {
9183 (arg1)->add_to_row((int const &)*arg2,(GVector const &)*arg3);
9184 }
9185 catch (const GException::out_of_range& e) {
9186 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9187 }
9188 catch (const GExceptionHandler& e) {
9189 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9190 }
9191 catch (const std::exception& e) {
9192 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9193 }
9194 }
9195 resultobj = SWIG_Py_Void();
9196 return resultobj;
9197fail:
9198 return NULL__null;
9199}
9200
9201
9202SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_add_to_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9203 PyObject *resultobj = 0;
9204 GMatrix *arg1 = (GMatrix *) 0 ;
9205 int *arg2 = 0 ;
9206 GVector *arg3 = 0 ;
9207 void *argp1 = 0 ;
9208 int res1 = 0 ;
9209 int temp2 ;
9210 int val2 ;
9211 int ecode2 = 0 ;
9212 void *argp3 = 0 ;
9213 int res3 = 0 ;
9214 PyObject * obj0 = 0 ;
9215 PyObject * obj1 = 0 ;
9216 PyObject * obj2 = 0 ;
9217
9218 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrix_add_to_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9220 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_add_to_column" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_add_to_column" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9222 }
9223 arg1 = reinterpret_cast< GMatrix * >(argp1);
9224 ecode2 = SWIG_AsVal_int(obj1, &val2);
9225 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_add_to_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_add_to_column"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
9227 }
9228 temp2 = static_cast< int >(val2);
9229 arg2 = &temp2;
9230 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
9231 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9232 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrix_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrix_add_to_column" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
9233 }
9234 if (!argp3) {
9235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix_add_to_column" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
9236 }
9237 arg3 = reinterpret_cast< GVector * >(argp3);
9238 {
9239 try {
9240 (arg1)->add_to_column((int const &)*arg2,(GVector const &)*arg3);
9241 }
9242 catch (const GException::out_of_range& e) {
9243 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9244 }
9245 catch (const GExceptionHandler& e) {
9246 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9247 }
9248 catch (const std::exception& e) {
9249 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9250 }
9251 }
9252 resultobj = SWIG_Py_Void();
9253 return resultobj;
9254fail:
9255 return NULL__null;
9256}
9257
9258
9259SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9260 PyObject *resultobj = 0;
9261 GMatrix *arg1 = (GMatrix *) 0 ;
9262 void *argp1 = 0 ;
9263 int res1 = 0 ;
9264 PyObject * obj0 = 0 ;
9265 double result;
9266
9267 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_fill",&obj0)) SWIG_failgoto fail;
9268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9269 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_fill" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_fill" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9271 }
9272 arg1 = reinterpret_cast< GMatrix * >(argp1);
9273 {
9274 try {
9275 result = (double)((GMatrix const *)arg1)->fill();
9276 }
9277 catch (const GException::out_of_range& e) {
9278 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9279 }
9280 catch (const GExceptionHandler& e) {
9281 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9282 }
9283 catch (const std::exception& e) {
9284 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9285 }
9286 }
9287 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9288 return resultobj;
9289fail:
9290 return NULL__null;
9291}
9292
9293
9294SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9295 PyObject *resultobj = 0;
9296 GMatrix *arg1 = (GMatrix *) 0 ;
9297 void *argp1 = 0 ;
9298 int res1 = 0 ;
9299 PyObject * obj0 = 0 ;
9300 double result;
9301
9302 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_min",&obj0)) SWIG_failgoto fail;
9303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9304 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_min" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_min" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9306 }
9307 arg1 = reinterpret_cast< GMatrix * >(argp1);
9308 {
9309 try {
9310 result = (double)((GMatrix const *)arg1)->min();
9311 }
9312 catch (const GException::out_of_range& e) {
9313 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9314 }
9315 catch (const GExceptionHandler& e) {
9316 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9317 }
9318 catch (const std::exception& e) {
9319 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9320 }
9321 }
9322 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9323 return resultobj;
9324fail:
9325 return NULL__null;
9326}
9327
9328
9329SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9330 PyObject *resultobj = 0;
9331 GMatrix *arg1 = (GMatrix *) 0 ;
9332 void *argp1 = 0 ;
9333 int res1 = 0 ;
9334 PyObject * obj0 = 0 ;
9335 double result;
9336
9337 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_max",&obj0)) SWIG_failgoto fail;
9338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9339 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_max" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_max" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9341 }
9342 arg1 = reinterpret_cast< GMatrix * >(argp1);
9343 {
9344 try {
9345 result = (double)((GMatrix const *)arg1)->max();
9346 }
9347 catch (const GException::out_of_range& e) {
9348 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9349 }
9350 catch (const GExceptionHandler& e) {
9351 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9352 }
9353 catch (const std::exception& e) {
9354 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9355 }
9356 }
9357 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9358 return resultobj;
9359fail:
9360 return NULL__null;
9361}
9362
9363
9364SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9365 PyObject *resultobj = 0;
9366 GMatrix *arg1 = (GMatrix *) 0 ;
9367 void *argp1 = 0 ;
9368 int res1 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 double result;
9371
9372 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_sum",&obj0)) SWIG_failgoto fail;
9373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9374 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_sum" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_sum" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9376 }
9377 arg1 = reinterpret_cast< GMatrix * >(argp1);
9378 {
9379 try {
9380 result = (double)((GMatrix const *)arg1)->sum();
9381 }
9382 catch (const GException::out_of_range& e) {
9383 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9384 }
9385 catch (const GExceptionHandler& e) {
9386 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9387 }
9388 catch (const std::exception& e) {
9389 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9390 }
9391 }
9392 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9393 return resultobj;
9394fail:
9395 return NULL__null;
9396}
9397
9398
9399SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_transpose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9400 PyObject *resultobj = 0;
9401 GMatrix *arg1 = (GMatrix *) 0 ;
9402 void *argp1 = 0 ;
9403 int res1 = 0 ;
9404 PyObject * obj0 = 0 ;
9405 GMatrix result;
9406
9407 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_transpose",&obj0)) SWIG_failgoto fail;
9408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9409 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_transpose" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_transpose" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9411 }
9412 arg1 = reinterpret_cast< GMatrix * >(argp1);
9413 {
9414 try {
9415 result = ((GMatrix const *)arg1)->transpose();
9416 }
9417 catch (const GException::out_of_range& e) {
9418 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9419 }
9420 catch (const GExceptionHandler& e) {
9421 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9422 }
9423 catch (const std::exception& e) {
9424 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9425 }
9426 }
9427 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
9428 return resultobj;
9429fail:
9430 return NULL__null;
9431}
9432
9433
9434SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9435 PyObject *resultobj = 0;
9436 GMatrix *arg1 = (GMatrix *) 0 ;
9437 void *argp1 = 0 ;
9438 int res1 = 0 ;
9439 PyObject * obj0 = 0 ;
9440 GMatrix result;
9441
9442 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_invert",&obj0)) SWIG_failgoto fail;
9443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9444 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_invert" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_invert" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9446 }
9447 arg1 = reinterpret_cast< GMatrix * >(argp1);
9448 {
9449 try {
9450 result = ((GMatrix const *)arg1)->invert();
9451 }
9452 catch (const GException::out_of_range& e) {
9453 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9454 }
9455 catch (const GExceptionHandler& e) {
9456 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9457 }
9458 catch (const std::exception& e) {
9459 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9460 }
9461 }
9462 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
9463 return resultobj;
9464fail:
9465 return NULL__null;
9466}
9467
9468
9469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_solve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9470 PyObject *resultobj = 0;
9471 GMatrix *arg1 = (GMatrix *) 0 ;
9472 GVector *arg2 = 0 ;
9473 void *argp1 = 0 ;
9474 int res1 = 0 ;
9475 void *argp2 = 0 ;
9476 int res2 = 0 ;
9477 PyObject * obj0 = 0 ;
9478 PyObject * obj1 = 0 ;
9479 GVector result;
9480
9481 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix_solve",&obj0,&obj1)) SWIG_failgoto fail;
9482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9483 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_solve" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_solve" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9485 }
9486 arg1 = reinterpret_cast< GMatrix * >(argp1);
9487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
9488 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix_solve" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix_solve" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
9490 }
9491 if (!argp2) {
9492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix_solve" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix_solve" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
9493 }
9494 arg2 = reinterpret_cast< GVector * >(argp2);
9495 {
9496 try {
9497 result = ((GMatrix const *)arg1)->solve((GVector const &)*arg2);
9498 }
9499 catch (const GException::out_of_range& e) {
9500 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9501 }
9502 catch (const GExceptionHandler& e) {
9503 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9504 }
9505 catch (const std::exception& e) {
9506 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9507 }
9508 }
9509 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
9510 return resultobj;
9511fail:
9512 return NULL__null;
9513}
9514
9515
9516SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_abs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9517 PyObject *resultobj = 0;
9518 GMatrix *arg1 = (GMatrix *) 0 ;
9519 void *argp1 = 0 ;
9520 int res1 = 0 ;
9521 PyObject * obj0 = 0 ;
9522 GMatrix result;
9523
9524 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_abs",&obj0)) SWIG_failgoto fail;
9525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9526 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_abs" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_abs" "', argument "
"1"" of type '" "GMatrix const *""'"); goto fail; } while(0)
;
9528 }
9529 arg1 = reinterpret_cast< GMatrix * >(argp1);
9530 {
9531 try {
9532 result = ((GMatrix const *)arg1)->abs();
9533 }
9534 catch (const GException::out_of_range& e) {
9535 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9536 }
9537 catch (const GExceptionHandler& e) {
9538 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9539 }
9540 catch (const std::exception& e) {
9541 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9542 }
9543 }
9544 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
9545 return resultobj;
9546fail:
9547 return NULL__null;
9548}
9549
9550
9551SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_extract_lower_triangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9552 PyObject *resultobj = 0;
9553 GMatrix *arg1 = (GMatrix *) 0 ;
9554 void *argp1 = 0 ;
9555 int res1 = 0 ;
9556 PyObject * obj0 = 0 ;
9557 GMatrix result;
9558
9559 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_extract_lower_triangle",&obj0)) SWIG_failgoto fail;
9560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9561 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_extract_lower_triangle" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_extract_lower_triangle"
"', argument " "1"" of type '" "GMatrix const *""'"); goto fail
; } while(0)
;
9563 }
9564 arg1 = reinterpret_cast< GMatrix * >(argp1);
9565 {
9566 try {
9567 result = ((GMatrix const *)arg1)->extract_lower_triangle();
9568 }
9569 catch (const GException::out_of_range& e) {
9570 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9571 }
9572 catch (const GExceptionHandler& e) {
9573 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9574 }
9575 catch (const std::exception& e) {
9576 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9577 }
9578 }
9579 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
9580 return resultobj;
9581fail:
9582 return NULL__null;
9583}
9584
9585
9586SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_extract_upper_triangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9587 PyObject *resultobj = 0;
9588 GMatrix *arg1 = (GMatrix *) 0 ;
9589 void *argp1 = 0 ;
9590 int res1 = 0 ;
9591 PyObject * obj0 = 0 ;
9592 GMatrix result;
9593
9594 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_extract_upper_triangle",&obj0)) SWIG_failgoto fail;
9595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9596 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_extract_upper_triangle" "', argument " "1"" of type '" "GMatrix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_extract_upper_triangle"
"', argument " "1"" of type '" "GMatrix const *""'"); goto fail
; } while(0)
;
9598 }
9599 arg1 = reinterpret_cast< GMatrix * >(argp1);
9600 {
9601 try {
9602 result = ((GMatrix const *)arg1)->extract_upper_triangle();
9603 }
9604 catch (const GException::out_of_range& e) {
9605 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9606 }
9607 catch (const GExceptionHandler& e) {
9608 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9609 }
9610 catch (const std::exception& e) {
9611 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9612 }
9613 }
9614 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
9615 return resultobj;
9616fail:
9617 return NULL__null;
9618}
9619
9620
9621SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_eulerx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9622 PyObject *resultobj = 0;
9623 GMatrix *arg1 = (GMatrix *) 0 ;
9624 double *arg2 = 0 ;
9625 void *argp1 = 0 ;
9626 int res1 = 0 ;
9627 double temp2 ;
9628 double val2 ;
9629 int ecode2 = 0 ;
9630 PyObject * obj0 = 0 ;
9631 PyObject * obj1 = 0 ;
9632
9633 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix_eulerx",&obj0,&obj1)) SWIG_failgoto fail;
9634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9635 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_eulerx" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_eulerx" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9637 }
9638 arg1 = reinterpret_cast< GMatrix * >(argp1);
9639 ecode2 = SWIG_AsVal_double(obj1, &val2);
9640 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_eulerx" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_eulerx" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9642 }
9643 temp2 = static_cast< double >(val2);
9644 arg2 = &temp2;
9645 {
9646 try {
9647 (arg1)->eulerx((double const &)*arg2);
9648 }
9649 catch (const GException::out_of_range& e) {
9650 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9651 }
9652 catch (const GExceptionHandler& e) {
9653 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9654 }
9655 catch (const std::exception& e) {
9656 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9657 }
9658 }
9659 resultobj = SWIG_Py_Void();
9660 return resultobj;
9661fail:
9662 return NULL__null;
9663}
9664
9665
9666SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_eulery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9667 PyObject *resultobj = 0;
9668 GMatrix *arg1 = (GMatrix *) 0 ;
9669 double *arg2 = 0 ;
9670 void *argp1 = 0 ;
9671 int res1 = 0 ;
9672 double temp2 ;
9673 double val2 ;
9674 int ecode2 = 0 ;
9675 PyObject * obj0 = 0 ;
9676 PyObject * obj1 = 0 ;
9677
9678 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix_eulery",&obj0,&obj1)) SWIG_failgoto fail;
9679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9680 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_eulery" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_eulery" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9682 }
9683 arg1 = reinterpret_cast< GMatrix * >(argp1);
9684 ecode2 = SWIG_AsVal_double(obj1, &val2);
9685 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_eulery" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_eulery" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9687 }
9688 temp2 = static_cast< double >(val2);
9689 arg2 = &temp2;
9690 {
9691 try {
9692 (arg1)->eulery((double const &)*arg2);
9693 }
9694 catch (const GException::out_of_range& e) {
9695 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9696 }
9697 catch (const GExceptionHandler& e) {
9698 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9699 }
9700 catch (const std::exception& e) {
9701 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9702 }
9703 }
9704 resultobj = SWIG_Py_Void();
9705 return resultobj;
9706fail:
9707 return NULL__null;
9708}
9709
9710
9711SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_eulerz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9712 PyObject *resultobj = 0;
9713 GMatrix *arg1 = (GMatrix *) 0 ;
9714 double *arg2 = 0 ;
9715 void *argp1 = 0 ;
9716 int res1 = 0 ;
9717 double temp2 ;
9718 double val2 ;
9719 int ecode2 = 0 ;
9720 PyObject * obj0 = 0 ;
9721 PyObject * obj1 = 0 ;
9722
9723 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix_eulerz",&obj0,&obj1)) SWIG_failgoto fail;
9724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9725 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_eulerz" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_eulerz" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9727 }
9728 arg1 = reinterpret_cast< GMatrix * >(argp1);
9729 ecode2 = SWIG_AsVal_double(obj1, &val2);
9730 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_eulerz" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_eulerz" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9732 }
9733 temp2 = static_cast< double >(val2);
9734 arg2 = &temp2;
9735 {
9736 try {
9737 (arg1)->eulerz((double const &)*arg2);
9738 }
9739 catch (const GException::out_of_range& e) {
9740 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9741 }
9742 catch (const GExceptionHandler& e) {
9743 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9744 }
9745 catch (const std::exception& e) {
9746 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9747 }
9748 }
9749 resultobj = SWIG_Py_Void();
9750 return resultobj;
9751fail:
9752 return NULL__null;
9753}
9754
9755
9756SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9757 PyObject *resultobj = 0;
9758 GMatrix *arg1 = (GMatrix *) 0 ;
9759 int *arg2 ;
9760 void *argp1 = 0 ;
9761 int res1 = 0 ;
9762 int temp2[2] ;
9763 PyObject * obj0 = 0 ;
9764 PyObject * obj1 = 0 ;
9765 double result;
9766
9767 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
9768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9769 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___getitem__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___getitem__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9771 }
9772 arg1 = reinterpret_cast< GMatrix * >(argp1);
9773 {
9774 if (!PySequence_Check(obj1)) {
9775 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
9776 return NULL__null;
9777 }
9778 if (PySequence_LengthPySequence_Size(obj1) != 2) {
9779 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
9780 return NULL__null;
9781 }
9782 for (int i = 0; i < 2; ++i) {
9783 PyObject *o = PySequence_GetItem(obj1,i);
9784 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
9785 temp2[i] = (int)PyInt_AsLong(o);
9786 }
9787 else {
9788 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
9789 return NULL__null;
9790 }
9791 }
9792 arg2 = temp2;
9793 }
9794 {
9795 try {
9796 result = (double)GMatrix___getitem__(arg1,arg2);
9797 }
9798 catch (const GException::out_of_range& e) {
9799 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9800 }
9801 catch (const GExceptionHandler& e) {
9802 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9803 }
9804 catch (const std::exception& e) {
9805 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9806 }
9807 }
9808 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9809 return resultobj;
9810fail:
9811 return NULL__null;
9812}
9813
9814
9815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9816 PyObject *resultobj = 0;
9817 GMatrix *arg1 = (GMatrix *) 0 ;
9818 int *arg2 ;
9819 double arg3 ;
9820 void *argp1 = 0 ;
9821 int res1 = 0 ;
9822 int temp2[2] ;
9823 double val3 ;
9824 int ecode3 = 0 ;
9825 PyObject * obj0 = 0 ;
9826 PyObject * obj1 = 0 ;
9827 PyObject * obj2 = 0 ;
9828
9829 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrix___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9831 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___setitem__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___setitem__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9833 }
9834 arg1 = reinterpret_cast< GMatrix * >(argp1);
9835 {
9836 if (!PySequence_Check(obj1)) {
9837 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
9838 return NULL__null;
9839 }
9840 if (PySequence_LengthPySequence_Size(obj1) != 2) {
9841 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
9842 return NULL__null;
9843 }
9844 for (int i = 0; i < 2; ++i) {
9845 PyObject *o = PySequence_GetItem(obj1,i);
9846 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
9847 temp2[i] = (int)PyInt_AsLong(o);
9848 }
9849 else {
9850 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
9851 return NULL__null;
9852 }
9853 }
9854 arg2 = temp2;
9855 }
9856 ecode3 = SWIG_AsVal_double(obj2, &val3);
9857 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
9858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrix___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrix___setitem__" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
9859 }
9860 arg3 = static_cast< double >(val3);
9861 {
9862 try {
9863 GMatrix___setitem__(arg1,arg2,arg3);
9864 }
9865 catch (const GException::out_of_range& e) {
9866 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9867 }
9868 catch (const GExceptionHandler& e) {
9869 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9870 }
9871 catch (const std::exception& e) {
9872 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9873 }
9874 }
9875 resultobj = SWIG_Py_Void();
9876 return resultobj;
9877fail:
9878 return NULL__null;
9879}
9880
9881
9882SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9883 PyObject *resultobj = 0;
9884 GMatrix *arg1 = (GMatrix *) 0 ;
9885 GVector *arg2 = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 void *argp2 = 0 ;
9889 int res2 = 0 ;
9890 PyObject * obj0 = 0 ;
9891 PyObject * obj1 = 0 ;
9892 GVector result;
9893
9894 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___mul__",&obj0,&obj1)) SWIG_failgoto fail;
9895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9896 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___mul__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___mul__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9898 }
9899 arg1 = reinterpret_cast< GMatrix * >(argp1);
9900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
9901 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix___mul__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
9903 }
9904 if (!argp2) {
9905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix___mul__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
9906 }
9907 arg2 = reinterpret_cast< GVector * >(argp2);
9908 {
9909 try {
9910 result = GMatrix___mul____SWIG_0(arg1,(GVector const &)*arg2);
9911 }
9912 catch (const GException::out_of_range& e) {
9913 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9914 }
9915 catch (const GExceptionHandler& e) {
9916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9917 }
9918 catch (const std::exception& e) {
9919 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9920 }
9921 }
9922 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
9923 return resultobj;
9924fail:
9925 return NULL__null;
9926}
9927
9928
9929SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9930 PyObject *resultobj = 0;
9931 GMatrix *arg1 = (GMatrix *) 0 ;
9932 GMatrix *arg2 = 0 ;
9933 void *argp1 = 0 ;
9934 int res1 = 0 ;
9935 void *argp2 = 0 ;
9936 int res2 = 0 ;
9937 PyObject * obj0 = 0 ;
9938 PyObject * obj1 = 0 ;
9939 GMatrix result;
9940
9941 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___mul__",&obj0,&obj1)) SWIG_failgoto fail;
9942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9943 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___mul__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___mul__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9945 }
9946 arg1 = reinterpret_cast< GMatrix * >(argp1);
9947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1],
0 | 0, 0)
;
9948 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrix___mul__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrix___mul__" "', argument "
"2"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
9950 }
9951 if (!argp2) {
9952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrix___mul__" "', argument " "2"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrix___mul__" "', argument " "2"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
9953 }
9954 arg2 = reinterpret_cast< GMatrix * >(argp2);
9955 {
9956 try {
9957 result = GMatrix___mul____SWIG_1(arg1,(GMatrix const &)*arg2);
9958 }
9959 catch (const GException::out_of_range& e) {
9960 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9961 }
9962 catch (const GExceptionHandler& e) {
9963 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9964 }
9965 catch (const std::exception& e) {
9966 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9967 }
9968 }
9969 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
9970 return resultobj;
9971fail:
9972 return NULL__null;
9973}
9974
9975
9976SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9977 PyObject *resultobj = 0;
9978 GMatrix *arg1 = (GMatrix *) 0 ;
9979 double *arg2 = 0 ;
9980 void *argp1 = 0 ;
9981 int res1 = 0 ;
9982 double temp2 ;
9983 double val2 ;
9984 int ecode2 = 0 ;
9985 PyObject * obj0 = 0 ;
9986 PyObject * obj1 = 0 ;
9987 GMatrix result;
9988
9989 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___mul__",&obj0,&obj1)) SWIG_failgoto fail;
9990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
9991 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___mul__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___mul__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
9993 }
9994 arg1 = reinterpret_cast< GMatrix * >(argp1);
9995 ecode2 = SWIG_AsVal_double(obj1, &val2);
9996 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix___mul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix___mul__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9998 }
9999 temp2 = static_cast< double >(val2);
10000 arg2 = &temp2;
10001 {
10002 try {
10003 result = GMatrix___mul____SWIG_2(arg1,(double const &)*arg2);
10004 }
10005 catch (const GException::out_of_range& e) {
10006 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10007 }
10008 catch (const GExceptionHandler& e) {
10009 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10010 }
10011 catch (const std::exception& e) {
10012 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10013 }
10014 }
10015 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
10016 return resultobj;
10017fail:
10018 return NULL__null;
10019}
10020
10021
10022SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___mul__(PyObject *self, PyObject *args) {
10023 int argc;
10024 PyObject *argv[3];
10025 int ii;
10026
10027 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10028 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10029 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10030 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10031 }
10032 if (argc == 2) {
10033 int _v;
10034 void *vptr = 0;
10035 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
10036 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10037 if (_v) {
10038 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
10039 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10040 if (_v) {
10041 return _wrap_GMatrix___mul____SWIG_0(self, args);
10042 }
10043 }
10044 }
10045 if (argc == 2) {
10046 int _v;
10047 void *vptr = 0;
10048 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
10049 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10050 if (_v) {
10051 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[1], 0, 0);
10052 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10053 if (_v) {
10054 return _wrap_GMatrix___mul____SWIG_1(self, args);
10055 }
10056 }
10057 }
10058 if (argc == 2) {
10059 int _v;
10060 void *vptr = 0;
10061 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
10062 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10063 if (_v) {
10064 {
10065 int res = SWIG_AsVal_double(argv[1], NULL__null);
10066 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10067 }
10068 if (_v) {
10069 return _wrap_GMatrix___mul____SWIG_2(self, args);
10070 }
10071 }
10072 }
10073
10074fail:
10075 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
10076 return Py_NotImplemented(&_Py_NotImplementedStruct);
10077}
10078
10079
10080SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10081 PyObject *resultobj = 0;
10082 GMatrix *arg1 = (GMatrix *) 0 ;
10083 double *arg2 = 0 ;
10084 void *argp1 = 0 ;
10085 int res1 = 0 ;
10086 double temp2 ;
10087 double val2 ;
10088 int ecode2 = 0 ;
10089 PyObject * obj0 = 0 ;
10090 PyObject * obj1 = 0 ;
10091 GMatrix result;
10092
10093 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix___div__",&obj0,&obj1)) SWIG_failgoto fail;
10094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
10095 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix___div__" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix___div__" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
10097 }
10098 arg1 = reinterpret_cast< GMatrix * >(argp1);
10099 ecode2 = SWIG_AsVal_double(obj1, &val2);
10100 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix___div__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix___div__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
10102 }
10103 temp2 = static_cast< double >(val2);
10104 arg2 = &temp2;
10105 {
10106 try {
10107 result = GMatrix___div__(arg1,(double const &)*arg2);
10108 }
10109 catch (const GException::out_of_range& e) {
10110 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10111 }
10112 catch (const GExceptionHandler& e) {
10113 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10114 }
10115 catch (const std::exception& e) {
10116 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10117 }
10118 }
10119 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
10120 return resultobj;
10121fail:
10122 return NULL__null;
10123}
10124
10125
10126SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10127 PyObject *resultobj = 0;
10128 GMatrix *arg1 = (GMatrix *) 0 ;
10129 void *argp1 = 0 ;
10130 int res1 = 0 ;
10131 PyObject * obj0 = 0 ;
10132 GMatrix result;
10133
10134 if (!PyArg_ParseTuple(args,(char *)"O:GMatrix_copy",&obj0)) SWIG_failgoto fail;
10135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
10136 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_copy" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_copy" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
10138 }
10139 arg1 = reinterpret_cast< GMatrix * >(argp1);
10140 {
10141 try {
10142 result = GMatrix_copy(arg1);
10143 }
10144 catch (const GException::out_of_range& e) {
10145 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10146 }
10147 catch (const GExceptionHandler& e) {
10148 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10149 }
10150 catch (const std::exception& e) {
10151 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10152 }
10153 }
10154 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
10155 return resultobj;
10156fail:
10157 return NULL__null;
10158}
10159
10160
10161SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10162 PyObject *resultobj = 0;
10163 GMatrix *arg1 = (GMatrix *) 0 ;
10164 double *arg2 = 0 ;
10165 void *argp1 = 0 ;
10166 int res1 = 0 ;
10167 double temp2 ;
10168 double val2 ;
10169 int ecode2 = 0 ;
10170 PyObject * obj0 = 0 ;
10171 PyObject * obj1 = 0 ;
10172 GMatrix result;
10173
10174 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrix_set",&obj0,&obj1)) SWIG_failgoto fail;
10175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
10176 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrix_set" "', argument " "1"" of type '" "GMatrix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrix_set" "', argument "
"1"" of type '" "GMatrix *""'"); goto fail; } while(0)
;
10178 }
10179 arg1 = reinterpret_cast< GMatrix * >(argp1);
10180 ecode2 = SWIG_AsVal_double(obj1, &val2);
10181 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrix_set" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrix_set" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
10183 }
10184 temp2 = static_cast< double >(val2);
10185 arg2 = &temp2;
10186 {
10187 try {
10188 result = GMatrix_set(arg1,(double const &)*arg2);
10189 }
10190 catch (const GException::out_of_range& e) {
10191 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10192 }
10193 catch (const GExceptionHandler& e) {
10194 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10195 }
10196 catch (const std::exception& e) {
10197 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10198 }
10199 }
10200 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
10201 return resultobj;
10202fail:
10203 return NULL__null;
10204}
10205
10206
10207SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10208 PyObject *obj;
10209 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
10210 SWIG_TypeNewClientData(SWIGTYPE_p_GMatrixswig_types[1], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
10211 return SWIG_Py_Void();
10212}
10213
10214SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSparse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10215 PyObject *resultobj = 0;
10216 GMatrixSparse *result = 0 ;
10217
10218 if (!PyArg_ParseTuple(args,(char *)":new_GMatrixSparse")) SWIG_failgoto fail;
10219 {
10220 try {
10221 result = (GMatrixSparse *)new GMatrixSparse();
10222 }
10223 catch (const GException::out_of_range& e) {
10224 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10225 }
10226 catch (const GExceptionHandler& e) {
10227 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10228 }
10229 catch (const std::exception& e) {
10230 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10231 }
10232 }
10233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
10234 return resultobj;
10235fail:
10236 return NULL__null;
10237}
10238
10239
10240SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSparse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10241 PyObject *resultobj = 0;
10242 int *arg1 = 0 ;
10243 int *arg2 = 0 ;
10244 int *arg3 = 0 ;
10245 int temp1 ;
10246 int val1 ;
10247 int ecode1 = 0 ;
10248 int temp2 ;
10249 int val2 ;
10250 int ecode2 = 0 ;
10251 int temp3 ;
10252 int val3 ;
10253 int ecode3 = 0 ;
10254 PyObject * obj0 = 0 ;
10255 PyObject * obj1 = 0 ;
10256 PyObject * obj2 = 0 ;
10257 GMatrixSparse *result = 0 ;
10258
10259 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GMatrixSparse",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10260 ecode1 = SWIG_AsVal_int(obj0, &val1);
10261 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10262 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
10263 }
10264 temp1 = static_cast< int >(val1);
10265 arg1 = &temp1;
10266 ecode2 = SWIG_AsVal_int(obj1, &val2);
10267 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GMatrixSparse" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
10269 }
10270 temp2 = static_cast< int >(val2);
10271 arg2 = &temp2;
10272 ecode3 = SWIG_AsVal_int(obj2, &val3);
10273 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
10274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GMatrixSparse" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
10275 }
10276 temp3 = static_cast< int >(val3);
10277 arg3 = &temp3;
10278 {
10279 try {
10280 result = (GMatrixSparse *)new GMatrixSparse((int const &)*arg1,(int const &)*arg2,(int const &)*arg3);
10281 }
10282 catch (const GException::out_of_range& e) {
10283 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10284 }
10285 catch (const GExceptionHandler& e) {
10286 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10287 }
10288 catch (const std::exception& e) {
10289 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10290 }
10291 }
10292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
10293 return resultobj;
10294fail:
10295 return NULL__null;
10296}
10297
10298
10299SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSparse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10300 PyObject *resultobj = 0;
10301 int *arg1 = 0 ;
10302 int *arg2 = 0 ;
10303 int temp1 ;
10304 int val1 ;
10305 int ecode1 = 0 ;
10306 int temp2 ;
10307 int val2 ;
10308 int ecode2 = 0 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 GMatrixSparse *result = 0 ;
10312
10313 if (!PyArg_ParseTuple(args,(char *)"OO:new_GMatrixSparse",&obj0,&obj1)) SWIG_failgoto fail;
10314 ecode1 = SWIG_AsVal_int(obj0, &val1);
10315 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10316 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
10317 }
10318 temp1 = static_cast< int >(val1);
10319 arg1 = &temp1;
10320 ecode2 = SWIG_AsVal_int(obj1, &val2);
10321 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GMatrixSparse" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
10323 }
10324 temp2 = static_cast< int >(val2);
10325 arg2 = &temp2;
10326 {
10327 try {
10328 result = (GMatrixSparse *)new GMatrixSparse((int const &)*arg1,(int const &)*arg2);
10329 }
10330 catch (const GException::out_of_range& e) {
10331 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10332 }
10333 catch (const GExceptionHandler& e) {
10334 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10335 }
10336 catch (const std::exception& e) {
10337 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10338 }
10339 }
10340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
10341 return resultobj;
10342fail:
10343 return NULL__null;
10344}
10345
10346
10347SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSparse__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10348 PyObject *resultobj = 0;
10349 GMatrix *arg1 = 0 ;
10350 void *argp1 = 0 ;
10351 int res1 = 0 ;
10352 PyObject * obj0 = 0 ;
10353 GMatrixSparse *result = 0 ;
10354
10355 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrixSparse",&obj0)) SWIG_failgoto fail;
10356 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
10357 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"1"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
10359 }
10360 if (!argp1) {
10361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrixSparse" "', argument " "1"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
10362 }
10363 arg1 = reinterpret_cast< GMatrix * >(argp1);
10364 {
10365 try {
10366 result = (GMatrixSparse *)new GMatrixSparse((GMatrix const &)*arg1);
10367 }
10368 catch (const GException::out_of_range& e) {
10369 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10370 }
10371 catch (const GExceptionHandler& e) {
10372 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10373 }
10374 catch (const std::exception& e) {
10375 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10376 }
10377 }
10378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
10379 return resultobj;
10380fail:
10381 return NULL__null;
10382}
10383
10384
10385SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSparse__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10386 PyObject *resultobj = 0;
10387 GMatrixSparse *arg1 = 0 ;
10388 void *argp1 = 0 ;
10389 int res1 = 0 ;
10390 PyObject * obj0 = 0 ;
10391 GMatrixSparse *result = 0 ;
10392
10393 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrixSparse",&obj0)) SWIG_failgoto fail;
10394 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
10395 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"1"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10397 }
10398 if (!argp1) {
10399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrixSparse" "', argument " "1"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10400 }
10401 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10402 {
10403 try {
10404 result = (GMatrixSparse *)new GMatrixSparse((GMatrixSparse const &)*arg1);
10405 }
10406 catch (const GException::out_of_range& e) {
10407 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10408 }
10409 catch (const GExceptionHandler& e) {
10410 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10411 }
10412 catch (const std::exception& e) {
10413 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10414 }
10415 }
10416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
10417 return resultobj;
10418fail:
10419 return NULL__null;
10420}
10421
10422
10423SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSparse__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 PyObject *resultobj = 0;
10425 GMatrixSymmetric *arg1 = 0 ;
10426 void *argp1 = 0 ;
10427 int res1 = 0 ;
10428 PyObject * obj0 = 0 ;
10429 GMatrixSparse *result = 0 ;
10430
10431 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrixSparse",&obj0)) SWIG_failgoto fail;
10432 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10433 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrixSparse" "', argument "
"1"" of type '" "GMatrixSymmetric const &""'"); goto fail
; } while(0)
;
10435 }
10436 if (!argp1) {
10437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrixSparse" "', argument " "1"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrixSparse" "', argument " "1"" of type '"
"GMatrixSymmetric const &""'"); goto fail; } while(0)
;
10438 }
10439 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
10440 {
10441 try {
10442 result = (GMatrixSparse *)new GMatrixSparse((GMatrixSymmetric const &)*arg1);
10443 }
10444 catch (const GException::out_of_range& e) {
10445 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10446 }
10447 catch (const GExceptionHandler& e) {
10448 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10449 }
10450 catch (const std::exception& e) {
10451 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10452 }
10453 }
10454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
10455 return resultobj;
10456fail:
10457 return NULL__null;
10458}
10459
10460
10461SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSparse(PyObject *self, PyObject *args) {
10462 int argc;
10463 PyObject *argv[4];
10464 int ii;
10465
10466 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10467 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10468 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10469 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10470 }
10471 if (argc == 0) {
10472 return _wrap_new_GMatrixSparse__SWIG_0(self, args);
10473 }
10474 if (argc == 1) {
10475 int _v;
10476 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[1], 0, 0);
10477 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10478 if (_v) {
10479 return _wrap_new_GMatrixSparse__SWIG_3(self, args);
10480 }
10481 }
10482 if (argc == 1) {
10483 int _v;
10484 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0);
10485 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10486 if (_v) {
10487 return _wrap_new_GMatrixSparse__SWIG_4(self, args);
10488 }
10489 }
10490 if (argc == 1) {
10491 int _v;
10492 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0);
10493 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10494 if (_v) {
10495 return _wrap_new_GMatrixSparse__SWIG_5(self, args);
10496 }
10497 }
10498 if (argc == 2) {
10499 int _v;
10500 {
10501 int res = SWIG_AsVal_int(argv[0], NULL__null);
10502 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10503 }
10504 if (_v) {
10505 {
10506 int res = SWIG_AsVal_int(argv[1], NULL__null);
10507 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10508 }
10509 if (_v) {
10510 return _wrap_new_GMatrixSparse__SWIG_2(self, args);
10511 }
10512 }
10513 }
10514 if (argc == 3) {
10515 int _v;
10516 {
10517 int res = SWIG_AsVal_int(argv[0], NULL__null);
10518 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10519 }
10520 if (_v) {
10521 {
10522 int res = SWIG_AsVal_int(argv[1], NULL__null);
10523 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10524 }
10525 if (_v) {
10526 {
10527 int res = SWIG_AsVal_int(argv[2], NULL__null);
10528 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10529 }
10530 if (_v) {
10531 return _wrap_new_GMatrixSparse__SWIG_1(self, args);
10532 }
10533 }
10534 }
10535 }
10536
10537fail:
10538 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GMatrixSparse'.\n"
10539 " Possible C/C++ prototypes are:\n"
10540 " GMatrixSparse::GMatrixSparse()\n"
10541 " GMatrixSparse::GMatrixSparse(int const &,int const &,int const &)\n"
10542 " GMatrixSparse::GMatrixSparse(int const &,int const &)\n"
10543 " GMatrixSparse::GMatrixSparse(GMatrix const &)\n"
10544 " GMatrixSparse::GMatrixSparse(GMatrixSparse const &)\n"
10545 " GMatrixSparse::GMatrixSparse(GMatrixSymmetric const &)\n");
10546 return 0;
10547}
10548
10549
10550SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GMatrixSparse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10551 PyObject *resultobj = 0;
10552 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10553 void *argp1 = 0 ;
10554 int res1 = 0 ;
10555 PyObject * obj0 = 0 ;
10556
10557 if (!PyArg_ParseTuple(args,(char *)"O:delete_GMatrixSparse",&obj0)) SWIG_failgoto fail;
10558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
10559 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GMatrixSparse" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GMatrixSparse" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
10561 }
10562 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10563 {
10564 try {
10565 delete arg1;
10566 }
10567 catch (const GException::out_of_range& e) {
10568 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10569 }
10570 catch (const GExceptionHandler& e) {
10571 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10572 }
10573 catch (const std::exception& e) {
10574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10575 }
10576 }
10577 resultobj = SWIG_Py_Void();
10578 return resultobj;
10579fail:
10580 return NULL__null;
10581}
10582
10583
10584SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10585 PyObject *resultobj = 0;
10586 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10587 GMatrixSparse *arg2 = 0 ;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 void *argp2 = 0 ;
10591 int res2 = 0 ;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 bool result;
10595
10596 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___eq__",&obj0,&obj1)) SWIG_failgoto fail;
10597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
10598 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___eq__" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___eq__" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
10600 }
10601 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10603 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___eq__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___eq__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10605 }
10606 if (!argp2) {
10607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___eq__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___eq__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10608 }
10609 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
10610 {
10611 try {
10612 result = (bool)((GMatrixSparse const *)arg1)->operator ==((GMatrixSparse const &)*arg2);
10613 }
10614 catch (const GException::out_of_range& e) {
10615 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10616 }
10617 catch (const GExceptionHandler& e) {
10618 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10619 }
10620 catch (const std::exception& e) {
10621 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10622 }
10623 }
10624 resultobj = SWIG_From_bool(static_cast< bool >(result));
10625 return resultobj;
10626fail:
10627 return NULL__null;
10628}
10629
10630
10631SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10632 PyObject *resultobj = 0;
10633 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10634 GMatrixSparse *arg2 = 0 ;
10635 void *argp1 = 0 ;
10636 int res1 = 0 ;
10637 void *argp2 = 0 ;
10638 int res2 = 0 ;
10639 PyObject * obj0 = 0 ;
10640 PyObject * obj1 = 0 ;
10641 bool result;
10642
10643 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___ne__",&obj0,&obj1)) SWIG_failgoto fail;
10644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
10645 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___ne__" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___ne__" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
10647 }
10648 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10650 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___ne__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___ne__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10652 }
10653 if (!argp2) {
10654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___ne__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___ne__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10655 }
10656 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
10657 {
10658 try {
10659 result = (bool)((GMatrixSparse const *)arg1)->operator !=((GMatrixSparse const &)*arg2);
10660 }
10661 catch (const GException::out_of_range& e) {
10662 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10663 }
10664 catch (const GExceptionHandler& e) {
10665 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10666 }
10667 catch (const std::exception& e) {
10668 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10669 }
10670 }
10671 resultobj = SWIG_From_bool(static_cast< bool >(result));
10672 return resultobj;
10673fail:
10674 return NULL__null;
10675}
10676
10677
10678SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10679 PyObject *resultobj = 0;
10680 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10681 GMatrixSparse *arg2 = 0 ;
10682 void *argp1 = 0 ;
10683 int res1 = 0 ;
10684 void *argp2 = 0 ;
10685 int res2 = 0 ;
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 GMatrixSparse result;
10689
10690 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___add__",&obj0,&obj1)) SWIG_failgoto fail;
10691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
10692 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___add__" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___add__" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
10694 }
10695 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10697 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___add__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___add__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10699 }
10700 if (!argp2) {
10701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___add__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___add__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10702 }
10703 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
10704 {
10705 try {
10706 result = ((GMatrixSparse const *)arg1)->operator +((GMatrixSparse const &)*arg2);
10707 }
10708 catch (const GException::out_of_range& e) {
10709 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10710 }
10711 catch (const GExceptionHandler& e) {
10712 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10713 }
10714 catch (const std::exception& e) {
10715 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10716 }
10717 }
10718 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
10719 return resultobj;
10720fail:
10721 return NULL__null;
10722}
10723
10724
10725SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10726 PyObject *resultobj = 0;
10727 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10728 GMatrixSparse *arg2 = 0 ;
10729 void *argp1 = 0 ;
10730 int res1 = 0 ;
10731 void *argp2 = 0 ;
10732 int res2 = 0 ;
10733 PyObject * obj0 = 0 ;
10734 PyObject * obj1 = 0 ;
10735 GMatrixSparse result;
10736
10737 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___sub__",&obj0,&obj1)) SWIG_failgoto fail;
10738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
10739 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___sub__" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___sub__" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
10741 }
10742 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10743 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10744 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___sub__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___sub__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10746 }
10747 if (!argp2) {
10748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___sub__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___sub__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10749 }
10750 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
10751 {
10752 try {
10753 result = ((GMatrixSparse const *)arg1)->operator -((GMatrixSparse const &)*arg2);
10754 }
10755 catch (const GException::out_of_range& e) {
10756 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10757 }
10758 catch (const GExceptionHandler& e) {
10759 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10760 }
10761 catch (const std::exception& e) {
10762 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10763 }
10764 }
10765 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
10766 return resultobj;
10767fail:
10768 return NULL__null;
10769}
10770
10771
10772SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10773 PyObject *resultobj = 0;
10774 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10775 void *argp1 = 0 ;
10776 int res1 = 0 ;
10777 PyObject * obj0 = 0 ;
10778 GMatrixSparse result;
10779
10780 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse___neg__",&obj0)) SWIG_failgoto fail;
10781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
10782 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___neg__" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___neg__" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
10784 }
10785 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10786 {
10787 try {
10788 result = ((GMatrixSparse const *)arg1)->operator -();
10789 }
10790 catch (const GException::out_of_range& e) {
10791 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10792 }
10793 catch (const GExceptionHandler& e) {
10794 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10795 }
10796 catch (const std::exception& e) {
10797 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10798 }
10799 }
10800 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
10801 return resultobj;
10802fail:
10803 return NULL__null;
10804}
10805
10806
10807SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10808 PyObject *resultobj = 0;
10809 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10810 GMatrixSparse *arg2 = 0 ;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 void *argp2 = 0 ;
10814 int res2 = 0 ;
10815 PyObject * obj0 = 0 ;
10816 PyObject * obj1 = 0 ;
10817 GMatrixSparse *result = 0 ;
10818
10819 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
10820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
10821 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___iadd__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___iadd__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
10823 }
10824 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10826 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___iadd__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___iadd__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10828 }
10829 if (!argp2) {
10830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___iadd__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___iadd__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10831 }
10832 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
10833 {
10834 try {
10835 result = (GMatrixSparse *) &(arg1)->operator +=((GMatrixSparse const &)*arg2);
10836 }
10837 catch (const GException::out_of_range& e) {
10838 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10839 }
10840 catch (const GExceptionHandler& e) {
10841 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10842 }
10843 catch (const std::exception& e) {
10844 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10845 }
10846 }
10847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0x1
| 0)
;
10848 return resultobj;
10849fail:
10850 return NULL__null;
10851}
10852
10853
10854SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10855 PyObject *resultobj = 0;
10856 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10857 GMatrixSparse *arg2 = 0 ;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 void *argp2 = 0 ;
10861 int res2 = 0 ;
10862 PyObject * obj0 = 0 ;
10863 PyObject * obj1 = 0 ;
10864 GMatrixSparse *result = 0 ;
10865
10866 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___isub__",&obj0,&obj1)) SWIG_failgoto fail;
10867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
10868 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___isub__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___isub__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
10870 }
10871 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10873 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___isub__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___isub__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10875 }
10876 if (!argp2) {
10877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___isub__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___isub__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10878 }
10879 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
10880 {
10881 try {
10882 result = (GMatrixSparse *) &(arg1)->operator -=((GMatrixSparse const &)*arg2);
10883 }
10884 catch (const GException::out_of_range& e) {
10885 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10886 }
10887 catch (const GExceptionHandler& e) {
10888 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10889 }
10890 catch (const std::exception& e) {
10891 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10892 }
10893 }
10894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0x1
| 0)
;
10895 return resultobj;
10896fail:
10897 return NULL__null;
10898}
10899
10900
10901SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10902 PyObject *resultobj = 0;
10903 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10904 GMatrixSparse *arg2 = 0 ;
10905 void *argp1 = 0 ;
10906 int res1 = 0 ;
10907 void *argp2 = 0 ;
10908 int res2 = 0 ;
10909 PyObject * obj0 = 0 ;
10910 PyObject * obj1 = 0 ;
10911 GMatrixSparse *result = 0 ;
10912
10913 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___imul__",&obj0,&obj1)) SWIG_failgoto fail;
10914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
10915 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___imul__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___imul__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
10917 }
10918 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10919 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10920 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___imul__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___imul__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
10922 }
10923 if (!argp2) {
10924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___imul__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___imul__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
10925 }
10926 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
10927 {
10928 try {
10929 result = (GMatrixSparse *) &(arg1)->operator *=((GMatrixSparse const &)*arg2);
10930 }
10931 catch (const GException::out_of_range& e) {
10932 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10933 }
10934 catch (const GExceptionHandler& e) {
10935 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10936 }
10937 catch (const std::exception& e) {
10938 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10939 }
10940 }
10941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0x1
| 0)
;
10942 return resultobj;
10943fail:
10944 return NULL__null;
10945}
10946
10947
10948SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10949 PyObject *resultobj = 0;
10950 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
10951 double *arg2 = 0 ;
10952 void *argp1 = 0 ;
10953 int res1 = 0 ;
10954 double temp2 ;
10955 double val2 ;
10956 int ecode2 = 0 ;
10957 PyObject * obj0 = 0 ;
10958 PyObject * obj1 = 0 ;
10959 GMatrixSparse *result = 0 ;
10960
10961 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___imul__",&obj0,&obj1)) SWIG_failgoto fail;
10962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
10963 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___imul__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___imul__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
10965 }
10966 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
10967 ecode2 = SWIG_AsVal_double(obj1, &val2);
10968 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse___imul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse___imul__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
10970 }
10971 temp2 = static_cast< double >(val2);
10972 arg2 = &temp2;
10973 {
10974 try {
10975 result = (GMatrixSparse *) &(arg1)->operator *=((double const &)*arg2);
10976 }
10977 catch (const GException::out_of_range& e) {
10978 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10979 }
10980 catch (const GExceptionHandler& e) {
10981 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10982 }
10983 catch (const std::exception& e) {
10984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10985 }
10986 }
10987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0x1
| 0)
;
10988 return resultobj;
10989fail:
10990 return NULL__null;
10991}
10992
10993
10994SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___imul__(PyObject *self, PyObject *args) {
10995 int argc;
10996 PyObject *argv[3];
10997 int ii;
10998
10999 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11000 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11001 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11002 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11003 }
11004 if (argc == 2) {
11005 int _v;
11006 void *vptr = 0;
11007 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11008 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11009 if (_v) {
11010 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
11011 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11012 if (_v) {
11013 return _wrap_GMatrixSparse___imul____SWIG_0(self, args);
11014 }
11015 }
11016 }
11017 if (argc == 2) {
11018 int _v;
11019 void *vptr = 0;
11020 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11021 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11022 if (_v) {
11023 {
11024 int res = SWIG_AsVal_double(argv[1], NULL__null);
11025 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11026 }
11027 if (_v) {
11028 return _wrap_GMatrixSparse___imul____SWIG_1(self, args);
11029 }
11030 }
11031 }
11032
11033fail:
11034 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse___imul__'.\n"
11035 " Possible C/C++ prototypes are:\n"
11036 " GMatrixSparse::operator *=(GMatrixSparse const &)\n"
11037 " GMatrixSparse::operator *=(double const &)\n");
11038 return 0;
11039}
11040
11041
11042SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11043 PyObject *resultobj = 0;
11044 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11045 double *arg2 = 0 ;
11046 void *argp1 = 0 ;
11047 int res1 = 0 ;
11048 double temp2 ;
11049 double val2 ;
11050 int ecode2 = 0 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 GMatrixSparse *result = 0 ;
11054
11055 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___idiv__",&obj0,&obj1)) SWIG_failgoto fail;
11056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
11057 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___idiv__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___idiv__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
11059 }
11060 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11061 ecode2 = SWIG_AsVal_double(obj1, &val2);
11062 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse___idiv__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse___idiv__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
11064 }
11065 temp2 = static_cast< double >(val2);
11066 arg2 = &temp2;
11067 {
11068 try {
11069 result = (GMatrixSparse *) &(arg1)->operator /=((double const &)*arg2);
11070 }
11071 catch (const GException::out_of_range& e) {
11072 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11073 }
11074 catch (const GExceptionHandler& e) {
11075 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11076 }
11077 catch (const std::exception& e) {
11078 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11079 }
11080 }
11081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0x1
| 0)
;
11082 return resultobj;
11083fail:
11084 return NULL__null;
11085}
11086
11087
11088SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11089 PyObject *resultobj = 0;
11090 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11091 void *argp1 = 0 ;
11092 int res1 = 0 ;
11093 PyObject * obj0 = 0 ;
11094
11095 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_clear",&obj0)) SWIG_failgoto fail;
11096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11097 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_clear" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_clear" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
11099 }
11100 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11101 {
11102 try {
11103 (arg1)->clear();
11104 }
11105 catch (const GException::out_of_range& e) {
11106 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11107 }
11108 catch (const GExceptionHandler& e) {
11109 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11110 }
11111 catch (const std::exception& e) {
11112 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11113 }
11114 }
11115 resultobj = SWIG_Py_Void();
11116 return resultobj;
11117fail:
11118 return NULL__null;
11119}
11120
11121
11122SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11123 PyObject *resultobj = 0;
11124 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11125 void *argp1 = 0 ;
11126 int res1 = 0 ;
11127 PyObject * obj0 = 0 ;
11128 GMatrixSparse *result = 0 ;
11129
11130 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_clone",&obj0)) SWIG_failgoto fail;
11131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11132 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_clone" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_clone" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
11134 }
11135 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11136 {
11137 try {
11138 result = (GMatrixSparse *)((GMatrixSparse const *)arg1)->clone();
11139 }
11140 catch (const GException::out_of_range& e) {
11141 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11142 }
11143 catch (const GExceptionHandler& e) {
11144 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11145 }
11146 catch (const std::exception& e) {
11147 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11148 }
11149 }
11150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0 |
0)
;
11151 return resultobj;
11152fail:
11153 return NULL__null;
11154}
11155
11156
11157SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11158 PyObject *resultobj = 0;
11159 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11160 int *arg2 = 0 ;
11161 int *arg3 = 0 ;
11162 void *argp1 = 0 ;
11163 int res1 = 0 ;
11164 int temp2 ;
11165 int val2 ;
11166 int ecode2 = 0 ;
11167 int temp3 ;
11168 int val3 ;
11169 int ecode3 = 0 ;
11170 PyObject * obj0 = 0 ;
11171 PyObject * obj1 = 0 ;
11172 PyObject * obj2 = 0 ;
11173 double *result = 0 ;
11174
11175 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_at",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11177 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_at" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_at" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
11179 }
11180 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11181 ecode2 = SWIG_AsVal_int(obj1, &val2);
11182 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11184 }
11185 temp2 = static_cast< int >(val2);
11186 arg2 = &temp2;
11187 ecode3 = SWIG_AsVal_int(obj2, &val3);
11188 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
11189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSparse_at" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSparse_at" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
11190 }
11191 temp3 = static_cast< int >(val3);
11192 arg3 = &temp3;
11193 {
11194 try {
11195 result = (double *) &(arg1)->at((int const &)*arg2,(int const &)*arg3);
11196 }
11197 catch (const GException::out_of_range& e) {
11198 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11199 }
11200 catch (const GExceptionHandler& e) {
11201 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11202 }
11203 catch (const std::exception& e) {
11204 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11205 }
11206 }
11207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
11208 return resultobj;
11209fail:
11210 return NULL__null;
11211}
11212
11213
11214SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_row__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11215 PyObject *resultobj = 0;
11216 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11217 int *arg2 = 0 ;
11218 void *argp1 = 0 ;
11219 int res1 = 0 ;
11220 int temp2 ;
11221 int val2 ;
11222 int ecode2 = 0 ;
11223 PyObject * obj0 = 0 ;
11224 PyObject * obj1 = 0 ;
11225 GVector result;
11226
11227 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_row",&obj0,&obj1)) SWIG_failgoto fail;
11228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11229 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_row" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_row" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
11231 }
11232 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11233 ecode2 = SWIG_AsVal_int(obj1, &val2);
11234 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11236 }
11237 temp2 = static_cast< int >(val2);
11238 arg2 = &temp2;
11239 {
11240 try {
11241 result = ((GMatrixSparse const *)arg1)->row((int const &)*arg2);
11242 }
11243 catch (const GException::out_of_range& e) {
11244 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11245 }
11246 catch (const GExceptionHandler& e) {
11247 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11248 }
11249 catch (const std::exception& e) {
11250 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11251 }
11252 }
11253 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
11254 return resultobj;
11255fail:
11256 return NULL__null;
11257}
11258
11259
11260SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_row__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11261 PyObject *resultobj = 0;
11262 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11263 int *arg2 = 0 ;
11264 GVector *arg3 = 0 ;
11265 void *argp1 = 0 ;
11266 int res1 = 0 ;
11267 int temp2 ;
11268 int val2 ;
11269 int ecode2 = 0 ;
11270 void *argp3 = 0 ;
11271 int res3 = 0 ;
11272 PyObject * obj0 = 0 ;
11273 PyObject * obj1 = 0 ;
11274 PyObject * obj2 = 0 ;
11275
11276 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11278 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_row" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_row" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
11280 }
11281 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11282 ecode2 = SWIG_AsVal_int(obj1, &val2);
11283 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11285 }
11286 temp2 = static_cast< int >(val2);
11287 arg2 = &temp2;
11288 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
11289 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11290 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSparse_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSparse_row" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
11291 }
11292 if (!argp3) {
11293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_row" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
11294 }
11295 arg3 = reinterpret_cast< GVector * >(argp3);
11296 {
11297 try {
11298 (arg1)->row((int const &)*arg2,(GVector const &)*arg3);
11299 }
11300 catch (const GException::out_of_range& e) {
11301 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11302 }
11303 catch (const GExceptionHandler& e) {
11304 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11305 }
11306 catch (const std::exception& e) {
11307 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11308 }
11309 }
11310 resultobj = SWIG_Py_Void();
11311 return resultobj;
11312fail:
11313 return NULL__null;
11314}
11315
11316
11317SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_row(PyObject *self, PyObject *args) {
11318 int argc;
11319 PyObject *argv[4];
11320 int ii;
11321
11322 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11323 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11324 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
11325 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11326 }
11327 if (argc == 2) {
11328 int _v;
11329 void *vptr = 0;
11330 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11331 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11332 if (_v) {
11333 {
11334 int res = SWIG_AsVal_int(argv[1], NULL__null);
11335 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11336 }
11337 if (_v) {
11338 return _wrap_GMatrixSparse_row__SWIG_0(self, args);
11339 }
11340 }
11341 }
11342 if (argc == 3) {
11343 int _v;
11344 void *vptr = 0;
11345 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11346 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11347 if (_v) {
11348 {
11349 int res = SWIG_AsVal_int(argv[1], NULL__null);
11350 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11351 }
11352 if (_v) {
11353 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
11354 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11355 if (_v) {
11356 return _wrap_GMatrixSparse_row__SWIG_1(self, args);
11357 }
11358 }
11359 }
11360 }
11361
11362fail:
11363 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_row'.\n"
11364 " Possible C/C++ prototypes are:\n"
11365 " GMatrixSparse::row(int const &) const\n"
11366 " GMatrixSparse::row(int const &,GVector const &)\n");
11367 return 0;
11368}
11369
11370
11371SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_column__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11372 PyObject *resultobj = 0;
11373 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11374 int *arg2 = 0 ;
11375 void *argp1 = 0 ;
11376 int res1 = 0 ;
11377 int temp2 ;
11378 int val2 ;
11379 int ecode2 = 0 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 GVector result;
11383
11384 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_column",&obj0,&obj1)) SWIG_failgoto fail;
11385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11386 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_column" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
11388 }
11389 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11390 ecode2 = SWIG_AsVal_int(obj1, &val2);
11391 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11393 }
11394 temp2 = static_cast< int >(val2);
11395 arg2 = &temp2;
11396 {
11397 try {
11398 result = ((GMatrixSparse const *)arg1)->column((int const &)*arg2);
11399 }
11400 catch (const GException::out_of_range& e) {
11401 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11402 }
11403 catch (const GExceptionHandler& e) {
11404 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11405 }
11406 catch (const std::exception& e) {
11407 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11408 }
11409 }
11410 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
11411 return resultobj;
11412fail:
11413 return NULL__null;
11414}
11415
11416
11417SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_column__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11418 PyObject *resultobj = 0;
11419 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11420 int *arg2 = 0 ;
11421 GVector *arg3 = 0 ;
11422 void *argp1 = 0 ;
11423 int res1 = 0 ;
11424 int temp2 ;
11425 int val2 ;
11426 int ecode2 = 0 ;
11427 void *argp3 = 0 ;
11428 int res3 = 0 ;
11429 PyObject * obj0 = 0 ;
11430 PyObject * obj1 = 0 ;
11431 PyObject * obj2 = 0 ;
11432
11433 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11435 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_column" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
11437 }
11438 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11439 ecode2 = SWIG_AsVal_int(obj1, &val2);
11440 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11442 }
11443 temp2 = static_cast< int >(val2);
11444 arg2 = &temp2;
11445 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
11446 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11447 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSparse_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
11448 }
11449 if (!argp3) {
11450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_column" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
11451 }
11452 arg3 = reinterpret_cast< GVector * >(argp3);
11453 {
11454 try {
11455 (arg1)->column((int const &)*arg2,(GVector const &)*arg3);
11456 }
11457 catch (const GException::out_of_range& e) {
11458 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11459 }
11460 catch (const GExceptionHandler& e) {
11461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11462 }
11463 catch (const std::exception& e) {
11464 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11465 }
11466 }
11467 resultobj = SWIG_Py_Void();
11468 return resultobj;
11469fail:
11470 return NULL__null;
11471}
11472
11473
11474SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_add_to_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11475 PyObject *resultobj = 0;
11476 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11477 int *arg2 = 0 ;
11478 GVector *arg3 = 0 ;
11479 void *argp1 = 0 ;
11480 int res1 = 0 ;
11481 int temp2 ;
11482 int val2 ;
11483 int ecode2 = 0 ;
11484 void *argp3 = 0 ;
11485 int res3 = 0 ;
11486 PyObject * obj0 = 0 ;
11487 PyObject * obj1 = 0 ;
11488 PyObject * obj2 = 0 ;
11489
11490 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_add_to_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11492 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_add_to_row" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_add_to_row" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
11494 }
11495 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11496 ecode2 = SWIG_AsVal_int(obj1, &val2);
11497 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_add_to_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_add_to_row"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
11499 }
11500 temp2 = static_cast< int >(val2);
11501 arg2 = &temp2;
11502 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
11503 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11504 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSparse_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSparse_add_to_row" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
11505 }
11506 if (!argp3) {
11507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_add_to_row" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
11508 }
11509 arg3 = reinterpret_cast< GVector * >(argp3);
11510 {
11511 try {
11512 (arg1)->add_to_row((int const &)*arg2,(GVector const &)*arg3);
11513 }
11514 catch (const GException::out_of_range& e) {
11515 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11516 }
11517 catch (const GExceptionHandler& e) {
11518 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11519 }
11520 catch (const std::exception& e) {
11521 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11522 }
11523 }
11524 resultobj = SWIG_Py_Void();
11525 return resultobj;
11526fail:
11527 return NULL__null;
11528}
11529
11530
11531SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_add_to_column__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11532 PyObject *resultobj = 0;
11533 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11534 int *arg2 = 0 ;
11535 GVector *arg3 = 0 ;
11536 void *argp1 = 0 ;
11537 int res1 = 0 ;
11538 int temp2 ;
11539 int val2 ;
11540 int ecode2 = 0 ;
11541 void *argp3 = 0 ;
11542 int res3 = 0 ;
11543 PyObject * obj0 = 0 ;
11544 PyObject * obj1 = 0 ;
11545 PyObject * obj2 = 0 ;
11546
11547 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_add_to_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11549 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_add_to_column" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
11551 }
11552 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11553 ecode2 = SWIG_AsVal_int(obj1, &val2);
11554 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_add_to_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
11556 }
11557 temp2 = static_cast< int >(val2);
11558 arg2 = &temp2;
11559 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
11560 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11561 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSparse_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "3"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
11562 }
11563 if (!argp3) {
11564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_add_to_column" "', argument " "3"
" of type '" "GVector const &""'"); goto fail; } while(0)
;
11565 }
11566 arg3 = reinterpret_cast< GVector * >(argp3);
11567 {
11568 try {
11569 (arg1)->add_to_column((int const &)*arg2,(GVector const &)*arg3);
11570 }
11571 catch (const GException::out_of_range& e) {
11572 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11573 }
11574 catch (const GExceptionHandler& e) {
11575 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11576 }
11577 catch (const std::exception& e) {
11578 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11579 }
11580 }
11581 resultobj = SWIG_Py_Void();
11582 return resultobj;
11583fail:
11584 return NULL__null;
11585}
11586
11587
11588SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11589 PyObject *resultobj = 0;
11590 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11591 void *argp1 = 0 ;
11592 int res1 = 0 ;
11593 PyObject * obj0 = 0 ;
11594 double result;
11595
11596 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_fill",&obj0)) SWIG_failgoto fail;
11597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11598 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_fill" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_fill" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
11600 }
11601 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11602 {
11603 try {
11604 result = (double)((GMatrixSparse const *)arg1)->fill();
11605 }
11606 catch (const GException::out_of_range& e) {
11607 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11608 }
11609 catch (const GExceptionHandler& e) {
11610 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11611 }
11612 catch (const std::exception& e) {
11613 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11614 }
11615 }
11616 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
11617 return resultobj;
11618fail:
11619 return NULL__null;
11620}
11621
11622
11623SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11624 PyObject *resultobj = 0;
11625 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11626 void *argp1 = 0 ;
11627 int res1 = 0 ;
11628 PyObject * obj0 = 0 ;
11629 double result;
11630
11631 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_min",&obj0)) SWIG_failgoto fail;
11632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11633 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_min" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_min" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
11635 }
11636 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11637 {
11638 try {
11639 result = (double)((GMatrixSparse const *)arg1)->min();
11640 }
11641 catch (const GException::out_of_range& e) {
11642 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11643 }
11644 catch (const GExceptionHandler& e) {
11645 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11646 }
11647 catch (const std::exception& e) {
11648 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11649 }
11650 }
11651 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
11652 return resultobj;
11653fail:
11654 return NULL__null;
11655}
11656
11657
11658SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659 PyObject *resultobj = 0;
11660 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11661 void *argp1 = 0 ;
11662 int res1 = 0 ;
11663 PyObject * obj0 = 0 ;
11664 double result;
11665
11666 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_max",&obj0)) SWIG_failgoto fail;
11667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11668 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_max" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_max" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
11670 }
11671 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11672 {
11673 try {
11674 result = (double)((GMatrixSparse const *)arg1)->max();
11675 }
11676 catch (const GException::out_of_range& e) {
11677 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11678 }
11679 catch (const GExceptionHandler& e) {
11680 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11681 }
11682 catch (const std::exception& e) {
11683 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11684 }
11685 }
11686 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
11687 return resultobj;
11688fail:
11689 return NULL__null;
11690}
11691
11692
11693SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11694 PyObject *resultobj = 0;
11695 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11696 void *argp1 = 0 ;
11697 int res1 = 0 ;
11698 PyObject * obj0 = 0 ;
11699 double result;
11700
11701 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_sum",&obj0)) SWIG_failgoto fail;
11702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11703 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_sum" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_sum" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
11705 }
11706 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11707 {
11708 try {
11709 result = (double)((GMatrixSparse const *)arg1)->sum();
11710 }
11711 catch (const GException::out_of_range& e) {
11712 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11713 }
11714 catch (const GExceptionHandler& e) {
11715 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11716 }
11717 catch (const std::exception& e) {
11718 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11719 }
11720 }
11721 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
11722 return resultobj;
11723fail:
11724 return NULL__null;
11725}
11726
11727
11728SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_column__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11729 PyObject *resultobj = 0;
11730 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11731 int *arg2 = 0 ;
11732 double *arg3 = (double *) 0 ;
11733 int *arg4 = (int *) 0 ;
11734 int arg5 ;
11735 void *argp1 = 0 ;
11736 int res1 = 0 ;
11737 int temp2 ;
11738 int val2 ;
11739 int ecode2 = 0 ;
11740 void *argp3 = 0 ;
11741 int res3 = 0 ;
11742 void *argp4 = 0 ;
11743 int res4 = 0 ;
11744 int val5 ;
11745 int ecode5 = 0 ;
11746 PyObject * obj0 = 0 ;
11747 PyObject * obj1 = 0 ;
11748 PyObject * obj2 = 0 ;
11749 PyObject * obj3 = 0 ;
11750 PyObject * obj4 = 0 ;
11751
11752 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GMatrixSparse_column",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
11753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11754 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_column" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
11756 }
11757 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11758 ecode2 = SWIG_AsVal_int(obj1, &val2);
11759 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11761 }
11762 temp2 = static_cast< int >(val2);
11763 arg2 = &temp2;
11764 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[7],
0 | 0, 0)
;
11765 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11766 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSparse_column" "', argument " "3"" of type '" "double const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"3"" of type '" "double const *""'"); goto fail; } while(0)
;
11767 }
11768 arg3 = reinterpret_cast< double * >(argp3);
11769 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[8],
0 | 0, 0)
;
11770 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11771 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GMatrixSparse_column" "', argument " "4"" of type '" "int const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"4"" of type '" "int const *""'"); goto fail; } while(0)
;
11772 }
11773 arg4 = reinterpret_cast< int * >(argp4);
11774 ecode5 = SWIG_AsVal_int(obj4, &val5);
11775 if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) {
11776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GMatrixSparse_column" "', argument " "5"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 !=
(-1)) ? ecode5 : -5)), "in method '" "GMatrixSparse_column" "', argument "
"5"" of type '" "int""'"); goto fail; } while(0)
;
11777 }
11778 arg5 = static_cast< int >(val5);
11779 {
11780 try {
11781 (arg1)->column((int const &)*arg2,(double const *)arg3,(int const *)arg4,arg5);
11782 }
11783 catch (const GException::out_of_range& e) {
11784 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11785 }
11786 catch (const GExceptionHandler& e) {
11787 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11788 }
11789 catch (const std::exception& e) {
11790 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11791 }
11792 }
11793 resultobj = SWIG_Py_Void();
11794 return resultobj;
11795fail:
11796 return NULL__null;
11797}
11798
11799
11800SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_column(PyObject *self, PyObject *args) {
11801 int argc;
11802 PyObject *argv[6];
11803 int ii;
11804
11805 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11806 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11807 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
11808 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11809 }
11810 if (argc == 2) {
11811 int _v;
11812 void *vptr = 0;
11813 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11814 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11815 if (_v) {
11816 {
11817 int res = SWIG_AsVal_int(argv[1], NULL__null);
11818 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11819 }
11820 if (_v) {
11821 return _wrap_GMatrixSparse_column__SWIG_0(self, args);
11822 }
11823 }
11824 }
11825 if (argc == 3) {
11826 int _v;
11827 void *vptr = 0;
11828 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11829 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11830 if (_v) {
11831 {
11832 int res = SWIG_AsVal_int(argv[1], NULL__null);
11833 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11834 }
11835 if (_v) {
11836 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
11837 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11838 if (_v) {
11839 return _wrap_GMatrixSparse_column__SWIG_1(self, args);
11840 }
11841 }
11842 }
11843 }
11844 if (argc == 5) {
11845 int _v;
11846 void *vptr = 0;
11847 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11848 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11849 if (_v) {
11850 {
11851 int res = SWIG_AsVal_int(argv[1], NULL__null);
11852 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11853 }
11854 if (_v) {
11855 void *vptr = 0;
11856 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_double, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[7
], 0, 0)
;
11857 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11858 if (_v) {
11859 void *vptr = 0;
11860 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], &vptr, swig_types[8
], 0, 0)
;
11861 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11862 if (_v) {
11863 {
11864 int res = SWIG_AsVal_int(argv[4], NULL__null);
11865 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11866 }
11867 if (_v) {
11868 return _wrap_GMatrixSparse_column__SWIG_2(self, args);
11869 }
11870 }
11871 }
11872 }
11873 }
11874 }
11875
11876fail:
11877 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_column'.\n"
11878 " Possible C/C++ prototypes are:\n"
11879 " GMatrixSparse::column(int const &) const\n"
11880 " GMatrixSparse::column(int const &,GVector const &)\n"
11881 " GMatrixSparse::column(int const &,double const *,int const *,int)\n");
11882 return 0;
11883}
11884
11885
11886SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_add_to_column__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11887 PyObject *resultobj = 0;
11888 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
11889 int *arg2 = 0 ;
11890 double *arg3 = (double *) 0 ;
11891 int *arg4 = (int *) 0 ;
11892 int arg5 ;
11893 void *argp1 = 0 ;
11894 int res1 = 0 ;
11895 int temp2 ;
11896 int val2 ;
11897 int ecode2 = 0 ;
11898 void *argp3 = 0 ;
11899 int res3 = 0 ;
11900 void *argp4 = 0 ;
11901 int res4 = 0 ;
11902 int val5 ;
11903 int ecode5 = 0 ;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 PyObject * obj2 = 0 ;
11907 PyObject * obj3 = 0 ;
11908 PyObject * obj4 = 0 ;
11909
11910 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GMatrixSparse_add_to_column",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
11911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
11912 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_add_to_column" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
11914 }
11915 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
11916 ecode2 = SWIG_AsVal_int(obj1, &val2);
11917 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_add_to_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
11919 }
11920 temp2 = static_cast< int >(val2);
11921 arg2 = &temp2;
11922 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[7],
0 | 0, 0)
;
11923 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11924 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSparse_add_to_column" "', argument " "3"" of type '" "double const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "3"" of type '" "double const *""'"); goto fail
; } while(0)
;
11925 }
11926 arg3 = reinterpret_cast< double * >(argp3);
11927 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[8],
0 | 0, 0)
;
11928 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11929 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GMatrixSparse_add_to_column" "', argument " "4"" of type '" "int const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "4"" of type '" "int const *""'"); goto fail;
} while(0)
;
11930 }
11931 arg4 = reinterpret_cast< int * >(argp4);
11932 ecode5 = SWIG_AsVal_int(obj4, &val5);
11933 if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) {
11934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GMatrixSparse_add_to_column" "', argument " "5"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 !=
(-1)) ? ecode5 : -5)), "in method '" "GMatrixSparse_add_to_column"
"', argument " "5"" of type '" "int""'"); goto fail; } while
(0)
;
11935 }
11936 arg5 = static_cast< int >(val5);
11937 {
11938 try {
11939 (arg1)->add_to_column((int const &)*arg2,(double const *)arg3,(int const *)arg4,arg5);
11940 }
11941 catch (const GException::out_of_range& e) {
11942 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11943 }
11944 catch (const GExceptionHandler& e) {
11945 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11946 }
11947 catch (const std::exception& e) {
11948 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11949 }
11950 }
11951 resultobj = SWIG_Py_Void();
11952 return resultobj;
11953fail:
11954 return NULL__null;
11955}
11956
11957
11958SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_add_to_column(PyObject *self, PyObject *args) {
11959 int argc;
11960 PyObject *argv[6];
11961 int ii;
11962
11963 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11964 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11965 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
11966 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11967 }
11968 if (argc == 3) {
11969 int _v;
11970 void *vptr = 0;
11971 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11972 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11973 if (_v) {
11974 {
11975 int res = SWIG_AsVal_int(argv[1], NULL__null);
11976 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11977 }
11978 if (_v) {
11979 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
11980 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11981 if (_v) {
11982 return _wrap_GMatrixSparse_add_to_column__SWIG_0(self, args);
11983 }
11984 }
11985 }
11986 }
11987 if (argc == 5) {
11988 int _v;
11989 void *vptr = 0;
11990 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
11991 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11992 if (_v) {
11993 {
11994 int res = SWIG_AsVal_int(argv[1], NULL__null);
11995 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11996 }
11997 if (_v) {
11998 void *vptr = 0;
11999 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_double, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[7
], 0, 0)
;
12000 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12001 if (_v) {
12002 void *vptr = 0;
12003 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], &vptr, swig_types[8
], 0, 0)
;
12004 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12005 if (_v) {
12006 {
12007 int res = SWIG_AsVal_int(argv[4], NULL__null);
12008 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12009 }
12010 if (_v) {
12011 return _wrap_GMatrixSparse_add_to_column__SWIG_1(self, args);
12012 }
12013 }
12014 }
12015 }
12016 }
12017 }
12018
12019fail:
12020 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_add_to_column'.\n"
12021 " Possible C/C++ prototypes are:\n"
12022 " GMatrixSparse::add_to_column(int const &,GVector const &)\n"
12023 " GMatrixSparse::add_to_column(int const &,double const *,int const *,int)\n");
12024 return 0;
12025}
12026
12027
12028SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_transpose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12029 PyObject *resultobj = 0;
12030 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12031 void *argp1 = 0 ;
12032 int res1 = 0 ;
12033 PyObject * obj0 = 0 ;
12034 GMatrixSparse result;
12035
12036 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_transpose",&obj0)) SWIG_failgoto fail;
12037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12038 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_transpose" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_transpose" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
12040 }
12041 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12042 {
12043 try {
12044 result = ((GMatrixSparse const *)arg1)->transpose();
12045 }
12046 catch (const GException::out_of_range& e) {
12047 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12048 }
12049 catch (const GExceptionHandler& e) {
12050 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12051 }
12052 catch (const std::exception& e) {
12053 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12054 }
12055 }
12056 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
12057 return resultobj;
12058fail:
12059 return NULL__null;
12060}
12061
12062
12063SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12064 PyObject *resultobj = 0;
12065 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12066 void *argp1 = 0 ;
12067 int res1 = 0 ;
12068 PyObject * obj0 = 0 ;
12069 GMatrixSparse result;
12070
12071 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_invert",&obj0)) SWIG_failgoto fail;
12072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12073 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_invert" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_invert" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
12075 }
12076 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12077 {
12078 try {
12079 result = ((GMatrixSparse const *)arg1)->invert();
12080 }
12081 catch (const GException::out_of_range& e) {
12082 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12083 }
12084 catch (const GExceptionHandler& e) {
12085 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12086 }
12087 catch (const std::exception& e) {
12088 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12089 }
12090 }
12091 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
12092 return resultobj;
12093fail:
12094 return NULL__null;
12095}
12096
12097
12098SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_solve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12099 PyObject *resultobj = 0;
12100 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12101 GVector *arg2 = 0 ;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 void *argp2 = 0 ;
12105 int res2 = 0 ;
12106 PyObject * obj0 = 0 ;
12107 PyObject * obj1 = 0 ;
12108 GVector result;
12109
12110 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_solve",&obj0,&obj1)) SWIG_failgoto fail;
12111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12112 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_solve" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_solve" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
12114 }
12115 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12117 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse_solve" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse_solve" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
12119 }
12120 if (!argp2) {
12121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_solve" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_solve" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
12122 }
12123 arg2 = reinterpret_cast< GVector * >(argp2);
12124 {
12125 try {
12126 result = ((GMatrixSparse const *)arg1)->solve((GVector const &)*arg2);
12127 }
12128 catch (const GException::out_of_range& e) {
12129 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12130 }
12131 catch (const GExceptionHandler& e) {
12132 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12133 }
12134 catch (const std::exception& e) {
12135 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12136 }
12137 }
12138 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
12139 return resultobj;
12140fail:
12141 return NULL__null;
12142}
12143
12144
12145SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_abs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12146 PyObject *resultobj = 0;
12147 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12148 void *argp1 = 0 ;
12149 int res1 = 0 ;
12150 PyObject * obj0 = 0 ;
12151 GMatrixSparse result;
12152
12153 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_abs",&obj0)) SWIG_failgoto fail;
12154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12155 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_abs" "', argument " "1"" of type '" "GMatrixSparse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_abs" "', argument "
"1"" of type '" "GMatrixSparse const *""'"); goto fail; } while
(0)
;
12157 }
12158 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12159 {
12160 try {
12161 result = ((GMatrixSparse const *)arg1)->abs();
12162 }
12163 catch (const GException::out_of_range& e) {
12164 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12165 }
12166 catch (const GExceptionHandler& e) {
12167 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12168 }
12169 catch (const std::exception& e) {
12170 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12171 }
12172 }
12173 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
12174 return resultobj;
12175fail:
12176 return NULL__null;
12177}
12178
12179
12180SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_decompose__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12181 PyObject *resultobj = 0;
12182 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12183 bool arg2 ;
12184 void *argp1 = 0 ;
12185 int res1 = 0 ;
12186 bool val2 ;
12187 int ecode2 = 0 ;
12188 PyObject * obj0 = 0 ;
12189 PyObject * obj1 = 0 ;
12190 GMatrixSparse result;
12191
12192 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_cholesky_decompose",&obj0,&obj1)) SWIG_failgoto fail;
12193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12194 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_cholesky_decompose" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_cholesky_decompose"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12196 }
12197 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12198 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12199 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_cholesky_decompose" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_cholesky_decompose"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
12201 }
12202 arg2 = static_cast< bool >(val2);
12203 {
12204 try {
12205 result = (arg1)->cholesky_decompose(arg2);
12206 }
12207 catch (const GException::out_of_range& e) {
12208 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12209 }
12210 catch (const GExceptionHandler& e) {
12211 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12212 }
12213 catch (const std::exception& e) {
12214 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12215 }
12216 }
12217 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
12218 return resultobj;
12219fail:
12220 return NULL__null;
12221}
12222
12223
12224SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_decompose__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12225 PyObject *resultobj = 0;
12226 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12227 void *argp1 = 0 ;
12228 int res1 = 0 ;
12229 PyObject * obj0 = 0 ;
12230 GMatrixSparse result;
12231
12232 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_cholesky_decompose",&obj0)) SWIG_failgoto fail;
12233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12234 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_cholesky_decompose" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_cholesky_decompose"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12236 }
12237 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12238 {
12239 try {
12240 result = (arg1)->cholesky_decompose();
12241 }
12242 catch (const GException::out_of_range& e) {
12243 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12244 }
12245 catch (const GExceptionHandler& e) {
12246 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12247 }
12248 catch (const std::exception& e) {
12249 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12250 }
12251 }
12252 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
12253 return resultobj;
12254fail:
12255 return NULL__null;
12256}
12257
12258
12259SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_decompose(PyObject *self, PyObject *args) {
12260 int argc;
12261 PyObject *argv[3];
12262 int ii;
12263
12264 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12265 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12266 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
12267 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12268 }
12269 if (argc == 1) {
12270 int _v;
12271 void *vptr = 0;
12272 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12273 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12274 if (_v) {
12275 return _wrap_GMatrixSparse_cholesky_decompose__SWIG_1(self, args);
12276 }
12277 }
12278 if (argc == 2) {
12279 int _v;
12280 void *vptr = 0;
12281 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12282 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12283 if (_v) {
12284 {
12285 int res = SWIG_AsVal_bool(argv[1], NULL__null);
12286 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12287 }
12288 if (_v) {
12289 return _wrap_GMatrixSparse_cholesky_decompose__SWIG_0(self, args);
12290 }
12291 }
12292 }
12293
12294fail:
12295 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_cholesky_decompose'.\n"
12296 " Possible C/C++ prototypes are:\n"
12297 " GMatrixSparse::cholesky_decompose(bool)\n"
12298 " GMatrixSparse::cholesky_decompose()\n");
12299 return 0;
12300}
12301
12302
12303SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_solver__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12306 GVector *arg2 = 0 ;
12307 bool arg3 ;
12308 void *argp1 = 0 ;
12309 int res1 = 0 ;
12310 void *argp2 = 0 ;
12311 int res2 = 0 ;
12312 bool val3 ;
12313 int ecode3 = 0 ;
12314 PyObject * obj0 = 0 ;
12315 PyObject * obj1 = 0 ;
12316 PyObject * obj2 = 0 ;
12317 GVector result;
12318
12319 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_cholesky_solver",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
12320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12321 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_cholesky_solver" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_cholesky_solver"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12323 }
12324 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12325 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12326 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse_cholesky_solver"
"', argument " "2"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
12328 }
12329 if (!argp2) {
12330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_cholesky_solver" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
12331 }
12332 arg2 = reinterpret_cast< GVector * >(argp2);
12333 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12334 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
12335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSparse_cholesky_solver" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSparse_cholesky_solver"
"', argument " "3"" of type '" "bool""'"); goto fail; } while
(0)
;
12336 }
12337 arg3 = static_cast< bool >(val3);
12338 {
12339 try {
12340 result = (arg1)->cholesky_solver((GVector const &)*arg2,arg3);
12341 }
12342 catch (const GException::out_of_range& e) {
12343 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12344 }
12345 catch (const GExceptionHandler& e) {
12346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12347 }
12348 catch (const std::exception& e) {
12349 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12350 }
12351 }
12352 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
12353 return resultobj;
12354fail:
12355 return NULL__null;
12356}
12357
12358
12359SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_solver__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12360 PyObject *resultobj = 0;
12361 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12362 GVector *arg2 = 0 ;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 void *argp2 = 0 ;
12366 int res2 = 0 ;
12367 PyObject * obj0 = 0 ;
12368 PyObject * obj1 = 0 ;
12369 GVector result;
12370
12371 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_cholesky_solver",&obj0,&obj1)) SWIG_failgoto fail;
12372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12373 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_cholesky_solver" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_cholesky_solver"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12375 }
12376 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12378 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse_cholesky_solver"
"', argument " "2"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
12380 }
12381 if (!argp2) {
12382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_cholesky_solver" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
12383 }
12384 arg2 = reinterpret_cast< GVector * >(argp2);
12385 {
12386 try {
12387 result = (arg1)->cholesky_solver((GVector const &)*arg2);
12388 }
12389 catch (const GException::out_of_range& e) {
12390 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12391 }
12392 catch (const GExceptionHandler& e) {
12393 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12394 }
12395 catch (const std::exception& e) {
12396 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12397 }
12398 }
12399 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
12400 return resultobj;
12401fail:
12402 return NULL__null;
12403}
12404
12405
12406SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_solver(PyObject *self, PyObject *args) {
12407 int argc;
12408 PyObject *argv[4];
12409 int ii;
12410
12411 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12412 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12413 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
12414 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12415 }
12416 if (argc == 2) {
12417 int _v;
12418 void *vptr = 0;
12419 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12420 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12421 if (_v) {
12422 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
12423 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12424 if (_v) {
12425 return _wrap_GMatrixSparse_cholesky_solver__SWIG_1(self, args);
12426 }
12427 }
12428 }
12429 if (argc == 3) {
12430 int _v;
12431 void *vptr = 0;
12432 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12433 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12434 if (_v) {
12435 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
12436 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12437 if (_v) {
12438 {
12439 int res = SWIG_AsVal_bool(argv[2], NULL__null);
12440 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12441 }
12442 if (_v) {
12443 return _wrap_GMatrixSparse_cholesky_solver__SWIG_0(self, args);
12444 }
12445 }
12446 }
12447 }
12448
12449fail:
12450 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_cholesky_solver'.\n"
12451 " Possible C/C++ prototypes are:\n"
12452 " GMatrixSparse::cholesky_solver(GVector const &,bool)\n"
12453 " GMatrixSparse::cholesky_solver(GVector const &)\n");
12454 return 0;
12455}
12456
12457
12458SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_invert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12459 PyObject *resultobj = 0;
12460 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12461 bool arg2 ;
12462 void *argp1 = 0 ;
12463 int res1 = 0 ;
12464 bool val2 ;
12465 int ecode2 = 0 ;
12466 PyObject * obj0 = 0 ;
12467 PyObject * obj1 = 0 ;
12468 GMatrixSparse result;
12469
12470 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_cholesky_invert",&obj0,&obj1)) SWIG_failgoto fail;
12471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12472 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_cholesky_invert" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_cholesky_invert"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12474 }
12475 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12476 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12477 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_cholesky_invert" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_cholesky_invert"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
12479 }
12480 arg2 = static_cast< bool >(val2);
12481 {
12482 try {
12483 result = (arg1)->cholesky_invert(arg2);
12484 }
12485 catch (const GException::out_of_range& e) {
12486 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12487 }
12488 catch (const GExceptionHandler& e) {
12489 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12490 }
12491 catch (const std::exception& e) {
12492 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12493 }
12494 }
12495 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
12496 return resultobj;
12497fail:
12498 return NULL__null;
12499}
12500
12501
12502SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_invert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12503 PyObject *resultobj = 0;
12504 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12505 void *argp1 = 0 ;
12506 int res1 = 0 ;
12507 PyObject * obj0 = 0 ;
12508 GMatrixSparse result;
12509
12510 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_cholesky_invert",&obj0)) SWIG_failgoto fail;
12511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12512 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_cholesky_invert" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_cholesky_invert"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12514 }
12515 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12516 {
12517 try {
12518 result = (arg1)->cholesky_invert();
12519 }
12520 catch (const GException::out_of_range& e) {
12521 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12522 }
12523 catch (const GExceptionHandler& e) {
12524 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12525 }
12526 catch (const std::exception& e) {
12527 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12528 }
12529 }
12530 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
12531 return resultobj;
12532fail:
12533 return NULL__null;
12534}
12535
12536
12537SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_cholesky_invert(PyObject *self, PyObject *args) {
12538 int argc;
12539 PyObject *argv[3];
12540 int ii;
12541
12542 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12543 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12544 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
12545 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12546 }
12547 if (argc == 1) {
12548 int _v;
12549 void *vptr = 0;
12550 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12551 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12552 if (_v) {
12553 return _wrap_GMatrixSparse_cholesky_invert__SWIG_1(self, args);
12554 }
12555 }
12556 if (argc == 2) {
12557 int _v;
12558 void *vptr = 0;
12559 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12560 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12561 if (_v) {
12562 {
12563 int res = SWIG_AsVal_bool(argv[1], NULL__null);
12564 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12565 }
12566 if (_v) {
12567 return _wrap_GMatrixSparse_cholesky_invert__SWIG_0(self, args);
12568 }
12569 }
12570 }
12571
12572fail:
12573 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_cholesky_invert'.\n"
12574 " Possible C/C++ prototypes are:\n"
12575 " GMatrixSparse::cholesky_invert(bool)\n"
12576 " GMatrixSparse::cholesky_invert()\n");
12577 return 0;
12578}
12579
12580
12581SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_set_mem_block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12582 PyObject *resultobj = 0;
12583 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12584 int *arg2 = 0 ;
12585 void *argp1 = 0 ;
12586 int res1 = 0 ;
12587 int temp2 ;
12588 int val2 ;
12589 int ecode2 = 0 ;
12590 PyObject * obj0 = 0 ;
12591 PyObject * obj1 = 0 ;
12592
12593 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_set_mem_block",&obj0,&obj1)) SWIG_failgoto fail;
12594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12595 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_set_mem_block" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_set_mem_block"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12597 }
12598 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12599 ecode2 = SWIG_AsVal_int(obj1, &val2);
12600 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_set_mem_block" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_set_mem_block"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
12602 }
12603 temp2 = static_cast< int >(val2);
12604 arg2 = &temp2;
12605 {
12606 try {
12607 (arg1)->set_mem_block((int const &)*arg2);
12608 }
12609 catch (const GException::out_of_range& e) {
12610 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12611 }
12612 catch (const GExceptionHandler& e) {
12613 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12614 }
12615 catch (const std::exception& e) {
12616 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12617 }
12618 }
12619 resultobj = SWIG_Py_Void();
12620 return resultobj;
12621fail:
12622 return NULL__null;
12623}
12624
12625
12626SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_init__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12627 PyObject *resultobj = 0;
12628 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12629 int *arg2 = 0 ;
12630 int *arg3 = 0 ;
12631 void *argp1 = 0 ;
12632 int res1 = 0 ;
12633 int temp2 ;
12634 int val2 ;
12635 int ecode2 = 0 ;
12636 int temp3 ;
12637 int val3 ;
12638 int ecode3 = 0 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 PyObject * obj2 = 0 ;
12642
12643 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_stack_init",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
12644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12645 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_stack_init" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_stack_init" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
12647 }
12648 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12649 ecode2 = SWIG_AsVal_int(obj1, &val2);
12650 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_stack_init" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_stack_init"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
12652 }
12653 temp2 = static_cast< int >(val2);
12654 arg2 = &temp2;
12655 ecode3 = SWIG_AsVal_int(obj2, &val3);
12656 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
12657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSparse_stack_init" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSparse_stack_init"
"', argument " "3"" of type '" "int""'"); goto fail; } while
(0)
;
12658 }
12659 temp3 = static_cast< int >(val3);
12660 arg3 = &temp3;
12661 {
12662 try {
12663 (arg1)->stack_init((int const &)*arg2,(int const &)*arg3);
12664 }
12665 catch (const GException::out_of_range& e) {
12666 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12667 }
12668 catch (const GExceptionHandler& e) {
12669 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12670 }
12671 catch (const std::exception& e) {
12672 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12673 }
12674 }
12675 resultobj = SWIG_Py_Void();
12676 return resultobj;
12677fail:
12678 return NULL__null;
12679}
12680
12681
12682SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_init__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12683 PyObject *resultobj = 0;
12684 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12685 int *arg2 = 0 ;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 int temp2 ;
12689 int val2 ;
12690 int ecode2 = 0 ;
12691 PyObject * obj0 = 0 ;
12692 PyObject * obj1 = 0 ;
12693
12694 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_stack_init",&obj0,&obj1)) SWIG_failgoto fail;
12695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12696 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_stack_init" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_stack_init" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
12698 }
12699 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12700 ecode2 = SWIG_AsVal_int(obj1, &val2);
12701 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_stack_init" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_stack_init"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
12703 }
12704 temp2 = static_cast< int >(val2);
12705 arg2 = &temp2;
12706 {
12707 try {
12708 (arg1)->stack_init((int const &)*arg2);
12709 }
12710 catch (const GException::out_of_range& e) {
12711 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12712 }
12713 catch (const GExceptionHandler& e) {
12714 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12715 }
12716 catch (const std::exception& e) {
12717 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12718 }
12719 }
12720 resultobj = SWIG_Py_Void();
12721 return resultobj;
12722fail:
12723 return NULL__null;
12724}
12725
12726
12727SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_init__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12728 PyObject *resultobj = 0;
12729 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12730 void *argp1 = 0 ;
12731 int res1 = 0 ;
12732 PyObject * obj0 = 0 ;
12733
12734 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_stack_init",&obj0)) SWIG_failgoto fail;
12735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12736 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_stack_init" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_stack_init" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
12738 }
12739 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12740 {
12741 try {
12742 (arg1)->stack_init();
12743 }
12744 catch (const GException::out_of_range& e) {
12745 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12746 }
12747 catch (const GExceptionHandler& e) {
12748 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12749 }
12750 catch (const std::exception& e) {
12751 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12752 }
12753 }
12754 resultobj = SWIG_Py_Void();
12755 return resultobj;
12756fail:
12757 return NULL__null;
12758}
12759
12760
12761SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_init(PyObject *self, PyObject *args) {
12762 int argc;
12763 PyObject *argv[4];
12764 int ii;
12765
12766 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12767 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12768 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
12769 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12770 }
12771 if (argc == 1) {
12772 int _v;
12773 void *vptr = 0;
12774 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12775 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12776 if (_v) {
12777 return _wrap_GMatrixSparse_stack_init__SWIG_2(self, args);
12778 }
12779 }
12780 if (argc == 2) {
12781 int _v;
12782 void *vptr = 0;
12783 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12784 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12785 if (_v) {
12786 {
12787 int res = SWIG_AsVal_int(argv[1], NULL__null);
12788 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12789 }
12790 if (_v) {
12791 return _wrap_GMatrixSparse_stack_init__SWIG_1(self, args);
12792 }
12793 }
12794 }
12795 if (argc == 3) {
12796 int _v;
12797 void *vptr = 0;
12798 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12799 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12800 if (_v) {
12801 {
12802 int res = SWIG_AsVal_int(argv[1], NULL__null);
12803 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12804 }
12805 if (_v) {
12806 {
12807 int res = SWIG_AsVal_int(argv[2], NULL__null);
12808 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12809 }
12810 if (_v) {
12811 return _wrap_GMatrixSparse_stack_init__SWIG_0(self, args);
12812 }
12813 }
12814 }
12815 }
12816
12817fail:
12818 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_stack_init'.\n"
12819 " Possible C/C++ prototypes are:\n"
12820 " GMatrixSparse::stack_init(int const &,int const &)\n"
12821 " GMatrixSparse::stack_init(int const &)\n"
12822 " GMatrixSparse::stack_init()\n");
12823 return 0;
12824}
12825
12826
12827SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_push_column__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12828 PyObject *resultobj = 0;
12829 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12830 GVector *arg2 = 0 ;
12831 int *arg3 = 0 ;
12832 void *argp1 = 0 ;
12833 int res1 = 0 ;
12834 void *argp2 = 0 ;
12835 int res2 = 0 ;
12836 int temp3 ;
12837 int val3 ;
12838 int ecode3 = 0 ;
12839 PyObject * obj0 = 0 ;
12840 PyObject * obj1 = 0 ;
12841 PyObject * obj2 = 0 ;
12842 int result;
12843
12844 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse_stack_push_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
12845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12846 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_stack_push_column" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12848 }
12849 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12850 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12851 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse_stack_push_column" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "2"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
12853 }
12854 if (!argp2) {
12855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse_stack_push_column" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse_stack_push_column" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
12856 }
12857 arg2 = reinterpret_cast< GVector * >(argp2);
12858 ecode3 = SWIG_AsVal_int(obj2, &val3);
12859 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
12860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSparse_stack_push_column" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "3"" of type '" "int""'"); goto fail; } while
(0)
;
12861 }
12862 temp3 = static_cast< int >(val3);
12863 arg3 = &temp3;
12864 {
12865 try {
12866 result = (int)(arg1)->stack_push_column((GVector const &)*arg2,(int const &)*arg3);
12867 }
12868 catch (const GException::out_of_range& e) {
12869 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12870 }
12871 catch (const GExceptionHandler& e) {
12872 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12873 }
12874 catch (const std::exception& e) {
12875 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12876 }
12877 }
12878 resultobj = SWIG_From_int(static_cast< int >(result));
12879 return resultobj;
12880fail:
12881 return NULL__null;
12882}
12883
12884
12885SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_push_column__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12886 PyObject *resultobj = 0;
12887 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
12888 double *arg2 = (double *) 0 ;
12889 int *arg3 = (int *) 0 ;
12890 int *arg4 = 0 ;
12891 int *arg5 = 0 ;
12892 void *argp1 = 0 ;
12893 int res1 = 0 ;
12894 void *argp2 = 0 ;
12895 int res2 = 0 ;
12896 void *argp3 = 0 ;
12897 int res3 = 0 ;
12898 int temp4 ;
12899 int val4 ;
12900 int ecode4 = 0 ;
12901 int temp5 ;
12902 int val5 ;
12903 int ecode5 = 0 ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 PyObject * obj2 = 0 ;
12907 PyObject * obj3 = 0 ;
12908 PyObject * obj4 = 0 ;
12909 int result;
12910
12911 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GMatrixSparse_stack_push_column",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
12912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12913 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_stack_push_column" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
12915 }
12916 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
12917 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0 | 0, 0)
;
12918 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse_stack_push_column" "', argument " "2"" of type '" "double const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "2"" of type '" "double const *""'"); goto fail
; } while(0)
;
12920 }
12921 arg2 = reinterpret_cast< double * >(argp2);
12922 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
12923 if (!SWIG_IsOK(res3)(res3 >= 0)) {
12924 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSparse_stack_push_column" "', argument " "3"" of type '" "int const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "3"" of type '" "int const *""'"); goto fail;
} while(0)
;
12925 }
12926 arg3 = reinterpret_cast< int * >(argp3);
12927 ecode4 = SWIG_AsVal_int(obj3, &val4);
12928 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
12929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GMatrixSparse_stack_push_column" "', argument " "4"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "4"" of type '" "int""'"); goto fail; } while
(0)
;
12930 }
12931 temp4 = static_cast< int >(val4);
12932 arg4 = &temp4;
12933 ecode5 = SWIG_AsVal_int(obj4, &val5);
12934 if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) {
12935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GMatrixSparse_stack_push_column" "', argument " "5"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 !=
(-1)) ? ecode5 : -5)), "in method '" "GMatrixSparse_stack_push_column"
"', argument " "5"" of type '" "int""'"); goto fail; } while
(0)
;
12936 }
12937 temp5 = static_cast< int >(val5);
12938 arg5 = &temp5;
12939 {
12940 try {
12941 result = (int)(arg1)->stack_push_column((double const *)arg2,(int const *)arg3,(int const &)*arg4,(int const &)*arg5);
12942 }
12943 catch (const GException::out_of_range& e) {
12944 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12945 }
12946 catch (const GExceptionHandler& e) {
12947 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12948 }
12949 catch (const std::exception& e) {
12950 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12951 }
12952 }
12953 resultobj = SWIG_From_int(static_cast< int >(result));
12954 return resultobj;
12955fail:
12956 return NULL__null;
12957}
12958
12959
12960SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_push_column(PyObject *self, PyObject *args) {
12961 int argc;
12962 PyObject *argv[6];
12963 int ii;
12964
12965 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12966 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12967 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
12968 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12969 }
12970 if (argc == 3) {
12971 int _v;
12972 void *vptr = 0;
12973 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12974 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12975 if (_v) {
12976 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
12977 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12978 if (_v) {
12979 {
12980 int res = SWIG_AsVal_int(argv[2], NULL__null);
12981 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12982 }
12983 if (_v) {
12984 return _wrap_GMatrixSparse_stack_push_column__SWIG_0(self, args);
12985 }
12986 }
12987 }
12988 }
12989 if (argc == 5) {
12990 int _v;
12991 void *vptr = 0;
12992 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12993 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12994 if (_v) {
12995 void *vptr = 0;
12996 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[7
], 0, 0)
;
12997 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12998 if (_v) {
12999 void *vptr = 0;
13000 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[8
], 0, 0)
;
13001 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13002 if (_v) {
13003 {
13004 int res = SWIG_AsVal_int(argv[3], NULL__null);
13005 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13006 }
13007 if (_v) {
13008 {
13009 int res = SWIG_AsVal_int(argv[4], NULL__null);
13010 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13011 }
13012 if (_v) {
13013 return _wrap_GMatrixSparse_stack_push_column__SWIG_1(self, args);
13014 }
13015 }
13016 }
13017 }
13018 }
13019 }
13020
13021fail:
13022 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSparse_stack_push_column'.\n"
13023 " Possible C/C++ prototypes are:\n"
13024 " GMatrixSparse::stack_push_column(GVector const &,int const &)\n"
13025 " GMatrixSparse::stack_push_column(double const *,int const *,int const &,int const &)\n");
13026 return 0;
13027}
13028
13029
13030SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13031 PyObject *resultobj = 0;
13032 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13033 void *argp1 = 0 ;
13034 int res1 = 0 ;
13035 PyObject * obj0 = 0 ;
13036
13037 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_stack_flush",&obj0)) SWIG_failgoto fail;
13038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13039 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_stack_flush" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_stack_flush"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
13041 }
13042 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13043 {
13044 try {
13045 (arg1)->stack_flush();
13046 }
13047 catch (const GException::out_of_range& e) {
13048 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13049 }
13050 catch (const GExceptionHandler& e) {
13051 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13052 }
13053 catch (const std::exception& e) {
13054 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13055 }
13056 }
13057 resultobj = SWIG_Py_Void();
13058 return resultobj;
13059fail:
13060 return NULL__null;
13061}
13062
13063
13064SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_stack_destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13065 PyObject *resultobj = 0;
13066 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13067 void *argp1 = 0 ;
13068 int res1 = 0 ;
13069 PyObject * obj0 = 0 ;
13070
13071 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_stack_destroy",&obj0)) SWIG_failgoto fail;
13072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13073 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_stack_destroy" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_stack_destroy"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
13075 }
13076 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13077 {
13078 try {
13079 (arg1)->stack_destroy();
13080 }
13081 catch (const GException::out_of_range& e) {
13082 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13083 }
13084 catch (const GExceptionHandler& e) {
13085 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13086 }
13087 catch (const std::exception& e) {
13088 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13089 }
13090 }
13091 resultobj = SWIG_Py_Void();
13092 return resultobj;
13093fail:
13094 return NULL__null;
13095}
13096
13097
13098SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13099 PyObject *resultobj = 0;
13100 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13101 int *arg2 ;
13102 void *argp1 = 0 ;
13103 int res1 = 0 ;
13104 int temp2[2] ;
13105 PyObject * obj0 = 0 ;
13106 PyObject * obj1 = 0 ;
13107 double result;
13108
13109 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
13110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13111 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___getitem__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___getitem__"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
13113 }
13114 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13115 {
13116 if (!PySequence_Check(obj1)) {
13117 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
13118 return NULL__null;
13119 }
13120 if (PySequence_LengthPySequence_Size(obj1) != 2) {
13121 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
13122 return NULL__null;
13123 }
13124 for (int i = 0; i < 2; ++i) {
13125 PyObject *o = PySequence_GetItem(obj1,i);
13126 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
13127 temp2[i] = (int)PyInt_AsLong(o);
13128 }
13129 else {
13130 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
13131 return NULL__null;
13132 }
13133 }
13134 arg2 = temp2;
13135 }
13136 {
13137 try {
13138 result = (double)GMatrixSparse___getitem__(arg1,arg2);
13139 }
13140 catch (const GException::out_of_range& e) {
13141 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13142 }
13143 catch (const GExceptionHandler& e) {
13144 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13145 }
13146 catch (const std::exception& e) {
13147 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13148 }
13149 }
13150 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13151 return resultobj;
13152fail:
13153 return NULL__null;
13154}
13155
13156
13157SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13158 PyObject *resultobj = 0;
13159 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13160 int *arg2 ;
13161 double arg3 ;
13162 void *argp1 = 0 ;
13163 int res1 = 0 ;
13164 int temp2[2] ;
13165 double val3 ;
13166 int ecode3 = 0 ;
13167 PyObject * obj0 = 0 ;
13168 PyObject * obj1 = 0 ;
13169 PyObject * obj2 = 0 ;
13170
13171 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSparse___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
13172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13173 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___setitem__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___setitem__"
"', argument " "1"" of type '" "GMatrixSparse *""'"); goto fail
; } while(0)
;
13175 }
13176 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13177 {
13178 if (!PySequence_Check(obj1)) {
13179 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
13180 return NULL__null;
13181 }
13182 if (PySequence_LengthPySequence_Size(obj1) != 2) {
13183 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
13184 return NULL__null;
13185 }
13186 for (int i = 0; i < 2; ++i) {
13187 PyObject *o = PySequence_GetItem(obj1,i);
13188 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
13189 temp2[i] = (int)PyInt_AsLong(o);
13190 }
13191 else {
13192 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
13193 return NULL__null;
13194 }
13195 }
13196 arg2 = temp2;
13197 }
13198 ecode3 = SWIG_AsVal_double(obj2, &val3);
13199 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
13200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSparse___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSparse___setitem__"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
13201 }
13202 arg3 = static_cast< double >(val3);
13203 {
13204 try {
13205 GMatrixSparse___setitem__(arg1,arg2,arg3);
13206 }
13207 catch (const GException::out_of_range& e) {
13208 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13209 }
13210 catch (const GExceptionHandler& e) {
13211 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13212 }
13213 catch (const std::exception& e) {
13214 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13215 }
13216 }
13217 resultobj = SWIG_Py_Void();
13218 return resultobj;
13219fail:
13220 return NULL__null;
13221}
13222
13223
13224SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13225 PyObject *resultobj = 0;
13226 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13227 GVector *arg2 = 0 ;
13228 void *argp1 = 0 ;
13229 int res1 = 0 ;
13230 void *argp2 = 0 ;
13231 int res2 = 0 ;
13232 PyObject * obj0 = 0 ;
13233 PyObject * obj1 = 0 ;
13234 GVector result;
13235
13236 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___mul__",&obj0,&obj1)) SWIG_failgoto fail;
13237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13238 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___mul__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___mul__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
13240 }
13241 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
13243 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___mul__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
13245 }
13246 if (!argp2) {
13247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___mul__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
13248 }
13249 arg2 = reinterpret_cast< GVector * >(argp2);
13250 {
13251 try {
13252 result = GMatrixSparse___mul____SWIG_0(arg1,(GVector const &)*arg2);
13253 }
13254 catch (const GException::out_of_range& e) {
13255 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13256 }
13257 catch (const GExceptionHandler& e) {
13258 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13259 }
13260 catch (const std::exception& e) {
13261 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13262 }
13263 }
13264 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
13265 return resultobj;
13266fail:
13267 return NULL__null;
13268}
13269
13270
13271SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13272 PyObject *resultobj = 0;
13273 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13274 GMatrixSparse *arg2 = 0 ;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 void *argp2 = 0 ;
13278 int res2 = 0 ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 GMatrixSparse result;
13282
13283 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___mul__",&obj0,&obj1)) SWIG_failgoto fail;
13284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13285 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___mul__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___mul__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
13287 }
13288 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
13290 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSparse___mul__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSparse___mul__" "', argument "
"2"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
13292 }
13293 if (!argp2) {
13294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSparse___mul__" "', argument " "2"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSparse___mul__" "', argument " "2"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
13295 }
13296 arg2 = reinterpret_cast< GMatrixSparse * >(argp2);
13297 {
13298 try {
13299 result = GMatrixSparse___mul____SWIG_1(arg1,(GMatrixSparse const &)*arg2);
13300 }
13301 catch (const GException::out_of_range& e) {
13302 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13303 }
13304 catch (const GExceptionHandler& e) {
13305 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13306 }
13307 catch (const std::exception& e) {
13308 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13309 }
13310 }
13311 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
13312 return resultobj;
13313fail:
13314 return NULL__null;
13315}
13316
13317
13318SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13319 PyObject *resultobj = 0;
13320 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13321 double *arg2 = 0 ;
13322 void *argp1 = 0 ;
13323 int res1 = 0 ;
13324 double temp2 ;
13325 double val2 ;
13326 int ecode2 = 0 ;
13327 PyObject * obj0 = 0 ;
13328 PyObject * obj1 = 0 ;
13329 GMatrixSparse result;
13330
13331 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___mul__",&obj0,&obj1)) SWIG_failgoto fail;
13332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13333 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___mul__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___mul__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
13335 }
13336 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13337 ecode2 = SWIG_AsVal_double(obj1, &val2);
13338 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse___mul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse___mul__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
13340 }
13341 temp2 = static_cast< double >(val2);
13342 arg2 = &temp2;
13343 {
13344 try {
13345 result = GMatrixSparse___mul____SWIG_2(arg1,(double const &)*arg2);
13346 }
13347 catch (const GException::out_of_range& e) {
13348 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13349 }
13350 catch (const GExceptionHandler& e) {
13351 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13352 }
13353 catch (const std::exception& e) {
13354 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13355 }
13356 }
13357 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
13358 return resultobj;
13359fail:
13360 return NULL__null;
13361}
13362
13363
13364SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___mul__(PyObject *self, PyObject *args) {
13365 int argc;
13366 PyObject *argv[3];
13367 int ii;
13368
13369 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13370 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13371 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
13372 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13373 }
13374 if (argc == 2) {
13375 int _v;
13376 void *vptr = 0;
13377 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13378 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13379 if (_v) {
13380 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
13381 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13382 if (_v) {
13383 return _wrap_GMatrixSparse___mul____SWIG_0(self, args);
13384 }
13385 }
13386 }
13387 if (argc == 2) {
13388 int _v;
13389 void *vptr = 0;
13390 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13391 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13392 if (_v) {
13393 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
13394 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13395 if (_v) {
13396 return _wrap_GMatrixSparse___mul____SWIG_1(self, args);
13397 }
13398 }
13399 }
13400 if (argc == 2) {
13401 int _v;
13402 void *vptr = 0;
13403 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13404 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13405 if (_v) {
13406 {
13407 int res = SWIG_AsVal_double(argv[1], NULL__null);
13408 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13409 }
13410 if (_v) {
13411 return _wrap_GMatrixSparse___mul____SWIG_2(self, args);
13412 }
13413 }
13414 }
13415
13416fail:
13417 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
13418 return Py_NotImplemented(&_Py_NotImplementedStruct);
13419}
13420
13421
13422SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13423 PyObject *resultobj = 0;
13424 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13425 double *arg2 = 0 ;
13426 void *argp1 = 0 ;
13427 int res1 = 0 ;
13428 double temp2 ;
13429 double val2 ;
13430 int ecode2 = 0 ;
13431 PyObject * obj0 = 0 ;
13432 PyObject * obj1 = 0 ;
13433 GMatrixSparse result;
13434
13435 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse___div__",&obj0,&obj1)) SWIG_failgoto fail;
13436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13437 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse___div__" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse___div__" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
13439 }
13440 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13441 ecode2 = SWIG_AsVal_double(obj1, &val2);
13442 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse___div__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse___div__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
13444 }
13445 temp2 = static_cast< double >(val2);
13446 arg2 = &temp2;
13447 {
13448 try {
13449 result = GMatrixSparse___div__(arg1,(double const &)*arg2);
13450 }
13451 catch (const GException::out_of_range& e) {
13452 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13453 }
13454 catch (const GExceptionHandler& e) {
13455 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13456 }
13457 catch (const std::exception& e) {
13458 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13459 }
13460 }
13461 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
13462 return resultobj;
13463fail:
13464 return NULL__null;
13465}
13466
13467
13468SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13469 PyObject *resultobj = 0;
13470 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13471 void *argp1 = 0 ;
13472 int res1 = 0 ;
13473 PyObject * obj0 = 0 ;
13474 GMatrixSparse result;
13475
13476 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSparse_copy",&obj0)) SWIG_failgoto fail;
13477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13478 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_copy" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_copy" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
13480 }
13481 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13482 {
13483 try {
13484 result = GMatrixSparse_copy(arg1);
13485 }
13486 catch (const GException::out_of_range& e) {
13487 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13488 }
13489 catch (const GExceptionHandler& e) {
13490 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13491 }
13492 catch (const std::exception& e) {
13493 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13494 }
13495 }
13496 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
13497 return resultobj;
13498fail:
13499 return NULL__null;
13500}
13501
13502
13503SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSparse_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13504 PyObject *resultobj = 0;
13505 GMatrixSparse *arg1 = (GMatrixSparse *) 0 ;
13506 double *arg2 = 0 ;
13507 void *argp1 = 0 ;
13508 int res1 = 0 ;
13509 double temp2 ;
13510 double val2 ;
13511 int ecode2 = 0 ;
13512 PyObject * obj0 = 0 ;
13513 PyObject * obj1 = 0 ;
13514 GMatrixSparse result;
13515
13516 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSparse_set",&obj0,&obj1)) SWIG_failgoto fail;
13517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSparse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13518 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSparse_set" "', argument " "1"" of type '" "GMatrixSparse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSparse_set" "', argument "
"1"" of type '" "GMatrixSparse *""'"); goto fail; } while(0)
;
13520 }
13521 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13522 ecode2 = SWIG_AsVal_double(obj1, &val2);
13523 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSparse_set" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSparse_set" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
13525 }
13526 temp2 = static_cast< double >(val2);
13527 arg2 = &temp2;
13528 {
13529 try {
13530 result = GMatrixSparse_set(arg1,(double const &)*arg2);
13531 }
13532 catch (const GException::out_of_range& e) {
13533 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13534 }
13535 catch (const GExceptionHandler& e) {
13536 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13537 }
13538 catch (const std::exception& e) {
13539 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13540 }
13541 }
13542 resultobj = SWIG_NewPointerObj((new GMatrixSparse(static_cast< const GMatrixSparse& >(result))), SWIGTYPE_p_GMatrixSparse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSparse(static_cast
< const GMatrixSparse& >(result))), swig_types[3], 0x1
| 0)
;
13543 return resultobj;
13544fail:
13545 return NULL__null;
13546}
13547
13548
13549SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GMatrixSparse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13550 PyObject *obj;
13551 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
13552 SWIG_TypeNewClientData(SWIGTYPE_p_GMatrixSparseswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
13553 return SWIG_Py_Void();
13554}
13555
13556SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSymmetric__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13557 PyObject *resultobj = 0;
13558 GMatrixSymmetric *result = 0 ;
13559
13560 if (!PyArg_ParseTuple(args,(char *)":new_GMatrixSymmetric")) SWIG_failgoto fail;
13561 {
13562 try {
13563 result = (GMatrixSymmetric *)new GMatrixSymmetric();
13564 }
13565 catch (const GException::out_of_range& e) {
13566 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13567 }
13568 catch (const GExceptionHandler& e) {
13569 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13570 }
13571 catch (const std::exception& e) {
13572 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13573 }
13574 }
13575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
13576 return resultobj;
13577fail:
13578 return NULL__null;
13579}
13580
13581
13582SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSymmetric__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13583 PyObject *resultobj = 0;
13584 int *arg1 = 0 ;
13585 int *arg2 = 0 ;
13586 int temp1 ;
13587 int val1 ;
13588 int ecode1 = 0 ;
13589 int temp2 ;
13590 int val2 ;
13591 int ecode2 = 0 ;
13592 PyObject * obj0 = 0 ;
13593 PyObject * obj1 = 0 ;
13594 GMatrixSymmetric *result = 0 ;
13595
13596 if (!PyArg_ParseTuple(args,(char *)"OO:new_GMatrixSymmetric",&obj0,&obj1)) SWIG_failgoto fail;
13597 ecode1 = SWIG_AsVal_int(obj0, &val1);
13598 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
13599 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GMatrixSymmetric" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
13600 }
13601 temp1 = static_cast< int >(val1);
13602 arg1 = &temp1;
13603 ecode2 = SWIG_AsVal_int(obj1, &val2);
13604 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GMatrixSymmetric" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GMatrixSymmetric" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
13606 }
13607 temp2 = static_cast< int >(val2);
13608 arg2 = &temp2;
13609 {
13610 try {
13611 result = (GMatrixSymmetric *)new GMatrixSymmetric((int const &)*arg1,(int const &)*arg2);
13612 }
13613 catch (const GException::out_of_range& e) {
13614 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13615 }
13616 catch (const GExceptionHandler& e) {
13617 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13618 }
13619 catch (const std::exception& e) {
13620 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13621 }
13622 }
13623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
13624 return resultobj;
13625fail:
13626 return NULL__null;
13627}
13628
13629
13630SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSymmetric__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13631 PyObject *resultobj = 0;
13632 GMatrix *arg1 = 0 ;
13633 void *argp1 = 0 ;
13634 int res1 = 0 ;
13635 PyObject * obj0 = 0 ;
13636 GMatrixSymmetric *result = 0 ;
13637
13638 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrixSymmetric",&obj0)) SWIG_failgoto fail;
13639 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
13640 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrixSymmetric" "', argument "
"1"" of type '" "GMatrix const &""'"); goto fail; } while
(0)
;
13642 }
13643 if (!argp1) {
13644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '" "GMatrix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '"
"GMatrix const &""'"); goto fail; } while(0)
;
13645 }
13646 arg1 = reinterpret_cast< GMatrix * >(argp1);
13647 {
13648 try {
13649 result = (GMatrixSymmetric *)new GMatrixSymmetric((GMatrix const &)*arg1);
13650 }
13651 catch (const GException::out_of_range& e) {
13652 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13653 }
13654 catch (const GExceptionHandler& e) {
13655 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13656 }
13657 catch (const std::exception& e) {
13658 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13659 }
13660 }
13661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
13662 return resultobj;
13663fail:
13664 return NULL__null;
13665}
13666
13667
13668SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSymmetric__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13669 PyObject *resultobj = 0;
13670 GMatrixSparse *arg1 = 0 ;
13671 void *argp1 = 0 ;
13672 int res1 = 0 ;
13673 PyObject * obj0 = 0 ;
13674 GMatrixSymmetric *result = 0 ;
13675
13676 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrixSymmetric",&obj0)) SWIG_failgoto fail;
13677 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrixSparse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13678 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrixSymmetric" "', argument "
"1"" of type '" "GMatrixSparse const &""'"); goto fail; }
while(0)
;
13680 }
13681 if (!argp1) {
13682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '" "GMatrixSparse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '"
"GMatrixSparse const &""'"); goto fail; } while(0)
;
13683 }
13684 arg1 = reinterpret_cast< GMatrixSparse * >(argp1);
13685 {
13686 try {
13687 result = (GMatrixSymmetric *)new GMatrixSymmetric((GMatrixSparse const &)*arg1);
13688 }
13689 catch (const GException::out_of_range& e) {
13690 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13691 }
13692 catch (const GExceptionHandler& e) {
13693 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13694 }
13695 catch (const std::exception& e) {
13696 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13697 }
13698 }
13699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
13700 return resultobj;
13701fail:
13702 return NULL__null;
13703}
13704
13705
13706SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSymmetric__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13707 PyObject *resultobj = 0;
13708 GMatrixSymmetric *arg1 = 0 ;
13709 void *argp1 = 0 ;
13710 int res1 = 0 ;
13711 PyObject * obj0 = 0 ;
13712 GMatrixSymmetric *result = 0 ;
13713
13714 if (!PyArg_ParseTuple(args,(char *)"O:new_GMatrixSymmetric",&obj0)) SWIG_failgoto fail;
13715 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
13716 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMatrixSymmetric" "', argument "
"1"" of type '" "GMatrixSymmetric const &""'"); goto fail
; } while(0)
;
13718 }
13719 if (!argp1) {
13720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMatrixSymmetric" "', argument " "1"" of type '"
"GMatrixSymmetric const &""'"); goto fail; } while(0)
;
13721 }
13722 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
13723 {
13724 try {
13725 result = (GMatrixSymmetric *)new GMatrixSymmetric((GMatrixSymmetric const &)*arg1);
13726 }
13727 catch (const GException::out_of_range& e) {
13728 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13729 }
13730 catch (const GExceptionHandler& e) {
13731 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13732 }
13733 catch (const std::exception& e) {
13734 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13735 }
13736 }
13737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
13738 return resultobj;
13739fail:
13740 return NULL__null;
13741}
13742
13743
13744SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMatrixSymmetric(PyObject *self, PyObject *args) {
13745 int argc;
13746 PyObject *argv[3];
13747 int ii;
13748
13749 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13750 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13751 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
13752 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13753 }
13754 if (argc == 0) {
13755 return _wrap_new_GMatrixSymmetric__SWIG_0(self, args);
13756 }
13757 if (argc == 1) {
13758 int _v;
13759 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[1], 0, 0);
13760 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13761 if (_v) {
13762 return _wrap_new_GMatrixSymmetric__SWIG_2(self, args);
13763 }
13764 }
13765 if (argc == 1) {
13766 int _v;
13767 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrixSparse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0);
13768 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13769 if (_v) {
13770 return _wrap_new_GMatrixSymmetric__SWIG_3(self, args);
13771 }
13772 }
13773 if (argc == 1) {
13774 int _v;
13775 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0);
13776 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13777 if (_v) {
13778 return _wrap_new_GMatrixSymmetric__SWIG_4(self, args);
13779 }
13780 }
13781 if (argc == 2) {
13782 int _v;
13783 {
13784 int res = SWIG_AsVal_int(argv[0], NULL__null);
13785 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13786 }
13787 if (_v) {
13788 {
13789 int res = SWIG_AsVal_int(argv[1], NULL__null);
13790 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13791 }
13792 if (_v) {
13793 return _wrap_new_GMatrixSymmetric__SWIG_1(self, args);
13794 }
13795 }
13796 }
13797
13798fail:
13799 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GMatrixSymmetric'.\n"
13800 " Possible C/C++ prototypes are:\n"
13801 " GMatrixSymmetric::GMatrixSymmetric()\n"
13802 " GMatrixSymmetric::GMatrixSymmetric(int const &,int const &)\n"
13803 " GMatrixSymmetric::GMatrixSymmetric(GMatrix const &)\n"
13804 " GMatrixSymmetric::GMatrixSymmetric(GMatrixSparse const &)\n"
13805 " GMatrixSymmetric::GMatrixSymmetric(GMatrixSymmetric const &)\n");
13806 return 0;
13807}
13808
13809
13810SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GMatrixSymmetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13811 PyObject *resultobj = 0;
13812 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
13813 void *argp1 = 0 ;
13814 int res1 = 0 ;
13815 PyObject * obj0 = 0 ;
13816
13817 if (!PyArg_ParseTuple(args,(char *)"O:delete_GMatrixSymmetric",&obj0)) SWIG_failgoto fail;
13818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
13819 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GMatrixSymmetric" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GMatrixSymmetric" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
13821 }
13822 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
13823 {
13824 try {
13825 delete arg1;
13826 }
13827 catch (const GException::out_of_range& e) {
13828 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13829 }
13830 catch (const GExceptionHandler& e) {
13831 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13832 }
13833 catch (const std::exception& e) {
13834 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13835 }
13836 }
13837 resultobj = SWIG_Py_Void();
13838 return resultobj;
13839fail:
13840 return NULL__null;
13841}
13842
13843
13844SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13845 PyObject *resultobj = 0;
13846 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
13847 GMatrixSymmetric *arg2 = 0 ;
13848 void *argp1 = 0 ;
13849 int res1 = 0 ;
13850 void *argp2 = 0 ;
13851 int res2 = 0 ;
13852 PyObject * obj0 = 0 ;
13853 PyObject * obj1 = 0 ;
13854 GMatrixSymmetric result;
13855
13856 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___add__",&obj0,&obj1)) SWIG_failgoto fail;
13857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
13858 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___add__" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___add__" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
13860 }
13861 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
13862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
13863 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric___add__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric___add__" "', argument "
"2"" of type '" "GMatrixSymmetric const &""'"); goto fail
; } while(0)
;
13865 }
13866 if (!argp2) {
13867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric___add__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric___add__" "', argument " "2"" of type '"
"GMatrixSymmetric const &""'"); goto fail; } while(0)
;
13868 }
13869 arg2 = reinterpret_cast< GMatrixSymmetric * >(argp2);
13870 {
13871 try {
13872 result = ((GMatrixSymmetric const *)arg1)->operator +((GMatrixSymmetric const &)*arg2);
13873 }
13874 catch (const GException::out_of_range& e) {
13875 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13876 }
13877 catch (const GExceptionHandler& e) {
13878 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13879 }
13880 catch (const std::exception& e) {
13881 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13882 }
13883 }
13884 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
13885 return resultobj;
13886fail:
13887 return NULL__null;
13888}
13889
13890
13891SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13892 PyObject *resultobj = 0;
13893 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
13894 GMatrixSymmetric *arg2 = 0 ;
13895 void *argp1 = 0 ;
13896 int res1 = 0 ;
13897 void *argp2 = 0 ;
13898 int res2 = 0 ;
13899 PyObject * obj0 = 0 ;
13900 PyObject * obj1 = 0 ;
13901 GMatrixSymmetric result;
13902
13903 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___sub__",&obj0,&obj1)) SWIG_failgoto fail;
13904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
13905 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___sub__" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___sub__" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
13907 }
13908 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
13909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
13910 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric___sub__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric___sub__" "', argument "
"2"" of type '" "GMatrixSymmetric const &""'"); goto fail
; } while(0)
;
13912 }
13913 if (!argp2) {
13914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric___sub__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric___sub__" "', argument " "2"" of type '"
"GMatrixSymmetric const &""'"); goto fail; } while(0)
;
13915 }
13916 arg2 = reinterpret_cast< GMatrixSymmetric * >(argp2);
13917 {
13918 try {
13919 result = ((GMatrixSymmetric const *)arg1)->operator -((GMatrixSymmetric const &)*arg2);
13920 }
13921 catch (const GException::out_of_range& e) {
13922 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13923 }
13924 catch (const GExceptionHandler& e) {
13925 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13926 }
13927 catch (const std::exception& e) {
13928 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13929 }
13930 }
13931 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
13932 return resultobj;
13933fail:
13934 return NULL__null;
13935}
13936
13937
13938SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13939 PyObject *resultobj = 0;
13940 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
13941 void *argp1 = 0 ;
13942 int res1 = 0 ;
13943 PyObject * obj0 = 0 ;
13944 GMatrixSymmetric result;
13945
13946 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric___neg__",&obj0)) SWIG_failgoto fail;
13947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
13948 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___neg__" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___neg__" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
13950 }
13951 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
13952 {
13953 try {
13954 result = ((GMatrixSymmetric const *)arg1)->operator -();
13955 }
13956 catch (const GException::out_of_range& e) {
13957 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13958 }
13959 catch (const GExceptionHandler& e) {
13960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13961 }
13962 catch (const std::exception& e) {
13963 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13964 }
13965 }
13966 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
13967 return resultobj;
13968fail:
13969 return NULL__null;
13970}
13971
13972
13973SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13974 PyObject *resultobj = 0;
13975 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
13976 GMatrixSymmetric *arg2 = 0 ;
13977 void *argp1 = 0 ;
13978 int res1 = 0 ;
13979 void *argp2 = 0 ;
13980 int res2 = 0 ;
13981 PyObject * obj0 = 0 ;
13982 PyObject * obj1 = 0 ;
13983 GMatrixSymmetric *result = 0 ;
13984
13985 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
13986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
13987 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___iadd__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___iadd__"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
13989 }
13990 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
13991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
13992 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric___iadd__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric___iadd__"
"', argument " "2"" of type '" "GMatrixSymmetric const &"
"'"); goto fail; } while(0)
;
13994 }
13995 if (!argp2) {
13996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric___iadd__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric___iadd__" "', argument " "2"
" of type '" "GMatrixSymmetric const &""'"); goto fail; }
while(0)
;
13997 }
13998 arg2 = reinterpret_cast< GMatrixSymmetric * >(argp2);
13999 {
14000 try {
14001 result = (GMatrixSymmetric *) &(arg1)->operator +=((GMatrixSymmetric const &)*arg2);
14002 }
14003 catch (const GException::out_of_range& e) {
14004 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14005 }
14006 catch (const GExceptionHandler& e) {
14007 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14008 }
14009 catch (const std::exception& e) {
14010 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14011 }
14012 }
14013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], 0x1
| 0)
;
14014 return resultobj;
14015fail:
14016 return NULL__null;
14017}
14018
14019
14020SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14021 PyObject *resultobj = 0;
14022 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14023 GMatrixSymmetric *arg2 = 0 ;
14024 void *argp1 = 0 ;
14025 int res1 = 0 ;
14026 void *argp2 = 0 ;
14027 int res2 = 0 ;
14028 PyObject * obj0 = 0 ;
14029 PyObject * obj1 = 0 ;
14030 GMatrixSymmetric *result = 0 ;
14031
14032 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___isub__",&obj0,&obj1)) SWIG_failgoto fail;
14033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
14034 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___isub__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___isub__"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
14036 }
14037 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
14039 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric___isub__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric___isub__"
"', argument " "2"" of type '" "GMatrixSymmetric const &"
"'"); goto fail; } while(0)
;
14041 }
14042 if (!argp2) {
14043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric___isub__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric___isub__" "', argument " "2"
" of type '" "GMatrixSymmetric const &""'"); goto fail; }
while(0)
;
14044 }
14045 arg2 = reinterpret_cast< GMatrixSymmetric * >(argp2);
14046 {
14047 try {
14048 result = (GMatrixSymmetric *) &(arg1)->operator -=((GMatrixSymmetric const &)*arg2);
14049 }
14050 catch (const GException::out_of_range& e) {
14051 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14052 }
14053 catch (const GExceptionHandler& e) {
14054 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14055 }
14056 catch (const std::exception& e) {
14057 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14058 }
14059 }
14060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], 0x1
| 0)
;
14061 return resultobj;
14062fail:
14063 return NULL__null;
14064}
14065
14066
14067SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14068 PyObject *resultobj = 0;
14069 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14070 double *arg2 = 0 ;
14071 void *argp1 = 0 ;
14072 int res1 = 0 ;
14073 double temp2 ;
14074 double val2 ;
14075 int ecode2 = 0 ;
14076 PyObject * obj0 = 0 ;
14077 PyObject * obj1 = 0 ;
14078 GMatrixSymmetric *result = 0 ;
14079
14080 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___imul__",&obj0,&obj1)) SWIG_failgoto fail;
14081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
14082 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___imul__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___imul__"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
14084 }
14085 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14086 ecode2 = SWIG_AsVal_double(obj1, &val2);
14087 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric___imul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric___imul__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
14089 }
14090 temp2 = static_cast< double >(val2);
14091 arg2 = &temp2;
14092 {
14093 try {
14094 result = (GMatrixSymmetric *) &(arg1)->operator *=((double const &)*arg2);
14095 }
14096 catch (const GException::out_of_range& e) {
14097 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14098 }
14099 catch (const GExceptionHandler& e) {
14100 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14101 }
14102 catch (const std::exception& e) {
14103 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14104 }
14105 }
14106 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], 0x1
| 0)
;
14107 return resultobj;
14108fail:
14109 return NULL__null;
14110}
14111
14112
14113SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14114 PyObject *resultobj = 0;
14115 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14116 double *arg2 = 0 ;
14117 void *argp1 = 0 ;
14118 int res1 = 0 ;
14119 double temp2 ;
14120 double val2 ;
14121 int ecode2 = 0 ;
14122 PyObject * obj0 = 0 ;
14123 PyObject * obj1 = 0 ;
14124 GMatrixSymmetric *result = 0 ;
14125
14126 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___idiv__",&obj0,&obj1)) SWIG_failgoto fail;
14127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
14128 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___idiv__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___idiv__"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
14130 }
14131 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14132 ecode2 = SWIG_AsVal_double(obj1, &val2);
14133 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric___idiv__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric___idiv__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
14135 }
14136 temp2 = static_cast< double >(val2);
14137 arg2 = &temp2;
14138 {
14139 try {
14140 result = (GMatrixSymmetric *) &(arg1)->operator /=((double const &)*arg2);
14141 }
14142 catch (const GException::out_of_range& e) {
14143 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14144 }
14145 catch (const GExceptionHandler& e) {
14146 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14147 }
14148 catch (const std::exception& e) {
14149 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14150 }
14151 }
14152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], 0x1
| 0)
;
14153 return resultobj;
14154fail:
14155 return NULL__null;
14156}
14157
14158
14159SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14160 PyObject *resultobj = 0;
14161 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14162 void *argp1 = 0 ;
14163 int res1 = 0 ;
14164 PyObject * obj0 = 0 ;
14165
14166 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_clear",&obj0)) SWIG_failgoto fail;
14167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14168 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_clear" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_clear" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
14170 }
14171 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14172 {
14173 try {
14174 (arg1)->clear();
14175 }
14176 catch (const GException::out_of_range& e) {
14177 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14178 }
14179 catch (const GExceptionHandler& e) {
14180 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14181 }
14182 catch (const std::exception& e) {
14183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14184 }
14185 }
14186 resultobj = SWIG_Py_Void();
14187 return resultobj;
14188fail:
14189 return NULL__null;
14190}
14191
14192
14193SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14194 PyObject *resultobj = 0;
14195 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14196 void *argp1 = 0 ;
14197 int res1 = 0 ;
14198 PyObject * obj0 = 0 ;
14199 GMatrixSymmetric *result = 0 ;
14200
14201 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_clone",&obj0)) SWIG_failgoto fail;
14202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14203 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_clone" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_clone" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14205 }
14206 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14207 {
14208 try {
14209 result = (GMatrixSymmetric *)((GMatrixSymmetric const *)arg1)->clone();
14210 }
14211 catch (const GException::out_of_range& e) {
14212 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14213 }
14214 catch (const GExceptionHandler& e) {
14215 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14216 }
14217 catch (const std::exception& e) {
14218 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14219 }
14220 }
14221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], 0 |
0)
;
14222 return resultobj;
14223fail:
14224 return NULL__null;
14225}
14226
14227
14228SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14229 PyObject *resultobj = 0;
14230 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14231 int *arg2 = 0 ;
14232 int *arg3 = 0 ;
14233 void *argp1 = 0 ;
14234 int res1 = 0 ;
14235 int temp2 ;
14236 int val2 ;
14237 int ecode2 = 0 ;
14238 int temp3 ;
14239 int val3 ;
14240 int ecode3 = 0 ;
14241 PyObject * obj0 = 0 ;
14242 PyObject * obj1 = 0 ;
14243 PyObject * obj2 = 0 ;
14244 double *result = 0 ;
14245
14246 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSymmetric_at",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14248 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_at" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_at" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
14250 }
14251 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14252 ecode2 = SWIG_AsVal_int(obj1, &val2);
14253 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14255 }
14256 temp2 = static_cast< int >(val2);
14257 arg2 = &temp2;
14258 ecode3 = SWIG_AsVal_int(obj2, &val3);
14259 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
14260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSymmetric_at" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSymmetric_at" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
14261 }
14262 temp3 = static_cast< int >(val3);
14263 arg3 = &temp3;
14264 {
14265 try {
14266 result = (double *) &(arg1)->at((int const &)*arg2,(int const &)*arg3);
14267 }
14268 catch (const GException::out_of_range& e) {
14269 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14270 }
14271 catch (const GExceptionHandler& e) {
14272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14273 }
14274 catch (const std::exception& e) {
14275 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14276 }
14277 }
14278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
14279 return resultobj;
14280fail:
14281 return NULL__null;
14282}
14283
14284
14285SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_row__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14286 PyObject *resultobj = 0;
14287 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14288 int *arg2 = 0 ;
14289 void *argp1 = 0 ;
14290 int res1 = 0 ;
14291 int temp2 ;
14292 int val2 ;
14293 int ecode2 = 0 ;
14294 PyObject * obj0 = 0 ;
14295 PyObject * obj1 = 0 ;
14296 GVector result;
14297
14298 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric_row",&obj0,&obj1)) SWIG_failgoto fail;
14299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14300 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_row" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_row" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14302 }
14303 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14304 ecode2 = SWIG_AsVal_int(obj1, &val2);
14305 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14307 }
14308 temp2 = static_cast< int >(val2);
14309 arg2 = &temp2;
14310 {
14311 try {
14312 result = ((GMatrixSymmetric const *)arg1)->row((int const &)*arg2);
14313 }
14314 catch (const GException::out_of_range& e) {
14315 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14316 }
14317 catch (const GExceptionHandler& e) {
14318 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14319 }
14320 catch (const std::exception& e) {
14321 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14322 }
14323 }
14324 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
14325 return resultobj;
14326fail:
14327 return NULL__null;
14328}
14329
14330
14331SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_row__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14332 PyObject *resultobj = 0;
14333 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14334 int *arg2 = 0 ;
14335 GVector *arg3 = 0 ;
14336 void *argp1 = 0 ;
14337 int res1 = 0 ;
14338 int temp2 ;
14339 int val2 ;
14340 int ecode2 = 0 ;
14341 void *argp3 = 0 ;
14342 int res3 = 0 ;
14343 PyObject * obj0 = 0 ;
14344 PyObject * obj1 = 0 ;
14345 PyObject * obj2 = 0 ;
14346
14347 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSymmetric_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14349 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_row" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_row" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
14351 }
14352 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14353 ecode2 = SWIG_AsVal_int(obj1, &val2);
14354 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_row" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14356 }
14357 temp2 = static_cast< int >(val2);
14358 arg2 = &temp2;
14359 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
14360 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14361 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSymmetric_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSymmetric_row" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
14362 }
14363 if (!argp3) {
14364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric_row" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
14365 }
14366 arg3 = reinterpret_cast< GVector * >(argp3);
14367 {
14368 try {
14369 (arg1)->row((int const &)*arg2,(GVector const &)*arg3);
14370 }
14371 catch (const GException::out_of_range& e) {
14372 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14373 }
14374 catch (const GExceptionHandler& e) {
14375 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14376 }
14377 catch (const std::exception& e) {
14378 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14379 }
14380 }
14381 resultobj = SWIG_Py_Void();
14382 return resultobj;
14383fail:
14384 return NULL__null;
14385}
14386
14387
14388SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_row(PyObject *self, PyObject *args) {
14389 int argc;
14390 PyObject *argv[4];
14391 int ii;
14392
14393 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14394 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14395 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14396 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14397 }
14398 if (argc == 2) {
14399 int _v;
14400 void *vptr = 0;
14401 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
14402 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14403 if (_v) {
14404 {
14405 int res = SWIG_AsVal_int(argv[1], NULL__null);
14406 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14407 }
14408 if (_v) {
14409 return _wrap_GMatrixSymmetric_row__SWIG_0(self, args);
14410 }
14411 }
14412 }
14413 if (argc == 3) {
14414 int _v;
14415 void *vptr = 0;
14416 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
14417 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14418 if (_v) {
14419 {
14420 int res = SWIG_AsVal_int(argv[1], NULL__null);
14421 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14422 }
14423 if (_v) {
14424 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
14425 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14426 if (_v) {
14427 return _wrap_GMatrixSymmetric_row__SWIG_1(self, args);
14428 }
14429 }
14430 }
14431 }
14432
14433fail:
14434 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSymmetric_row'.\n"
14435 " Possible C/C++ prototypes are:\n"
14436 " GMatrixSymmetric::row(int const &) const\n"
14437 " GMatrixSymmetric::row(int const &,GVector const &)\n");
14438 return 0;
14439}
14440
14441
14442SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_column__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14443 PyObject *resultobj = 0;
14444 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14445 int *arg2 = 0 ;
14446 void *argp1 = 0 ;
14447 int res1 = 0 ;
14448 int temp2 ;
14449 int val2 ;
14450 int ecode2 = 0 ;
14451 PyObject * obj0 = 0 ;
14452 PyObject * obj1 = 0 ;
14453 GVector result;
14454
14455 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric_column",&obj0,&obj1)) SWIG_failgoto fail;
14456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14457 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_column" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_column" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14459 }
14460 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14461 ecode2 = SWIG_AsVal_int(obj1, &val2);
14462 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_column"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
14464 }
14465 temp2 = static_cast< int >(val2);
14466 arg2 = &temp2;
14467 {
14468 try {
14469 result = ((GMatrixSymmetric const *)arg1)->column((int const &)*arg2);
14470 }
14471 catch (const GException::out_of_range& e) {
14472 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14473 }
14474 catch (const GExceptionHandler& e) {
14475 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14476 }
14477 catch (const std::exception& e) {
14478 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14479 }
14480 }
14481 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
14482 return resultobj;
14483fail:
14484 return NULL__null;
14485}
14486
14487
14488SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_column__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14489 PyObject *resultobj = 0;
14490 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14491 int *arg2 = 0 ;
14492 GVector *arg3 = 0 ;
14493 void *argp1 = 0 ;
14494 int res1 = 0 ;
14495 int temp2 ;
14496 int val2 ;
14497 int ecode2 = 0 ;
14498 void *argp3 = 0 ;
14499 int res3 = 0 ;
14500 PyObject * obj0 = 0 ;
14501 PyObject * obj1 = 0 ;
14502 PyObject * obj2 = 0 ;
14503
14504 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSymmetric_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14506 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_column" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_column" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
14508 }
14509 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14510 ecode2 = SWIG_AsVal_int(obj1, &val2);
14511 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_column"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
14513 }
14514 temp2 = static_cast< int >(val2);
14515 arg2 = &temp2;
14516 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
14517 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSymmetric_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSymmetric_column" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
14519 }
14520 if (!argp3) {
14521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric_column" "', argument " "3"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
14522 }
14523 arg3 = reinterpret_cast< GVector * >(argp3);
14524 {
14525 try {
14526 (arg1)->column((int const &)*arg2,(GVector const &)*arg3);
14527 }
14528 catch (const GException::out_of_range& e) {
14529 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14530 }
14531 catch (const GExceptionHandler& e) {
14532 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14533 }
14534 catch (const std::exception& e) {
14535 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14536 }
14537 }
14538 resultobj = SWIG_Py_Void();
14539 return resultobj;
14540fail:
14541 return NULL__null;
14542}
14543
14544
14545SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_column(PyObject *self, PyObject *args) {
14546 int argc;
14547 PyObject *argv[4];
14548 int ii;
14549
14550 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14551 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14552 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14553 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14554 }
14555 if (argc == 2) {
14556 int _v;
14557 void *vptr = 0;
14558 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
14559 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14560 if (_v) {
14561 {
14562 int res = SWIG_AsVal_int(argv[1], NULL__null);
14563 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14564 }
14565 if (_v) {
14566 return _wrap_GMatrixSymmetric_column__SWIG_0(self, args);
14567 }
14568 }
14569 }
14570 if (argc == 3) {
14571 int _v;
14572 void *vptr = 0;
14573 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
14574 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14575 if (_v) {
14576 {
14577 int res = SWIG_AsVal_int(argv[1], NULL__null);
14578 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14579 }
14580 if (_v) {
14581 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
14582 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14583 if (_v) {
14584 return _wrap_GMatrixSymmetric_column__SWIG_1(self, args);
14585 }
14586 }
14587 }
14588 }
14589
14590fail:
14591 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSymmetric_column'.\n"
14592 " Possible C/C++ prototypes are:\n"
14593 " GMatrixSymmetric::column(int const &) const\n"
14594 " GMatrixSymmetric::column(int const &,GVector const &)\n");
14595 return 0;
14596}
14597
14598
14599SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_add_to_row(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14600 PyObject *resultobj = 0;
14601 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14602 int *arg2 = 0 ;
14603 GVector *arg3 = 0 ;
14604 void *argp1 = 0 ;
14605 int res1 = 0 ;
14606 int temp2 ;
14607 int val2 ;
14608 int ecode2 = 0 ;
14609 void *argp3 = 0 ;
14610 int res3 = 0 ;
14611 PyObject * obj0 = 0 ;
14612 PyObject * obj1 = 0 ;
14613 PyObject * obj2 = 0 ;
14614
14615 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSymmetric_add_to_row",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14617 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_add_to_row" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_add_to_row"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
14619 }
14620 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14621 ecode2 = SWIG_AsVal_int(obj1, &val2);
14622 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_add_to_row" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_add_to_row"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
14624 }
14625 temp2 = static_cast< int >(val2);
14626 arg2 = &temp2;
14627 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
14628 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14629 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSymmetric_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSymmetric_add_to_row"
"', argument " "3"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
14630 }
14631 if (!argp3) {
14632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric_add_to_row" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric_add_to_row" "', argument " "3"
" of type '" "GVector const &""'"); goto fail; } while(0)
;
14633 }
14634 arg3 = reinterpret_cast< GVector * >(argp3);
14635 {
14636 try {
14637 (arg1)->add_to_row((int const &)*arg2,(GVector const &)*arg3);
14638 }
14639 catch (const GException::out_of_range& e) {
14640 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14641 }
14642 catch (const GExceptionHandler& e) {
14643 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14644 }
14645 catch (const std::exception& e) {
14646 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14647 }
14648 }
14649 resultobj = SWIG_Py_Void();
14650 return resultobj;
14651fail:
14652 return NULL__null;
14653}
14654
14655
14656SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_add_to_column(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14657 PyObject *resultobj = 0;
14658 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14659 int *arg2 = 0 ;
14660 GVector *arg3 = 0 ;
14661 void *argp1 = 0 ;
14662 int res1 = 0 ;
14663 int temp2 ;
14664 int val2 ;
14665 int ecode2 = 0 ;
14666 void *argp3 = 0 ;
14667 int res3 = 0 ;
14668 PyObject * obj0 = 0 ;
14669 PyObject * obj1 = 0 ;
14670 PyObject * obj2 = 0 ;
14671
14672 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSymmetric_add_to_column",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14674 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_add_to_column" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_add_to_column"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
14676 }
14677 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14678 ecode2 = SWIG_AsVal_int(obj1, &val2);
14679 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_add_to_column" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_add_to_column"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
14681 }
14682 temp2 = static_cast< int >(val2);
14683 arg2 = &temp2;
14684 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
14685 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14686 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMatrixSymmetric_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMatrixSymmetric_add_to_column"
"', argument " "3"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
14687 }
14688 if (!argp3) {
14689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric_add_to_column" "', argument " "3"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric_add_to_column" "', argument "
"3"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
14690 }
14691 arg3 = reinterpret_cast< GVector * >(argp3);
14692 {
14693 try {
14694 (arg1)->add_to_column((int const &)*arg2,(GVector const &)*arg3);
14695 }
14696 catch (const GException::out_of_range& e) {
14697 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14698 }
14699 catch (const GExceptionHandler& e) {
14700 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14701 }
14702 catch (const std::exception& e) {
14703 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14704 }
14705 }
14706 resultobj = SWIG_Py_Void();
14707 return resultobj;
14708fail:
14709 return NULL__null;
14710}
14711
14712
14713SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14714 PyObject *resultobj = 0;
14715 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14716 void *argp1 = 0 ;
14717 int res1 = 0 ;
14718 PyObject * obj0 = 0 ;
14719 double result;
14720
14721 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_fill",&obj0)) SWIG_failgoto fail;
14722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14723 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_fill" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_fill" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14725 }
14726 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14727 {
14728 try {
14729 result = (double)((GMatrixSymmetric const *)arg1)->fill();
14730 }
14731 catch (const GException::out_of_range& e) {
14732 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14733 }
14734 catch (const GExceptionHandler& e) {
14735 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14736 }
14737 catch (const std::exception& e) {
14738 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14739 }
14740 }
14741 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14742 return resultobj;
14743fail:
14744 return NULL__null;
14745}
14746
14747
14748SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14749 PyObject *resultobj = 0;
14750 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14751 void *argp1 = 0 ;
14752 int res1 = 0 ;
14753 PyObject * obj0 = 0 ;
14754 double result;
14755
14756 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_min",&obj0)) SWIG_failgoto fail;
14757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14758 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_min" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_min" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14760 }
14761 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14762 {
14763 try {
14764 result = (double)((GMatrixSymmetric const *)arg1)->min();
14765 }
14766 catch (const GException::out_of_range& e) {
14767 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14768 }
14769 catch (const GExceptionHandler& e) {
14770 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14771 }
14772 catch (const std::exception& e) {
14773 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14774 }
14775 }
14776 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14777 return resultobj;
14778fail:
14779 return NULL__null;
14780}
14781
14782
14783SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14784 PyObject *resultobj = 0;
14785 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14786 void *argp1 = 0 ;
14787 int res1 = 0 ;
14788 PyObject * obj0 = 0 ;
14789 double result;
14790
14791 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_max",&obj0)) SWIG_failgoto fail;
14792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14793 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_max" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_max" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14795 }
14796 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14797 {
14798 try {
14799 result = (double)((GMatrixSymmetric const *)arg1)->max();
14800 }
14801 catch (const GException::out_of_range& e) {
14802 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14803 }
14804 catch (const GExceptionHandler& e) {
14805 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14806 }
14807 catch (const std::exception& e) {
14808 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14809 }
14810 }
14811 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14812 return resultobj;
14813fail:
14814 return NULL__null;
14815}
14816
14817
14818SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_sum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14819 PyObject *resultobj = 0;
14820 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14821 void *argp1 = 0 ;
14822 int res1 = 0 ;
14823 PyObject * obj0 = 0 ;
14824 double result;
14825
14826 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_sum",&obj0)) SWIG_failgoto fail;
14827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14828 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_sum" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_sum" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14830 }
14831 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14832 {
14833 try {
14834 result = (double)((GMatrixSymmetric const *)arg1)->sum();
14835 }
14836 catch (const GException::out_of_range& e) {
14837 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14838 }
14839 catch (const GExceptionHandler& e) {
14840 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14841 }
14842 catch (const std::exception& e) {
14843 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14844 }
14845 }
14846 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14847 return resultobj;
14848fail:
14849 return NULL__null;
14850}
14851
14852
14853SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_transpose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14854 PyObject *resultobj = 0;
14855 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14856 void *argp1 = 0 ;
14857 int res1 = 0 ;
14858 PyObject * obj0 = 0 ;
14859 GMatrixSymmetric result;
14860
14861 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_transpose",&obj0)) SWIG_failgoto fail;
14862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14863 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_transpose" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_transpose"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
14865 }
14866 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14867 {
14868 try {
14869 result = ((GMatrixSymmetric const *)arg1)->transpose();
14870 }
14871 catch (const GException::out_of_range& e) {
14872 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14873 }
14874 catch (const GExceptionHandler& e) {
14875 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14876 }
14877 catch (const std::exception& e) {
14878 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14879 }
14880 }
14881 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
14882 return resultobj;
14883fail:
14884 return NULL__null;
14885}
14886
14887
14888SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14889 PyObject *resultobj = 0;
14890 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14891 void *argp1 = 0 ;
14892 int res1 = 0 ;
14893 PyObject * obj0 = 0 ;
14894 GMatrixSymmetric result;
14895
14896 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_invert",&obj0)) SWIG_failgoto fail;
14897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14898 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_invert" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_invert" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14900 }
14901 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14902 {
14903 try {
14904 result = ((GMatrixSymmetric const *)arg1)->invert();
14905 }
14906 catch (const GException::out_of_range& e) {
14907 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14908 }
14909 catch (const GExceptionHandler& e) {
14910 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14911 }
14912 catch (const std::exception& e) {
14913 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14914 }
14915 }
14916 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
14917 return resultobj;
14918fail:
14919 return NULL__null;
14920}
14921
14922
14923SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_solve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14924 PyObject *resultobj = 0;
14925 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14926 GVector *arg2 = 0 ;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 void *argp2 = 0 ;
14930 int res2 = 0 ;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 GVector result;
14934
14935 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric_solve",&obj0,&obj1)) SWIG_failgoto fail;
14936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14937 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_solve" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_solve" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14939 }
14940 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
14942 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric_solve" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric_solve" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
14944 }
14945 if (!argp2) {
14946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric_solve" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric_solve" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
14947 }
14948 arg2 = reinterpret_cast< GVector * >(argp2);
14949 {
14950 try {
14951 result = ((GMatrixSymmetric const *)arg1)->solve((GVector const &)*arg2);
14952 }
14953 catch (const GException::out_of_range& e) {
14954 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14955 }
14956 catch (const GExceptionHandler& e) {
14957 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14958 }
14959 catch (const std::exception& e) {
14960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14961 }
14962 }
14963 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
14964 return resultobj;
14965fail:
14966 return NULL__null;
14967}
14968
14969
14970SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_abs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14971 PyObject *resultobj = 0;
14972 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
14973 void *argp1 = 0 ;
14974 int res1 = 0 ;
14975 PyObject * obj0 = 0 ;
14976 GMatrixSymmetric result;
14977
14978 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_abs",&obj0)) SWIG_failgoto fail;
14979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
14980 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_abs" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_abs" "', argument "
"1"" of type '" "GMatrixSymmetric const *""'"); goto fail; }
while(0)
;
14982 }
14983 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
14984 {
14985 try {
14986 result = ((GMatrixSymmetric const *)arg1)->abs();
14987 }
14988 catch (const GException::out_of_range& e) {
14989 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14990 }
14991 catch (const GExceptionHandler& e) {
14992 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14993 }
14994 catch (const std::exception& e) {
14995 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14996 }
14997 }
14998 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
14999 return resultobj;
15000fail:
15001 return NULL__null;
15002}
15003
15004
15005SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_extract_lower_triangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15006 PyObject *resultobj = 0;
15007 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15008 void *argp1 = 0 ;
15009 int res1 = 0 ;
15010 PyObject * obj0 = 0 ;
15011 GMatrix result;
15012
15013 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_extract_lower_triangle",&obj0)) SWIG_failgoto fail;
15014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15015 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_extract_lower_triangle" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_extract_lower_triangle"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15017 }
15018 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15019 {
15020 try {
15021 result = ((GMatrixSymmetric const *)arg1)->extract_lower_triangle();
15022 }
15023 catch (const GException::out_of_range& e) {
15024 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15025 }
15026 catch (const GExceptionHandler& e) {
15027 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15028 }
15029 catch (const std::exception& e) {
15030 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15031 }
15032 }
15033 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
15034 return resultobj;
15035fail:
15036 return NULL__null;
15037}
15038
15039
15040SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_extract_upper_triangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15041 PyObject *resultobj = 0;
15042 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15043 void *argp1 = 0 ;
15044 int res1 = 0 ;
15045 PyObject * obj0 = 0 ;
15046 GMatrix result;
15047
15048 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_extract_upper_triangle",&obj0)) SWIG_failgoto fail;
15049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15050 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_extract_upper_triangle" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_extract_upper_triangle"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15052 }
15053 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15054 {
15055 try {
15056 result = ((GMatrixSymmetric const *)arg1)->extract_upper_triangle();
15057 }
15058 catch (const GException::out_of_range& e) {
15059 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15060 }
15061 catch (const GExceptionHandler& e) {
15062 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15063 }
15064 catch (const std::exception& e) {
15065 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15066 }
15067 }
15068 resultobj = SWIG_NewPointerObj((new GMatrix(static_cast< const GMatrix& >(result))), SWIGTYPE_p_GMatrix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrix(static_cast<
const GMatrix& >(result))), swig_types[1], 0x1 | 0)
;
15069 return resultobj;
15070fail:
15071 return NULL__null;
15072}
15073
15074
15075SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_decompose__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15076 PyObject *resultobj = 0;
15077 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15078 bool arg2 ;
15079 void *argp1 = 0 ;
15080 int res1 = 0 ;
15081 bool val2 ;
15082 int ecode2 = 0 ;
15083 PyObject * obj0 = 0 ;
15084 PyObject * obj1 = 0 ;
15085 GMatrixSymmetric result;
15086
15087 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric_cholesky_decompose",&obj0,&obj1)) SWIG_failgoto fail;
15088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15089 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_cholesky_decompose" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_cholesky_decompose"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15091 }
15092 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15093 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15094 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_cholesky_decompose" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_cholesky_decompose"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
15096 }
15097 arg2 = static_cast< bool >(val2);
15098 {
15099 try {
15100 result = ((GMatrixSymmetric const *)arg1)->cholesky_decompose(arg2);
15101 }
15102 catch (const GException::out_of_range& e) {
15103 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15104 }
15105 catch (const GExceptionHandler& e) {
15106 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15107 }
15108 catch (const std::exception& e) {
15109 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15110 }
15111 }
15112 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15113 return resultobj;
15114fail:
15115 return NULL__null;
15116}
15117
15118
15119SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_decompose__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15120 PyObject *resultobj = 0;
15121 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15122 void *argp1 = 0 ;
15123 int res1 = 0 ;
15124 PyObject * obj0 = 0 ;
15125 GMatrixSymmetric result;
15126
15127 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_cholesky_decompose",&obj0)) SWIG_failgoto fail;
15128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15129 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_cholesky_decompose" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_cholesky_decompose"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15131 }
15132 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15133 {
15134 try {
15135 result = ((GMatrixSymmetric const *)arg1)->cholesky_decompose();
15136 }
15137 catch (const GException::out_of_range& e) {
15138 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15139 }
15140 catch (const GExceptionHandler& e) {
15141 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15142 }
15143 catch (const std::exception& e) {
15144 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15145 }
15146 }
15147 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15148 return resultobj;
15149fail:
15150 return NULL__null;
15151}
15152
15153
15154SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_decompose(PyObject *self, PyObject *args) {
15155 int argc;
15156 PyObject *argv[3];
15157 int ii;
15158
15159 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15160 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15161 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
15162 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15163 }
15164 if (argc == 1) {
15165 int _v;
15166 void *vptr = 0;
15167 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15168 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15169 if (_v) {
15170 return _wrap_GMatrixSymmetric_cholesky_decompose__SWIG_1(self, args);
15171 }
15172 }
15173 if (argc == 2) {
15174 int _v;
15175 void *vptr = 0;
15176 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15177 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15178 if (_v) {
15179 {
15180 int res = SWIG_AsVal_bool(argv[1], NULL__null);
15181 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15182 }
15183 if (_v) {
15184 return _wrap_GMatrixSymmetric_cholesky_decompose__SWIG_0(self, args);
15185 }
15186 }
15187 }
15188
15189fail:
15190 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSymmetric_cholesky_decompose'.\n"
15191 " Possible C/C++ prototypes are:\n"
15192 " GMatrixSymmetric::cholesky_decompose(bool) const\n"
15193 " GMatrixSymmetric::cholesky_decompose() const\n");
15194 return 0;
15195}
15196
15197
15198SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_solver__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15199 PyObject *resultobj = 0;
15200 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15201 GVector *arg2 = 0 ;
15202 bool arg3 ;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 void *argp2 = 0 ;
15206 int res2 = 0 ;
15207 bool val3 ;
15208 int ecode3 = 0 ;
15209 PyObject * obj0 = 0 ;
15210 PyObject * obj1 = 0 ;
15211 PyObject * obj2 = 0 ;
15212 GVector result;
15213
15214 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSymmetric_cholesky_solver",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
15215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15216 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_cholesky_solver" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_cholesky_solver"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15218 }
15219 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
15221 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric_cholesky_solver"
"', argument " "2"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
15223 }
15224 if (!argp2) {
15225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric_cholesky_solver" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
15226 }
15227 arg2 = reinterpret_cast< GVector * >(argp2);
15228 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15229 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
15230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSymmetric_cholesky_solver" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSymmetric_cholesky_solver"
"', argument " "3"" of type '" "bool""'"); goto fail; } while
(0)
;
15231 }
15232 arg3 = static_cast< bool >(val3);
15233 {
15234 try {
15235 result = ((GMatrixSymmetric const *)arg1)->cholesky_solver((GVector const &)*arg2,arg3);
15236 }
15237 catch (const GException::out_of_range& e) {
15238 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15239 }
15240 catch (const GExceptionHandler& e) {
15241 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15242 }
15243 catch (const std::exception& e) {
15244 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15245 }
15246 }
15247 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
15248 return resultobj;
15249fail:
15250 return NULL__null;
15251}
15252
15253
15254SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_solver__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15255 PyObject *resultobj = 0;
15256 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15257 GVector *arg2 = 0 ;
15258 void *argp1 = 0 ;
15259 int res1 = 0 ;
15260 void *argp2 = 0 ;
15261 int res2 = 0 ;
15262 PyObject * obj0 = 0 ;
15263 PyObject * obj1 = 0 ;
15264 GVector result;
15265
15266 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric_cholesky_solver",&obj0,&obj1)) SWIG_failgoto fail;
15267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15268 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_cholesky_solver" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_cholesky_solver"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15270 }
15271 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
15273 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric_cholesky_solver"
"', argument " "2"" of type '" "GVector const &""'"); goto
fail; } while(0)
;
15275 }
15276 if (!argp2) {
15277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric_cholesky_solver" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric_cholesky_solver" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
15278 }
15279 arg2 = reinterpret_cast< GVector * >(argp2);
15280 {
15281 try {
15282 result = ((GMatrixSymmetric const *)arg1)->cholesky_solver((GVector const &)*arg2);
15283 }
15284 catch (const GException::out_of_range& e) {
15285 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15286 }
15287 catch (const GExceptionHandler& e) {
15288 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15289 }
15290 catch (const std::exception& e) {
15291 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15292 }
15293 }
15294 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
15295 return resultobj;
15296fail:
15297 return NULL__null;
15298}
15299
15300
15301SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_solver(PyObject *self, PyObject *args) {
15302 int argc;
15303 PyObject *argv[4];
15304 int ii;
15305
15306 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15307 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15308 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
15309 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15310 }
15311 if (argc == 2) {
15312 int _v;
15313 void *vptr = 0;
15314 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15315 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15316 if (_v) {
15317 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
15318 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15319 if (_v) {
15320 return _wrap_GMatrixSymmetric_cholesky_solver__SWIG_1(self, args);
15321 }
15322 }
15323 }
15324 if (argc == 3) {
15325 int _v;
15326 void *vptr = 0;
15327 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15328 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15329 if (_v) {
15330 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
15331 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15332 if (_v) {
15333 {
15334 int res = SWIG_AsVal_bool(argv[2], NULL__null);
15335 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15336 }
15337 if (_v) {
15338 return _wrap_GMatrixSymmetric_cholesky_solver__SWIG_0(self, args);
15339 }
15340 }
15341 }
15342 }
15343
15344fail:
15345 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSymmetric_cholesky_solver'.\n"
15346 " Possible C/C++ prototypes are:\n"
15347 " GMatrixSymmetric::cholesky_solver(GVector const &,bool) const\n"
15348 " GMatrixSymmetric::cholesky_solver(GVector const &) const\n");
15349 return 0;
15350}
15351
15352
15353SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_invert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15354 PyObject *resultobj = 0;
15355 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15356 bool arg2 ;
15357 void *argp1 = 0 ;
15358 int res1 = 0 ;
15359 bool val2 ;
15360 int ecode2 = 0 ;
15361 PyObject * obj0 = 0 ;
15362 PyObject * obj1 = 0 ;
15363 GMatrixSymmetric result;
15364
15365 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric_cholesky_invert",&obj0,&obj1)) SWIG_failgoto fail;
15366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15367 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_cholesky_invert" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_cholesky_invert"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15369 }
15370 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15371 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15372 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_cholesky_invert" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_cholesky_invert"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
15374 }
15375 arg2 = static_cast< bool >(val2);
15376 {
15377 try {
15378 result = ((GMatrixSymmetric const *)arg1)->cholesky_invert(arg2);
15379 }
15380 catch (const GException::out_of_range& e) {
15381 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15382 }
15383 catch (const GExceptionHandler& e) {
15384 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15385 }
15386 catch (const std::exception& e) {
15387 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15388 }
15389 }
15390 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15391 return resultobj;
15392fail:
15393 return NULL__null;
15394}
15395
15396
15397SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_invert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15398 PyObject *resultobj = 0;
15399 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15400 void *argp1 = 0 ;
15401 int res1 = 0 ;
15402 PyObject * obj0 = 0 ;
15403 GMatrixSymmetric result;
15404
15405 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_cholesky_invert",&obj0)) SWIG_failgoto fail;
15406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15407 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_cholesky_invert" "', argument " "1"" of type '" "GMatrixSymmetric const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_cholesky_invert"
"', argument " "1"" of type '" "GMatrixSymmetric const *""'"
); goto fail; } while(0)
;
15409 }
15410 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15411 {
15412 try {
15413 result = ((GMatrixSymmetric const *)arg1)->cholesky_invert();
15414 }
15415 catch (const GException::out_of_range& e) {
15416 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15417 }
15418 catch (const GExceptionHandler& e) {
15419 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15420 }
15421 catch (const std::exception& e) {
15422 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15423 }
15424 }
15425 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15426 return resultobj;
15427fail:
15428 return NULL__null;
15429}
15430
15431
15432SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_cholesky_invert(PyObject *self, PyObject *args) {
15433 int argc;
15434 PyObject *argv[3];
15435 int ii;
15436
15437 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15438 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15439 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
15440 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15441 }
15442 if (argc == 1) {
15443 int _v;
15444 void *vptr = 0;
15445 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15446 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15447 if (_v) {
15448 return _wrap_GMatrixSymmetric_cholesky_invert__SWIG_1(self, args);
15449 }
15450 }
15451 if (argc == 2) {
15452 int _v;
15453 void *vptr = 0;
15454 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15455 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15456 if (_v) {
15457 {
15458 int res = SWIG_AsVal_bool(argv[1], NULL__null);
15459 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15460 }
15461 if (_v) {
15462 return _wrap_GMatrixSymmetric_cholesky_invert__SWIG_0(self, args);
15463 }
15464 }
15465 }
15466
15467fail:
15468 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMatrixSymmetric_cholesky_invert'.\n"
15469 " Possible C/C++ prototypes are:\n"
15470 " GMatrixSymmetric::cholesky_invert(bool) const\n"
15471 " GMatrixSymmetric::cholesky_invert() const\n");
15472 return 0;
15473}
15474
15475
15476SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15477 PyObject *resultobj = 0;
15478 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15479 int *arg2 ;
15480 void *argp1 = 0 ;
15481 int res1 = 0 ;
15482 int temp2[2] ;
15483 PyObject * obj0 = 0 ;
15484 PyObject * obj1 = 0 ;
15485 double result;
15486
15487 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
15488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15489 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___getitem__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___getitem__"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
15491 }
15492 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15493 {
15494 if (!PySequence_Check(obj1)) {
15495 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
15496 return NULL__null;
15497 }
15498 if (PySequence_LengthPySequence_Size(obj1) != 2) {
15499 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
15500 return NULL__null;
15501 }
15502 for (int i = 0; i < 2; ++i) {
15503 PyObject *o = PySequence_GetItem(obj1,i);
15504 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
15505 temp2[i] = (int)PyInt_AsLong(o);
15506 }
15507 else {
15508 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
15509 return NULL__null;
15510 }
15511 }
15512 arg2 = temp2;
15513 }
15514 {
15515 try {
15516 result = (double)GMatrixSymmetric___getitem__(arg1,arg2);
15517 }
15518 catch (const GException::out_of_range& e) {
15519 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15520 }
15521 catch (const GExceptionHandler& e) {
15522 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15523 }
15524 catch (const std::exception& e) {
15525 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15526 }
15527 }
15528 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
15529 return resultobj;
15530fail:
15531 return NULL__null;
15532}
15533
15534
15535SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15536 PyObject *resultobj = 0;
15537 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15538 int *arg2 ;
15539 double arg3 ;
15540 void *argp1 = 0 ;
15541 int res1 = 0 ;
15542 int temp2[2] ;
15543 double val3 ;
15544 int ecode3 = 0 ;
15545 PyObject * obj0 = 0 ;
15546 PyObject * obj1 = 0 ;
15547 PyObject * obj2 = 0 ;
15548
15549 if (!PyArg_ParseTuple(args,(char *)"OOO:GMatrixSymmetric___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
15550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15551 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___setitem__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___setitem__"
"', argument " "1"" of type '" "GMatrixSymmetric *""'"); goto
fail; } while(0)
;
15553 }
15554 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15555 {
15556 if (!PySequence_Check(obj1)) {
15557 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
15558 return NULL__null;
15559 }
15560 if (PySequence_LengthPySequence_Size(obj1) != 2) {
15561 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
15562 return NULL__null;
15563 }
15564 for (int i = 0; i < 2; ++i) {
15565 PyObject *o = PySequence_GetItem(obj1,i);
15566 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
15567 temp2[i] = (int)PyInt_AsLong(o);
15568 }
15569 else {
15570 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
15571 return NULL__null;
15572 }
15573 }
15574 arg2 = temp2;
15575 }
15576 ecode3 = SWIG_AsVal_double(obj2, &val3);
15577 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
15578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMatrixSymmetric___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMatrixSymmetric___setitem__"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
15579 }
15580 arg3 = static_cast< double >(val3);
15581 {
15582 try {
15583 GMatrixSymmetric___setitem__(arg1,arg2,arg3);
15584 }
15585 catch (const GException::out_of_range& e) {
15586 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15587 }
15588 catch (const GExceptionHandler& e) {
15589 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15590 }
15591 catch (const std::exception& e) {
15592 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15593 }
15594 }
15595 resultobj = SWIG_Py_Void();
15596 return resultobj;
15597fail:
15598 return NULL__null;
15599}
15600
15601
15602SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15603 PyObject *resultobj = 0;
15604 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15605 GVector *arg2 = 0 ;
15606 void *argp1 = 0 ;
15607 int res1 = 0 ;
15608 void *argp2 = 0 ;
15609 int res2 = 0 ;
15610 PyObject * obj0 = 0 ;
15611 PyObject * obj1 = 0 ;
15612 GVector result;
15613
15614 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___mul__",&obj0,&obj1)) SWIG_failgoto fail;
15615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15616 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___mul__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___mul__" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
15618 }
15619 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
15621 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric___mul__" "', argument "
"2"" of type '" "GVector const &""'"); goto fail; } while
(0)
;
15623 }
15624 if (!argp2) {
15625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric___mul__" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric___mul__" "', argument " "2"" of type '"
"GVector const &""'"); goto fail; } while(0)
;
15626 }
15627 arg2 = reinterpret_cast< GVector * >(argp2);
15628 {
15629 try {
15630 result = GMatrixSymmetric___mul____SWIG_0(arg1,(GVector const &)*arg2);
15631 }
15632 catch (const GException::out_of_range& e) {
15633 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15634 }
15635 catch (const GExceptionHandler& e) {
15636 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15637 }
15638 catch (const std::exception& e) {
15639 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15640 }
15641 }
15642 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[5], 0x1 | 0)
;
15643 return resultobj;
15644fail:
15645 return NULL__null;
15646}
15647
15648
15649SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15650 PyObject *resultobj = 0;
15651 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15652 GMatrixSymmetric *arg2 = 0 ;
15653 void *argp1 = 0 ;
15654 int res1 = 0 ;
15655 void *argp2 = 0 ;
15656 int res2 = 0 ;
15657 PyObject * obj0 = 0 ;
15658 PyObject * obj1 = 0 ;
15659 GMatrixSymmetric result;
15660
15661 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___mul__",&obj0,&obj1)) SWIG_failgoto fail;
15662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15663 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___mul__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___mul__" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
15665 }
15666 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GMatrixSymmetric, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
15668 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMatrixSymmetric___mul__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMatrixSymmetric___mul__" "', argument "
"2"" of type '" "GMatrixSymmetric const &""'"); goto fail
; } while(0)
;
15670 }
15671 if (!argp2) {
15672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMatrixSymmetric___mul__" "', argument " "2"" of type '" "GMatrixSymmetric const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMatrixSymmetric___mul__" "', argument " "2"" of type '"
"GMatrixSymmetric const &""'"); goto fail; } while(0)
;
15673 }
15674 arg2 = reinterpret_cast< GMatrixSymmetric * >(argp2);
15675 {
15676 try {
15677 result = GMatrixSymmetric___mul____SWIG_1(arg1,(GMatrixSymmetric const &)*arg2);
15678 }
15679 catch (const GException::out_of_range& e) {
15680 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15681 }
15682 catch (const GExceptionHandler& e) {
15683 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15684 }
15685 catch (const std::exception& e) {
15686 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15687 }
15688 }
15689 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15690 return resultobj;
15691fail:
15692 return NULL__null;
15693}
15694
15695
15696SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15697 PyObject *resultobj = 0;
15698 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15699 double *arg2 = 0 ;
15700 void *argp1 = 0 ;
15701 int res1 = 0 ;
15702 double temp2 ;
15703 double val2 ;
15704 int ecode2 = 0 ;
15705 PyObject * obj0 = 0 ;
15706 PyObject * obj1 = 0 ;
15707 GMatrixSymmetric result;
15708
15709 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___mul__",&obj0,&obj1)) SWIG_failgoto fail;
15710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15711 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___mul__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___mul__" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
15713 }
15714 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15715 ecode2 = SWIG_AsVal_double(obj1, &val2);
15716 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric___mul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric___mul__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
15718 }
15719 temp2 = static_cast< double >(val2);
15720 arg2 = &temp2;
15721 {
15722 try {
15723 result = GMatrixSymmetric___mul____SWIG_2(arg1,(double const &)*arg2);
15724 }
15725 catch (const GException::out_of_range& e) {
15726 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15727 }
15728 catch (const GExceptionHandler& e) {
15729 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15730 }
15731 catch (const std::exception& e) {
15732 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15733 }
15734 }
15735 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15736 return resultobj;
15737fail:
15738 return NULL__null;
15739}
15740
15741
15742SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___mul__(PyObject *self, PyObject *args) {
15743 int argc;
15744 PyObject *argv[3];
15745 int ii;
15746
15747 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15748 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15749 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
15750 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15751 }
15752 if (argc == 2) {
15753 int _v;
15754 void *vptr = 0;
15755 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15756 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15757 if (_v) {
15758 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
15759 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15760 if (_v) {
15761 return _wrap_GMatrixSymmetric___mul____SWIG_0(self, args);
15762 }
15763 }
15764 }
15765 if (argc == 2) {
15766 int _v;
15767 void *vptr = 0;
15768 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15769 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15770 if (_v) {
15771 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[4], 0, 0);
15772 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15773 if (_v) {
15774 return _wrap_GMatrixSymmetric___mul____SWIG_1(self, args);
15775 }
15776 }
15777 }
15778 if (argc == 2) {
15779 int _v;
15780 void *vptr = 0;
15781 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMatrixSymmetric, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
15782 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15783 if (_v) {
15784 {
15785 int res = SWIG_AsVal_double(argv[1], NULL__null);
15786 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15787 }
15788 if (_v) {
15789 return _wrap_GMatrixSymmetric___mul____SWIG_2(self, args);
15790 }
15791 }
15792 }
15793
15794fail:
15795 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
15796 return Py_NotImplemented(&_Py_NotImplementedStruct);
15797}
15798
15799
15800SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15801 PyObject *resultobj = 0;
15802 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15803 double *arg2 = 0 ;
15804 void *argp1 = 0 ;
15805 int res1 = 0 ;
15806 double temp2 ;
15807 double val2 ;
15808 int ecode2 = 0 ;
15809 PyObject * obj0 = 0 ;
15810 PyObject * obj1 = 0 ;
15811 GMatrixSymmetric result;
15812
15813 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric___div__",&obj0,&obj1)) SWIG_failgoto fail;
15814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15815 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric___div__" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric___div__" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
15817 }
15818 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15819 ecode2 = SWIG_AsVal_double(obj1, &val2);
15820 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric___div__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric___div__"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
15822 }
15823 temp2 = static_cast< double >(val2);
15824 arg2 = &temp2;
15825 {
15826 try {
15827 result = GMatrixSymmetric___div__(arg1,(double const &)*arg2);
15828 }
15829 catch (const GException::out_of_range& e) {
15830 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15831 }
15832 catch (const GExceptionHandler& e) {
15833 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15834 }
15835 catch (const std::exception& e) {
15836 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15837 }
15838 }
15839 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15840 return resultobj;
15841fail:
15842 return NULL__null;
15843}
15844
15845
15846SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15847 PyObject *resultobj = 0;
15848 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15849 void *argp1 = 0 ;
15850 int res1 = 0 ;
15851 PyObject * obj0 = 0 ;
15852 GMatrixSymmetric result;
15853
15854 if (!PyArg_ParseTuple(args,(char *)"O:GMatrixSymmetric_copy",&obj0)) SWIG_failgoto fail;
15855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15856 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_copy" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_copy" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
15858 }
15859 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15860 {
15861 try {
15862 result = GMatrixSymmetric_copy(arg1);
15863 }
15864 catch (const GException::out_of_range& e) {
15865 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15866 }
15867 catch (const GExceptionHandler& e) {
15868 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15869 }
15870 catch (const std::exception& e) {
15871 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15872 }
15873 }
15874 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15875 return resultobj;
15876fail:
15877 return NULL__null;
15878}
15879
15880
15881SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMatrixSymmetric_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15882 PyObject *resultobj = 0;
15883 GMatrixSymmetric *arg1 = (GMatrixSymmetric *) 0 ;
15884 double *arg2 = 0 ;
15885 void *argp1 = 0 ;
15886 int res1 = 0 ;
15887 double temp2 ;
15888 double val2 ;
15889 int ecode2 = 0 ;
15890 PyObject * obj0 = 0 ;
15891 PyObject * obj1 = 0 ;
15892 GMatrixSymmetric result;
15893
15894 if (!PyArg_ParseTuple(args,(char *)"OO:GMatrixSymmetric_set",&obj0,&obj1)) SWIG_failgoto fail;
15895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMatrixSymmetric, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
15896 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMatrixSymmetric_set" "', argument " "1"" of type '" "GMatrixSymmetric *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMatrixSymmetric_set" "', argument "
"1"" of type '" "GMatrixSymmetric *""'"); goto fail; } while
(0)
;
15898 }
15899 arg1 = reinterpret_cast< GMatrixSymmetric * >(argp1);
15900 ecode2 = SWIG_AsVal_double(obj1, &val2);
15901 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMatrixSymmetric_set" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMatrixSymmetric_set" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
15903 }
15904 temp2 = static_cast< double >(val2);
15905 arg2 = &temp2;
15906 {
15907 try {
15908 result = GMatrixSymmetric_set(arg1,(double const &)*arg2);
15909 }
15910 catch (const GException::out_of_range& e) {
15911 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15912 }
15913 catch (const GExceptionHandler& e) {
15914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15915 }
15916 catch (const std::exception& e) {
15917 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15918 }
15919 }
15920 resultobj = SWIG_NewPointerObj((new GMatrixSymmetric(static_cast< const GMatrixSymmetric& >(result))), SWIGTYPE_p_GMatrixSymmetric, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMatrixSymmetric(static_cast
< const GMatrixSymmetric& >(result))), swig_types[4
], 0x1 | 0)
;
15921 return resultobj;
15922fail:
15923 return NULL__null;
15924}
15925
15926
15927SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GMatrixSymmetric_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15928 PyObject *obj;
15929 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
15930 SWIG_TypeNewClientData(SWIGTYPE_p_GMatrixSymmetricswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
15931 return SWIG_Py_Void();
15932}
15933
15934static PyMethodDef SwigMethods[] = {
15935 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
15936 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
15937 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
15938 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
15939 "incr(size_t n=1) -> SwigPyIterator\n"
15940 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
15941 ""},
15942 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
15943 "decr(size_t n=1) -> SwigPyIterator\n"
15944 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
15945 ""},
15946 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
15947 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
15948 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
15949 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
15950 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
15951 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
15952 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
15953 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
15954 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
15955 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
15956 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
15957 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
15958 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
15959 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
15960 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
15961 ""},
15962 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
15963 { (char *)"new_GVector", _wrap_new_GVector, METH_VARARGS0x0001, (char *)"\n"
15964 "GVector()\n"
15965 "GVector(int const & num)\n"
15966 "GVector(double const & a)\n"
15967 "GVector(double const & a, double const & b)\n"
15968 "GVector(double const & a, double const & b, double const & c)\n"
15969 "new_GVector(GVector v) -> GVector\n"
15970 ""},
15971 { (char *)"delete_GVector", _wrap_delete_GVector, METH_VARARGS0x0001, (char *)"delete_GVector(GVector self)"},
15972 { (char *)"GVector___eq__", _wrap_GVector___eq__, METH_VARARGS0x0001, (char *)"GVector___eq__(GVector self, GVector vector) -> bool"},
15973 { (char *)"GVector___ne__", _wrap_GVector___ne__, METH_VARARGS0x0001, (char *)"GVector___ne__(GVector self, GVector vector) -> bool"},
15974 { (char *)"GVector___iadd__", _wrap_GVector___iadd__, METH_VARARGS0x0001, (char *)"\n"
15975 "__iadd__(GVector vector) -> GVector\n"
15976 "GVector___iadd__(GVector self, double const & value) -> GVector\n"
15977 ""},
15978 { (char *)"GVector___isub__", _wrap_GVector___isub__, METH_VARARGS0x0001, (char *)"\n"
15979 "__isub__(GVector vector) -> GVector\n"
15980 "GVector___isub__(GVector self, double const & value) -> GVector\n"
15981 ""},
15982 { (char *)"GVector___imul__", _wrap_GVector___imul__, METH_VARARGS0x0001, (char *)"GVector___imul__(GVector self, double const & value) -> GVector"},
15983 { (char *)"GVector___idiv__", _wrap_GVector___idiv__, METH_VARARGS0x0001, (char *)"GVector___idiv__(GVector self, double const & value) -> GVector"},
15984 { (char *)"GVector___neg__", _wrap_GVector___neg__, METH_VARARGS0x0001, (char *)"GVector___neg__(GVector self) -> GVector"},
15985 { (char *)"GVector_clear", _wrap_GVector_clear, METH_VARARGS0x0001, (char *)"GVector_clear(GVector self)"},
15986 { (char *)"GVector_clone", _wrap_GVector_clone, METH_VARARGS0x0001, (char *)"GVector_clone(GVector self) -> GVector"},
15987 { (char *)"GVector_size", _wrap_GVector_size, METH_VARARGS0x0001, (char *)"GVector_size(GVector self) -> int const &"},
15988 { (char *)"GVector_at", _wrap_GVector_at, METH_VARARGS0x0001, (char *)"GVector_at(GVector self, int const & index) -> double &"},
15989 { (char *)"GVector_non_zeros", _wrap_GVector_non_zeros, METH_VARARGS0x0001, (char *)"GVector_non_zeros(GVector self) -> int"},
15990 { (char *)"GVector___getitem__", _wrap_GVector___getitem__, METH_VARARGS0x0001, (char *)"GVector___getitem__(GVector self, int const & index) -> double"},
15991 { (char *)"GVector___setitem__", _wrap_GVector___setitem__, METH_VARARGS0x0001, (char *)"GVector___setitem__(GVector self, int const & index, double const & val)"},
15992 { (char *)"GVector___add__", _wrap_GVector___add__, METH_VARARGS0x0001, (char *)"\n"
15993 "__add__(GVector a) -> GVector\n"
15994 "GVector___add__(GVector self, double const & a) -> GVector\n"
15995 ""},
15996 { (char *)"GVector___sub__", _wrap_GVector___sub__, METH_VARARGS0x0001, (char *)"\n"
15997 "__sub__(GVector a) -> GVector\n"
15998 "GVector___sub__(GVector self, double const & a) -> GVector\n"
15999 ""},
16000 { (char *)"GVector___mul__", _wrap_GVector___mul__, METH_VARARGS0x0001, (char *)"\n"
16001 "__mul__(GVector a) -> double\n"
16002 "GVector___mul__(GVector self, double const & a) -> GVector\n"
16003 ""},
16004 { (char *)"GVector___div__", _wrap_GVector___div__, METH_VARARGS0x0001, (char *)"GVector___div__(GVector self, double const & a) -> GVector"},
16005 { (char *)"GVector___is__", _wrap_GVector___is__, METH_VARARGS0x0001, (char *)"GVector___is__(GVector self, GVector a) -> int"},
16006 { (char *)"GVector_copy", _wrap_GVector_copy, METH_VARARGS0x0001, (char *)"GVector_copy(GVector self) -> GVector"},
16007 { (char *)"GVector_cross", _wrap_GVector_cross, METH_VARARGS0x0001, (char *)"GVector_cross(GVector self, GVector a) -> GVector"},
16008 { (char *)"GVector_norm", _wrap_GVector_norm, METH_VARARGS0x0001, (char *)"GVector_norm(GVector self) -> double"},
16009 { (char *)"GVector_min", _wrap_GVector_min, METH_VARARGS0x0001, (char *)"GVector_min(GVector self) -> double"},
16010 { (char *)"GVector_max", _wrap_GVector_max, METH_VARARGS0x0001, (char *)"GVector_max(GVector self) -> double"},
16011 { (char *)"GVector_sum", _wrap_GVector_sum, METH_VARARGS0x0001, (char *)"GVector_sum(GVector self) -> double"},
16012 { (char *)"GVector_acos", _wrap_GVector_acos, METH_VARARGS0x0001, (char *)"GVector_acos(GVector self) -> GVector"},
16013 { (char *)"GVector_acosh", _wrap_GVector_acosh, METH_VARARGS0x0001, (char *)"GVector_acosh(GVector self) -> GVector"},
16014 { (char *)"GVector_asin", _wrap_GVector_asin, METH_VARARGS0x0001, (char *)"GVector_asin(GVector self) -> GVector"},
16015 { (char *)"GVector_asinh", _wrap_GVector_asinh, METH_VARARGS0x0001, (char *)"GVector_asinh(GVector self) -> GVector"},
16016 { (char *)"GVector_atan", _wrap_GVector_atan, METH_VARARGS0x0001, (char *)"GVector_atan(GVector self) -> GVector"},
16017 { (char *)"GVector_atanh", _wrap_GVector_atanh, METH_VARARGS0x0001, (char *)"GVector_atanh(GVector self) -> GVector"},
16018 { (char *)"GVector_cos", _wrap_GVector_cos, METH_VARARGS0x0001, (char *)"GVector_cos(GVector self) -> GVector"},
16019 { (char *)"GVector_cosh", _wrap_GVector_cosh, METH_VARARGS0x0001, (char *)"GVector_cosh(GVector self) -> GVector"},
16020 { (char *)"GVector_exp", _wrap_GVector_exp, METH_VARARGS0x0001, (char *)"GVector_exp(GVector self) -> GVector"},
16021 { (char *)"GVector_abs", _wrap_GVector_abs, METH_VARARGS0x0001, (char *)"GVector_abs(GVector self) -> GVector"},
16022 { (char *)"GVector_log", _wrap_GVector_log, METH_VARARGS0x0001, (char *)"GVector_log(GVector self) -> GVector"},
16023 { (char *)"GVector_log10", _wrap_GVector_log10, METH_VARARGS0x0001, (char *)"GVector_log10(GVector self) -> GVector"},
16024 { (char *)"GVector_sin", _wrap_GVector_sin, METH_VARARGS0x0001, (char *)"GVector_sin(GVector self) -> GVector"},
16025 { (char *)"GVector_sinh", _wrap_GVector_sinh, METH_VARARGS0x0001, (char *)"GVector_sinh(GVector self) -> GVector"},
16026 { (char *)"GVector_sqrt", _wrap_GVector_sqrt, METH_VARARGS0x0001, (char *)"GVector_sqrt(GVector self) -> GVector"},
16027 { (char *)"GVector_tan", _wrap_GVector_tan, METH_VARARGS0x0001, (char *)"GVector_tan(GVector self) -> GVector"},
16028 { (char *)"GVector_tanh", _wrap_GVector_tanh, METH_VARARGS0x0001, (char *)"GVector_tanh(GVector self) -> GVector"},
16029 { (char *)"GVector_swigregister", GVector_swigregister, METH_VARARGS0x0001, NULL__null},
16030 { (char *)"delete_GMatrixBase", _wrap_delete_GMatrixBase, METH_VARARGS0x0001, (char *)"delete_GMatrixBase(GMatrixBase self)"},
16031 { (char *)"GMatrixBase___eq__", _wrap_GMatrixBase___eq__, METH_VARARGS0x0001, (char *)"GMatrixBase___eq__(GMatrixBase self, GMatrixBase matrix) -> bool"},
16032 { (char *)"GMatrixBase___ne__", _wrap_GMatrixBase___ne__, METH_VARARGS0x0001, (char *)"GMatrixBase___ne__(GMatrixBase self, GMatrixBase matrix) -> bool"},
16033 { (char *)"GMatrixBase_clear", _wrap_GMatrixBase_clear, METH_VARARGS0x0001, (char *)"GMatrixBase_clear(GMatrixBase self)"},
16034 { (char *)"GMatrixBase_clone", _wrap_GMatrixBase_clone, METH_VARARGS0x0001, (char *)"GMatrixBase_clone(GMatrixBase self) -> GMatrixBase"},
16035 { (char *)"GMatrixBase_at", _wrap_GMatrixBase_at, METH_VARARGS0x0001, (char *)"GMatrixBase_at(GMatrixBase self, int const & row, int const & column) -> double &"},
16036 { (char *)"GMatrixBase_row", _wrap_GMatrixBase_row, METH_VARARGS0x0001, (char *)"\n"
16037 "row(int const & row) -> GVector\n"
16038 "GMatrixBase_row(GMatrixBase self, int const & row, GVector vector)\n"
16039 ""},
16040 { (char *)"GMatrixBase_column", _wrap_GMatrixBase_column, METH_VARARGS0x0001, (char *)"\n"
16041 "column(int const & column) -> GVector\n"
16042 "GMatrixBase_column(GMatrixBase self, int const & column, GVector vector)\n"
16043 ""},
16044 { (char *)"GMatrixBase_add_to_row", _wrap_GMatrixBase_add_to_row, METH_VARARGS0x0001, (char *)"GMatrixBase_add_to_row(GMatrixBase self, int const & row, GVector vector)"},
16045 { (char *)"GMatrixBase_add_to_column", _wrap_GMatrixBase_add_to_column, METH_VARARGS0x0001, (char *)"GMatrixBase_add_to_column(GMatrixBase self, int const & column, GVector vector)"},
16046 { (char *)"GMatrixBase_fill", _wrap_GMatrixBase_fill, METH_VARARGS0x0001, (char *)"GMatrixBase_fill(GMatrixBase self) -> double"},
16047 { (char *)"GMatrixBase_min", _wrap_GMatrixBase_min, METH_VARARGS0x0001, (char *)"GMatrixBase_min(GMatrixBase self) -> double"},
16048 { (char *)"GMatrixBase_max", _wrap_GMatrixBase_max, METH_VARARGS0x0001, (char *)"GMatrixBase_max(GMatrixBase self) -> double"},
16049 { (char *)"GMatrixBase_sum", _wrap_GMatrixBase_sum, METH_VARARGS0x0001, (char *)"GMatrixBase_sum(GMatrixBase self) -> double"},
16050 { (char *)"GMatrixBase_size", _wrap_GMatrixBase_size, METH_VARARGS0x0001, (char *)"GMatrixBase_size(GMatrixBase self) -> int const &"},
16051 { (char *)"GMatrixBase_columns", _wrap_GMatrixBase_columns, METH_VARARGS0x0001, (char *)"GMatrixBase_columns(GMatrixBase self) -> int const &"},
16052 { (char *)"GMatrixBase_rows", _wrap_GMatrixBase_rows, METH_VARARGS0x0001, (char *)"GMatrixBase_rows(GMatrixBase self) -> int const &"},
16053 { (char *)"GMatrixBase_swigregister", GMatrixBase_swigregister, METH_VARARGS0x0001, NULL__null},
16054 { (char *)"new_GMatrix", _wrap_new_GMatrix, METH_VARARGS0x0001, (char *)"\n"
16055 "GMatrix()\n"
16056 "GMatrix(int const & rows, int const & columns)\n"
16057 "GMatrix(GMatrix matrix)\n"
16058 "GMatrix(GMatrixSymmetric matrix)\n"
16059 "new_GMatrix(GMatrixSparse matrix) -> GMatrix\n"
16060 ""},
16061 { (char *)"delete_GMatrix", _wrap_delete_GMatrix, METH_VARARGS0x0001, (char *)"delete_GMatrix(GMatrix self)"},
16062 { (char *)"GMatrix___add__", _wrap_GMatrix___add__, METH_VARARGS0x0001, (char *)"GMatrix___add__(GMatrix self, GMatrix matrix) -> GMatrix"},
16063 { (char *)"GMatrix___sub__", _wrap_GMatrix___sub__, METH_VARARGS0x0001, (char *)"GMatrix___sub__(GMatrix self, GMatrix matrix) -> GMatrix"},
16064 { (char *)"GMatrix___neg__", _wrap_GMatrix___neg__, METH_VARARGS0x0001, (char *)"GMatrix___neg__(GMatrix self) -> GMatrix"},
16065 { (char *)"GMatrix___iadd__", _wrap_GMatrix___iadd__, METH_VARARGS0x0001, (char *)"GMatrix___iadd__(GMatrix self, GMatrix matrix) -> GMatrix"},
16066 { (char *)"GMatrix___isub__", _wrap_GMatrix___isub__, METH_VARARGS0x0001, (char *)"GMatrix___isub__(GMatrix self, GMatrix matrix) -> GMatrix"},
16067 { (char *)"GMatrix___imul__", _wrap_GMatrix___imul__, METH_VARARGS0x0001, (char *)"\n"
16068 "__imul__(GMatrix matrix) -> GMatrix\n"
16069 "GMatrix___imul__(GMatrix self, double const & scalar) -> GMatrix\n"
16070 ""},
16071 { (char *)"GMatrix___idiv__", _wrap_GMatrix___idiv__, METH_VARARGS0x0001, (char *)"GMatrix___idiv__(GMatrix self, double const & scalar) -> GMatrix"},
16072 { (char *)"GMatrix_clear", _wrap_GMatrix_clear, METH_VARARGS0x0001, (char *)"GMatrix_clear(GMatrix self)"},
16073 { (char *)"GMatrix_clone", _wrap_GMatrix_clone, METH_VARARGS0x0001, (char *)"GMatrix_clone(GMatrix self) -> GMatrix"},
16074 { (char *)"GMatrix_at", _wrap_GMatrix_at, METH_VARARGS0x0001, (char *)"GMatrix_at(GMatrix self, int const & row, int const & column) -> double &"},
16075 { (char *)"GMatrix_row", _wrap_GMatrix_row, METH_VARARGS0x0001, (char *)"\n"
16076 "row(int const & row) -> GVector\n"
16077 "GMatrix_row(GMatrix self, int const & row, GVector vector)\n"
16078 ""},
16079 { (char *)"GMatrix_column", _wrap_GMatrix_column, METH_VARARGS0x0001, (char *)"\n"
16080 "column(int const & column) -> GVector\n"
16081 "GMatrix_column(GMatrix self, int const & column, GVector vector)\n"
16082 ""},
16083 { (char *)"GMatrix_add_to_row", _wrap_GMatrix_add_to_row, METH_VARARGS0x0001, (char *)"GMatrix_add_to_row(GMatrix self, int const & row, GVector vector)"},
16084 { (char *)"GMatrix_add_to_column", _wrap_GMatrix_add_to_column, METH_VARARGS0x0001, (char *)"GMatrix_add_to_column(GMatrix self, int const & column, GVector vector)"},
16085 { (char *)"GMatrix_fill", _wrap_GMatrix_fill, METH_VARARGS0x0001, (char *)"GMatrix_fill(GMatrix self) -> double"},
16086 { (char *)"GMatrix_min", _wrap_GMatrix_min, METH_VARARGS0x0001, (char *)"GMatrix_min(GMatrix self) -> double"},
16087 { (char *)"GMatrix_max", _wrap_GMatrix_max, METH_VARARGS0x0001, (char *)"GMatrix_max(GMatrix self) -> double"},
16088 { (char *)"GMatrix_sum", _wrap_GMatrix_sum, METH_VARARGS0x0001, (char *)"GMatrix_sum(GMatrix self) -> double"},
16089 { (char *)"GMatrix_transpose", _wrap_GMatrix_transpose, METH_VARARGS0x0001, (char *)"GMatrix_transpose(GMatrix self) -> GMatrix"},
16090 { (char *)"GMatrix_invert", _wrap_GMatrix_invert, METH_VARARGS0x0001, (char *)"GMatrix_invert(GMatrix self) -> GMatrix"},
16091 { (char *)"GMatrix_solve", _wrap_GMatrix_solve, METH_VARARGS0x0001, (char *)"GMatrix_solve(GMatrix self, GVector vector) -> GVector"},
16092 { (char *)"GMatrix_abs", _wrap_GMatrix_abs, METH_VARARGS0x0001, (char *)"GMatrix_abs(GMatrix self) -> GMatrix"},
16093 { (char *)"GMatrix_extract_lower_triangle", _wrap_GMatrix_extract_lower_triangle, METH_VARARGS0x0001, (char *)"GMatrix_extract_lower_triangle(GMatrix self) -> GMatrix"},
16094 { (char *)"GMatrix_extract_upper_triangle", _wrap_GMatrix_extract_upper_triangle, METH_VARARGS0x0001, (char *)"GMatrix_extract_upper_triangle(GMatrix self) -> GMatrix"},
16095 { (char *)"GMatrix_eulerx", _wrap_GMatrix_eulerx, METH_VARARGS0x0001, (char *)"GMatrix_eulerx(GMatrix self, double const & angle)"},
16096 { (char *)"GMatrix_eulery", _wrap_GMatrix_eulery, METH_VARARGS0x0001, (char *)"GMatrix_eulery(GMatrix self, double const & angle)"},
16097 { (char *)"GMatrix_eulerz", _wrap_GMatrix_eulerz, METH_VARARGS0x0001, (char *)"GMatrix_eulerz(GMatrix self, double const & angle)"},
16098 { (char *)"GMatrix___getitem__", _wrap_GMatrix___getitem__, METH_VARARGS0x0001, (char *)"GMatrix___getitem__(GMatrix self, int [2] GTuple) -> double"},
16099 { (char *)"GMatrix___setitem__", _wrap_GMatrix___setitem__, METH_VARARGS0x0001, (char *)"GMatrix___setitem__(GMatrix self, int [2] GTuple, double value)"},
16100 { (char *)"GMatrix___mul__", _wrap_GMatrix___mul__, METH_VARARGS0x0001, (char *)"\n"
16101 "__mul__(GVector vector) -> GVector\n"
16102 "__mul__(GMatrix matrix) -> GMatrix\n"
16103 "GMatrix___mul__(GMatrix self, double const & scalar) -> GMatrix\n"
16104 ""},
16105 { (char *)"GMatrix___div__", _wrap_GMatrix___div__, METH_VARARGS0x0001, (char *)"GMatrix___div__(GMatrix self, double const & scalar) -> GMatrix"},
16106 { (char *)"GMatrix_copy", _wrap_GMatrix_copy, METH_VARARGS0x0001, (char *)"GMatrix_copy(GMatrix self) -> GMatrix"},
16107 { (char *)"GMatrix_set", _wrap_GMatrix_set, METH_VARARGS0x0001, (char *)"GMatrix_set(GMatrix self, double const & value) -> GMatrix"},
16108 { (char *)"GMatrix_swigregister", GMatrix_swigregister, METH_VARARGS0x0001, NULL__null},
16109 { (char *)"new_GMatrixSparse", _wrap_new_GMatrixSparse, METH_VARARGS0x0001, (char *)"\n"
16110 "GMatrixSparse()\n"
16111 "GMatrixSparse(int const & rows, int const & columns, int const & elements=0)\n"
16112 "GMatrixSparse(int const & rows, int const & columns)\n"
16113 "GMatrixSparse(GMatrix matrix)\n"
16114 "GMatrixSparse(GMatrixSparse matrix)\n"
16115 "new_GMatrixSparse(GMatrixSymmetric matrix) -> GMatrixSparse\n"
16116 ""},
16117 { (char *)"delete_GMatrixSparse", _wrap_delete_GMatrixSparse, METH_VARARGS0x0001, (char *)"delete_GMatrixSparse(GMatrixSparse self)"},
16118 { (char *)"GMatrixSparse___eq__", _wrap_GMatrixSparse___eq__, METH_VARARGS0x0001, (char *)"GMatrixSparse___eq__(GMatrixSparse self, GMatrixSparse matrix) -> bool"},
16119 { (char *)"GMatrixSparse___ne__", _wrap_GMatrixSparse___ne__, METH_VARARGS0x0001, (char *)"GMatrixSparse___ne__(GMatrixSparse self, GMatrixSparse matrix) -> bool"},
16120 { (char *)"GMatrixSparse___add__", _wrap_GMatrixSparse___add__, METH_VARARGS0x0001, (char *)"GMatrixSparse___add__(GMatrixSparse self, GMatrixSparse matrix) -> GMatrixSparse"},
16121 { (char *)"GMatrixSparse___sub__", _wrap_GMatrixSparse___sub__, METH_VARARGS0x0001, (char *)"GMatrixSparse___sub__(GMatrixSparse self, GMatrixSparse matrix) -> GMatrixSparse"},
16122 { (char *)"GMatrixSparse___neg__", _wrap_GMatrixSparse___neg__, METH_VARARGS0x0001, (char *)"GMatrixSparse___neg__(GMatrixSparse self) -> GMatrixSparse"},
16123 { (char *)"GMatrixSparse___iadd__", _wrap_GMatrixSparse___iadd__, METH_VARARGS0x0001, (char *)"GMatrixSparse___iadd__(GMatrixSparse self, GMatrixSparse matrix) -> GMatrixSparse"},
16124 { (char *)"GMatrixSparse___isub__", _wrap_GMatrixSparse___isub__, METH_VARARGS0x0001, (char *)"GMatrixSparse___isub__(GMatrixSparse self, GMatrixSparse matrix) -> GMatrixSparse"},
16125 { (char *)"GMatrixSparse___imul__", _wrap_GMatrixSparse___imul__, METH_VARARGS0x0001, (char *)"\n"
16126 "__imul__(GMatrixSparse matrix) -> GMatrixSparse\n"
16127 "GMatrixSparse___imul__(GMatrixSparse self, double const & scalar) -> GMatrixSparse\n"
16128 ""},
16129 { (char *)"GMatrixSparse___idiv__", _wrap_GMatrixSparse___idiv__, METH_VARARGS0x0001, (char *)"GMatrixSparse___idiv__(GMatrixSparse self, double const & scalar) -> GMatrixSparse"},
16130 { (char *)"GMatrixSparse_clear", _wrap_GMatrixSparse_clear, METH_VARARGS0x0001, (char *)"GMatrixSparse_clear(GMatrixSparse self)"},
16131 { (char *)"GMatrixSparse_clone", _wrap_GMatrixSparse_clone, METH_VARARGS0x0001, (char *)"GMatrixSparse_clone(GMatrixSparse self) -> GMatrixSparse"},
16132 { (char *)"GMatrixSparse_at", _wrap_GMatrixSparse_at, METH_VARARGS0x0001, (char *)"GMatrixSparse_at(GMatrixSparse self, int const & row, int const & column) -> double &"},
16133 { (char *)"GMatrixSparse_row", _wrap_GMatrixSparse_row, METH_VARARGS0x0001, (char *)"\n"
16134 "row(int const & row) -> GVector\n"
16135 "GMatrixSparse_row(GMatrixSparse self, int const & row, GVector vector)\n"
16136 ""},
16137 { (char *)"GMatrixSparse_add_to_row", _wrap_GMatrixSparse_add_to_row, METH_VARARGS0x0001, (char *)"GMatrixSparse_add_to_row(GMatrixSparse self, int const & row, GVector vector)"},
16138 { (char *)"GMatrixSparse_fill", _wrap_GMatrixSparse_fill, METH_VARARGS0x0001, (char *)"GMatrixSparse_fill(GMatrixSparse self) -> double"},
16139 { (char *)"GMatrixSparse_min", _wrap_GMatrixSparse_min, METH_VARARGS0x0001, (char *)"GMatrixSparse_min(GMatrixSparse self) -> double"},
16140 { (char *)"GMatrixSparse_max", _wrap_GMatrixSparse_max, METH_VARARGS0x0001, (char *)"GMatrixSparse_max(GMatrixSparse self) -> double"},
16141 { (char *)"GMatrixSparse_sum", _wrap_GMatrixSparse_sum, METH_VARARGS0x0001, (char *)"GMatrixSparse_sum(GMatrixSparse self) -> double"},
16142 { (char *)"GMatrixSparse_column", _wrap_GMatrixSparse_column, METH_VARARGS0x0001, (char *)"\n"
16143 "column(int const & column) -> GVector\n"
16144 "column(int const & column, GVector vector)\n"
16145 "GMatrixSparse_column(GMatrixSparse self, int const & column, double const * values, int const * rows, \n"
16146 " int number)\n"
16147 ""},
16148 { (char *)"GMatrixSparse_add_to_column", _wrap_GMatrixSparse_add_to_column, METH_VARARGS0x0001, (char *)"\n"
16149 "add_to_column(int const & column, GVector vector)\n"
16150 "GMatrixSparse_add_to_column(GMatrixSparse self, int const & column, double const * values, int const * rows, \n"
16151 " int number)\n"
16152 ""},
16153 { (char *)"GMatrixSparse_transpose", _wrap_GMatrixSparse_transpose, METH_VARARGS0x0001, (char *)"GMatrixSparse_transpose(GMatrixSparse self) -> GMatrixSparse"},
16154 { (char *)"GMatrixSparse_invert", _wrap_GMatrixSparse_invert, METH_VARARGS0x0001, (char *)"GMatrixSparse_invert(GMatrixSparse self) -> GMatrixSparse"},
16155 { (char *)"GMatrixSparse_solve", _wrap_GMatrixSparse_solve, METH_VARARGS0x0001, (char *)"GMatrixSparse_solve(GMatrixSparse self, GVector vector) -> GVector"},
16156 { (char *)"GMatrixSparse_abs", _wrap_GMatrixSparse_abs, METH_VARARGS0x0001, (char *)"GMatrixSparse_abs(GMatrixSparse self) -> GMatrixSparse"},
16157 { (char *)"GMatrixSparse_cholesky_decompose", _wrap_GMatrixSparse_cholesky_decompose, METH_VARARGS0x0001, (char *)"\n"
16158 "cholesky_decompose(bool compress=True) -> GMatrixSparse\n"
16159 "GMatrixSparse_cholesky_decompose(GMatrixSparse self) -> GMatrixSparse\n"
16160 ""},
16161 { (char *)"GMatrixSparse_cholesky_solver", _wrap_GMatrixSparse_cholesky_solver, METH_VARARGS0x0001, (char *)"\n"
16162 "cholesky_solver(GVector vector, bool compress=True) -> GVector\n"
16163 "GMatrixSparse_cholesky_solver(GMatrixSparse self, GVector vector) -> GVector\n"
16164 ""},
16165 { (char *)"GMatrixSparse_cholesky_invert", _wrap_GMatrixSparse_cholesky_invert, METH_VARARGS0x0001, (char *)"\n"
16166 "cholesky_invert(bool compress=True) -> GMatrixSparse\n"
16167 "GMatrixSparse_cholesky_invert(GMatrixSparse self) -> GMatrixSparse\n"
16168 ""},
16169 { (char *)"GMatrixSparse_set_mem_block", _wrap_GMatrixSparse_set_mem_block, METH_VARARGS0x0001, (char *)"GMatrixSparse_set_mem_block(GMatrixSparse self, int const & block)"},
16170 { (char *)"GMatrixSparse_stack_init", _wrap_GMatrixSparse_stack_init, METH_VARARGS0x0001, (char *)"\n"
16171 "stack_init(int const & size=0, int const & entries=0)\n"
16172 "stack_init(int const & size=0)\n"
16173 "GMatrixSparse_stack_init(GMatrixSparse self)\n"
16174 ""},
16175 { (char *)"GMatrixSparse_stack_push_column", _wrap_GMatrixSparse_stack_push_column, METH_VARARGS0x0001, (char *)"\n"
16176 "stack_push_column(GVector vector, int const & col) -> int\n"
16177 "GMatrixSparse_stack_push_column(GMatrixSparse self, double const * values, int const * rows, int const & number, \n"
16178 " int const & col) -> int\n"
16179 ""},
16180 { (char *)"GMatrixSparse_stack_flush", _wrap_GMatrixSparse_stack_flush, METH_VARARGS0x0001, (char *)"GMatrixSparse_stack_flush(GMatrixSparse self)"},
16181 { (char *)"GMatrixSparse_stack_destroy", _wrap_GMatrixSparse_stack_destroy, METH_VARARGS0x0001, (char *)"GMatrixSparse_stack_destroy(GMatrixSparse self)"},
16182 { (char *)"GMatrixSparse___getitem__", _wrap_GMatrixSparse___getitem__, METH_VARARGS0x0001, (char *)"GMatrixSparse___getitem__(GMatrixSparse self, int [2] GTuple) -> double"},
16183 { (char *)"GMatrixSparse___setitem__", _wrap_GMatrixSparse___setitem__, METH_VARARGS0x0001, (char *)"GMatrixSparse___setitem__(GMatrixSparse self, int [2] GTuple, double value)"},
16184 { (char *)"GMatrixSparse___mul__", _wrap_GMatrixSparse___mul__, METH_VARARGS0x0001, (char *)"\n"
16185 "__mul__(GVector vector) -> GVector\n"
16186 "__mul__(GMatrixSparse matrix) -> GMatrixSparse\n"
16187 "GMatrixSparse___mul__(GMatrixSparse self, double const & scalar) -> GMatrixSparse\n"
16188 ""},
16189 { (char *)"GMatrixSparse___div__", _wrap_GMatrixSparse___div__, METH_VARARGS0x0001, (char *)"GMatrixSparse___div__(GMatrixSparse self, double const & scalar) -> GMatrixSparse"},
16190 { (char *)"GMatrixSparse_copy", _wrap_GMatrixSparse_copy, METH_VARARGS0x0001, (char *)"GMatrixSparse_copy(GMatrixSparse self) -> GMatrixSparse"},
16191 { (char *)"GMatrixSparse_set", _wrap_GMatrixSparse_set, METH_VARARGS0x0001, (char *)"GMatrixSparse_set(GMatrixSparse self, double const & value) -> GMatrixSparse"},
16192 { (char *)"GMatrixSparse_swigregister", GMatrixSparse_swigregister, METH_VARARGS0x0001, NULL__null},
16193 { (char *)"new_GMatrixSymmetric", _wrap_new_GMatrixSymmetric, METH_VARARGS0x0001, (char *)"\n"
16194 "GMatrixSymmetric()\n"
16195 "GMatrixSymmetric(int const & rows, int const & columns)\n"
16196 "GMatrixSymmetric(GMatrix matrix)\n"
16197 "GMatrixSymmetric(GMatrixSparse matrix)\n"
16198 "new_GMatrixSymmetric(GMatrixSymmetric matrix) -> GMatrixSymmetric\n"
16199 ""},
16200 { (char *)"delete_GMatrixSymmetric", _wrap_delete_GMatrixSymmetric, METH_VARARGS0x0001, (char *)"delete_GMatrixSymmetric(GMatrixSymmetric self)"},
16201 { (char *)"GMatrixSymmetric___add__", _wrap_GMatrixSymmetric___add__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___add__(GMatrixSymmetric self, GMatrixSymmetric matrix) -> GMatrixSymmetric"},
16202 { (char *)"GMatrixSymmetric___sub__", _wrap_GMatrixSymmetric___sub__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___sub__(GMatrixSymmetric self, GMatrixSymmetric matrix) -> GMatrixSymmetric"},
16203 { (char *)"GMatrixSymmetric___neg__", _wrap_GMatrixSymmetric___neg__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___neg__(GMatrixSymmetric self) -> GMatrixSymmetric"},
16204 { (char *)"GMatrixSymmetric___iadd__", _wrap_GMatrixSymmetric___iadd__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___iadd__(GMatrixSymmetric self, GMatrixSymmetric matrix) -> GMatrixSymmetric"},
16205 { (char *)"GMatrixSymmetric___isub__", _wrap_GMatrixSymmetric___isub__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___isub__(GMatrixSymmetric self, GMatrixSymmetric matrix) -> GMatrixSymmetric"},
16206 { (char *)"GMatrixSymmetric___imul__", _wrap_GMatrixSymmetric___imul__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___imul__(GMatrixSymmetric self, double const & scaler) -> GMatrixSymmetric"},
16207 { (char *)"GMatrixSymmetric___idiv__", _wrap_GMatrixSymmetric___idiv__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___idiv__(GMatrixSymmetric self, double const & scalar) -> GMatrixSymmetric"},
16208 { (char *)"GMatrixSymmetric_clear", _wrap_GMatrixSymmetric_clear, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_clear(GMatrixSymmetric self)"},
16209 { (char *)"GMatrixSymmetric_clone", _wrap_GMatrixSymmetric_clone, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_clone(GMatrixSymmetric self) -> GMatrixSymmetric"},
16210 { (char *)"GMatrixSymmetric_at", _wrap_GMatrixSymmetric_at, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_at(GMatrixSymmetric self, int const & row, int const & column) -> double &"},
16211 { (char *)"GMatrixSymmetric_row", _wrap_GMatrixSymmetric_row, METH_VARARGS0x0001, (char *)"\n"
16212 "row(int const & row) -> GVector\n"
16213 "GMatrixSymmetric_row(GMatrixSymmetric self, int const & row, GVector vector)\n"
16214 ""},
16215 { (char *)"GMatrixSymmetric_column", _wrap_GMatrixSymmetric_column, METH_VARARGS0x0001, (char *)"\n"
16216 "column(int const & column) -> GVector\n"
16217 "GMatrixSymmetric_column(GMatrixSymmetric self, int const & column, GVector vector)\n"
16218 ""},
16219 { (char *)"GMatrixSymmetric_add_to_row", _wrap_GMatrixSymmetric_add_to_row, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_add_to_row(GMatrixSymmetric self, int const & row, GVector vector)"},
16220 { (char *)"GMatrixSymmetric_add_to_column", _wrap_GMatrixSymmetric_add_to_column, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_add_to_column(GMatrixSymmetric self, int const & column, GVector vector)"},
16221 { (char *)"GMatrixSymmetric_fill", _wrap_GMatrixSymmetric_fill, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_fill(GMatrixSymmetric self) -> double"},
16222 { (char *)"GMatrixSymmetric_min", _wrap_GMatrixSymmetric_min, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_min(GMatrixSymmetric self) -> double"},
16223 { (char *)"GMatrixSymmetric_max", _wrap_GMatrixSymmetric_max, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_max(GMatrixSymmetric self) -> double"},
16224 { (char *)"GMatrixSymmetric_sum", _wrap_GMatrixSymmetric_sum, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_sum(GMatrixSymmetric self) -> double"},
16225 { (char *)"GMatrixSymmetric_transpose", _wrap_GMatrixSymmetric_transpose, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_transpose(GMatrixSymmetric self) -> GMatrixSymmetric"},
16226 { (char *)"GMatrixSymmetric_invert", _wrap_GMatrixSymmetric_invert, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_invert(GMatrixSymmetric self) -> GMatrixSymmetric"},
16227 { (char *)"GMatrixSymmetric_solve", _wrap_GMatrixSymmetric_solve, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_solve(GMatrixSymmetric self, GVector vector) -> GVector"},
16228 { (char *)"GMatrixSymmetric_abs", _wrap_GMatrixSymmetric_abs, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_abs(GMatrixSymmetric self) -> GMatrixSymmetric"},
16229 { (char *)"GMatrixSymmetric_extract_lower_triangle", _wrap_GMatrixSymmetric_extract_lower_triangle, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_extract_lower_triangle(GMatrixSymmetric self) -> GMatrix"},
16230 { (char *)"GMatrixSymmetric_extract_upper_triangle", _wrap_GMatrixSymmetric_extract_upper_triangle, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_extract_upper_triangle(GMatrixSymmetric self) -> GMatrix"},
16231 { (char *)"GMatrixSymmetric_cholesky_decompose", _wrap_GMatrixSymmetric_cholesky_decompose, METH_VARARGS0x0001, (char *)"\n"
16232 "cholesky_decompose(bool compress=True) -> GMatrixSymmetric\n"
16233 "GMatrixSymmetric_cholesky_decompose(GMatrixSymmetric self) -> GMatrixSymmetric\n"
16234 ""},
16235 { (char *)"GMatrixSymmetric_cholesky_solver", _wrap_GMatrixSymmetric_cholesky_solver, METH_VARARGS0x0001, (char *)"\n"
16236 "cholesky_solver(GVector vector, bool compress=True) -> GVector\n"
16237 "GMatrixSymmetric_cholesky_solver(GMatrixSymmetric self, GVector vector) -> GVector\n"
16238 ""},
16239 { (char *)"GMatrixSymmetric_cholesky_invert", _wrap_GMatrixSymmetric_cholesky_invert, METH_VARARGS0x0001, (char *)"\n"
16240 "cholesky_invert(bool compress=True) -> GMatrixSymmetric\n"
16241 "GMatrixSymmetric_cholesky_invert(GMatrixSymmetric self) -> GMatrixSymmetric\n"
16242 ""},
16243 { (char *)"GMatrixSymmetric___getitem__", _wrap_GMatrixSymmetric___getitem__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___getitem__(GMatrixSymmetric self, int [2] GTuple) -> double"},
16244 { (char *)"GMatrixSymmetric___setitem__", _wrap_GMatrixSymmetric___setitem__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___setitem__(GMatrixSymmetric self, int [2] GTuple, double value)"},
16245 { (char *)"GMatrixSymmetric___mul__", _wrap_GMatrixSymmetric___mul__, METH_VARARGS0x0001, (char *)"\n"
16246 "__mul__(GVector vector) -> GVector\n"
16247 "__mul__(GMatrixSymmetric matrix) -> GMatrixSymmetric\n"
16248 "GMatrixSymmetric___mul__(GMatrixSymmetric self, double const & scalar) -> GMatrixSymmetric\n"
16249 ""},
16250 { (char *)"GMatrixSymmetric___div__", _wrap_GMatrixSymmetric___div__, METH_VARARGS0x0001, (char *)"GMatrixSymmetric___div__(GMatrixSymmetric self, double const & scalar) -> GMatrixSymmetric"},
16251 { (char *)"GMatrixSymmetric_copy", _wrap_GMatrixSymmetric_copy, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_copy(GMatrixSymmetric self) -> GMatrixSymmetric"},
16252 { (char *)"GMatrixSymmetric_set", _wrap_GMatrixSymmetric_set, METH_VARARGS0x0001, (char *)"GMatrixSymmetric_set(GMatrixSymmetric self, double const & value) -> GMatrixSymmetric"},
16253 { (char *)"GMatrixSymmetric_swigregister", GMatrixSymmetric_swigregister, METH_VARARGS0x0001, NULL__null},
16254 { NULL__null, NULL__null, 0, NULL__null }
16255};
16256
16257
16258/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16259
16260static void *_p_GMatrixSparseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16261 return (void *)((GBase *) (GMatrixBase *) ((GMatrixSparse *) x));
16262}
16263static void *_p_GVectorTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16264 return (void *)((GBase *) ((GVector *) x));
16265}
16266static void *_p_GMatrixBaseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16267 return (void *)((GBase *) ((GMatrixBase *) x));
16268}
16269static void *_p_GMatrixTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16270 return (void *)((GBase *) (GMatrixBase *) ((GMatrix *) x));
16271}
16272static void *_p_GMatrixSymmetricTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16273 return (void *)((GBase *) (GMatrixBase *) ((GMatrixSymmetric *) x));
16274}
16275static void *_p_GMatrixSparseTo_p_GMatrixBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16276 return (void *)((GMatrixBase *) ((GMatrixSparse *) x));
16277}
16278static void *_p_GMatrixTo_p_GMatrixBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16279 return (void *)((GMatrixBase *) ((GMatrix *) x));
16280}
16281static void *_p_GMatrixSymmetricTo_p_GMatrixBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
16282 return (void *)((GMatrixBase *) ((GMatrixSymmetric *) x));
16283}
16284static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
16285static swig_type_info _swigt__p_GMatrix = {"_p_GMatrix", "GMatrix *", 0, 0, (void*)0, 0};
16286static swig_type_info _swigt__p_GMatrixBase = {"_p_GMatrixBase", "GMatrixBase *", 0, 0, (void*)0, 0};
16287static swig_type_info _swigt__p_GMatrixSparse = {"_p_GMatrixSparse", "GMatrixSparse *", 0, 0, (void*)0, 0};
16288static swig_type_info _swigt__p_GMatrixSymmetric = {"_p_GMatrixSymmetric", "GMatrixSymmetric *", 0, 0, (void*)0, 0};
16289static swig_type_info _swigt__p_GVector = {"_p_GVector", "GVector *", 0, 0, (void*)0, 0};
16290static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
16291static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
16292static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
16293static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
16294static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
16295
16296static swig_type_info *swig_type_initial[] = {
16297 &_swigt__p_GBase,
16298 &_swigt__p_GMatrix,
16299 &_swigt__p_GMatrixBase,
16300 &_swigt__p_GMatrixSparse,
16301 &_swigt__p_GMatrixSymmetric,
16302 &_swigt__p_GVector,
16303 &_swigt__p_char,
16304 &_swigt__p_double,
16305 &_swigt__p_int,
16306 &_swigt__p_std__invalid_argument,
16307 &_swigt__p_swig__SwigPyIterator,
16308};
16309
16310static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GMatrixSparse, _p_GMatrixSparseTo_p_GBase, 0, 0}, {&_swigt__p_GVector, _p_GVectorTo_p_GBase, 0, 0}, {&_swigt__p_GMatrixBase, _p_GMatrixBaseTo_p_GBase, 0, 0}, {&_swigt__p_GMatrix, _p_GMatrixTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GMatrixSymmetric, _p_GMatrixSymmetricTo_p_GBase, 0, 0},{0, 0, 0, 0}};
16311static swig_cast_info _swigc__p_GMatrix[] = { {&_swigt__p_GMatrix, 0, 0, 0},{0, 0, 0, 0}};
16312static swig_cast_info _swigc__p_GMatrixBase[] = { {&_swigt__p_GMatrixSparse, _p_GMatrixSparseTo_p_GMatrixBase, 0, 0}, {&_swigt__p_GMatrixBase, 0, 0, 0}, {&_swigt__p_GMatrix, _p_GMatrixTo_p_GMatrixBase, 0, 0}, {&_swigt__p_GMatrixSymmetric, _p_GMatrixSymmetricTo_p_GMatrixBase, 0, 0},{0, 0, 0, 0}};
16313static swig_cast_info _swigc__p_GMatrixSparse[] = { {&_swigt__p_GMatrixSparse, 0, 0, 0},{0, 0, 0, 0}};
16314static swig_cast_info _swigc__p_GMatrixSymmetric[] = { {&_swigt__p_GMatrixSymmetric, 0, 0, 0},{0, 0, 0, 0}};
16315static swig_cast_info _swigc__p_GVector[] = { {&_swigt__p_GVector, 0, 0, 0},{0, 0, 0, 0}};
16316static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
16317static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
16318static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
16319static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
16320static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
16321
16322static swig_cast_info *swig_cast_initial[] = {
16323 _swigc__p_GBase,
16324 _swigc__p_GMatrix,
16325 _swigc__p_GMatrixBase,
16326 _swigc__p_GMatrixSparse,
16327 _swigc__p_GMatrixSymmetric,
16328 _swigc__p_GVector,
16329 _swigc__p_char,
16330 _swigc__p_double,
16331 _swigc__p_int,
16332 _swigc__p_std__invalid_argument,
16333 _swigc__p_swig__SwigPyIterator,
16334};
16335
16336
16337/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16338
16339static swig_const_info swig_const_table[] = {
16340{0, 0, 0, 0.0, 0, 0}};
16341
16342#ifdef __cplusplus199711L
16343}
16344#endif
16345/* -----------------------------------------------------------------------------
16346 * Type initialization:
16347 * This problem is tough by the requirement that no dynamic
16348 * memory is used. Also, since swig_type_info structures store pointers to
16349 * swig_cast_info structures and swig_cast_info structures store pointers back
16350 * to swig_type_info structures, we need some lookup code at initialization.
16351 * The idea is that swig generates all the structures that are needed.
16352 * The runtime then collects these partially filled structures.
16353 * The SWIG_InitializeModule function takes these initial arrays out of
16354 * swig_module, and does all the lookup, filling in the swig_module.types
16355 * array with the correct data and linking the correct swig_cast_info
16356 * structures together.
16357 *
16358 * The generated swig_type_info structures are assigned staticly to an initial
16359 * array. We just loop through that array, and handle each type individually.
16360 * First we lookup if this type has been already loaded, and if so, use the
16361 * loaded structure instead of the generated one. Then we have to fill in the
16362 * cast linked list. The cast data is initially stored in something like a
16363 * two-dimensional array. Each row corresponds to a type (there are the same
16364 * number of rows as there are in the swig_type_initial array). Each entry in
16365 * a column is one of the swig_cast_info structures for that type.
16366 * The cast_initial array is actually an array of arrays, because each row has
16367 * a variable number of columns. So to actually build the cast linked list,
16368 * we find the array of casts associated with the type, and loop through it
16369 * adding the casts to the list. The one last trick we need to do is making
16370 * sure the type pointer in the swig_cast_info struct is correct.
16371 *
16372 * First off, we lookup the cast->type name to see if it is already loaded.
16373 * There are three cases to handle:
16374 * 1) If the cast->type has already been loaded AND the type we are adding
16375 * casting info to has not been loaded (it is in this module), THEN we
16376 * replace the cast->type pointer with the type pointer that has already
16377 * been loaded.
16378 * 2) If BOTH types (the one we are adding casting info to, and the
16379 * cast->type) are loaded, THEN the cast info has already been loaded by
16380 * the previous module so we just ignore it.
16381 * 3) Finally, if cast->type has not already been loaded, then we add that
16382 * swig_cast_info to the linked list (because the cast->type) pointer will
16383 * be correct.
16384 * ----------------------------------------------------------------------------- */
16385
16386#ifdef __cplusplus199711L
16387extern "C" {
16388#if 0
16389} /* c-mode */
16390#endif
16391#endif
16392
16393#if 0
16394#define SWIGRUNTIME_DEBUG
16395#endif
16396
16397
16398SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
16399SWIG_InitializeModule(void *clientdata) {
16400 size_t i;
16401 swig_module_info *module_head, *iter;
16402 int found, init;
16403
16404 /* check to see if the circular list has been setup, if not, set it up */
16405 if (swig_module.next==0) {
16406 /* Initialize the swig_module */
16407 swig_module.type_initial = swig_type_initial;
16408 swig_module.cast_initial = swig_cast_initial;
16409 swig_module.next = &swig_module;
16410 init = 1;
16411 } else {
16412 init = 0;
16413 }
16414
16415 /* Try and load any already created modules */
16416 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
16417 if (!module_head) {
16418 /* This is the first module loaded for this interpreter */
16419 /* so set the swig module into the interpreter */
16420 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
16421 module_head = &swig_module;
Value stored to 'module_head' is never read
16422 } else {
16423 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
16424 found=0;
16425 iter=module_head;
16426 do {
16427 if (iter==&swig_module) {
16428 found=1;
16429 break;
16430 }
16431 iter=iter->next;
16432 } while (iter!= module_head);
16433
16434 /* if the is found in the list, then all is done and we may leave */
16435 if (found) return;
16436 /* otherwise we must add out module into the list */
16437 swig_module.next = module_head->next;
16438 module_head->next = &swig_module;
16439 }
16440
16441 /* When multiple interpreters are used, a module could have already been initialized in
16442 a different interpreter, but not yet have a pointer in this interpreter.
16443 In this case, we do not want to continue adding types... everything should be
16444 set up already */
16445 if (init == 0) return;
16446
16447 /* Now work on filling in swig_module.types */
16448#ifdef SWIGRUNTIME_DEBUG
16449 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
16450#endif
16451 for (i = 0; i < swig_module.size; ++i) {
16452 swig_type_info *type = 0;
16453 swig_type_info *ret;
16454 swig_cast_info *cast;
16455
16456#ifdef SWIGRUNTIME_DEBUG
16457 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
16458#endif
16459
16460 /* if there is another module already loaded */
16461 if (swig_module.next != &swig_module) {
16462 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
16463 }
16464 if (type) {
16465 /* Overwrite clientdata field */
16466#ifdef SWIGRUNTIME_DEBUG
16467 printf("SWIG_InitializeModule: found type %s\n", type->name);
16468#endif
16469 if (swig_module.type_initial[i]->clientdata) {
16470 type->clientdata = swig_module.type_initial[i]->clientdata;
16471#ifdef SWIGRUNTIME_DEBUG
16472 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
16473#endif
16474 }
16475 } else {
16476 type = swig_module.type_initial[i];
16477 }
16478
16479 /* Insert casting types */
16480 cast = swig_module.cast_initial[i];
16481 while (cast->type) {
16482 /* Don't need to add information already in the list */
16483 ret = 0;
16484#ifdef SWIGRUNTIME_DEBUG
16485 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
16486#endif
16487 if (swig_module.next != &swig_module) {
16488 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
16489#ifdef SWIGRUNTIME_DEBUG
16490 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
16491#endif
16492 }
16493 if (ret) {
16494 if (type == swig_module.type_initial[i]) {
16495#ifdef SWIGRUNTIME_DEBUG
16496 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
16497#endif
16498 cast->type = ret;
16499 ret = 0;
16500 } else {
16501 /* Check for casting already in the list */
16502 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
16503#ifdef SWIGRUNTIME_DEBUG
16504 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
16505#endif
16506 if (!ocast) ret = 0;
16507 }
16508 }
16509
16510 if (!ret) {
16511#ifdef SWIGRUNTIME_DEBUG
16512 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
16513#endif
16514 if (type->cast) {
16515 type->cast->prev = cast;
16516 cast->next = type->cast;
16517 }
16518 type->cast = cast;
16519 }
16520 cast++;
16521 }
16522 /* Set entry in modules->types array equal to the type */
16523 swig_module.types[i] = type;
16524 }
16525 swig_module.types[i] = 0;
16526
16527#ifdef SWIGRUNTIME_DEBUG
16528 printf("**** SWIG_InitializeModule: Cast List ******\n");
16529 for (i = 0; i < swig_module.size; ++i) {
16530 int j = 0;
16531 swig_cast_info *cast = swig_module.cast_initial[i];
16532 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
16533 while (cast->type) {
16534 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
16535 cast++;
16536 ++j;
16537 }
16538 printf("---- Total casts: %d\n",j);
16539 }
16540 printf("**** SWIG_InitializeModule: Cast List ******\n");
16541#endif
16542}
16543
16544/* This function will propagate the clientdata field of type to
16545* any new swig_type_info structures that have been added into the list
16546* of equivalent types. It is like calling
16547* SWIG_TypeClientData(type, clientdata) a second time.
16548*/
16549SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
16550SWIG_PropagateClientData(void) {
16551 size_t i;
16552 swig_cast_info *equiv;
16553 static int init_run = 0;
16554
16555 if (init_run) return;
16556 init_run = 1;
16557
16558 for (i = 0; i < swig_module.size; i++) {
16559 if (swig_module.types[i]->clientdata) {
16560 equiv = swig_module.types[i]->cast;
16561 while (equiv) {
16562 if (!equiv->converter) {
16563 if (equiv->type && !equiv->type->clientdata)
16564 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
16565 }
16566 equiv = equiv->next;
16567 }
16568 }
16569 }
16570}
16571
16572#ifdef __cplusplus199711L
16573#if 0
16574{
16575 /* c-mode */
16576#endif
16577}
16578#endif
16579
16580
16581
16582#ifdef __cplusplus199711L
16583extern "C" {
16584#endif
16585
16586 /* Python-specific SWIG API */
16587#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
16588#define SWIG_addvarlink(p, name, get_attr, set_attr)SWIG_Python_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
16589#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
16590
16591 /* -----------------------------------------------------------------------------
16592 * global variable support code.
16593 * ----------------------------------------------------------------------------- */
16594
16595 typedef struct swig_globalvar {
16596 char *name; /* Name of global variable */
16597 PyObject *(*get_attr)(void); /* Return the current value */
16598 int (*set_attr)(PyObject *); /* Set the value */
16599 struct swig_globalvar *next;
16600 } swig_globalvar;
16601
16602 typedef struct swig_varlinkobject {
16603 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
16604 swig_globalvar *vars;
16605 } swig_varlinkobject;
16606
16607 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
16608 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
16609#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
16610 return PyUnicode_InternFromString("<Swig global variables>");
16611#else
16612 return PyString_FromString("<Swig global variables>");
16613#endif
16614 }
16615
16616 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
16617 swig_varlink_str(swig_varlinkobject *v) {
16618#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
16619 PyObject *str = PyUnicode_InternFromString("(");
16620 PyObject *tail;
16621 PyObject *joined;
16622 swig_globalvar *var;
16623 for (var = v->vars; var; var=var->next) {
16624 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
16625 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
16626 Py_DecRef(str);
16627 Py_DecRef(tail);
16628 str = joined;
16629 if (var->next) {
16630 tail = PyUnicode_InternFromString(", ");
16631 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
16632 Py_DecRef(str);
16633 Py_DecRef(tail);
16634 str = joined;
16635 }
16636 }
16637 tail = PyUnicode_InternFromString(")");
16638 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
16639 Py_DecRef(str);
16640 Py_DecRef(tail);
16641 str = joined;
16642#else
16643 PyObject *str = PyString_FromString("(");
16644 swig_globalvar *var;
16645 for (var = v->vars; var; var=var->next) {
16646 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
16647 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
16648 }
16649 PyString_ConcatAndDel(&str,PyString_FromString(")"));
16650#endif
16651 return str;
16652 }
16653
16654 SWIGINTERNstatic __attribute__ ((__unused__)) int
16655 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
16656 char *tmp;
16657 PyObject *str = swig_varlink_str(v);
16658 fprintf(fp,"Swig global variables ");
16659 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
16660 SWIG_Python_str_DelForPy3(tmp);
16661 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
16662 return 0;
16663 }
16664
16665 SWIGINTERNstatic __attribute__ ((__unused__)) void
16666 swig_varlink_dealloc(swig_varlinkobject *v) {
16667 swig_globalvar *var = v->vars;
16668 while (var) {
16669 swig_globalvar *n = var->next;
16670 free(var->name);
16671 free(var);
16672 var = n;
16673 }
16674 }
16675
16676 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
16677 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
16678 PyObject *res = NULL__null;
16679 swig_globalvar *var = v->vars;
16680 while (var) {
16681 if (strcmp(var->name,n) == 0) {
16682 res = (*var->get_attr)();
16683 break;
16684 }
16685 var = var->next;
16686 }
16687 if (res == NULL__null && !PyErr_Occurred()) {
16688 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
16689 }
16690 return res;
16691 }
16692
16693 SWIGINTERNstatic __attribute__ ((__unused__)) int
16694 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
16695 int res = 1;
16696 swig_globalvar *var = v->vars;
16697 while (var) {
16698 if (strcmp(var->name,n) == 0) {
16699 res = (*var->set_attr)(p);
16700 break;
16701 }
16702 var = var->next;
16703 }
16704 if (res == 1 && !PyErr_Occurred()) {
16705 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
16706 }
16707 return res;
16708 }
16709
16710 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
16711 swig_varlink_type(void) {
16712 static char varlink__doc__[] = "Swig var link object";
16713 static PyTypeObject varlink_type;
16714 static int type_init = 0;
16715 if (!type_init) {
16716 const PyTypeObject tmp = {
16717 /* PyObject header changed in Python 3 */
16718#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
16719 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
16720#else
16721 PyObject_HEAD_INIT(NULL)1, __null,
16722 0, /* ob_size */
16723#endif
16724 (char *)"swigvarlink", /* tp_name */
16725 sizeof(swig_varlinkobject), /* tp_basicsize */
16726 0, /* tp_itemsize */
16727 (destructor) swig_varlink_dealloc, /* tp_dealloc */
16728 (printfunc) swig_varlink_print, /* tp_print */
16729 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
16730 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
16731 0, /* tp_compare */
16732 (reprfunc) swig_varlink_repr, /* tp_repr */
16733 0, /* tp_as_number */
16734 0, /* tp_as_sequence */
16735 0, /* tp_as_mapping */
16736 0, /* tp_hash */
16737 0, /* tp_call */
16738 (reprfunc) swig_varlink_str, /* tp_str */
16739 0, /* tp_getattro */
16740 0, /* tp_setattro */
16741 0, /* tp_as_buffer */
16742 0, /* tp_flags */
16743 varlink__doc__, /* tp_doc */
16744 0, /* tp_traverse */
16745 0, /* tp_clear */
16746 0, /* tp_richcompare */
16747 0, /* tp_weaklistoffset */
16748#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
16749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
16750#endif
16751#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
16752 0, /* tp_del */
16753#endif
16754#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
16755 0, /* tp_version */
16756#endif
16757#ifdef COUNT_ALLOCS
16758 0,0,0,0 /* tp_alloc -> tp_next */
16759#endif
16760 };
16761 varlink_type = tmp;
16762 type_init = 1;
16763#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
16764 varlink_type.ob_type = &PyType_Type;
16765#else
16766 if (PyType_Ready(&varlink_type) < 0)
16767 return NULL__null;
16768#endif
16769 }
16770 return &varlink_type;
16771 }
16772
16773 /* Create a variable linking object for use later */
16774 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
16775 SWIG_Python_newvarlink(void) {
16776 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type())( (swig_varlinkobject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (swig_varlink_type())->tp_basicsize ) ), (swig_varlink_type
())) )
;
16777 if (result) {
16778 result->vars = 0;
16779 }
16780 return ((PyObject*) result);
16781 }
16782
16783 SWIGINTERNstatic __attribute__ ((__unused__)) void
16784 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
16785 swig_varlinkobject *v = (swig_varlinkobject *) p;
16786 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
16787 if (gv) {
16788 size_t size = strlen(name)+1;
16789 gv->name = (char *)malloc(size);
16790 if (gv->name) {
16791 strncpy(gv->name,name,size);
16792 gv->get_attr = get_attr;
16793 gv->set_attr = set_attr;
16794 gv->next = v->vars;
16795 }
16796 }
16797 v->vars = gv;
16798 }
16799
16800 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
16801 SWIG_globals(void) {
16802 static PyObject *_SWIG_globals = 0;
16803 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
16804 return _SWIG_globals;
16805 }
16806
16807 /* -----------------------------------------------------------------------------
16808 * constants/methods manipulation
16809 * ----------------------------------------------------------------------------- */
16810
16811 /* Install Constants */
16812 SWIGINTERNstatic __attribute__ ((__unused__)) void
16813 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
16814 PyObject *obj = 0;
16815 size_t i;
16816 for (i = 0; constants[i].type; ++i) {
16817 switch(constants[i].type) {
16818 case SWIG_PY_POINTER4:
16819 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
16820 break;
16821 case SWIG_PY_BINARY5:
16822 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
16823 break;
16824 default:
16825 obj = 0;
16826 break;
16827 }
16828 if (obj) {
16829 PyDict_SetItemString(d, constants[i].name, obj);
16830 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
16831 }
16832 }
16833 }
16834
16835 /* -----------------------------------------------------------------------------*/
16836 /* Fix SwigMethods to carry the callback ptrs when needed */
16837 /* -----------------------------------------------------------------------------*/
16838
16839 SWIGINTERNstatic __attribute__ ((__unused__)) void
16840 SWIG_Python_FixMethods(PyMethodDef *methods,
16841 swig_const_info *const_table,
16842 swig_type_info **types,
16843 swig_type_info **types_initial) {
16844 size_t i;
16845 for (i = 0; methods[i].ml_name; ++i) {
16846 const char *c = methods[i].ml_doc;
16847 if (c && (c = strstr(c, "swig_ptr: "))) {
16848 int j;
16849 swig_const_info *ci = 0;
16850 const char *name = c + 10;
16851 for (j = 0; const_table[j].type; ++j) {
16852 if (strncmp(const_table[j].name, name,
16853 strlen(const_table[j].name)) == 0) {
16854 ci = &(const_table[j]);
16855 break;
16856 }
16857 }
16858 if (ci) {
16859 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
16860 if (ptr) {
16861 size_t shift = (ci->ptype) - types;
16862 swig_type_info *ty = types_initial[shift];
16863 size_t ldoc = (c - methods[i].ml_doc);
16864 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
16865 char *ndoc = (char*)malloc(ldoc + lptr + 10);
16866 if (ndoc) {
16867 char *buff = ndoc;
16868 strncpy(buff, methods[i].ml_doc, ldoc);
16869 buff += ldoc;
16870 strncpy(buff, "swig_ptr: ", 10);
16871 buff += 10;
16872 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
16873 methods[i].ml_doc = ndoc;
16874 }
16875 }
16876 }
16877 }
16878 }
16879 }
16880
16881#ifdef __cplusplus199711L
16882}
16883#endif
16884
16885/* -----------------------------------------------------------------------------*
16886 * Partial Init method
16887 * -----------------------------------------------------------------------------*/
16888
16889#ifdef __cplusplus199711L
16890extern "C"
16891#endif
16892
16893SWIGEXPORT__attribute__ ((visibility("default")))
16894#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
16895PyObject*
16896#else
16897void
16898#endif
16899SWIG_initinit_linalg(void) {
16900 PyObject *m, *d, *md;
16901#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
16902 static struct PyModuleDef SWIG_module = {
16903# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
16904 PyModuleDef_HEAD_INIT,
16905# else
16906 {
16907 PyObject_HEAD_INIT(NULL)1, __null,
16908 NULL__null, /* m_init */
16909 0, /* m_index */
16910 NULL__null, /* m_copy */
16911 },
16912# endif
16913 (char *) SWIG_name"_linalg",
16914 NULL__null,
16915 -1,
16916 SwigMethods,
16917 NULL__null,
16918 NULL__null,
16919 NULL__null,
16920 NULL__null
16921 };
16922#endif
16923
16924#if defined(SWIGPYTHON_BUILTIN)
16925 static SwigPyClientData SwigPyObject_clientdata = {
16926 0, 0, 0, 0, 0, 0, 0
16927 };
16928 static PyGetSetDef this_getset_def = {
16929 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
16930 };
16931 static SwigPyGetSet thisown_getset_closure = {
16932 (PyCFunction) SwigPyObject_own,
16933 (PyCFunction) SwigPyObject_own
16934 };
16935 static PyGetSetDef thisown_getset_def = {
16936 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
16937 };
16938 PyObject *metatype_args;
16939 PyTypeObject *builtin_pytype;
16940 int builtin_base_count;
16941 swig_type_info *builtin_basetype;
16942 PyObject *tuple;
16943 PyGetSetDescrObject *static_getset;
16944 PyTypeObject *metatype;
16945 SwigPyClientData *cd;
16946 PyObject *public_interface, *public_symbol;
16947 PyObject *this_descr;
16948 PyObject *thisown_descr;
16949 int i;
16950
16951 (void)builtin_pytype;
16952 (void)builtin_base_count;
16953 (void)builtin_basetype;
16954 (void)tuple;
16955 (void)static_getset;
16956
16957 /* metatype is used to implement static member variables. */
16958 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
16959 assert(metatype_args)((void)0);
16960 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
16961 assert(metatype)((void)0);
16962 Py_DECREF(metatype_args)do { if ( --((PyObject*)(metatype_args))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(metatype_args)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(metatype_args))))
; } while (0)
;
16963 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
16964 assert(PyType_Ready(metatype) >= 0)((void)0);
16965#endif
16966
16967 /* Fix SwigMethods to carry the callback ptrs when needed */
16968 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
16969
16970#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
16971 m = PyModule_Create(&SWIG_module);
16972#else
16973 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_linalg", SwigMethods, (char *)__null
, (PyObject *)__null, 1013)
;
16974#endif
16975 md = d = PyModule_GetDict(m);
16976 (void)md;
16977
16978 SWIG_InitializeModule(0);
16979
16980#ifdef SWIGPYTHON_BUILTIN
16981 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
16982 assert(SwigPyObject_stype)((void)0);
16983 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
16984 if (!cd) {
16985 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
16986 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
16987 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
16988 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
16989# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
16990 return NULL__null;
16991# else
16992 return;
16993# endif
16994 }
16995
16996 /* All objects have a 'this' attribute */
16997 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
16998 (void)this_descr;
16999
17000 /* All objects have a 'thisown' attribute */
17001 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
17002 (void)thisown_descr;
17003
17004 public_interface = PyList_New(0);
17005 public_symbol = 0;
17006 (void)public_symbol;
17007
17008 PyDict_SetItemString(md, "__all__", public_interface);
17009 Py_DECREF(public_interface)do { if ( --((PyObject*)(public_interface))->ob_refcnt != 0
) ; else ( (*(((PyObject*)((PyObject *)(public_interface)))->
ob_type)->tp_dealloc)((PyObject *)((PyObject *)(public_interface
)))); } while (0)
;
17010 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
17011 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
17012 for (i = 0; swig_const_table[i].name != 0; ++i)
17013 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
17014#endif
17015
17016 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
17017
17018#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
17019 return m;
17020#else
17021 return;
17022#endif
17023}
17024