1 /* Generated by Cython 0.29.12 */
2
3 /* BEGIN: Cython Metadata
4 {
5 "distutils": {
6 "depends": [],
7 "name": "yt.utilities.lib.autogenerated_element_samplers",
8 "sources": [
9 "yt/utilities/lib/autogenerated_element_samplers.pyx"
10 ]
11 },
12 "module_name": "yt.utilities.lib.autogenerated_element_samplers"
13 }
14 END: Cython Metadata */
15
16 #define PY_SSIZE_T_CLEAN
17 #include "Python.h"
18 #ifndef Py_PYTHON_H
19 #error Python headers needed to compile C extensions, please install development version of Python.
20 #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
21 #error Cython requires Python 2.6+ or Python 3.3+.
22 #else
23 #define CYTHON_ABI "0_29_12"
24 #define CYTHON_HEX_VERSION 0x001D0CF0
25 #define CYTHON_FUTURE_DIVISION 0
26 #include <stddef.h>
27 #ifndef offsetof
28 #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
29 #endif
30 #if !defined(WIN32) && !defined(MS_WINDOWS)
31 #ifndef __stdcall
32 #define __stdcall
33 #endif
34 #ifndef __cdecl
35 #define __cdecl
36 #endif
37 #ifndef __fastcall
38 #define __fastcall
39 #endif
40 #endif
41 #ifndef DL_IMPORT
42 #define DL_IMPORT(t) t
43 #endif
44 #ifndef DL_EXPORT
45 #define DL_EXPORT(t) t
46 #endif
47 #define __PYX_COMMA ,
48 #ifndef HAVE_LONG_LONG
49 #if PY_VERSION_HEX >= 0x02070000
50 #define HAVE_LONG_LONG
51 #endif
52 #endif
53 #ifndef PY_LONG_LONG
54 #define PY_LONG_LONG LONG_LONG
55 #endif
56 #ifndef Py_HUGE_VAL
57 #define Py_HUGE_VAL HUGE_VAL
58 #endif
59 #ifdef PYPY_VERSION
60 #define CYTHON_COMPILING_IN_PYPY 1
61 #define CYTHON_COMPILING_IN_PYSTON 0
62 #define CYTHON_COMPILING_IN_CPYTHON 0
63 #undef CYTHON_USE_TYPE_SLOTS
64 #define CYTHON_USE_TYPE_SLOTS 0
65 #undef CYTHON_USE_PYTYPE_LOOKUP
66 #define CYTHON_USE_PYTYPE_LOOKUP 0
67 #if PY_VERSION_HEX < 0x03050000
68 #undef CYTHON_USE_ASYNC_SLOTS
69 #define CYTHON_USE_ASYNC_SLOTS 0
70 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
71 #define CYTHON_USE_ASYNC_SLOTS 1
72 #endif
73 #undef CYTHON_USE_PYLIST_INTERNALS
74 #define CYTHON_USE_PYLIST_INTERNALS 0
75 #undef CYTHON_USE_UNICODE_INTERNALS
76 #define CYTHON_USE_UNICODE_INTERNALS 0
77 #undef CYTHON_USE_UNICODE_WRITER
78 #define CYTHON_USE_UNICODE_WRITER 0
79 #undef CYTHON_USE_PYLONG_INTERNALS
80 #define CYTHON_USE_PYLONG_INTERNALS 0
81 #undef CYTHON_AVOID_BORROWED_REFS
82 #define CYTHON_AVOID_BORROWED_REFS 1
83 #undef CYTHON_ASSUME_SAFE_MACROS
84 #define CYTHON_ASSUME_SAFE_MACROS 0
85 #undef CYTHON_UNPACK_METHODS
86 #define CYTHON_UNPACK_METHODS 0
87 #undef CYTHON_FAST_THREAD_STATE
88 #define CYTHON_FAST_THREAD_STATE 0
89 #undef CYTHON_FAST_PYCALL
90 #define CYTHON_FAST_PYCALL 0
91 #undef CYTHON_PEP489_MULTI_PHASE_INIT
92 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
93 #undef CYTHON_USE_TP_FINALIZE
94 #define CYTHON_USE_TP_FINALIZE 0
95 #undef CYTHON_USE_DICT_VERSIONS
96 #define CYTHON_USE_DICT_VERSIONS 0
97 #undef CYTHON_USE_EXC_INFO_STACK
98 #define CYTHON_USE_EXC_INFO_STACK 0
99 #elif defined(PYSTON_VERSION)
100 #define CYTHON_COMPILING_IN_PYPY 0
101 #define CYTHON_COMPILING_IN_PYSTON 1
102 #define CYTHON_COMPILING_IN_CPYTHON 0
103 #ifndef CYTHON_USE_TYPE_SLOTS
104 #define CYTHON_USE_TYPE_SLOTS 1
105 #endif
106 #undef CYTHON_USE_PYTYPE_LOOKUP
107 #define CYTHON_USE_PYTYPE_LOOKUP 0
108 #undef CYTHON_USE_ASYNC_SLOTS
109 #define CYTHON_USE_ASYNC_SLOTS 0
110 #undef CYTHON_USE_PYLIST_INTERNALS
111 #define CYTHON_USE_PYLIST_INTERNALS 0
112 #ifndef CYTHON_USE_UNICODE_INTERNALS
113 #define CYTHON_USE_UNICODE_INTERNALS 1
114 #endif
115 #undef CYTHON_USE_UNICODE_WRITER
116 #define CYTHON_USE_UNICODE_WRITER 0
117 #undef CYTHON_USE_PYLONG_INTERNALS
118 #define CYTHON_USE_PYLONG_INTERNALS 0
119 #ifndef CYTHON_AVOID_BORROWED_REFS
120 #define CYTHON_AVOID_BORROWED_REFS 0
121 #endif
122 #ifndef CYTHON_ASSUME_SAFE_MACROS
123 #define CYTHON_ASSUME_SAFE_MACROS 1
124 #endif
125 #ifndef CYTHON_UNPACK_METHODS
126 #define CYTHON_UNPACK_METHODS 1
127 #endif
128 #undef CYTHON_FAST_THREAD_STATE
129 #define CYTHON_FAST_THREAD_STATE 0
130 #undef CYTHON_FAST_PYCALL
131 #define CYTHON_FAST_PYCALL 0
132 #undef CYTHON_PEP489_MULTI_PHASE_INIT
133 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
134 #undef CYTHON_USE_TP_FINALIZE
135 #define CYTHON_USE_TP_FINALIZE 0
136 #undef CYTHON_USE_DICT_VERSIONS
137 #define CYTHON_USE_DICT_VERSIONS 0
138 #undef CYTHON_USE_EXC_INFO_STACK
139 #define CYTHON_USE_EXC_INFO_STACK 0
140 #else
141 #define CYTHON_COMPILING_IN_PYPY 0
142 #define CYTHON_COMPILING_IN_PYSTON 0
143 #define CYTHON_COMPILING_IN_CPYTHON 1
144 #ifndef CYTHON_USE_TYPE_SLOTS
145 #define CYTHON_USE_TYPE_SLOTS 1
146 #endif
147 #if PY_VERSION_HEX < 0x02070000
148 #undef CYTHON_USE_PYTYPE_LOOKUP
149 #define CYTHON_USE_PYTYPE_LOOKUP 0
150 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
151 #define CYTHON_USE_PYTYPE_LOOKUP 1
152 #endif
153 #if PY_MAJOR_VERSION < 3
154 #undef CYTHON_USE_ASYNC_SLOTS
155 #define CYTHON_USE_ASYNC_SLOTS 0
156 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
157 #define CYTHON_USE_ASYNC_SLOTS 1
158 #endif
159 #if PY_VERSION_HEX < 0x02070000
160 #undef CYTHON_USE_PYLONG_INTERNALS
161 #define CYTHON_USE_PYLONG_INTERNALS 0
162 #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
163 #define CYTHON_USE_PYLONG_INTERNALS 1
164 #endif
165 #ifndef CYTHON_USE_PYLIST_INTERNALS
166 #define CYTHON_USE_PYLIST_INTERNALS 1
167 #endif
168 #ifndef CYTHON_USE_UNICODE_INTERNALS
169 #define CYTHON_USE_UNICODE_INTERNALS 1
170 #endif
171 #if PY_VERSION_HEX < 0x030300F0
172 #undef CYTHON_USE_UNICODE_WRITER
173 #define CYTHON_USE_UNICODE_WRITER 0
174 #elif !defined(CYTHON_USE_UNICODE_WRITER)
175 #define CYTHON_USE_UNICODE_WRITER 1
176 #endif
177 #ifndef CYTHON_AVOID_BORROWED_REFS
178 #define CYTHON_AVOID_BORROWED_REFS 0
179 #endif
180 #ifndef CYTHON_ASSUME_SAFE_MACROS
181 #define CYTHON_ASSUME_SAFE_MACROS 1
182 #endif
183 #ifndef CYTHON_UNPACK_METHODS
184 #define CYTHON_UNPACK_METHODS 1
185 #endif
186 #ifndef CYTHON_FAST_THREAD_STATE
187 #define CYTHON_FAST_THREAD_STATE 1
188 #endif
189 #ifndef CYTHON_FAST_PYCALL
190 #define CYTHON_FAST_PYCALL 1
191 #endif
192 #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
193 #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
194 #endif
195 #ifndef CYTHON_USE_TP_FINALIZE
196 #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
197 #endif
198 #ifndef CYTHON_USE_DICT_VERSIONS
199 #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
200 #endif
201 #ifndef CYTHON_USE_EXC_INFO_STACK
202 #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
203 #endif
204 #endif
205 #if !defined(CYTHON_FAST_PYCCALL)
206 #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
207 #endif
208 #if CYTHON_USE_PYLONG_INTERNALS
209 #include "longintrepr.h"
210 #undef SHIFT
211 #undef BASE
212 #undef MASK
213 #ifdef SIZEOF_VOID_P
214 enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
215 #endif
216 #endif
217 #ifndef __has_attribute
218 #define __has_attribute(x) 0
219 #endif
220 #ifndef __has_cpp_attribute
221 #define __has_cpp_attribute(x) 0
222 #endif
223 #ifndef CYTHON_RESTRICT
224 #if defined(__GNUC__)
225 #define CYTHON_RESTRICT __restrict__
226 #elif defined(_MSC_VER) && _MSC_VER >= 1400
227 #define CYTHON_RESTRICT __restrict
228 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
229 #define CYTHON_RESTRICT restrict
230 #else
231 #define CYTHON_RESTRICT
232 #endif
233 #endif
234 #ifndef CYTHON_UNUSED
235 # if defined(__GNUC__)
236 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
237 # define CYTHON_UNUSED __attribute__ ((__unused__))
238 # else
239 # define CYTHON_UNUSED
240 # endif
241 # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
242 # define CYTHON_UNUSED __attribute__ ((__unused__))
243 # else
244 # define CYTHON_UNUSED
245 # endif
246 #endif
247 #ifndef CYTHON_MAYBE_UNUSED_VAR
248 # if defined(__cplusplus)
CYTHON_MAYBE_UNUSED_VAR(const T &)249 template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
250 # else
251 # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
252 # endif
253 #endif
254 #ifndef CYTHON_NCP_UNUSED
255 # if CYTHON_COMPILING_IN_CPYTHON
256 # define CYTHON_NCP_UNUSED
257 # else
258 # define CYTHON_NCP_UNUSED CYTHON_UNUSED
259 # endif
260 #endif
261 #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
262 #ifdef _MSC_VER
263 #ifndef _MSC_STDINT_H_
264 #if _MSC_VER < 1300
265 typedef unsigned char uint8_t;
266 typedef unsigned int uint32_t;
267 #else
268 typedef unsigned __int8 uint8_t;
269 typedef unsigned __int32 uint32_t;
270 #endif
271 #endif
272 #else
273 #include <stdint.h>
274 #endif
275 #ifndef CYTHON_FALLTHROUGH
276 #if defined(__cplusplus) && __cplusplus >= 201103L
277 #if __has_cpp_attribute(fallthrough)
278 #define CYTHON_FALLTHROUGH [[fallthrough]]
279 #elif __has_cpp_attribute(clang::fallthrough)
280 #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
281 #elif __has_cpp_attribute(gnu::fallthrough)
282 #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
283 #endif
284 #endif
285 #ifndef CYTHON_FALLTHROUGH
286 #if __has_attribute(fallthrough)
287 #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
288 #else
289 #define CYTHON_FALLTHROUGH
290 #endif
291 #endif
292 #if defined(__clang__ ) && defined(__apple_build_version__)
293 #if __apple_build_version__ < 7000000
294 #undef CYTHON_FALLTHROUGH
295 #define CYTHON_FALLTHROUGH
296 #endif
297 #endif
298 #endif
299
300 #ifndef CYTHON_INLINE
301 #if defined(__clang__)
302 #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
303 #elif defined(__GNUC__)
304 #define CYTHON_INLINE __inline__
305 #elif defined(_MSC_VER)
306 #define CYTHON_INLINE __inline
307 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
308 #define CYTHON_INLINE inline
309 #else
310 #define CYTHON_INLINE
311 #endif
312 #endif
313
314 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
315 #define Py_OptimizeFlag 0
316 #endif
317 #define __PYX_BUILD_PY_SSIZE_T "n"
318 #define CYTHON_FORMAT_SSIZE_T "z"
319 #if PY_MAJOR_VERSION < 3
320 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
321 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
322 PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
323 #define __Pyx_DefaultClassType PyClass_Type
324 #else
325 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
326 #if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2
327 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
328 PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
329 #else
330 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
331 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
332 #endif
333 #define __Pyx_DefaultClassType PyType_Type
334 #endif
335 #ifndef Py_TPFLAGS_CHECKTYPES
336 #define Py_TPFLAGS_CHECKTYPES 0
337 #endif
338 #ifndef Py_TPFLAGS_HAVE_INDEX
339 #define Py_TPFLAGS_HAVE_INDEX 0
340 #endif
341 #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
342 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
343 #endif
344 #ifndef Py_TPFLAGS_HAVE_FINALIZE
345 #define Py_TPFLAGS_HAVE_FINALIZE 0
346 #endif
347 #ifndef METH_STACKLESS
348 #define METH_STACKLESS 0
349 #endif
350 #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
351 #ifndef METH_FASTCALL
352 #define METH_FASTCALL 0x80
353 #endif
354 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
355 typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
356 Py_ssize_t nargs, PyObject *kwnames);
357 #else
358 #define __Pyx_PyCFunctionFast _PyCFunctionFast
359 #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
360 #endif
361 #if CYTHON_FAST_PYCCALL
362 #define __Pyx_PyFastCFunction_Check(func)\
363 ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
364 #else
365 #define __Pyx_PyFastCFunction_Check(func) 0
366 #endif
367 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
368 #define PyObject_Malloc(s) PyMem_Malloc(s)
369 #define PyObject_Free(p) PyMem_Free(p)
370 #define PyObject_Realloc(p) PyMem_Realloc(p)
371 #endif
372 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
373 #define PyMem_RawMalloc(n) PyMem_Malloc(n)
374 #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
375 #define PyMem_RawFree(p) PyMem_Free(p)
376 #endif
377 #if CYTHON_COMPILING_IN_PYSTON
378 #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
379 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
380 #else
381 #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
382 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
383 #endif
384 #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
385 #define __Pyx_PyThreadState_Current PyThreadState_GET()
386 #elif PY_VERSION_HEX >= 0x03060000
387 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
388 #elif PY_VERSION_HEX >= 0x03000000
389 #define __Pyx_PyThreadState_Current PyThreadState_GET()
390 #else
391 #define __Pyx_PyThreadState_Current _PyThreadState_Current
392 #endif
393 #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
394 #include "pythread.h"
395 #define Py_tss_NEEDS_INIT 0
396 typedef int Py_tss_t;
PyThread_tss_create(Py_tss_t * key)397 static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
398 *key = PyThread_create_key();
399 return 0;
400 }
PyThread_tss_alloc(void)401 static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
402 Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
403 *key = Py_tss_NEEDS_INIT;
404 return key;
405 }
PyThread_tss_free(Py_tss_t * key)406 static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
407 PyObject_Free(key);
408 }
PyThread_tss_is_created(Py_tss_t * key)409 static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
410 return *key != Py_tss_NEEDS_INIT;
411 }
PyThread_tss_delete(Py_tss_t * key)412 static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
413 PyThread_delete_key(*key);
414 *key = Py_tss_NEEDS_INIT;
415 }
PyThread_tss_set(Py_tss_t * key,void * value)416 static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
417 return PyThread_set_key_value(*key, value);
418 }
PyThread_tss_get(Py_tss_t * key)419 static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
420 return PyThread_get_key_value(*key);
421 }
422 #endif
423 #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
424 #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
425 #else
426 #define __Pyx_PyDict_NewPresized(n) PyDict_New()
427 #endif
428 #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
429 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
430 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
431 #else
432 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
433 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
434 #endif
435 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
436 #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
437 #else
438 #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
439 #endif
440 #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
441 #define CYTHON_PEP393_ENABLED 1
442 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
443 0 : _PyUnicode_Ready((PyObject *)(op)))
444 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
445 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
446 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
447 #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
448 #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
449 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
450 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
451 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
452 #else
453 #define CYTHON_PEP393_ENABLED 0
454 #define PyUnicode_1BYTE_KIND 1
455 #define PyUnicode_2BYTE_KIND 2
456 #define PyUnicode_4BYTE_KIND 4
457 #define __Pyx_PyUnicode_READY(op) (0)
458 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
459 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
460 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
461 #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
462 #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
463 #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
464 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
465 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
466 #endif
467 #if CYTHON_COMPILING_IN_PYPY
468 #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
469 #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
470 #else
471 #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
472 #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
473 PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
474 #endif
475 #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
476 #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
477 #endif
478 #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
479 #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
480 #endif
481 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
482 #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
483 #endif
484 #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
485 #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
486 #if PY_MAJOR_VERSION >= 3
487 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
488 #else
489 #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
490 #endif
491 #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
492 #define PyObject_ASCII(o) PyObject_Repr(o)
493 #endif
494 #if PY_MAJOR_VERSION >= 3
495 #define PyBaseString_Type PyUnicode_Type
496 #define PyStringObject PyUnicodeObject
497 #define PyString_Type PyUnicode_Type
498 #define PyString_Check PyUnicode_Check
499 #define PyString_CheckExact PyUnicode_CheckExact
500 #define PyObject_Unicode PyObject_Str
501 #endif
502 #if PY_MAJOR_VERSION >= 3
503 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
504 #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
505 #else
506 #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
507 #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
508 #endif
509 #ifndef PySet_CheckExact
510 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
511 #endif
512 #if CYTHON_ASSUME_SAFE_MACROS
513 #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
514 #else
515 #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
516 #endif
517 #if PY_MAJOR_VERSION >= 3
518 #define PyIntObject PyLongObject
519 #define PyInt_Type PyLong_Type
520 #define PyInt_Check(op) PyLong_Check(op)
521 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
522 #define PyInt_FromString PyLong_FromString
523 #define PyInt_FromUnicode PyLong_FromUnicode
524 #define PyInt_FromLong PyLong_FromLong
525 #define PyInt_FromSize_t PyLong_FromSize_t
526 #define PyInt_FromSsize_t PyLong_FromSsize_t
527 #define PyInt_AsLong PyLong_AsLong
528 #define PyInt_AS_LONG PyLong_AS_LONG
529 #define PyInt_AsSsize_t PyLong_AsSsize_t
530 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
531 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
532 #define PyNumber_Int PyNumber_Long
533 #endif
534 #if PY_MAJOR_VERSION >= 3
535 #define PyBoolObject PyLongObject
536 #endif
537 #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
538 #ifndef PyUnicode_InternFromString
539 #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
540 #endif
541 #endif
542 #if PY_VERSION_HEX < 0x030200A4
543 typedef long Py_hash_t;
544 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
545 #define __Pyx_PyInt_AsHash_t PyInt_AsLong
546 #else
547 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
548 #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
549 #endif
550 #if PY_MAJOR_VERSION >= 3
551 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func))
552 #else
553 #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
554 #endif
555 #if CYTHON_USE_ASYNC_SLOTS
556 #if PY_VERSION_HEX >= 0x030500B1
557 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
558 #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
559 #else
560 #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
561 #endif
562 #else
563 #define __Pyx_PyType_AsAsync(obj) NULL
564 #endif
565 #ifndef __Pyx_PyAsyncMethodsStruct
566 typedef struct {
567 unaryfunc am_await;
568 unaryfunc am_aiter;
569 unaryfunc am_anext;
570 } __Pyx_PyAsyncMethodsStruct;
571 #endif
572
573 #if defined(WIN32) || defined(MS_WINDOWS)
574 #define _USE_MATH_DEFINES
575 #endif
576 #include <math.h>
577 #ifdef NAN
578 #define __PYX_NAN() ((float) NAN)
579 #else
__PYX_NAN()580 static CYTHON_INLINE float __PYX_NAN() {
581 float value;
582 memset(&value, 0xFF, sizeof(value));
583 return value;
584 }
585 #endif
586 #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
587 #define __Pyx_truncl trunc
588 #else
589 #define __Pyx_truncl truncl
590 #endif
591
592
593 #define __PYX_ERR(f_index, lineno, Ln_error) \
594 { \
595 __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
596 }
597
598 #ifndef __PYX_EXTERN_C
599 #ifdef __cplusplus
600 #define __PYX_EXTERN_C extern "C"
601 #else
602 #define __PYX_EXTERN_C extern
603 #endif
604 #endif
605
606 #define __PYX_HAVE__yt__utilities__lib__autogenerated_element_samplers
607 #define __PYX_HAVE_API__yt__utilities__lib__autogenerated_element_samplers
608 /* Early includes */
609 #include <math.h>
610 #ifdef _OPENMP
611 #include <omp.h>
612 #endif /* _OPENMP */
613
614 #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
615 #define CYTHON_WITHOUT_ASSERTIONS
616 #endif
617
618 typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
619 const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
620
621 #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
622 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
623 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
624 #define __PYX_DEFAULT_STRING_ENCODING ""
625 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
626 #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
627 #define __Pyx_uchar_cast(c) ((unsigned char)c)
628 #define __Pyx_long_cast(x) ((long)x)
629 #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
630 (sizeof(type) < sizeof(Py_ssize_t)) ||\
631 (sizeof(type) > sizeof(Py_ssize_t) &&\
632 likely(v < (type)PY_SSIZE_T_MAX ||\
633 v == (type)PY_SSIZE_T_MAX) &&\
634 (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
635 v == (type)PY_SSIZE_T_MIN))) ||\
636 (sizeof(type) == sizeof(Py_ssize_t) &&\
637 (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
638 v == (type)PY_SSIZE_T_MAX))) )
__Pyx_is_valid_index(Py_ssize_t i,Py_ssize_t limit)639 static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
640 return (size_t) i < (size_t) limit;
641 }
642 #if defined (__cplusplus) && __cplusplus >= 201103L
643 #include <cstdlib>
644 #define __Pyx_sst_abs(value) std::abs(value)
645 #elif SIZEOF_INT >= SIZEOF_SIZE_T
646 #define __Pyx_sst_abs(value) abs(value)
647 #elif SIZEOF_LONG >= SIZEOF_SIZE_T
648 #define __Pyx_sst_abs(value) labs(value)
649 #elif defined (_MSC_VER)
650 #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
651 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
652 #define __Pyx_sst_abs(value) llabs(value)
653 #elif defined (__GNUC__)
654 #define __Pyx_sst_abs(value) __builtin_llabs(value)
655 #else
656 #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
657 #endif
658 static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
659 static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
660 #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
661 #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
662 #define __Pyx_PyBytes_FromString PyBytes_FromString
663 #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
664 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
665 #if PY_MAJOR_VERSION < 3
666 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
667 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
668 #else
669 #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
670 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
671 #endif
672 #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
673 #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
674 #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
675 #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
676 #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
677 #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
678 #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
679 #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
680 #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
681 #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
682 #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
683 #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
684 #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
685 #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
686 #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
687 #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
__Pyx_Py_UNICODE_strlen(const Py_UNICODE * u)688 static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
689 const Py_UNICODE *u_end = u;
690 while (*u_end++) ;
691 return (size_t)(u_end - u - 1);
692 }
693 #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
694 #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
695 #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
696 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
697 #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
698 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
699 static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
700 static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
701 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
702 #define __Pyx_PySequence_Tuple(obj)\
703 (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
704 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
705 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
706 #if CYTHON_ASSUME_SAFE_MACROS
707 #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
708 #else
709 #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
710 #endif
711 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
712 #if PY_MAJOR_VERSION >= 3
713 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
714 #else
715 #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
716 #endif
717 #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
718 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
719 static int __Pyx_sys_getdefaultencoding_not_ascii;
__Pyx_init_sys_getdefaultencoding_params(void)720 static int __Pyx_init_sys_getdefaultencoding_params(void) {
721 PyObject* sys;
722 PyObject* default_encoding = NULL;
723 PyObject* ascii_chars_u = NULL;
724 PyObject* ascii_chars_b = NULL;
725 const char* default_encoding_c;
726 sys = PyImport_ImportModule("sys");
727 if (!sys) goto bad;
728 default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
729 Py_DECREF(sys);
730 if (!default_encoding) goto bad;
731 default_encoding_c = PyBytes_AsString(default_encoding);
732 if (!default_encoding_c) goto bad;
733 if (strcmp(default_encoding_c, "ascii") == 0) {
734 __Pyx_sys_getdefaultencoding_not_ascii = 0;
735 } else {
736 char ascii_chars[128];
737 int c;
738 for (c = 0; c < 128; c++) {
739 ascii_chars[c] = c;
740 }
741 __Pyx_sys_getdefaultencoding_not_ascii = 1;
742 ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
743 if (!ascii_chars_u) goto bad;
744 ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
745 if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
746 PyErr_Format(
747 PyExc_ValueError,
748 "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
749 default_encoding_c);
750 goto bad;
751 }
752 Py_DECREF(ascii_chars_u);
753 Py_DECREF(ascii_chars_b);
754 }
755 Py_DECREF(default_encoding);
756 return 0;
757 bad:
758 Py_XDECREF(default_encoding);
759 Py_XDECREF(ascii_chars_u);
760 Py_XDECREF(ascii_chars_b);
761 return -1;
762 }
763 #endif
764 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
765 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
766 #else
767 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
768 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
769 static char* __PYX_DEFAULT_STRING_ENCODING;
__Pyx_init_sys_getdefaultencoding_params(void)770 static int __Pyx_init_sys_getdefaultencoding_params(void) {
771 PyObject* sys;
772 PyObject* default_encoding = NULL;
773 char* default_encoding_c;
774 sys = PyImport_ImportModule("sys");
775 if (!sys) goto bad;
776 default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
777 Py_DECREF(sys);
778 if (!default_encoding) goto bad;
779 default_encoding_c = PyBytes_AsString(default_encoding);
780 if (!default_encoding_c) goto bad;
781 __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
782 if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
783 strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
784 Py_DECREF(default_encoding);
785 return 0;
786 bad:
787 Py_XDECREF(default_encoding);
788 return -1;
789 }
790 #endif
791 #endif
792
793
794 /* Test for GCC > 2.95 */
795 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
796 #define likely(x) __builtin_expect(!!(x), 1)
797 #define unlikely(x) __builtin_expect(!!(x), 0)
798 #else /* !__GNUC__ or GCC < 2.95 */
799 #define likely(x) (x)
800 #define unlikely(x) (x)
801 #endif /* __GNUC__ */
__Pyx_pretend_to_initialize(void * ptr)802 static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
803
804 static PyObject *__pyx_m = NULL;
805 static PyObject *__pyx_d;
806 static PyObject *__pyx_b;
807 static PyObject *__pyx_cython_runtime = NULL;
808 static PyObject *__pyx_empty_tuple;
809 static PyObject *__pyx_empty_bytes;
810 static PyObject *__pyx_empty_unicode;
811 static int __pyx_lineno;
812 static int __pyx_clineno = 0;
813 static const char * __pyx_cfilenm= __FILE__;
814 static const char *__pyx_filename;
815
816
817 static const char *__pyx_f[] = {
818 "yt/utilities/lib/autogenerated_element_samplers.pyx",
819 };
820
821 /*--- Type declarations ---*/
822
823 /* --- Runtime support code (head) --- */
824 /* Refnanny.proto */
825 #ifndef CYTHON_REFNANNY
826 #define CYTHON_REFNANNY 0
827 #endif
828 #if CYTHON_REFNANNY
829 typedef struct {
830 void (*INCREF)(void*, PyObject*, int);
831 void (*DECREF)(void*, PyObject*, int);
832 void (*GOTREF)(void*, PyObject*, int);
833 void (*GIVEREF)(void*, PyObject*, int);
834 void* (*SetupContext)(const char*, int, const char*);
835 void (*FinishContext)(void**);
836 } __Pyx_RefNannyAPIStruct;
837 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
838 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
839 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
840 #ifdef WITH_THREAD
841 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
842 if (acquire_gil) {\
843 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
844 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
845 PyGILState_Release(__pyx_gilstate_save);\
846 } else {\
847 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
848 }
849 #else
850 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
851 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
852 #endif
853 #define __Pyx_RefNannyFinishContext()\
854 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
855 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
856 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
857 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
858 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
859 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
860 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
861 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
862 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
863 #else
864 #define __Pyx_RefNannyDeclarations
865 #define __Pyx_RefNannySetupContext(name, acquire_gil)
866 #define __Pyx_RefNannyFinishContext()
867 #define __Pyx_INCREF(r) Py_INCREF(r)
868 #define __Pyx_DECREF(r) Py_DECREF(r)
869 #define __Pyx_GOTREF(r)
870 #define __Pyx_GIVEREF(r)
871 #define __Pyx_XINCREF(r) Py_XINCREF(r)
872 #define __Pyx_XDECREF(r) Py_XDECREF(r)
873 #define __Pyx_XGOTREF(r)
874 #define __Pyx_XGIVEREF(r)
875 #endif
876 #define __Pyx_XDECREF_SET(r, v) do {\
877 PyObject *tmp = (PyObject *) r;\
878 r = v; __Pyx_XDECREF(tmp);\
879 } while (0)
880 #define __Pyx_DECREF_SET(r, v) do {\
881 PyObject *tmp = (PyObject *) r;\
882 r = v; __Pyx_DECREF(tmp);\
883 } while (0)
884 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
885 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
886
887 /* PyDictVersioning.proto */
888 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
889 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
890 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
891 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
892 (version_var) = __PYX_GET_DICT_VERSION(dict);\
893 (cache_var) = (value);
894 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
895 static PY_UINT64_T __pyx_dict_version = 0;\
896 static PyObject *__pyx_dict_cached_value = NULL;\
897 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
898 (VAR) = __pyx_dict_cached_value;\
899 } else {\
900 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
901 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
902 }\
903 }
904 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
905 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
906 static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
907 #else
908 #define __PYX_GET_DICT_VERSION(dict) (0)
909 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
910 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
911 #endif
912
913 /* PyObjectGetAttrStr.proto */
914 #if CYTHON_USE_TYPE_SLOTS
915 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
916 #else
917 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
918 #endif
919
920 /* PyThreadStateGet.proto */
921 #if CYTHON_FAST_THREAD_STATE
922 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
923 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
924 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
925 #else
926 #define __Pyx_PyThreadState_declare
927 #define __Pyx_PyThreadState_assign
928 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
929 #endif
930
931 /* PyErrFetchRestore.proto */
932 #if CYTHON_FAST_THREAD_STATE
933 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
934 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
935 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
936 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
937 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
938 static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
939 static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
940 #if CYTHON_COMPILING_IN_CPYTHON
941 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
942 #else
943 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
944 #endif
945 #else
946 #define __Pyx_PyErr_Clear() PyErr_Clear()
947 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
948 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
949 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
950 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
951 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
952 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
953 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
954 #endif
955
956 /* CLineInTraceback.proto */
957 #ifdef CYTHON_CLINE_IN_TRACEBACK
958 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
959 #else
960 static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
961 #endif
962
963 /* CodeObjectCache.proto */
964 typedef struct {
965 PyCodeObject* code_object;
966 int code_line;
967 } __Pyx_CodeObjectCacheEntry;
968 struct __Pyx_CodeObjectCache {
969 int count;
970 int max_count;
971 __Pyx_CodeObjectCacheEntry* entries;
972 };
973 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
974 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
975 static PyCodeObject *__pyx_find_code_object(int code_line);
976 static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
977
978 /* AddTraceback.proto */
979 static void __Pyx_AddTraceback(const char *funcname, int c_line,
980 int py_line, const char *filename);
981
982 /* CIntToPy.proto */
983 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);
984
985 /* CIntFromPy.proto */
986 static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);
987
988 /* CIntFromPy.proto */
989 static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);
990
991 /* FastTypeChecks.proto */
992 #if CYTHON_COMPILING_IN_CPYTHON
993 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
994 static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
995 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
996 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
997 #else
998 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
999 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1000 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1001 #endif
1002 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1003
1004 /* CheckBinaryVersion.proto */
1005 static int __Pyx_check_binary_version(void);
1006
1007 /* FunctionExport.proto */
1008 static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
1009
1010 /* InitStrings.proto */
1011 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
1012
1013
1014 /* Module declarations from 'cython' */
1015
1016 /* Module declarations from 'libc.math' */
1017
1018 /* Module declarations from 'yt.utilities.lib.autogenerated_element_samplers' */
1019 #define __Pyx_MODULE_NAME "yt.utilities.lib.autogenerated_element_samplers"
1020 extern int __pyx_module_is_main_yt__utilities__lib__autogenerated_element_samplers;
1021 int __pyx_module_is_main_yt__utilities__lib__autogenerated_element_samplers = 0;
1022
1023 /* Implementation of 'yt.utilities.lib.autogenerated_element_samplers' */
1024 static const char __pyx_k_main[] = "__main__";
1025 static const char __pyx_k_name[] = "__name__";
1026 static const char __pyx_k_test[] = "__test__";
1027 static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
1028 static PyObject *__pyx_n_s_cline_in_traceback;
1029 static PyObject *__pyx_n_s_main;
1030 static PyObject *__pyx_n_s_name;
1031 static PyObject *__pyx_n_s_test;
1032 /* Late includes */
1033
1034 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":14
1035 * @cython.wraparound(False)
1036 * @cython.cdivision(True)
1037 * cdef void Q1Function3D(double* fx, # <<<<<<<<<<<<<<
1038 * double* x,
1039 * double* vertices,
1040 */
1041
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Function3D(double * __pyx_v_fx,double * __pyx_v_x,double * __pyx_v_vertices,double * __pyx_v_phys_x)1042 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Function3D(double *__pyx_v_fx, double *__pyx_v_x, double *__pyx_v_vertices, double *__pyx_v_phys_x) {
1043
1044 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":18
1045 * double* vertices,
1046 * double* phys_x) nogil:
1047 * fx[0] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[12] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[21] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[15] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[18] - phys_x[0]; # <<<<<<<<<<<<<<
1048 * fx[1] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[22] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[19] - phys_x[1];
1049 * fx[2] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[23] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[5] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[8] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[20] - phys_x[2];
1050 */
1051 (__pyx_v_fx[0]) = ((((((((((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[0])) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[12]))) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[9]))) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[21]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[3]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[15]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[6]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[18]))) - (__pyx_v_phys_x[0]));
1052
1053 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":19
1054 * double* phys_x) nogil:
1055 * fx[0] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[12] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[21] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[15] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[18] - phys_x[0];
1056 * fx[1] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[22] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[19] - phys_x[1]; # <<<<<<<<<<<<<<
1057 * fx[2] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[23] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[5] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[8] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[20] - phys_x[2];
1058 *
1059 */
1060 (__pyx_v_fx[1]) = ((((((((((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[1])) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[13]))) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[10]))) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[22]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[4]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[16]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[7]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[19]))) - (__pyx_v_phys_x[1]));
1061
1062 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":20
1063 * fx[0] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[12] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[21] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[15] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[18] - phys_x[0];
1064 * fx[1] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[22] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[19] - phys_x[1];
1065 * fx[2] = 0.125*(1 - x[0])*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[0])*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[0])*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 - x[0])*(1 + x[1])*(1 + x[2])*vertices[23] + 0.125*(1 + x[0])*(1 - x[1])*(1 - x[2])*vertices[5] + 0.125*(1 + x[0])*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[0])*(1 + x[1])*(1 - x[2])*vertices[8] + 0.125*(1 + x[0])*(1 + x[1])*(1 + x[2])*vertices[20] - phys_x[2]; # <<<<<<<<<<<<<<
1066 *
1067 *
1068 */
1069 (__pyx_v_fx[2]) = ((((((((((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[2])) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[14]))) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[11]))) + ((((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[23]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[5]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[17]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[8]))) + ((((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[20]))) - (__pyx_v_phys_x[2]));
1070
1071 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":14
1072 * @cython.wraparound(False)
1073 * @cython.cdivision(True)
1074 * cdef void Q1Function3D(double* fx, # <<<<<<<<<<<<<<
1075 * double* x,
1076 * double* vertices,
1077 */
1078
1079 /* function exit code */
1080 }
1081
1082 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":26
1083 * @cython.wraparound(False)
1084 * @cython.cdivision(True)
1085 * cdef void Q1Jacobian3D(double* rcol, # <<<<<<<<<<<<<<
1086 * double* scol,
1087 * double* tcol,
1088 */
1089
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Jacobian3D(double * __pyx_v_rcol,double * __pyx_v_scol,double * __pyx_v_tcol,double * __pyx_v_x,double * __pyx_v_vertices,CYTHON_UNUSED double * __pyx_v_phys_x)1090 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Jacobian3D(double *__pyx_v_rcol, double *__pyx_v_scol, double *__pyx_v_tcol, double *__pyx_v_x, double *__pyx_v_vertices, CYTHON_UNUSED double *__pyx_v_phys_x) {
1091
1092 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":32
1093 * double* vertices,
1094 * double* phys_x) nogil:
1095 * rcol[0] = -0.125*(1 - x[1])*(1 - x[2])*vertices[0] + 0.125*(1 - x[1])*(1 - x[2])*vertices[3] - 0.125*(1 - x[1])*(1 + x[2])*vertices[12] + 0.125*(1 - x[1])*(1 + x[2])*vertices[15] + 0.125*(1 + x[1])*(1 - x[2])*vertices[6] - 0.125*(1 + x[1])*(1 - x[2])*vertices[9] + 0.125*(1 + x[1])*(1 + x[2])*vertices[18] - 0.125*(1 + x[1])*(1 + x[2])*vertices[21]; # <<<<<<<<<<<<<<
1096 * scol[0] = -0.125*(1 - x[0])*(1 - x[2])*vertices[0] + 0.125*(1 - x[0])*(1 - x[2])*vertices[9] - 0.125*(1 - x[0])*(1 + x[2])*vertices[12] + 0.125*(1 - x[0])*(1 + x[2])*vertices[21] - 0.125*(1 + x[0])*(1 - x[2])*vertices[3] + 0.125*(1 + x[0])*(1 - x[2])*vertices[6] - 0.125*(1 + x[0])*(1 + x[2])*vertices[15] + 0.125*(1 + x[0])*(1 + x[2])*vertices[18];
1097 * tcol[0] = -0.125*(1 - x[0])*(1 - x[1])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*vertices[12] - 0.125*(1 - x[0])*(1 + x[1])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*vertices[21] - 0.125*(1 + x[0])*(1 - x[1])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*vertices[15] - 0.125*(1 + x[0])*(1 + x[1])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*vertices[18];
1098 */
1099 (__pyx_v_rcol[0]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[0])) + (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[3]))) - (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[12]))) + (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[15]))) + (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[6]))) - (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[9]))) + (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[18]))) - (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[21])));
1100
1101 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":33
1102 * double* phys_x) nogil:
1103 * rcol[0] = -0.125*(1 - x[1])*(1 - x[2])*vertices[0] + 0.125*(1 - x[1])*(1 - x[2])*vertices[3] - 0.125*(1 - x[1])*(1 + x[2])*vertices[12] + 0.125*(1 - x[1])*(1 + x[2])*vertices[15] + 0.125*(1 + x[1])*(1 - x[2])*vertices[6] - 0.125*(1 + x[1])*(1 - x[2])*vertices[9] + 0.125*(1 + x[1])*(1 + x[2])*vertices[18] - 0.125*(1 + x[1])*(1 + x[2])*vertices[21];
1104 * scol[0] = -0.125*(1 - x[0])*(1 - x[2])*vertices[0] + 0.125*(1 - x[0])*(1 - x[2])*vertices[9] - 0.125*(1 - x[0])*(1 + x[2])*vertices[12] + 0.125*(1 - x[0])*(1 + x[2])*vertices[21] - 0.125*(1 + x[0])*(1 - x[2])*vertices[3] + 0.125*(1 + x[0])*(1 - x[2])*vertices[6] - 0.125*(1 + x[0])*(1 + x[2])*vertices[15] + 0.125*(1 + x[0])*(1 + x[2])*vertices[18]; # <<<<<<<<<<<<<<
1105 * tcol[0] = -0.125*(1 - x[0])*(1 - x[1])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*vertices[12] - 0.125*(1 - x[0])*(1 + x[1])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*vertices[21] - 0.125*(1 + x[0])*(1 - x[1])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*vertices[15] - 0.125*(1 + x[0])*(1 + x[1])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*vertices[18];
1106 * rcol[1] = -0.125*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[1])*(1 - x[2])*vertices[4] - 0.125*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[1])*(1 - x[2])*vertices[7] - 0.125*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 + x[1])*(1 + x[2])*vertices[19] - 0.125*(1 + x[1])*(1 + x[2])*vertices[22];
1107 */
1108 (__pyx_v_scol[0]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[0])) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[9]))) - (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[12]))) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[21]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[3]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[6]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[15]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[18])));
1109
1110 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":34
1111 * rcol[0] = -0.125*(1 - x[1])*(1 - x[2])*vertices[0] + 0.125*(1 - x[1])*(1 - x[2])*vertices[3] - 0.125*(1 - x[1])*(1 + x[2])*vertices[12] + 0.125*(1 - x[1])*(1 + x[2])*vertices[15] + 0.125*(1 + x[1])*(1 - x[2])*vertices[6] - 0.125*(1 + x[1])*(1 - x[2])*vertices[9] + 0.125*(1 + x[1])*(1 + x[2])*vertices[18] - 0.125*(1 + x[1])*(1 + x[2])*vertices[21];
1112 * scol[0] = -0.125*(1 - x[0])*(1 - x[2])*vertices[0] + 0.125*(1 - x[0])*(1 - x[2])*vertices[9] - 0.125*(1 - x[0])*(1 + x[2])*vertices[12] + 0.125*(1 - x[0])*(1 + x[2])*vertices[21] - 0.125*(1 + x[0])*(1 - x[2])*vertices[3] + 0.125*(1 + x[0])*(1 - x[2])*vertices[6] - 0.125*(1 + x[0])*(1 + x[2])*vertices[15] + 0.125*(1 + x[0])*(1 + x[2])*vertices[18];
1113 * tcol[0] = -0.125*(1 - x[0])*(1 - x[1])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*vertices[12] - 0.125*(1 - x[0])*(1 + x[1])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*vertices[21] - 0.125*(1 + x[0])*(1 - x[1])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*vertices[15] - 0.125*(1 + x[0])*(1 + x[1])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*vertices[18]; # <<<<<<<<<<<<<<
1114 * rcol[1] = -0.125*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[1])*(1 - x[2])*vertices[4] - 0.125*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[1])*(1 - x[2])*vertices[7] - 0.125*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 + x[1])*(1 + x[2])*vertices[19] - 0.125*(1 + x[1])*(1 + x[2])*vertices[22];
1115 * scol[1] = -0.125*(1 - x[0])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[2])*vertices[10] - 0.125*(1 - x[0])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[2])*vertices[22] - 0.125*(1 + x[0])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[2])*vertices[7] - 0.125*(1 + x[0])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[2])*vertices[19];
1116 */
1117 (__pyx_v_tcol[0]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[0])) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[12]))) - (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[9]))) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[21]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[3]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[15]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[6]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[18])));
1118
1119 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":35
1120 * scol[0] = -0.125*(1 - x[0])*(1 - x[2])*vertices[0] + 0.125*(1 - x[0])*(1 - x[2])*vertices[9] - 0.125*(1 - x[0])*(1 + x[2])*vertices[12] + 0.125*(1 - x[0])*(1 + x[2])*vertices[21] - 0.125*(1 + x[0])*(1 - x[2])*vertices[3] + 0.125*(1 + x[0])*(1 - x[2])*vertices[6] - 0.125*(1 + x[0])*(1 + x[2])*vertices[15] + 0.125*(1 + x[0])*(1 + x[2])*vertices[18];
1121 * tcol[0] = -0.125*(1 - x[0])*(1 - x[1])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*vertices[12] - 0.125*(1 - x[0])*(1 + x[1])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*vertices[21] - 0.125*(1 + x[0])*(1 - x[1])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*vertices[15] - 0.125*(1 + x[0])*(1 + x[1])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*vertices[18];
1122 * rcol[1] = -0.125*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[1])*(1 - x[2])*vertices[4] - 0.125*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[1])*(1 - x[2])*vertices[7] - 0.125*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 + x[1])*(1 + x[2])*vertices[19] - 0.125*(1 + x[1])*(1 + x[2])*vertices[22]; # <<<<<<<<<<<<<<
1123 * scol[1] = -0.125*(1 - x[0])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[2])*vertices[10] - 0.125*(1 - x[0])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[2])*vertices[22] - 0.125*(1 + x[0])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[2])*vertices[7] - 0.125*(1 + x[0])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[2])*vertices[19];
1124 * tcol[1] = -0.125*(1 - x[0])*(1 - x[1])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*vertices[13] - 0.125*(1 - x[0])*(1 + x[1])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*vertices[22] - 0.125*(1 + x[0])*(1 - x[1])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*vertices[16] - 0.125*(1 + x[0])*(1 + x[1])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*vertices[19];
1125 */
1126 (__pyx_v_rcol[1]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[1])) + (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[4]))) - (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[13]))) + (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[16]))) + (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[7]))) - (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[10]))) + (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[19]))) - (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[22])));
1127
1128 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":36
1129 * tcol[0] = -0.125*(1 - x[0])*(1 - x[1])*vertices[0] + 0.125*(1 - x[0])*(1 - x[1])*vertices[12] - 0.125*(1 - x[0])*(1 + x[1])*vertices[9] + 0.125*(1 - x[0])*(1 + x[1])*vertices[21] - 0.125*(1 + x[0])*(1 - x[1])*vertices[3] + 0.125*(1 + x[0])*(1 - x[1])*vertices[15] - 0.125*(1 + x[0])*(1 + x[1])*vertices[6] + 0.125*(1 + x[0])*(1 + x[1])*vertices[18];
1130 * rcol[1] = -0.125*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[1])*(1 - x[2])*vertices[4] - 0.125*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[1])*(1 - x[2])*vertices[7] - 0.125*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 + x[1])*(1 + x[2])*vertices[19] - 0.125*(1 + x[1])*(1 + x[2])*vertices[22];
1131 * scol[1] = -0.125*(1 - x[0])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[2])*vertices[10] - 0.125*(1 - x[0])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[2])*vertices[22] - 0.125*(1 + x[0])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[2])*vertices[7] - 0.125*(1 + x[0])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[2])*vertices[19]; # <<<<<<<<<<<<<<
1132 * tcol[1] = -0.125*(1 - x[0])*(1 - x[1])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*vertices[13] - 0.125*(1 - x[0])*(1 + x[1])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*vertices[22] - 0.125*(1 + x[0])*(1 - x[1])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*vertices[16] - 0.125*(1 + x[0])*(1 + x[1])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*vertices[19];
1133 * rcol[2] = -0.125*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[1])*(1 - x[2])*vertices[5] - 0.125*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[1])*(1 - x[2])*vertices[8] - 0.125*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 + x[1])*(1 + x[2])*vertices[20] - 0.125*(1 + x[1])*(1 + x[2])*vertices[23];
1134 */
1135 (__pyx_v_scol[1]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[1])) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[10]))) - (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[13]))) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[22]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[4]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[7]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[16]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[19])));
1136
1137 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":37
1138 * rcol[1] = -0.125*(1 - x[1])*(1 - x[2])*vertices[1] + 0.125*(1 - x[1])*(1 - x[2])*vertices[4] - 0.125*(1 - x[1])*(1 + x[2])*vertices[13] + 0.125*(1 - x[1])*(1 + x[2])*vertices[16] + 0.125*(1 + x[1])*(1 - x[2])*vertices[7] - 0.125*(1 + x[1])*(1 - x[2])*vertices[10] + 0.125*(1 + x[1])*(1 + x[2])*vertices[19] - 0.125*(1 + x[1])*(1 + x[2])*vertices[22];
1139 * scol[1] = -0.125*(1 - x[0])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[2])*vertices[10] - 0.125*(1 - x[0])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[2])*vertices[22] - 0.125*(1 + x[0])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[2])*vertices[7] - 0.125*(1 + x[0])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[2])*vertices[19];
1140 * tcol[1] = -0.125*(1 - x[0])*(1 - x[1])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*vertices[13] - 0.125*(1 - x[0])*(1 + x[1])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*vertices[22] - 0.125*(1 + x[0])*(1 - x[1])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*vertices[16] - 0.125*(1 + x[0])*(1 + x[1])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*vertices[19]; # <<<<<<<<<<<<<<
1141 * rcol[2] = -0.125*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[1])*(1 - x[2])*vertices[5] - 0.125*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[1])*(1 - x[2])*vertices[8] - 0.125*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 + x[1])*(1 + x[2])*vertices[20] - 0.125*(1 + x[1])*(1 + x[2])*vertices[23];
1142 * scol[2] = -0.125*(1 - x[0])*(1 - x[2])*vertices[2] + 0.125*(1 - x[0])*(1 - x[2])*vertices[11] - 0.125*(1 - x[0])*(1 + x[2])*vertices[14] + 0.125*(1 - x[0])*(1 + x[2])*vertices[23] - 0.125*(1 + x[0])*(1 - x[2])*vertices[5] + 0.125*(1 + x[0])*(1 - x[2])*vertices[8] - 0.125*(1 + x[0])*(1 + x[2])*vertices[17] + 0.125*(1 + x[0])*(1 + x[2])*vertices[20];
1143 */
1144 (__pyx_v_tcol[1]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[1])) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[13]))) - (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[10]))) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[22]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[4]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[16]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[7]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[19])));
1145
1146 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":38
1147 * scol[1] = -0.125*(1 - x[0])*(1 - x[2])*vertices[1] + 0.125*(1 - x[0])*(1 - x[2])*vertices[10] - 0.125*(1 - x[0])*(1 + x[2])*vertices[13] + 0.125*(1 - x[0])*(1 + x[2])*vertices[22] - 0.125*(1 + x[0])*(1 - x[2])*vertices[4] + 0.125*(1 + x[0])*(1 - x[2])*vertices[7] - 0.125*(1 + x[0])*(1 + x[2])*vertices[16] + 0.125*(1 + x[0])*(1 + x[2])*vertices[19];
1148 * tcol[1] = -0.125*(1 - x[0])*(1 - x[1])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*vertices[13] - 0.125*(1 - x[0])*(1 + x[1])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*vertices[22] - 0.125*(1 + x[0])*(1 - x[1])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*vertices[16] - 0.125*(1 + x[0])*(1 + x[1])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*vertices[19];
1149 * rcol[2] = -0.125*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[1])*(1 - x[2])*vertices[5] - 0.125*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[1])*(1 - x[2])*vertices[8] - 0.125*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 + x[1])*(1 + x[2])*vertices[20] - 0.125*(1 + x[1])*(1 + x[2])*vertices[23]; # <<<<<<<<<<<<<<
1150 * scol[2] = -0.125*(1 - x[0])*(1 - x[2])*vertices[2] + 0.125*(1 - x[0])*(1 - x[2])*vertices[11] - 0.125*(1 - x[0])*(1 + x[2])*vertices[14] + 0.125*(1 - x[0])*(1 + x[2])*vertices[23] - 0.125*(1 + x[0])*(1 - x[2])*vertices[5] + 0.125*(1 + x[0])*(1 - x[2])*vertices[8] - 0.125*(1 + x[0])*(1 + x[2])*vertices[17] + 0.125*(1 + x[0])*(1 + x[2])*vertices[20];
1151 * tcol[2] = -0.125*(1 - x[0])*(1 - x[1])*vertices[2] + 0.125*(1 - x[0])*(1 - x[1])*vertices[14] - 0.125*(1 - x[0])*(1 + x[1])*vertices[11] + 0.125*(1 - x[0])*(1 + x[1])*vertices[23] - 0.125*(1 + x[0])*(1 - x[1])*vertices[5] + 0.125*(1 + x[0])*(1 - x[1])*vertices[17] - 0.125*(1 + x[0])*(1 + x[1])*vertices[8] + 0.125*(1 + x[0])*(1 + x[1])*vertices[20];
1152 */
1153 (__pyx_v_rcol[2]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[2])) + (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[5]))) - (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[14]))) + (((0.125 * (1.0 - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[17]))) + (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[8]))) - (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[11]))) + (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[20]))) - (((0.125 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[23])));
1154
1155 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":39
1156 * tcol[1] = -0.125*(1 - x[0])*(1 - x[1])*vertices[1] + 0.125*(1 - x[0])*(1 - x[1])*vertices[13] - 0.125*(1 - x[0])*(1 + x[1])*vertices[10] + 0.125*(1 - x[0])*(1 + x[1])*vertices[22] - 0.125*(1 + x[0])*(1 - x[1])*vertices[4] + 0.125*(1 + x[0])*(1 - x[1])*vertices[16] - 0.125*(1 + x[0])*(1 + x[1])*vertices[7] + 0.125*(1 + x[0])*(1 + x[1])*vertices[19];
1157 * rcol[2] = -0.125*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[1])*(1 - x[2])*vertices[5] - 0.125*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[1])*(1 - x[2])*vertices[8] - 0.125*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 + x[1])*(1 + x[2])*vertices[20] - 0.125*(1 + x[1])*(1 + x[2])*vertices[23];
1158 * scol[2] = -0.125*(1 - x[0])*(1 - x[2])*vertices[2] + 0.125*(1 - x[0])*(1 - x[2])*vertices[11] - 0.125*(1 - x[0])*(1 + x[2])*vertices[14] + 0.125*(1 - x[0])*(1 + x[2])*vertices[23] - 0.125*(1 + x[0])*(1 - x[2])*vertices[5] + 0.125*(1 + x[0])*(1 - x[2])*vertices[8] - 0.125*(1 + x[0])*(1 + x[2])*vertices[17] + 0.125*(1 + x[0])*(1 + x[2])*vertices[20]; # <<<<<<<<<<<<<<
1159 * tcol[2] = -0.125*(1 - x[0])*(1 - x[1])*vertices[2] + 0.125*(1 - x[0])*(1 - x[1])*vertices[14] - 0.125*(1 - x[0])*(1 + x[1])*vertices[11] + 0.125*(1 - x[0])*(1 + x[1])*vertices[23] - 0.125*(1 + x[0])*(1 - x[1])*vertices[5] + 0.125*(1 + x[0])*(1 - x[1])*vertices[17] - 0.125*(1 + x[0])*(1 + x[1])*vertices[8] + 0.125*(1 + x[0])*(1 + x[1])*vertices[20];
1160 *
1161 */
1162 (__pyx_v_scol[2]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[2])) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[11]))) - (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[14]))) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[23]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[5]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[8]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[17]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[20])));
1163
1164 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":40
1165 * rcol[2] = -0.125*(1 - x[1])*(1 - x[2])*vertices[2] + 0.125*(1 - x[1])*(1 - x[2])*vertices[5] - 0.125*(1 - x[1])*(1 + x[2])*vertices[14] + 0.125*(1 - x[1])*(1 + x[2])*vertices[17] + 0.125*(1 + x[1])*(1 - x[2])*vertices[8] - 0.125*(1 + x[1])*(1 - x[2])*vertices[11] + 0.125*(1 + x[1])*(1 + x[2])*vertices[20] - 0.125*(1 + x[1])*(1 + x[2])*vertices[23];
1166 * scol[2] = -0.125*(1 - x[0])*(1 - x[2])*vertices[2] + 0.125*(1 - x[0])*(1 - x[2])*vertices[11] - 0.125*(1 - x[0])*(1 + x[2])*vertices[14] + 0.125*(1 - x[0])*(1 + x[2])*vertices[23] - 0.125*(1 + x[0])*(1 - x[2])*vertices[5] + 0.125*(1 + x[0])*(1 - x[2])*vertices[8] - 0.125*(1 + x[0])*(1 + x[2])*vertices[17] + 0.125*(1 + x[0])*(1 + x[2])*vertices[20];
1167 * tcol[2] = -0.125*(1 - x[0])*(1 - x[1])*vertices[2] + 0.125*(1 - x[0])*(1 - x[1])*vertices[14] - 0.125*(1 - x[0])*(1 + x[1])*vertices[11] + 0.125*(1 - x[0])*(1 + x[1])*vertices[23] - 0.125*(1 + x[0])*(1 - x[1])*vertices[5] + 0.125*(1 + x[0])*(1 - x[1])*vertices[17] - 0.125*(1 + x[0])*(1 + x[1])*vertices[8] + 0.125*(1 + x[0])*(1 + x[1])*vertices[20]; # <<<<<<<<<<<<<<
1168 *
1169 *
1170 */
1171 (__pyx_v_tcol[2]) = ((((((((((-0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[2])) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[14]))) - (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[11]))) + (((0.125 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[23]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[5]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[17]))) - (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[8]))) + (((0.125 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[20])));
1172
1173 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":26
1174 * @cython.wraparound(False)
1175 * @cython.cdivision(True)
1176 * cdef void Q1Jacobian3D(double* rcol, # <<<<<<<<<<<<<<
1177 * double* scol,
1178 * double* tcol,
1179 */
1180
1181 /* function exit code */
1182 }
1183
1184 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":46
1185 * @cython.wraparound(False)
1186 * @cython.cdivision(True)
1187 * cdef void Q1Function2D(double* fx, # <<<<<<<<<<<<<<
1188 * double* x,
1189 * double* vertices,
1190 */
1191
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Function2D(double * __pyx_v_fx,double * __pyx_v_x,double * __pyx_v_vertices,double * __pyx_v_phys_x)1192 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Function2D(double *__pyx_v_fx, double *__pyx_v_x, double *__pyx_v_vertices, double *__pyx_v_phys_x) {
1193
1194 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":50
1195 * double* vertices,
1196 * double* phys_x) nogil:
1197 * fx[0] = 0.25*(1 - x[0])*(1 - x[1])*vertices[0] + 0.25*(1 - x[0])*(1 + x[1])*vertices[6] + 0.25*(1 + x[0])*(1 - x[1])*vertices[2] + 0.25*(1 + x[0])*(1 + x[1])*vertices[4] - phys_x[0]; # <<<<<<<<<<<<<<
1198 * fx[1] = 0.25*(1 - x[0])*(1 - x[1])*vertices[1] + 0.25*(1 - x[0])*(1 + x[1])*vertices[7] + 0.25*(1 + x[0])*(1 - x[1])*vertices[3] + 0.25*(1 + x[0])*(1 + x[1])*vertices[5] - phys_x[1];
1199 *
1200 */
1201 (__pyx_v_fx[0]) = (((((((0.25 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[0])) + (((0.25 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[6]))) + (((0.25 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[2]))) + (((0.25 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[4]))) - (__pyx_v_phys_x[0]));
1202
1203 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":51
1204 * double* phys_x) nogil:
1205 * fx[0] = 0.25*(1 - x[0])*(1 - x[1])*vertices[0] + 0.25*(1 - x[0])*(1 + x[1])*vertices[6] + 0.25*(1 + x[0])*(1 - x[1])*vertices[2] + 0.25*(1 + x[0])*(1 + x[1])*vertices[4] - phys_x[0];
1206 * fx[1] = 0.25*(1 - x[0])*(1 - x[1])*vertices[1] + 0.25*(1 - x[0])*(1 + x[1])*vertices[7] + 0.25*(1 + x[0])*(1 - x[1])*vertices[3] + 0.25*(1 + x[0])*(1 + x[1])*vertices[5] - phys_x[1]; # <<<<<<<<<<<<<<
1207 *
1208 *
1209 */
1210 (__pyx_v_fx[1]) = (((((((0.25 * (1.0 - (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[1])) + (((0.25 * (1.0 - (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[7]))) + (((0.25 * (1.0 + (__pyx_v_x[0]))) * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[3]))) + (((0.25 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[5]))) - (__pyx_v_phys_x[1]));
1211
1212 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":46
1213 * @cython.wraparound(False)
1214 * @cython.cdivision(True)
1215 * cdef void Q1Function2D(double* fx, # <<<<<<<<<<<<<<
1216 * double* x,
1217 * double* vertices,
1218 */
1219
1220 /* function exit code */
1221 }
1222
1223 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":57
1224 * @cython.wraparound(False)
1225 * @cython.cdivision(True)
1226 * cdef void Q1Jacobian2D(double* rcol, # <<<<<<<<<<<<<<
1227 * double* scol,
1228 * double* x,
1229 */
1230
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Jacobian2D(double * __pyx_v_rcol,double * __pyx_v_scol,double * __pyx_v_x,double * __pyx_v_vertices,CYTHON_UNUSED double * __pyx_v_phys_x)1231 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Jacobian2D(double *__pyx_v_rcol, double *__pyx_v_scol, double *__pyx_v_x, double *__pyx_v_vertices, CYTHON_UNUSED double *__pyx_v_phys_x) {
1232
1233 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":62
1234 * double* vertices,
1235 * double* phys_x) nogil:
1236 * rcol[0] = -0.25*(1 - x[1])*vertices[0] + 0.25*(1 - x[1])*vertices[2] + 0.25*(1 + x[1])*vertices[4] - 0.25*(1 + x[1])*vertices[6]; # <<<<<<<<<<<<<<
1237 * scol[0] = -0.25*(1 - x[0])*vertices[0] + 0.25*(1 - x[0])*vertices[6] - 0.25*(1 + x[0])*vertices[2] + 0.25*(1 + x[0])*vertices[4];
1238 * rcol[1] = -0.25*(1 - x[1])*vertices[1] + 0.25*(1 - x[1])*vertices[3] + 0.25*(1 + x[1])*vertices[5] - 0.25*(1 + x[1])*vertices[7];
1239 */
1240 (__pyx_v_rcol[0]) = (((((-0.25 * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[0])) + ((0.25 * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[2]))) + ((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[4]))) - ((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[6])));
1241
1242 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":63
1243 * double* phys_x) nogil:
1244 * rcol[0] = -0.25*(1 - x[1])*vertices[0] + 0.25*(1 - x[1])*vertices[2] + 0.25*(1 + x[1])*vertices[4] - 0.25*(1 + x[1])*vertices[6];
1245 * scol[0] = -0.25*(1 - x[0])*vertices[0] + 0.25*(1 - x[0])*vertices[6] - 0.25*(1 + x[0])*vertices[2] + 0.25*(1 + x[0])*vertices[4]; # <<<<<<<<<<<<<<
1246 * rcol[1] = -0.25*(1 - x[1])*vertices[1] + 0.25*(1 - x[1])*vertices[3] + 0.25*(1 + x[1])*vertices[5] - 0.25*(1 + x[1])*vertices[7];
1247 * scol[1] = -0.25*(1 - x[0])*vertices[1] + 0.25*(1 - x[0])*vertices[7] - 0.25*(1 + x[0])*vertices[3] + 0.25*(1 + x[0])*vertices[5];
1248 */
1249 (__pyx_v_scol[0]) = (((((-0.25 * (1.0 - (__pyx_v_x[0]))) * (__pyx_v_vertices[0])) + ((0.25 * (1.0 - (__pyx_v_x[0]))) * (__pyx_v_vertices[6]))) - ((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[2]))) + ((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[4])));
1250
1251 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":64
1252 * rcol[0] = -0.25*(1 - x[1])*vertices[0] + 0.25*(1 - x[1])*vertices[2] + 0.25*(1 + x[1])*vertices[4] - 0.25*(1 + x[1])*vertices[6];
1253 * scol[0] = -0.25*(1 - x[0])*vertices[0] + 0.25*(1 - x[0])*vertices[6] - 0.25*(1 + x[0])*vertices[2] + 0.25*(1 + x[0])*vertices[4];
1254 * rcol[1] = -0.25*(1 - x[1])*vertices[1] + 0.25*(1 - x[1])*vertices[3] + 0.25*(1 + x[1])*vertices[5] - 0.25*(1 + x[1])*vertices[7]; # <<<<<<<<<<<<<<
1255 * scol[1] = -0.25*(1 - x[0])*vertices[1] + 0.25*(1 - x[0])*vertices[7] - 0.25*(1 + x[0])*vertices[3] + 0.25*(1 + x[0])*vertices[5];
1256 *
1257 */
1258 (__pyx_v_rcol[1]) = (((((-0.25 * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[1])) + ((0.25 * (1.0 - (__pyx_v_x[1]))) * (__pyx_v_vertices[3]))) + ((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[5]))) - ((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[7])));
1259
1260 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":65
1261 * scol[0] = -0.25*(1 - x[0])*vertices[0] + 0.25*(1 - x[0])*vertices[6] - 0.25*(1 + x[0])*vertices[2] + 0.25*(1 + x[0])*vertices[4];
1262 * rcol[1] = -0.25*(1 - x[1])*vertices[1] + 0.25*(1 - x[1])*vertices[3] + 0.25*(1 + x[1])*vertices[5] - 0.25*(1 + x[1])*vertices[7];
1263 * scol[1] = -0.25*(1 - x[0])*vertices[1] + 0.25*(1 - x[0])*vertices[7] - 0.25*(1 + x[0])*vertices[3] + 0.25*(1 + x[0])*vertices[5]; # <<<<<<<<<<<<<<
1264 *
1265 *
1266 */
1267 (__pyx_v_scol[1]) = (((((-0.25 * (1.0 - (__pyx_v_x[0]))) * (__pyx_v_vertices[1])) + ((0.25 * (1.0 - (__pyx_v_x[0]))) * (__pyx_v_vertices[7]))) - ((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[3]))) + ((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[5])));
1268
1269 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":57
1270 * @cython.wraparound(False)
1271 * @cython.cdivision(True)
1272 * cdef void Q1Jacobian2D(double* rcol, # <<<<<<<<<<<<<<
1273 * double* scol,
1274 * double* x,
1275 */
1276
1277 /* function exit code */
1278 }
1279
1280 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":71
1281 * @cython.wraparound(False)
1282 * @cython.cdivision(True)
1283 * cdef void Q2Function2D(double* fx, # <<<<<<<<<<<<<<
1284 * double* x,
1285 * double* vertices,
1286 */
1287
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q2Function2D(double * __pyx_v_fx,double * __pyx_v_x,double * __pyx_v_vertices,double * __pyx_v_phys_x)1288 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q2Function2D(double *__pyx_v_fx, double *__pyx_v_x, double *__pyx_v_vertices, double *__pyx_v_phys_x) {
1289
1290 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":75
1291 * double* vertices,
1292 * double* phys_x) nogil:
1293 * fx[0] = (1 + x[0])*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[8] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(1 + x[1])*vertices[12] - phys_x[0] - 0.5*x[0]*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[14] + 0.25*x[0]*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[0] + 0.25*x[0]*(-1 + x[0])*x[1]*(1 + x[1])*vertices[6] - 0.5*x[0]*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[10] + 0.25*x[0]*(1 + x[0])*x[1]*(-1 + x[1])*vertices[2] + 0.25*x[0]*(1 + x[0])*x[1]*(1 + x[1])*vertices[4]; # <<<<<<<<<<<<<<
1294 * fx[1] = (1 + x[0])*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[9] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(1 + x[1])*vertices[13] - phys_x[1] - 0.5*x[0]*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[15] + 0.25*x[0]*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[1] + 0.25*x[0]*(-1 + x[0])*x[1]*(1 + x[1])*vertices[7] - 0.5*x[0]*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[11] + 0.25*x[0]*(1 + x[0])*x[1]*(-1 + x[1])*vertices[3] + 0.25*x[0]*(1 + x[0])*x[1]*(1 + x[1])*vertices[5];
1295 *
1296 */
1297 (__pyx_v_fx[0]) = ((((((((((((((1.0 + (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[16])) - (((((0.5 * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[8]))) - (((((0.5 * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[12]))) - (__pyx_v_phys_x[0])) - (((((0.5 * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[14]))) + (((((0.25 * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[0]))) + (((((0.25 * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[6]))) - (((((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[10]))) + (((((0.25 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[2]))) + (((((0.25 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[4])));
1298
1299 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":76
1300 * double* phys_x) nogil:
1301 * fx[0] = (1 + x[0])*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[8] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(1 + x[1])*vertices[12] - phys_x[0] - 0.5*x[0]*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[14] + 0.25*x[0]*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[0] + 0.25*x[0]*(-1 + x[0])*x[1]*(1 + x[1])*vertices[6] - 0.5*x[0]*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[10] + 0.25*x[0]*(1 + x[0])*x[1]*(-1 + x[1])*vertices[2] + 0.25*x[0]*(1 + x[0])*x[1]*(1 + x[1])*vertices[4];
1302 * fx[1] = (1 + x[0])*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[9] - 0.5*(1 + x[0])*(-1 + x[0])*x[1]*(1 + x[1])*vertices[13] - phys_x[1] - 0.5*x[0]*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[15] + 0.25*x[0]*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[1] + 0.25*x[0]*(-1 + x[0])*x[1]*(1 + x[1])*vertices[7] - 0.5*x[0]*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[11] + 0.25*x[0]*(1 + x[0])*x[1]*(-1 + x[1])*vertices[3] + 0.25*x[0]*(1 + x[0])*x[1]*(1 + x[1])*vertices[5]; # <<<<<<<<<<<<<<
1303 *
1304 *
1305 */
1306 (__pyx_v_fx[1]) = ((((((((((((((1.0 + (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[17])) - (((((0.5 * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[9]))) - (((((0.5 * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[13]))) - (__pyx_v_phys_x[1])) - (((((0.5 * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[15]))) + (((((0.25 * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[1]))) + (((((0.25 * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[7]))) - (((((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[11]))) + (((((0.25 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[3]))) + (((((0.25 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[5])));
1307
1308 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":71
1309 * @cython.wraparound(False)
1310 * @cython.cdivision(True)
1311 * cdef void Q2Function2D(double* fx, # <<<<<<<<<<<<<<
1312 * double* x,
1313 * double* vertices,
1314 */
1315
1316 /* function exit code */
1317 }
1318
1319 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":82
1320 * @cython.wraparound(False)
1321 * @cython.cdivision(True)
1322 * cdef void Q2Jacobian2D(double* rcol, # <<<<<<<<<<<<<<
1323 * double* scol,
1324 * double* x,
1325 */
1326
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q2Jacobian2D(double * __pyx_v_rcol,double * __pyx_v_scol,double * __pyx_v_x,double * __pyx_v_vertices,CYTHON_UNUSED double * __pyx_v_phys_x)1327 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q2Jacobian2D(double *__pyx_v_rcol, double *__pyx_v_scol, double *__pyx_v_x, double *__pyx_v_vertices, CYTHON_UNUSED double *__pyx_v_phys_x) {
1328
1329 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":87
1330 * double* vertices,
1331 * double* phys_x) nogil:
1332 * rcol[0] = -0.5*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[14] + (-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] + 0.25*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[0] - 0.5*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[8] + 0.25*(-1 + x[0])*x[1]*(1 + x[1])*vertices[6] - 0.5*(-1 + x[0])*x[1]*(1 + x[1])*vertices[12] - 0.5*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[10] + (1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] + 0.25*(1 + x[0])*x[1]*(-1 + x[1])*vertices[2] - 0.5*(1 + x[0])*x[1]*(-1 + x[1])*vertices[8] + 0.25*(1 + x[0])*x[1]*(1 + x[1])*vertices[4] - 0.5*(1 + x[0])*x[1]*(1 + x[1])*vertices[12] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[10] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[14] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[0] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[2] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[4] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[6]; # <<<<<<<<<<<<<<
1333 * scol[0] = -0.5*(-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[8] + (-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[0] - 0.5*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(-1 + x[1])*x[0]*(1 + x[0])*vertices[2] - 0.5*(-1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*(1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[12] + (1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(1 + x[1])*x[0]*(-1 + x[0])*vertices[6] - 0.5*(1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(1 + x[1])*x[0]*(1 + x[0])*vertices[4] - 0.5*(1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[8] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[12] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[0] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[6] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[2] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[4];
1334 * rcol[1] = -0.5*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[15] + (-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[1] - 0.5*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(-1 + x[0])*x[1]*(1 + x[1])*vertices[7] - 0.5*(-1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[11] + (1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(1 + x[0])*x[1]*(-1 + x[1])*vertices[3] - 0.5*(1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(1 + x[0])*x[1]*(1 + x[1])*vertices[5] - 0.5*(1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[11] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[15] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[1] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[3] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[5] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[7];
1335 */
1336 (__pyx_v_rcol[0]) = (((((((((((((((((((((-0.5 * (-1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[14])) + ((((-1.0 + (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[16]))) + ((((0.25 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[0]))) - ((((0.5 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[8]))) + ((((0.25 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[6]))) - ((((0.5 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[12]))) - ((((0.5 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[10]))) + ((((1.0 + (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[16]))) + ((((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[2]))) - ((((0.5 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[8]))) + ((((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[4]))) - ((((0.5 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[12]))) - ((((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[10]))) - ((((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[14]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[0]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[2]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[4]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[6])));
1337
1338 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":88
1339 * double* phys_x) nogil:
1340 * rcol[0] = -0.5*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[14] + (-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] + 0.25*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[0] - 0.5*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[8] + 0.25*(-1 + x[0])*x[1]*(1 + x[1])*vertices[6] - 0.5*(-1 + x[0])*x[1]*(1 + x[1])*vertices[12] - 0.5*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[10] + (1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] + 0.25*(1 + x[0])*x[1]*(-1 + x[1])*vertices[2] - 0.5*(1 + x[0])*x[1]*(-1 + x[1])*vertices[8] + 0.25*(1 + x[0])*x[1]*(1 + x[1])*vertices[4] - 0.5*(1 + x[0])*x[1]*(1 + x[1])*vertices[12] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[10] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[14] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[0] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[2] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[4] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[6];
1341 * scol[0] = -0.5*(-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[8] + (-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[0] - 0.5*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(-1 + x[1])*x[0]*(1 + x[0])*vertices[2] - 0.5*(-1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*(1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[12] + (1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(1 + x[1])*x[0]*(-1 + x[0])*vertices[6] - 0.5*(1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(1 + x[1])*x[0]*(1 + x[0])*vertices[4] - 0.5*(1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[8] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[12] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[0] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[6] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[2] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[4]; # <<<<<<<<<<<<<<
1342 * rcol[1] = -0.5*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[15] + (-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[1] - 0.5*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(-1 + x[0])*x[1]*(1 + x[1])*vertices[7] - 0.5*(-1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[11] + (1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(1 + x[0])*x[1]*(-1 + x[1])*vertices[3] - 0.5*(1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(1 + x[0])*x[1]*(1 + x[1])*vertices[5] - 0.5*(1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[11] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[15] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[1] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[3] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[5] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[7];
1343 * scol[1] = -0.5*(-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[9] + (-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[17] + 0.25*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[1] - 0.5*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[15] + 0.25*(-1 + x[1])*x[0]*(1 + x[0])*vertices[3] - 0.5*(-1 + x[1])*x[0]*(1 + x[0])*vertices[11] - 0.5*(1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[13] + (1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[17] + 0.25*(1 + x[1])*x[0]*(-1 + x[0])*vertices[7] - 0.5*(1 + x[1])*x[0]*(-1 + x[0])*vertices[15] + 0.25*(1 + x[1])*x[0]*(1 + x[0])*vertices[5] - 0.5*(1 + x[1])*x[0]*(1 + x[0])*vertices[11] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[9] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[13] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[1] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[7] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[3] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[5];
1344 */
1345 (__pyx_v_scol[0]) = (((((((((((((((((((((-0.5 * (-1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[8])) + ((((-1.0 + (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[16]))) + ((((0.25 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[0]))) - ((((0.5 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[14]))) + ((((0.25 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[2]))) - ((((0.5 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[10]))) - ((((0.5 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[12]))) + ((((1.0 + (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[16]))) + ((((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[6]))) - ((((0.5 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[14]))) + ((((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[4]))) - ((((0.5 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[10]))) - ((((0.5 * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[8]))) - ((((0.5 * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[12]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[0]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[6]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[2]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[4])));
1346
1347 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":89
1348 * rcol[0] = -0.5*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[14] + (-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] + 0.25*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[0] - 0.5*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[8] + 0.25*(-1 + x[0])*x[1]*(1 + x[1])*vertices[6] - 0.5*(-1 + x[0])*x[1]*(1 + x[1])*vertices[12] - 0.5*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[10] + (1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[16] + 0.25*(1 + x[0])*x[1]*(-1 + x[1])*vertices[2] - 0.5*(1 + x[0])*x[1]*(-1 + x[1])*vertices[8] + 0.25*(1 + x[0])*x[1]*(1 + x[1])*vertices[4] - 0.5*(1 + x[0])*x[1]*(1 + x[1])*vertices[12] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[10] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[14] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[0] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[2] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[4] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[6];
1349 * scol[0] = -0.5*(-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[8] + (-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[0] - 0.5*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(-1 + x[1])*x[0]*(1 + x[0])*vertices[2] - 0.5*(-1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*(1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[12] + (1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(1 + x[1])*x[0]*(-1 + x[0])*vertices[6] - 0.5*(1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(1 + x[1])*x[0]*(1 + x[0])*vertices[4] - 0.5*(1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[8] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[12] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[0] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[6] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[2] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[4];
1350 * rcol[1] = -0.5*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[15] + (-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[1] - 0.5*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(-1 + x[0])*x[1]*(1 + x[1])*vertices[7] - 0.5*(-1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[11] + (1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(1 + x[0])*x[1]*(-1 + x[1])*vertices[3] - 0.5*(1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(1 + x[0])*x[1]*(1 + x[1])*vertices[5] - 0.5*(1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[11] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[15] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[1] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[3] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[5] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[7]; # <<<<<<<<<<<<<<
1351 * scol[1] = -0.5*(-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[9] + (-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[17] + 0.25*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[1] - 0.5*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[15] + 0.25*(-1 + x[1])*x[0]*(1 + x[0])*vertices[3] - 0.5*(-1 + x[1])*x[0]*(1 + x[0])*vertices[11] - 0.5*(1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[13] + (1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[17] + 0.25*(1 + x[1])*x[0]*(-1 + x[0])*vertices[7] - 0.5*(1 + x[1])*x[0]*(-1 + x[0])*vertices[15] + 0.25*(1 + x[1])*x[0]*(1 + x[0])*vertices[5] - 0.5*(1 + x[1])*x[0]*(1 + x[0])*vertices[11] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[9] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[13] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[1] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[7] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[3] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[5];
1352 *
1353 */
1354 (__pyx_v_rcol[1]) = (((((((((((((((((((((-0.5 * (-1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[15])) + ((((-1.0 + (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[17]))) + ((((0.25 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[1]))) - ((((0.5 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[9]))) + ((((0.25 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[7]))) - ((((0.5 * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[13]))) - ((((0.5 * (1.0 + (__pyx_v_x[0]))) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[11]))) + ((((1.0 + (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[17]))) + ((((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[3]))) - ((((0.5 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[9]))) + ((((0.25 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[5]))) - ((((0.5 * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[13]))) - ((((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[11]))) - ((((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[1]))) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[15]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[1]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[3]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[5]))) + ((((0.25 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_vertices[7])));
1355
1356 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":90
1357 * scol[0] = -0.5*(-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[8] + (-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[0] - 0.5*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(-1 + x[1])*x[0]*(1 + x[0])*vertices[2] - 0.5*(-1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*(1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[12] + (1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[16] + 0.25*(1 + x[1])*x[0]*(-1 + x[0])*vertices[6] - 0.5*(1 + x[1])*x[0]*(-1 + x[0])*vertices[14] + 0.25*(1 + x[1])*x[0]*(1 + x[0])*vertices[4] - 0.5*(1 + x[1])*x[0]*(1 + x[0])*vertices[10] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[8] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[12] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[0] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[6] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[2] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[4];
1358 * rcol[1] = -0.5*(-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[15] + (-1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[1] - 0.5*(-1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(-1 + x[0])*x[1]*(1 + x[1])*vertices[7] - 0.5*(-1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*(1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[11] + (1 + x[0])*(1 + x[1])*(-1 + x[1])*vertices[17] + 0.25*(1 + x[0])*x[1]*(-1 + x[1])*vertices[3] - 0.5*(1 + x[0])*x[1]*(-1 + x[1])*vertices[9] + 0.25*(1 + x[0])*x[1]*(1 + x[1])*vertices[5] - 0.5*(1 + x[0])*x[1]*(1 + x[1])*vertices[13] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[11] - 0.5*x[0]*(1 + x[1])*(-1 + x[1])*vertices[15] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[1] + 0.25*x[0]*x[1]*(-1 + x[1])*vertices[3] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[5] + 0.25*x[0]*x[1]*(1 + x[1])*vertices[7];
1359 * scol[1] = -0.5*(-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[9] + (-1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[17] + 0.25*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[1] - 0.5*(-1 + x[1])*x[0]*(-1 + x[0])*vertices[15] + 0.25*(-1 + x[1])*x[0]*(1 + x[0])*vertices[3] - 0.5*(-1 + x[1])*x[0]*(1 + x[0])*vertices[11] - 0.5*(1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[13] + (1 + x[1])*(1 + x[0])*(-1 + x[0])*vertices[17] + 0.25*(1 + x[1])*x[0]*(-1 + x[0])*vertices[7] - 0.5*(1 + x[1])*x[0]*(-1 + x[0])*vertices[15] + 0.25*(1 + x[1])*x[0]*(1 + x[0])*vertices[5] - 0.5*(1 + x[1])*x[0]*(1 + x[0])*vertices[11] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[9] - 0.5*x[1]*(1 + x[0])*(-1 + x[0])*vertices[13] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[1] + 0.25*x[1]*x[0]*(-1 + x[0])*vertices[7] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[3] + 0.25*x[1]*x[0]*(1 + x[0])*vertices[5]; # <<<<<<<<<<<<<<
1360 *
1361 *
1362 */
1363 (__pyx_v_scol[1]) = (((((((((((((((((((((-0.5 * (-1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[9])) + ((((-1.0 + (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[17]))) + ((((0.25 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[1]))) - ((((0.5 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[15]))) + ((((0.25 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[3]))) - ((((0.5 * (-1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[11]))) - ((((0.5 * (1.0 + (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[13]))) + ((((1.0 + (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[17]))) + ((((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[7]))) - ((((0.5 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[15]))) + ((((0.25 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[5]))) - ((((0.5 * (1.0 + (__pyx_v_x[1]))) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[11]))) - ((((0.5 * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[9]))) - ((((0.5 * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[0]))) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[13]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[1]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (-1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[7]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[3]))) + ((((0.25 * (__pyx_v_x[1])) * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[0]))) * (__pyx_v_vertices[5])));
1364
1365 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":82
1366 * @cython.wraparound(False)
1367 * @cython.cdivision(True)
1368 * cdef void Q2Jacobian2D(double* rcol, # <<<<<<<<<<<<<<
1369 * double* scol,
1370 * double* x,
1371 */
1372
1373 /* function exit code */
1374 }
1375
1376 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":96
1377 * @cython.wraparound(False)
1378 * @cython.cdivision(True)
1379 * cdef void Tet2Function3D(double* fx, # <<<<<<<<<<<<<<
1380 * double* x,
1381 * double* vertices,
1382 */
1383
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Tet2Function3D(double * __pyx_v_fx,double * __pyx_v_x,double * __pyx_v_vertices,double * __pyx_v_phys_x)1384 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Tet2Function3D(double *__pyx_v_fx, double *__pyx_v_x, double *__pyx_v_vertices, double *__pyx_v_phys_x) {
1385
1386 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":100
1387 * double* vertices,
1388 * double* phys_x) nogil:
1389 * fx[0] = (-x[0] + 2*pow(x[0], 2))*vertices[3] + (-x[1] + 2*pow(x[1], 2))*vertices[6] + (-x[2] + 2*pow(x[2], 2))*vertices[9] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[12] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[18] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[21] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[0] - phys_x[0] + 4*x[0]*x[1]*vertices[15] + 4*x[0]*x[2]*vertices[24] + 4*x[1]*x[2]*vertices[27]; # <<<<<<<<<<<<<<
1390 * fx[1] = (-x[0] + 2*pow(x[0], 2))*vertices[4] + (-x[1] + 2*pow(x[1], 2))*vertices[7] + (-x[2] + 2*pow(x[2], 2))*vertices[10] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[13] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[19] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[22] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[1] - phys_x[1] + 4*x[0]*x[1]*vertices[16] + 4*x[0]*x[2]*vertices[25] + 4*x[1]*x[2]*vertices[28];
1391 * fx[2] = (-x[0] + 2*pow(x[0], 2))*vertices[5] + (-x[1] + 2*pow(x[1], 2))*vertices[8] + (-x[2] + 2*pow(x[2], 2))*vertices[11] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[14] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[20] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[23] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[2] - phys_x[2] + 4*x[0]*x[1]*vertices[17] + 4*x[0]*x[2]*vertices[26] + 4*x[1]*x[2]*vertices[29];
1392 */
1393 (__pyx_v_fx[0]) = (((((((((((((-(__pyx_v_x[0])) + (2.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[3])) + (((-(__pyx_v_x[1])) + (2.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[6]))) + (((-(__pyx_v_x[2])) + (2.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[9]))) + (((((4.0 * (__pyx_v_x[0])) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2]))) - (4.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[12]))) + (((((4.0 * (__pyx_v_x[1])) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[0]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2]))) - (4.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[18]))) + (((((4.0 * (__pyx_v_x[2])) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_x[0]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_x[1]))) - (4.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[21]))) + ((((((((((1.0 - (3.0 * (__pyx_v_x[0]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[0]), 2.0))) - (3.0 * (__pyx_v_x[1]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[1]), 2.0))) - (3.0 * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[0]))) - (__pyx_v_phys_x[0])) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (__pyx_v_vertices[15]))) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2])) * (__pyx_v_vertices[24]))) + (((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2])) * (__pyx_v_vertices[27])));
1394
1395 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":101
1396 * double* phys_x) nogil:
1397 * fx[0] = (-x[0] + 2*pow(x[0], 2))*vertices[3] + (-x[1] + 2*pow(x[1], 2))*vertices[6] + (-x[2] + 2*pow(x[2], 2))*vertices[9] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[12] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[18] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[21] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[0] - phys_x[0] + 4*x[0]*x[1]*vertices[15] + 4*x[0]*x[2]*vertices[24] + 4*x[1]*x[2]*vertices[27];
1398 * fx[1] = (-x[0] + 2*pow(x[0], 2))*vertices[4] + (-x[1] + 2*pow(x[1], 2))*vertices[7] + (-x[2] + 2*pow(x[2], 2))*vertices[10] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[13] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[19] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[22] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[1] - phys_x[1] + 4*x[0]*x[1]*vertices[16] + 4*x[0]*x[2]*vertices[25] + 4*x[1]*x[2]*vertices[28]; # <<<<<<<<<<<<<<
1399 * fx[2] = (-x[0] + 2*pow(x[0], 2))*vertices[5] + (-x[1] + 2*pow(x[1], 2))*vertices[8] + (-x[2] + 2*pow(x[2], 2))*vertices[11] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[14] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[20] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[23] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[2] - phys_x[2] + 4*x[0]*x[1]*vertices[17] + 4*x[0]*x[2]*vertices[26] + 4*x[1]*x[2]*vertices[29];
1400 *
1401 */
1402 (__pyx_v_fx[1]) = (((((((((((((-(__pyx_v_x[0])) + (2.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[4])) + (((-(__pyx_v_x[1])) + (2.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[7]))) + (((-(__pyx_v_x[2])) + (2.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[10]))) + (((((4.0 * (__pyx_v_x[0])) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2]))) - (4.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[13]))) + (((((4.0 * (__pyx_v_x[1])) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[0]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2]))) - (4.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[19]))) + (((((4.0 * (__pyx_v_x[2])) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_x[0]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_x[1]))) - (4.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[22]))) + ((((((((((1.0 - (3.0 * (__pyx_v_x[0]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[0]), 2.0))) - (3.0 * (__pyx_v_x[1]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[1]), 2.0))) - (3.0 * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[1]))) - (__pyx_v_phys_x[1])) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (__pyx_v_vertices[16]))) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2])) * (__pyx_v_vertices[25]))) + (((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2])) * (__pyx_v_vertices[28])));
1403
1404 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":102
1405 * fx[0] = (-x[0] + 2*pow(x[0], 2))*vertices[3] + (-x[1] + 2*pow(x[1], 2))*vertices[6] + (-x[2] + 2*pow(x[2], 2))*vertices[9] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[12] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[18] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[21] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[0] - phys_x[0] + 4*x[0]*x[1]*vertices[15] + 4*x[0]*x[2]*vertices[24] + 4*x[1]*x[2]*vertices[27];
1406 * fx[1] = (-x[0] + 2*pow(x[0], 2))*vertices[4] + (-x[1] + 2*pow(x[1], 2))*vertices[7] + (-x[2] + 2*pow(x[2], 2))*vertices[10] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[13] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[19] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[22] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[1] - phys_x[1] + 4*x[0]*x[1]*vertices[16] + 4*x[0]*x[2]*vertices[25] + 4*x[1]*x[2]*vertices[28];
1407 * fx[2] = (-x[0] + 2*pow(x[0], 2))*vertices[5] + (-x[1] + 2*pow(x[1], 2))*vertices[8] + (-x[2] + 2*pow(x[2], 2))*vertices[11] + (4*x[0] - 4*x[0]*x[1] - 4*x[0]*x[2] - 4*pow(x[0], 2))*vertices[14] + (4*x[1] - 4*x[1]*x[0] - 4*x[1]*x[2] - 4*pow(x[1], 2))*vertices[20] + (4*x[2] - 4*x[2]*x[0] - 4*x[2]*x[1] - 4*pow(x[2], 2))*vertices[23] + (1 - 3*x[0] + 4*x[0]*x[1] + 4*x[0]*x[2] + 2*pow(x[0], 2) - 3*x[1] + 4*x[1]*x[2] + 2*pow(x[1], 2) - 3*x[2] + 2*pow(x[2], 2))*vertices[2] - phys_x[2] + 4*x[0]*x[1]*vertices[17] + 4*x[0]*x[2]*vertices[26] + 4*x[1]*x[2]*vertices[29]; # <<<<<<<<<<<<<<
1408 *
1409 *
1410 */
1411 (__pyx_v_fx[2]) = (((((((((((((-(__pyx_v_x[0])) + (2.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[5])) + (((-(__pyx_v_x[1])) + (2.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[8]))) + (((-(__pyx_v_x[2])) + (2.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[11]))) + (((((4.0 * (__pyx_v_x[0])) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2]))) - (4.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[14]))) + (((((4.0 * (__pyx_v_x[1])) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[0]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2]))) - (4.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[20]))) + (((((4.0 * (__pyx_v_x[2])) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_x[0]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_x[1]))) - (4.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[23]))) + ((((((((((1.0 - (3.0 * (__pyx_v_x[0]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[0]), 2.0))) - (3.0 * (__pyx_v_x[1]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[1]), 2.0))) - (3.0 * (__pyx_v_x[2]))) + (2.0 * pow((__pyx_v_x[2]), 2.0))) * (__pyx_v_vertices[2]))) - (__pyx_v_phys_x[2])) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (__pyx_v_vertices[17]))) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[2])) * (__pyx_v_vertices[26]))) + (((4.0 * (__pyx_v_x[1])) * (__pyx_v_x[2])) * (__pyx_v_vertices[29])));
1412
1413 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":96
1414 * @cython.wraparound(False)
1415 * @cython.cdivision(True)
1416 * cdef void Tet2Function3D(double* fx, # <<<<<<<<<<<<<<
1417 * double* x,
1418 * double* vertices,
1419 */
1420
1421 /* function exit code */
1422 }
1423
1424 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":108
1425 * @cython.wraparound(False)
1426 * @cython.cdivision(True)
1427 * cdef void Tet2Jacobian3D(double* rcol, # <<<<<<<<<<<<<<
1428 * double* scol,
1429 * double* tcol,
1430 */
1431
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Tet2Jacobian3D(double * __pyx_v_rcol,double * __pyx_v_scol,double * __pyx_v_tcol,double * __pyx_v_x,double * __pyx_v_vertices,CYTHON_UNUSED double * __pyx_v_phys_x)1432 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Tet2Jacobian3D(double *__pyx_v_rcol, double *__pyx_v_scol, double *__pyx_v_tcol, double *__pyx_v_x, double *__pyx_v_vertices, CYTHON_UNUSED double *__pyx_v_phys_x) {
1433
1434 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":114
1435 * double* vertices,
1436 * double* phys_x) nogil:
1437 * rcol[0] = (-1 + 4*x[0])*vertices[3] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[12] + 4*x[1]*vertices[15] - 4*x[1]*vertices[18] - 4*x[2]*vertices[21] + 4*x[2]*vertices[24]; # <<<<<<<<<<<<<<
1438 * scol[0] = (-1 + 4*x[1])*vertices[6] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[18] - 4*x[0]*vertices[12] + 4*x[0]*vertices[15] - 4*x[2]*vertices[21] + 4*x[2]*vertices[27];
1439 * tcol[0] = (-1 + 4*x[2])*vertices[9] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[21] - 4*x[0]*vertices[12] + 4*x[0]*vertices[24] - 4*x[1]*vertices[18] + 4*x[1]*vertices[27];
1440 */
1441 (__pyx_v_rcol[0]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[0]))) * (__pyx_v_vertices[3])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[0]))) + ((((4.0 - (8.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) - (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[12]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[15]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[18]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[21]))) + ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[24])));
1442
1443 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":115
1444 * double* phys_x) nogil:
1445 * rcol[0] = (-1 + 4*x[0])*vertices[3] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[12] + 4*x[1]*vertices[15] - 4*x[1]*vertices[18] - 4*x[2]*vertices[21] + 4*x[2]*vertices[24];
1446 * scol[0] = (-1 + 4*x[1])*vertices[6] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[18] - 4*x[0]*vertices[12] + 4*x[0]*vertices[15] - 4*x[2]*vertices[21] + 4*x[2]*vertices[27]; # <<<<<<<<<<<<<<
1447 * tcol[0] = (-1 + 4*x[2])*vertices[9] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[21] - 4*x[0]*vertices[12] + 4*x[0]*vertices[24] - 4*x[1]*vertices[18] + 4*x[1]*vertices[27];
1448 * rcol[1] = (-1 + 4*x[0])*vertices[4] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[13] + 4*x[1]*vertices[16] - 4*x[1]*vertices[19] - 4*x[2]*vertices[22] + 4*x[2]*vertices[25];
1449 */
1450 (__pyx_v_scol[0]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[6])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[0]))) + ((((4.0 - (4.0 * (__pyx_v_x[0]))) - (8.0 * (__pyx_v_x[1]))) - (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[18]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[12]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[15]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[21]))) + ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[27])));
1451
1452 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":116
1453 * rcol[0] = (-1 + 4*x[0])*vertices[3] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[12] + 4*x[1]*vertices[15] - 4*x[1]*vertices[18] - 4*x[2]*vertices[21] + 4*x[2]*vertices[24];
1454 * scol[0] = (-1 + 4*x[1])*vertices[6] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[18] - 4*x[0]*vertices[12] + 4*x[0]*vertices[15] - 4*x[2]*vertices[21] + 4*x[2]*vertices[27];
1455 * tcol[0] = (-1 + 4*x[2])*vertices[9] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[21] - 4*x[0]*vertices[12] + 4*x[0]*vertices[24] - 4*x[1]*vertices[18] + 4*x[1]*vertices[27]; # <<<<<<<<<<<<<<
1456 * rcol[1] = (-1 + 4*x[0])*vertices[4] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[13] + 4*x[1]*vertices[16] - 4*x[1]*vertices[19] - 4*x[2]*vertices[22] + 4*x[2]*vertices[25];
1457 * scol[1] = (-1 + 4*x[1])*vertices[7] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[19] - 4*x[0]*vertices[13] + 4*x[0]*vertices[16] - 4*x[2]*vertices[22] + 4*x[2]*vertices[28];
1458 */
1459 (__pyx_v_tcol[0]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[9])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[0]))) + ((((4.0 - (4.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) - (8.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[21]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[12]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[24]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[18]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[27])));
1460
1461 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":117
1462 * scol[0] = (-1 + 4*x[1])*vertices[6] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[18] - 4*x[0]*vertices[12] + 4*x[0]*vertices[15] - 4*x[2]*vertices[21] + 4*x[2]*vertices[27];
1463 * tcol[0] = (-1 + 4*x[2])*vertices[9] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[21] - 4*x[0]*vertices[12] + 4*x[0]*vertices[24] - 4*x[1]*vertices[18] + 4*x[1]*vertices[27];
1464 * rcol[1] = (-1 + 4*x[0])*vertices[4] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[13] + 4*x[1]*vertices[16] - 4*x[1]*vertices[19] - 4*x[2]*vertices[22] + 4*x[2]*vertices[25]; # <<<<<<<<<<<<<<
1465 * scol[1] = (-1 + 4*x[1])*vertices[7] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[19] - 4*x[0]*vertices[13] + 4*x[0]*vertices[16] - 4*x[2]*vertices[22] + 4*x[2]*vertices[28];
1466 * tcol[1] = (-1 + 4*x[2])*vertices[10] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[22] - 4*x[0]*vertices[13] + 4*x[0]*vertices[25] - 4*x[1]*vertices[19] + 4*x[1]*vertices[28];
1467 */
1468 (__pyx_v_rcol[1]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[0]))) * (__pyx_v_vertices[4])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[1]))) + ((((4.0 - (8.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) - (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[13]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[16]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[19]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[22]))) + ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[25])));
1469
1470 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":118
1471 * tcol[0] = (-1 + 4*x[2])*vertices[9] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[0] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[21] - 4*x[0]*vertices[12] + 4*x[0]*vertices[24] - 4*x[1]*vertices[18] + 4*x[1]*vertices[27];
1472 * rcol[1] = (-1 + 4*x[0])*vertices[4] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[13] + 4*x[1]*vertices[16] - 4*x[1]*vertices[19] - 4*x[2]*vertices[22] + 4*x[2]*vertices[25];
1473 * scol[1] = (-1 + 4*x[1])*vertices[7] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[19] - 4*x[0]*vertices[13] + 4*x[0]*vertices[16] - 4*x[2]*vertices[22] + 4*x[2]*vertices[28]; # <<<<<<<<<<<<<<
1474 * tcol[1] = (-1 + 4*x[2])*vertices[10] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[22] - 4*x[0]*vertices[13] + 4*x[0]*vertices[25] - 4*x[1]*vertices[19] + 4*x[1]*vertices[28];
1475 * rcol[2] = (-1 + 4*x[0])*vertices[5] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[14] + 4*x[1]*vertices[17] - 4*x[1]*vertices[20] - 4*x[2]*vertices[23] + 4*x[2]*vertices[26];
1476 */
1477 (__pyx_v_scol[1]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[7])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[1]))) + ((((4.0 - (4.0 * (__pyx_v_x[0]))) - (8.0 * (__pyx_v_x[1]))) - (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[19]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[13]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[16]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[22]))) + ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[28])));
1478
1479 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":119
1480 * rcol[1] = (-1 + 4*x[0])*vertices[4] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[13] + 4*x[1]*vertices[16] - 4*x[1]*vertices[19] - 4*x[2]*vertices[22] + 4*x[2]*vertices[25];
1481 * scol[1] = (-1 + 4*x[1])*vertices[7] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[19] - 4*x[0]*vertices[13] + 4*x[0]*vertices[16] - 4*x[2]*vertices[22] + 4*x[2]*vertices[28];
1482 * tcol[1] = (-1 + 4*x[2])*vertices[10] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[22] - 4*x[0]*vertices[13] + 4*x[0]*vertices[25] - 4*x[1]*vertices[19] + 4*x[1]*vertices[28]; # <<<<<<<<<<<<<<
1483 * rcol[2] = (-1 + 4*x[0])*vertices[5] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[14] + 4*x[1]*vertices[17] - 4*x[1]*vertices[20] - 4*x[2]*vertices[23] + 4*x[2]*vertices[26];
1484 * scol[2] = (-1 + 4*x[1])*vertices[8] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[20] - 4*x[0]*vertices[14] + 4*x[0]*vertices[17] - 4*x[2]*vertices[23] + 4*x[2]*vertices[29];
1485 */
1486 (__pyx_v_tcol[1]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[10])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[1]))) + ((((4.0 - (4.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) - (8.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[22]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[13]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[25]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[19]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[28])));
1487
1488 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":120
1489 * scol[1] = (-1 + 4*x[1])*vertices[7] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[19] - 4*x[0]*vertices[13] + 4*x[0]*vertices[16] - 4*x[2]*vertices[22] + 4*x[2]*vertices[28];
1490 * tcol[1] = (-1 + 4*x[2])*vertices[10] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[22] - 4*x[0]*vertices[13] + 4*x[0]*vertices[25] - 4*x[1]*vertices[19] + 4*x[1]*vertices[28];
1491 * rcol[2] = (-1 + 4*x[0])*vertices[5] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[14] + 4*x[1]*vertices[17] - 4*x[1]*vertices[20] - 4*x[2]*vertices[23] + 4*x[2]*vertices[26]; # <<<<<<<<<<<<<<
1492 * scol[2] = (-1 + 4*x[1])*vertices[8] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[20] - 4*x[0]*vertices[14] + 4*x[0]*vertices[17] - 4*x[2]*vertices[23] + 4*x[2]*vertices[29];
1493 * tcol[2] = (-1 + 4*x[2])*vertices[11] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[23] - 4*x[0]*vertices[14] + 4*x[0]*vertices[26] - 4*x[1]*vertices[20] + 4*x[1]*vertices[29];
1494 */
1495 (__pyx_v_rcol[2]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[0]))) * (__pyx_v_vertices[5])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[2]))) + ((((4.0 - (8.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) - (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[14]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[17]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[20]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[23]))) + ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[26])));
1496
1497 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":121
1498 * tcol[1] = (-1 + 4*x[2])*vertices[10] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[1] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[22] - 4*x[0]*vertices[13] + 4*x[0]*vertices[25] - 4*x[1]*vertices[19] + 4*x[1]*vertices[28];
1499 * rcol[2] = (-1 + 4*x[0])*vertices[5] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[14] + 4*x[1]*vertices[17] - 4*x[1]*vertices[20] - 4*x[2]*vertices[23] + 4*x[2]*vertices[26];
1500 * scol[2] = (-1 + 4*x[1])*vertices[8] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[20] - 4*x[0]*vertices[14] + 4*x[0]*vertices[17] - 4*x[2]*vertices[23] + 4*x[2]*vertices[29]; # <<<<<<<<<<<<<<
1501 * tcol[2] = (-1 + 4*x[2])*vertices[11] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[23] - 4*x[0]*vertices[14] + 4*x[0]*vertices[26] - 4*x[1]*vertices[20] + 4*x[1]*vertices[29];
1502 *
1503 */
1504 (__pyx_v_scol[2]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[8])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[2]))) + ((((4.0 - (4.0 * (__pyx_v_x[0]))) - (8.0 * (__pyx_v_x[1]))) - (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[20]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[14]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[17]))) - ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[23]))) + ((4.0 * (__pyx_v_x[2])) * (__pyx_v_vertices[29])));
1505
1506 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":122
1507 * rcol[2] = (-1 + 4*x[0])*vertices[5] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 8*x[0] - 4*x[1] - 4*x[2])*vertices[14] + 4*x[1]*vertices[17] - 4*x[1]*vertices[20] - 4*x[2]*vertices[23] + 4*x[2]*vertices[26];
1508 * scol[2] = (-1 + 4*x[1])*vertices[8] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 4*x[0] - 8*x[1] - 4*x[2])*vertices[20] - 4*x[0]*vertices[14] + 4*x[0]*vertices[17] - 4*x[2]*vertices[23] + 4*x[2]*vertices[29];
1509 * tcol[2] = (-1 + 4*x[2])*vertices[11] + (-3 + 4*x[0] + 4*x[1] + 4*x[2])*vertices[2] + (4 - 4*x[0] - 4*x[1] - 8*x[2])*vertices[23] - 4*x[0]*vertices[14] + 4*x[0]*vertices[26] - 4*x[1]*vertices[20] + 4*x[1]*vertices[29]; # <<<<<<<<<<<<<<
1510 *
1511 *
1512 */
1513 (__pyx_v_tcol[2]) = ((((((((-1.0 + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[11])) + ((((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) + (4.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[2]))) + ((((4.0 - (4.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) - (8.0 * (__pyx_v_x[2]))) * (__pyx_v_vertices[23]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[14]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[26]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[20]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[29])));
1514
1515 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":108
1516 * @cython.wraparound(False)
1517 * @cython.cdivision(True)
1518 * cdef void Tet2Jacobian3D(double* rcol, # <<<<<<<<<<<<<<
1519 * double* scol,
1520 * double* tcol,
1521 */
1522
1523 /* function exit code */
1524 }
1525
1526 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":128
1527 * @cython.wraparound(False)
1528 * @cython.cdivision(True)
1529 * cdef void T2Function2D(double* fx, # <<<<<<<<<<<<<<
1530 * double* x,
1531 * double* vertices,
1532 */
1533
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_T2Function2D(double * __pyx_v_fx,double * __pyx_v_x,double * __pyx_v_vertices,double * __pyx_v_phys_x)1534 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_T2Function2D(double *__pyx_v_fx, double *__pyx_v_x, double *__pyx_v_vertices, double *__pyx_v_phys_x) {
1535
1536 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":132
1537 * double* vertices,
1538 * double* phys_x) nogil:
1539 * fx[0] = (-x[0] + 2*pow(x[0], 2))*vertices[2] + (-x[1] + 2*pow(x[1], 2))*vertices[4] + (-4*x[0]*x[1] + 4*x[1] - 4*pow(x[1], 2))*vertices[10] + (4*x[0] - 4*x[0]*x[1] - 4*pow(x[0], 2))*vertices[6] + (1 - 3*x[0] + 4*x[0]*x[1] + 2*pow(x[0], 2) - 3*x[1] + 2*pow(x[1], 2))*vertices[0] - phys_x[0] + 4*x[0]*x[1]*vertices[8]; # <<<<<<<<<<<<<<
1540 * fx[1] = (-x[0] + 2*pow(x[0], 2))*vertices[3] + (-x[1] + 2*pow(x[1], 2))*vertices[5] + (-4*x[0]*x[1] + 4*x[1] - 4*pow(x[1], 2))*vertices[11] + (4*x[0] - 4*x[0]*x[1] - 4*pow(x[0], 2))*vertices[7] + (1 - 3*x[0] + 4*x[0]*x[1] + 2*pow(x[0], 2) - 3*x[1] + 2*pow(x[1], 2))*vertices[1] - phys_x[1] + 4*x[0]*x[1]*vertices[9];
1541 *
1542 */
1543 (__pyx_v_fx[0]) = (((((((((-(__pyx_v_x[0])) + (2.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[2])) + (((-(__pyx_v_x[1])) + (2.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[4]))) + (((((-4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1])) + (4.0 * (__pyx_v_x[1]))) - (4.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[10]))) + ((((4.0 * (__pyx_v_x[0])) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) - (4.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[6]))) + ((((((1.0 - (3.0 * (__pyx_v_x[0]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) + (2.0 * pow((__pyx_v_x[0]), 2.0))) - (3.0 * (__pyx_v_x[1]))) + (2.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[0]))) - (__pyx_v_phys_x[0])) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (__pyx_v_vertices[8])));
1544
1545 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":133
1546 * double* phys_x) nogil:
1547 * fx[0] = (-x[0] + 2*pow(x[0], 2))*vertices[2] + (-x[1] + 2*pow(x[1], 2))*vertices[4] + (-4*x[0]*x[1] + 4*x[1] - 4*pow(x[1], 2))*vertices[10] + (4*x[0] - 4*x[0]*x[1] - 4*pow(x[0], 2))*vertices[6] + (1 - 3*x[0] + 4*x[0]*x[1] + 2*pow(x[0], 2) - 3*x[1] + 2*pow(x[1], 2))*vertices[0] - phys_x[0] + 4*x[0]*x[1]*vertices[8];
1548 * fx[1] = (-x[0] + 2*pow(x[0], 2))*vertices[3] + (-x[1] + 2*pow(x[1], 2))*vertices[5] + (-4*x[0]*x[1] + 4*x[1] - 4*pow(x[1], 2))*vertices[11] + (4*x[0] - 4*x[0]*x[1] - 4*pow(x[0], 2))*vertices[7] + (1 - 3*x[0] + 4*x[0]*x[1] + 2*pow(x[0], 2) - 3*x[1] + 2*pow(x[1], 2))*vertices[1] - phys_x[1] + 4*x[0]*x[1]*vertices[9]; # <<<<<<<<<<<<<<
1549 *
1550 *
1551 */
1552 (__pyx_v_fx[1]) = (((((((((-(__pyx_v_x[0])) + (2.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[3])) + (((-(__pyx_v_x[1])) + (2.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[5]))) + (((((-4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1])) + (4.0 * (__pyx_v_x[1]))) - (4.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[11]))) + ((((4.0 * (__pyx_v_x[0])) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) - (4.0 * pow((__pyx_v_x[0]), 2.0))) * (__pyx_v_vertices[7]))) + ((((((1.0 - (3.0 * (__pyx_v_x[0]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1]))) + (2.0 * pow((__pyx_v_x[0]), 2.0))) - (3.0 * (__pyx_v_x[1]))) + (2.0 * pow((__pyx_v_x[1]), 2.0))) * (__pyx_v_vertices[1]))) - (__pyx_v_phys_x[1])) + (((4.0 * (__pyx_v_x[0])) * (__pyx_v_x[1])) * (__pyx_v_vertices[9])));
1553
1554 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":128
1555 * @cython.wraparound(False)
1556 * @cython.cdivision(True)
1557 * cdef void T2Function2D(double* fx, # <<<<<<<<<<<<<<
1558 * double* x,
1559 * double* vertices,
1560 */
1561
1562 /* function exit code */
1563 }
1564
1565 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":139
1566 * @cython.wraparound(False)
1567 * @cython.cdivision(True)
1568 * cdef void T2Jacobian2D(double* rcol, # <<<<<<<<<<<<<<
1569 * double* scol,
1570 * double* x,
1571 */
1572
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_T2Jacobian2D(double * __pyx_v_rcol,double * __pyx_v_scol,double * __pyx_v_x,double * __pyx_v_vertices,CYTHON_UNUSED double * __pyx_v_phys_x)1573 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_T2Jacobian2D(double *__pyx_v_rcol, double *__pyx_v_scol, double *__pyx_v_x, double *__pyx_v_vertices, CYTHON_UNUSED double *__pyx_v_phys_x) {
1574
1575 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":144
1576 * double* vertices,
1577 * double* phys_x) nogil:
1578 * rcol[0] = (-1 + 4*x[0])*vertices[2] + (-3 + 4*x[0] + 4*x[1])*vertices[0] + (4 - 8*x[0] - 4*x[1])*vertices[6] + 4*x[1]*vertices[8] - 4*x[1]*vertices[10]; # <<<<<<<<<<<<<<
1579 * scol[0] = (-1 + 4*x[1])*vertices[4] + (-3 + 4*x[0] + 4*x[1])*vertices[0] + (4 - 4*x[0] - 8*x[1])*vertices[10] - 4*x[0]*vertices[6] + 4*x[0]*vertices[8];
1580 * rcol[1] = (-1 + 4*x[0])*vertices[3] + (-3 + 4*x[0] + 4*x[1])*vertices[1] + (4 - 8*x[0] - 4*x[1])*vertices[7] + 4*x[1]*vertices[9] - 4*x[1]*vertices[11];
1581 */
1582 (__pyx_v_rcol[0]) = ((((((-1.0 + (4.0 * (__pyx_v_x[0]))) * (__pyx_v_vertices[2])) + (((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[0]))) + (((4.0 - (8.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[6]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[8]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[10])));
1583
1584 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":145
1585 * double* phys_x) nogil:
1586 * rcol[0] = (-1 + 4*x[0])*vertices[2] + (-3 + 4*x[0] + 4*x[1])*vertices[0] + (4 - 8*x[0] - 4*x[1])*vertices[6] + 4*x[1]*vertices[8] - 4*x[1]*vertices[10];
1587 * scol[0] = (-1 + 4*x[1])*vertices[4] + (-3 + 4*x[0] + 4*x[1])*vertices[0] + (4 - 4*x[0] - 8*x[1])*vertices[10] - 4*x[0]*vertices[6] + 4*x[0]*vertices[8]; # <<<<<<<<<<<<<<
1588 * rcol[1] = (-1 + 4*x[0])*vertices[3] + (-3 + 4*x[0] + 4*x[1])*vertices[1] + (4 - 8*x[0] - 4*x[1])*vertices[7] + 4*x[1]*vertices[9] - 4*x[1]*vertices[11];
1589 * scol[1] = (-1 + 4*x[1])*vertices[5] + (-3 + 4*x[0] + 4*x[1])*vertices[1] + (4 - 4*x[0] - 8*x[1])*vertices[11] - 4*x[0]*vertices[7] + 4*x[0]*vertices[9];
1590 */
1591 (__pyx_v_scol[0]) = ((((((-1.0 + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[4])) + (((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[0]))) + (((4.0 - (4.0 * (__pyx_v_x[0]))) - (8.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[10]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[6]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[8])));
1592
1593 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":146
1594 * rcol[0] = (-1 + 4*x[0])*vertices[2] + (-3 + 4*x[0] + 4*x[1])*vertices[0] + (4 - 8*x[0] - 4*x[1])*vertices[6] + 4*x[1]*vertices[8] - 4*x[1]*vertices[10];
1595 * scol[0] = (-1 + 4*x[1])*vertices[4] + (-3 + 4*x[0] + 4*x[1])*vertices[0] + (4 - 4*x[0] - 8*x[1])*vertices[10] - 4*x[0]*vertices[6] + 4*x[0]*vertices[8];
1596 * rcol[1] = (-1 + 4*x[0])*vertices[3] + (-3 + 4*x[0] + 4*x[1])*vertices[1] + (4 - 8*x[0] - 4*x[1])*vertices[7] + 4*x[1]*vertices[9] - 4*x[1]*vertices[11]; # <<<<<<<<<<<<<<
1597 * scol[1] = (-1 + 4*x[1])*vertices[5] + (-3 + 4*x[0] + 4*x[1])*vertices[1] + (4 - 4*x[0] - 8*x[1])*vertices[11] - 4*x[0]*vertices[7] + 4*x[0]*vertices[9];
1598 *
1599 */
1600 (__pyx_v_rcol[1]) = ((((((-1.0 + (4.0 * (__pyx_v_x[0]))) * (__pyx_v_vertices[3])) + (((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[1]))) + (((4.0 - (8.0 * (__pyx_v_x[0]))) - (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[7]))) + ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[9]))) - ((4.0 * (__pyx_v_x[1])) * (__pyx_v_vertices[11])));
1601
1602 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":147
1603 * scol[0] = (-1 + 4*x[1])*vertices[4] + (-3 + 4*x[0] + 4*x[1])*vertices[0] + (4 - 4*x[0] - 8*x[1])*vertices[10] - 4*x[0]*vertices[6] + 4*x[0]*vertices[8];
1604 * rcol[1] = (-1 + 4*x[0])*vertices[3] + (-3 + 4*x[0] + 4*x[1])*vertices[1] + (4 - 8*x[0] - 4*x[1])*vertices[7] + 4*x[1]*vertices[9] - 4*x[1]*vertices[11];
1605 * scol[1] = (-1 + 4*x[1])*vertices[5] + (-3 + 4*x[0] + 4*x[1])*vertices[1] + (4 - 4*x[0] - 8*x[1])*vertices[11] - 4*x[0]*vertices[7] + 4*x[0]*vertices[9]; # <<<<<<<<<<<<<<
1606 *
1607 *
1608 */
1609 (__pyx_v_scol[1]) = ((((((-1.0 + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[5])) + (((-3.0 + (4.0 * (__pyx_v_x[0]))) + (4.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[1]))) + (((4.0 - (4.0 * (__pyx_v_x[0]))) - (8.0 * (__pyx_v_x[1]))) * (__pyx_v_vertices[11]))) - ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[7]))) + ((4.0 * (__pyx_v_x[0])) * (__pyx_v_vertices[9])));
1610
1611 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":139
1612 * @cython.wraparound(False)
1613 * @cython.cdivision(True)
1614 * cdef void T2Jacobian2D(double* rcol, # <<<<<<<<<<<<<<
1615 * double* scol,
1616 * double* x,
1617 */
1618
1619 /* function exit code */
1620 }
1621
1622 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":153
1623 * @cython.wraparound(False)
1624 * @cython.cdivision(True)
1625 * cdef void W1Function3D(double* fx, # <<<<<<<<<<<<<<
1626 * double* x,
1627 * double* vertices,
1628 */
1629
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_W1Function3D(double * __pyx_v_fx,double * __pyx_v_x,double * __pyx_v_vertices,double * __pyx_v_phys_x)1630 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_W1Function3D(double *__pyx_v_fx, double *__pyx_v_x, double *__pyx_v_vertices, double *__pyx_v_phys_x) {
1631
1632 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":157
1633 * double* vertices,
1634 * double* phys_x) nogil:
1635 * fx[0] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[0] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[9] - phys_x[0] + 0.5*x[0]*(1 - x[2])*vertices[3] + 0.5*x[0]*(1 + x[2])*vertices[12] + 0.5*x[1]*(1 - x[2])*vertices[6] + 0.5*x[1]*(1 + x[2])*vertices[15]; # <<<<<<<<<<<<<<
1636 * fx[1] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[1] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[10] - phys_x[1] + 0.5*x[0]*(1 - x[2])*vertices[4] + 0.5*x[0]*(1 + x[2])*vertices[13] + 0.5*x[1]*(1 - x[2])*vertices[7] + 0.5*x[1]*(1 + x[2])*vertices[16];
1637 * fx[2] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[2] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[11] - phys_x[2] + 0.5*x[0]*(1 - x[2])*vertices[5] + 0.5*x[0]*(1 + x[2])*vertices[14] + 0.5*x[1]*(1 - x[2])*vertices[8] + 0.5*x[1]*(1 + x[2])*vertices[17];
1638 */
1639 (__pyx_v_fx[0]) = (((((((((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[0])) + (((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[9]))) - (__pyx_v_phys_x[0])) + (((0.5 * (__pyx_v_x[0])) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[3]))) + (((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[12]))) + (((0.5 * (__pyx_v_x[1])) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[6]))) + (((0.5 * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[15])));
1640
1641 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":158
1642 * double* phys_x) nogil:
1643 * fx[0] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[0] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[9] - phys_x[0] + 0.5*x[0]*(1 - x[2])*vertices[3] + 0.5*x[0]*(1 + x[2])*vertices[12] + 0.5*x[1]*(1 - x[2])*vertices[6] + 0.5*x[1]*(1 + x[2])*vertices[15];
1644 * fx[1] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[1] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[10] - phys_x[1] + 0.5*x[0]*(1 - x[2])*vertices[4] + 0.5*x[0]*(1 + x[2])*vertices[13] + 0.5*x[1]*(1 - x[2])*vertices[7] + 0.5*x[1]*(1 + x[2])*vertices[16]; # <<<<<<<<<<<<<<
1645 * fx[2] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[2] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[11] - phys_x[2] + 0.5*x[0]*(1 - x[2])*vertices[5] + 0.5*x[0]*(1 + x[2])*vertices[14] + 0.5*x[1]*(1 - x[2])*vertices[8] + 0.5*x[1]*(1 + x[2])*vertices[17];
1646 *
1647 */
1648 (__pyx_v_fx[1]) = (((((((((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[1])) + (((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[10]))) - (__pyx_v_phys_x[1])) + (((0.5 * (__pyx_v_x[0])) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[4]))) + (((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[13]))) + (((0.5 * (__pyx_v_x[1])) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[7]))) + (((0.5 * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[16])));
1649
1650 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":159
1651 * fx[0] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[0] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[9] - phys_x[0] + 0.5*x[0]*(1 - x[2])*vertices[3] + 0.5*x[0]*(1 + x[2])*vertices[12] + 0.5*x[1]*(1 - x[2])*vertices[6] + 0.5*x[1]*(1 + x[2])*vertices[15];
1652 * fx[1] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[1] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[10] - phys_x[1] + 0.5*x[0]*(1 - x[2])*vertices[4] + 0.5*x[0]*(1 + x[2])*vertices[13] + 0.5*x[1]*(1 - x[2])*vertices[7] + 0.5*x[1]*(1 + x[2])*vertices[16];
1653 * fx[2] = 0.5*(1 - x[0] - x[1])*(1 - x[2])*vertices[2] + 0.5*(1 - x[0] - x[1])*(1 + x[2])*vertices[11] - phys_x[2] + 0.5*x[0]*(1 - x[2])*vertices[5] + 0.5*x[0]*(1 + x[2])*vertices[14] + 0.5*x[1]*(1 - x[2])*vertices[8] + 0.5*x[1]*(1 + x[2])*vertices[17]; # <<<<<<<<<<<<<<
1654 *
1655 *
1656 */
1657 (__pyx_v_fx[2]) = (((((((((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[2])) + (((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[11]))) - (__pyx_v_phys_x[2])) + (((0.5 * (__pyx_v_x[0])) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[5]))) + (((0.5 * (__pyx_v_x[0])) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[14]))) + (((0.5 * (__pyx_v_x[1])) * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[8]))) + (((0.5 * (__pyx_v_x[1])) * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[17])));
1658
1659 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":153
1660 * @cython.wraparound(False)
1661 * @cython.cdivision(True)
1662 * cdef void W1Function3D(double* fx, # <<<<<<<<<<<<<<
1663 * double* x,
1664 * double* vertices,
1665 */
1666
1667 /* function exit code */
1668 }
1669
1670 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":165
1671 * @cython.wraparound(False)
1672 * @cython.cdivision(True)
1673 * cdef void W1Jacobian3D(double* rcol, # <<<<<<<<<<<<<<
1674 * double* scol,
1675 * double* tcol,
1676 */
1677
__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_W1Jacobian3D(double * __pyx_v_rcol,double * __pyx_v_scol,double * __pyx_v_tcol,double * __pyx_v_x,double * __pyx_v_vertices,CYTHON_UNUSED double * __pyx_v_phys_x)1678 static void __pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_W1Jacobian3D(double *__pyx_v_rcol, double *__pyx_v_scol, double *__pyx_v_tcol, double *__pyx_v_x, double *__pyx_v_vertices, CYTHON_UNUSED double *__pyx_v_phys_x) {
1679
1680 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":171
1681 * double* vertices,
1682 * double* phys_x) nogil:
1683 * rcol[0] = -0.5*(1 - x[2])*vertices[0] + 0.5*(1 - x[2])*vertices[3] - 0.5*(1 + x[2])*vertices[9] + 0.5*(1 + x[2])*vertices[12]; # <<<<<<<<<<<<<<
1684 * scol[0] = -0.5*(1 - x[2])*vertices[0] + 0.5*(1 - x[2])*vertices[6] - 0.5*(1 + x[2])*vertices[9] + 0.5*(1 + x[2])*vertices[15];
1685 * tcol[0] = -0.5*(1 - x[0] - x[1])*vertices[0] + 0.5*(1 - x[0] - x[1])*vertices[9] - 0.5*x[0]*vertices[3] + 0.5*x[0]*vertices[12] - 0.5*x[1]*vertices[6] + 0.5*x[1]*vertices[15];
1686 */
1687 (__pyx_v_rcol[0]) = (((((-0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[0])) + ((0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[3]))) - ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[9]))) + ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[12])));
1688
1689 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":172
1690 * double* phys_x) nogil:
1691 * rcol[0] = -0.5*(1 - x[2])*vertices[0] + 0.5*(1 - x[2])*vertices[3] - 0.5*(1 + x[2])*vertices[9] + 0.5*(1 + x[2])*vertices[12];
1692 * scol[0] = -0.5*(1 - x[2])*vertices[0] + 0.5*(1 - x[2])*vertices[6] - 0.5*(1 + x[2])*vertices[9] + 0.5*(1 + x[2])*vertices[15]; # <<<<<<<<<<<<<<
1693 * tcol[0] = -0.5*(1 - x[0] - x[1])*vertices[0] + 0.5*(1 - x[0] - x[1])*vertices[9] - 0.5*x[0]*vertices[3] + 0.5*x[0]*vertices[12] - 0.5*x[1]*vertices[6] + 0.5*x[1]*vertices[15];
1694 * rcol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[4] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[13];
1695 */
1696 (__pyx_v_scol[0]) = (((((-0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[0])) + ((0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[6]))) - ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[9]))) + ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[15])));
1697
1698 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":173
1699 * rcol[0] = -0.5*(1 - x[2])*vertices[0] + 0.5*(1 - x[2])*vertices[3] - 0.5*(1 + x[2])*vertices[9] + 0.5*(1 + x[2])*vertices[12];
1700 * scol[0] = -0.5*(1 - x[2])*vertices[0] + 0.5*(1 - x[2])*vertices[6] - 0.5*(1 + x[2])*vertices[9] + 0.5*(1 + x[2])*vertices[15];
1701 * tcol[0] = -0.5*(1 - x[0] - x[1])*vertices[0] + 0.5*(1 - x[0] - x[1])*vertices[9] - 0.5*x[0]*vertices[3] + 0.5*x[0]*vertices[12] - 0.5*x[1]*vertices[6] + 0.5*x[1]*vertices[15]; # <<<<<<<<<<<<<<
1702 * rcol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[4] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[13];
1703 * scol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[7] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[16];
1704 */
1705 (__pyx_v_tcol[0]) = (((((((-0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (__pyx_v_vertices[0])) + ((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (__pyx_v_vertices[9]))) - ((0.5 * (__pyx_v_x[0])) * (__pyx_v_vertices[3]))) + ((0.5 * (__pyx_v_x[0])) * (__pyx_v_vertices[12]))) - ((0.5 * (__pyx_v_x[1])) * (__pyx_v_vertices[6]))) + ((0.5 * (__pyx_v_x[1])) * (__pyx_v_vertices[15])));
1706
1707 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":174
1708 * scol[0] = -0.5*(1 - x[2])*vertices[0] + 0.5*(1 - x[2])*vertices[6] - 0.5*(1 + x[2])*vertices[9] + 0.5*(1 + x[2])*vertices[15];
1709 * tcol[0] = -0.5*(1 - x[0] - x[1])*vertices[0] + 0.5*(1 - x[0] - x[1])*vertices[9] - 0.5*x[0]*vertices[3] + 0.5*x[0]*vertices[12] - 0.5*x[1]*vertices[6] + 0.5*x[1]*vertices[15];
1710 * rcol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[4] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[13]; # <<<<<<<<<<<<<<
1711 * scol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[7] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[16];
1712 * tcol[1] = -0.5*(1 - x[0] - x[1])*vertices[1] + 0.5*(1 - x[0] - x[1])*vertices[10] - 0.5*x[0]*vertices[4] + 0.5*x[0]*vertices[13] - 0.5*x[1]*vertices[7] + 0.5*x[1]*vertices[16];
1713 */
1714 (__pyx_v_rcol[1]) = (((((-0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[1])) + ((0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[4]))) - ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[10]))) + ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[13])));
1715
1716 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":175
1717 * tcol[0] = -0.5*(1 - x[0] - x[1])*vertices[0] + 0.5*(1 - x[0] - x[1])*vertices[9] - 0.5*x[0]*vertices[3] + 0.5*x[0]*vertices[12] - 0.5*x[1]*vertices[6] + 0.5*x[1]*vertices[15];
1718 * rcol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[4] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[13];
1719 * scol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[7] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[16]; # <<<<<<<<<<<<<<
1720 * tcol[1] = -0.5*(1 - x[0] - x[1])*vertices[1] + 0.5*(1 - x[0] - x[1])*vertices[10] - 0.5*x[0]*vertices[4] + 0.5*x[0]*vertices[13] - 0.5*x[1]*vertices[7] + 0.5*x[1]*vertices[16];
1721 * rcol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[5] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[14];
1722 */
1723 (__pyx_v_scol[1]) = (((((-0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[1])) + ((0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[7]))) - ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[10]))) + ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[16])));
1724
1725 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":176
1726 * rcol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[4] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[13];
1727 * scol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[7] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[16];
1728 * tcol[1] = -0.5*(1 - x[0] - x[1])*vertices[1] + 0.5*(1 - x[0] - x[1])*vertices[10] - 0.5*x[0]*vertices[4] + 0.5*x[0]*vertices[13] - 0.5*x[1]*vertices[7] + 0.5*x[1]*vertices[16]; # <<<<<<<<<<<<<<
1729 * rcol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[5] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[14];
1730 * scol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[8] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[17];
1731 */
1732 (__pyx_v_tcol[1]) = (((((((-0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (__pyx_v_vertices[1])) + ((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (__pyx_v_vertices[10]))) - ((0.5 * (__pyx_v_x[0])) * (__pyx_v_vertices[4]))) + ((0.5 * (__pyx_v_x[0])) * (__pyx_v_vertices[13]))) - ((0.5 * (__pyx_v_x[1])) * (__pyx_v_vertices[7]))) + ((0.5 * (__pyx_v_x[1])) * (__pyx_v_vertices[16])));
1733
1734 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":177
1735 * scol[1] = -0.5*(1 - x[2])*vertices[1] + 0.5*(1 - x[2])*vertices[7] - 0.5*(1 + x[2])*vertices[10] + 0.5*(1 + x[2])*vertices[16];
1736 * tcol[1] = -0.5*(1 - x[0] - x[1])*vertices[1] + 0.5*(1 - x[0] - x[1])*vertices[10] - 0.5*x[0]*vertices[4] + 0.5*x[0]*vertices[13] - 0.5*x[1]*vertices[7] + 0.5*x[1]*vertices[16];
1737 * rcol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[5] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[14]; # <<<<<<<<<<<<<<
1738 * scol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[8] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[17];
1739 * tcol[2] = -0.5*(1 - x[0] - x[1])*vertices[2] + 0.5*(1 - x[0] - x[1])*vertices[11] - 0.5*x[0]*vertices[5] + 0.5*x[0]*vertices[14] - 0.5*x[1]*vertices[8] + 0.5*x[1]*vertices[17];
1740 */
1741 (__pyx_v_rcol[2]) = (((((-0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[2])) + ((0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[5]))) - ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[11]))) + ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[14])));
1742
1743 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":178
1744 * tcol[1] = -0.5*(1 - x[0] - x[1])*vertices[1] + 0.5*(1 - x[0] - x[1])*vertices[10] - 0.5*x[0]*vertices[4] + 0.5*x[0]*vertices[13] - 0.5*x[1]*vertices[7] + 0.5*x[1]*vertices[16];
1745 * rcol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[5] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[14];
1746 * scol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[8] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[17]; # <<<<<<<<<<<<<<
1747 * tcol[2] = -0.5*(1 - x[0] - x[1])*vertices[2] + 0.5*(1 - x[0] - x[1])*vertices[11] - 0.5*x[0]*vertices[5] + 0.5*x[0]*vertices[14] - 0.5*x[1]*vertices[8] + 0.5*x[1]*vertices[17];
1748 */
1749 (__pyx_v_scol[2]) = (((((-0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[2])) + ((0.5 * (1.0 - (__pyx_v_x[2]))) * (__pyx_v_vertices[8]))) - ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[11]))) + ((0.5 * (1.0 + (__pyx_v_x[2]))) * (__pyx_v_vertices[17])));
1750
1751 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":179
1752 * rcol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[5] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[14];
1753 * scol[2] = -0.5*(1 - x[2])*vertices[2] + 0.5*(1 - x[2])*vertices[8] - 0.5*(1 + x[2])*vertices[11] + 0.5*(1 + x[2])*vertices[17];
1754 * tcol[2] = -0.5*(1 - x[0] - x[1])*vertices[2] + 0.5*(1 - x[0] - x[1])*vertices[11] - 0.5*x[0]*vertices[5] + 0.5*x[0]*vertices[14] - 0.5*x[1]*vertices[8] + 0.5*x[1]*vertices[17]; # <<<<<<<<<<<<<<
1755 */
1756 (__pyx_v_tcol[2]) = (((((((-0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (__pyx_v_vertices[2])) + ((0.5 * ((1.0 - (__pyx_v_x[0])) - (__pyx_v_x[1]))) * (__pyx_v_vertices[11]))) - ((0.5 * (__pyx_v_x[0])) * (__pyx_v_vertices[5]))) + ((0.5 * (__pyx_v_x[0])) * (__pyx_v_vertices[14]))) - ((0.5 * (__pyx_v_x[1])) * (__pyx_v_vertices[8]))) + ((0.5 * (__pyx_v_x[1])) * (__pyx_v_vertices[17])));
1757
1758 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":165
1759 * @cython.wraparound(False)
1760 * @cython.cdivision(True)
1761 * cdef void W1Jacobian3D(double* rcol, # <<<<<<<<<<<<<<
1762 * double* scol,
1763 * double* tcol,
1764 */
1765
1766 /* function exit code */
1767 }
1768
1769 static PyMethodDef __pyx_methods[] = {
1770 {0, 0, 0, 0}
1771 };
1772
1773 #if PY_MAJOR_VERSION >= 3
1774 #if CYTHON_PEP489_MULTI_PHASE_INIT
1775 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
1776 static int __pyx_pymod_exec_autogenerated_element_samplers(PyObject* module); /*proto*/
1777 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
1778 {Py_mod_create, (void*)__pyx_pymod_create},
1779 {Py_mod_exec, (void*)__pyx_pymod_exec_autogenerated_element_samplers},
1780 {0, NULL}
1781 };
1782 #endif
1783
1784 static struct PyModuleDef __pyx_moduledef = {
1785 PyModuleDef_HEAD_INIT,
1786 "autogenerated_element_samplers",
1787 0, /* m_doc */
1788 #if CYTHON_PEP489_MULTI_PHASE_INIT
1789 0, /* m_size */
1790 #else
1791 -1, /* m_size */
1792 #endif
1793 __pyx_methods /* m_methods */,
1794 #if CYTHON_PEP489_MULTI_PHASE_INIT
1795 __pyx_moduledef_slots, /* m_slots */
1796 #else
1797 NULL, /* m_reload */
1798 #endif
1799 NULL, /* m_traverse */
1800 NULL, /* m_clear */
1801 NULL /* m_free */
1802 };
1803 #endif
1804 #ifndef CYTHON_SMALL_CODE
1805 #if defined(__clang__)
1806 #define CYTHON_SMALL_CODE
1807 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
1808 #define CYTHON_SMALL_CODE __attribute__((cold))
1809 #else
1810 #define CYTHON_SMALL_CODE
1811 #endif
1812 #endif
1813
1814 static __Pyx_StringTabEntry __pyx_string_tab[] = {
1815 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
1816 {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
1817 {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
1818 {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
1819 {0, 0, 0, 0, 0, 0, 0}
1820 };
__Pyx_InitCachedBuiltins(void)1821 static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
1822 return 0;
1823 }
1824
__Pyx_InitCachedConstants(void)1825 static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
1826 __Pyx_RefNannyDeclarations
1827 __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
1828 __Pyx_RefNannyFinishContext();
1829 return 0;
1830 }
1831
__Pyx_InitGlobals(void)1832 static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
1833 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
1834 return 0;
1835 __pyx_L1_error:;
1836 return -1;
1837 }
1838
1839 static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
1840 static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
1841 static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
1842 static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
1843 static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
1844 static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
1845 static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/
1846
__Pyx_modinit_global_init_code(void)1847 static int __Pyx_modinit_global_init_code(void) {
1848 __Pyx_RefNannyDeclarations
1849 __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
1850 /*--- Global init code ---*/
1851 __Pyx_RefNannyFinishContext();
1852 return 0;
1853 }
1854
__Pyx_modinit_variable_export_code(void)1855 static int __Pyx_modinit_variable_export_code(void) {
1856 __Pyx_RefNannyDeclarations
1857 __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
1858 /*--- Variable export code ---*/
1859 __Pyx_RefNannyFinishContext();
1860 return 0;
1861 }
1862
__Pyx_modinit_function_export_code(void)1863 static int __Pyx_modinit_function_export_code(void) {
1864 __Pyx_RefNannyDeclarations
1865 __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
1866 /*--- Function export code ---*/
1867 if (__Pyx_ExportFunction("Q1Function3D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Function3D, "void (double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1868 if (__Pyx_ExportFunction("Q1Jacobian3D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Jacobian3D, "void (double *, double *, double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1869 if (__Pyx_ExportFunction("Q1Function2D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Function2D, "void (double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1870 if (__Pyx_ExportFunction("Q1Jacobian2D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q1Jacobian2D, "void (double *, double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1871 if (__Pyx_ExportFunction("Q2Function2D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q2Function2D, "void (double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1872 if (__Pyx_ExportFunction("Q2Jacobian2D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Q2Jacobian2D, "void (double *, double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1873 if (__Pyx_ExportFunction("Tet2Function3D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Tet2Function3D, "void (double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1874 if (__Pyx_ExportFunction("Tet2Jacobian3D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_Tet2Jacobian3D, "void (double *, double *, double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1875 if (__Pyx_ExportFunction("T2Function2D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_T2Function2D, "void (double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1876 if (__Pyx_ExportFunction("T2Jacobian2D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_T2Jacobian2D, "void (double *, double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1877 if (__Pyx_ExportFunction("W1Function3D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_W1Function3D, "void (double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1878 if (__Pyx_ExportFunction("W1Jacobian3D", (void (*)(void))__pyx_f_2yt_9utilities_3lib_30autogenerated_element_samplers_W1Jacobian3D, "void (double *, double *, double *, double *, double *, double *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
1879 __Pyx_RefNannyFinishContext();
1880 return 0;
1881 __pyx_L1_error:;
1882 __Pyx_RefNannyFinishContext();
1883 return -1;
1884 }
1885
__Pyx_modinit_type_init_code(void)1886 static int __Pyx_modinit_type_init_code(void) {
1887 __Pyx_RefNannyDeclarations
1888 __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
1889 /*--- Type init code ---*/
1890 __Pyx_RefNannyFinishContext();
1891 return 0;
1892 }
1893
__Pyx_modinit_type_import_code(void)1894 static int __Pyx_modinit_type_import_code(void) {
1895 __Pyx_RefNannyDeclarations
1896 __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
1897 /*--- Type import code ---*/
1898 __Pyx_RefNannyFinishContext();
1899 return 0;
1900 }
1901
__Pyx_modinit_variable_import_code(void)1902 static int __Pyx_modinit_variable_import_code(void) {
1903 __Pyx_RefNannyDeclarations
1904 __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
1905 /*--- Variable import code ---*/
1906 __Pyx_RefNannyFinishContext();
1907 return 0;
1908 }
1909
__Pyx_modinit_function_import_code(void)1910 static int __Pyx_modinit_function_import_code(void) {
1911 __Pyx_RefNannyDeclarations
1912 __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
1913 /*--- Function import code ---*/
1914 __Pyx_RefNannyFinishContext();
1915 return 0;
1916 }
1917
1918
1919 #if PY_MAJOR_VERSION < 3
1920 #ifdef CYTHON_NO_PYINIT_EXPORT
1921 #define __Pyx_PyMODINIT_FUNC void
1922 #else
1923 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
1924 #endif
1925 #else
1926 #ifdef CYTHON_NO_PYINIT_EXPORT
1927 #define __Pyx_PyMODINIT_FUNC PyObject *
1928 #else
1929 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
1930 #endif
1931 #endif
1932
1933
1934 #if PY_MAJOR_VERSION < 3
1935 __Pyx_PyMODINIT_FUNC initautogenerated_element_samplers(void) CYTHON_SMALL_CODE; /*proto*/
initautogenerated_element_samplers(void)1936 __Pyx_PyMODINIT_FUNC initautogenerated_element_samplers(void)
1937 #else
1938 __Pyx_PyMODINIT_FUNC PyInit_autogenerated_element_samplers(void) CYTHON_SMALL_CODE; /*proto*/
1939 __Pyx_PyMODINIT_FUNC PyInit_autogenerated_element_samplers(void)
1940 #if CYTHON_PEP489_MULTI_PHASE_INIT
1941 {
1942 return PyModuleDef_Init(&__pyx_moduledef);
1943 }
1944 static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
1945 #if PY_VERSION_HEX >= 0x030700A1
1946 static PY_INT64_T main_interpreter_id = -1;
1947 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
1948 if (main_interpreter_id == -1) {
1949 main_interpreter_id = current_id;
1950 return (unlikely(current_id == -1)) ? -1 : 0;
1951 } else if (unlikely(main_interpreter_id != current_id))
1952 #else
1953 static PyInterpreterState *main_interpreter = NULL;
1954 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
1955 if (!main_interpreter) {
1956 main_interpreter = current_interpreter;
1957 } else if (unlikely(main_interpreter != current_interpreter))
1958 #endif
1959 {
1960 PyErr_SetString(
1961 PyExc_ImportError,
1962 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
1963 return -1;
1964 }
1965 return 0;
1966 }
1967 static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) {
1968 PyObject *value = PyObject_GetAttrString(spec, from_name);
1969 int result = 0;
1970 if (likely(value)) {
1971 if (allow_none || value != Py_None) {
1972 result = PyDict_SetItemString(moddict, to_name, value);
1973 }
1974 Py_DECREF(value);
1975 } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
1976 PyErr_Clear();
1977 } else {
1978 result = -1;
1979 }
1980 return result;
1981 }
1982 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
1983 PyObject *module = NULL, *moddict, *modname;
1984 if (__Pyx_check_single_interpreter())
1985 return NULL;
1986 if (__pyx_m)
1987 return __Pyx_NewRef(__pyx_m);
1988 modname = PyObject_GetAttrString(spec, "name");
1989 if (unlikely(!modname)) goto bad;
1990 module = PyModule_NewObject(modname);
1991 Py_DECREF(modname);
1992 if (unlikely(!module)) goto bad;
1993 moddict = PyModule_GetDict(module);
1994 if (unlikely(!moddict)) goto bad;
1995 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
1996 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
1997 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
1998 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
1999 return module;
2000 bad:
2001 Py_XDECREF(module);
2002 return NULL;
2003 }
2004
2005
2006 static CYTHON_SMALL_CODE int __pyx_pymod_exec_autogenerated_element_samplers(PyObject *__pyx_pyinit_module)
2007 #endif
2008 #endif
2009 {
2010 PyObject *__pyx_t_1 = NULL;
2011 __Pyx_RefNannyDeclarations
2012 #if CYTHON_PEP489_MULTI_PHASE_INIT
2013 if (__pyx_m) {
2014 if (__pyx_m == __pyx_pyinit_module) return 0;
2015 PyErr_SetString(PyExc_RuntimeError, "Module 'autogenerated_element_samplers' has already been imported. Re-initialisation is not supported.");
2016 return -1;
2017 }
2018 #elif PY_MAJOR_VERSION >= 3
2019 if (__pyx_m) return __Pyx_NewRef(__pyx_m);
2020 #endif
2021 #if CYTHON_REFNANNY
2022 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
2023 if (!__Pyx_RefNanny) {
2024 PyErr_Clear();
2025 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
2026 if (!__Pyx_RefNanny)
2027 Py_FatalError("failed to import 'refnanny' module");
2028 }
2029 #endif
2030 __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_autogenerated_element_samplers(void)", 0);
2031 if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2032 #ifdef __Pxy_PyFrame_Initialize_Offsets
2033 __Pxy_PyFrame_Initialize_Offsets();
2034 #endif
2035 __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
2036 __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
2037 __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
2038 #ifdef __Pyx_CyFunction_USED
2039 if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2040 #endif
2041 #ifdef __Pyx_FusedFunction_USED
2042 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2043 #endif
2044 #ifdef __Pyx_Coroutine_USED
2045 if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2046 #endif
2047 #ifdef __Pyx_Generator_USED
2048 if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2049 #endif
2050 #ifdef __Pyx_AsyncGen_USED
2051 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2052 #endif
2053 #ifdef __Pyx_StopAsyncIteration_USED
2054 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2055 #endif
2056 /*--- Library function declarations ---*/
2057 /*--- Threads initialization code ---*/
2058 #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
2059 #ifdef WITH_THREAD /* Python build with threading support? */
2060 PyEval_InitThreads();
2061 #endif
2062 #endif
2063 /*--- Module creation code ---*/
2064 #if CYTHON_PEP489_MULTI_PHASE_INIT
2065 __pyx_m = __pyx_pyinit_module;
2066 Py_INCREF(__pyx_m);
2067 #else
2068 #if PY_MAJOR_VERSION < 3
2069 __pyx_m = Py_InitModule4("autogenerated_element_samplers", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
2070 #else
2071 __pyx_m = PyModule_Create(&__pyx_moduledef);
2072 #endif
2073 if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
2074 #endif
2075 __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
2076 Py_INCREF(__pyx_d);
2077 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
2078 Py_INCREF(__pyx_b);
2079 __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
2080 Py_INCREF(__pyx_cython_runtime);
2081 if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
2082 /*--- Initialize various global constants etc. ---*/
2083 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2084 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
2085 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2086 #endif
2087 if (__pyx_module_is_main_yt__utilities__lib__autogenerated_element_samplers) {
2088 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2089 }
2090 #if PY_MAJOR_VERSION >= 3
2091 {
2092 PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
2093 if (!PyDict_GetItemString(modules, "yt.utilities.lib.autogenerated_element_samplers")) {
2094 if (unlikely(PyDict_SetItemString(modules, "yt.utilities.lib.autogenerated_element_samplers", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
2095 }
2096 }
2097 #endif
2098 /*--- Builtin init code ---*/
2099 if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error;
2100 /*--- Constants init code ---*/
2101 if (__Pyx_InitCachedConstants() < 0) goto __pyx_L1_error;
2102 /*--- Global type/function init code ---*/
2103 (void)__Pyx_modinit_global_init_code();
2104 (void)__Pyx_modinit_variable_export_code();
2105 if (unlikely(__Pyx_modinit_function_export_code() != 0)) goto __pyx_L1_error;
2106 (void)__Pyx_modinit_type_init_code();
2107 (void)__Pyx_modinit_type_import_code();
2108 (void)__Pyx_modinit_variable_import_code();
2109 (void)__Pyx_modinit_function_import_code();
2110 /*--- Execution code ---*/
2111 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
2112 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2113 #endif
2114
2115 /* "yt/utilities/lib/autogenerated_element_samplers.pyx":1
2116 * # This file contains auto-generated functions for sampling # <<<<<<<<<<<<<<
2117 * # inside finite element solutions for various mesh types.
2118 * # To see how the code generation works in detail, see
2119 */
2120 __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
2121 __Pyx_GOTREF(__pyx_t_1);
2122 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2123 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2124
2125 /*--- Wrapped vars code ---*/
2126
2127 goto __pyx_L0;
2128 __pyx_L1_error:;
2129 __Pyx_XDECREF(__pyx_t_1);
2130 if (__pyx_m) {
2131 if (__pyx_d) {
2132 __Pyx_AddTraceback("init yt.utilities.lib.autogenerated_element_samplers", __pyx_clineno, __pyx_lineno, __pyx_filename);
2133 }
2134 Py_CLEAR(__pyx_m);
2135 } else if (!PyErr_Occurred()) {
2136 PyErr_SetString(PyExc_ImportError, "init yt.utilities.lib.autogenerated_element_samplers");
2137 }
2138 __pyx_L0:;
2139 __Pyx_RefNannyFinishContext();
2140 #if CYTHON_PEP489_MULTI_PHASE_INIT
2141 return (__pyx_m != NULL) ? 0 : -1;
2142 #elif PY_MAJOR_VERSION >= 3
2143 return __pyx_m;
2144 #else
2145 return;
2146 #endif
2147 }
2148
2149 /* --- Runtime support code --- */
2150 /* Refnanny */
2151 #if CYTHON_REFNANNY
__Pyx_RefNannyImportAPI(const char * modname)2152 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
2153 PyObject *m = NULL, *p = NULL;
2154 void *r = NULL;
2155 m = PyImport_ImportModule(modname);
2156 if (!m) goto end;
2157 p = PyObject_GetAttrString(m, "RefNannyAPI");
2158 if (!p) goto end;
2159 r = PyLong_AsVoidPtr(p);
2160 end:
2161 Py_XDECREF(p);
2162 Py_XDECREF(m);
2163 return (__Pyx_RefNannyAPIStruct *)r;
2164 }
2165 #endif
2166
2167 /* PyDictVersioning */
2168 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
__Pyx_get_tp_dict_version(PyObject * obj)2169 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
2170 PyObject *dict = Py_TYPE(obj)->tp_dict;
2171 return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
2172 }
__Pyx_get_object_dict_version(PyObject * obj)2173 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
2174 PyObject **dictptr = NULL;
2175 Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
2176 if (offset) {
2177 #if CYTHON_COMPILING_IN_CPYTHON
2178 dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
2179 #else
2180 dictptr = _PyObject_GetDictPtr(obj);
2181 #endif
2182 }
2183 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
2184 }
__Pyx_object_dict_version_matches(PyObject * obj,PY_UINT64_T tp_dict_version,PY_UINT64_T obj_dict_version)2185 static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
2186 PyObject *dict = Py_TYPE(obj)->tp_dict;
2187 if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
2188 return 0;
2189 return obj_dict_version == __Pyx_get_object_dict_version(obj);
2190 }
2191 #endif
2192
2193 /* PyObjectGetAttrStr */
2194 #if CYTHON_USE_TYPE_SLOTS
__Pyx_PyObject_GetAttrStr(PyObject * obj,PyObject * attr_name)2195 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
2196 PyTypeObject* tp = Py_TYPE(obj);
2197 if (likely(tp->tp_getattro))
2198 return tp->tp_getattro(obj, attr_name);
2199 #if PY_MAJOR_VERSION < 3
2200 if (likely(tp->tp_getattr))
2201 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
2202 #endif
2203 return PyObject_GetAttr(obj, attr_name);
2204 }
2205 #endif
2206
2207 /* PyErrFetchRestore */
2208 #if CYTHON_FAST_THREAD_STATE
__Pyx_ErrRestoreInState(PyThreadState * tstate,PyObject * type,PyObject * value,PyObject * tb)2209 static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
2210 PyObject *tmp_type, *tmp_value, *tmp_tb;
2211 tmp_type = tstate->curexc_type;
2212 tmp_value = tstate->curexc_value;
2213 tmp_tb = tstate->curexc_traceback;
2214 tstate->curexc_type = type;
2215 tstate->curexc_value = value;
2216 tstate->curexc_traceback = tb;
2217 Py_XDECREF(tmp_type);
2218 Py_XDECREF(tmp_value);
2219 Py_XDECREF(tmp_tb);
2220 }
__Pyx_ErrFetchInState(PyThreadState * tstate,PyObject ** type,PyObject ** value,PyObject ** tb)2221 static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
2222 *type = tstate->curexc_type;
2223 *value = tstate->curexc_value;
2224 *tb = tstate->curexc_traceback;
2225 tstate->curexc_type = 0;
2226 tstate->curexc_value = 0;
2227 tstate->curexc_traceback = 0;
2228 }
2229 #endif
2230
2231 /* CLineInTraceback */
2232 #ifndef CYTHON_CLINE_IN_TRACEBACK
__Pyx_CLineForTraceback(PyThreadState * tstate,int c_line)2233 static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
2234 PyObject *use_cline;
2235 PyObject *ptype, *pvalue, *ptraceback;
2236 #if CYTHON_COMPILING_IN_CPYTHON
2237 PyObject **cython_runtime_dict;
2238 #endif
2239 if (unlikely(!__pyx_cython_runtime)) {
2240 return c_line;
2241 }
2242 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
2243 #if CYTHON_COMPILING_IN_CPYTHON
2244 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
2245 if (likely(cython_runtime_dict)) {
2246 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
2247 use_cline, *cython_runtime_dict,
2248 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
2249 } else
2250 #endif
2251 {
2252 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
2253 if (use_cline_obj) {
2254 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
2255 Py_DECREF(use_cline_obj);
2256 } else {
2257 PyErr_Clear();
2258 use_cline = NULL;
2259 }
2260 }
2261 if (!use_cline) {
2262 c_line = 0;
2263 PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
2264 }
2265 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
2266 c_line = 0;
2267 }
2268 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
2269 return c_line;
2270 }
2271 #endif
2272
2273 /* CodeObjectCache */
__pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry * entries,int count,int code_line)2274 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
2275 int start = 0, mid = 0, end = count - 1;
2276 if (end >= 0 && code_line > entries[end].code_line) {
2277 return count;
2278 }
2279 while (start < end) {
2280 mid = start + (end - start) / 2;
2281 if (code_line < entries[mid].code_line) {
2282 end = mid;
2283 } else if (code_line > entries[mid].code_line) {
2284 start = mid + 1;
2285 } else {
2286 return mid;
2287 }
2288 }
2289 if (code_line <= entries[mid].code_line) {
2290 return mid;
2291 } else {
2292 return mid + 1;
2293 }
2294 }
__pyx_find_code_object(int code_line)2295 static PyCodeObject *__pyx_find_code_object(int code_line) {
2296 PyCodeObject* code_object;
2297 int pos;
2298 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
2299 return NULL;
2300 }
2301 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
2302 if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
2303 return NULL;
2304 }
2305 code_object = __pyx_code_cache.entries[pos].code_object;
2306 Py_INCREF(code_object);
2307 return code_object;
2308 }
__pyx_insert_code_object(int code_line,PyCodeObject * code_object)2309 static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
2310 int pos, i;
2311 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
2312 if (unlikely(!code_line)) {
2313 return;
2314 }
2315 if (unlikely(!entries)) {
2316 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
2317 if (likely(entries)) {
2318 __pyx_code_cache.entries = entries;
2319 __pyx_code_cache.max_count = 64;
2320 __pyx_code_cache.count = 1;
2321 entries[0].code_line = code_line;
2322 entries[0].code_object = code_object;
2323 Py_INCREF(code_object);
2324 }
2325 return;
2326 }
2327 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
2328 if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
2329 PyCodeObject* tmp = entries[pos].code_object;
2330 entries[pos].code_object = code_object;
2331 Py_DECREF(tmp);
2332 return;
2333 }
2334 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
2335 int new_max = __pyx_code_cache.max_count + 64;
2336 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
2337 __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
2338 if (unlikely(!entries)) {
2339 return;
2340 }
2341 __pyx_code_cache.entries = entries;
2342 __pyx_code_cache.max_count = new_max;
2343 }
2344 for (i=__pyx_code_cache.count; i>pos; i--) {
2345 entries[i] = entries[i-1];
2346 }
2347 entries[pos].code_line = code_line;
2348 entries[pos].code_object = code_object;
2349 __pyx_code_cache.count++;
2350 Py_INCREF(code_object);
2351 }
2352
2353 /* AddTraceback */
2354 #include "compile.h"
2355 #include "frameobject.h"
2356 #include "traceback.h"
__Pyx_CreateCodeObjectForTraceback(const char * funcname,int c_line,int py_line,const char * filename)2357 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
2358 const char *funcname, int c_line,
2359 int py_line, const char *filename) {
2360 PyCodeObject *py_code = 0;
2361 PyObject *py_srcfile = 0;
2362 PyObject *py_funcname = 0;
2363 #if PY_MAJOR_VERSION < 3
2364 py_srcfile = PyString_FromString(filename);
2365 #else
2366 py_srcfile = PyUnicode_FromString(filename);
2367 #endif
2368 if (!py_srcfile) goto bad;
2369 if (c_line) {
2370 #if PY_MAJOR_VERSION < 3
2371 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
2372 #else
2373 py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
2374 #endif
2375 }
2376 else {
2377 #if PY_MAJOR_VERSION < 3
2378 py_funcname = PyString_FromString(funcname);
2379 #else
2380 py_funcname = PyUnicode_FromString(funcname);
2381 #endif
2382 }
2383 if (!py_funcname) goto bad;
2384 py_code = __Pyx_PyCode_New(
2385 0,
2386 0,
2387 0,
2388 0,
2389 0,
2390 __pyx_empty_bytes, /*PyObject *code,*/
2391 __pyx_empty_tuple, /*PyObject *consts,*/
2392 __pyx_empty_tuple, /*PyObject *names,*/
2393 __pyx_empty_tuple, /*PyObject *varnames,*/
2394 __pyx_empty_tuple, /*PyObject *freevars,*/
2395 __pyx_empty_tuple, /*PyObject *cellvars,*/
2396 py_srcfile, /*PyObject *filename,*/
2397 py_funcname, /*PyObject *name,*/
2398 py_line,
2399 __pyx_empty_bytes /*PyObject *lnotab*/
2400 );
2401 Py_DECREF(py_srcfile);
2402 Py_DECREF(py_funcname);
2403 return py_code;
2404 bad:
2405 Py_XDECREF(py_srcfile);
2406 Py_XDECREF(py_funcname);
2407 return NULL;
2408 }
__Pyx_AddTraceback(const char * funcname,int c_line,int py_line,const char * filename)2409 static void __Pyx_AddTraceback(const char *funcname, int c_line,
2410 int py_line, const char *filename) {
2411 PyCodeObject *py_code = 0;
2412 PyFrameObject *py_frame = 0;
2413 PyThreadState *tstate = __Pyx_PyThreadState_Current;
2414 if (c_line) {
2415 c_line = __Pyx_CLineForTraceback(tstate, c_line);
2416 }
2417 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
2418 if (!py_code) {
2419 py_code = __Pyx_CreateCodeObjectForTraceback(
2420 funcname, c_line, py_line, filename);
2421 if (!py_code) goto bad;
2422 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
2423 }
2424 py_frame = PyFrame_New(
2425 tstate, /*PyThreadState *tstate,*/
2426 py_code, /*PyCodeObject *code,*/
2427 __pyx_d, /*PyObject *globals,*/
2428 0 /*PyObject *locals*/
2429 );
2430 if (!py_frame) goto bad;
2431 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
2432 PyTraceBack_Here(py_frame);
2433 bad:
2434 Py_XDECREF(py_code);
2435 Py_XDECREF(py_frame);
2436 }
2437
2438 /* CIntToPy */
__Pyx_PyInt_From_long(long value)2439 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
2440 const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
2441 const int is_unsigned = neg_one > const_zero;
2442 if (is_unsigned) {
2443 if (sizeof(long) < sizeof(long)) {
2444 return PyInt_FromLong((long) value);
2445 } else if (sizeof(long) <= sizeof(unsigned long)) {
2446 return PyLong_FromUnsignedLong((unsigned long) value);
2447 #ifdef HAVE_LONG_LONG
2448 } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
2449 return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
2450 #endif
2451 }
2452 } else {
2453 if (sizeof(long) <= sizeof(long)) {
2454 return PyInt_FromLong((long) value);
2455 #ifdef HAVE_LONG_LONG
2456 } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
2457 return PyLong_FromLongLong((PY_LONG_LONG) value);
2458 #endif
2459 }
2460 }
2461 {
2462 int one = 1; int little = (int)*(unsigned char *)&one;
2463 unsigned char *bytes = (unsigned char *)&value;
2464 return _PyLong_FromByteArray(bytes, sizeof(long),
2465 little, !is_unsigned);
2466 }
2467 }
2468
2469 /* CIntFromPyVerify */
2470 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
2471 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
2472 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
2473 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
2474 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
2475 {\
2476 func_type value = func_value;\
2477 if (sizeof(target_type) < sizeof(func_type)) {\
2478 if (unlikely(value != (func_type) (target_type) value)) {\
2479 func_type zero = 0;\
2480 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
2481 return (target_type) -1;\
2482 if (is_unsigned && unlikely(value < zero))\
2483 goto raise_neg_overflow;\
2484 else\
2485 goto raise_overflow;\
2486 }\
2487 }\
2488 return (target_type) value;\
2489 }
2490
2491 /* CIntFromPy */
__Pyx_PyInt_As_long(PyObject * x)2492 static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
2493 const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
2494 const int is_unsigned = neg_one > const_zero;
2495 #if PY_MAJOR_VERSION < 3
2496 if (likely(PyInt_Check(x))) {
2497 if (sizeof(long) < sizeof(long)) {
2498 __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
2499 } else {
2500 long val = PyInt_AS_LONG(x);
2501 if (is_unsigned && unlikely(val < 0)) {
2502 goto raise_neg_overflow;
2503 }
2504 return (long) val;
2505 }
2506 } else
2507 #endif
2508 if (likely(PyLong_Check(x))) {
2509 if (is_unsigned) {
2510 #if CYTHON_USE_PYLONG_INTERNALS
2511 const digit* digits = ((PyLongObject*)x)->ob_digit;
2512 switch (Py_SIZE(x)) {
2513 case 0: return (long) 0;
2514 case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
2515 case 2:
2516 if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
2517 if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
2518 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2519 } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
2520 return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
2521 }
2522 }
2523 break;
2524 case 3:
2525 if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
2526 if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
2527 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2528 } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
2529 return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
2530 }
2531 }
2532 break;
2533 case 4:
2534 if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
2535 if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
2536 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2537 } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
2538 return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
2539 }
2540 }
2541 break;
2542 }
2543 #endif
2544 #if CYTHON_COMPILING_IN_CPYTHON
2545 if (unlikely(Py_SIZE(x) < 0)) {
2546 goto raise_neg_overflow;
2547 }
2548 #else
2549 {
2550 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
2551 if (unlikely(result < 0))
2552 return (long) -1;
2553 if (unlikely(result == 1))
2554 goto raise_neg_overflow;
2555 }
2556 #endif
2557 if (sizeof(long) <= sizeof(unsigned long)) {
2558 __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
2559 #ifdef HAVE_LONG_LONG
2560 } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
2561 __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
2562 #endif
2563 }
2564 } else {
2565 #if CYTHON_USE_PYLONG_INTERNALS
2566 const digit* digits = ((PyLongObject*)x)->ob_digit;
2567 switch (Py_SIZE(x)) {
2568 case 0: return (long) 0;
2569 case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
2570 case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0])
2571 case -2:
2572 if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
2573 if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
2574 __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2575 } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
2576 return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
2577 }
2578 }
2579 break;
2580 case 2:
2581 if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
2582 if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
2583 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2584 } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
2585 return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
2586 }
2587 }
2588 break;
2589 case -3:
2590 if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
2591 if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
2592 __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2593 } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
2594 return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
2595 }
2596 }
2597 break;
2598 case 3:
2599 if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
2600 if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
2601 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2602 } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
2603 return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
2604 }
2605 }
2606 break;
2607 case -4:
2608 if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
2609 if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
2610 __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2611 } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
2612 return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
2613 }
2614 }
2615 break;
2616 case 4:
2617 if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
2618 if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
2619 __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2620 } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
2621 return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
2622 }
2623 }
2624 break;
2625 }
2626 #endif
2627 if (sizeof(long) <= sizeof(long)) {
2628 __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
2629 #ifdef HAVE_LONG_LONG
2630 } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
2631 __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
2632 #endif
2633 }
2634 }
2635 {
2636 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
2637 PyErr_SetString(PyExc_RuntimeError,
2638 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
2639 #else
2640 long val;
2641 PyObject *v = __Pyx_PyNumber_IntOrLong(x);
2642 #if PY_MAJOR_VERSION < 3
2643 if (likely(v) && !PyLong_Check(v)) {
2644 PyObject *tmp = v;
2645 v = PyNumber_Long(tmp);
2646 Py_DECREF(tmp);
2647 }
2648 #endif
2649 if (likely(v)) {
2650 int one = 1; int is_little = (int)*(unsigned char *)&one;
2651 unsigned char *bytes = (unsigned char *)&val;
2652 int ret = _PyLong_AsByteArray((PyLongObject *)v,
2653 bytes, sizeof(val),
2654 is_little, !is_unsigned);
2655 Py_DECREF(v);
2656 if (likely(!ret))
2657 return val;
2658 }
2659 #endif
2660 return (long) -1;
2661 }
2662 } else {
2663 long val;
2664 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
2665 if (!tmp) return (long) -1;
2666 val = __Pyx_PyInt_As_long(tmp);
2667 Py_DECREF(tmp);
2668 return val;
2669 }
2670 raise_overflow:
2671 PyErr_SetString(PyExc_OverflowError,
2672 "value too large to convert to long");
2673 return (long) -1;
2674 raise_neg_overflow:
2675 PyErr_SetString(PyExc_OverflowError,
2676 "can't convert negative value to long");
2677 return (long) -1;
2678 }
2679
2680 /* CIntFromPy */
__Pyx_PyInt_As_int(PyObject * x)2681 static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
2682 const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
2683 const int is_unsigned = neg_one > const_zero;
2684 #if PY_MAJOR_VERSION < 3
2685 if (likely(PyInt_Check(x))) {
2686 if (sizeof(int) < sizeof(long)) {
2687 __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
2688 } else {
2689 long val = PyInt_AS_LONG(x);
2690 if (is_unsigned && unlikely(val < 0)) {
2691 goto raise_neg_overflow;
2692 }
2693 return (int) val;
2694 }
2695 } else
2696 #endif
2697 if (likely(PyLong_Check(x))) {
2698 if (is_unsigned) {
2699 #if CYTHON_USE_PYLONG_INTERNALS
2700 const digit* digits = ((PyLongObject*)x)->ob_digit;
2701 switch (Py_SIZE(x)) {
2702 case 0: return (int) 0;
2703 case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
2704 case 2:
2705 if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
2706 if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
2707 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2708 } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
2709 return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
2710 }
2711 }
2712 break;
2713 case 3:
2714 if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
2715 if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
2716 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2717 } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
2718 return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
2719 }
2720 }
2721 break;
2722 case 4:
2723 if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
2724 if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
2725 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2726 } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
2727 return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
2728 }
2729 }
2730 break;
2731 }
2732 #endif
2733 #if CYTHON_COMPILING_IN_CPYTHON
2734 if (unlikely(Py_SIZE(x) < 0)) {
2735 goto raise_neg_overflow;
2736 }
2737 #else
2738 {
2739 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
2740 if (unlikely(result < 0))
2741 return (int) -1;
2742 if (unlikely(result == 1))
2743 goto raise_neg_overflow;
2744 }
2745 #endif
2746 if (sizeof(int) <= sizeof(unsigned long)) {
2747 __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
2748 #ifdef HAVE_LONG_LONG
2749 } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
2750 __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
2751 #endif
2752 }
2753 } else {
2754 #if CYTHON_USE_PYLONG_INTERNALS
2755 const digit* digits = ((PyLongObject*)x)->ob_digit;
2756 switch (Py_SIZE(x)) {
2757 case 0: return (int) 0;
2758 case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
2759 case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0])
2760 case -2:
2761 if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
2762 if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
2763 __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2764 } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
2765 return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
2766 }
2767 }
2768 break;
2769 case 2:
2770 if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
2771 if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
2772 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2773 } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
2774 return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
2775 }
2776 }
2777 break;
2778 case -3:
2779 if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
2780 if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
2781 __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2782 } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
2783 return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
2784 }
2785 }
2786 break;
2787 case 3:
2788 if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
2789 if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
2790 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2791 } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
2792 return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
2793 }
2794 }
2795 break;
2796 case -4:
2797 if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
2798 if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
2799 __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2800 } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
2801 return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
2802 }
2803 }
2804 break;
2805 case 4:
2806 if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
2807 if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
2808 __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
2809 } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
2810 return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
2811 }
2812 }
2813 break;
2814 }
2815 #endif
2816 if (sizeof(int) <= sizeof(long)) {
2817 __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
2818 #ifdef HAVE_LONG_LONG
2819 } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
2820 __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
2821 #endif
2822 }
2823 }
2824 {
2825 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
2826 PyErr_SetString(PyExc_RuntimeError,
2827 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
2828 #else
2829 int val;
2830 PyObject *v = __Pyx_PyNumber_IntOrLong(x);
2831 #if PY_MAJOR_VERSION < 3
2832 if (likely(v) && !PyLong_Check(v)) {
2833 PyObject *tmp = v;
2834 v = PyNumber_Long(tmp);
2835 Py_DECREF(tmp);
2836 }
2837 #endif
2838 if (likely(v)) {
2839 int one = 1; int is_little = (int)*(unsigned char *)&one;
2840 unsigned char *bytes = (unsigned char *)&val;
2841 int ret = _PyLong_AsByteArray((PyLongObject *)v,
2842 bytes, sizeof(val),
2843 is_little, !is_unsigned);
2844 Py_DECREF(v);
2845 if (likely(!ret))
2846 return val;
2847 }
2848 #endif
2849 return (int) -1;
2850 }
2851 } else {
2852 int val;
2853 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
2854 if (!tmp) return (int) -1;
2855 val = __Pyx_PyInt_As_int(tmp);
2856 Py_DECREF(tmp);
2857 return val;
2858 }
2859 raise_overflow:
2860 PyErr_SetString(PyExc_OverflowError,
2861 "value too large to convert to int");
2862 return (int) -1;
2863 raise_neg_overflow:
2864 PyErr_SetString(PyExc_OverflowError,
2865 "can't convert negative value to int");
2866 return (int) -1;
2867 }
2868
2869 /* FastTypeChecks */
2870 #if CYTHON_COMPILING_IN_CPYTHON
__Pyx_InBases(PyTypeObject * a,PyTypeObject * b)2871 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
2872 while (a) {
2873 a = a->tp_base;
2874 if (a == b)
2875 return 1;
2876 }
2877 return b == &PyBaseObject_Type;
2878 }
__Pyx_IsSubtype(PyTypeObject * a,PyTypeObject * b)2879 static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
2880 PyObject *mro;
2881 if (a == b) return 1;
2882 mro = a->tp_mro;
2883 if (likely(mro)) {
2884 Py_ssize_t i, n;
2885 n = PyTuple_GET_SIZE(mro);
2886 for (i = 0; i < n; i++) {
2887 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
2888 return 1;
2889 }
2890 return 0;
2891 }
2892 return __Pyx_InBases(a, b);
2893 }
2894 #if PY_MAJOR_VERSION == 2
__Pyx_inner_PyErr_GivenExceptionMatches2(PyObject * err,PyObject * exc_type1,PyObject * exc_type2)2895 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
2896 PyObject *exception, *value, *tb;
2897 int res;
2898 __Pyx_PyThreadState_declare
2899 __Pyx_PyThreadState_assign
2900 __Pyx_ErrFetch(&exception, &value, &tb);
2901 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
2902 if (unlikely(res == -1)) {
2903 PyErr_WriteUnraisable(err);
2904 res = 0;
2905 }
2906 if (!res) {
2907 res = PyObject_IsSubclass(err, exc_type2);
2908 if (unlikely(res == -1)) {
2909 PyErr_WriteUnraisable(err);
2910 res = 0;
2911 }
2912 }
2913 __Pyx_ErrRestore(exception, value, tb);
2914 return res;
2915 }
2916 #else
__Pyx_inner_PyErr_GivenExceptionMatches2(PyObject * err,PyObject * exc_type1,PyObject * exc_type2)2917 static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
2918 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
2919 if (!res) {
2920 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
2921 }
2922 return res;
2923 }
2924 #endif
__Pyx_PyErr_GivenExceptionMatchesTuple(PyObject * exc_type,PyObject * tuple)2925 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
2926 Py_ssize_t i, n;
2927 assert(PyExceptionClass_Check(exc_type));
2928 n = PyTuple_GET_SIZE(tuple);
2929 #if PY_MAJOR_VERSION >= 3
2930 for (i=0; i<n; i++) {
2931 if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
2932 }
2933 #endif
2934 for (i=0; i<n; i++) {
2935 PyObject *t = PyTuple_GET_ITEM(tuple, i);
2936 #if PY_MAJOR_VERSION < 3
2937 if (likely(exc_type == t)) return 1;
2938 #endif
2939 if (likely(PyExceptionClass_Check(t))) {
2940 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
2941 } else {
2942 }
2943 }
2944 return 0;
2945 }
__Pyx_PyErr_GivenExceptionMatches(PyObject * err,PyObject * exc_type)2946 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
2947 if (likely(err == exc_type)) return 1;
2948 if (likely(PyExceptionClass_Check(err))) {
2949 if (likely(PyExceptionClass_Check(exc_type))) {
2950 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
2951 } else if (likely(PyTuple_Check(exc_type))) {
2952 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
2953 } else {
2954 }
2955 }
2956 return PyErr_GivenExceptionMatches(err, exc_type);
2957 }
__Pyx_PyErr_GivenExceptionMatches2(PyObject * err,PyObject * exc_type1,PyObject * exc_type2)2958 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
2959 assert(PyExceptionClass_Check(exc_type1));
2960 assert(PyExceptionClass_Check(exc_type2));
2961 if (likely(err == exc_type1 || err == exc_type2)) return 1;
2962 if (likely(PyExceptionClass_Check(err))) {
2963 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
2964 }
2965 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
2966 }
2967 #endif
2968
2969 /* CheckBinaryVersion */
__Pyx_check_binary_version(void)2970 static int __Pyx_check_binary_version(void) {
2971 char ctversion[4], rtversion[4];
2972 PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
2973 PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
2974 if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
2975 char message[200];
2976 PyOS_snprintf(message, sizeof(message),
2977 "compiletime version %s of module '%.100s' "
2978 "does not match runtime version %s",
2979 ctversion, __Pyx_MODULE_NAME, rtversion);
2980 return PyErr_WarnEx(NULL, message, 1);
2981 }
2982 return 0;
2983 }
2984
2985 /* FunctionExport */
__Pyx_ExportFunction(const char * name,void (* f)(void),const char * sig)2986 static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
2987 PyObject *d = 0;
2988 PyObject *cobj = 0;
2989 union {
2990 void (*fp)(void);
2991 void *p;
2992 } tmp;
2993 d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__");
2994 if (!d) {
2995 PyErr_Clear();
2996 d = PyDict_New();
2997 if (!d)
2998 goto bad;
2999 Py_INCREF(d);
3000 if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0)
3001 goto bad;
3002 }
3003 tmp.fp = f;
3004 #if PY_VERSION_HEX >= 0x02070000
3005 cobj = PyCapsule_New(tmp.p, sig, 0);
3006 #else
3007 cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0);
3008 #endif
3009 if (!cobj)
3010 goto bad;
3011 if (PyDict_SetItemString(d, name, cobj) < 0)
3012 goto bad;
3013 Py_DECREF(cobj);
3014 Py_DECREF(d);
3015 return 0;
3016 bad:
3017 Py_XDECREF(cobj);
3018 Py_XDECREF(d);
3019 return -1;
3020 }
3021
3022 /* InitStrings */
__Pyx_InitStrings(__Pyx_StringTabEntry * t)3023 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
3024 while (t->p) {
3025 #if PY_MAJOR_VERSION < 3
3026 if (t->is_unicode) {
3027 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
3028 } else if (t->intern) {
3029 *t->p = PyString_InternFromString(t->s);
3030 } else {
3031 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
3032 }
3033 #else
3034 if (t->is_unicode | t->is_str) {
3035 if (t->intern) {
3036 *t->p = PyUnicode_InternFromString(t->s);
3037 } else if (t->encoding) {
3038 *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
3039 } else {
3040 *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
3041 }
3042 } else {
3043 *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
3044 }
3045 #endif
3046 if (!*t->p)
3047 return -1;
3048 if (PyObject_Hash(*t->p) == -1)
3049 return -1;
3050 ++t;
3051 }
3052 return 0;
3053 }
3054
__Pyx_PyUnicode_FromString(const char * c_str)3055 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
3056 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
3057 }
__Pyx_PyObject_AsString(PyObject * o)3058 static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
3059 Py_ssize_t ignore;
3060 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
3061 }
3062 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
3063 #if !CYTHON_PEP393_ENABLED
__Pyx_PyUnicode_AsStringAndSize(PyObject * o,Py_ssize_t * length)3064 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
3065 char* defenc_c;
3066 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
3067 if (!defenc) return NULL;
3068 defenc_c = PyBytes_AS_STRING(defenc);
3069 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
3070 {
3071 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
3072 char* c;
3073 for (c = defenc_c; c < end; c++) {
3074 if ((unsigned char) (*c) >= 128) {
3075 PyUnicode_AsASCIIString(o);
3076 return NULL;
3077 }
3078 }
3079 }
3080 #endif
3081 *length = PyBytes_GET_SIZE(defenc);
3082 return defenc_c;
3083 }
3084 #else
__Pyx_PyUnicode_AsStringAndSize(PyObject * o,Py_ssize_t * length)3085 static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
3086 if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
3087 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
3088 if (likely(PyUnicode_IS_ASCII(o))) {
3089 *length = PyUnicode_GET_LENGTH(o);
3090 return PyUnicode_AsUTF8(o);
3091 } else {
3092 PyUnicode_AsASCIIString(o);
3093 return NULL;
3094 }
3095 #else
3096 return PyUnicode_AsUTF8AndSize(o, length);
3097 #endif
3098 }
3099 #endif
3100 #endif
__Pyx_PyObject_AsStringAndSize(PyObject * o,Py_ssize_t * length)3101 static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
3102 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
3103 if (
3104 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
3105 __Pyx_sys_getdefaultencoding_not_ascii &&
3106 #endif
3107 PyUnicode_Check(o)) {
3108 return __Pyx_PyUnicode_AsStringAndSize(o, length);
3109 } else
3110 #endif
3111 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
3112 if (PyByteArray_Check(o)) {
3113 *length = PyByteArray_GET_SIZE(o);
3114 return PyByteArray_AS_STRING(o);
3115 } else
3116 #endif
3117 {
3118 char* result;
3119 int r = PyBytes_AsStringAndSize(o, &result, length);
3120 if (unlikely(r < 0)) {
3121 return NULL;
3122 } else {
3123 return result;
3124 }
3125 }
3126 }
__Pyx_PyObject_IsTrue(PyObject * x)3127 static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
3128 int is_true = x == Py_True;
3129 if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
3130 else return PyObject_IsTrue(x);
3131 }
__Pyx_PyObject_IsTrueAndDecref(PyObject * x)3132 static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
3133 int retval;
3134 if (unlikely(!x)) return -1;
3135 retval = __Pyx_PyObject_IsTrue(x);
3136 Py_DECREF(x);
3137 return retval;
3138 }
__Pyx_PyNumber_IntOrLongWrongResultType(PyObject * result,const char * type_name)3139 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
3140 #if PY_MAJOR_VERSION >= 3
3141 if (PyLong_Check(result)) {
3142 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
3143 "__int__ returned non-int (type %.200s). "
3144 "The ability to return an instance of a strict subclass of int "
3145 "is deprecated, and may be removed in a future version of Python.",
3146 Py_TYPE(result)->tp_name)) {
3147 Py_DECREF(result);
3148 return NULL;
3149 }
3150 return result;
3151 }
3152 #endif
3153 PyErr_Format(PyExc_TypeError,
3154 "__%.4s__ returned non-%.4s (type %.200s)",
3155 type_name, type_name, Py_TYPE(result)->tp_name);
3156 Py_DECREF(result);
3157 return NULL;
3158 }
__Pyx_PyNumber_IntOrLong(PyObject * x)3159 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
3160 #if CYTHON_USE_TYPE_SLOTS
3161 PyNumberMethods *m;
3162 #endif
3163 const char *name = NULL;
3164 PyObject *res = NULL;
3165 #if PY_MAJOR_VERSION < 3
3166 if (likely(PyInt_Check(x) || PyLong_Check(x)))
3167 #else
3168 if (likely(PyLong_Check(x)))
3169 #endif
3170 return __Pyx_NewRef(x);
3171 #if CYTHON_USE_TYPE_SLOTS
3172 m = Py_TYPE(x)->tp_as_number;
3173 #if PY_MAJOR_VERSION < 3
3174 if (m && m->nb_int) {
3175 name = "int";
3176 res = m->nb_int(x);
3177 }
3178 else if (m && m->nb_long) {
3179 name = "long";
3180 res = m->nb_long(x);
3181 }
3182 #else
3183 if (likely(m && m->nb_int)) {
3184 name = "int";
3185 res = m->nb_int(x);
3186 }
3187 #endif
3188 #else
3189 if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
3190 res = PyNumber_Int(x);
3191 }
3192 #endif
3193 if (likely(res)) {
3194 #if PY_MAJOR_VERSION < 3
3195 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
3196 #else
3197 if (unlikely(!PyLong_CheckExact(res))) {
3198 #endif
3199 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
3200 }
3201 }
3202 else if (!PyErr_Occurred()) {
3203 PyErr_SetString(PyExc_TypeError,
3204 "an integer is required");
3205 }
3206 return res;
3207 }
3208 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
3209 Py_ssize_t ival;
3210 PyObject *x;
3211 #if PY_MAJOR_VERSION < 3
3212 if (likely(PyInt_CheckExact(b))) {
3213 if (sizeof(Py_ssize_t) >= sizeof(long))
3214 return PyInt_AS_LONG(b);
3215 else
3216 return PyInt_AsSsize_t(b);
3217 }
3218 #endif
3219 if (likely(PyLong_CheckExact(b))) {
3220 #if CYTHON_USE_PYLONG_INTERNALS
3221 const digit* digits = ((PyLongObject*)b)->ob_digit;
3222 const Py_ssize_t size = Py_SIZE(b);
3223 if (likely(__Pyx_sst_abs(size) <= 1)) {
3224 ival = likely(size) ? digits[0] : 0;
3225 if (size == -1) ival = -ival;
3226 return ival;
3227 } else {
3228 switch (size) {
3229 case 2:
3230 if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
3231 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
3232 }
3233 break;
3234 case -2:
3235 if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
3236 return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
3237 }
3238 break;
3239 case 3:
3240 if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
3241 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
3242 }
3243 break;
3244 case -3:
3245 if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
3246 return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
3247 }
3248 break;
3249 case 4:
3250 if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
3251 return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
3252 }
3253 break;
3254 case -4:
3255 if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
3256 return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
3257 }
3258 break;
3259 }
3260 }
3261 #endif
3262 return PyLong_AsSsize_t(b);
3263 }
3264 x = PyNumber_Index(b);
3265 if (!x) return -1;
3266 ival = PyInt_AsSsize_t(x);
3267 Py_DECREF(x);
3268 return ival;
3269 }
3270 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
3271 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
3272 }
3273 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
3274 return PyInt_FromSize_t(ival);
3275 }
3276
3277
3278 #endif /* Py_PYTHON_H */
3279