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 /* ---------------------------------------------------------------
12 * Programmer(s): Auto-generated by swig.
13 * ---------------------------------------------------------------
14 * SUNDIALS Copyright Start
15 * Copyright (c) 2002-2021, Lawrence Livermore National Security
16 * and Southern Methodist University.
17 * All rights reserved.
18 *
19 * See the top-level LICENSE and NOTICE files for details.
20 *
21 * SPDX-License-Identifier: BSD-3-Clause
22 * SUNDIALS Copyright End
23 * -------------------------------------------------------------*/
24
25 /* -----------------------------------------------------------------------------
26 * This section contains generic SWIG labels for method/variable
27 * declarations/attributes, and other compiler dependent labels.
28 * ----------------------------------------------------------------------------- */
29
30 /* template workaround for compilers that cannot correctly implement the C++ standard */
31 #ifndef SWIGTEMPLATEDISAMBIGUATOR
32 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
33 # define SWIGTEMPLATEDISAMBIGUATOR template
34 # elif defined(__HP_aCC)
35 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
36 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
37 # define SWIGTEMPLATEDISAMBIGUATOR template
38 # else
39 # define SWIGTEMPLATEDISAMBIGUATOR
40 # endif
41 #endif
42
43 /* inline attribute */
44 #ifndef SWIGINLINE
45 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
46 # define SWIGINLINE inline
47 # else
48 # define SWIGINLINE
49 # endif
50 #endif
51
52 /* attribute recognised by some compilers to avoid 'unused' warnings */
53 #ifndef SWIGUNUSED
54 # if defined(__GNUC__)
55 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
56 # define SWIGUNUSED __attribute__ ((__unused__))
57 # else
58 # define SWIGUNUSED
59 # endif
60 # elif defined(__ICC)
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 #endif
66
67 #ifndef SWIG_MSC_UNSUPPRESS_4505
68 # if defined(_MSC_VER)
69 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
70 # endif
71 #endif
72
73 #ifndef SWIGUNUSEDPARM
74 # ifdef __cplusplus
75 # define SWIGUNUSEDPARM(p)
76 # else
77 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
78 # endif
79 #endif
80
81 /* internal SWIG method */
82 #ifndef SWIGINTERN
83 # define SWIGINTERN static SWIGUNUSED
84 #endif
85
86 /* internal inline SWIG method */
87 #ifndef SWIGINTERNINLINE
88 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
89 #endif
90
91 /* qualifier for exported *const* global data variables*/
92 #ifndef SWIGEXTERN
93 # ifdef __cplusplus
94 # define SWIGEXTERN extern
95 # else
96 # define SWIGEXTERN
97 # endif
98 #endif
99
100 /* exporting methods */
101 #if defined(__GNUC__)
102 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
103 # ifndef GCC_HASCLASSVISIBILITY
104 # define GCC_HASCLASSVISIBILITY
105 # endif
106 # endif
107 #endif
108
109 #ifndef SWIGEXPORT
110 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
111 # if defined(STATIC_LINKED)
112 # define SWIGEXPORT
113 # else
114 # define SWIGEXPORT __declspec(dllexport)
115 # endif
116 # else
117 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
118 # define SWIGEXPORT __attribute__ ((visibility("default")))
119 # else
120 # define SWIGEXPORT
121 # endif
122 # endif
123 #endif
124
125 /* calling conventions for Windows */
126 #ifndef SWIGSTDCALL
127 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
128 # define SWIGSTDCALL __stdcall
129 # else
130 # define SWIGSTDCALL
131 # endif
132 #endif
133
134 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
135 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
136 # define _CRT_SECURE_NO_DEPRECATE
137 #endif
138
139 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
140 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
141 # define _SCL_SECURE_NO_DEPRECATE
142 #endif
143
144 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
145 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
146 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
147 #endif
148
149 /* Intel's compiler complains if a variable which was never initialised is
150 * cast to void, which is a common idiom which we use to indicate that we
151 * are aware a variable isn't used. So we just silence that warning.
152 * See: https://github.com/swig/swig/issues/192 for more discussion.
153 */
154 #ifdef __INTEL_COMPILER
155 # pragma warning disable 592
156 #endif
157
158 /* Errors in SWIG */
159 #define SWIG_UnknownError -1
160 #define SWIG_IOError -2
161 #define SWIG_RuntimeError -3
162 #define SWIG_IndexError -4
163 #define SWIG_TypeError -5
164 #define SWIG_DivisionByZero -6
165 #define SWIG_OverflowError -7
166 #define SWIG_SyntaxError -8
167 #define SWIG_ValueError -9
168 #define SWIG_SystemError -10
169 #define SWIG_AttributeError -11
170 #define SWIG_MemoryError -12
171 #define SWIG_NullReferenceError -13
172
173
174
175
176 #include <assert.h>
177 #define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178 {STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179
180
181 #include <stdio.h>
182 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
183 # ifndef snprintf
184 # define snprintf _snprintf
185 # endif
186 #endif
187
188
189 /* Support for the `contract` feature.
190 *
191 * Note that RETURNNULL is first because it's inserted via a 'Replaceall' in
192 * the fortran.cxx file.
193 */
194 #define SWIG_contract_assert(RETURNNULL, EXPR, MSG) \
195 if (!(EXPR)) { SWIG_exception_impl("$decl", SWIG_ValueError, MSG, RETURNNULL); }
196
197
198 #define SWIGVERSION 0x040000
199 #define SWIG_VERSION SWIGVERSION
200
201
202 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
203 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
204
205
206 #include "sundials/sundials_nvector.h"
207
208
209 #include "nvector/nvector_pthreads.h"
210
_wrap_FN_VNew_Pthreads(int64_t const * farg1,int const * farg2)211 SWIGEXPORT N_Vector _wrap_FN_VNew_Pthreads(int64_t const *farg1, int const *farg2) {
212 N_Vector fresult ;
213 sunindextype arg1 ;
214 int arg2 ;
215 N_Vector result;
216
217 arg1 = (sunindextype)(*farg1);
218 arg2 = (int)(*farg2);
219 result = (N_Vector)N_VNew_Pthreads(arg1,arg2);
220 fresult = result;
221 return fresult;
222 }
223
224
_wrap_FN_VNewEmpty_Pthreads(int64_t const * farg1,int const * farg2)225 SWIGEXPORT N_Vector _wrap_FN_VNewEmpty_Pthreads(int64_t const *farg1, int const *farg2) {
226 N_Vector fresult ;
227 sunindextype arg1 ;
228 int arg2 ;
229 N_Vector result;
230
231 arg1 = (sunindextype)(*farg1);
232 arg2 = (int)(*farg2);
233 result = (N_Vector)N_VNewEmpty_Pthreads(arg1,arg2);
234 fresult = result;
235 return fresult;
236 }
237
238
_wrap_FN_VMake_Pthreads(int64_t const * farg1,int const * farg2,double * farg3)239 SWIGEXPORT N_Vector _wrap_FN_VMake_Pthreads(int64_t const *farg1, int const *farg2, double *farg3) {
240 N_Vector fresult ;
241 sunindextype arg1 ;
242 int arg2 ;
243 realtype *arg3 = (realtype *) 0 ;
244 N_Vector result;
245
246 arg1 = (sunindextype)(*farg1);
247 arg2 = (int)(*farg2);
248 arg3 = (realtype *)(farg3);
249 result = (N_Vector)N_VMake_Pthreads(arg1,arg2,arg3);
250 fresult = result;
251 return fresult;
252 }
253
254
_wrap_FN_VCloneVectorArray_Pthreads(int const * farg1,N_Vector farg2)255 SWIGEXPORT void * _wrap_FN_VCloneVectorArray_Pthreads(int const *farg1, N_Vector farg2) {
256 void * fresult ;
257 int arg1 ;
258 N_Vector arg2 = (N_Vector) 0 ;
259 N_Vector *result = 0 ;
260
261 arg1 = (int)(*farg1);
262 arg2 = (N_Vector)(farg2);
263 result = (N_Vector *)N_VCloneVectorArray_Pthreads(arg1,arg2);
264 fresult = result;
265 return fresult;
266 }
267
268
_wrap_FN_VCloneVectorArrayEmpty_Pthreads(int const * farg1,N_Vector farg2)269 SWIGEXPORT void * _wrap_FN_VCloneVectorArrayEmpty_Pthreads(int const *farg1, N_Vector farg2) {
270 void * fresult ;
271 int arg1 ;
272 N_Vector arg2 = (N_Vector) 0 ;
273 N_Vector *result = 0 ;
274
275 arg1 = (int)(*farg1);
276 arg2 = (N_Vector)(farg2);
277 result = (N_Vector *)N_VCloneVectorArrayEmpty_Pthreads(arg1,arg2);
278 fresult = result;
279 return fresult;
280 }
281
282
_wrap_FN_VDestroyVectorArray_Pthreads(void * farg1,int const * farg2)283 SWIGEXPORT void _wrap_FN_VDestroyVectorArray_Pthreads(void *farg1, int const *farg2) {
284 N_Vector *arg1 = (N_Vector *) 0 ;
285 int arg2 ;
286
287 arg1 = (N_Vector *)(farg1);
288 arg2 = (int)(*farg2);
289 N_VDestroyVectorArray_Pthreads(arg1,arg2);
290 }
291
292
_wrap_FN_VGetLength_Pthreads(N_Vector farg1)293 SWIGEXPORT int64_t _wrap_FN_VGetLength_Pthreads(N_Vector farg1) {
294 int64_t fresult ;
295 N_Vector arg1 = (N_Vector) 0 ;
296 sunindextype result;
297
298 arg1 = (N_Vector)(farg1);
299 result = N_VGetLength_Pthreads(arg1);
300 fresult = (sunindextype)(result);
301 return fresult;
302 }
303
304
_wrap_FN_VPrint_Pthreads(N_Vector farg1)305 SWIGEXPORT void _wrap_FN_VPrint_Pthreads(N_Vector farg1) {
306 N_Vector arg1 = (N_Vector) 0 ;
307
308 arg1 = (N_Vector)(farg1);
309 N_VPrint_Pthreads(arg1);
310 }
311
312
_wrap_FN_VPrintFile_Pthreads(N_Vector farg1,void * farg2)313 SWIGEXPORT void _wrap_FN_VPrintFile_Pthreads(N_Vector farg1, void *farg2) {
314 N_Vector arg1 = (N_Vector) 0 ;
315 FILE *arg2 = (FILE *) 0 ;
316
317 arg1 = (N_Vector)(farg1);
318 arg2 = (FILE *)(farg2);
319 N_VPrintFile_Pthreads(arg1,arg2);
320 }
321
322
_wrap_FN_VGetVectorID_Pthreads(N_Vector farg1)323 SWIGEXPORT int _wrap_FN_VGetVectorID_Pthreads(N_Vector farg1) {
324 int fresult ;
325 N_Vector arg1 = (N_Vector) 0 ;
326 N_Vector_ID result;
327
328 arg1 = (N_Vector)(farg1);
329 result = (N_Vector_ID)N_VGetVectorID_Pthreads(arg1);
330 fresult = (int)(result);
331 return fresult;
332 }
333
334
_wrap_FN_VCloneEmpty_Pthreads(N_Vector farg1)335 SWIGEXPORT N_Vector _wrap_FN_VCloneEmpty_Pthreads(N_Vector farg1) {
336 N_Vector fresult ;
337 N_Vector arg1 = (N_Vector) 0 ;
338 N_Vector result;
339
340 arg1 = (N_Vector)(farg1);
341 result = (N_Vector)N_VCloneEmpty_Pthreads(arg1);
342 fresult = result;
343 return fresult;
344 }
345
346
_wrap_FN_VClone_Pthreads(N_Vector farg1)347 SWIGEXPORT N_Vector _wrap_FN_VClone_Pthreads(N_Vector farg1) {
348 N_Vector fresult ;
349 N_Vector arg1 = (N_Vector) 0 ;
350 N_Vector result;
351
352 arg1 = (N_Vector)(farg1);
353 result = (N_Vector)N_VClone_Pthreads(arg1);
354 fresult = result;
355 return fresult;
356 }
357
358
_wrap_FN_VDestroy_Pthreads(N_Vector farg1)359 SWIGEXPORT void _wrap_FN_VDestroy_Pthreads(N_Vector farg1) {
360 N_Vector arg1 = (N_Vector) 0 ;
361
362 arg1 = (N_Vector)(farg1);
363 N_VDestroy_Pthreads(arg1);
364 }
365
366
_wrap_FN_VSpace_Pthreads(N_Vector farg1,int64_t * farg2,int64_t * farg3)367 SWIGEXPORT void _wrap_FN_VSpace_Pthreads(N_Vector farg1, int64_t *farg2, int64_t *farg3) {
368 N_Vector arg1 = (N_Vector) 0 ;
369 sunindextype *arg2 = (sunindextype *) 0 ;
370 sunindextype *arg3 = (sunindextype *) 0 ;
371
372 arg1 = (N_Vector)(farg1);
373 arg2 = (sunindextype *)(farg2);
374 arg3 = (sunindextype *)(farg3);
375 N_VSpace_Pthreads(arg1,arg2,arg3);
376 }
377
378
_wrap_FN_VGetArrayPointer_Pthreads(N_Vector farg1)379 SWIGEXPORT double * _wrap_FN_VGetArrayPointer_Pthreads(N_Vector farg1) {
380 double * fresult ;
381 N_Vector arg1 = (N_Vector) 0 ;
382 realtype *result = 0 ;
383
384 arg1 = (N_Vector)(farg1);
385 result = (realtype *)N_VGetArrayPointer_Pthreads(arg1);
386 fresult = result;
387 return fresult;
388 }
389
390
_wrap_FN_VSetArrayPointer_Pthreads(double * farg1,N_Vector farg2)391 SWIGEXPORT void _wrap_FN_VSetArrayPointer_Pthreads(double *farg1, N_Vector farg2) {
392 realtype *arg1 = (realtype *) 0 ;
393 N_Vector arg2 = (N_Vector) 0 ;
394
395 arg1 = (realtype *)(farg1);
396 arg2 = (N_Vector)(farg2);
397 N_VSetArrayPointer_Pthreads(arg1,arg2);
398 }
399
400
_wrap_FN_VLinearSum_Pthreads(double const * farg1,N_Vector farg2,double const * farg3,N_Vector farg4,N_Vector farg5)401 SWIGEXPORT void _wrap_FN_VLinearSum_Pthreads(double const *farg1, N_Vector farg2, double const *farg3, N_Vector farg4, N_Vector farg5) {
402 realtype arg1 ;
403 N_Vector arg2 = (N_Vector) 0 ;
404 realtype arg3 ;
405 N_Vector arg4 = (N_Vector) 0 ;
406 N_Vector arg5 = (N_Vector) 0 ;
407
408 arg1 = (realtype)(*farg1);
409 arg2 = (N_Vector)(farg2);
410 arg3 = (realtype)(*farg3);
411 arg4 = (N_Vector)(farg4);
412 arg5 = (N_Vector)(farg5);
413 N_VLinearSum_Pthreads(arg1,arg2,arg3,arg4,arg5);
414 }
415
416
_wrap_FN_VConst_Pthreads(double const * farg1,N_Vector farg2)417 SWIGEXPORT void _wrap_FN_VConst_Pthreads(double const *farg1, N_Vector farg2) {
418 realtype arg1 ;
419 N_Vector arg2 = (N_Vector) 0 ;
420
421 arg1 = (realtype)(*farg1);
422 arg2 = (N_Vector)(farg2);
423 N_VConst_Pthreads(arg1,arg2);
424 }
425
426
_wrap_FN_VProd_Pthreads(N_Vector farg1,N_Vector farg2,N_Vector farg3)427 SWIGEXPORT void _wrap_FN_VProd_Pthreads(N_Vector farg1, N_Vector farg2, N_Vector farg3) {
428 N_Vector arg1 = (N_Vector) 0 ;
429 N_Vector arg2 = (N_Vector) 0 ;
430 N_Vector arg3 = (N_Vector) 0 ;
431
432 arg1 = (N_Vector)(farg1);
433 arg2 = (N_Vector)(farg2);
434 arg3 = (N_Vector)(farg3);
435 N_VProd_Pthreads(arg1,arg2,arg3);
436 }
437
438
_wrap_FN_VDiv_Pthreads(N_Vector farg1,N_Vector farg2,N_Vector farg3)439 SWIGEXPORT void _wrap_FN_VDiv_Pthreads(N_Vector farg1, N_Vector farg2, N_Vector farg3) {
440 N_Vector arg1 = (N_Vector) 0 ;
441 N_Vector arg2 = (N_Vector) 0 ;
442 N_Vector arg3 = (N_Vector) 0 ;
443
444 arg1 = (N_Vector)(farg1);
445 arg2 = (N_Vector)(farg2);
446 arg3 = (N_Vector)(farg3);
447 N_VDiv_Pthreads(arg1,arg2,arg3);
448 }
449
450
_wrap_FN_VScale_Pthreads(double const * farg1,N_Vector farg2,N_Vector farg3)451 SWIGEXPORT void _wrap_FN_VScale_Pthreads(double const *farg1, N_Vector farg2, N_Vector farg3) {
452 realtype arg1 ;
453 N_Vector arg2 = (N_Vector) 0 ;
454 N_Vector arg3 = (N_Vector) 0 ;
455
456 arg1 = (realtype)(*farg1);
457 arg2 = (N_Vector)(farg2);
458 arg3 = (N_Vector)(farg3);
459 N_VScale_Pthreads(arg1,arg2,arg3);
460 }
461
462
_wrap_FN_VAbs_Pthreads(N_Vector farg1,N_Vector farg2)463 SWIGEXPORT void _wrap_FN_VAbs_Pthreads(N_Vector farg1, N_Vector farg2) {
464 N_Vector arg1 = (N_Vector) 0 ;
465 N_Vector arg2 = (N_Vector) 0 ;
466
467 arg1 = (N_Vector)(farg1);
468 arg2 = (N_Vector)(farg2);
469 N_VAbs_Pthreads(arg1,arg2);
470 }
471
472
_wrap_FN_VInv_Pthreads(N_Vector farg1,N_Vector farg2)473 SWIGEXPORT void _wrap_FN_VInv_Pthreads(N_Vector farg1, N_Vector farg2) {
474 N_Vector arg1 = (N_Vector) 0 ;
475 N_Vector arg2 = (N_Vector) 0 ;
476
477 arg1 = (N_Vector)(farg1);
478 arg2 = (N_Vector)(farg2);
479 N_VInv_Pthreads(arg1,arg2);
480 }
481
482
_wrap_FN_VAddConst_Pthreads(N_Vector farg1,double const * farg2,N_Vector farg3)483 SWIGEXPORT void _wrap_FN_VAddConst_Pthreads(N_Vector farg1, double const *farg2, N_Vector farg3) {
484 N_Vector arg1 = (N_Vector) 0 ;
485 realtype arg2 ;
486 N_Vector arg3 = (N_Vector) 0 ;
487
488 arg1 = (N_Vector)(farg1);
489 arg2 = (realtype)(*farg2);
490 arg3 = (N_Vector)(farg3);
491 N_VAddConst_Pthreads(arg1,arg2,arg3);
492 }
493
494
_wrap_FN_VDotProd_Pthreads(N_Vector farg1,N_Vector farg2)495 SWIGEXPORT double _wrap_FN_VDotProd_Pthreads(N_Vector farg1, N_Vector farg2) {
496 double fresult ;
497 N_Vector arg1 = (N_Vector) 0 ;
498 N_Vector arg2 = (N_Vector) 0 ;
499 realtype result;
500
501 arg1 = (N_Vector)(farg1);
502 arg2 = (N_Vector)(farg2);
503 result = (realtype)N_VDotProd_Pthreads(arg1,arg2);
504 fresult = (realtype)(result);
505 return fresult;
506 }
507
508
_wrap_FN_VMaxNorm_Pthreads(N_Vector farg1)509 SWIGEXPORT double _wrap_FN_VMaxNorm_Pthreads(N_Vector farg1) {
510 double fresult ;
511 N_Vector arg1 = (N_Vector) 0 ;
512 realtype result;
513
514 arg1 = (N_Vector)(farg1);
515 result = (realtype)N_VMaxNorm_Pthreads(arg1);
516 fresult = (realtype)(result);
517 return fresult;
518 }
519
520
_wrap_FN_VWrmsNorm_Pthreads(N_Vector farg1,N_Vector farg2)521 SWIGEXPORT double _wrap_FN_VWrmsNorm_Pthreads(N_Vector farg1, N_Vector farg2) {
522 double fresult ;
523 N_Vector arg1 = (N_Vector) 0 ;
524 N_Vector arg2 = (N_Vector) 0 ;
525 realtype result;
526
527 arg1 = (N_Vector)(farg1);
528 arg2 = (N_Vector)(farg2);
529 result = (realtype)N_VWrmsNorm_Pthreads(arg1,arg2);
530 fresult = (realtype)(result);
531 return fresult;
532 }
533
534
_wrap_FN_VWrmsNormMask_Pthreads(N_Vector farg1,N_Vector farg2,N_Vector farg3)535 SWIGEXPORT double _wrap_FN_VWrmsNormMask_Pthreads(N_Vector farg1, N_Vector farg2, N_Vector farg3) {
536 double fresult ;
537 N_Vector arg1 = (N_Vector) 0 ;
538 N_Vector arg2 = (N_Vector) 0 ;
539 N_Vector arg3 = (N_Vector) 0 ;
540 realtype result;
541
542 arg1 = (N_Vector)(farg1);
543 arg2 = (N_Vector)(farg2);
544 arg3 = (N_Vector)(farg3);
545 result = (realtype)N_VWrmsNormMask_Pthreads(arg1,arg2,arg3);
546 fresult = (realtype)(result);
547 return fresult;
548 }
549
550
_wrap_FN_VMin_Pthreads(N_Vector farg1)551 SWIGEXPORT double _wrap_FN_VMin_Pthreads(N_Vector farg1) {
552 double fresult ;
553 N_Vector arg1 = (N_Vector) 0 ;
554 realtype result;
555
556 arg1 = (N_Vector)(farg1);
557 result = (realtype)N_VMin_Pthreads(arg1);
558 fresult = (realtype)(result);
559 return fresult;
560 }
561
562
_wrap_FN_VWL2Norm_Pthreads(N_Vector farg1,N_Vector farg2)563 SWIGEXPORT double _wrap_FN_VWL2Norm_Pthreads(N_Vector farg1, N_Vector farg2) {
564 double fresult ;
565 N_Vector arg1 = (N_Vector) 0 ;
566 N_Vector arg2 = (N_Vector) 0 ;
567 realtype result;
568
569 arg1 = (N_Vector)(farg1);
570 arg2 = (N_Vector)(farg2);
571 result = (realtype)N_VWL2Norm_Pthreads(arg1,arg2);
572 fresult = (realtype)(result);
573 return fresult;
574 }
575
576
_wrap_FN_VL1Norm_Pthreads(N_Vector farg1)577 SWIGEXPORT double _wrap_FN_VL1Norm_Pthreads(N_Vector farg1) {
578 double fresult ;
579 N_Vector arg1 = (N_Vector) 0 ;
580 realtype result;
581
582 arg1 = (N_Vector)(farg1);
583 result = (realtype)N_VL1Norm_Pthreads(arg1);
584 fresult = (realtype)(result);
585 return fresult;
586 }
587
588
_wrap_FN_VCompare_Pthreads(double const * farg1,N_Vector farg2,N_Vector farg3)589 SWIGEXPORT void _wrap_FN_VCompare_Pthreads(double const *farg1, N_Vector farg2, N_Vector farg3) {
590 realtype arg1 ;
591 N_Vector arg2 = (N_Vector) 0 ;
592 N_Vector arg3 = (N_Vector) 0 ;
593
594 arg1 = (realtype)(*farg1);
595 arg2 = (N_Vector)(farg2);
596 arg3 = (N_Vector)(farg3);
597 N_VCompare_Pthreads(arg1,arg2,arg3);
598 }
599
600
_wrap_FN_VInvTest_Pthreads(N_Vector farg1,N_Vector farg2)601 SWIGEXPORT int _wrap_FN_VInvTest_Pthreads(N_Vector farg1, N_Vector farg2) {
602 int fresult ;
603 N_Vector arg1 = (N_Vector) 0 ;
604 N_Vector arg2 = (N_Vector) 0 ;
605 int result;
606
607 arg1 = (N_Vector)(farg1);
608 arg2 = (N_Vector)(farg2);
609 result = (int)N_VInvTest_Pthreads(arg1,arg2);
610 fresult = (int)(result);
611 return fresult;
612 }
613
614
_wrap_FN_VConstrMask_Pthreads(N_Vector farg1,N_Vector farg2,N_Vector farg3)615 SWIGEXPORT int _wrap_FN_VConstrMask_Pthreads(N_Vector farg1, N_Vector farg2, N_Vector farg3) {
616 int fresult ;
617 N_Vector arg1 = (N_Vector) 0 ;
618 N_Vector arg2 = (N_Vector) 0 ;
619 N_Vector arg3 = (N_Vector) 0 ;
620 int result;
621
622 arg1 = (N_Vector)(farg1);
623 arg2 = (N_Vector)(farg2);
624 arg3 = (N_Vector)(farg3);
625 result = (int)N_VConstrMask_Pthreads(arg1,arg2,arg3);
626 fresult = (int)(result);
627 return fresult;
628 }
629
630
_wrap_FN_VMinQuotient_Pthreads(N_Vector farg1,N_Vector farg2)631 SWIGEXPORT double _wrap_FN_VMinQuotient_Pthreads(N_Vector farg1, N_Vector farg2) {
632 double fresult ;
633 N_Vector arg1 = (N_Vector) 0 ;
634 N_Vector arg2 = (N_Vector) 0 ;
635 realtype result;
636
637 arg1 = (N_Vector)(farg1);
638 arg2 = (N_Vector)(farg2);
639 result = (realtype)N_VMinQuotient_Pthreads(arg1,arg2);
640 fresult = (realtype)(result);
641 return fresult;
642 }
643
644
_wrap_FN_VLinearCombination_Pthreads(int const * farg1,double * farg2,void * farg3,N_Vector farg4)645 SWIGEXPORT int _wrap_FN_VLinearCombination_Pthreads(int const *farg1, double *farg2, void *farg3, N_Vector farg4) {
646 int fresult ;
647 int arg1 ;
648 realtype *arg2 = (realtype *) 0 ;
649 N_Vector *arg3 = (N_Vector *) 0 ;
650 N_Vector arg4 = (N_Vector) 0 ;
651 int result;
652
653 arg1 = (int)(*farg1);
654 arg2 = (realtype *)(farg2);
655 arg3 = (N_Vector *)(farg3);
656 arg4 = (N_Vector)(farg4);
657 result = (int)N_VLinearCombination_Pthreads(arg1,arg2,arg3,arg4);
658 fresult = (int)(result);
659 return fresult;
660 }
661
662
_wrap_FN_VScaleAddMulti_Pthreads(int const * farg1,double * farg2,N_Vector farg3,void * farg4,void * farg5)663 SWIGEXPORT int _wrap_FN_VScaleAddMulti_Pthreads(int const *farg1, double *farg2, N_Vector farg3, void *farg4, void *farg5) {
664 int fresult ;
665 int arg1 ;
666 realtype *arg2 = (realtype *) 0 ;
667 N_Vector arg3 = (N_Vector) 0 ;
668 N_Vector *arg4 = (N_Vector *) 0 ;
669 N_Vector *arg5 = (N_Vector *) 0 ;
670 int result;
671
672 arg1 = (int)(*farg1);
673 arg2 = (realtype *)(farg2);
674 arg3 = (N_Vector)(farg3);
675 arg4 = (N_Vector *)(farg4);
676 arg5 = (N_Vector *)(farg5);
677 result = (int)N_VScaleAddMulti_Pthreads(arg1,arg2,arg3,arg4,arg5);
678 fresult = (int)(result);
679 return fresult;
680 }
681
682
_wrap_FN_VDotProdMulti_Pthreads(int const * farg1,N_Vector farg2,void * farg3,double * farg4)683 SWIGEXPORT int _wrap_FN_VDotProdMulti_Pthreads(int const *farg1, N_Vector farg2, void *farg3, double *farg4) {
684 int fresult ;
685 int arg1 ;
686 N_Vector arg2 = (N_Vector) 0 ;
687 N_Vector *arg3 = (N_Vector *) 0 ;
688 realtype *arg4 = (realtype *) 0 ;
689 int result;
690
691 arg1 = (int)(*farg1);
692 arg2 = (N_Vector)(farg2);
693 arg3 = (N_Vector *)(farg3);
694 arg4 = (realtype *)(farg4);
695 result = (int)N_VDotProdMulti_Pthreads(arg1,arg2,arg3,arg4);
696 fresult = (int)(result);
697 return fresult;
698 }
699
700
_wrap_FN_VLinearSumVectorArray_Pthreads(int const * farg1,double const * farg2,void * farg3,double const * farg4,void * farg5,void * farg6)701 SWIGEXPORT int _wrap_FN_VLinearSumVectorArray_Pthreads(int const *farg1, double const *farg2, void *farg3, double const *farg4, void *farg5, void *farg6) {
702 int fresult ;
703 int arg1 ;
704 realtype arg2 ;
705 N_Vector *arg3 = (N_Vector *) 0 ;
706 realtype arg4 ;
707 N_Vector *arg5 = (N_Vector *) 0 ;
708 N_Vector *arg6 = (N_Vector *) 0 ;
709 int result;
710
711 arg1 = (int)(*farg1);
712 arg2 = (realtype)(*farg2);
713 arg3 = (N_Vector *)(farg3);
714 arg4 = (realtype)(*farg4);
715 arg5 = (N_Vector *)(farg5);
716 arg6 = (N_Vector *)(farg6);
717 result = (int)N_VLinearSumVectorArray_Pthreads(arg1,arg2,arg3,arg4,arg5,arg6);
718 fresult = (int)(result);
719 return fresult;
720 }
721
722
_wrap_FN_VScaleVectorArray_Pthreads(int const * farg1,double * farg2,void * farg3,void * farg4)723 SWIGEXPORT int _wrap_FN_VScaleVectorArray_Pthreads(int const *farg1, double *farg2, void *farg3, void *farg4) {
724 int fresult ;
725 int arg1 ;
726 realtype *arg2 = (realtype *) 0 ;
727 N_Vector *arg3 = (N_Vector *) 0 ;
728 N_Vector *arg4 = (N_Vector *) 0 ;
729 int result;
730
731 arg1 = (int)(*farg1);
732 arg2 = (realtype *)(farg2);
733 arg3 = (N_Vector *)(farg3);
734 arg4 = (N_Vector *)(farg4);
735 result = (int)N_VScaleVectorArray_Pthreads(arg1,arg2,arg3,arg4);
736 fresult = (int)(result);
737 return fresult;
738 }
739
740
_wrap_FN_VConstVectorArray_Pthreads(int const * farg1,double const * farg2,void * farg3)741 SWIGEXPORT int _wrap_FN_VConstVectorArray_Pthreads(int const *farg1, double const *farg2, void *farg3) {
742 int fresult ;
743 int arg1 ;
744 realtype arg2 ;
745 N_Vector *arg3 = (N_Vector *) 0 ;
746 int result;
747
748 arg1 = (int)(*farg1);
749 arg2 = (realtype)(*farg2);
750 arg3 = (N_Vector *)(farg3);
751 result = (int)N_VConstVectorArray_Pthreads(arg1,arg2,arg3);
752 fresult = (int)(result);
753 return fresult;
754 }
755
756
_wrap_FN_VWrmsNormVectorArray_Pthreads(int const * farg1,void * farg2,void * farg3,double * farg4)757 SWIGEXPORT int _wrap_FN_VWrmsNormVectorArray_Pthreads(int const *farg1, void *farg2, void *farg3, double *farg4) {
758 int fresult ;
759 int arg1 ;
760 N_Vector *arg2 = (N_Vector *) 0 ;
761 N_Vector *arg3 = (N_Vector *) 0 ;
762 realtype *arg4 = (realtype *) 0 ;
763 int result;
764
765 arg1 = (int)(*farg1);
766 arg2 = (N_Vector *)(farg2);
767 arg3 = (N_Vector *)(farg3);
768 arg4 = (realtype *)(farg4);
769 result = (int)N_VWrmsNormVectorArray_Pthreads(arg1,arg2,arg3,arg4);
770 fresult = (int)(result);
771 return fresult;
772 }
773
774
_wrap_FN_VWrmsNormMaskVectorArray_Pthreads(int const * farg1,void * farg2,void * farg3,N_Vector farg4,double * farg5)775 SWIGEXPORT int _wrap_FN_VWrmsNormMaskVectorArray_Pthreads(int const *farg1, void *farg2, void *farg3, N_Vector farg4, double *farg5) {
776 int fresult ;
777 int arg1 ;
778 N_Vector *arg2 = (N_Vector *) 0 ;
779 N_Vector *arg3 = (N_Vector *) 0 ;
780 N_Vector arg4 = (N_Vector) 0 ;
781 realtype *arg5 = (realtype *) 0 ;
782 int result;
783
784 arg1 = (int)(*farg1);
785 arg2 = (N_Vector *)(farg2);
786 arg3 = (N_Vector *)(farg3);
787 arg4 = (N_Vector)(farg4);
788 arg5 = (realtype *)(farg5);
789 result = (int)N_VWrmsNormMaskVectorArray_Pthreads(arg1,arg2,arg3,arg4,arg5);
790 fresult = (int)(result);
791 return fresult;
792 }
793
794
_wrap_FN_VWSqrSumLocal_Pthreads(N_Vector farg1,N_Vector farg2)795 SWIGEXPORT double _wrap_FN_VWSqrSumLocal_Pthreads(N_Vector farg1, N_Vector farg2) {
796 double fresult ;
797 N_Vector arg1 = (N_Vector) 0 ;
798 N_Vector arg2 = (N_Vector) 0 ;
799 realtype result;
800
801 arg1 = (N_Vector)(farg1);
802 arg2 = (N_Vector)(farg2);
803 result = (realtype)N_VWSqrSumLocal_Pthreads(arg1,arg2);
804 fresult = (realtype)(result);
805 return fresult;
806 }
807
808
_wrap_FN_VWSqrSumMaskLocal_Pthreads(N_Vector farg1,N_Vector farg2,N_Vector farg3)809 SWIGEXPORT double _wrap_FN_VWSqrSumMaskLocal_Pthreads(N_Vector farg1, N_Vector farg2, N_Vector farg3) {
810 double fresult ;
811 N_Vector arg1 = (N_Vector) 0 ;
812 N_Vector arg2 = (N_Vector) 0 ;
813 N_Vector arg3 = (N_Vector) 0 ;
814 realtype result;
815
816 arg1 = (N_Vector)(farg1);
817 arg2 = (N_Vector)(farg2);
818 arg3 = (N_Vector)(farg3);
819 result = (realtype)N_VWSqrSumMaskLocal_Pthreads(arg1,arg2,arg3);
820 fresult = (realtype)(result);
821 return fresult;
822 }
823
824
_wrap_FN_VBufSize_Pthreads(N_Vector farg1,int64_t * farg2)825 SWIGEXPORT int _wrap_FN_VBufSize_Pthreads(N_Vector farg1, int64_t *farg2) {
826 int fresult ;
827 N_Vector arg1 = (N_Vector) 0 ;
828 sunindextype *arg2 = (sunindextype *) 0 ;
829 int result;
830
831 arg1 = (N_Vector)(farg1);
832 arg2 = (sunindextype *)(farg2);
833 result = (int)N_VBufSize_Pthreads(arg1,arg2);
834 fresult = (int)(result);
835 return fresult;
836 }
837
838
_wrap_FN_VBufPack_Pthreads(N_Vector farg1,void * farg2)839 SWIGEXPORT int _wrap_FN_VBufPack_Pthreads(N_Vector farg1, void *farg2) {
840 int fresult ;
841 N_Vector arg1 = (N_Vector) 0 ;
842 void *arg2 = (void *) 0 ;
843 int result;
844
845 arg1 = (N_Vector)(farg1);
846 arg2 = (void *)(farg2);
847 result = (int)N_VBufPack_Pthreads(arg1,arg2);
848 fresult = (int)(result);
849 return fresult;
850 }
851
852
_wrap_FN_VBufUnpack_Pthreads(N_Vector farg1,void * farg2)853 SWIGEXPORT int _wrap_FN_VBufUnpack_Pthreads(N_Vector farg1, void *farg2) {
854 int fresult ;
855 N_Vector arg1 = (N_Vector) 0 ;
856 void *arg2 = (void *) 0 ;
857 int result;
858
859 arg1 = (N_Vector)(farg1);
860 arg2 = (void *)(farg2);
861 result = (int)N_VBufUnpack_Pthreads(arg1,arg2);
862 fresult = (int)(result);
863 return fresult;
864 }
865
866
_wrap_FN_VEnableFusedOps_Pthreads(N_Vector farg1,int const * farg2)867 SWIGEXPORT int _wrap_FN_VEnableFusedOps_Pthreads(N_Vector farg1, int const *farg2) {
868 int fresult ;
869 N_Vector arg1 = (N_Vector) 0 ;
870 int arg2 ;
871 int result;
872
873 arg1 = (N_Vector)(farg1);
874 arg2 = (int)(*farg2);
875 result = (int)N_VEnableFusedOps_Pthreads(arg1,arg2);
876 fresult = (int)(result);
877 return fresult;
878 }
879
880
_wrap_FN_VEnableLinearCombination_Pthreads(N_Vector farg1,int const * farg2)881 SWIGEXPORT int _wrap_FN_VEnableLinearCombination_Pthreads(N_Vector farg1, int const *farg2) {
882 int fresult ;
883 N_Vector arg1 = (N_Vector) 0 ;
884 int arg2 ;
885 int result;
886
887 arg1 = (N_Vector)(farg1);
888 arg2 = (int)(*farg2);
889 result = (int)N_VEnableLinearCombination_Pthreads(arg1,arg2);
890 fresult = (int)(result);
891 return fresult;
892 }
893
894
_wrap_FN_VEnableScaleAddMulti_Pthreads(N_Vector farg1,int const * farg2)895 SWIGEXPORT int _wrap_FN_VEnableScaleAddMulti_Pthreads(N_Vector farg1, int const *farg2) {
896 int fresult ;
897 N_Vector arg1 = (N_Vector) 0 ;
898 int arg2 ;
899 int result;
900
901 arg1 = (N_Vector)(farg1);
902 arg2 = (int)(*farg2);
903 result = (int)N_VEnableScaleAddMulti_Pthreads(arg1,arg2);
904 fresult = (int)(result);
905 return fresult;
906 }
907
908
_wrap_FN_VEnableDotProdMulti_Pthreads(N_Vector farg1,int const * farg2)909 SWIGEXPORT int _wrap_FN_VEnableDotProdMulti_Pthreads(N_Vector farg1, int const *farg2) {
910 int fresult ;
911 N_Vector arg1 = (N_Vector) 0 ;
912 int arg2 ;
913 int result;
914
915 arg1 = (N_Vector)(farg1);
916 arg2 = (int)(*farg2);
917 result = (int)N_VEnableDotProdMulti_Pthreads(arg1,arg2);
918 fresult = (int)(result);
919 return fresult;
920 }
921
922
_wrap_FN_VEnableLinearSumVectorArray_Pthreads(N_Vector farg1,int const * farg2)923 SWIGEXPORT int _wrap_FN_VEnableLinearSumVectorArray_Pthreads(N_Vector farg1, int const *farg2) {
924 int fresult ;
925 N_Vector arg1 = (N_Vector) 0 ;
926 int arg2 ;
927 int result;
928
929 arg1 = (N_Vector)(farg1);
930 arg2 = (int)(*farg2);
931 result = (int)N_VEnableLinearSumVectorArray_Pthreads(arg1,arg2);
932 fresult = (int)(result);
933 return fresult;
934 }
935
936
_wrap_FN_VEnableScaleVectorArray_Pthreads(N_Vector farg1,int const * farg2)937 SWIGEXPORT int _wrap_FN_VEnableScaleVectorArray_Pthreads(N_Vector farg1, int const *farg2) {
938 int fresult ;
939 N_Vector arg1 = (N_Vector) 0 ;
940 int arg2 ;
941 int result;
942
943 arg1 = (N_Vector)(farg1);
944 arg2 = (int)(*farg2);
945 result = (int)N_VEnableScaleVectorArray_Pthreads(arg1,arg2);
946 fresult = (int)(result);
947 return fresult;
948 }
949
950
_wrap_FN_VEnableConstVectorArray_Pthreads(N_Vector farg1,int const * farg2)951 SWIGEXPORT int _wrap_FN_VEnableConstVectorArray_Pthreads(N_Vector farg1, int const *farg2) {
952 int fresult ;
953 N_Vector arg1 = (N_Vector) 0 ;
954 int arg2 ;
955 int result;
956
957 arg1 = (N_Vector)(farg1);
958 arg2 = (int)(*farg2);
959 result = (int)N_VEnableConstVectorArray_Pthreads(arg1,arg2);
960 fresult = (int)(result);
961 return fresult;
962 }
963
964
_wrap_FN_VEnableWrmsNormVectorArray_Pthreads(N_Vector farg1,int const * farg2)965 SWIGEXPORT int _wrap_FN_VEnableWrmsNormVectorArray_Pthreads(N_Vector farg1, int const *farg2) {
966 int fresult ;
967 N_Vector arg1 = (N_Vector) 0 ;
968 int arg2 ;
969 int result;
970
971 arg1 = (N_Vector)(farg1);
972 arg2 = (int)(*farg2);
973 result = (int)N_VEnableWrmsNormVectorArray_Pthreads(arg1,arg2);
974 fresult = (int)(result);
975 return fresult;
976 }
977
978
_wrap_FN_VEnableWrmsNormMaskVectorArray_Pthreads(N_Vector farg1,int const * farg2)979 SWIGEXPORT int _wrap_FN_VEnableWrmsNormMaskVectorArray_Pthreads(N_Vector farg1, int const *farg2) {
980 int fresult ;
981 N_Vector arg1 = (N_Vector) 0 ;
982 int arg2 ;
983 int result;
984
985 arg1 = (N_Vector)(farg1);
986 arg2 = (int)(*farg2);
987 result = (int)N_VEnableWrmsNormMaskVectorArray_Pthreads(arg1,arg2);
988 fresult = (int)(result);
989 return fresult;
990 }
991
992
993
994