1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.0
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  *  This section contains generic SWIG labels for method/variable
12  *  declarations/attributes, and other compiler dependent labels.
13  * ----------------------------------------------------------------------------- */
14 
15 /* template workaround for compilers that cannot correctly implement the C++ standard */
16 #ifndef SWIGTEMPLATEDISAMBIGUATOR
17 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
18 #  define SWIGTEMPLATEDISAMBIGUATOR template
19 # elif defined(__HP_aCC)
20 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
21 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
22 #  define SWIGTEMPLATEDISAMBIGUATOR template
23 # else
24 #  define SWIGTEMPLATEDISAMBIGUATOR
25 # endif
26 #endif
27 
28 /* inline attribute */
29 #ifndef SWIGINLINE
30 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
31 #   define SWIGINLINE inline
32 # else
33 #   define SWIGINLINE
34 # endif
35 #endif
36 
37 /* attribute recognised by some compilers to avoid 'unused' warnings */
38 #ifndef SWIGUNUSED
39 # if defined(__GNUC__)
40 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
41 #     define SWIGUNUSED __attribute__ ((__unused__))
42 #   else
43 #     define SWIGUNUSED
44 #   endif
45 # elif defined(__ICC)
46 #   define SWIGUNUSED __attribute__ ((__unused__))
47 # else
48 #   define SWIGUNUSED
49 # endif
50 #endif
51 
52 #ifndef SWIG_MSC_UNSUPPRESS_4505
53 # if defined(_MSC_VER)
54 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
55 # endif
56 #endif
57 
58 #ifndef SWIGUNUSEDPARM
59 # ifdef __cplusplus
60 #   define SWIGUNUSEDPARM(p)
61 # else
62 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
63 # endif
64 #endif
65 
66 /* internal SWIG method */
67 #ifndef SWIGINTERN
68 # define SWIGINTERN static SWIGUNUSED
69 #endif
70 
71 /* internal inline SWIG method */
72 #ifndef SWIGINTERNINLINE
73 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
74 #endif
75 
76 /* qualifier for exported *const* global data variables*/
77 #ifndef SWIGEXTERN
78 # ifdef __cplusplus
79 #   define SWIGEXTERN extern
80 # else
81 #   define SWIGEXTERN
82 # endif
83 #endif
84 
85 /* exporting methods */
86 #if defined(__GNUC__)
87 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
88 #    ifndef GCC_HASCLASSVISIBILITY
89 #      define GCC_HASCLASSVISIBILITY
90 #    endif
91 #  endif
92 #endif
93 
94 #ifndef SWIGEXPORT
95 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
96 #   if defined(STATIC_LINKED)
97 #     define SWIGEXPORT
98 #   else
99 #     define SWIGEXPORT __declspec(dllexport)
100 #   endif
101 # else
102 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
103 #     define SWIGEXPORT __attribute__ ((visibility("default")))
104 #   else
105 #     define SWIGEXPORT
106 #   endif
107 # endif
108 #endif
109 
110 /* calling conventions for Windows */
111 #ifndef SWIGSTDCALL
112 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
113 #   define SWIGSTDCALL __stdcall
114 # else
115 #   define SWIGSTDCALL
116 # endif
117 #endif
118 
119 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
120 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
121 # define _CRT_SECURE_NO_DEPRECATE
122 #endif
123 
124 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
125 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
126 # define _SCL_SECURE_NO_DEPRECATE
127 #endif
128 
129 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
130 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
131 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
132 #endif
133 
134 /* Intel's compiler complains if a variable which was never initialised is
135  * cast to void, which is a common idiom which we use to indicate that we
136  * are aware a variable isn't used.  So we just silence that warning.
137  * See: https://github.com/swig/swig/issues/192 for more discussion.
138  */
139 #ifdef __INTEL_COMPILER
140 # pragma warning disable 592
141 #endif
142 
143 /*  Errors in SWIG */
144 #define  SWIG_UnknownError    	   -1
145 #define  SWIG_IOError        	   -2
146 #define  SWIG_RuntimeError   	   -3
147 #define  SWIG_IndexError     	   -4
148 #define  SWIG_TypeError      	   -5
149 #define  SWIG_DivisionByZero 	   -6
150 #define  SWIG_OverflowError  	   -7
151 #define  SWIG_SyntaxError    	   -8
152 #define  SWIG_ValueError     	   -9
153 #define  SWIG_SystemError    	   -10
154 #define  SWIG_AttributeError 	   -11
155 #define  SWIG_MemoryError    	   -12
156 #define  SWIG_NullReferenceError   -13
157 
158 
159 
160 
161 #include <assert.h>
162 #define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
163  { printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
164 
165 
166 #include <stdio.h>
167 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
168 # ifndef snprintf
169 #  define snprintf _snprintf
170 # endif
171 #endif
172 
173 
174 /* Support for the `contract` feature.
175  *
176  * Note that RETURNNULL is first because it's inserted via a 'Replaceall' in
177  * the fortran.cxx file.
178  */
179 #define SWIG_contract_assert(RETURNNULL, EXPR, MSG) \
180  if (!(EXPR)) { SWIG_exception_impl("$decl", SWIG_ValueError, MSG, RETURNNULL); }
181 
182 
183 #define SWIGVERSION 0x040000
184 #define SWIG_VERSION SWIGVERSION
185 
186 
187 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
188 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
189 
190 
191 #include "sundials/sundials_matrix.h"
192 
_wrap_FSUNMatNewEmpty()193 SWIGEXPORT SUNMatrix _wrap_FSUNMatNewEmpty() {
194   SUNMatrix fresult ;
195   SUNMatrix result;
196 
197   result = (SUNMatrix)SUNMatNewEmpty();
198   fresult = result;
199   return fresult;
200 }
201 
202 
_wrap_FSUNMatFreeEmpty(SUNMatrix farg1)203 SWIGEXPORT void _wrap_FSUNMatFreeEmpty(SUNMatrix farg1) {
204   SUNMatrix arg1 = (SUNMatrix) 0 ;
205 
206   arg1 = (SUNMatrix)(farg1);
207   SUNMatFreeEmpty(arg1);
208 }
209 
210 
_wrap_FSUNMatCopyOps(SUNMatrix farg1,SUNMatrix farg2)211 SWIGEXPORT int _wrap_FSUNMatCopyOps(SUNMatrix farg1, SUNMatrix farg2) {
212   int fresult ;
213   SUNMatrix arg1 = (SUNMatrix) 0 ;
214   SUNMatrix arg2 = (SUNMatrix) 0 ;
215   int result;
216 
217   arg1 = (SUNMatrix)(farg1);
218   arg2 = (SUNMatrix)(farg2);
219   result = (int)SUNMatCopyOps(arg1,arg2);
220   fresult = (int)(result);
221   return fresult;
222 }
223 
224 
_wrap_FSUNMatGetID(SUNMatrix farg1)225 SWIGEXPORT int _wrap_FSUNMatGetID(SUNMatrix farg1) {
226   int fresult ;
227   SUNMatrix arg1 = (SUNMatrix) 0 ;
228   SUNMatrix_ID result;
229 
230   arg1 = (SUNMatrix)(farg1);
231   result = (SUNMatrix_ID)SUNMatGetID(arg1);
232   fresult = (int)(result);
233   return fresult;
234 }
235 
236 
_wrap_FSUNMatClone(SUNMatrix farg1)237 SWIGEXPORT SUNMatrix _wrap_FSUNMatClone(SUNMatrix farg1) {
238   SUNMatrix fresult ;
239   SUNMatrix arg1 = (SUNMatrix) 0 ;
240   SUNMatrix result;
241 
242   arg1 = (SUNMatrix)(farg1);
243   result = (SUNMatrix)SUNMatClone(arg1);
244   fresult = result;
245   return fresult;
246 }
247 
248 
_wrap_FSUNMatDestroy(SUNMatrix farg1)249 SWIGEXPORT void _wrap_FSUNMatDestroy(SUNMatrix farg1) {
250   SUNMatrix arg1 = (SUNMatrix) 0 ;
251 
252   arg1 = (SUNMatrix)(farg1);
253   SUNMatDestroy(arg1);
254 }
255 
256 
_wrap_FSUNMatZero(SUNMatrix farg1)257 SWIGEXPORT int _wrap_FSUNMatZero(SUNMatrix farg1) {
258   int fresult ;
259   SUNMatrix arg1 = (SUNMatrix) 0 ;
260   int result;
261 
262   arg1 = (SUNMatrix)(farg1);
263   result = (int)SUNMatZero(arg1);
264   fresult = (int)(result);
265   return fresult;
266 }
267 
268 
_wrap_FSUNMatCopy(SUNMatrix farg1,SUNMatrix farg2)269 SWIGEXPORT int _wrap_FSUNMatCopy(SUNMatrix farg1, SUNMatrix farg2) {
270   int fresult ;
271   SUNMatrix arg1 = (SUNMatrix) 0 ;
272   SUNMatrix arg2 = (SUNMatrix) 0 ;
273   int result;
274 
275   arg1 = (SUNMatrix)(farg1);
276   arg2 = (SUNMatrix)(farg2);
277   result = (int)SUNMatCopy(arg1,arg2);
278   fresult = (int)(result);
279   return fresult;
280 }
281 
282 
_wrap_FSUNMatScaleAdd(double const * farg1,SUNMatrix farg2,SUNMatrix farg3)283 SWIGEXPORT int _wrap_FSUNMatScaleAdd(double const *farg1, SUNMatrix farg2, SUNMatrix farg3) {
284   int fresult ;
285   realtype arg1 ;
286   SUNMatrix arg2 = (SUNMatrix) 0 ;
287   SUNMatrix arg3 = (SUNMatrix) 0 ;
288   int result;
289 
290   arg1 = (realtype)(*farg1);
291   arg2 = (SUNMatrix)(farg2);
292   arg3 = (SUNMatrix)(farg3);
293   result = (int)SUNMatScaleAdd(arg1,arg2,arg3);
294   fresult = (int)(result);
295   return fresult;
296 }
297 
298 
_wrap_FSUNMatScaleAddI(double const * farg1,SUNMatrix farg2)299 SWIGEXPORT int _wrap_FSUNMatScaleAddI(double const *farg1, SUNMatrix farg2) {
300   int fresult ;
301   realtype arg1 ;
302   SUNMatrix arg2 = (SUNMatrix) 0 ;
303   int result;
304 
305   arg1 = (realtype)(*farg1);
306   arg2 = (SUNMatrix)(farg2);
307   result = (int)SUNMatScaleAddI(arg1,arg2);
308   fresult = (int)(result);
309   return fresult;
310 }
311 
312 
_wrap_FSUNMatMatvecSetup(SUNMatrix farg1)313 SWIGEXPORT int _wrap_FSUNMatMatvecSetup(SUNMatrix farg1) {
314   int fresult ;
315   SUNMatrix arg1 = (SUNMatrix) 0 ;
316   int result;
317 
318   arg1 = (SUNMatrix)(farg1);
319   result = (int)SUNMatMatvecSetup(arg1);
320   fresult = (int)(result);
321   return fresult;
322 }
323 
324 
_wrap_FSUNMatMatvec(SUNMatrix farg1,N_Vector farg2,N_Vector farg3)325 SWIGEXPORT int _wrap_FSUNMatMatvec(SUNMatrix farg1, N_Vector farg2, N_Vector farg3) {
326   int fresult ;
327   SUNMatrix arg1 = (SUNMatrix) 0 ;
328   N_Vector arg2 = (N_Vector) 0 ;
329   N_Vector arg3 = (N_Vector) 0 ;
330   int result;
331 
332   arg1 = (SUNMatrix)(farg1);
333   arg2 = (N_Vector)(farg2);
334   arg3 = (N_Vector)(farg3);
335   result = (int)SUNMatMatvec(arg1,arg2,arg3);
336   fresult = (int)(result);
337   return fresult;
338 }
339 
340 
_wrap_FSUNMatSpace(SUNMatrix farg1,long * farg2,long * farg3)341 SWIGEXPORT int _wrap_FSUNMatSpace(SUNMatrix farg1, long *farg2, long *farg3) {
342   int fresult ;
343   SUNMatrix arg1 = (SUNMatrix) 0 ;
344   long *arg2 = (long *) 0 ;
345   long *arg3 = (long *) 0 ;
346   int result;
347 
348   arg1 = (SUNMatrix)(farg1);
349   arg2 = (long *)(farg2);
350   arg3 = (long *)(farg3);
351   result = (int)SUNMatSpace(arg1,arg2,arg3);
352   fresult = (int)(result);
353   return fresult;
354 }
355 
356 
357 
358