diff --git a/.coveragerc b/.coveragerc index c9ea409..64ce655 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,5 +1,5 @@ # .coveragerc to control coverage.py -# based on http://nedbatchelder.com/code/coverage/config.html +# based on http://coverage.readthedocs.io/en/latest/config.html [run] branch = True source = root_numpy @@ -9,6 +9,7 @@ omit = */root_numpy/extern/* */root_numpy/setup_utils.py */setup.py + */tests.py [report] exclude_lines = # Enable the standard pragma diff --git a/docs/reference/index.rst b/docs/reference/index.rst index a95891d..e066e9c 100644 --- a/docs/reference/index.rst +++ b/docs/reference/index.rst @@ -45,16 +45,6 @@ root_numpy root_numpy.tmva --------------- -.. warning:: The interface of TMVA has changed in ROOT 6.07. So building - root_numpy there will fail until we can handle their new DataLoader - interface. In the meantime disable the TMVA interface with the following - if you must use ROOT 6.07 with TMVA enabled:: - - NOTMVA=1 pip install --upgrade --user root_numpy - - Note that if TMVA is not enabled in the ROOT build, root_numpy will anyway - not attempt to build the TMVA interface. - .. currentmodule:: root_numpy.tmva .. autosummary:: diff --git a/root_numpy/setup_utils.py b/root_numpy/setup_utils.py index 4521471..0bae303 100644 --- a/root_numpy/setup_utils.py +++ b/root_numpy/setup_utils.py @@ -1,5 +1,76 @@ import os +import re import subprocess +import numbers +from collections import namedtuple + + +class ROOTVersion(namedtuple('_ROOTVersionBase', + ['major', 'minor', 'micro'])): + + def __new__(cls, *version): + if len(version) == 1: + version = version[0] + + if isinstance(version, numbers.Integral): + if version < 1E4: + raise ValueError( + "{0:d} is not a valid ROOT version integer".format(version)) + return super(ROOTVersion, cls).__new__( + cls, + int(version / 1E4), + int((version / 1E2) % 100), + int(version % 100)) + + if isinstance(version, tuple): + return super(ROOTVersion, cls).__new__(cls, *version) + + # parse the string version X.YY/ZZ + match = re.match( + r"(?P[\d]+)\.(?P[\d]+)/(?P[\d]+)", version) + if not match: + raise ValueError( + "'{0}' is not a valid ROOT version string".format(version)) + return super(ROOTVersion, cls).__new__( + cls, + int(match.group('major')), + int(match.group('minor')), + int(match.group('micro'))) + + + def __eq__(self, version): + if not isinstance(version, tuple): + version = ROOTVersion(version) + return super(ROOTVersion, self).__eq__(version) + + def __ne__(self, version): + return not self.__eq__(version) + + def __gt__(self, version): + if not isinstance(version, tuple): + version = ROOTVersion(version) + return super(ROOTVersion, self).__gt__(version) + + def __ge__(self, version): + if not isinstance(version, tuple): + version = ROOTVersion(version) + return super(ROOTVersion, self).__ge__(version) + + def __lt__(self, version): + if not isinstance(version, tuple): + version = ROOTVersion(version) + return super(ROOTVersion, self).__lt__(version) + + def __le__(self, version): + if not isinstance(version, tuple): + version = ROOTVersion(version) + return super(ROOTVersion, self).__le__(version) + + def __repr__(self): + return str(self) + + def __str__(self): + return '{0:d}.{1:02d}/{2:02d}'.format(*self) def root_flags(root_config='root-config'): @@ -33,12 +104,12 @@ def root_version_installed(root_config='root-config'): stdout=subprocess.PIPE).communicate()[0].strip() if sys.version > '3': root_vers = root_vers.decode('utf-8') - return root_vers + return ROOTVersion(root_vers) def root_version_active(): import ROOT - return ROOT.gROOT.GetVersion() + return ROOTVersion(ROOT.gROOT.GetVersionInt()) def get_config(): diff --git a/root_numpy/src/_librootnumpy.cpp b/root_numpy/src/_librootnumpy.cpp index ac67f33..d975af0 100644 --- a/root_numpy/src/_librootnumpy.cpp +++ b/root_numpy/src/_librootnumpy.cpp @@ -1,4 +1,4 @@ -/* Generated by Cython 0.24.1 */ +/* Generated by Cython 0.25.1 */ #define PY_SSIZE_T_CLEAN #include "Python.h" @@ -7,7 +7,7 @@ #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else -#define CYTHON_ABI "0_24_1" +#define CYTHON_ABI "0_25_1" #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) @@ -29,6 +29,11 @@ #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif +#ifndef HAVE_LONG_LONG + #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) + #define HAVE_LONG_LONG + #endif +#endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif @@ -37,13 +42,110 @@ #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 + #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 + #undef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 0 + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #undef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 0 + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #undef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 1 + #undef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 0 + #undef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 0 + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 +#elif defined(PYSTON_VERSION) + #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_PYSTON 1 + #define CYTHON_COMPILING_IN_CPYTHON 0 + #ifndef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 1 + #endif + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #ifndef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 1 + #endif + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #ifndef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 0 + #endif + #ifndef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 1 + #endif + #ifndef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 1 + #endif + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 + #ifndef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 1 + #endif + #if PY_MAJOR_VERSION < 3 + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #elif !defined(CYTHON_USE_ASYNC_SLOTS) + #define CYTHON_USE_ASYNC_SLOTS 1 + #endif + #if PY_VERSION_HEX < 0x02070000 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #elif !defined(CYTHON_USE_PYLONG_INTERNALS) + #define CYTHON_USE_PYLONG_INTERNALS 1 + #endif + #ifndef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 1 + #endif + #ifndef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 1 + #endif + #if PY_VERSION_HEX < 0x030300F0 + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #elif !defined(CYTHON_USE_UNICODE_WRITER) + #define CYTHON_USE_UNICODE_WRITER 1 + #endif + #ifndef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 0 + #endif + #ifndef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 1 + #endif + #ifndef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 1 + #endif + #ifndef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 1 + #endif + #ifndef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 1 + #endif #endif -#if !defined(CYTHON_USE_PYLONG_INTERNALS) && CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x02070000 - #define CYTHON_USE_PYLONG_INTERNALS 1 +#if !defined(CYTHON_FAST_PYCCALL) +#define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" @@ -79,24 +181,44 @@ #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif +#ifndef METH_FASTCALL + #define METH_FASTCALL 0x80 + typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, + Py_ssize_t nargs, PyObject *kwnames); +#else + #define __Pyx_PyCFunctionFast _PyCFunctionFast +#endif +#if CYTHON_FAST_PYCCALL +#define __Pyx_PyFastCFunction_Check(func)\ + ((PyCFunction_Check(func) && METH_FASTCALL == PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))) +#else +#define __Pyx_PyFastCFunction_Check(func) 0 +#endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) + #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) + #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 + #define PyUnicode_1BYTE_KIND 1 + #define PyUnicode_2BYTE_KIND 2 + #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) + #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) + #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY @@ -121,6 +243,13 @@ #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif +#if CYTHON_COMPILING_IN_PYSTON + #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) +#else + #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) +#endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 @@ -149,6 +278,7 @@ #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) +#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type @@ -187,18 +317,20 @@ #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif -#if PY_VERSION_HEX >= 0x030500B1 -#define __Pyx_PyAsyncMethodsStruct PyAsyncMethods -#define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) -#elif CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3 -typedef struct { - unaryfunc am_await; - unaryfunc am_aiter; - unaryfunc am_anext; -} __Pyx_PyAsyncMethodsStruct; -#define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) +#if CYTHON_USE_ASYNC_SLOTS + #if PY_VERSION_HEX >= 0x030500B1 + #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods + #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) + #else + typedef struct { + unaryfunc am_await; + unaryfunc am_aiter; + unaryfunc am_anext; + } __Pyx_PyAsyncMethodsStruct; + #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) + #endif #else -#define __Pyx_PyType_AsAsync(obj) NULL + #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) @@ -230,6 +362,8 @@ class __Pyx_FakeReference { __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } T *operator->() { return ptr; } operator T&() { return *ptr; } + template bool operator ==(U other) { return *ptr == other; }; + template bool operator !=(U other) { return *ptr != other; }; private: T *ptr; }; @@ -277,9 +411,9 @@ static CYTHON_INLINE float __PYX_NAN() { #define __PYX_HAVE___librootnumpy #define __PYX_HAVE_API___librootnumpy -#include "string.h" -#include "stdio.h" -#include "stdlib.h" +#include +#include +#include #include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "pythread.h" @@ -438,7 +572,7 @@ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) @@ -546,7 +680,7 @@ static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; -/* None.proto */ +/* Header.proto */ #if !defined(CYTHON_CCOMPLEX) #if defined(__cplusplus) #define CYTHON_CCOMPLEX 1 @@ -932,7 +1066,7 @@ typedef unsigned PY_LONG_LONG __pyx_t_13_librootnumpy_unsigned_long_long; #line 43 "root_numpy/src/setup.pxi" typedef npy_intp __pyx_t_13_librootnumpy_SIZE_t; -/* None.proto */ +/* Declarations.proto */ #if CYTHON_CCOMPLEX #ifdef __cplusplus typedef ::std::complex< float > __pyx_t_float_complex; @@ -942,8 +1076,9 @@ typedef npy_intp __pyx_t_13_librootnumpy_SIZE_t; #else typedef struct { float real, imag; } __pyx_t_float_complex; #endif +static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float); -/* None.proto */ +/* Declarations.proto */ #if CYTHON_CCOMPLEX #ifdef __cplusplus typedef ::std::complex< double > __pyx_t_double_complex; @@ -953,6 +1088,7 @@ typedef npy_intp __pyx_t_13_librootnumpy_SIZE_t; #else typedef struct { double real, imag; } __pyx_t_double_complex; #endif +static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double); /*--- Type declarations ---*/ @@ -1724,7 +1860,7 @@ struct __pyx_opt_args_13_librootnumpy_array2tree { #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) @@ -1745,6 +1881,24 @@ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* GetModuleGlobalName.proto */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); +/* PyFunctionFastCall.proto */ +#if CYTHON_FAST_PYCALL +#define __Pyx_PyFunction_FastCall(func, args, nargs)\ + __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) +#if 1 || PY_VERSION_HEX < 0x030600B1 +static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); +#else +#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) +#endif +#endif + +/* PyCFunctionFastCall.proto */ +#if CYTHON_FAST_PYCCALL +static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); +#else +#define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) +#endif + /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); @@ -1753,7 +1907,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg #endif /* PyThreadStateGet.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); #else @@ -1762,7 +1916,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg #endif /* PyErrFetchRestore.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) @@ -1828,7 +1982,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* ListCompAppend.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); @@ -1845,7 +1999,7 @@ static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) { #endif /* PyIntBinop.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace)\ @@ -1893,7 +2047,7 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int #endif /* ListAppend.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); @@ -1972,7 +2126,7 @@ static double __Pyx__PyObject_AsDouble(PyObject* obj); static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname); /* PyIntBinop.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ @@ -1980,7 +2134,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, #endif /* SaveResetException.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) @@ -1991,7 +2145,7 @@ static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject #endif /* PyErrExceptionMatches.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else @@ -1999,7 +2153,7 @@ static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tsta #endif /* GetException.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else @@ -2007,7 +2161,7 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* SwapException.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else @@ -2176,12 +2330,12 @@ static CYTHON_INLINE int resize(arrayobject *self, Py_ssize_t n) { static CYTHON_INLINE int resize_smart(arrayobject *self, Py_ssize_t n) { void *items = (void*) self->data.ob_item; Py_ssize_t newsize; - if (n < self->ob_size) { + if (n < self->allocated && n*4 > self->allocated) { self->ob_size = n; return 0; } newsize = n + (n / 2) + 1; - if (newsize <= self->allocated) { + if (newsize <= n) { PyErr_NoMemory(); return -1; } @@ -2243,6 +2397,8 @@ static void __Pyx_CppExn2PyErr() { PyErr_SetString(PyExc_MemoryError, exn.what()); } catch (const std::bad_cast& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); + } catch (const std::bad_typeid& exn) { + PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::domain_error& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::invalid_argument& exn) { @@ -2285,7 +2441,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PY_LONG_LONG(PY_LONG_LONG value) /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value); -/* None.proto */ +/* RealImag.proto */ #if CYTHON_CCOMPLEX #ifdef __cplusplus #define __Pyx_CREAL(z) ((z).real()) @@ -2298,7 +2454,8 @@ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) #define __Pyx_CREAL(z) ((z).real) #define __Pyx_CIMAG(z) ((z).imag) #endif -#if defined(__cplusplus) && CYTHON_CCOMPLEX && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103) +#if defined(__cplusplus) && CYTHON_CCOMPLEX\ + && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103) #define __Pyx_SET_CREAL(z,x) ((z).real(x)) #define __Pyx_SET_CIMAG(z,y) ((z).imag(y)) #else @@ -2306,85 +2463,79 @@ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y) #endif -/* None.proto */ -static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float); - -/* None.proto */ +/* Arithmetic.proto */ #if CYTHON_CCOMPLEX - #define __Pyx_c_eqf(a, b) ((a)==(b)) - #define __Pyx_c_sumf(a, b) ((a)+(b)) - #define __Pyx_c_difff(a, b) ((a)-(b)) - #define __Pyx_c_prodf(a, b) ((a)*(b)) - #define __Pyx_c_quotf(a, b) ((a)/(b)) - #define __Pyx_c_negf(a) (-(a)) + #define __Pyx_c_eq_float(a, b) ((a)==(b)) + #define __Pyx_c_sum_float(a, b) ((a)+(b)) + #define __Pyx_c_diff_float(a, b) ((a)-(b)) + #define __Pyx_c_prod_float(a, b) ((a)*(b)) + #define __Pyx_c_quot_float(a, b) ((a)/(b)) + #define __Pyx_c_neg_float(a) (-(a)) #ifdef __cplusplus - #define __Pyx_c_is_zerof(z) ((z)==(float)0) - #define __Pyx_c_conjf(z) (::std::conj(z)) + #define __Pyx_c_is_zero_float(z) ((z)==(float)0) + #define __Pyx_c_conj_float(z) (::std::conj(z)) #if 1 - #define __Pyx_c_absf(z) (::std::abs(z)) - #define __Pyx_c_powf(a, b) (::std::pow(a, b)) + #define __Pyx_c_abs_float(z) (::std::abs(z)) + #define __Pyx_c_pow_float(a, b) (::std::pow(a, b)) #endif #else - #define __Pyx_c_is_zerof(z) ((z)==0) - #define __Pyx_c_conjf(z) (conjf(z)) + #define __Pyx_c_is_zero_float(z) ((z)==0) + #define __Pyx_c_conj_float(z) (conjf(z)) #if 1 - #define __Pyx_c_absf(z) (cabsf(z)) - #define __Pyx_c_powf(a, b) (cpowf(a, b)) + #define __Pyx_c_abs_float(z) (cabsf(z)) + #define __Pyx_c_pow_float(a, b) (cpowf(a, b)) #endif #endif #else - static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex); - static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex); + static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex); + static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex); #if 1 - static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex); #endif #endif -/* None.proto */ -static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double); - -/* None.proto */ +/* Arithmetic.proto */ #if CYTHON_CCOMPLEX - #define __Pyx_c_eq(a, b) ((a)==(b)) - #define __Pyx_c_sum(a, b) ((a)+(b)) - #define __Pyx_c_diff(a, b) ((a)-(b)) - #define __Pyx_c_prod(a, b) ((a)*(b)) - #define __Pyx_c_quot(a, b) ((a)/(b)) - #define __Pyx_c_neg(a) (-(a)) + #define __Pyx_c_eq_double(a, b) ((a)==(b)) + #define __Pyx_c_sum_double(a, b) ((a)+(b)) + #define __Pyx_c_diff_double(a, b) ((a)-(b)) + #define __Pyx_c_prod_double(a, b) ((a)*(b)) + #define __Pyx_c_quot_double(a, b) ((a)/(b)) + #define __Pyx_c_neg_double(a) (-(a)) #ifdef __cplusplus - #define __Pyx_c_is_zero(z) ((z)==(double)0) - #define __Pyx_c_conj(z) (::std::conj(z)) + #define __Pyx_c_is_zero_double(z) ((z)==(double)0) + #define __Pyx_c_conj_double(z) (::std::conj(z)) #if 1 - #define __Pyx_c_abs(z) (::std::abs(z)) - #define __Pyx_c_pow(a, b) (::std::pow(a, b)) + #define __Pyx_c_abs_double(z) (::std::abs(z)) + #define __Pyx_c_pow_double(a, b) (::std::pow(a, b)) #endif #else - #define __Pyx_c_is_zero(z) ((z)==0) - #define __Pyx_c_conj(z) (conj(z)) + #define __Pyx_c_is_zero_double(z) ((z)==0) + #define __Pyx_c_conj_double(z) (conj(z)) #if 1 - #define __Pyx_c_abs(z) (cabs(z)) - #define __Pyx_c_pow(a, b) (cpow(a, b)) + #define __Pyx_c_abs_double(z) (cabs(z)) + #define __Pyx_c_pow_double(a, b) (cpow(a, b)) #endif #endif #else - static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex); - static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex); + static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex); + static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex); #if 1 - static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex); #endif #endif @@ -2525,6 +2676,7 @@ static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0; static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0; static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0; static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/ +static CYTHON_INLINE int __pyx_f_5numpy_import_array(void); /*proto*/ /* Module declarations from 'array' */ @@ -2931,6 +3083,7 @@ static const char __pyx_k_ignoring_duplicate_branch_named[] = "ignoring duplicat static const char __pyx_k_leaf_list_for_branch_0_is_empty[] = "leaf list for branch '{0}' is empty"; static const char __pyx_k_lengths_of_object_selection_0_1[] = "lengths of object selection '{0}' ({1}) and object array '{2}' ({3}) are not equal"; static const char __pyx_k_none_of_the_input_files_contain[] = "none of the input files contain the requested tree '{0}'"; +static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import"; static const char __pyx_k_read_failure_in_current_tree_or[] = "read failure in current tree or requested entry does not exist (branches have different lengths?)"; static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)"; static const char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd"; @@ -2950,6 +3103,7 @@ static const char __pyx_k_home_endw_workspace_root_numpy_6[] = "/home/endw/works static const char __pyx_k_home_endw_workspace_root_numpy_7[] = "/home/endw/workspace/root_numpy/root_numpy/src/graph.pyx"; static const char __pyx_k_home_endw_workspace_root_numpy_8[] = "/home/endw/workspace/root_numpy/root_numpy/src/evaluate.pyx"; static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous"; +static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import"; static const char __pyx_k_object_selection_contains_branch[] = "object_selection contains branches that are not present in the tree or included in the output array"; static const char __pyx_k_the_branch_or_expression_0_is_no[] = "the branch or expression '{0}' is not present or valid"; static const char __pyx_k_tree_index_in_chain_is_out_of_bo[] = "tree index in chain is out of bounds"; @@ -3204,6 +3358,8 @@ static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou; static PyObject *__pyx_kp_s_none_of_the_input_files_contain; static PyObject *__pyx_n_s_np; static PyObject *__pyx_n_s_numpy; +static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to; +static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor; static PyObject *__pyx_n_s_object; static PyObject *__pyx_n_s_object_selection; static PyObject *__pyx_kp_s_object_selection_contains_branch; @@ -3458,133 +3614,136 @@ static PyObject *__pyx_tuple__61; static PyObject *__pyx_tuple__62; static PyObject *__pyx_tuple__63; static PyObject *__pyx_tuple__64; +static PyObject *__pyx_tuple__65; static PyObject *__pyx_tuple__66; -static PyObject *__pyx_tuple__68; -static PyObject *__pyx_tuple__70; -static PyObject *__pyx_tuple__72; -static PyObject *__pyx_tuple__74; -static PyObject *__pyx_tuple__76; -static PyObject *__pyx_tuple__78; -static PyObject *__pyx_tuple__80; -static PyObject *__pyx_tuple__82; -static PyObject *__pyx_tuple__84; -static PyObject *__pyx_tuple__86; -static PyObject *__pyx_tuple__88; -static PyObject *__pyx_tuple__90; -static PyObject *__pyx_tuple__92; -static PyObject *__pyx_tuple__94; -static PyObject *__pyx_tuple__96; -static PyObject *__pyx_tuple__98; -static PyObject *__pyx_tuple__100; -static PyObject *__pyx_tuple__102; -static PyObject *__pyx_tuple__104; -static PyObject *__pyx_tuple__106; -static PyObject *__pyx_tuple__108; -static PyObject *__pyx_tuple__110; -static PyObject *__pyx_tuple__112; -static PyObject *__pyx_tuple__114; -static PyObject *__pyx_tuple__116; -static PyObject *__pyx_tuple__118; -static PyObject *__pyx_tuple__120; -static PyObject *__pyx_tuple__122; -static PyObject *__pyx_tuple__124; -static PyObject *__pyx_tuple__126; -static PyObject *__pyx_tuple__128; -static PyObject *__pyx_tuple__130; -static PyObject *__pyx_tuple__132; -static PyObject *__pyx_tuple__134; -static PyObject *__pyx_tuple__136; -static PyObject *__pyx_tuple__138; -static PyObject *__pyx_tuple__140; -static PyObject *__pyx_tuple__142; -static PyObject *__pyx_tuple__144; -static PyObject *__pyx_tuple__146; -static PyObject *__pyx_tuple__148; -static PyObject *__pyx_tuple__150; -static PyObject *__pyx_tuple__152; -static PyObject *__pyx_tuple__154; -static PyObject *__pyx_tuple__156; -static PyObject *__pyx_tuple__158; -static PyObject *__pyx_tuple__160; -static PyObject *__pyx_tuple__162; -static PyObject *__pyx_tuple__164; -static PyObject *__pyx_tuple__166; -static PyObject *__pyx_tuple__168; -static PyObject *__pyx_tuple__170; -static PyObject *__pyx_tuple__172; -static PyObject *__pyx_tuple__174; -static PyObject *__pyx_tuple__176; -static PyObject *__pyx_tuple__178; -static PyObject *__pyx_tuple__180; -static PyObject *__pyx_tuple__182; -static PyObject *__pyx_tuple__184; -static PyObject *__pyx_tuple__186; -static PyObject *__pyx_tuple__188; -static PyObject *__pyx_tuple__190; -static PyObject *__pyx_codeobj__65; -static PyObject *__pyx_codeobj__67; -static PyObject *__pyx_codeobj__69; -static PyObject *__pyx_codeobj__71; -static PyObject *__pyx_codeobj__73; -static PyObject *__pyx_codeobj__75; -static PyObject *__pyx_codeobj__77; -static PyObject *__pyx_codeobj__79; -static PyObject *__pyx_codeobj__81; -static PyObject *__pyx_codeobj__83; -static PyObject *__pyx_codeobj__85; -static PyObject *__pyx_codeobj__87; -static PyObject *__pyx_codeobj__89; -static PyObject *__pyx_codeobj__91; -static PyObject *__pyx_codeobj__93; -static PyObject *__pyx_codeobj__95; -static PyObject *__pyx_codeobj__97; -static PyObject *__pyx_codeobj__99; -static PyObject *__pyx_codeobj__101; -static PyObject *__pyx_codeobj__103; -static PyObject *__pyx_codeobj__105; -static PyObject *__pyx_codeobj__107; -static PyObject *__pyx_codeobj__109; -static PyObject *__pyx_codeobj__111; -static PyObject *__pyx_codeobj__113; -static PyObject *__pyx_codeobj__115; -static PyObject *__pyx_codeobj__117; -static PyObject *__pyx_codeobj__119; -static PyObject *__pyx_codeobj__121; -static PyObject *__pyx_codeobj__123; -static PyObject *__pyx_codeobj__125; -static PyObject *__pyx_codeobj__127; -static PyObject *__pyx_codeobj__129; -static PyObject *__pyx_codeobj__131; -static PyObject *__pyx_codeobj__133; -static PyObject *__pyx_codeobj__135; -static PyObject *__pyx_codeobj__137; -static PyObject *__pyx_codeobj__139; -static PyObject *__pyx_codeobj__141; -static PyObject *__pyx_codeobj__143; -static PyObject *__pyx_codeobj__145; -static PyObject *__pyx_codeobj__147; -static PyObject *__pyx_codeobj__149; -static PyObject *__pyx_codeobj__151; -static PyObject *__pyx_codeobj__153; -static PyObject *__pyx_codeobj__155; -static PyObject *__pyx_codeobj__157; -static PyObject *__pyx_codeobj__159; -static PyObject *__pyx_codeobj__161; -static PyObject *__pyx_codeobj__163; -static PyObject *__pyx_codeobj__165; -static PyObject *__pyx_codeobj__167; -static PyObject *__pyx_codeobj__169; -static PyObject *__pyx_codeobj__171; -static PyObject *__pyx_codeobj__173; -static PyObject *__pyx_codeobj__175; -static PyObject *__pyx_codeobj__177; -static PyObject *__pyx_codeobj__179; -static PyObject *__pyx_codeobj__181; -static PyObject *__pyx_codeobj__183; -static PyObject *__pyx_codeobj__185; -static PyObject *__pyx_codeobj__187; -static PyObject *__pyx_codeobj__189; -static PyObject *__pyx_codeobj__191; +static PyObject *__pyx_tuple__67; +static PyObject *__pyx_tuple__69; +static PyObject *__pyx_tuple__71; +static PyObject *__pyx_tuple__73; +static PyObject *__pyx_tuple__75; +static PyObject *__pyx_tuple__77; +static PyObject *__pyx_tuple__79; +static PyObject *__pyx_tuple__81; +static PyObject *__pyx_tuple__83; +static PyObject *__pyx_tuple__85; +static PyObject *__pyx_tuple__87; +static PyObject *__pyx_tuple__89; +static PyObject *__pyx_tuple__91; +static PyObject *__pyx_tuple__93; +static PyObject *__pyx_tuple__95; +static PyObject *__pyx_tuple__97; +static PyObject *__pyx_tuple__99; +static PyObject *__pyx_tuple__101; +static PyObject *__pyx_tuple__103; +static PyObject *__pyx_tuple__105; +static PyObject *__pyx_tuple__107; +static PyObject *__pyx_tuple__109; +static PyObject *__pyx_tuple__111; +static PyObject *__pyx_tuple__113; +static PyObject *__pyx_tuple__115; +static PyObject *__pyx_tuple__117; +static PyObject *__pyx_tuple__119; +static PyObject *__pyx_tuple__121; +static PyObject *__pyx_tuple__123; +static PyObject *__pyx_tuple__125; +static PyObject *__pyx_tuple__127; +static PyObject *__pyx_tuple__129; +static PyObject *__pyx_tuple__131; +static PyObject *__pyx_tuple__133; +static PyObject *__pyx_tuple__135; +static PyObject *__pyx_tuple__137; +static PyObject *__pyx_tuple__139; +static PyObject *__pyx_tuple__141; +static PyObject *__pyx_tuple__143; +static PyObject *__pyx_tuple__145; +static PyObject *__pyx_tuple__147; +static PyObject *__pyx_tuple__149; +static PyObject *__pyx_tuple__151; +static PyObject *__pyx_tuple__153; +static PyObject *__pyx_tuple__155; +static PyObject *__pyx_tuple__157; +static PyObject *__pyx_tuple__159; +static PyObject *__pyx_tuple__161; +static PyObject *__pyx_tuple__163; +static PyObject *__pyx_tuple__165; +static PyObject *__pyx_tuple__167; +static PyObject *__pyx_tuple__169; +static PyObject *__pyx_tuple__171; +static PyObject *__pyx_tuple__173; +static PyObject *__pyx_tuple__175; +static PyObject *__pyx_tuple__177; +static PyObject *__pyx_tuple__179; +static PyObject *__pyx_tuple__181; +static PyObject *__pyx_tuple__183; +static PyObject *__pyx_tuple__185; +static PyObject *__pyx_tuple__187; +static PyObject *__pyx_tuple__189; +static PyObject *__pyx_tuple__191; +static PyObject *__pyx_tuple__193; +static PyObject *__pyx_codeobj__68; +static PyObject *__pyx_codeobj__70; +static PyObject *__pyx_codeobj__72; +static PyObject *__pyx_codeobj__74; +static PyObject *__pyx_codeobj__76; +static PyObject *__pyx_codeobj__78; +static PyObject *__pyx_codeobj__80; +static PyObject *__pyx_codeobj__82; +static PyObject *__pyx_codeobj__84; +static PyObject *__pyx_codeobj__86; +static PyObject *__pyx_codeobj__88; +static PyObject *__pyx_codeobj__90; +static PyObject *__pyx_codeobj__92; +static PyObject *__pyx_codeobj__94; +static PyObject *__pyx_codeobj__96; +static PyObject *__pyx_codeobj__98; +static PyObject *__pyx_codeobj__100; +static PyObject *__pyx_codeobj__102; +static PyObject *__pyx_codeobj__104; +static PyObject *__pyx_codeobj__106; +static PyObject *__pyx_codeobj__108; +static PyObject *__pyx_codeobj__110; +static PyObject *__pyx_codeobj__112; +static PyObject *__pyx_codeobj__114; +static PyObject *__pyx_codeobj__116; +static PyObject *__pyx_codeobj__118; +static PyObject *__pyx_codeobj__120; +static PyObject *__pyx_codeobj__122; +static PyObject *__pyx_codeobj__124; +static PyObject *__pyx_codeobj__126; +static PyObject *__pyx_codeobj__128; +static PyObject *__pyx_codeobj__130; +static PyObject *__pyx_codeobj__132; +static PyObject *__pyx_codeobj__134; +static PyObject *__pyx_codeobj__136; +static PyObject *__pyx_codeobj__138; +static PyObject *__pyx_codeobj__140; +static PyObject *__pyx_codeobj__142; +static PyObject *__pyx_codeobj__144; +static PyObject *__pyx_codeobj__146; +static PyObject *__pyx_codeobj__148; +static PyObject *__pyx_codeobj__150; +static PyObject *__pyx_codeobj__152; +static PyObject *__pyx_codeobj__154; +static PyObject *__pyx_codeobj__156; +static PyObject *__pyx_codeobj__158; +static PyObject *__pyx_codeobj__160; +static PyObject *__pyx_codeobj__162; +static PyObject *__pyx_codeobj__164; +static PyObject *__pyx_codeobj__166; +static PyObject *__pyx_codeobj__168; +static PyObject *__pyx_codeobj__170; +static PyObject *__pyx_codeobj__172; +static PyObject *__pyx_codeobj__174; +static PyObject *__pyx_codeobj__176; +static PyObject *__pyx_codeobj__178; +static PyObject *__pyx_codeobj__180; +static PyObject *__pyx_codeobj__182; +static PyObject *__pyx_codeobj__184; +static PyObject *__pyx_codeobj__186; +static PyObject *__pyx_codeobj__188; +static PyObject *__pyx_codeobj__190; +static PyObject *__pyx_codeobj__192; +static PyObject *__pyx_codeobj__194; /* "root_numpy/src/converters.pyx":43 * @@ -3619,7 +3778,7 @@ static CYTHON_INLINE PyObject *__pyx_f_13_librootnumpy_resolve_type(char const * PyObject *__pyx_t_3 = NULL; #line 43 "root_numpy/src/converters.pyx" - Py_ssize_t __pyx_t_4; + int __pyx_t_4; #line 43 "root_numpy/src/converters.pyx" PyObject *__pyx_t_5 = NULL; @@ -3686,7 +3845,7 @@ static CYTHON_INLINE PyObject *__pyx_f_13_librootnumpy_resolve_type(char const * __pyx_t_4 = 0; #line 46 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { #line 46 "root_numpy/src/converters.pyx" __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); @@ -3716,46 +3875,100 @@ static CYTHON_INLINE PyObject *__pyx_f_13_librootnumpy_resolve_type(char const * } #line 46 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 46, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 46 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_3)) { #line 46 "root_numpy/src/converters.pyx" - if (__pyx_t_1) { + PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_v_resolvedtype, __pyx_v_resolvedtype}; #line 46 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 46, __pyx_L1_error) #line 46 "root_numpy/src/converters.pyx" - } + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; #line 46 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_v_resolvedtype); + __Pyx_GOTREF(__pyx_t_2); #line 46 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_v_resolvedtype); + } else #line 46 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_resolvedtype); + #endif #line 46 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_v_resolvedtype); + #if CYTHON_FAST_PYCCALL #line 46 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_v_resolvedtype); + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 46 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_resolvedtype); + PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_v_resolvedtype, __pyx_v_resolvedtype}; #line 46 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 46, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 46, __pyx_L1_error) #line 46 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; #line 46 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_GOTREF(__pyx_t_2); + +#line 46 "root_numpy/src/converters.pyx" + } else + +#line 46 "root_numpy/src/converters.pyx" + #endif + +#line 46 "root_numpy/src/converters.pyx" + { + +#line 46 "root_numpy/src/converters.pyx" + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 46, __pyx_L1_error) + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 46 "root_numpy/src/converters.pyx" + if (__pyx_t_1) { + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 = NULL; + +#line 46 "root_numpy/src/converters.pyx" + } + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_INCREF(__pyx_v_resolvedtype); + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_v_resolvedtype); + +#line 46 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_resolvedtype); + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_INCREF(__pyx_v_resolvedtype); + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_v_resolvedtype); + +#line 46 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_resolvedtype); + +#line 46 "root_numpy/src/converters.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 46, __pyx_L1_error) + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 46 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 46 "root_numpy/src/converters.pyx" + } #line 46 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -3939,7 +4152,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray(std::string _ PyObject *__pyx_t_8 = NULL; #line 57 "root_numpy/src/converters.pyx" - Py_ssize_t __pyx_t_9; + int __pyx_t_9; #line 57 "root_numpy/src/converters.pyx" PyObject *__pyx_t_10 = NULL; @@ -4150,7 +4363,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray(std::string _ __pyx_t_9 = 0; #line 70 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 70 "root_numpy/src/converters.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); @@ -4180,64 +4393,142 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray(std::string _ } #line 70 "root_numpy/src/converters.pyx" - __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 68, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 70 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_3)) { #line 70 "root_numpy/src/converters.pyx" - if (__pyx_t_8) { + PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7}; #line 70 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 68, __pyx_L1_error) #line 70 "root_numpy/src/converters.pyx" - } + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 70 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_2); #line 70 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 70 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 70 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 70 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 70 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_6); + } else #line 70 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + #endif #line 70 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_7); + #if CYTHON_FAST_PYCCALL #line 70 "root_numpy/src/converters.pyx" - __pyx_t_4 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 70 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7}; #line 70 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 68, __pyx_L1_error) #line 70 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 70 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 68, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #line 70 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 70 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 70 "root_numpy/src/converters.pyx" + } else + +#line 70 "root_numpy/src/converters.pyx" + #endif + +#line 70 "root_numpy/src/converters.pyx" + { + +#line 70 "root_numpy/src/converters.pyx" + __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 68, __pyx_L1_error) + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 70 "root_numpy/src/converters.pyx" + if (__pyx_t_8) { + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 70 "root_numpy/src/converters.pyx" + } + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 70 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_4); + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 70 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_5); + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 70 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_6); + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_7); + +#line 70 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_7); + +#line 70 "root_numpy/src/converters.pyx" + __pyx_t_4 = 0; + +#line 70 "root_numpy/src/converters.pyx" + __pyx_t_5 = 0; + +#line 70 "root_numpy/src/converters.pyx" + __pyx_t_6 = 0; + +#line 70 "root_numpy/src/converters.pyx" + __pyx_t_7 = 0; + +#line 70 "root_numpy/src/converters.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 68, __pyx_L1_error) + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 70 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 70 "root_numpy/src/converters.pyx" + } #line 70 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -4651,7 +4942,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorbool(st PyObject *__pyx_t_8 = NULL; #line 97 "root_numpy/src/converters.pyx" - Py_ssize_t __pyx_t_9; + int __pyx_t_9; #line 97 "root_numpy/src/converters.pyx" PyObject *__pyx_t_10 = NULL; @@ -4811,7 +5102,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorbool(st __pyx_t_9 = 0; #line 108 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 108 "root_numpy/src/converters.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); @@ -4841,64 +5132,142 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorbool(st } #line 108 "root_numpy/src/converters.pyx" - __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 106, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 108 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_3)) { #line 108 "root_numpy/src/converters.pyx" - if (__pyx_t_8) { + PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7}; #line 108 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 106, __pyx_L1_error) #line 108 "root_numpy/src/converters.pyx" - } + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 108 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_2); #line 108 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 108 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 108 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 108 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 108 "root_numpy/src/converters.pyx" + } else #line 108 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_6); + #endif #line 108 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + #if CYTHON_FAST_PYCCALL #line 108 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_7); + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 108 "root_numpy/src/converters.pyx" - __pyx_t_4 = 0; + PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7}; #line 108 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 106, __pyx_L1_error) #line 108 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 108 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __Pyx_GOTREF(__pyx_t_2); #line 108 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 106, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 108 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 108 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 108 "root_numpy/src/converters.pyx" + } else + +#line 108 "root_numpy/src/converters.pyx" + #endif + +#line 108 "root_numpy/src/converters.pyx" + { + +#line 108 "root_numpy/src/converters.pyx" + __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 106, __pyx_L1_error) + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 108 "root_numpy/src/converters.pyx" + if (__pyx_t_8) { + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 108 "root_numpy/src/converters.pyx" + } + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 108 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_4); + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 108 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_5); + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 108 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_6); + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_7); + +#line 108 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_7); + +#line 108 "root_numpy/src/converters.pyx" + __pyx_t_4 = 0; + +#line 108 "root_numpy/src/converters.pyx" + __pyx_t_5 = 0; + +#line 108 "root_numpy/src/converters.pyx" + __pyx_t_6 = 0; + +#line 108 "root_numpy/src/converters.pyx" + __pyx_t_7 = 0; + +#line 108 "root_numpy/src/converters.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 106, __pyx_L1_error) + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 108 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 108 "root_numpy/src/converters.pyx" + } #line 108 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -5351,7 +5720,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorstring( PyObject *__pyx_t_8 = NULL; #line 131 "root_numpy/src/converters.pyx" - Py_ssize_t __pyx_t_9; + int __pyx_t_9; #line 131 "root_numpy/src/converters.pyx" PyObject *__pyx_t_10 = NULL; @@ -5360,17 +5729,14 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorstring( __pyx_t_13_librootnumpy_unsigned_int __pyx_t_11; #line 131 "root_numpy/src/converters.pyx" - int __pyx_t_12; + size_t __pyx_t_12; #line 131 "root_numpy/src/converters.pyx" - size_t __pyx_t_13; + unsigned long __pyx_t_13; #line 131 "root_numpy/src/converters.pyx" unsigned long __pyx_t_14; -#line 131 "root_numpy/src/converters.pyx" - unsigned long __pyx_t_15; - #line 131 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("create_numpyarray_vectorstring", 0); @@ -5514,7 +5880,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorstring( __pyx_t_9 = 0; #line 142 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 142 "root_numpy/src/converters.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); @@ -5544,64 +5910,142 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorstring( } #line 142 "root_numpy/src/converters.pyx" - __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 140, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 142 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_3)) { #line 142 "root_numpy/src/converters.pyx" - if (__pyx_t_8) { + PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7}; #line 142 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 140, __pyx_L1_error) #line 142 "root_numpy/src/converters.pyx" - } + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 142 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_2); #line 142 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 142 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 142 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 142 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 142 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_6); + } else #line 142 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + #endif #line 142 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_7); + #if CYTHON_FAST_PYCCALL #line 142 "root_numpy/src/converters.pyx" - __pyx_t_4 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 142 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7}; #line 142 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 140, __pyx_L1_error) #line 142 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 142 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); #line 142 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 142 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 142 "root_numpy/src/converters.pyx" + } else + +#line 142 "root_numpy/src/converters.pyx" + #endif + +#line 142 "root_numpy/src/converters.pyx" + { + +#line 142 "root_numpy/src/converters.pyx" + __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 140, __pyx_L1_error) + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 142 "root_numpy/src/converters.pyx" + if (__pyx_t_8) { + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 142 "root_numpy/src/converters.pyx" + } + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 142 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_4); + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 142 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_5); + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 142 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_6); + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_7); + +#line 142 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_7); + +#line 142 "root_numpy/src/converters.pyx" + __pyx_t_4 = 0; + +#line 142 "root_numpy/src/converters.pyx" + __pyx_t_5 = 0; + +#line 142 "root_numpy/src/converters.pyx" + __pyx_t_6 = 0; + +#line 142 "root_numpy/src/converters.pyx" + __pyx_t_7 = 0; + +#line 142 "root_numpy/src/converters.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 140, __pyx_L1_error) + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 142 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 142 "root_numpy/src/converters.pyx" + } #line 142 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -5698,13 +6142,13 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorstring( __Pyx_GOTREF(__pyx_t_2); #line 144 "root_numpy/src/converters.pyx" - __pyx_t_12 = ((PyArray_Descr *)__pyx_t_2)->elsize; + __pyx_t_9 = ((PyArray_Descr *)__pyx_t_2)->elsize; #line 144 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 144 "root_numpy/src/converters.pyx" - __pyx_v_objsize = __pyx_t_12; + __pyx_v_objsize = __pyx_t_9; /* "root_numpy/src/converters.pyx":145 * dims[0] = selector.num_selected @@ -5785,13 +6229,13 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorstring( */ #line 153 "root_numpy/src/converters.pyx" - __pyx_t_13 = __pyx_v_selector->selected.size(); + __pyx_t_12 = __pyx_v_selector->selected.size(); #line 153 "root_numpy/src/converters.pyx" - for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) { + for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) { #line 153 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_14; + __pyx_v_i = __pyx_t_13; /* "root_numpy/src/converters.pyx":154 * # copy with selection @@ -5935,13 +6379,13 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_create_numpyarray_vectorstring( /*else*/ { #line 162 "root_numpy/src/converters.pyx" - __pyx_t_14 = __pyx_v_numele; + __pyx_t_13 = __pyx_v_numele; #line 162 "root_numpy/src/converters.pyx" - for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) { + for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) { #line 162 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_15; + __pyx_v_i = __pyx_t_14; /* "root_numpy/src/converters.pyx":163 * # can't use memcpy here... @@ -7727,7 +8171,7 @@ PyObject *__pyx_t_13_librootnumpy_CharArrayConverter::get_nptype(void) { __pyx_t_4 = NULL; #line 281 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 281 "root_numpy/src/converters.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); @@ -7769,31 +8213,91 @@ PyObject *__pyx_t_13_librootnumpy_CharArrayConverter::get_nptype(void) { } else { #line 281 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 281, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 281 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_2)) { #line 281 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; #line 281 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_3); + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 281, __pyx_L1_error) #line 281 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 281 "root_numpy/src/converters.pyx" - __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); #line 281 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 281, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 281 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + } else #line 281 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + #endif + +#line 281 "root_numpy/src/converters.pyx" + #if CYTHON_FAST_PYCCALL + +#line 281 "root_numpy/src/converters.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + +#line 281 "root_numpy/src/converters.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; + +#line 281 "root_numpy/src/converters.pyx" + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 281, __pyx_L1_error) + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 281 "root_numpy/src/converters.pyx" + } else + +#line 281 "root_numpy/src/converters.pyx" + #endif + +#line 281 "root_numpy/src/converters.pyx" + { + +#line 281 "root_numpy/src/converters.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 281, __pyx_L1_error) + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_3); + +#line 281 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + +#line 281 "root_numpy/src/converters.pyx" + __pyx_t_3 = 0; + +#line 281 "root_numpy/src/converters.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 281, __pyx_L1_error) + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 281 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 281 "root_numpy/src/converters.pyx" + } #line 281 "root_numpy/src/converters.pyx" } @@ -10030,7 +10534,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 525 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 525 "root_numpy/src/converters.pyx" __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 525, __pyx_L1_error) @@ -10054,7 +10558,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 525 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 525 "root_numpy/src/converters.pyx" __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 525, __pyx_L1_error) @@ -10472,7 +10976,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 544 "root_numpy/src/converters.pyx" - __pyx_t_11 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_2); if (unlikely((__pyx_t_11 == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(1, 544, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_2); if (unlikely((__pyx_t_11 == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(1, 544, __pyx_L1_error) #line 544 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -10960,7 +11464,7 @@ static __pyx_t_13_librootnumpy_Converter *__pyx_f_13_librootnumpy_get_converter( __pyx_t_13_librootnumpy_CONVERTERS_ITEM_TYPE __pyx_t_8; #line 563 "root_numpy/src/converters.pyx" - Py_ssize_t __pyx_t_9; + int __pyx_t_9; #line 563 "root_numpy/src/converters.pyx" PyObject *__pyx_t_10 = NULL; @@ -11088,7 +11592,7 @@ static __pyx_t_13_librootnumpy_Converter *__pyx_f_13_librootnumpy_get_converter( __pyx_t_5 = NULL; #line 578 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 578 "root_numpy/src/converters.pyx" __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); @@ -11130,31 +11634,91 @@ static __pyx_t_13_librootnumpy_Converter *__pyx_f_13_librootnumpy_get_converter( } else { #line 578 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 578, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 578 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + if (PyFunction_Check(__pyx_t_3)) { #line 578 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; #line 578 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 578, __pyx_L1_error) #line 578 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 578 "root_numpy/src/converters.pyx" - __pyx_t_4 = 0; + __Pyx_GOTREF(__pyx_t_1); #line 578 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 578, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 578 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + } else #line 578 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + #endif + +#line 578 "root_numpy/src/converters.pyx" + #if CYTHON_FAST_PYCCALL + +#line 578 "root_numpy/src/converters.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + +#line 578 "root_numpy/src/converters.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; + +#line 578 "root_numpy/src/converters.pyx" + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 578, __pyx_L1_error) + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 578 "root_numpy/src/converters.pyx" + } else + +#line 578 "root_numpy/src/converters.pyx" + #endif + +#line 578 "root_numpy/src/converters.pyx" + { + +#line 578 "root_numpy/src/converters.pyx" + __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 578, __pyx_L1_error) + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 578 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); + +#line 578 "root_numpy/src/converters.pyx" + __pyx_t_4 = 0; + +#line 578 "root_numpy/src/converters.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 578, __pyx_L1_error) + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 578 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 578 "root_numpy/src/converters.pyx" + } #line 578 "root_numpy/src/converters.pyx" } @@ -11229,7 +11793,7 @@ static __pyx_t_13_librootnumpy_Converter *__pyx_f_13_librootnumpy_get_converter( __pyx_t_4 = NULL; #line 581 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_1))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { #line 581 "root_numpy/src/converters.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); @@ -11271,31 +11835,91 @@ static __pyx_t_13_librootnumpy_Converter *__pyx_f_13_librootnumpy_get_converter( } else { #line 581 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 581, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 581 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_1)) { #line 581 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; #line 581 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 581, __pyx_L1_error) #line 581 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_6); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 581 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __Pyx_GOTREF(__pyx_t_3); #line 581 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 581, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 581 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + } else #line 581 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + #endif + +#line 581 "root_numpy/src/converters.pyx" + #if CYTHON_FAST_PYCCALL + +#line 581 "root_numpy/src/converters.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { + +#line 581 "root_numpy/src/converters.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_6}; + +#line 581 "root_numpy/src/converters.pyx" + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 581, __pyx_L1_error) + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 581 "root_numpy/src/converters.pyx" + } else + +#line 581 "root_numpy/src/converters.pyx" + #endif + +#line 581 "root_numpy/src/converters.pyx" + { + +#line 581 "root_numpy/src/converters.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 581, __pyx_L1_error) + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 581 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_6); + +#line 581 "root_numpy/src/converters.pyx" + __pyx_t_6 = 0; + +#line 581 "root_numpy/src/converters.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 581, __pyx_L1_error) + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 581 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 581 "root_numpy/src/converters.pyx" + } #line 581 "root_numpy/src/converters.pyx" } @@ -11432,7 +12056,7 @@ static __pyx_t_13_librootnumpy_Converter *__pyx_f_13_librootnumpy_get_converter( __pyx_t_9 = 0; #line 584 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { #line 584 "root_numpy/src/converters.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); @@ -11462,46 +12086,112 @@ static __pyx_t_13_librootnumpy_Converter *__pyx_f_13_librootnumpy_get_converter( } #line 584 "root_numpy/src/converters.pyx" - __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 584, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 584 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_5)) { #line 584 "root_numpy/src/converters.pyx" - if (__pyx_t_4) { + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, __pyx_t_6}; #line 584 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_4); __pyx_t_4 = NULL; + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 584, __pyx_L1_error) #line 584 "root_numpy/src/converters.pyx" - } + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 584 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_1); #line 584 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_3); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 584 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 584 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_6); + } else #line 584 "root_numpy/src/converters.pyx" - __pyx_t_3 = 0; + #endif #line 584 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + #if CYTHON_FAST_PYCCALL #line 584 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 584, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { #line 584 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, __pyx_t_6}; #line 584 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 584, __pyx_L1_error) + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 584 "root_numpy/src/converters.pyx" + } else + +#line 584 "root_numpy/src/converters.pyx" + #endif + +#line 584 "root_numpy/src/converters.pyx" + { + +#line 584 "root_numpy/src/converters.pyx" + __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 584, __pyx_L1_error) + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 584 "root_numpy/src/converters.pyx" + if (__pyx_t_4) { + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 584 "root_numpy/src/converters.pyx" + } + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_3); + +#line 584 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_3); + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 584 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_6); + +#line 584 "root_numpy/src/converters.pyx" + __pyx_t_3 = 0; + +#line 584 "root_numpy/src/converters.pyx" + __pyx_t_6 = 0; + +#line 584 "root_numpy/src/converters.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 584, __pyx_L1_error) + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 584 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 584 "root_numpy/src/converters.pyx" + } #line 584 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -12027,10 +12717,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p PyObject *__pyx_t_12 = NULL; #line 621 "root_numpy/src/converters.pyx" - Py_ssize_t __pyx_t_13; - -#line 621 "root_numpy/src/converters.pyx" - PyObject *__pyx_t_14 = NULL; + PyObject *__pyx_t_13 = NULL; #line 621 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("", 0); @@ -12398,7 +13085,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __pyx_t_9 = NULL; #line 639 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { #line 639 "root_numpy/src/converters.pyx" __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); @@ -12440,31 +13127,91 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p } else { #line 639 "root_numpy/src/converters.pyx" - __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 639, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 639 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_4)) { #line 639 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_8}; #line 639 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 639, __pyx_L1_error) #line 639 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_t_8); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 639 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_GOTREF(__pyx_t_3); #line 639 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 639, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 639 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + } else #line 639 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + #endif + +#line 639 "root_numpy/src/converters.pyx" + #if CYTHON_FAST_PYCCALL + +#line 639 "root_numpy/src/converters.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + +#line 639 "root_numpy/src/converters.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_8}; + +#line 639 "root_numpy/src/converters.pyx" + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 639, __pyx_L1_error) + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 639 "root_numpy/src/converters.pyx" + } else + +#line 639 "root_numpy/src/converters.pyx" + #endif + +#line 639 "root_numpy/src/converters.pyx" + { + +#line 639 "root_numpy/src/converters.pyx" + __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 639, __pyx_L1_error) + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL; + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_8); + +#line 639 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_t_8); + +#line 639 "root_numpy/src/converters.pyx" + __pyx_t_8 = 0; + +#line 639 "root_numpy/src/converters.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 639, __pyx_L1_error) + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 639 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 639 "root_numpy/src/converters.pyx" + } #line 639 "root_numpy/src/converters.pyx" } @@ -12699,10 +13446,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __pyx_t_12 = NULL; #line 652 "root_numpy/src/converters.pyx" - __pyx_t_13 = 0; + __pyx_t_6 = 0; #line 652 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { #line 652 "root_numpy/src/converters.pyx" __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_4); @@ -12723,7 +13470,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_DECREF_SET(__pyx_t_4, function); #line 652 "root_numpy/src/converters.pyx" - __pyx_t_13 = 1; + __pyx_t_6 = 1; #line 652 "root_numpy/src/converters.pyx" } @@ -12732,55 +13479,127 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p } #line 652 "root_numpy/src/converters.pyx" - __pyx_t_14 = PyTuple_New(3+__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 651, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 652 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_14); + if (PyFunction_Check(__pyx_t_4)) { #line 652 "root_numpy/src/converters.pyx" - if (__pyx_t_12) { + PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_t_10, __pyx_t_8, __pyx_t_9}; #line 652 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_12); __pyx_t_12 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 651, __pyx_L1_error) #line 652 "root_numpy/src/converters.pyx" - } + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; #line 652 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_3); #line 652 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_13, __pyx_t_10); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 652 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 652 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_13, __pyx_t_8); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 652 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); + } else #line 652 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 2+__pyx_t_13, __pyx_t_9); + #endif #line 652 "root_numpy/src/converters.pyx" - __pyx_t_10 = 0; + #if CYTHON_FAST_PYCCALL #line 652 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { #line 652 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_t_10, __pyx_t_8, __pyx_t_9}; #line 652 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_14, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 651, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 651, __pyx_L1_error) #line 652 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; #line 652 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_GOTREF(__pyx_t_3); + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 652 "root_numpy/src/converters.pyx" + } else + +#line 652 "root_numpy/src/converters.pyx" + #endif + +#line 652 "root_numpy/src/converters.pyx" + { + +#line 652 "root_numpy/src/converters.pyx" + __pyx_t_13 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 651, __pyx_L1_error) + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_13); + +#line 652 "root_numpy/src/converters.pyx" + if (__pyx_t_12) { + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_12); __pyx_t_12 = NULL; + +#line 652 "root_numpy/src/converters.pyx" + } + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_10); + +#line 652 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_6, __pyx_t_10); + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_8); + +#line 652 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_6, __pyx_t_8); + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 652 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 2+__pyx_t_6, __pyx_t_9); + +#line 652 "root_numpy/src/converters.pyx" + __pyx_t_10 = 0; + +#line 652 "root_numpy/src/converters.pyx" + __pyx_t_8 = 0; + +#line 652 "root_numpy/src/converters.pyx" + __pyx_t_9 = 0; + +#line 652 "root_numpy/src/converters.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_13, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 651, __pyx_L1_error) + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 652 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 652 "root_numpy/src/converters.pyx" + } #line 652 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -12904,7 +13723,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_XDECREF(__pyx_t_12); #line 619 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_14); + __Pyx_XDECREF(__pyx_t_13); #line 619 "root_numpy/src/converters.pyx" __Pyx_WriteUnraisable("FixedNP2ROOTConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); @@ -13228,7 +14047,7 @@ static __pyx_t_13_librootnumpy_NP2ROOTConverter *__pyx_f_13_librootnumpy_find_np PyObject* sequence = __pyx_v_subdtype; #line 675 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 675 "root_numpy/src/converters.pyx" Py_ssize_t size = Py_SIZE(sequence); @@ -13258,7 +14077,7 @@ static __pyx_t_13_librootnumpy_NP2ROOTConverter *__pyx_f_13_librootnumpy_find_np } #line 675 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 675 "root_numpy/src/converters.pyx" if (likely(PyTuple_CheckExact(sequence))) { @@ -13515,7 +14334,7 @@ goto __pyx_L4_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); #line 681 "root_numpy/src/converters.pyx" - __pyx_t_10 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_1); if (unlikely((__pyx_t_10 == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(1, 681, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_1); if (unlikely((__pyx_t_10 == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(1, 681, __pyx_L1_error) #line 681 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -13604,7 +14423,7 @@ goto __pyx_L4_unpacking_failed; PyObject* sequence = __pyx_t_4; #line 684 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 684 "root_numpy/src/converters.pyx" Py_ssize_t size = Py_SIZE(sequence); @@ -13634,7 +14453,7 @@ goto __pyx_L4_unpacking_failed; } #line 684 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 684 "root_numpy/src/converters.pyx" if (likely(PyTuple_CheckExact(sequence))) { @@ -14090,7 +14909,7 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __pyx_t_4 = NULL; #line 7 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 7 "root_numpy/src/tree.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); @@ -14129,31 +14948,85 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py } else { #line 7 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 7, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 7 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_3)) { #line 7 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_path}; #line 7 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_path); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error) #line 7 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_path); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 7 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_path); + __Pyx_GOTREF(__pyx_t_2); #line 7 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error) + } else #line 7 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + #endif #line 7 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + #if CYTHON_FAST_PYCCALL + +#line 7 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + +#line 7 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_path}; + +#line 7 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error) + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 7 "root_numpy/src/tree.pyx" + } else + +#line 7 "root_numpy/src/tree.pyx" + #endif + +#line 7 "root_numpy/src/tree.pyx" + { + +#line 7 "root_numpy/src/tree.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 7, __pyx_L1_error) + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_path); + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_path); + +#line 7 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_path); + +#line 7 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error) + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 7 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 7 "root_numpy/src/tree.pyx" + } #line 7 "root_numpy/src/tree.pyx" } @@ -15012,7 +15885,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break; #line 38 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 38 "root_numpy/src/tree.pyx" __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 38, __pyx_L1_error) @@ -15036,7 +15909,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #line 38 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 38 "root_numpy/src/tree.pyx" __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 38, __pyx_L1_error) @@ -15144,7 +16017,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR __pyx_t_9 = NULL; #line 41 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 41 "root_numpy/src/tree.pyx" __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); @@ -15183,31 +16056,85 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR } else { #line 41 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 41, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 41 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_8)) { #line 41 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_clsname}; #line 41 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_clsname); + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 41, __pyx_L1_error) #line 41 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_clsname); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 41 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_clsname); + __Pyx_GOTREF(__pyx_t_6); #line 41 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 41, __pyx_L1_error) + } else #line 41 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + #endif #line 41 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + #if CYTHON_FAST_PYCCALL + +#line 41 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + +#line 41 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_clsname}; + +#line 41 "root_numpy/src/tree.pyx" + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 41 "root_numpy/src/tree.pyx" + } else + +#line 41 "root_numpy/src/tree.pyx" + #endif + +#line 41 "root_numpy/src/tree.pyx" + { + +#line 41 "root_numpy/src/tree.pyx" + __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL; + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_clsname); + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_clsname); + +#line 41 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_clsname); + +#line 41 "root_numpy/src/tree.pyx" + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 41 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 41 "root_numpy/src/tree.pyx" + } #line 41 "root_numpy/src/tree.pyx" } @@ -15356,7 +16283,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR __pyx_t_8 = NULL; #line 45 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { #line 45 "root_numpy/src/tree.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); @@ -15395,31 +16322,85 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR } else { #line 45 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 45, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 45 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_6)) { #line 45 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_fname}; #line 45 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fname); + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 45, __pyx_L1_error) #line 45 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fname); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 45 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_fname); + __Pyx_GOTREF(__pyx_t_3); #line 45 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 45, __pyx_L1_error) + } else #line 45 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + #endif #line 45 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + #if CYTHON_FAST_PYCCALL + +#line 45 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { + +#line 45 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_fname}; + +#line 45 "root_numpy/src/tree.pyx" + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 45, __pyx_L1_error) + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 45 "root_numpy/src/tree.pyx" + } else + +#line 45 "root_numpy/src/tree.pyx" + #endif + +#line 45 "root_numpy/src/tree.pyx" + { + +#line 45 "root_numpy/src/tree.pyx" + __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 45, __pyx_L1_error) + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fname); + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fname); + +#line 45 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_fname); + +#line 45 "root_numpy/src/tree.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 45, __pyx_L1_error) + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 45 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 45 "root_numpy/src/tree.pyx" + } #line 45 "root_numpy/src/tree.pyx" } @@ -16268,6 +17249,9 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec #line 61 "root_numpy/src/tree.pyx" const char *__pyx_t_8; +#line 61 "root_numpy/src/tree.pyx" + int __pyx_t_9; + #line 61 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("list_structures", 0); @@ -16312,7 +17296,7 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __pyx_t_4 = NULL; #line 64 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { #line 64 "root_numpy/src/tree.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); @@ -16351,31 +17335,85 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec } else { #line 64 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 64, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 64 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_3)) { #line 64 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_fname}; #line 64 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fname); + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 64, __pyx_L1_error) #line 64 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fname); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 64 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_fname); + __Pyx_GOTREF(__pyx_t_1); #line 64 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 64, __pyx_L1_error) + } else #line 64 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + #endif #line 64 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + #if CYTHON_FAST_PYCCALL + +#line 64 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + +#line 64 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_fname}; + +#line 64 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 64, __pyx_L1_error) + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 64 "root_numpy/src/tree.pyx" + } else + +#line 64 "root_numpy/src/tree.pyx" + #endif + +#line 64 "root_numpy/src/tree.pyx" + { + +#line 64 "root_numpy/src/tree.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 64, __pyx_L1_error) + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fname); + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fname); + +#line 64 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_fname); + +#line 64 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 64, __pyx_L1_error) + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 64 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 64 "root_numpy/src/tree.pyx" + } #line 64 "root_numpy/src/tree.pyx" } @@ -16430,7 +17468,7 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __pyx_t_4 = NULL; #line 66 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 66 "root_numpy/src/tree.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); @@ -16472,31 +17510,91 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec } else { #line 66 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 66, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 66 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyFunction_Check(__pyx_t_3)) { #line 66 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; #line 66 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 66, __pyx_L1_error) #line 66 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_5); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 66 "root_numpy/src/tree.pyx" - __pyx_t_5 = 0; + __Pyx_GOTREF(__pyx_t_1); #line 66 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 66, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 66 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + } else #line 66 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + #endif + +#line 66 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 66 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + +#line 66 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_5}; + +#line 66 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 66, __pyx_L1_error) + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 66 "root_numpy/src/tree.pyx" + } else + +#line 66 "root_numpy/src/tree.pyx" + #endif + +#line 66 "root_numpy/src/tree.pyx" + { + +#line 66 "root_numpy/src/tree.pyx" + __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 66, __pyx_L1_error) + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 66 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_5); + +#line 66 "root_numpy/src/tree.pyx" + __pyx_t_5 = 0; + +#line 66 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 66, __pyx_L1_error) + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 66 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 66 "root_numpy/src/tree.pyx" + } #line 66 "root_numpy/src/tree.pyx" } @@ -16625,7 +17723,7 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __pyx_t_7 = NULL; #line 70 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 70 "root_numpy/src/tree.pyx" __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); @@ -16664,31 +17762,85 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec } else { #line 70 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 70, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 70 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_3)) { #line 70 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_fname}; #line 70 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fname); + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 70, __pyx_L1_error) #line 70 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fname); + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 70 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_fname); + __Pyx_GOTREF(__pyx_t_1); #line 70 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 70, __pyx_L1_error) + } else #line 70 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + #endif #line 70 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + #if CYTHON_FAST_PYCCALL + +#line 70 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + +#line 70 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_fname}; + +#line 70 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 70, __pyx_L1_error) + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 70 "root_numpy/src/tree.pyx" + } else + +#line 70 "root_numpy/src/tree.pyx" + #endif + +#line 70 "root_numpy/src/tree.pyx" + { + +#line 70 "root_numpy/src/tree.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 70, __pyx_L1_error) + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fname); + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fname); + +#line 70 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_fname); + +#line 70 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 70, __pyx_L1_error) + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 70 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 70 "root_numpy/src/tree.pyx" + } #line 70 "root_numpy/src/tree.pyx" } @@ -16786,10 +17938,10 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __pyx_t_5 = NULL; #line 73 "root_numpy/src/tree.pyx" - __pyx_t_6 = 0; + __pyx_t_9 = 0; #line 73 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 73 "root_numpy/src/tree.pyx" __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); @@ -16810,7 +17962,7 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __Pyx_DECREF_SET(__pyx_t_3, function); #line 73 "root_numpy/src/tree.pyx" - __pyx_t_6 = 1; + __pyx_t_9 = 1; #line 73 "root_numpy/src/tree.pyx" } @@ -16819,46 +17971,100 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec } #line 73 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 73, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 73 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyFunction_Check(__pyx_t_3)) { #line 73 "root_numpy/src/tree.pyx" - if (__pyx_t_5) { + PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_tree, __pyx_v_fname}; #line 73 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 73, __pyx_L1_error) #line 73 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 73 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_tree); + __Pyx_GOTREF(__pyx_t_1); #line 73 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_tree); + } else #line 73 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_tree); + #endif #line 73 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fname); + #if CYTHON_FAST_PYCCALL #line 73 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fname); + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 73 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_fname); + PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_tree, __pyx_v_fname}; #line 73 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 73, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 73, __pyx_L1_error) #line 73 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 73 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_GOTREF(__pyx_t_1); + +#line 73 "root_numpy/src/tree.pyx" + } else + +#line 73 "root_numpy/src/tree.pyx" + #endif + +#line 73 "root_numpy/src/tree.pyx" + { + +#line 73 "root_numpy/src/tree.pyx" + __pyx_t_7 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 73, __pyx_L1_error) + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 73 "root_numpy/src/tree.pyx" + if (__pyx_t_5) { + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 73 "root_numpy/src/tree.pyx" + } + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_tree); + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_tree); + +#line 73 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_9, __pyx_v_tree); + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fname); + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fname); + +#line 73 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_9, __pyx_v_fname); + +#line 73 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 73, __pyx_L1_error) + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 73 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 73 "root_numpy/src/tree.pyx" + } #line 73 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -17247,7 +18453,7 @@ static PyObject *__pyx_pf_13_librootnumpy_10list_branches(CYTHON_UNUSED PyObject PyObject *__pyx_t_4 = NULL; #line 80 "root_numpy/src/tree.pyx" - Py_ssize_t __pyx_t_5; + int __pyx_t_5; #line 80 "root_numpy/src/tree.pyx" PyObject *__pyx_t_6 = NULL; @@ -17279,7 +18485,7 @@ static PyObject *__pyx_pf_13_librootnumpy_10list_branches(CYTHON_UNUSED PyObject __pyx_t_5 = 0; #line 81 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { #line 81 "root_numpy/src/tree.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); @@ -17309,46 +18515,100 @@ static PyObject *__pyx_pf_13_librootnumpy_10list_branches(CYTHON_UNUSED PyObject } #line 81 "root_numpy/src/tree.pyx" - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 81, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 81 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + if (PyFunction_Check(__pyx_t_3)) { #line 81 "root_numpy/src/tree.pyx" - if (__pyx_t_4) { + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_fname, __pyx_v_tree}; #line 81 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 81, __pyx_L1_error) #line 81 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 81 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fname); + __Pyx_GOTREF(__pyx_t_2); #line 81 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fname); + } else #line 81 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_fname); + #endif #line 81 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_tree); + #if CYTHON_FAST_PYCCALL #line 81 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_tree); + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 81 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_tree); + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_fname, __pyx_v_tree}; #line 81 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 81, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 81, __pyx_L1_error) #line 81 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 81 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_GOTREF(__pyx_t_2); + +#line 81 "root_numpy/src/tree.pyx" + } else + +#line 81 "root_numpy/src/tree.pyx" + #endif + +#line 81 "root_numpy/src/tree.pyx" + { + +#line 81 "root_numpy/src/tree.pyx" + __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 81, __pyx_L1_error) + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 81 "root_numpy/src/tree.pyx" + if (__pyx_t_4) { + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 81 "root_numpy/src/tree.pyx" + } + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fname); + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fname); + +#line 81 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_fname); + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_tree); + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_tree); + +#line 81 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_tree); + +#line 81 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 81, __pyx_L1_error) + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 81 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 81 "root_numpy/src/tree.pyx" + } #line 81 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -17366,7 +18626,7 @@ static PyObject *__pyx_pf_13_librootnumpy_10list_branches(CYTHON_UNUSED PyObject __pyx_t_2 = NULL; #line 81 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 81 "root_numpy/src/tree.pyx" __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); @@ -17601,7 +18861,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __pyx_t_5 = NULL; #line 90 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 90 "root_numpy/src/tree.pyx" __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); @@ -17643,31 +18903,91 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b } else { #line 90 "root_numpy/src/tree.pyx" - __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 90, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 90 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + if (PyFunction_Check(__pyx_t_3)) { #line 90 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; #line 90 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 90, __pyx_L1_error) #line 90 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 90 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __Pyx_GOTREF(__pyx_t_2); #line 90 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 90, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 90 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + } else #line 90 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + #endif + +#line 90 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 90 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + +#line 90 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_4}; + +#line 90 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 90, __pyx_L1_error) + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 90 "root_numpy/src/tree.pyx" + } else + +#line 90 "root_numpy/src/tree.pyx" + #endif + +#line 90 "root_numpy/src/tree.pyx" + { + +#line 90 "root_numpy/src/tree.pyx" + __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 90, __pyx_L1_error) + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 90 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); + +#line 90 "root_numpy/src/tree.pyx" + __pyx_t_4 = 0; + +#line 90 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 90, __pyx_L1_error) + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 90 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 90 "root_numpy/src/tree.pyx" + } #line 90 "root_numpy/src/tree.pyx" } @@ -17869,7 +19189,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __pyx_t_4 = NULL; #line 98 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 98 "root_numpy/src/tree.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); @@ -17911,31 +19231,91 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b } else { #line 98 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 97, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 98 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_3)) { #line 98 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; #line 98 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 97, __pyx_L1_error) #line 98 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 98 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __Pyx_GOTREF(__pyx_t_6); #line 98 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 97, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 98 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + } else #line 98 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + #endif + +#line 98 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 98 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + +#line 98 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; + +#line 98 "root_numpy/src/tree.pyx" + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 97, __pyx_L1_error) + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 98 "root_numpy/src/tree.pyx" + } else + +#line 98 "root_numpy/src/tree.pyx" + #endif + +#line 98 "root_numpy/src/tree.pyx" + { + +#line 98 "root_numpy/src/tree.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 97, __pyx_L1_error) + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 98 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); + +#line 98 "root_numpy/src/tree.pyx" + __pyx_t_2 = 0; + +#line 98 "root_numpy/src/tree.pyx" + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 97, __pyx_L1_error) + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 98 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 98 "root_numpy/src/tree.pyx" + } #line 98 "root_numpy/src/tree.pyx" } @@ -18175,7 +19555,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_tree_structure(TTree *__pyx_v_tree, __pyx_t_3 = NULL; #line 105 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { #line 105 "root_numpy/src/tree.pyx" __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); @@ -18293,7 +19673,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_1)) __PYX_ if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_1)) break; #line 107 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 107 "root_numpy/src/tree.pyx" __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 107, __pyx_L1_error) @@ -18317,7 +19697,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_1)) __PYX_ if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #line 107 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 107 "root_numpy/src/tree.pyx" __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 107, __pyx_L1_error) @@ -18843,7 +20223,7 @@ static PyObject *__pyx_f_13_librootnumpy_humanize_bytes(long __pyx_v_value, stru if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 133 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 133 "root_numpy/src/tree.pyx" __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(2, 133, __pyx_L1_error) @@ -18867,7 +20247,7 @@ static PyObject *__pyx_f_13_librootnumpy_humanize_bytes(long __pyx_v_value, stru PyObject* sequence = __pyx_t_4; #line 133 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 133 "root_numpy/src/tree.pyx" Py_ssize_t size = Py_SIZE(sequence); @@ -18897,7 +20277,7 @@ static PyObject *__pyx_f_13_librootnumpy_humanize_bytes(long __pyx_v_value, stru } #line 133 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 133 "root_numpy/src/tree.pyx" __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); @@ -19832,22 +21212,22 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, bool __ std::string __pyx_t_31; #line 159 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_32 = NULL; + int __pyx_t_32; #line 159 "root_numpy/src/tree.pyx" PyObject *__pyx_t_33 = NULL; #line 159 "root_numpy/src/tree.pyx" - char *__pyx_t_34; + PyObject *__pyx_t_34 = NULL; #line 159 "root_numpy/src/tree.pyx" - size_t __pyx_t_35; + char *__pyx_t_35; #line 159 "root_numpy/src/tree.pyx" - unsigned int __pyx_t_36; + size_t __pyx_t_36; #line 159 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_37 = NULL; + unsigned int __pyx_t_37; #line 159 "root_numpy/src/tree.pyx" PyObject *__pyx_t_38 = NULL; @@ -19856,22 +21236,22 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, bool __ PyObject *__pyx_t_39 = NULL; #line 159 "root_numpy/src/tree.pyx" - long __pyx_t_40; + PyObject *__pyx_t_40 = NULL; #line 159 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_41 = NULL; + long __pyx_t_41; #line 159 "root_numpy/src/tree.pyx" - PY_LONG_LONG __pyx_t_42; + PyObject *__pyx_t_42 = NULL; #line 159 "root_numpy/src/tree.pyx" - unsigned int __pyx_t_43; + PY_LONG_LONG __pyx_t_43; #line 159 "root_numpy/src/tree.pyx" - char const *__pyx_t_44; + unsigned int __pyx_t_44; #line 159 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_45 = NULL; + char const *__pyx_t_45; #line 159 "root_numpy/src/tree.pyx" PyObject *__pyx_t_46 = NULL; @@ -19879,6 +21259,9 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, bool __ #line 159 "root_numpy/src/tree.pyx" PyObject *__pyx_t_47 = NULL; +#line 159 "root_numpy/src/tree.pyx" + PyObject *__pyx_t_48 = NULL; + #line 159 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("tree2array", 0); @@ -20459,7 +21842,7 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, bool __ __pyx_t_10 = NULL; #line 245 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 245 "root_numpy/src/tree.pyx" __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8); @@ -20501,31 +21884,91 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, bool __ } else { #line 245 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 245, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 245 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + if (PyFunction_Check(__pyx_t_8)) { #line 245 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; #line 245 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 245, __pyx_L9_error) #line 245 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_t_9); + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 245 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __Pyx_GOTREF(__pyx_t_2); #line 245 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 245, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 245 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + } else #line 245 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + #endif + +#line 245 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 245 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + +#line 245 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; + +#line 245 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 245, __pyx_L9_error) + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 245 "root_numpy/src/tree.pyx" + } else + +#line 245 "root_numpy/src/tree.pyx" + #endif + +#line 245 "root_numpy/src/tree.pyx" + { + +#line 245 "root_numpy/src/tree.pyx" + __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 245, __pyx_L9_error) + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_11); + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 245 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_t_9); + +#line 245 "root_numpy/src/tree.pyx" + __pyx_t_9 = 0; + +#line 245 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 245, __pyx_L9_error) + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 245 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 245 "root_numpy/src/tree.pyx" + } #line 245 "root_numpy/src/tree.pyx" } @@ -20692,7 +22135,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_11)) __PY if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_11)) break; #line 252 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 252 "root_numpy/src/tree.pyx" __pyx_t_9 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_9); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 252, __pyx_L9_error) @@ -20716,7 +22159,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_11)) __PY if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #line 252 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 252 "root_numpy/src/tree.pyx" __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_9); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 252, __pyx_L9_error) @@ -20962,7 +22405,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_11)) __PY __pyx_t_11 = NULL; #line 259 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 259 "root_numpy/src/tree.pyx" __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_8); @@ -21052,7 +22495,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_8)) break; #line 259 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 259 "root_numpy/src/tree.pyx" __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 259, __pyx_L9_error) @@ -21076,7 +22519,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_8)) break; #line 259 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 259 "root_numpy/src/tree.pyx" __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 259, __pyx_L9_error) @@ -21139,7 +22582,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, PyObject* sequence = __pyx_t_2; #line 259 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 259 "root_numpy/src/tree.pyx" Py_ssize_t size = Py_SIZE(sequence); @@ -21169,7 +22612,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, } #line 259 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 259 "root_numpy/src/tree.pyx" if (likely(PyTuple_CheckExact(sequence))) { @@ -21465,7 +22908,7 @@ goto __pyx_L22_unpacking_failed; __pyx_t_11 = NULL; #line 267 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 267 "root_numpy/src/tree.pyx" __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_9); @@ -21504,31 +22947,85 @@ goto __pyx_L22_unpacking_failed; } else { #line 267 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 267, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 267 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_9)) { #line 267 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_11); __pyx_t_11 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection}; #line 267 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_subselection); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 267, __pyx_L9_error) #line 267 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_subselection); + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 267 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_subselection); + __Pyx_GOTREF(__pyx_t_2); #line 267 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 267, __pyx_L9_error) + } else #line 267 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + #endif #line 267 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + #if CYTHON_FAST_PYCCALL + +#line 267 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { + +#line 267 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection}; + +#line 267 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 267, __pyx_L9_error) + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 267 "root_numpy/src/tree.pyx" + } else + +#line 267 "root_numpy/src/tree.pyx" + #endif + +#line 267 "root_numpy/src/tree.pyx" + { + +#line 267 "root_numpy/src/tree.pyx" + __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 267, __pyx_L9_error) + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_11); __pyx_t_11 = NULL; + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_subselection); + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_subselection); + +#line 267 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_subselection); + +#line 267 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 267, __pyx_L9_error) + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 267 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 267 "root_numpy/src/tree.pyx" + } #line 267 "root_numpy/src/tree.pyx" } @@ -21655,7 +23152,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (__pyx_t_17 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 270 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 270 "root_numpy/src/tree.pyx" __pyx_t_9 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_17); __Pyx_INCREF(__pyx_t_9); __pyx_t_17++; if (unlikely(0 < 0)) __PYX_ERR(2, 270, __pyx_L9_error) @@ -21679,7 +23176,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (__pyx_t_17 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 270 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 270 "root_numpy/src/tree.pyx" __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_17); __Pyx_INCREF(__pyx_t_9); __pyx_t_17++; if (unlikely(0 < 0)) __PYX_ERR(2, 270, __pyx_L9_error) @@ -21776,7 +23273,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_11 = NULL; #line 275 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 275 "root_numpy/src/tree.pyx" __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_10); @@ -21815,31 +23312,85 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } else { #line 275 "root_numpy/src/tree.pyx" - __pyx_t_20 = PyTuple_New(1+1); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 275, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 275 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_20); + if (PyFunction_Check(__pyx_t_10)) { #line 275 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_11); __pyx_t_11 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection_branch}; #line 275 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_subselection_branch); + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 275, __pyx_L9_error) #line 275 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_subselection_branch); + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 275 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_20, 0+1, __pyx_v_subselection_branch); + __Pyx_GOTREF(__pyx_t_9); #line 275 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_20, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 275, __pyx_L9_error) + } else #line 275 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + #endif #line 275 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + #if CYTHON_FAST_PYCCALL + +#line 275 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 275 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection_branch}; + +#line 275 "root_numpy/src/tree.pyx" + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 275, __pyx_L9_error) + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 275 "root_numpy/src/tree.pyx" + } else + +#line 275 "root_numpy/src/tree.pyx" + #endif + +#line 275 "root_numpy/src/tree.pyx" + { + +#line 275 "root_numpy/src/tree.pyx" + __pyx_t_20 = PyTuple_New(1+1); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 275, __pyx_L9_error) + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_20); + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_11); __pyx_t_11 = NULL; + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_subselection_branch); + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_subselection_branch); + +#line 275 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_20, 0+1, __pyx_v_subselection_branch); + +#line 275 "root_numpy/src/tree.pyx" + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_20, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 275, __pyx_L9_error) + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 275 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + +#line 275 "root_numpy/src/tree.pyx" + } #line 275 "root_numpy/src/tree.pyx" } @@ -22121,10 +23672,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_10 = NULL; #line 289 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __pyx_t_24 = 0; #line 289 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 289 "root_numpy/src/tree.pyx" __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); @@ -22145,7 +23696,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF_SET(__pyx_t_2, function); #line 289 "root_numpy/src/tree.pyx" - __pyx_t_4 = 1; + __pyx_t_24 = 1; #line 289 "root_numpy/src/tree.pyx" } @@ -22154,46 +23705,106 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 289 "root_numpy/src/tree.pyx" - __pyx_t_20 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 289, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 289 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_20); + if (PyFunction_Check(__pyx_t_2)) { #line 289 "root_numpy/src/tree.pyx" - if (__pyx_t_10) { + PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_int_neg_1}; #line 289 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_10); __pyx_t_10 = NULL; + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_24, 2+__pyx_t_24); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 289, __pyx_L9_error) #line 289 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 289 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 289 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_20, 0+__pyx_t_4, __pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 289 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_int_neg_1); + } else #line 289 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_int_neg_1); + #endif #line 289 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_20, 1+__pyx_t_4, __pyx_int_neg_1); + #if CYTHON_FAST_PYCCALL #line 289 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 289 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_20, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 289, __pyx_L9_error) + PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_int_neg_1}; #line 289 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_24, 2+__pyx_t_24); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 289, __pyx_L9_error) #line 289 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 289 "root_numpy/src/tree.pyx" + } else + +#line 289 "root_numpy/src/tree.pyx" + #endif + +#line 289 "root_numpy/src/tree.pyx" + { + +#line 289 "root_numpy/src/tree.pyx" + __pyx_t_20 = PyTuple_New(2+__pyx_t_24); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 289, __pyx_L9_error) + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_20); + +#line 289 "root_numpy/src/tree.pyx" + if (__pyx_t_10) { + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_10); __pyx_t_10 = NULL; + +#line 289 "root_numpy/src/tree.pyx" + } + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 289 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_20, 0+__pyx_t_24, __pyx_t_9); + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_int_neg_1); + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_int_neg_1); + +#line 289 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_20, 1+__pyx_t_24, __pyx_int_neg_1); + +#line 289 "root_numpy/src/tree.pyx" + __pyx_t_9 = 0; + +#line 289 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_20, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 289, __pyx_L9_error) + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 289 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + +#line 289 "root_numpy/src/tree.pyx" + } #line 289 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -22322,7 +23933,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_11 = NULL; #line 294 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 294 "root_numpy/src/tree.pyx" __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_9); @@ -22364,31 +23975,91 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } else { #line 294 "root_numpy/src/tree.pyx" - __pyx_t_25 = PyTuple_New(1+1); if (unlikely(!__pyx_t_25)) __PYX_ERR(2, 294, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 294 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_25); + if (PyFunction_Check(__pyx_t_9)) { #line 294 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_11); __pyx_t_11 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_10}; #line 294 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 294, __pyx_L9_error) #line 294 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_25, 0+1, __pyx_t_10); + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 294 "root_numpy/src/tree.pyx" - __pyx_t_10 = 0; + __Pyx_GOTREF(__pyx_t_2); #line 294 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_25, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 294, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 294 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + } else #line 294 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + #endif + +#line 294 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 294 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { + +#line 294 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_10}; + +#line 294 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 294, __pyx_L9_error) + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 294 "root_numpy/src/tree.pyx" + } else + +#line 294 "root_numpy/src/tree.pyx" + #endif + +#line 294 "root_numpy/src/tree.pyx" + { + +#line 294 "root_numpy/src/tree.pyx" + __pyx_t_25 = PyTuple_New(1+1); if (unlikely(!__pyx_t_25)) __PYX_ERR(2, 294, __pyx_L9_error) + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_25); + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_11); __pyx_t_11 = NULL; + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); + +#line 294 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_25, 0+1, __pyx_t_10); + +#line 294 "root_numpy/src/tree.pyx" + __pyx_t_10 = 0; + +#line 294 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_25, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 294, __pyx_L9_error) + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 294 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + +#line 294 "root_numpy/src/tree.pyx" + } #line 294 "root_numpy/src/tree.pyx" } @@ -22408,10 +24079,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_9 = NULL; #line 295 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __pyx_t_24 = 0; #line 295 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_20))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_20))) { #line 295 "root_numpy/src/tree.pyx" __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_20); @@ -22432,7 +24103,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF_SET(__pyx_t_20, function); #line 295 "root_numpy/src/tree.pyx" - __pyx_t_4 = 1; + __pyx_t_24 = 1; #line 295 "root_numpy/src/tree.pyx" } @@ -22441,46 +24112,106 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 295 "root_numpy/src/tree.pyx" - __pyx_t_25 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_25)) __PYX_ERR(2, 294, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 295 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_25); + if (PyFunction_Check(__pyx_t_20)) { #line 295 "root_numpy/src/tree.pyx" - if (__pyx_t_9) { + PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_2, __pyx_builtin_RuntimeWarning}; #line 295 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_9); __pyx_t_9 = NULL; + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_20, __pyx_temp+1-__pyx_t_24, 2+__pyx_t_24); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 294, __pyx_L9_error) #line 295 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 295 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 295 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_25, 0+__pyx_t_4, __pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 295 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_builtin_RuntimeWarning); + } else #line 295 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_builtin_RuntimeWarning); + #endif #line 295 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_25, 1+__pyx_t_4, __pyx_builtin_RuntimeWarning); + #if CYTHON_FAST_PYCCALL #line 295 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_20)) { #line 295 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_20, __pyx_t_25, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 294, __pyx_L9_error) + PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_2, __pyx_builtin_RuntimeWarning}; #line 295 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_20, __pyx_temp+1-__pyx_t_24, 2+__pyx_t_24); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 294, __pyx_L9_error) #line 295 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 295 "root_numpy/src/tree.pyx" + } else + +#line 295 "root_numpy/src/tree.pyx" + #endif + +#line 295 "root_numpy/src/tree.pyx" + { + +#line 295 "root_numpy/src/tree.pyx" + __pyx_t_25 = PyTuple_New(2+__pyx_t_24); if (unlikely(!__pyx_t_25)) __PYX_ERR(2, 294, __pyx_L9_error) + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_25); + +#line 295 "root_numpy/src/tree.pyx" + if (__pyx_t_9) { + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_t_9); __pyx_t_9 = NULL; + +#line 295 "root_numpy/src/tree.pyx" + } + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 295 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_25, 0+__pyx_t_24, __pyx_t_2); + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_builtin_RuntimeWarning); + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_builtin_RuntimeWarning); + +#line 295 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_25, 1+__pyx_t_24, __pyx_builtin_RuntimeWarning); + +#line 295 "root_numpy/src/tree.pyx" + __pyx_t_2 = 0; + +#line 295 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_20, __pyx_t_25, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 294, __pyx_L9_error) + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 295 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + +#line 295 "root_numpy/src/tree.pyx" + } #line 295 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; @@ -23015,7 +24746,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_2 = NULL; #line 337 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_20))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_20))) { #line 337 "root_numpy/src/tree.pyx" __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_20); @@ -23057,31 +24788,91 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } else { #line 337 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 337, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 337 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + if (PyFunction_Check(__pyx_t_20)) { #line 337 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_25}; #line 337 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_25); + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_20, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 337, __pyx_L9_error) #line 337 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_25); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 337 "root_numpy/src/tree.pyx" - __pyx_t_25 = 0; + __Pyx_GOTREF(__pyx_t_8); #line 337 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_20, __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 337, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; #line 337 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + } else #line 337 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + #endif + +#line 337 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 337 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_20)) { + +#line 337 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_25}; + +#line 337 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_20, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 337, __pyx_L9_error) + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + +#line 337 "root_numpy/src/tree.pyx" + } else + +#line 337 "root_numpy/src/tree.pyx" + #endif + +#line 337 "root_numpy/src/tree.pyx" + { + +#line 337 "root_numpy/src/tree.pyx" + __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 337, __pyx_L9_error) + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_25); + +#line 337 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_25); + +#line 337 "root_numpy/src/tree.pyx" + __pyx_t_25 = 0; + +#line 337 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_20, __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 337, __pyx_L9_error) + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 337 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 337 "root_numpy/src/tree.pyx" + } #line 337 "root_numpy/src/tree.pyx" } @@ -23461,10 +25252,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_10 = NULL; #line 364 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __pyx_t_32 = 0; #line 364 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_20))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_20))) { #line 364 "root_numpy/src/tree.pyx" __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_20); @@ -23485,7 +25276,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF_SET(__pyx_t_20, function); #line 364 "root_numpy/src/tree.pyx" - __pyx_t_4 = 1; + __pyx_t_32 = 1; #line 364 "root_numpy/src/tree.pyx" } @@ -23494,55 +25285,127 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 364 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_New(3+__pyx_t_4); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 362, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 364 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + if (PyFunction_Check(__pyx_t_20)) { #line 364 "root_numpy/src/tree.pyx" - if (__pyx_t_10) { + PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_t_9, __pyx_t_25, __pyx_t_2}; #line 364 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_20, __pyx_temp+1-__pyx_t_32, 3+__pyx_t_32); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 362, __pyx_L9_error) #line 364 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 364 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 364 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_4, __pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 364 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_25); + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; #line 364 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_4, __pyx_t_25); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 364 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + } else #line 364 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_4, __pyx_t_2); + #endif #line 364 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + #if CYTHON_FAST_PYCCALL #line 364 "root_numpy/src/tree.pyx" - __pyx_t_25 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_20)) { #line 364 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_t_9, __pyx_t_25, __pyx_t_2}; #line 364 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_20, __pyx_t_11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 362, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_20, __pyx_temp+1-__pyx_t_32, 3+__pyx_t_32); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 362, __pyx_L9_error) #line 364 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 364 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_GOTREF(__pyx_t_8); + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 364 "root_numpy/src/tree.pyx" + } else + +#line 364 "root_numpy/src/tree.pyx" + #endif + +#line 364 "root_numpy/src/tree.pyx" + { + +#line 364 "root_numpy/src/tree.pyx" + __pyx_t_11 = PyTuple_New(3+__pyx_t_32); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 362, __pyx_L9_error) + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_11); + +#line 364 "root_numpy/src/tree.pyx" + if (__pyx_t_10) { + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; + +#line 364 "root_numpy/src/tree.pyx" + } + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 364 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_32, __pyx_t_9); + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_25); + +#line 364 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_32, __pyx_t_25); + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 364 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_32, __pyx_t_2); + +#line 364 "root_numpy/src/tree.pyx" + __pyx_t_9 = 0; + +#line 364 "root_numpy/src/tree.pyx" + __pyx_t_25 = 0; + +#line 364 "root_numpy/src/tree.pyx" + __pyx_t_2 = 0; + +#line 364 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_20, __pyx_t_11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 362, __pyx_L9_error) + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 364 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 364 "root_numpy/src/tree.pyx" + } #line 364 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; @@ -23674,25 +25537,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GOTREF(__pyx_t_10); #line 371 "root_numpy/src/tree.pyx" - __pyx_t_32 = NULL; + __pyx_t_33 = NULL; #line 371 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __pyx_t_32 = 0; #line 371 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 371 "root_numpy/src/tree.pyx" - __pyx_t_32 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_33 = PyMethod_GET_SELF(__pyx_t_2); #line 371 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_32)) { + if (likely(__pyx_t_33)) { #line 371 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 371 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_32); + __Pyx_INCREF(__pyx_t_33); #line 371 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -23701,7 +25564,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF_SET(__pyx_t_2, function); #line 371 "root_numpy/src/tree.pyx" - __pyx_t_4 = 1; + __pyx_t_32 = 1; #line 371 "root_numpy/src/tree.pyx" } @@ -23710,55 +25573,127 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 371 "root_numpy/src/tree.pyx" - __pyx_t_33 = PyTuple_New(3+__pyx_t_4); if (unlikely(!__pyx_t_33)) __PYX_ERR(2, 369, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 371 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_33); + if (PyFunction_Check(__pyx_t_2)) { #line 371 "root_numpy/src/tree.pyx" - if (__pyx_t_32) { + PyObject *__pyx_temp[4] = {__pyx_t_33, __pyx_t_25, __pyx_t_9, __pyx_t_10}; #line 371 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_32); PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_32); __pyx_t_32 = NULL; + __pyx_t_20 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_32, 3+__pyx_t_32); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 369, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; #line 371 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_25); + __Pyx_GOTREF(__pyx_t_20); #line 371 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_33, 0+__pyx_t_4, __pyx_t_25); + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; #line 371 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 371 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_33, 1+__pyx_t_4, __pyx_t_9); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 371 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); + } else #line 371 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_33, 2+__pyx_t_4, __pyx_t_10); + #endif #line 371 "root_numpy/src/tree.pyx" - __pyx_t_25 = 0; + #if CYTHON_FAST_PYCCALL #line 371 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 371 "root_numpy/src/tree.pyx" - __pyx_t_10 = 0; + PyObject *__pyx_temp[4] = {__pyx_t_33, __pyx_t_25, __pyx_t_9, __pyx_t_10}; #line 371 "root_numpy/src/tree.pyx" - __pyx_t_20 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_33, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 369, __pyx_L9_error) + __pyx_t_20 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_32, 3+__pyx_t_32); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 369, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_20); + __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_20); + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 371 "root_numpy/src/tree.pyx" + } else #line 371 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0; + #endif + +#line 371 "root_numpy/src/tree.pyx" + { + +#line 371 "root_numpy/src/tree.pyx" + __pyx_t_34 = PyTuple_New(3+__pyx_t_32); if (unlikely(!__pyx_t_34)) __PYX_ERR(2, 369, __pyx_L9_error) + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_34); + +#line 371 "root_numpy/src/tree.pyx" + if (__pyx_t_33) { + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_33); PyTuple_SET_ITEM(__pyx_t_34, 0, __pyx_t_33); __pyx_t_33 = NULL; + +#line 371 "root_numpy/src/tree.pyx" + } + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_25); + +#line 371 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_34, 0+__pyx_t_32, __pyx_t_25); + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 371 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_34, 1+__pyx_t_32, __pyx_t_9); + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); + +#line 371 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_34, 2+__pyx_t_32, __pyx_t_10); + +#line 371 "root_numpy/src/tree.pyx" + __pyx_t_25 = 0; + +#line 371 "root_numpy/src/tree.pyx" + __pyx_t_9 = 0; + +#line 371 "root_numpy/src/tree.pyx" + __pyx_t_10 = 0; + +#line 371 "root_numpy/src/tree.pyx" + __pyx_t_20 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_34, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 369, __pyx_L9_error) + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_20); + +#line 371 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; + +#line 371 "root_numpy/src/tree.pyx" + } #line 371 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -23778,25 +25713,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GOTREF(__pyx_t_2); #line 372 "root_numpy/src/tree.pyx" - __pyx_t_33 = NULL; + __pyx_t_34 = NULL; #line 372 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __pyx_t_32 = 0; #line 372 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_11))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) { #line 372 "root_numpy/src/tree.pyx" - __pyx_t_33 = PyMethod_GET_SELF(__pyx_t_11); + __pyx_t_34 = PyMethod_GET_SELF(__pyx_t_11); #line 372 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_33)) { + if (likely(__pyx_t_34)) { #line 372 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); #line 372 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_33); + __Pyx_INCREF(__pyx_t_34); #line 372 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -23805,7 +25740,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF_SET(__pyx_t_11, function); #line 372 "root_numpy/src/tree.pyx" - __pyx_t_4 = 1; + __pyx_t_32 = 1; #line 372 "root_numpy/src/tree.pyx" } @@ -23814,46 +25749,112 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 372 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 367, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 372 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_11)) { #line 372 "root_numpy/src/tree.pyx" - if (__pyx_t_33) { + PyObject *__pyx_temp[3] = {__pyx_t_34, __pyx_t_20, __pyx_t_2}; #line 372 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_33); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_33); __pyx_t_33 = NULL; + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_32, 2+__pyx_t_32); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 367, __pyx_L9_error) #line 372 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; #line 372 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_20); + __Pyx_GOTREF(__pyx_t_8); #line 372 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_4, __pyx_t_20); + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; #line 372 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 372 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_4, __pyx_t_2); + } else #line 372 "root_numpy/src/tree.pyx" - __pyx_t_20 = 0; + #endif #line 372 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + #if CYTHON_FAST_PYCCALL #line 372 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 367, __pyx_L9_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) { #line 372 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + PyObject *__pyx_temp[3] = {__pyx_t_34, __pyx_t_20, __pyx_t_2}; #line 372 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_32, 2+__pyx_t_32); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 367, __pyx_L9_error) + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 372 "root_numpy/src/tree.pyx" + } else + +#line 372 "root_numpy/src/tree.pyx" + #endif + +#line 372 "root_numpy/src/tree.pyx" + { + +#line 372 "root_numpy/src/tree.pyx" + __pyx_t_10 = PyTuple_New(2+__pyx_t_32); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 367, __pyx_L9_error) + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 372 "root_numpy/src/tree.pyx" + if (__pyx_t_34) { + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_34); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_34); __pyx_t_34 = NULL; + +#line 372 "root_numpy/src/tree.pyx" + } + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_20); + +#line 372 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_32, __pyx_t_20); + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 372 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_32, __pyx_t_2); + +#line 372 "root_numpy/src/tree.pyx" + __pyx_t_20 = 0; + +#line 372 "root_numpy/src/tree.pyx" + __pyx_t_2 = 0; + +#line 372 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 367, __pyx_L9_error) + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 372 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 372 "root_numpy/src/tree.pyx" + } #line 372 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -23911,7 +25912,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_10 = NULL; #line 376 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_11))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { #line 376 "root_numpy/src/tree.pyx" __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11); @@ -24001,7 +26002,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_11)) break; #line 376 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 376 "root_numpy/src/tree.pyx" __pyx_t_8 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 376, __pyx_L9_error) @@ -24025,7 +26026,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #line 376 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 376 "root_numpy/src/tree.pyx" __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 376, __pyx_L9_error) @@ -24119,10 +26120,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 378 "root_numpy/src/tree.pyx" - __pyx_t_34 = __Pyx_PyObject_AsString(__pyx_v_expression); if (unlikely((!__pyx_t_34) && PyErr_Occurred())) __PYX_ERR(2, 378, __pyx_L9_error) + __pyx_t_35 = __Pyx_PyObject_AsString(__pyx_v_expression); if (unlikely((!__pyx_t_35) && PyErr_Occurred())) __PYX_ERR(2, 378, __pyx_L9_error) #line 378 "root_numpy/src/tree.pyx" - __pyx_v_c_string = __pyx_t_34; + __pyx_v_c_string = __pyx_t_35; /* "root_numpy/src/tree.pyx":379 * branch_idx = branch_dict[expression] @@ -24202,7 +26203,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_2 = NULL; #line 384 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 384 "root_numpy/src/tree.pyx" __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_10); @@ -24241,31 +26242,85 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } else { #line 384 "root_numpy/src/tree.pyx" - __pyx_t_20 = PyTuple_New(1+1); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 384, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 384 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_20); + if (PyFunction_Check(__pyx_t_10)) { #line 384 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_2); __pyx_t_2 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; #line 384 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_expression); + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 384, __pyx_L9_error) #line 384 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_expression); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 384 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_20, 0+1, __pyx_v_expression); + __Pyx_GOTREF(__pyx_t_8); #line 384 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_20, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 384, __pyx_L9_error) + } else #line 384 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + #endif #line 384 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + #if CYTHON_FAST_PYCCALL + +#line 384 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 384 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; + +#line 384 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 384, __pyx_L9_error) + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 384 "root_numpy/src/tree.pyx" + } else + +#line 384 "root_numpy/src/tree.pyx" + #endif + +#line 384 "root_numpy/src/tree.pyx" + { + +#line 384 "root_numpy/src/tree.pyx" + __pyx_t_20 = PyTuple_New(1+1); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 384, __pyx_L9_error) + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_20); + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_2); __pyx_t_2 = NULL; + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_expression); + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_expression); + +#line 384 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_20, 0+1, __pyx_v_expression); + +#line 384 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_20, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 384, __pyx_L9_error) + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 384 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + +#line 384 "root_numpy/src/tree.pyx" + } #line 384 "root_numpy/src/tree.pyx" } @@ -24675,7 +26730,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_2 = NULL; #line 419 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 419 "root_numpy/src/tree.pyx" __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_10); @@ -24717,31 +26772,91 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } else { #line 419 "root_numpy/src/tree.pyx" - __pyx_t_33 = PyTuple_New(1+1); if (unlikely(!__pyx_t_33)) __PYX_ERR(2, 419, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 419 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_33); + if (PyFunction_Check(__pyx_t_10)) { #line 419 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_2); __pyx_t_2 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_20}; #line 419 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_20); + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 419, __pyx_L9_error) #line 419 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_33, 0+1, __pyx_t_20); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 419 "root_numpy/src/tree.pyx" - __pyx_t_20 = 0; + __Pyx_GOTREF(__pyx_t_8); #line 419 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_33, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 419, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; #line 419 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + } else + +#line 419 "root_numpy/src/tree.pyx" + #endif + +#line 419 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL #line 419 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 419 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_20}; + +#line 419 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 419, __pyx_L9_error) + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + +#line 419 "root_numpy/src/tree.pyx" + } else + +#line 419 "root_numpy/src/tree.pyx" + #endif + +#line 419 "root_numpy/src/tree.pyx" + { + +#line 419 "root_numpy/src/tree.pyx" + __pyx_t_34 = PyTuple_New(1+1); if (unlikely(!__pyx_t_34)) __PYX_ERR(2, 419, __pyx_L9_error) + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_34); + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_34, 0, __pyx_t_2); __pyx_t_2 = NULL; + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_20); + +#line 419 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_34, 0+1, __pyx_t_20); + +#line 419 "root_numpy/src/tree.pyx" + __pyx_t_20 = 0; + +#line 419 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_34, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 419, __pyx_L9_error) + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 419 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; + +#line 419 "root_numpy/src/tree.pyx" + } #line 419 "root_numpy/src/tree.pyx" } @@ -24807,16 +26922,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GOTREF(__pyx_t_10); #line 422 "root_numpy/src/tree.pyx" - __pyx_t_33 = __Pyx_PyInt_From_int(__pyx_v_formula->GetNdata()); if (unlikely(!__pyx_t_33)) __PYX_ERR(2, 422, __pyx_L9_error) + __pyx_t_34 = __Pyx_PyInt_From_int(__pyx_v_formula->GetNdata()); if (unlikely(!__pyx_t_34)) __PYX_ERR(2, 422, __pyx_L9_error) #line 422 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_33); + __Pyx_GOTREF(__pyx_t_34); #line 422 "root_numpy/src/tree.pyx" __pyx_t_20 = NULL; #line 422 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 422 "root_numpy/src/tree.pyx" __pyx_t_20 = PyMethod_GET_SELF(__pyx_t_10); @@ -24846,10 +26961,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 if (!__pyx_t_20) { #line 422 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_33); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 422, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_34); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 422, __pyx_L9_error) #line 422 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0; + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; #line 422 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -24858,31 +26973,91 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } else { #line 422 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 422, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 422 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + if (PyFunction_Check(__pyx_t_10)) { #line 422 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_20); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_20); __pyx_t_20 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_20, __pyx_t_34}; #line 422 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_33); + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 422, __pyx_L9_error) #line 422 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_33); + __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0; #line 422 "root_numpy/src/tree.pyx" - __pyx_t_33 = 0; + __Pyx_GOTREF(__pyx_t_8); #line 422 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 422, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; #line 422 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + } else + +#line 422 "root_numpy/src/tree.pyx" + #endif + +#line 422 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 422 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 422 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_20, __pyx_t_34}; + +#line 422 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 422, __pyx_L9_error) + +#line 422 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0; + +#line 422 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 422 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; + +#line 422 "root_numpy/src/tree.pyx" + } else + +#line 422 "root_numpy/src/tree.pyx" + #endif + +#line 422 "root_numpy/src/tree.pyx" + { + +#line 422 "root_numpy/src/tree.pyx" + __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 422, __pyx_L9_error) + +#line 422 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); #line 422 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_GIVEREF(__pyx_t_20); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_20); __pyx_t_20 = NULL; + +#line 422 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_34); + +#line 422 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_34); + +#line 422 "root_numpy/src/tree.pyx" + __pyx_t_34 = 0; + +#line 422 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 422, __pyx_L9_error) + +#line 422 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 422 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 422 "root_numpy/src/tree.pyx" + } #line 422 "root_numpy/src/tree.pyx" } @@ -24940,7 +27115,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_2 = NULL; #line 428 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 428 "root_numpy/src/tree.pyx" __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_10); @@ -24979,31 +27154,85 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } else { #line 428 "root_numpy/src/tree.pyx" - __pyx_t_33 = PyTuple_New(1+1); if (unlikely(!__pyx_t_33)) __PYX_ERR(2, 428, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 428 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_33); + if (PyFunction_Check(__pyx_t_10)) { #line 428 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_2); __pyx_t_2 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; #line 428 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_expression); + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 428, __pyx_L9_error) #line 428 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_expression); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 428 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_33, 0+1, __pyx_v_expression); + __Pyx_GOTREF(__pyx_t_8); #line 428 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_33, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 428, __pyx_L9_error) + } else #line 428 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + #endif + +#line 428 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 428 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 428 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; + +#line 428 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 428, __pyx_L9_error) + +#line 428 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 428 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0; + __Pyx_GOTREF(__pyx_t_8); + +#line 428 "root_numpy/src/tree.pyx" + } else + +#line 428 "root_numpy/src/tree.pyx" + #endif + +#line 428 "root_numpy/src/tree.pyx" + { + +#line 428 "root_numpy/src/tree.pyx" + __pyx_t_34 = PyTuple_New(1+1); if (unlikely(!__pyx_t_34)) __PYX_ERR(2, 428, __pyx_L9_error) + +#line 428 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_34); + +#line 428 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_34, 0, __pyx_t_2); __pyx_t_2 = NULL; + +#line 428 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_expression); + +#line 428 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_expression); + +#line 428 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_34, 0+1, __pyx_v_expression); + +#line 428 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_34, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 428, __pyx_L9_error) + +#line 428 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 428 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; + +#line 428 "root_numpy/src/tree.pyx" + } #line 428 "root_numpy/src/tree.pyx" } @@ -25354,13 +27583,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 456 "root_numpy/src/tree.pyx" - __pyx_t_35 = __pyx_v_columns.size(); + __pyx_t_36 = __pyx_v_columns.size(); #line 456 "root_numpy/src/tree.pyx" - for (__pyx_t_36 = 0; __pyx_t_36 < __pyx_t_35; __pyx_t_36+=1) { + for (__pyx_t_37 = 0; __pyx_t_37 < __pyx_t_36; __pyx_t_37+=1) { #line 456 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_36; + __pyx_v_icol = __pyx_t_37; /* "root_numpy/src/tree.pyx":457 * dtype_fields = [] @@ -25558,22 +27787,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GOTREF(__pyx_t_11); #line 463 "root_numpy/src/tree.pyx" - __pyx_t_33 = NULL; + __pyx_t_34 = NULL; #line 463 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 463 "root_numpy/src/tree.pyx" - __pyx_t_33 = PyMethod_GET_SELF(__pyx_t_10); + __pyx_t_34 = PyMethod_GET_SELF(__pyx_t_10); #line 463 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_33)) { + if (likely(__pyx_t_34)) { #line 463 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); #line 463 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_33); + __Pyx_INCREF(__pyx_t_34); #line 463 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -25588,7 +27817,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 463 "root_numpy/src/tree.pyx" - if (!__pyx_t_33) { + if (!__pyx_t_34) { #line 463 "root_numpy/src/tree.pyx" __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) @@ -25603,31 +27832,91 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } else { #line 463 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 463, __pyx_L9_error) + #if CYTHON_FAST_PYCALL #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + if (PyFunction_Check(__pyx_t_10)) { #line 463 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_33); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_33); __pyx_t_33 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_34, __pyx_t_11}; #line 463 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) #line 463 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_11); + __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; #line 463 "root_numpy/src/tree.pyx" - __pyx_t_11 = 0; + __Pyx_GOTREF(__pyx_t_8); #line 463 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + } else #line 463 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + #endif + +#line 463 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 463 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 463 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_34, __pyx_t_11}; + +#line 463 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 463 "root_numpy/src/tree.pyx" + } else + +#line 463 "root_numpy/src/tree.pyx" + #endif + +#line 463 "root_numpy/src/tree.pyx" + { + +#line 463 "root_numpy/src/tree.pyx" + __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 463, __pyx_L9_error) + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_34); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_34); __pyx_t_34 = NULL; + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_11); + +#line 463 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_11); + +#line 463 "root_numpy/src/tree.pyx" + __pyx_t_11 = 0; + +#line 463 "root_numpy/src/tree.pyx" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 463 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 463 "root_numpy/src/tree.pyx" + } #line 463 "root_numpy/src/tree.pyx" } @@ -25691,10 +27980,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_PyThreadState_assign #line 467 "root_numpy/src/tree.pyx" - __Pyx_ExceptionSave(&__pyx_t_37, &__pyx_t_38, &__pyx_t_39); - -#line 467 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_37); + __Pyx_ExceptionSave(&__pyx_t_38, &__pyx_t_39, &__pyx_t_40); #line 467 "root_numpy/src/tree.pyx" __Pyx_XGOTREF(__pyx_t_38); @@ -25702,6 +27988,9 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #line 467 "root_numpy/src/tree.pyx" __Pyx_XGOTREF(__pyx_t_39); +#line 467 "root_numpy/src/tree.pyx" + __Pyx_XGOTREF(__pyx_t_40); + #line 467 "root_numpy/src/tree.pyx" /*try:*/ { @@ -25793,15 +28082,15 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #line 467 "root_numpy/src/tree.pyx" } -#line 467 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); __pyx_t_37 = 0; - #line 467 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; #line 467 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_39); __pyx_t_39 = 0; +#line 467 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; + #line 467 "root_numpy/src/tree.pyx" goto __pyx_L76_try_end; @@ -25812,7 +28101,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_PyThreadState_assign #line 467 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_32); __pyx_t_32 = 0; + __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; #line 467 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; @@ -25824,7 +28113,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0; #line 467 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; + __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; #line 467 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -25876,10 +28165,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 471 "root_numpy/src/tree.pyx" - __pyx_t_33 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_failed_to_allocate_memory_for_0, __pyx_n_s_format); if (unlikely(!__pyx_t_33)) __PYX_ERR(2, 471, __pyx_L71_except_error) + __pyx_t_34 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_failed_to_allocate_memory_for_0, __pyx_n_s_format); if (unlikely(!__pyx_t_34)) __PYX_ERR(2, 471, __pyx_L71_except_error) #line 471 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_33); + __Pyx_GOTREF(__pyx_t_34); /* "root_numpy/src/tree.pyx":472 * # Raise a more informative exception @@ -25914,13 +28203,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 472 "root_numpy/src/tree.pyx" - __pyx_t_40 = __Pyx_PyInt_As_long(__pyx_t_25); if (unlikely((__pyx_t_40 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 472, __pyx_L71_except_error) + __pyx_t_41 = __Pyx_PyInt_As_long(__pyx_t_25); if (unlikely((__pyx_t_41 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 472, __pyx_L71_except_error) #line 472 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; #line 472 "root_numpy/src/tree.pyx" - __pyx_t_25 = __pyx_f_13_librootnumpy_humanize_bytes(__pyx_t_40, NULL); if (unlikely(!__pyx_t_25)) __PYX_ERR(2, 472, __pyx_L71_except_error) + __pyx_t_25 = __pyx_f_13_librootnumpy_humanize_bytes(__pyx_t_41, NULL); if (unlikely(!__pyx_t_25)) __PYX_ERR(2, 472, __pyx_L71_except_error) #line 472 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_25); @@ -25941,34 +28230,34 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GOTREF(__pyx_t_20); #line 472 "root_numpy/src/tree.pyx" - __pyx_t_32 = NULL; + __pyx_t_33 = NULL; #line 472 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __pyx_t_22 = 0; #line 472 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_33))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_34))) { #line 472 "root_numpy/src/tree.pyx" - __pyx_t_32 = PyMethod_GET_SELF(__pyx_t_33); + __pyx_t_33 = PyMethod_GET_SELF(__pyx_t_34); #line 472 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_32)) { + if (likely(__pyx_t_33)) { #line 472 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_33); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_34); #line 472 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_32); + __Pyx_INCREF(__pyx_t_33); #line 472 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 472 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_33, function); + __Pyx_DECREF_SET(__pyx_t_34, function); #line 472 "root_numpy/src/tree.pyx" - __pyx_t_4 = 1; + __pyx_t_22 = 1; #line 472 "root_numpy/src/tree.pyx" } @@ -25977,58 +28266,130 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 472 "root_numpy/src/tree.pyx" - __pyx_t_41 = PyTuple_New(3+__pyx_t_4); if (unlikely(!__pyx_t_41)) __PYX_ERR(2, 471, __pyx_L71_except_error) + #if CYTHON_FAST_PYCALL #line 472 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_41); + if (PyFunction_Check(__pyx_t_34)) { #line 472 "root_numpy/src/tree.pyx" - if (__pyx_t_32) { + PyObject *__pyx_temp[4] = {__pyx_t_33, __pyx_t_25, __pyx_t_9, __pyx_t_20}; #line 472 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_32); PyTuple_SET_ITEM(__pyx_t_41, 0, __pyx_t_32); __pyx_t_32 = NULL; + __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_34, __pyx_temp+1-__pyx_t_22, 3+__pyx_t_22); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 471, __pyx_L71_except_error) #line 472 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; #line 472 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_25); + __Pyx_GOTREF(__pyx_t_10); #line 472 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_41, 0+__pyx_t_4, __pyx_t_25); + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; #line 472 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 472 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_41, 1+__pyx_t_4, __pyx_t_9); + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; #line 472 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_20); + } else #line 472 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_41, 2+__pyx_t_4, __pyx_t_20); + #endif #line 472 "root_numpy/src/tree.pyx" - __pyx_t_25 = 0; + #if CYTHON_FAST_PYCCALL #line 472 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_34)) { #line 472 "root_numpy/src/tree.pyx" - __pyx_t_20 = 0; + PyObject *__pyx_temp[4] = {__pyx_t_33, __pyx_t_25, __pyx_t_9, __pyx_t_20}; #line 472 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_33, __pyx_t_41, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 471, __pyx_L71_except_error) + __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_34, __pyx_temp+1-__pyx_t_22, 3+__pyx_t_22); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 471, __pyx_L71_except_error) #line 472 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0; + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0; + +#line 472 "root_numpy/src/tree.pyx" + } else + +#line 472 "root_numpy/src/tree.pyx" + #endif + +#line 472 "root_numpy/src/tree.pyx" + { + +#line 472 "root_numpy/src/tree.pyx" + __pyx_t_42 = PyTuple_New(3+__pyx_t_22); if (unlikely(!__pyx_t_42)) __PYX_ERR(2, 471, __pyx_L71_except_error) + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_42); + +#line 472 "root_numpy/src/tree.pyx" + if (__pyx_t_33) { + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_33); PyTuple_SET_ITEM(__pyx_t_42, 0, __pyx_t_33); __pyx_t_33 = NULL; + +#line 472 "root_numpy/src/tree.pyx" + } + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_25); + +#line 472 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_42, 0+__pyx_t_22, __pyx_t_25); + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 472 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_42, 1+__pyx_t_22, __pyx_t_9); + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_20); + +#line 472 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_42, 2+__pyx_t_22, __pyx_t_20); + +#line 472 "root_numpy/src/tree.pyx" + __pyx_t_25 = 0; + +#line 472 "root_numpy/src/tree.pyx" + __pyx_t_9 = 0; #line 472 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_41); __pyx_t_41 = 0; + __pyx_t_20 = 0; + +#line 472 "root_numpy/src/tree.pyx" + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_34, __pyx_t_42, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 471, __pyx_L71_except_error) #line 472 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0; + __Pyx_GOTREF(__pyx_t_10); + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_42); __pyx_t_42 = 0; + +#line 472 "root_numpy/src/tree.pyx" + } + +#line 472 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; /* "root_numpy/src/tree.pyx":471 * except MemoryError: @@ -26039,28 +28400,28 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 471 "root_numpy/src/tree.pyx" - __pyx_t_33 = PyTuple_New(1); if (unlikely(!__pyx_t_33)) __PYX_ERR(2, 471, __pyx_L71_except_error) + __pyx_t_34 = PyTuple_New(1); if (unlikely(!__pyx_t_34)) __PYX_ERR(2, 471, __pyx_L71_except_error) #line 471 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_33); + __Pyx_GOTREF(__pyx_t_34); #line 471 "root_numpy/src/tree.pyx" __Pyx_GIVEREF(__pyx_t_10); #line 471 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_34, 0, __pyx_t_10); #line 471 "root_numpy/src/tree.pyx" __pyx_t_10 = 0; #line 471 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_33, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 471, __pyx_L71_except_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_34, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 471, __pyx_L71_except_error) #line 471 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_10); #line 471 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0; + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; #line 471 "root_numpy/src/tree.pyx" __Pyx_Raise(__pyx_t_10, 0, 0, 0); @@ -26091,9 +28452,6 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #line 467 "root_numpy/src/tree.pyx" __Pyx_PyThreadState_assign -#line 467 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_37); - #line 467 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_38); @@ -26101,7 +28459,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_XGIVEREF(__pyx_t_39); #line 467 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_37, __pyx_t_38, __pyx_t_39); + __Pyx_XGIVEREF(__pyx_t_40); + +#line 467 "root_numpy/src/tree.pyx" + __Pyx_ExceptionReset(__pyx_t_38, __pyx_t_39, __pyx_t_40); #line 467 "root_numpy/src/tree.pyx" goto __pyx_L9_error; @@ -26168,7 +28529,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 478 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 478 "root_numpy/src/tree.pyx" __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 478, __pyx_L9_error) @@ -26192,7 +28553,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 478 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 478 "root_numpy/src/tree.pyx" __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 478, __pyx_L9_error) @@ -26249,13 +28610,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E } #line 478 "root_numpy/src/tree.pyx" - __pyx_t_42 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_8); if (unlikely((__pyx_t_42 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(2, 478, __pyx_L9_error) + __pyx_t_43 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_8); if (unlikely((__pyx_t_43 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(2, 478, __pyx_L9_error) #line 478 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 478 "root_numpy/src/tree.pyx" - __pyx_v_ientry = __pyx_t_42; + __pyx_v_ientry = __pyx_t_43; /* "root_numpy/src/tree.pyx":479 * # Loop on entries in the tree and write the data in the array @@ -26555,13 +28916,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 502 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_v_num_columns; + __pyx_t_37 = __pyx_v_num_columns; #line 502 "root_numpy/src/tree.pyx" - for (__pyx_t_43 = 0; __pyx_t_43 < __pyx_t_36; __pyx_t_43+=1) { + for (__pyx_t_44 = 0; __pyx_t_44 < __pyx_t_37; __pyx_t_44+=1) { #line 502 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_43; + __pyx_v_icol = __pyx_t_44; /* "root_numpy/src/tree.pyx":503 * data_ptr = np.PyArray_GETPTR1(arr, num_entries_selected) @@ -26706,13 +29067,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 517 "root_numpy/src/tree.pyx" - __pyx_t_35 = __pyx_v_columns.size(); + __pyx_t_36 = __pyx_v_columns.size(); #line 517 "root_numpy/src/tree.pyx" - for (__pyx_t_36 = 0; __pyx_t_36 < __pyx_t_35; __pyx_t_36+=1) { + for (__pyx_t_37 = 0; __pyx_t_37 < __pyx_t_36; __pyx_t_37+=1) { #line 517 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_36; + __pyx_v_icol = __pyx_t_37; /* "root_numpy/src/tree.pyx":518 * # Delete Columns @@ -26744,13 +29105,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __pyx_L9_error:; #line 518 "root_numpy/src/tree.pyx" - __pyx_t_39 = 0; __pyx_t_38 = 0; __pyx_t_37 = 0; __pyx_t_45 = 0; __pyx_t_46 = 0; __pyx_t_47 = 0; + __pyx_t_40 = 0; __pyx_t_39 = 0; __pyx_t_38 = 0; __pyx_t_46 = 0; __pyx_t_47 = 0; __pyx_t_48 = 0; #line 518 "root_numpy/src/tree.pyx" __Pyx_PyThreadState_assign #line 518 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_32); __pyx_t_32 = 0; + __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; #line 518 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; @@ -26762,10 +29123,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0; #line 518 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_41); __pyx_t_41 = 0; + __Pyx_XDECREF(__pyx_t_42); __pyx_t_42 = 0; #line 518 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_33); __pyx_t_33 = 0; + __Pyx_XDECREF(__pyx_t_34); __pyx_t_34 = 0; #line 518 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -26780,22 +29141,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 518 "root_numpy/src/tree.pyx" - if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_45, &__pyx_t_46, &__pyx_t_47); + if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_46, &__pyx_t_47, &__pyx_t_48); #line 518 "root_numpy/src/tree.pyx" - if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_39, &__pyx_t_38, &__pyx_t_37) < 0)) __Pyx_ErrFetch(&__pyx_t_39, &__pyx_t_38, &__pyx_t_37); + if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_40, &__pyx_t_39, &__pyx_t_38) < 0)) __Pyx_ErrFetch(&__pyx_t_40, &__pyx_t_39, &__pyx_t_38); #line 518 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_39); - -#line 518 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_38); + __Pyx_XGOTREF(__pyx_t_40); #line 518 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_37); + __Pyx_XGOTREF(__pyx_t_39); #line 518 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_45); + __Pyx_XGOTREF(__pyx_t_38); #line 518 "root_numpy/src/tree.pyx" __Pyx_XGOTREF(__pyx_t_46); @@ -26804,7 +29162,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XGOTREF(__pyx_t_47); #line 518 "root_numpy/src/tree.pyx" - __pyx_t_22 = __pyx_lineno; __pyx_t_23 = __pyx_clineno; __pyx_t_44 = __pyx_filename; + __Pyx_XGOTREF(__pyx_t_48); + +#line 518 "root_numpy/src/tree.pyx" + __pyx_t_22 = __pyx_lineno; __pyx_t_23 = __pyx_clineno; __pyx_t_45 = __pyx_filename; #line 518 "root_numpy/src/tree.pyx" { @@ -26829,13 +29190,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 517 "root_numpy/src/tree.pyx" - __pyx_t_35 = __pyx_v_columns.size(); + __pyx_t_36 = __pyx_v_columns.size(); #line 517 "root_numpy/src/tree.pyx" - for (__pyx_t_36 = 0; __pyx_t_36 < __pyx_t_35; __pyx_t_36+=1) { + for (__pyx_t_37 = 0; __pyx_t_37 < __pyx_t_36; __pyx_t_37+=1) { #line 517 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_36; + __pyx_v_icol = __pyx_t_37; /* "root_numpy/src/tree.pyx":518 * # Delete Columns @@ -26860,9 +29221,6 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E #line 518 "root_numpy/src/tree.pyx" if (PY_MAJOR_VERSION >= 3) { -#line 518 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_45); - #line 518 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_46); @@ -26870,28 +29228,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XGIVEREF(__pyx_t_47); #line 518 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_45, __pyx_t_46, __pyx_t_47); + __Pyx_XGIVEREF(__pyx_t_48); + +#line 518 "root_numpy/src/tree.pyx" + __Pyx_ExceptionReset(__pyx_t_46, __pyx_t_47, __pyx_t_48); #line 518 "root_numpy/src/tree.pyx" } #line 518 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_39); + __Pyx_XGIVEREF(__pyx_t_40); #line 518 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_38); + __Pyx_XGIVEREF(__pyx_t_39); #line 518 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_37); + __Pyx_XGIVEREF(__pyx_t_38); #line 518 "root_numpy/src/tree.pyx" - __Pyx_ErrRestore(__pyx_t_39, __pyx_t_38, __pyx_t_37); + __Pyx_ErrRestore(__pyx_t_40, __pyx_t_39, __pyx_t_38); #line 518 "root_numpy/src/tree.pyx" - __pyx_t_39 = 0; __pyx_t_38 = 0; __pyx_t_37 = 0; __pyx_t_45 = 0; __pyx_t_46 = 0; __pyx_t_47 = 0; + __pyx_t_40 = 0; __pyx_t_39 = 0; __pyx_t_38 = 0; __pyx_t_46 = 0; __pyx_t_47 = 0; __pyx_t_48 = 0; #line 518 "root_numpy/src/tree.pyx" - __pyx_lineno = __pyx_t_22; __pyx_clineno = __pyx_t_23; __pyx_filename = __pyx_t_44; + __pyx_lineno = __pyx_t_22; __pyx_clineno = __pyx_t_23; __pyx_filename = __pyx_t_45; #line 518 "root_numpy/src/tree.pyx" goto __pyx_L1_error; @@ -26943,7 +29304,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __pyx_t_10 = NULL; #line 522 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 522 "root_numpy/src/tree.pyx" __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8); @@ -26985,31 +29346,91 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E } else { #line 522 "root_numpy/src/tree.pyx" - __pyx_t_33 = PyTuple_New(1+1); if (unlikely(!__pyx_t_33)) __PYX_ERR(2, 522, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 522 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_33); + if (PyFunction_Check(__pyx_t_8)) { #line 522 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_10); __pyx_t_10 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_11}; #line 522 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 522, __pyx_L1_error) #line 522 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_33, 0+1, __pyx_t_11); + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 522 "root_numpy/src/tree.pyx" - __pyx_t_11 = 0; + __Pyx_GOTREF(__pyx_t_2); + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 522 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_33, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 522, __pyx_L1_error) + } else #line 522 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + #endif + +#line 522 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 522 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + +#line 522 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_11}; + +#line 522 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 522, __pyx_L1_error) + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 522 "root_numpy/src/tree.pyx" + } else + +#line 522 "root_numpy/src/tree.pyx" + #endif + +#line 522 "root_numpy/src/tree.pyx" + { #line 522 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0; + __pyx_t_34 = PyTuple_New(1+1); if (unlikely(!__pyx_t_34)) __PYX_ERR(2, 522, __pyx_L1_error) + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_34); + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_34, 0, __pyx_t_10); __pyx_t_10 = NULL; + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_11); + +#line 522 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_34, 0+1, __pyx_t_11); + +#line 522 "root_numpy/src/tree.pyx" + __pyx_t_11 = 0; + +#line 522 "root_numpy/src/tree.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_34, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 522, __pyx_L1_error) + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 522 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0; + +#line 522 "root_numpy/src/tree.pyx" + } #line 522 "root_numpy/src/tree.pyx" } @@ -27090,13 +29511,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XDECREF(__pyx_t_25); #line 159 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_32); + __Pyx_XDECREF(__pyx_t_33); #line 159 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_33); + __Pyx_XDECREF(__pyx_t_34); #line 159 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_41); + __Pyx_XDECREF(__pyx_t_42); #line 159 "root_numpy/src/tree.pyx" __Pyx_AddTraceback("_librootnumpy.tree2array", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -27554,7 +29975,7 @@ __PYX_ERR(2, 527, __pyx_L3_error) __pyx_v_step = values[7]; #line 527 "root_numpy/src/tree.pyx" - __pyx_v_include_weight = __Pyx_PyObject_IsTrue(values[8]); if (unlikely((__pyx_v_include_weight == (bool)-1) && PyErr_Occurred())) __PYX_ERR(2, 529, __pyx_L3_error) + __pyx_v_include_weight = __Pyx_PyObject_IsTrue(values[8]); if (unlikely((__pyx_v_include_weight == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(2, 529, __pyx_L3_error) #line 527 "root_numpy/src/tree.pyx" __pyx_v_weight_name = __pyx_convert_string_from_py_std__in_string(values[9]); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 529, __pyx_L3_error) @@ -27563,7 +29984,7 @@ __PYX_ERR(2, 527, __pyx_L3_error) __pyx_v_cache_size = __Pyx_PyInt_As_long(values[10]); if (unlikely((__pyx_v_cache_size == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 530, __pyx_L3_error) #line 527 "root_numpy/src/tree.pyx" - __pyx_v_warn_missing_tree = __Pyx_PyObject_IsTrue(values[11]); if (unlikely((__pyx_v_warn_missing_tree == (bool)-1) && PyErr_Occurred())) __PYX_ERR(2, 530, __pyx_L3_error) + __pyx_v_warn_missing_tree = __Pyx_PyObject_IsTrue(values[11]); if (unlikely((__pyx_v_warn_missing_tree == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(2, 530, __pyx_L3_error) #line 527 "root_numpy/src/tree.pyx" } @@ -27671,7 +30092,7 @@ static PyObject *__pyx_pf_13_librootnumpy_12root2array_fromfile(CYTHON_UNUSED Py PyObject *__pyx_t_11 = NULL; #line 527 "root_numpy/src/tree.pyx" - Py_ssize_t __pyx_t_12; + int __pyx_t_12; #line 527 "root_numpy/src/tree.pyx" PyObject *__pyx_t_13 = NULL; @@ -27686,10 +30107,10 @@ static PyObject *__pyx_pf_13_librootnumpy_12root2array_fromfile(CYTHON_UNUSED Py int __pyx_t_16; #line 527 "root_numpy/src/tree.pyx" - int __pyx_t_17; + char const *__pyx_t_17; #line 527 "root_numpy/src/tree.pyx" - char const *__pyx_t_18; + PyObject *__pyx_t_18 = NULL; #line 527 "root_numpy/src/tree.pyx" PyObject *__pyx_t_19 = NULL; @@ -27706,9 +30127,6 @@ static PyObject *__pyx_pf_13_librootnumpy_12root2array_fromfile(CYTHON_UNUSED Py #line 527 "root_numpy/src/tree.pyx" PyObject *__pyx_t_23 = NULL; -#line 527 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_24 = NULL; - #line 527 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("root2array_fromfile", 0); @@ -27801,7 +30219,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break; #line 535 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 535 "root_numpy/src/tree.pyx" __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(2, 535, __pyx_L4_error) @@ -27825,7 +30243,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #line 535 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 535 "root_numpy/src/tree.pyx" __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(2, 535, __pyx_L4_error) @@ -27947,7 +30365,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_8 = NULL; #line 539 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_7))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { #line 539 "root_numpy/src/tree.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); @@ -27986,31 +30404,85 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER } else { #line 539 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 539, __pyx_L4_error) + #if CYTHON_FAST_PYCALL #line 539 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + if (PyFunction_Check(__pyx_t_7)) { #line 539 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_fn}; #line 539 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fn); + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 539, __pyx_L4_error) #line 539 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fn); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 539 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_fn); + __Pyx_GOTREF(__pyx_t_4); #line 539 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 539, __pyx_L4_error) + } else #line 539 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + #endif #line 539 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + #if CYTHON_FAST_PYCCALL + +#line 539 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { + +#line 539 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_fn}; + +#line 539 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 539, __pyx_L4_error) + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 539 "root_numpy/src/tree.pyx" + } else + +#line 539 "root_numpy/src/tree.pyx" + #endif + +#line 539 "root_numpy/src/tree.pyx" + { + +#line 539 "root_numpy/src/tree.pyx" + __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 539, __pyx_L4_error) + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fn); + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fn); + +#line 539 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_fn); + +#line 539 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 539, __pyx_L4_error) + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 539 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 539 "root_numpy/src/tree.pyx" + } #line 539 "root_numpy/src/tree.pyx" } @@ -28129,7 +30601,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_12 = 0; #line 543 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 543 "root_numpy/src/tree.pyx" __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_8); @@ -28159,46 +30631,106 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER } #line 543 "root_numpy/src/tree.pyx" - __pyx_t_13 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 543, __pyx_L4_error) + #if CYTHON_FAST_PYCALL #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_13); + if (PyFunction_Check(__pyx_t_8)) { #line 543 "root_numpy/src/tree.pyx" - if (__pyx_t_11) { + PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_10, __pyx_v_fn}; #line 543 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_11); __pyx_t_11 = NULL; + __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 543, __pyx_L4_error) #line 543 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 543 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_7); #line 543 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_12, __pyx_t_10); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 543 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fn); + } else #line 543 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fn); + #endif #line 543 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_12, __pyx_v_fn); + #if CYTHON_FAST_PYCCALL #line 543 "root_numpy/src/tree.pyx" - __pyx_t_10 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_13, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 543, __pyx_L4_error) + PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_10, __pyx_v_fn}; #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 543, __pyx_L4_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 543 "root_numpy/src/tree.pyx" + } else + +#line 543 "root_numpy/src/tree.pyx" + #endif + +#line 543 "root_numpy/src/tree.pyx" + { + +#line 543 "root_numpy/src/tree.pyx" + __pyx_t_13 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 543, __pyx_L4_error) + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_13); + +#line 543 "root_numpy/src/tree.pyx" + if (__pyx_t_11) { + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_11); __pyx_t_11 = NULL; + +#line 543 "root_numpy/src/tree.pyx" + } + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); + +#line 543 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_12, __pyx_t_10); + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fn); + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fn); + +#line 543 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_12, __pyx_v_fn); + +#line 543 "root_numpy/src/tree.pyx" + __pyx_t_10 = 0; + +#line 543 "root_numpy/src/tree.pyx" + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_13, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 543, __pyx_L4_error) + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 543 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 543 "root_numpy/src/tree.pyx" + } #line 543 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -28218,7 +30750,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_12 = 0; #line 544 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { #line 544 "root_numpy/src/tree.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9); @@ -28248,46 +30780,106 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER } #line 544 "root_numpy/src/tree.pyx" - __pyx_t_13 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 543, __pyx_L4_error) + #if CYTHON_FAST_PYCALL #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_13); + if (PyFunction_Check(__pyx_t_9)) { #line 544 "root_numpy/src/tree.pyx" - if (__pyx_t_8) { + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_builtin_RuntimeWarning}; #line 544 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_8); __pyx_t_8 = NULL; + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 543, __pyx_L4_error) #line 544 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 544 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_4); #line 544 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_12, __pyx_t_7); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 544 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_builtin_RuntimeWarning); + } else #line 544 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_builtin_RuntimeWarning); + #endif #line 544 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_12, __pyx_builtin_RuntimeWarning); + #if CYTHON_FAST_PYCCALL #line 544 "root_numpy/src/tree.pyx" - __pyx_t_7 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 544 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_13, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 543, __pyx_L4_error) + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_builtin_RuntimeWarning}; #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 543, __pyx_L4_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 544 "root_numpy/src/tree.pyx" + } else + +#line 544 "root_numpy/src/tree.pyx" + #endif + +#line 544 "root_numpy/src/tree.pyx" + { + +#line 544 "root_numpy/src/tree.pyx" + __pyx_t_13 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 543, __pyx_L4_error) + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_13); + +#line 544 "root_numpy/src/tree.pyx" + if (__pyx_t_8) { + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 544 "root_numpy/src/tree.pyx" + } + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_7); + +#line 544 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_12, __pyx_t_7); + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_builtin_RuntimeWarning); + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_builtin_RuntimeWarning); + +#line 544 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_12, __pyx_builtin_RuntimeWarning); + +#line 544 "root_numpy/src/tree.pyx" + __pyx_t_7 = 0; + +#line 544 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_13, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 543, __pyx_L4_error) + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 544 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 544 "root_numpy/src/tree.pyx" + } #line 544 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -28435,7 +31027,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_12 = 0; #line 553 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 553 "root_numpy/src/tree.pyx" __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); @@ -28465,46 +31057,106 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER } #line 553 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 552, __pyx_L4_error) + #if CYTHON_FAST_PYCALL #line 553 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + if (PyFunction_Check(__pyx_t_9)) { #line 553 "root_numpy/src/tree.pyx" - if (__pyx_t_7) { + PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_13, __pyx_v_fn}; #line 553 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 552, __pyx_L4_error) #line 553 "root_numpy/src/tree.pyx" - } + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 553 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_13); + __Pyx_GOTREF(__pyx_t_4); #line 553 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_12, __pyx_t_13); + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; #line 553 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_fn); + } else #line 553 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_fn); + #endif #line 553 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_12, __pyx_v_fn); + #if CYTHON_FAST_PYCCALL #line 553 "root_numpy/src/tree.pyx" - __pyx_t_13 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 553 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 552, __pyx_L4_error) + PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_13, __pyx_v_fn}; #line 553 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 552, __pyx_L4_error) #line 553 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 553 "root_numpy/src/tree.pyx" + } else + +#line 553 "root_numpy/src/tree.pyx" + #endif + +#line 553 "root_numpy/src/tree.pyx" + { + +#line 553 "root_numpy/src/tree.pyx" + __pyx_t_8 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 552, __pyx_L4_error) + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 553 "root_numpy/src/tree.pyx" + if (__pyx_t_7) { + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; + +#line 553 "root_numpy/src/tree.pyx" + } + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_13); + +#line 553 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_12, __pyx_t_13); + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_fn); + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_fn); + +#line 553 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_12, __pyx_v_fn); + +#line 553 "root_numpy/src/tree.pyx" + __pyx_t_13 = 0; + +#line 553 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 552, __pyx_L4_error) + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 553 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 553 "root_numpy/src/tree.pyx" + } #line 553 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -28616,7 +31268,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_8 = NULL; #line 556 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { #line 556 "root_numpy/src/tree.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); @@ -28658,31 +31310,91 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER } else { #line 556 "root_numpy/src/tree.pyx" - __pyx_t_13 = PyTuple_New(1+1); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 556, __pyx_L4_error) + #if CYTHON_FAST_PYCALL #line 556 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_13); + if (PyFunction_Check(__pyx_t_4)) { #line 556 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_8); __pyx_t_8 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_9}; #line 556 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 556, __pyx_L4_error) #line 556 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_t_9); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 556 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __Pyx_GOTREF(__pyx_t_1); #line 556 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 556, __pyx_L4_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 556 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + } else #line 556 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + #endif + +#line 556 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 556 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + +#line 556 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_9}; + +#line 556 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 556, __pyx_L4_error) + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 556 "root_numpy/src/tree.pyx" + } else + +#line 556 "root_numpy/src/tree.pyx" + #endif + +#line 556 "root_numpy/src/tree.pyx" + { + +#line 556 "root_numpy/src/tree.pyx" + __pyx_t_13 = PyTuple_New(1+1); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 556, __pyx_L4_error) + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_13); + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 556 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_t_9); + +#line 556 "root_numpy/src/tree.pyx" + __pyx_t_9 = 0; + +#line 556 "root_numpy/src/tree.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 556, __pyx_L4_error) + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 556 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 556 "root_numpy/src/tree.pyx" + } #line 556 "root_numpy/src/tree.pyx" } @@ -28836,7 +31548,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_L4_error:; #line 563 "root_numpy/src/tree.pyx" - __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; + __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; #line 563 "root_numpy/src/tree.pyx" __Pyx_PyThreadState_assign @@ -28866,10 +31578,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; #line 563 "root_numpy/src/tree.pyx" - if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_23, &__pyx_t_24); + if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); + +#line 563 "root_numpy/src/tree.pyx" + if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20) < 0)) __Pyx_ErrFetch(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); #line 563 "root_numpy/src/tree.pyx" - if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21) < 0)) __Pyx_ErrFetch(&__pyx_t_19, &__pyx_t_20, &__pyx_t_21); + __Pyx_XGOTREF(__pyx_t_18); #line 563 "root_numpy/src/tree.pyx" __Pyx_XGOTREF(__pyx_t_19); @@ -28887,10 +31602,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_XGOTREF(__pyx_t_23); #line 563 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_24); - -#line 563 "root_numpy/src/tree.pyx" - __pyx_t_16 = __pyx_lineno; __pyx_t_17 = __pyx_clineno; __pyx_t_18 = __pyx_filename; + __pyx_t_12 = __pyx_lineno; __pyx_t_16 = __pyx_clineno; __pyx_t_17 = __pyx_filename; #line 563 "root_numpy/src/tree.pyx" { @@ -28907,6 +31619,9 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER #line 563 "root_numpy/src/tree.pyx" if (PY_MAJOR_VERSION >= 3) { +#line 563 "root_numpy/src/tree.pyx" + __Pyx_XGIVEREF(__pyx_t_21); + #line 563 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_22); @@ -28914,13 +31629,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_XGIVEREF(__pyx_t_23); #line 563 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_24); + __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); #line 563 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_23, __pyx_t_24); + } #line 563 "root_numpy/src/tree.pyx" - } + __Pyx_XGIVEREF(__pyx_t_18); #line 563 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_19); @@ -28929,16 +31644,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_XGIVEREF(__pyx_t_20); #line 563 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_21); - -#line 563 "root_numpy/src/tree.pyx" - __Pyx_ErrRestore(__pyx_t_19, __pyx_t_20, __pyx_t_21); + __Pyx_ErrRestore(__pyx_t_18, __pyx_t_19, __pyx_t_20); #line 563 "root_numpy/src/tree.pyx" - __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0; + __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; #line 563 "root_numpy/src/tree.pyx" - __pyx_lineno = __pyx_t_16; __pyx_clineno = __pyx_t_17; __pyx_filename = __pyx_t_18; + __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_16; __pyx_filename = __pyx_t_17; #line 563 "root_numpy/src/tree.pyx" goto __pyx_L1_error; @@ -29388,7 +32100,7 @@ __PYX_ERR(2, 567, __pyx_L3_error) __pyx_v_step = values[6]; #line 567 "root_numpy/src/tree.pyx" - __pyx_v_include_weight = __Pyx_PyObject_IsTrue(values[7]); if (unlikely((__pyx_v_include_weight == (bool)-1) && PyErr_Occurred())) __PYX_ERR(2, 569, __pyx_L3_error) + __pyx_v_include_weight = __Pyx_PyObject_IsTrue(values[7]); if (unlikely((__pyx_v_include_weight == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(2, 569, __pyx_L3_error) #line 567 "root_numpy/src/tree.pyx" __pyx_v_weight_name = __pyx_convert_string_from_py_std__in_string(values[8]); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 569, __pyx_L3_error) @@ -30010,7 +32722,7 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str PyObject* sequence = __pyx_t_5; #line 604 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 604 "root_numpy/src/tree.pyx" Py_ssize_t size = Py_SIZE(sequence); @@ -30040,7 +32752,7 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str } #line 604 "root_numpy/src/tree.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 604 "root_numpy/src/tree.pyx" if (likely(PyTuple_CheckExact(sequence))) { @@ -30303,7 +33015,7 @@ goto __pyx_L17_unpacking_failed; __pyx_t_13 = NULL; #line 611 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 611 "root_numpy/src/tree.pyx" __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_10); @@ -30342,31 +33054,85 @@ goto __pyx_L17_unpacking_failed; } else { #line 611 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 611, __pyx_L7_error) + #if CYTHON_FAST_PYCALL #line 611 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + if (PyFunction_Check(__pyx_t_10)) { #line 611 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); __pyx_t_13 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_13, __pyx_v_dtype}; #line 611 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_dtype); + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 611, __pyx_L7_error) #line 611 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_dtype); + __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; #line 611 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_v_dtype); + __Pyx_GOTREF(__pyx_t_9); #line 611 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 611, __pyx_L7_error) + } else #line 611 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + #endif + +#line 611 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 611 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 611 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_13, __pyx_v_dtype}; + +#line 611 "root_numpy/src/tree.pyx" + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 611, __pyx_L7_error) + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 611 "root_numpy/src/tree.pyx" + } else + +#line 611 "root_numpy/src/tree.pyx" + #endif #line 611 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + { + +#line 611 "root_numpy/src/tree.pyx" + __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 611, __pyx_L7_error) + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_14); + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); __pyx_t_13 = NULL; + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_dtype); + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_dtype); + +#line 611 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_v_dtype); + +#line 611 "root_numpy/src/tree.pyx" + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 611, __pyx_L7_error) + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + +#line 611 "root_numpy/src/tree.pyx" + } #line 611 "root_numpy/src/tree.pyx" } @@ -30378,7 +33144,7 @@ goto __pyx_L17_unpacking_failed; __pyx_t_10 = NULL; #line 611 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { #line 611 "root_numpy/src/tree.pyx" __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6); @@ -30420,31 +33186,91 @@ goto __pyx_L17_unpacking_failed; } else { #line 611 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 610, __pyx_L7_error) + #if CYTHON_FAST_PYCALL #line 611 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + if (PyFunction_Check(__pyx_t_6)) { #line 611 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_10); __pyx_t_10 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; #line 611 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 610, __pyx_L7_error) #line 611 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_9); + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 611 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __Pyx_GOTREF(__pyx_t_5); #line 611 "root_numpy/src/tree.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 610, __pyx_L7_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 611 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_5); + } else + +#line 611 "root_numpy/src/tree.pyx" + #endif + +#line 611 "root_numpy/src/tree.pyx" + #if CYTHON_FAST_PYCCALL + +#line 611 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { + +#line 611 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; + +#line 611 "root_numpy/src/tree.pyx" + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 610, __pyx_L7_error) + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 611 "root_numpy/src/tree.pyx" + } else + +#line 611 "root_numpy/src/tree.pyx" + #endif + +#line 611 "root_numpy/src/tree.pyx" + { + +#line 611 "root_numpy/src/tree.pyx" + __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 610, __pyx_L7_error) #line 611 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_GOTREF(__pyx_t_14); + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_10); __pyx_t_10 = NULL; + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 611 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_9); + +#line 611 "root_numpy/src/tree.pyx" + __pyx_t_9 = 0; + +#line 611 "root_numpy/src/tree.pyx" + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 610, __pyx_L7_error) + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 611 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + +#line 611 "root_numpy/src/tree.pyx" + } #line 611 "root_numpy/src/tree.pyx" } @@ -31804,7 +34630,7 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ __pyx_t_6 = NULL; #line 651 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { #line 651 "root_numpy/src/tree.pyx" __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); @@ -31843,31 +34669,85 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ } else { #line 651 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 651, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 651 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyFunction_Check(__pyx_t_5)) { #line 651 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_filename}; #line 651 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_filename); + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 651, __pyx_L1_error) #line 651 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_filename); + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; #line 651 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_filename); + __Pyx_GOTREF(__pyx_t_4); #line 651 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 651, __pyx_L1_error) + } else #line 651 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + #endif #line 651 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + #if CYTHON_FAST_PYCCALL + +#line 651 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { + +#line 651 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_filename}; + +#line 651 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 651, __pyx_L1_error) + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 651 "root_numpy/src/tree.pyx" + } else + +#line 651 "root_numpy/src/tree.pyx" + #endif + +#line 651 "root_numpy/src/tree.pyx" + { + +#line 651 "root_numpy/src/tree.pyx" + __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 651, __pyx_L1_error) + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_filename); + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_filename); + +#line 651 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_filename); + +#line 651 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 651, __pyx_L1_error) + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 651 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 651 "root_numpy/src/tree.pyx" + } #line 651 "root_numpy/src/tree.pyx" } @@ -31951,7 +34831,7 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ __pyx_t_7 = NULL; #line 653 "root_numpy/src/tree.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { #line 653 "root_numpy/src/tree.pyx" __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); @@ -31990,31 +34870,85 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ } else { #line 653 "root_numpy/src/tree.pyx" - __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 653, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 653 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + if (PyFunction_Check(__pyx_t_5)) { #line 653 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_filename}; #line 653 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_filename); + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 653, __pyx_L1_error) #line 653 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_filename); + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 653 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_filename); + __Pyx_GOTREF(__pyx_t_4); #line 653 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 653, __pyx_L1_error) + } else #line 653 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + #endif #line 653 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + #if CYTHON_FAST_PYCCALL + +#line 653 "root_numpy/src/tree.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { + +#line 653 "root_numpy/src/tree.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_filename}; + +#line 653 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 653, __pyx_L1_error) + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 653 "root_numpy/src/tree.pyx" + } else + +#line 653 "root_numpy/src/tree.pyx" + #endif + +#line 653 "root_numpy/src/tree.pyx" + { + +#line 653 "root_numpy/src/tree.pyx" + __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 653, __pyx_L1_error) + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL; + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_INCREF(__pyx_v_filename); + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_GIVEREF(__pyx_v_filename); + +#line 653 "root_numpy/src/tree.pyx" + PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_filename); + +#line 653 "root_numpy/src/tree.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 653, __pyx_L1_error) + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 653 "root_numpy/src/tree.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 653 "root_numpy/src/tree.pyx" + } #line 653 "root_numpy/src/tree.pyx" } @@ -40077,7 +43011,7 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe __pyx_t_5 = NULL; #line 14 "root_numpy/src/matrix.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { #line 14 "root_numpy/src/matrix.pyx" __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); @@ -40116,31 +43050,85 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe } else { #line 14 "root_numpy/src/matrix.pyx" - __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 14, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 14 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_t_3); + if (PyFunction_Check(__pyx_t_4)) { #line 14 "root_numpy/src/matrix.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_5, ((PyObject *)__pyx_v_arr)}; #line 14 "root_numpy/src/matrix.pyx" - __Pyx_INCREF(((PyObject *)__pyx_v_arr)); + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 14, __pyx_L1_error) #line 14 "root_numpy/src/matrix.pyx" - __Pyx_GIVEREF(((PyObject *)__pyx_v_arr)); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 14 "root_numpy/src/matrix.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0+1, ((PyObject *)__pyx_v_arr)); + __Pyx_GOTREF(__pyx_t_6); #line 14 "root_numpy/src/matrix.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 14, __pyx_L1_error) + } else #line 14 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_t_6); + #endif #line 14 "root_numpy/src/matrix.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + #if CYTHON_FAST_PYCCALL + +#line 14 "root_numpy/src/matrix.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + +#line 14 "root_numpy/src/matrix.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_5, ((PyObject *)__pyx_v_arr)}; + +#line 14 "root_numpy/src/matrix.pyx" + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 14, __pyx_L1_error) + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 14 "root_numpy/src/matrix.pyx" + } else + +#line 14 "root_numpy/src/matrix.pyx" + #endif + +#line 14 "root_numpy/src/matrix.pyx" + { + +#line 14 "root_numpy/src/matrix.pyx" + __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 14, __pyx_L1_error) + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_INCREF(((PyObject *)__pyx_v_arr)); + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_GIVEREF(((PyObject *)__pyx_v_arr)); + +#line 14 "root_numpy/src/matrix.pyx" + PyTuple_SET_ITEM(__pyx_t_3, 0+1, ((PyObject *)__pyx_v_arr)); + +#line 14 "root_numpy/src/matrix.pyx" + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 14, __pyx_L1_error) + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 14 "root_numpy/src/matrix.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 14 "root_numpy/src/matrix.pyx" + } #line 14 "root_numpy/src/matrix.pyx" } @@ -40615,7 +43603,7 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe __pyx_t_5 = NULL; #line 27 "root_numpy/src/matrix.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { #line 27 "root_numpy/src/matrix.pyx" __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); @@ -40654,31 +43642,85 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe } else { #line 27 "root_numpy/src/matrix.pyx" - __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 27, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 27 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_t_3); + if (PyFunction_Check(__pyx_t_4)) { #line 27 "root_numpy/src/matrix.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_5, ((PyObject *)__pyx_v_arr)}; #line 27 "root_numpy/src/matrix.pyx" - __Pyx_INCREF(((PyObject *)__pyx_v_arr)); + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 27, __pyx_L1_error) #line 27 "root_numpy/src/matrix.pyx" - __Pyx_GIVEREF(((PyObject *)__pyx_v_arr)); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 27 "root_numpy/src/matrix.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0+1, ((PyObject *)__pyx_v_arr)); + __Pyx_GOTREF(__pyx_t_6); #line 27 "root_numpy/src/matrix.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 27, __pyx_L1_error) + } else #line 27 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_t_6); + #endif #line 27 "root_numpy/src/matrix.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + #if CYTHON_FAST_PYCCALL + +#line 27 "root_numpy/src/matrix.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + +#line 27 "root_numpy/src/matrix.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_5, ((PyObject *)__pyx_v_arr)}; + +#line 27 "root_numpy/src/matrix.pyx" + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 27, __pyx_L1_error) + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 27 "root_numpy/src/matrix.pyx" + } else + +#line 27 "root_numpy/src/matrix.pyx" + #endif + +#line 27 "root_numpy/src/matrix.pyx" + { + +#line 27 "root_numpy/src/matrix.pyx" + __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 27, __pyx_L1_error) + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_INCREF(((PyObject *)__pyx_v_arr)); + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_GIVEREF(((PyObject *)__pyx_v_arr)); + +#line 27 "root_numpy/src/matrix.pyx" + PyTuple_SET_ITEM(__pyx_t_3, 0+1, ((PyObject *)__pyx_v_arr)); + +#line 27 "root_numpy/src/matrix.pyx" + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 27, __pyx_L1_error) + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 27 "root_numpy/src/matrix.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 27 "root_numpy/src/matrix.pyx" + } #line 27 "root_numpy/src/matrix.pyx" } @@ -40916,7 +43958,7 @@ __PYX_ERR(5, 6, __pyx_L3_error) __pyx_v_f1 = values[0]; #line 6 "root_numpy/src/sample.pyx" - __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(5, 6, __pyx_L3_error) + __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(5, 6, __pyx_L3_error) #line 6 "root_numpy/src/sample.pyx" } @@ -41443,7 +44485,7 @@ __PYX_ERR(5, 17, __pyx_L3_error) __pyx_v_h1 = values[0]; #line 17 "root_numpy/src/sample.pyx" - __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(5, 17, __pyx_L3_error) + __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(5, 17, __pyx_L3_error) #line 17 "root_numpy/src/sample.pyx" } @@ -41970,7 +45012,7 @@ __PYX_ERR(5, 28, __pyx_L3_error) __pyx_v_f2 = values[0]; #line 28 "root_numpy/src/sample.pyx" - __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(5, 28, __pyx_L3_error) + __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(5, 28, __pyx_L3_error) #line 28 "root_numpy/src/sample.pyx" } @@ -42589,7 +45631,7 @@ __PYX_ERR(5, 43, __pyx_L3_error) __pyx_v_h2 = values[0]; #line 43 "root_numpy/src/sample.pyx" - __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(5, 43, __pyx_L3_error) + __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(5, 43, __pyx_L3_error) #line 43 "root_numpy/src/sample.pyx" } @@ -43208,7 +46250,7 @@ __PYX_ERR(5, 58, __pyx_L3_error) __pyx_v_f3 = values[0]; #line 58 "root_numpy/src/sample.pyx" - __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(5, 58, __pyx_L3_error) + __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(5, 58, __pyx_L3_error) #line 58 "root_numpy/src/sample.pyx" } @@ -43864,7 +46906,7 @@ __PYX_ERR(5, 75, __pyx_L3_error) __pyx_v_h3 = values[0]; #line 75 "root_numpy/src/sample.pyx" - __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == (npy_intp)-1) && PyErr_Occurred())) __PYX_ERR(5, 75, __pyx_L3_error) + __pyx_v_n_samples = __Pyx_PyInt_As_Py_intptr_t(values[1]); if (unlikely((__pyx_v_n_samples == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(5, 75, __pyx_L3_error) #line 75 "root_numpy/src/sample.pyx" } @@ -44591,7 +47633,7 @@ goto __pyx_L5_argtuple_error; if (values[3]) { #line 5 "root_numpy/src/hist.pyx" - __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == (bool)-1) && PyErr_Occurred())) __PYX_ERR(6, 6, __pyx_L3_error) + __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(6, 6, __pyx_L3_error) #line 5 "root_numpy/src/hist.pyx" } else { @@ -45693,7 +48735,7 @@ goto __pyx_L5_argtuple_error; if (values[3]) { #line 33 "root_numpy/src/hist.pyx" - __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == (bool)-1) && PyErr_Occurred())) __PYX_ERR(6, 34, __pyx_L3_error) + __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(6, 34, __pyx_L3_error) #line 33 "root_numpy/src/hist.pyx" } else { @@ -46831,7 +49873,7 @@ goto __pyx_L5_argtuple_error; if (values[3]) { #line 61 "root_numpy/src/hist.pyx" - __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == (bool)-1) && PyErr_Occurred())) __PYX_ERR(6, 62, __pyx_L3_error) + __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(6, 62, __pyx_L3_error) #line 61 "root_numpy/src/hist.pyx" } else { @@ -47993,7 +51035,7 @@ goto __pyx_L5_argtuple_error; if (values[3]) { #line 89 "root_numpy/src/hist.pyx" - __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == (bool)-1) && PyErr_Occurred())) __PYX_ERR(6, 90, __pyx_L3_error) + __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(6, 90, __pyx_L3_error) #line 89 "root_numpy/src/hist.pyx" } else { @@ -49131,7 +52173,7 @@ goto __pyx_L5_argtuple_error; if (values[3]) { #line 117 "root_numpy/src/hist.pyx" - __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == (bool)-1) && PyErr_Occurred())) __PYX_ERR(6, 118, __pyx_L3_error) + __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(6, 118, __pyx_L3_error) #line 117 "root_numpy/src/hist.pyx" } else { @@ -50293,7 +53335,7 @@ goto __pyx_L5_argtuple_error; if (values[3]) { #line 145 "root_numpy/src/hist.pyx" - __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == (bool)-1) && PyErr_Occurred())) __PYX_ERR(6, 146, __pyx_L3_error) + __pyx_v_return_indices = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_return_indices == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(6, 146, __pyx_L3_error) #line 145 "root_numpy/src/hist.pyx" } else { @@ -51653,7 +54695,7 @@ static PyObject *__pyx_pf_13_librootnumpy_96thn2array(CYTHON_UNUSED PyObject *__ __pyx_t_4 = NULL; #line 177 "root_numpy/src/hist.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { #line 177 "root_numpy/src/hist.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); @@ -51692,31 +54734,85 @@ static PyObject *__pyx_pf_13_librootnumpy_96thn2array(CYTHON_UNUSED PyObject *__ } else { #line 177 "root_numpy/src/hist.pyx" - __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 177, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 177 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_3); + if (PyFunction_Check(__pyx_t_2)) { #line 177 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_array)}; #line 177 "root_numpy/src/hist.pyx" - __Pyx_INCREF(((PyObject *)__pyx_v_array)); + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 177, __pyx_L1_error) #line 177 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(((PyObject *)__pyx_v_array)); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 177 "root_numpy/src/hist.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0+1, ((PyObject *)__pyx_v_array)); + __Pyx_GOTREF(__pyx_t_5); #line 177 "root_numpy/src/hist.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 177, __pyx_L1_error) + } else #line 177 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_5); + #endif #line 177 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + #if CYTHON_FAST_PYCCALL + +#line 177 "root_numpy/src/hist.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + +#line 177 "root_numpy/src/hist.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_array)}; + +#line 177 "root_numpy/src/hist.pyx" + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 177, __pyx_L1_error) + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 177 "root_numpy/src/hist.pyx" + } else + +#line 177 "root_numpy/src/hist.pyx" + #endif + +#line 177 "root_numpy/src/hist.pyx" + { + +#line 177 "root_numpy/src/hist.pyx" + __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 177, __pyx_L1_error) + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_INCREF(((PyObject *)__pyx_v_array)); + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_GIVEREF(((PyObject *)__pyx_v_array)); + +#line 177 "root_numpy/src/hist.pyx" + PyTuple_SET_ITEM(__pyx_t_3, 0+1, ((PyObject *)__pyx_v_array)); + +#line 177 "root_numpy/src/hist.pyx" + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 177, __pyx_L1_error) + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 177 "root_numpy/src/hist.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 177 "root_numpy/src/hist.pyx" + } #line 177 "root_numpy/src/hist.pyx" } @@ -52119,7 +55215,7 @@ static PyObject *__pyx_pf_13_librootnumpy_98thnsparse2array(CYTHON_UNUSED PyObje PY_LONG_LONG __pyx_t_8; #line 185 "root_numpy/src/hist.pyx" - Py_ssize_t __pyx_t_9; + int __pyx_t_9; #line 185 "root_numpy/src/hist.pyx" PyObject *__pyx_t_10 = NULL; @@ -52395,7 +55491,7 @@ __pyx_t_3 = NULL; __pyx_t_9 = 0; #line 195 "root_numpy/src/hist.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { #line 195 "root_numpy/src/hist.pyx" __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); @@ -52425,46 +55521,112 @@ __pyx_t_3 = NULL; } #line 195 "root_numpy/src/hist.pyx" - __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 195, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 195 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_4)) { #line 195 "root_numpy/src/hist.pyx" - if (__pyx_t_3) { + PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_2}; #line 195 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = NULL; + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) #line 195 "root_numpy/src/hist.pyx" - } + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; #line 195 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 195 "root_numpy/src/hist.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 195 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 195 "root_numpy/src/hist.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_2); + } else #line 195 "root_numpy/src/hist.pyx" - __pyx_t_5 = 0; + #endif #line 195 "root_numpy/src/hist.pyx" - __pyx_t_2 = 0; + #if CYTHON_FAST_PYCCALL #line 195 "root_numpy/src/hist.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { #line 195 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_6); + PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_2}; #line 195 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 195 "root_numpy/src/hist.pyx" + } else + +#line 195 "root_numpy/src/hist.pyx" + #endif + +#line 195 "root_numpy/src/hist.pyx" + { + +#line 195 "root_numpy/src/hist.pyx" + __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 195, __pyx_L1_error) + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 195 "root_numpy/src/hist.pyx" + if (__pyx_t_3) { + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = NULL; + +#line 195 "root_numpy/src/hist.pyx" + } + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 195 "root_numpy/src/hist.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_5); + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 195 "root_numpy/src/hist.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_2); + +#line 195 "root_numpy/src/hist.pyx" + __pyx_t_5 = 0; + +#line 195 "root_numpy/src/hist.pyx" + __pyx_t_2 = 0; + +#line 195 "root_numpy/src/hist.pyx" + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 195 "root_numpy/src/hist.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 195 "root_numpy/src/hist.pyx" + } #line 195 "root_numpy/src/hist.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -60920,7 +64082,7 @@ static PyObject *__pyx_f_13_librootnumpy__blockwise_inner_join(PyObject *__pyx_v PyObject *__pyx_t_13 = NULL; #line 11 "root_numpy/src/innerjoin.pyx" - PyArrayObject *__pyx_t_14 = NULL; + int __pyx_t_14; #line 11 "root_numpy/src/innerjoin.pyx" PyArrayObject *__pyx_t_15 = NULL; @@ -60929,7 +64091,10 @@ static PyObject *__pyx_f_13_librootnumpy__blockwise_inner_join(PyObject *__pyx_v PyArrayObject *__pyx_t_16 = NULL; #line 11 "root_numpy/src/innerjoin.pyx" - int __pyx_t_17; + PyArrayObject *__pyx_t_17 = NULL; + +#line 11 "root_numpy/src/innerjoin.pyx" + int __pyx_t_18; #line 11 "root_numpy/src/innerjoin.pyx" __Pyx_RefNannySetupContext("_blockwise_inner_join", 0); @@ -61288,7 +64453,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_1)) break; #line 32 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 32 "root_numpy/src/innerjoin.pyx" __pyx_t_8 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 32, __pyx_L1_error) @@ -61312,7 +64477,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #line 32 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 32 "root_numpy/src/innerjoin.pyx" __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 32, __pyx_L1_error) @@ -61482,7 +64647,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_8)) break; #line 34 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 34 "root_numpy/src/innerjoin.pyx" __pyx_t_10 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_6); __Pyx_INCREF(__pyx_t_10); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 34, __pyx_L1_error) @@ -61533,7 +64698,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( __pyx_t_12 = NULL; #line 34 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_11))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { #line 34 "root_numpy/src/innerjoin.pyx" __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11); @@ -61572,31 +64737,85 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( } else { #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_13 = PyTuple_New(1+1); if (unlikely(!__pyx_t_13)) __PYX_ERR(9, 34, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_13); + if (PyFunction_Check(__pyx_t_11)) { #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_12); __pyx_t_12 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_v_x}; #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 34, __pyx_L1_error) #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; #line 34 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_v_x); + __Pyx_GOTREF(__pyx_t_10); #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_13, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 34, __pyx_L1_error) + } else #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_10); + #endif + +#line 34 "root_numpy/src/innerjoin.pyx" + #if CYTHON_FAST_PYCCALL + +#line 34 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) { + +#line 34 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_v_x}; + +#line 34 "root_numpy/src/innerjoin.pyx" + __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 34, __pyx_L1_error) + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 34 "root_numpy/src/innerjoin.pyx" + } else + +#line 34 "root_numpy/src/innerjoin.pyx" + #endif + +#line 34 "root_numpy/src/innerjoin.pyx" + { + +#line 34 "root_numpy/src/innerjoin.pyx" + __pyx_t_13 = PyTuple_New(1+1); if (unlikely(!__pyx_t_13)) __PYX_ERR(9, 34, __pyx_L1_error) + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_13); + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_12); __pyx_t_12 = NULL; + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_v_x); + +#line 34 "root_numpy/src/innerjoin.pyx" + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_13, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 34, __pyx_L1_error) + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + } #line 34 "root_numpy/src/innerjoin.pyx" } @@ -61635,10 +64854,10 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( __pyx_t_8 = NULL; #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 0; + __pyx_t_14 = 0; #line 34 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { #line 34 "root_numpy/src/innerjoin.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9); @@ -61659,7 +64878,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( __Pyx_DECREF_SET(__pyx_t_9, function); #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 1; + __pyx_t_14 = 1; #line 34 "root_numpy/src/innerjoin.pyx" } @@ -61668,46 +64887,112 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( } #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_11 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(9, 34, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_11); + if (PyFunction_Check(__pyx_t_9)) { #line 34 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_8) { + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_1, __pyx_t_10}; #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_8); __pyx_t_8 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 34, __pyx_L1_error) #line 34 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_2); #line 34 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_6, __pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 34 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_6, __pyx_t_10); + } else #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + #endif #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = 0; + #if CYTHON_FAST_PYCCALL #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 34, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_1, __pyx_t_10}; #line 34 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 34, __pyx_L1_error) + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + } else + +#line 34 "root_numpy/src/innerjoin.pyx" + #endif + +#line 34 "root_numpy/src/innerjoin.pyx" + { + +#line 34 "root_numpy/src/innerjoin.pyx" + __pyx_t_11 = PyTuple_New(2+__pyx_t_14); if (unlikely(!__pyx_t_11)) __PYX_ERR(9, 34, __pyx_L1_error) + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_11); + +#line 34 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_8) { + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 34 "root_numpy/src/innerjoin.pyx" + } + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_1); + +#line 34 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_14, __pyx_t_1); + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_10); + +#line 34 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_14, __pyx_t_10); + +#line 34 "root_numpy/src/innerjoin.pyx" + __pyx_t_1 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + __pyx_t_10 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 34, __pyx_L1_error) + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 34 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 34 "root_numpy/src/innerjoin.pyx" + } #line 34 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -61716,7 +65001,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(9, 34, __pyx_L1_error) #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_14 = ((PyArrayObject *)__pyx_t_2); + __pyx_t_15 = ((PyArrayObject *)__pyx_t_2); #line 34 "root_numpy/src/innerjoin.pyx" { @@ -61725,7 +65010,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( __Pyx_BufFmt_StackElem __pyx_stack[1]; #line 34 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_repeat_indices.rcbuffer->pybuffer, (PyObject*)__pyx_t_14, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) { + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_repeat_indices.rcbuffer->pybuffer, (PyObject*)__pyx_t_15, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) { #line 34 "root_numpy/src/innerjoin.pyx" __pyx_v_repeat_indices = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_repeat_indices.rcbuffer->pybuffer.buf = NULL; @@ -61743,7 +65028,7 @@ __pyx_pybuffernd_repeat_indices.diminfo[0].strides = __pyx_pybuffernd_repeat_ind } #line 34 "root_numpy/src/innerjoin.pyx" - __pyx_t_14 = 0; + __pyx_t_15 = 0; #line 34 "root_numpy/src/innerjoin.pyx" __pyx_v_repeat_indices = ((PyArrayObject *)__pyx_t_2); @@ -61802,7 +65087,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_9)) break; #line 36 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 36 "root_numpy/src/innerjoin.pyx" __pyx_t_11 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_6); __Pyx_INCREF(__pyx_t_11); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 36, __pyx_L1_error) @@ -61826,7 +65111,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_9)) break; #line 36 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 36 "root_numpy/src/innerjoin.pyx" __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_6); __Pyx_INCREF(__pyx_t_11); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 36, __pyx_L1_error) @@ -61954,7 +65239,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_10)) break; #line 38 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 38 "root_numpy/src/innerjoin.pyx" __pyx_t_1 = PyList_GET_ITEM(__pyx_t_10, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 38, __pyx_L1_error) @@ -62005,7 +65290,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( __pyx_t_13 = NULL; #line 38 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 38 "root_numpy/src/innerjoin.pyx" __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_8); @@ -62044,31 +65329,85 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( } else { #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(9, 38, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_12); + if (PyFunction_Check(__pyx_t_8)) { + +#line 38 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_13, __pyx_v_x}; #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_13); __pyx_t_13 = NULL; + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 38, __pyx_L1_error) #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_GOTREF(__pyx_t_1); #line 38 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_v_x); + } else #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 38, __pyx_L1_error) + #endif #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_1); + #if CYTHON_FAST_PYCCALL #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + +#line 38 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_13, __pyx_v_x}; + +#line 38 "root_numpy/src/innerjoin.pyx" + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 38, __pyx_L1_error) + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 38 "root_numpy/src/innerjoin.pyx" + } else + +#line 38 "root_numpy/src/innerjoin.pyx" + #endif + +#line 38 "root_numpy/src/innerjoin.pyx" + { + +#line 38 "root_numpy/src/innerjoin.pyx" + __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(9, 38, __pyx_L1_error) + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_12); + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_13); __pyx_t_13 = NULL; + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); + +#line 38 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_v_x); + +#line 38 "root_numpy/src/innerjoin.pyx" + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 38, __pyx_L1_error) + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_1); + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + } #line 38 "root_numpy/src/innerjoin.pyx" } @@ -62107,10 +65446,10 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( __pyx_t_10 = NULL; #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 0; + __pyx_t_14 = 0; #line 38 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_11))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) { #line 38 "root_numpy/src/innerjoin.pyx" __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11); @@ -62131,7 +65470,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( __Pyx_DECREF_SET(__pyx_t_11, function); #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 1; + __pyx_t_14 = 1; #line 38 "root_numpy/src/innerjoin.pyx" } @@ -62140,46 +65479,112 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( } #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_8 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 38, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_8); + if (PyFunction_Check(__pyx_t_11)) { #line 38 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_10) { + PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_t_1}; #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_10); __pyx_t_10 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 38, __pyx_L1_error) #line 38 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_2); #line 38 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_6, __pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 38 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_6, __pyx_t_1); + } else #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = 0; + #endif #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + #if CYTHON_FAST_PYCCALL #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 38, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) { #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_t_1}; #line 38 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 38, __pyx_L1_error) + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + } else + +#line 38 "root_numpy/src/innerjoin.pyx" + #endif + +#line 38 "root_numpy/src/innerjoin.pyx" + { + +#line 38 "root_numpy/src/innerjoin.pyx" + __pyx_t_8 = PyTuple_New(2+__pyx_t_14); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 38, __pyx_L1_error) + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 38 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_10) { + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_10); __pyx_t_10 = NULL; + +#line 38 "root_numpy/src/innerjoin.pyx" + } + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 38 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_14, __pyx_t_9); + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_1); + +#line 38 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_14, __pyx_t_1); + +#line 38 "root_numpy/src/innerjoin.pyx" + __pyx_t_9 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + __pyx_t_1 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 38, __pyx_L1_error) + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 38 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 38 "root_numpy/src/innerjoin.pyx" + } #line 38 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -62188,7 +65593,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(9, 38, __pyx_L1_error) #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_15 = ((PyArrayObject *)__pyx_t_2); + __pyx_t_16 = ((PyArrayObject *)__pyx_t_2); #line 38 "root_numpy/src/innerjoin.pyx" { @@ -62197,7 +65602,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( __Pyx_BufFmt_StackElem __pyx_stack[1]; #line 38 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_stretch_indices.rcbuffer->pybuffer, (PyObject*)__pyx_t_15, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) { + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_stretch_indices.rcbuffer->pybuffer, (PyObject*)__pyx_t_16, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) { #line 38 "root_numpy/src/innerjoin.pyx" __pyx_v_stretch_indices = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_stretch_indices.rcbuffer->pybuffer.buf = NULL; @@ -62215,7 +65620,7 @@ __pyx_pybuffernd_stretch_indices.diminfo[0].strides = __pyx_pybuffernd_stretch_i } #line 38 "root_numpy/src/innerjoin.pyx" - __pyx_t_15 = 0; + __pyx_t_16 = 0; #line 38 "root_numpy/src/innerjoin.pyx" __pyx_v_stretch_indices = ((PyArrayObject *)__pyx_t_2); @@ -62289,7 +65694,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_1)) break; #line 41 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 41 "root_numpy/src/innerjoin.pyx" __pyx_t_9 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_9); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 41, __pyx_L1_error) @@ -62313,7 +65718,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #line 41 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 41 "root_numpy/src/innerjoin.pyx" __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_9); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 41, __pyx_L1_error) @@ -62403,7 +65808,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR __pyx_t_12 = NULL; #line 41 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 41 "root_numpy/src/innerjoin.pyx" __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_10); @@ -62442,31 +65847,85 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR } else { #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_13 = PyTuple_New(1+1); if (unlikely(!__pyx_t_13)) __PYX_ERR(9, 41, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_13); + if (PyFunction_Check(__pyx_t_10)) { #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_12); __pyx_t_12 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_v_x}; #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 41, __pyx_L1_error) #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; #line 41 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_v_x); + __Pyx_GOTREF(__pyx_t_9); #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_13, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 41, __pyx_L1_error) + } else #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_9); + #endif + +#line 41 "root_numpy/src/innerjoin.pyx" + #if CYTHON_FAST_PYCCALL + +#line 41 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + +#line 41 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_12, __pyx_v_x}; #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 41 "root_numpy/src/innerjoin.pyx" + } else + +#line 41 "root_numpy/src/innerjoin.pyx" + #endif + +#line 41 "root_numpy/src/innerjoin.pyx" + { + +#line 41 "root_numpy/src/innerjoin.pyx" + __pyx_t_13 = PyTuple_New(1+1); if (unlikely(!__pyx_t_13)) __PYX_ERR(9, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_13); + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_12); __pyx_t_12 = NULL; + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); + +#line 41 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_v_x); + +#line 41 "root_numpy/src/innerjoin.pyx" + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_13, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_9); + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + } #line 41 "root_numpy/src/innerjoin.pyx" } @@ -62505,10 +65964,10 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR __pyx_t_1 = NULL; #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 0; + __pyx_t_14 = 0; #line 41 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { #line 41 "root_numpy/src/innerjoin.pyx" __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8); @@ -62529,7 +65988,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR __Pyx_DECREF_SET(__pyx_t_8, function); #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 1; + __pyx_t_14 = 1; #line 41 "root_numpy/src/innerjoin.pyx" } @@ -62538,46 +65997,112 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR } #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 41, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_10); + if (PyFunction_Check(__pyx_t_8)) { #line 41 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_1) { + PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_11, __pyx_t_9}; #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_1); __pyx_t_1 = NULL; + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 41, __pyx_L1_error) #line 41 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_2); #line 41 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_6, __pyx_t_11); + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 41 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_6, __pyx_t_9); + } else #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_11 = 0; + #endif #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = 0; + #if CYTHON_FAST_PYCCALL #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 41, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_11, __pyx_t_9}; #line 41 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + } else + +#line 41 "root_numpy/src/innerjoin.pyx" + #endif + +#line 41 "root_numpy/src/innerjoin.pyx" + { + +#line 41 "root_numpy/src/innerjoin.pyx" + __pyx_t_10 = PyTuple_New(2+__pyx_t_14); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_10); + +#line 41 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_1) { + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_1); __pyx_t_1 = NULL; + +#line 41 "root_numpy/src/innerjoin.pyx" + } + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_11); + +#line 41 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_14, __pyx_t_11); + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_9); + +#line 41 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_14, __pyx_t_9); + +#line 41 "root_numpy/src/innerjoin.pyx" + __pyx_t_11 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + __pyx_t_9 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 41, __pyx_L1_error) + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 41 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + +#line 41 "root_numpy/src/innerjoin.pyx" + } #line 41 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -62586,7 +66111,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(9, 41, __pyx_L1_error) #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = ((PyArrayObject *)__pyx_t_2); + __pyx_t_17 = ((PyArrayObject *)__pyx_t_2); #line 41 "root_numpy/src/innerjoin.pyx" { @@ -62595,7 +66120,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR __Pyx_BufFmt_StackElem __pyx_stack[1]; #line 41 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_right_indices.rcbuffer->pybuffer, (PyObject*)__pyx_t_16, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) { + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_right_indices.rcbuffer->pybuffer, (PyObject*)__pyx_t_17, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) { #line 41 "root_numpy/src/innerjoin.pyx" __pyx_v_right_indices = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_right_indices.rcbuffer->pybuffer.buf = NULL; @@ -62613,7 +66138,7 @@ __pyx_pybuffernd_right_indices.diminfo[0].strides = __pyx_pybuffernd_right_indic } #line 41 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = 0; + __pyx_t_17 = 0; #line 41 "root_numpy/src/innerjoin.pyx" __pyx_v_right_indices = ((PyArrayObject *)__pyx_t_2); @@ -62686,7 +66211,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 45 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 45 "root_numpy/src/innerjoin.pyx" __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 45, __pyx_L1_error) @@ -62710,7 +66235,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 45 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 45 "root_numpy/src/innerjoin.pyx" __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 45, __pyx_L1_error) @@ -62837,7 +66362,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( __pyx_t_10 = 0; #line 47 "root_numpy/src/innerjoin.pyx" - __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_17 == -1)) __PYX_ERR(9, 47, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 47, __pyx_L1_error) #line 47 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -62930,7 +66455,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( __pyx_t_8 = 0; #line 49 "root_numpy/src/innerjoin.pyx" - __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_10); if (unlikely(__pyx_t_17 == -1)) __PYX_ERR(9, 49, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_10); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 49, __pyx_L1_error) #line 49 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -63008,7 +66533,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 50 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 50 "root_numpy/src/innerjoin.pyx" __pyx_t_10 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_10); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 50, __pyx_L1_error) @@ -63032,7 +66557,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 50 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 50 "root_numpy/src/innerjoin.pyx" __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_10); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(9, 50, __pyx_L1_error) @@ -63151,7 +66676,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR __pyx_t_10 = 0; #line 51 "root_numpy/src/innerjoin.pyx" - __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_17 == -1)) __PYX_ERR(9, 51, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 51, __pyx_L1_error) #line 51 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -63218,7 +66743,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR __pyx_t_8 = 0; #line 53 "root_numpy/src/innerjoin.pyx" - __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_2); if (unlikely(__pyx_t_17 == -1)) __PYX_ERR(9, 53, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_2); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 53, __pyx_L1_error) #line 53 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -64032,16 +67557,16 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ PyObject *__pyx_t_5 = NULL; #line 69 "root_numpy/src/innerjoin.pyx" - PyObject *__pyx_t_6 = NULL; + int __pyx_t_6; #line 69 "root_numpy/src/innerjoin.pyx" - long __pyx_t_7; + PyObject *__pyx_t_7 = NULL; #line 69 "root_numpy/src/innerjoin.pyx" - PyArrayObject *__pyx_t_8 = NULL; + long __pyx_t_8; #line 69 "root_numpy/src/innerjoin.pyx" - int __pyx_t_9; + PyArrayObject *__pyx_t_9 = NULL; #line 69 "root_numpy/src/innerjoin.pyx" PyObject *__pyx_t_10 = NULL; @@ -64326,10 +67851,10 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __pyx_t_5 = NULL; #line 78 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_6 = 0; #line 78 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { #line 78 "root_numpy/src/innerjoin.pyx" __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); @@ -64350,7 +67875,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __Pyx_DECREF_SET(__pyx_t_4, function); #line 78 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_6 = 1; #line 78 "root_numpy/src/innerjoin.pyx" } @@ -64359,46 +67884,106 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ } #line 78 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 78, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 78 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + if (PyFunction_Check(__pyx_t_4)) { #line 78 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_5) { + PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_n_s_O}; #line 78 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 78, __pyx_L1_error) #line 78 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 78 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 78 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_1, __pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 78 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_n_s_O); + } else #line 78 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_n_s_O); + #endif #line 78 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_1, __pyx_n_s_O); + #if CYTHON_FAST_PYCCALL #line 78 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { #line 78 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 78, __pyx_L1_error) + PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_n_s_O}; #line 78 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 78, __pyx_L1_error) #line 78 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 78 "root_numpy/src/innerjoin.pyx" + } else + +#line 78 "root_numpy/src/innerjoin.pyx" + #endif + +#line 78 "root_numpy/src/innerjoin.pyx" + { + +#line 78 "root_numpy/src/innerjoin.pyx" + __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 78, __pyx_L1_error) + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 78 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_5) { + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 78 "root_numpy/src/innerjoin.pyx" + } + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 78 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_2); + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_n_s_O); + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_n_s_O); + +#line 78 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_n_s_O); + +#line 78 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = 0; + +#line 78 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 78, __pyx_L1_error) + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 78 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 78 "root_numpy/src/innerjoin.pyx" + } #line 78 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -64443,10 +68028,10 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ */ #line 84 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __pyx_v_ndata; + __pyx_t_8 = __pyx_v_ndata; #line 84 "root_numpy/src/innerjoin.pyx" - for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_7; __pyx_v_i_data++) { + for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_8; __pyx_v_i_data++) { /* "root_numpy/src/innerjoin.pyx":85 * @@ -64506,10 +68091,10 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __Pyx_GOTREF(__pyx_t_4); #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_flatnonzero); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 87, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_flatnonzero); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 87, __pyx_L1_error) #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 87 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -64545,16 +68130,16 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __pyx_t_5 = NULL; #line 87 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7); #line 87 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_5)) { #line 87 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); #line 87 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_5); @@ -64563,7 +68148,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __Pyx_INCREF(function); #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_6, function); + __Pyx_DECREF_SET(__pyx_t_7, function); #line 87 "root_numpy/src/innerjoin.pyx" } @@ -64575,7 +68160,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ if (!__pyx_t_5) { #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 87, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 87, __pyx_L1_error) #line 87 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -64587,43 +68172,103 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ } else { #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 87, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_4); + if (PyFunction_Check(__pyx_t_7)) { #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 87, __pyx_L1_error) #line 87 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = 0; + __Pyx_GOTREF(__pyx_t_3); #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 87, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + } else #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + #endif + +#line 87 "root_numpy/src/innerjoin.pyx" + #if CYTHON_FAST_PYCCALL + +#line 87 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { + +#line 87 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_2}; + +#line 87 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 87, __pyx_L1_error) + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 87 "root_numpy/src/innerjoin.pyx" + } else + +#line 87 "root_numpy/src/innerjoin.pyx" + #endif + +#line 87 "root_numpy/src/innerjoin.pyx" + { + +#line 87 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 87, __pyx_L1_error) + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 87 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_2); + +#line 87 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = 0; + +#line 87 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 87, __pyx_L1_error) + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 87 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 87 "root_numpy/src/innerjoin.pyx" + } #line 87 "root_numpy/src/innerjoin.pyx" } #line 87 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 87 "root_numpy/src/innerjoin.pyx" if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(9, 87, __pyx_L1_error) #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_8 = ((PyArrayObject *)__pyx_t_3); + __pyx_t_9 = ((PyArrayObject *)__pyx_t_3); #line 87 "root_numpy/src/innerjoin.pyx" { @@ -64635,10 +68280,10 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_good_index.rcbuffer->pybuffer); #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_good_index.rcbuffer->pybuffer, (PyObject*)__pyx_t_8, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack); + __pyx_t_6 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_good_index.rcbuffer->pybuffer, (PyObject*)__pyx_t_9, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack); #line 87 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 < 0)) { + if (unlikely(__pyx_t_6 < 0)) { #line 87 "root_numpy/src/innerjoin.pyx" PyErr_Fetch(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12); @@ -64668,13 +68313,13 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __pyx_pybuffernd_good_index.diminfo[0].strides = __pyx_pybuffernd_good_index.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_good_index.diminfo[0].shape = __pyx_pybuffernd_good_index.rcbuffer->pybuffer.shape[0]; #line 87 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(9, 87, __pyx_L1_error) + if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(9, 87, __pyx_L1_error) #line 87 "root_numpy/src/innerjoin.pyx" } #line 87 "root_numpy/src/innerjoin.pyx" - __pyx_t_8 = 0; + __pyx_t_9 = 0; #line 87 "root_numpy/src/innerjoin.pyx" __Pyx_XDECREF_SET(__pyx_v_good_index, ((PyArrayObject *)__pyx_t_3)); @@ -64719,34 +68364,34 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ */ #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 91, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 91, __pyx_L1_error) #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 91, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 91, __pyx_L1_error) #line 91 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_4); #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyInt_From_long(__pyx_v_nresult); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 91, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_long(__pyx_v_nresult); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 91, __pyx_L1_error) #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 91 "root_numpy/src/innerjoin.pyx" __pyx_t_2 = NULL; #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_6 = 0; #line 91 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { #line 91 "root_numpy/src/innerjoin.pyx" __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); @@ -64767,7 +68412,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __Pyx_DECREF_SET(__pyx_t_4, function); #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_6 = 1; #line 91 "root_numpy/src/innerjoin.pyx" } @@ -64776,46 +68421,106 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ } #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 91, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_4)) { #line 91 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_2) { + PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_7, __pyx_v_new_dtype}; #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 91, __pyx_L1_error) #line 91 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_3); #line 91 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_1, __pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_new_dtype); + } else #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_new_dtype); + #endif #line 91 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_1, __pyx_v_new_dtype); + #if CYTHON_FAST_PYCCALL #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { #line 91 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 91, __pyx_L1_error) + PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_7, __pyx_v_new_dtype}; #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 91, __pyx_L1_error) #line 91 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 91 "root_numpy/src/innerjoin.pyx" + } else + +#line 91 "root_numpy/src/innerjoin.pyx" + #endif + +#line 91 "root_numpy/src/innerjoin.pyx" + { + +#line 91 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 91, __pyx_L1_error) + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 91 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_2) { + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; + +#line 91 "root_numpy/src/innerjoin.pyx" + } + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_7); + +#line 91 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_t_7); + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_new_dtype); + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_new_dtype); + +#line 91 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_v_new_dtype); + +#line 91 "root_numpy/src/innerjoin.pyx" + __pyx_t_7 = 0; + +#line 91 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 91, __pyx_L1_error) + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 91 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 91 "root_numpy/src/innerjoin.pyx" + } #line 91 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -64862,7 +68567,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ if (likely(PyList_CheckExact(__pyx_v_repeat_columns)) || PyTuple_CheckExact(__pyx_v_repeat_columns)) { #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __pyx_v_repeat_columns; __Pyx_INCREF(__pyx_t_6); __pyx_t_1 = 0; + __pyx_t_7 = __pyx_v_repeat_columns; __Pyx_INCREF(__pyx_t_7); __pyx_t_1 = 0; #line 95 "root_numpy/src/innerjoin.pyx" __pyx_t_13 = NULL; @@ -64871,13 +68576,13 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ } else { __pyx_t_1 = -1; #line 95 "root_numpy/src/innerjoin.pyx" -__pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 95, __pyx_L1_error) +__pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_13 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_13)) __PYX_ERR(9, 95, __pyx_L1_error) + __pyx_t_13 = Py_TYPE(__pyx_t_7)->tp_iternext; if (unlikely(!__pyx_t_13)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" } @@ -64889,22 +68594,22 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) if (likely(!__pyx_t_13)) { #line 95 "root_numpy/src/innerjoin.pyx" - if (likely(PyList_CheckExact(__pyx_t_6))) { + if (likely(PyList_CheckExact(__pyx_t_7))) { #line 95 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_6)) break; + if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_7)) break; #line 95 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_1); __Pyx_INCREF(__pyx_t_2); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 95, __pyx_L1_error) + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_1); __Pyx_INCREF(__pyx_t_2); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" #else #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PySequence_ITEM(__pyx_t_6, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -64916,19 +68621,19 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) } else { #line 95 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_6)) break; + if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_7)) break; #line 95 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_1); __Pyx_INCREF(__pyx_t_2); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 95, __pyx_L1_error) + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_1); __Pyx_INCREF(__pyx_t_2); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" #else #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PySequence_ITEM(__pyx_t_6, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -64943,7 +68648,7 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) { #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __pyx_t_13(__pyx_t_6); + __pyx_t_2 = __pyx_t_13(__pyx_t_7); #line 95 "root_numpy/src/innerjoin.pyx" if (unlikely(!__pyx_t_2)) { @@ -65009,7 +68714,7 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) __pyx_t_15 = NULL; #line 95 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_14))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) { #line 95 "root_numpy/src/innerjoin.pyx" __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_14); @@ -65048,31 +68753,85 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) } else { #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 95, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_16); + if (PyFunction_Check(__pyx_t_14)) { #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; #line 95 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + __Pyx_GOTREF(__pyx_t_2); #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) + } else #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + #endif + +#line 95 "root_numpy/src/innerjoin.pyx" + #if CYTHON_FAST_PYCCALL + +#line 95 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { + +#line 95 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; + +#line 95 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 95 "root_numpy/src/innerjoin.pyx" + } else + +#line 95 "root_numpy/src/innerjoin.pyx" + #endif + +#line 95 "root_numpy/src/innerjoin.pyx" + { #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 95, __pyx_L1_error) + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_16); + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); + +#line 95 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + +#line 95 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + } #line 95 "root_numpy/src/innerjoin.pyx" } @@ -65090,43 +68849,43 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) } #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 95, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_2); #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = NULL; + __pyx_t_7 = NULL; #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_6 = 0; #line 95 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); #line 95 "root_numpy/src/innerjoin.pyx" - if (likely(__pyx_t_6)) { + if (likely(__pyx_t_7)) { #line 95 "root_numpy/src/innerjoin.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_t_6); + __Pyx_INCREF(__pyx_t_7); #line 95 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(function); @@ -65135,7 +68894,7 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) __Pyx_DECREF_SET(__pyx_t_5, function); #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_6 = 1; #line 95 "root_numpy/src/innerjoin.pyx" } @@ -65144,46 +68903,112 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_6)) } #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_14 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_14)) __PYX_ERR(9, 95, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_14); + if (PyFunction_Check(__pyx_t_5)) { #line 95 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_6) { + PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_2}; #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_6); __pyx_t_6 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 95, __pyx_L1_error) #line 95 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_3); #line 95 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_1, __pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 95 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_1, __pyx_t_2); + } else #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = 0; + #endif #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = 0; + #if CYTHON_FAST_PYCCALL #line 95 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_14, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 95, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_2}; #line 95 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 95, __pyx_L1_error) + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + } else + +#line 95 "root_numpy/src/innerjoin.pyx" + #endif + +#line 95 "root_numpy/src/innerjoin.pyx" + { + +#line 95 "root_numpy/src/innerjoin.pyx" + __pyx_t_14 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_14)) __PYX_ERR(9, 95, __pyx_L1_error) + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_14); + +#line 95 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_7) { + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_7); __pyx_t_7 = NULL; + +#line 95 "root_numpy/src/innerjoin.pyx" + } + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 95 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_6, __pyx_t_4); + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 95 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_6, __pyx_t_2); + +#line 95 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_14, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 95, __pyx_L1_error) + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 95 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + +#line 95 "root_numpy/src/innerjoin.pyx" + } #line 95 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -65293,7 +69118,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 97 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 97 "root_numpy/src/innerjoin.pyx" __pyx_t_4 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 97, __pyx_L1_error) @@ -65317,7 +69142,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 97 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 97 "root_numpy/src/innerjoin.pyx" __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 97, __pyx_L1_error) @@ -65380,25 +69205,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) __pyx_t_4 = 0; #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_ret), __pyx_n_s_dtype); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 97, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_ret), __pyx_n_s_dtype); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 97, __pyx_L1_error) #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_names); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 97, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_names); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 97, __pyx_L1_error) #line 97 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_16); #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 97, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 97, __pyx_L1_error) #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 97 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; @@ -65407,16 +69232,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) __pyx_t_16 = NULL; #line 97 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_6); + __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_7); #line 97 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_16)) { #line 97 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); #line 97 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_16); @@ -65425,7 +69250,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) __Pyx_INCREF(function); #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_6, function); + __Pyx_DECREF_SET(__pyx_t_7, function); #line 97 "root_numpy/src/innerjoin.pyx" } @@ -65437,7 +69262,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) if (!__pyx_t_16) { #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 97, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 97, __pyx_L1_error) #line 97 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -65446,37 +69271,91 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) } else { #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(9, 97, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_15); + if (PyFunction_Check(__pyx_t_7)) { #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_16); __pyx_t_16 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_16, __pyx_v_x}; #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 97, __pyx_L1_error) #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; #line 97 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_v_x); + __Pyx_GOTREF(__pyx_t_4); #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_15, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 97, __pyx_L1_error) + } else #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_4); + #endif #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; + #if CYTHON_FAST_PYCCALL + +#line 97 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { + +#line 97 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_16, __pyx_v_x}; + +#line 97 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 97, __pyx_L1_error) + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 97 "root_numpy/src/innerjoin.pyx" + } else + +#line 97 "root_numpy/src/innerjoin.pyx" + #endif + +#line 97 "root_numpy/src/innerjoin.pyx" + { + +#line 97 "root_numpy/src/innerjoin.pyx" + __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(9, 97, __pyx_L1_error) + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_15); + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_16); __pyx_t_16 = NULL; + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); + +#line 97 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_v_x); + +#line 97 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_15, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 97, __pyx_L1_error) + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + } #line 97 "root_numpy/src/innerjoin.pyx" } #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 97 "root_numpy/src/innerjoin.pyx" if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_4))) __PYX_ERR(9, 97, __pyx_L1_error) @@ -65509,10 +69388,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) __pyx_t_2 = NULL; #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_6 = 0; #line 97 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_14))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_14))) { #line 97 "root_numpy/src/innerjoin.pyx" __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_14); @@ -65533,7 +69412,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) __Pyx_DECREF_SET(__pyx_t_14, function); #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_6 = 1; #line 97 "root_numpy/src/innerjoin.pyx" } @@ -65542,46 +69421,112 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) } #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 97, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + if (PyFunction_Check(__pyx_t_14)) { #line 97 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_2) { + PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_5, __pyx_t_4}; #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 97, __pyx_L1_error) #line 97 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_3); #line 97 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_1, __pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 97 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_1, __pyx_t_4); + } else #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = 0; + #endif #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = 0; + #if CYTHON_FAST_PYCCALL #line 97 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 97, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_5, __pyx_t_4}; #line 97 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 97, __pyx_L1_error) + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + } else + +#line 97 "root_numpy/src/innerjoin.pyx" + #endif + +#line 97 "root_numpy/src/innerjoin.pyx" + { + +#line 97 "root_numpy/src/innerjoin.pyx" + __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 97, __pyx_L1_error) + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 97 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_2) { + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 = NULL; + +#line 97 "root_numpy/src/innerjoin.pyx" + } + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 97 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_5); + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 97 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_4); + +#line 97 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 97, __pyx_L1_error) + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 97 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + +#line 97 "root_numpy/src/innerjoin.pyx" + } #line 97 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -65640,10 +69585,10 @@ __pyx_pybuffernd_stretch_result_indices.diminfo[0].strides = __pyx_pybuffernd_st __Pyx_GOTREF(__pyx_t_14); #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_array); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 99, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_array); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 99, __pyx_L1_error) #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 99 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -65691,7 +69636,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_4)) break; #line 99 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 99 "root_numpy/src/innerjoin.pyx" __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 99, __pyx_L1_error) @@ -65715,7 +69660,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #line 99 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 99 "root_numpy/src/innerjoin.pyx" __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 99, __pyx_L1_error) @@ -65805,7 +69750,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR __pyx_t_15 = NULL; #line 99 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 99 "root_numpy/src/innerjoin.pyx" __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_2); @@ -65844,31 +69789,85 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR } else { #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 99, __pyx_L1_error) + #if CYTHON_FAST_PYCALL + +#line 99 "root_numpy/src/innerjoin.pyx" + if (PyFunction_Check(__pyx_t_2)) { #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_16); + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 99, __pyx_L1_error) #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_GOTREF(__pyx_t_5); #line 99 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + } else #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_16, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 99, __pyx_L1_error) + #endif #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_5); + #if CYTHON_FAST_PYCCALL + +#line 99 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + +#line 99 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; + +#line 99 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 99, __pyx_L1_error) + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 99 "root_numpy/src/innerjoin.pyx" + } else + +#line 99 "root_numpy/src/innerjoin.pyx" + #endif + +#line 99 "root_numpy/src/innerjoin.pyx" + { + +#line 99 "root_numpy/src/innerjoin.pyx" + __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 99, __pyx_L1_error) + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_16); + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + +#line 99 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_16, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 99, __pyx_L1_error) + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + } #line 99 "root_numpy/src/innerjoin.pyx" } @@ -65907,19 +69906,19 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR __pyx_t_4 = NULL; #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_6 = 0; #line 99 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); #line 99 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_4)) { #line 99 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); #line 99 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_4); @@ -65928,10 +69927,10 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR __Pyx_INCREF(function); #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_6, function); + __Pyx_DECREF_SET(__pyx_t_7, function); #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_6 = 1; #line 99 "root_numpy/src/innerjoin.pyx" } @@ -65940,49 +69939,115 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR } #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 99, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + if (PyFunction_Check(__pyx_t_7)) { #line 99 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_4) { + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_14, __pyx_t_5}; #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 99, __pyx_L1_error) #line 99 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_3); #line 99 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_1, __pyx_t_14); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 99 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_1, __pyx_t_5); + } else #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_14 = 0; + #endif #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = 0; + #if CYTHON_FAST_PYCCALL #line 99 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 99, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_14, __pyx_t_5}; #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 99, __pyx_L1_error) #line 99 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + } else + +#line 99 "root_numpy/src/innerjoin.pyx" + #endif + +#line 99 "root_numpy/src/innerjoin.pyx" + { + +#line 99 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 99, __pyx_L1_error) + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 99 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_4) { + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 99 "root_numpy/src/innerjoin.pyx" + } + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_14); + +#line 99 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_6, __pyx_t_14); + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 99 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_6, __pyx_t_5); + +#line 99 "root_numpy/src/innerjoin.pyx" + __pyx_t_14 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 99, __pyx_L1_error) + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 99 "root_numpy/src/innerjoin.pyx" + } + +#line 99 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 99 "root_numpy/src/innerjoin.pyx" if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(9, 99, __pyx_L1_error) @@ -66032,25 +70097,25 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_ret), __pyx_n_s_dtype); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 101, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_ret), __pyx_n_s_dtype); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 101, __pyx_L1_error) #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 101, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 101, __pyx_L1_error) #line 101 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_2); #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 101, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 101, __pyx_L1_error) #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 101 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -66059,16 +70124,16 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __pyx_t_2 = NULL; #line 101 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6); + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7); #line 101 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_2)) { #line 101 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); #line 101 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_2); @@ -66077,7 +70142,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __Pyx_INCREF(function); #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_6, function); + __Pyx_DECREF_SET(__pyx_t_7, function); #line 101 "root_numpy/src/innerjoin.pyx" } @@ -66089,7 +70154,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ if (!__pyx_t_2) { #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_fk_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 101, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_fk_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 101, __pyx_L1_error) #line 101 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -66098,46 +70163,100 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ } else { #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 101, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_7)) { #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_fk_name}; #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_fk_name); + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 101, __pyx_L1_error) #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_fk_name); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 101 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_fk_name); + __Pyx_GOTREF(__pyx_t_3); #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 101, __pyx_L1_error) + } else #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + #endif #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + #if CYTHON_FAST_PYCCALL + +#line 101 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { + +#line 101 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_fk_name}; + +#line 101 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 101, __pyx_L1_error) + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 101 "root_numpy/src/innerjoin.pyx" + } else + +#line 101 "root_numpy/src/innerjoin.pyx" + #endif + +#line 101 "root_numpy/src/innerjoin.pyx" + { + +#line 101 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 101, __pyx_L1_error) + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_fk_name); + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_fk_name); + +#line 101 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_fk_name); + +#line 101 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 101, __pyx_L1_error) + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 101 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 101 "root_numpy/src/innerjoin.pyx" + } #line 101 "root_numpy/src/innerjoin.pyx" } #line 101 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 101, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 101, __pyx_L1_error) #line 101 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 101 "root_numpy/src/innerjoin.pyx" - __pyx_v_fk_result_index = __pyx_t_9; + __pyx_v_fk_result_index = __pyx_t_6; /* "root_numpy/src/innerjoin.pyx":102 * @@ -66300,10 +70419,10 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 118 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __pyx_v_ndata; + __pyx_t_8 = __pyx_v_ndata; #line 118 "root_numpy/src/innerjoin.pyx" - for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_7; __pyx_v_i_data++) { + for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_8; __pyx_v_i_data++) { /* "root_numpy/src/innerjoin.pyx":119 * @@ -66335,10 +70454,10 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_tmp_good_fk_index.rcbuffer->pybuffer); #line 119 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_tmp_good_fk_index.rcbuffer->pybuffer, (PyObject*)__pyx_t_20, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack); + __pyx_t_6 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_tmp_good_fk_index.rcbuffer->pybuffer, (PyObject*)__pyx_t_20, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack); #line 119 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 < 0)) { + if (unlikely(__pyx_t_6 < 0)) { #line 119 "root_numpy/src/innerjoin.pyx" PyErr_Fetch(&__pyx_t_12, &__pyx_t_11, &__pyx_t_10); @@ -66368,7 +70487,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __pyx_pybuffernd_tmp_good_fk_index.diminfo[0].strides = __pyx_pybuffernd_tmp_good_fk_index.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_tmp_good_fk_index.diminfo[0].shape = __pyx_pybuffernd_tmp_good_fk_index.rcbuffer->pybuffer.shape[0]; #line 119 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(9, 119, __pyx_L1_error) + if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(9, 119, __pyx_L1_error) #line 119 "root_numpy/src/innerjoin.pyx" } @@ -66445,7 +70564,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __pyx_t_22 = __pyx_v_i_fk; #line 123 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = -1; + __pyx_t_6 = -1; #line 123 "root_numpy/src/innerjoin.pyx" if (__pyx_t_22 < 0) { @@ -66454,16 +70573,16 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __pyx_t_22 += __pyx_pybuffernd_tmp_good_fk_index.diminfo[0].shape; #line 123 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_22 < 0)) __pyx_t_9 = 0; + if (unlikely(__pyx_t_22 < 0)) __pyx_t_6 = 0; } else #line 123 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_tmp_good_fk_index.diminfo[0].shape)) __pyx_t_9 = 0; +if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_tmp_good_fk_index.diminfo[0].shape)) __pyx_t_6 = 0; #line 123 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 != -1)) { + if (unlikely(__pyx_t_6 != -1)) { #line 123 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_9); + __Pyx_RaiseBufferIndexError(__pyx_t_6); #line 123 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 123, __pyx_L1_error) @@ -66523,7 +70642,7 @@ if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_tmp_good_fk_index.diminfo[0].shape)) __pyx_t_24 = __pyx_v_i_repeat; #line 126 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = -1; + __pyx_t_6 = -1; #line 126 "root_numpy/src/innerjoin.pyx" if (__pyx_t_24 < 0) { @@ -66532,16 +70651,16 @@ if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_tmp_good_fk_index.diminfo[0].shape)) __pyx_t_24 += __pyx_pybuffernd_repeat_result_indices.diminfo[0].shape; #line 126 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_24 < 0)) __pyx_t_9 = 0; + if (unlikely(__pyx_t_24 < 0)) __pyx_t_6 = 0; } else #line 126 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].shape)) __pyx_t_9 = 0; +if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].shape)) __pyx_t_6 = 0; #line 126 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 != -1)) { + if (unlikely(__pyx_t_6 != -1)) { #line 126 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_9); + __Pyx_RaiseBufferIndexError(__pyx_t_6); #line 126 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 126, __pyx_L1_error) @@ -66564,7 +70683,7 @@ if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].sha __pyx_t_25 = __pyx_v_i_repeat; #line 127 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = -1; + __pyx_t_6 = -1; #line 127 "root_numpy/src/innerjoin.pyx" if (__pyx_t_25 < 0) { @@ -66573,16 +70692,16 @@ if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].sha __pyx_t_25 += __pyx_pybuffernd_repeat_indices.diminfo[0].shape; #line 127 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_25 < 0)) __pyx_t_9 = 0; + if (unlikely(__pyx_t_25 < 0)) __pyx_t_6 = 0; } else #line 127 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __pyx_t_9 = 0; +if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __pyx_t_6 = 0; #line 127 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 != -1)) { + if (unlikely(__pyx_t_6 != -1)) { #line 127 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_9); + __Pyx_RaiseBufferIndexError(__pyx_t_6); #line 127 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 127, __pyx_L1_error) @@ -66608,10 +70727,10 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __Pyx_GOTREF(__pyx_t_3); #line 128 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 128, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 128, __pyx_L1_error) #line 128 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 128 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -66623,13 +70742,13 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __Pyx_GOTREF(__pyx_t_3); #line 128 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_6, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 128, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_7, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 128, __pyx_L1_error) #line 128 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 128 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 128 "root_numpy/src/innerjoin.pyx" } @@ -66660,7 +70779,7 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __pyx_t_26 = __pyx_v_i_stretch; #line 130 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = -1; + __pyx_t_6 = -1; #line 130 "root_numpy/src/innerjoin.pyx" if (__pyx_t_26 < 0) { @@ -66669,16 +70788,16 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __pyx_t_26 += __pyx_pybuffernd_stretch_result_indices.diminfo[0].shape; #line 130 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_26 < 0)) __pyx_t_9 = 0; + if (unlikely(__pyx_t_26 < 0)) __pyx_t_6 = 0; } else #line 130 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_26 >= __pyx_pybuffernd_stretch_result_indices.diminfo[0].shape)) __pyx_t_9 = 0; +if (unlikely(__pyx_t_26 >= __pyx_pybuffernd_stretch_result_indices.diminfo[0].shape)) __pyx_t_6 = 0; #line 130 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 != -1)) { + if (unlikely(__pyx_t_6 != -1)) { #line 130 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_9); + __Pyx_RaiseBufferIndexError(__pyx_t_6); #line 130 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 130, __pyx_L1_error) @@ -66701,7 +70820,7 @@ if (unlikely(__pyx_t_26 >= __pyx_pybuffernd_stretch_result_indices.diminfo[0].sh __pyx_t_27 = __pyx_v_i_stretch; #line 131 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = -1; + __pyx_t_6 = -1; #line 131 "root_numpy/src/innerjoin.pyx" if (__pyx_t_27 < 0) { @@ -66710,16 +70829,16 @@ if (unlikely(__pyx_t_26 >= __pyx_pybuffernd_stretch_result_indices.diminfo[0].sh __pyx_t_27 += __pyx_pybuffernd_stretch_indices.diminfo[0].shape; #line 131 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_27 < 0)) __pyx_t_9 = 0; + if (unlikely(__pyx_t_27 < 0)) __pyx_t_6 = 0; } else #line 131 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_27 >= __pyx_pybuffernd_stretch_indices.diminfo[0].shape)) __pyx_t_9 = 0; +if (unlikely(__pyx_t_27 >= __pyx_pybuffernd_stretch_indices.diminfo[0].shape)) __pyx_t_6 = 0; #line 131 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 != -1)) { + if (unlikely(__pyx_t_6 != -1)) { #line 131 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_9); + __Pyx_RaiseBufferIndexError(__pyx_t_6); #line 131 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 131, __pyx_L1_error) @@ -66739,25 +70858,25 @@ if (unlikely(__pyx_t_27 >= __pyx_pybuffernd_stretch_indices.diminfo[0].shape)) _ */ #line 132 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_GetItemInt(((PyObject *)__pyx_v_data), __pyx_v_i_data, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 132, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt(((PyObject *)__pyx_v_data), __pyx_v_i_data, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 132, __pyx_L1_error) #line 132 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 132 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 132, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_7, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 132, __pyx_L1_error) #line 132 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); #line 132 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 132 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_left_good_index, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 132, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_left_good_index, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 132, __pyx_L1_error) #line 132 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 132 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -66769,13 +70888,13 @@ if (unlikely(__pyx_t_27 >= __pyx_pybuffernd_stretch_indices.diminfo[0].shape)) _ __Pyx_GOTREF(__pyx_t_3); #line 132 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_6, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 132, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_7, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 132, __pyx_L1_error) #line 132 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 132 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 132 "root_numpy/src/innerjoin.pyx" } @@ -66806,7 +70925,7 @@ if (unlikely(__pyx_t_27 >= __pyx_pybuffernd_stretch_indices.diminfo[0].shape)) _ __pyx_t_28 = __pyx_v_i_right; #line 134 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = -1; + __pyx_t_6 = -1; #line 134 "root_numpy/src/innerjoin.pyx" if (__pyx_t_28 < 0) { @@ -66815,16 +70934,16 @@ if (unlikely(__pyx_t_27 >= __pyx_pybuffernd_stretch_indices.diminfo[0].shape)) _ __pyx_t_28 += __pyx_pybuffernd_right_result_indices.diminfo[0].shape; #line 134 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_28 < 0)) __pyx_t_9 = 0; + if (unlikely(__pyx_t_28 < 0)) __pyx_t_6 = 0; } else #line 134 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_28 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shape)) __pyx_t_9 = 0; +if (unlikely(__pyx_t_28 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shape)) __pyx_t_6 = 0; #line 134 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 != -1)) { + if (unlikely(__pyx_t_6 != -1)) { #line 134 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_9); + __Pyx_RaiseBufferIndexError(__pyx_t_6); #line 134 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 134, __pyx_L1_error) @@ -66847,7 +70966,7 @@ if (unlikely(__pyx_t_28 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shap __pyx_t_29 = __pyx_v_i_right; #line 135 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = -1; + __pyx_t_6 = -1; #line 135 "root_numpy/src/innerjoin.pyx" if (__pyx_t_29 < 0) { @@ -66856,16 +70975,16 @@ if (unlikely(__pyx_t_28 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shap __pyx_t_29 += __pyx_pybuffernd_right_indices.diminfo[0].shape; #line 135 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_29 < 0)) __pyx_t_9 = 0; + if (unlikely(__pyx_t_29 < 0)) __pyx_t_6 = 0; } else #line 135 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_29 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __pyx_t_9 = 0; +if (unlikely(__pyx_t_29 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __pyx_t_6 = 0; #line 135 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_9 != -1)) { + if (unlikely(__pyx_t_6 != -1)) { #line 135 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_9); + __Pyx_RaiseBufferIndexError(__pyx_t_6); #line 135 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 135, __pyx_L1_error) @@ -66885,25 +71004,25 @@ if (unlikely(__pyx_t_29 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p */ #line 136 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_GetItemInt(((PyObject *)__pyx_v_data), __pyx_v_i_data, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 136, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt(((PyObject *)__pyx_v_data), __pyx_v_i_data, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 136, __pyx_L1_error) #line 136 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 136 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 136, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_7, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 136, __pyx_L1_error) #line 136 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); #line 136 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 136 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_right_good_index, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 136, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_right_good_index, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 136, __pyx_L1_error) #line 136 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 136 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -66915,13 +71034,13 @@ if (unlikely(__pyx_t_29 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p __Pyx_GOTREF(__pyx_t_3); #line 136 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_6, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 136, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_7, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 136, __pyx_L1_error) #line 136 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 136 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 136 "root_numpy/src/innerjoin.pyx" } @@ -66935,10 +71054,10 @@ if (unlikely(__pyx_t_29 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p */ #line 137 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyInt_From_long(__pyx_v_right_good_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 137, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_long(__pyx_v_right_good_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 137, __pyx_L1_error) #line 137 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 137 "root_numpy/src/innerjoin.pyx" __pyx_t_3 = __Pyx_GetItemInt(((PyObject *)__pyx_v_ret), __pyx_v_i_ret, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 137, __pyx_L1_error) @@ -66947,13 +71066,13 @@ if (unlikely(__pyx_t_29 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p __Pyx_GOTREF(__pyx_t_3); #line 137 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_fk_result_index, __pyx_t_6, int, 1, __Pyx_PyInt_From_int, 0, 1, 1) < 0)) __PYX_ERR(9, 137, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_fk_result_index, __pyx_t_7, int, 1, __Pyx_PyInt_From_int, 0, 1, 1) < 0)) __PYX_ERR(9, 137, __pyx_L1_error) #line 137 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 137 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "root_numpy/src/innerjoin.pyx":138 * ret[i_ret][i_land] = data[i_data][i_source][right_good_index] # TODO: make this faster @@ -67022,7 +71141,7 @@ if (unlikely(__pyx_t_29 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p __Pyx_XDECREF(__pyx_t_5); #line 69 "root_numpy/src/innerjoin.pyx" - __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_7); #line 69 "root_numpy/src/innerjoin.pyx" __Pyx_XDECREF(__pyx_t_14); @@ -67300,16 +71419,16 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ PyObject *__pyx_t_6 = NULL; #line 142 "root_numpy/src/innerjoin.pyx" - PyObject *__pyx_t_7 = NULL; + int __pyx_t_7; #line 142 "root_numpy/src/innerjoin.pyx" - PyArrayObject *__pyx_t_8 = NULL; + PyObject *__pyx_t_8 = NULL; #line 142 "root_numpy/src/innerjoin.pyx" - long __pyx_t_9; + PyArrayObject *__pyx_t_9 = NULL; #line 142 "root_numpy/src/innerjoin.pyx" - int __pyx_t_10; + long __pyx_t_10; #line 142 "root_numpy/src/innerjoin.pyx" __pyx_t_5numpy_int8_t __pyx_t_11; @@ -67582,10 +71701,10 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ __pyx_t_5 = NULL; #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_7 = 0; #line 150 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { #line 150 "root_numpy/src/innerjoin.pyx" __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); @@ -67606,7 +71725,7 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ __Pyx_DECREF_SET(__pyx_t_4, function); #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_7 = 1; #line 150 "root_numpy/src/innerjoin.pyx" } @@ -67615,46 +71734,112 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ } #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 150, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 150 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyFunction_Check(__pyx_t_4)) { #line 150 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_5) { + PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_t_6}; #line 150 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 150, __pyx_L1_error) #line 150 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 150 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 150 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_1, __pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 150 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 150 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_1, __pyx_t_6); + } else #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = 0; + #endif #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 0; + #if CYTHON_FAST_PYCCALL #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 150, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { #line 150 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_t_6}; #line 150 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 150, __pyx_L1_error) + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 150 "root_numpy/src/innerjoin.pyx" + } else + +#line 150 "root_numpy/src/innerjoin.pyx" + #endif + +#line 150 "root_numpy/src/innerjoin.pyx" + { + +#line 150 "root_numpy/src/innerjoin.pyx" + __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 150, __pyx_L1_error) + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 150 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_5) { + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL; + +#line 150 "root_numpy/src/innerjoin.pyx" + } + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 150 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2); + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 150 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_6); + +#line 150 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = 0; + +#line 150 "root_numpy/src/innerjoin.pyx" + __pyx_t_6 = 0; + +#line 150 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 150, __pyx_L1_error) + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 150 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 150 "root_numpy/src/innerjoin.pyx" + } #line 150 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -67663,7 +71848,7 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(9, 150, __pyx_L1_error) #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_8 = ((PyArrayObject *)__pyx_t_3); + __pyx_t_9 = ((PyArrayObject *)__pyx_t_3); #line 150 "root_numpy/src/innerjoin.pyx" { @@ -67672,7 +71857,7 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ __Pyx_BufFmt_StackElem __pyx_stack[1]; #line 150 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_fk_index_good.rcbuffer->pybuffer, (PyObject*)__pyx_t_8, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int8_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) { + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_fk_index_good.rcbuffer->pybuffer, (PyObject*)__pyx_t_9, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int8_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) { #line 150 "root_numpy/src/innerjoin.pyx" __pyx_v_fk_index_good = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_fk_index_good.rcbuffer->pybuffer.buf = NULL; @@ -67690,7 +71875,7 @@ __pyx_pybuffernd_fk_index_good.diminfo[0].strides = __pyx_pybuffernd_fk_index_go } #line 150 "root_numpy/src/innerjoin.pyx" - __pyx_t_8 = 0; + __pyx_t_9 = 0; #line 150 "root_numpy/src/innerjoin.pyx" __pyx_v_fk_index_good = ((PyArrayObject *)__pyx_t_3); @@ -67729,10 +71914,10 @@ __pyx_pybuffernd_fk_index_good.diminfo[0].strides = __pyx_pybuffernd_fk_index_go */ #line 155 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = __pyx_v_ndata; + __pyx_t_10 = __pyx_v_ndata; #line 155 "root_numpy/src/innerjoin.pyx" - for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_9; __pyx_v_i_data++) { + for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_10; __pyx_v_i_data++) { /* "root_numpy/src/innerjoin.pyx":156 * @@ -67772,13 +71957,13 @@ __pyx_pybuffernd_fk_index_good.diminfo[0].strides = __pyx_pybuffernd_fk_index_go __Pyx_GOTREF(__pyx_t_3); #line 157 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 157, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 157, __pyx_L1_error) #line 157 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 157 "root_numpy/src/innerjoin.pyx" - __pyx_v_fks = __pyx_t_10; + __pyx_v_fks = __pyx_t_7; /* "root_numpy/src/innerjoin.pyx":158 * max_fks = len(first_right[i_data]) @@ -67819,7 +72004,7 @@ __pyx_pybuffernd_fk_index_good.diminfo[0].strides = __pyx_pybuffernd_fk_index_go __pyx_t_13 = __pyx_v_i_data; #line 158 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = -1; + __pyx_t_7 = -1; #line 158 "root_numpy/src/innerjoin.pyx" if (__pyx_t_13 < 0) { @@ -67828,16 +72013,16 @@ __pyx_pybuffernd_fk_index_good.diminfo[0].strides = __pyx_pybuffernd_fk_index_go __pyx_t_13 += __pyx_pybuffernd_fk_index_good.diminfo[0].shape; #line 158 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_13 < 0)) __pyx_t_10 = 0; + if (unlikely(__pyx_t_13 < 0)) __pyx_t_7 = 0; } else #line 158 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __pyx_t_10 = 0; +if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __pyx_t_7 = 0; #line 158 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_10 != -1)) { + if (unlikely(__pyx_t_7 != -1)) { #line 158 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_10); + __Pyx_RaiseBufferIndexError(__pyx_t_7); #line 158 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 158, __pyx_L1_error) @@ -67866,10 +72051,10 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p __Pyx_GOTREF(__pyx_t_4); #line 160 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_count_nonzero); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 160, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_count_nonzero); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 160, __pyx_L1_error) #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 160 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -67878,16 +72063,16 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p __pyx_t_4 = NULL; #line 160 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_7))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { #line 160 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_8); #line 160 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_4)) { #line 160 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); #line 160 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_4); @@ -67896,7 +72081,7 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p __Pyx_INCREF(function); #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_7, function); + __Pyx_DECREF_SET(__pyx_t_8, function); #line 160 "root_numpy/src/innerjoin.pyx" } @@ -67908,7 +72093,7 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p if (!__pyx_t_4) { #line 160 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_v_fk_index_good)); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 160, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_8, ((PyObject *)__pyx_v_fk_index_good)); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 160, __pyx_L1_error) #line 160 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -67917,46 +72102,100 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p } else { #line 160 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 160, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + if (PyFunction_Check(__pyx_t_8)) { #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_fk_index_good)}; #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(((PyObject *)__pyx_v_fk_index_good)); + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 160, __pyx_L1_error) #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(((PyObject *)__pyx_v_fk_index_good)); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 160 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0+1, ((PyObject *)__pyx_v_fk_index_good)); + __Pyx_GOTREF(__pyx_t_3); #line 160 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 160, __pyx_L1_error) + } else #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + #endif #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + #if CYTHON_FAST_PYCCALL + +#line 160 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + +#line 160 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_fk_index_good)}; + +#line 160 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 160, __pyx_L1_error) + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 160 "root_numpy/src/innerjoin.pyx" + } else + +#line 160 "root_numpy/src/innerjoin.pyx" + #endif + +#line 160 "root_numpy/src/innerjoin.pyx" + { + +#line 160 "root_numpy/src/innerjoin.pyx" + __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 160, __pyx_L1_error) + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(((PyObject *)__pyx_v_fk_index_good)); + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(((PyObject *)__pyx_v_fk_index_good)); + +#line 160 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_6, 0+1, ((PyObject *)__pyx_v_fk_index_good)); + +#line 160 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 160, __pyx_L1_error) + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 160 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 160 "root_numpy/src/innerjoin.pyx" + } #line 160 "root_numpy/src/innerjoin.pyx" } #line 160 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 160 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = __Pyx_PyInt_As_long(__pyx_t_3); if (unlikely((__pyx_t_9 == (long)-1) && PyErr_Occurred())) __PYX_ERR(9, 160, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_long(__pyx_t_3); if (unlikely((__pyx_t_10 == (long)-1) && PyErr_Occurred())) __PYX_ERR(9, 160, __pyx_L1_error) #line 160 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 160 "root_numpy/src/innerjoin.pyx" - __pyx_v_nresult = __pyx_t_9; + __pyx_v_nresult = __pyx_t_10; /* "root_numpy/src/innerjoin.pyx":161 * @@ -67967,34 +72206,34 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p */ #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 161, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 161, __pyx_L1_error) #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 161, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 161, __pyx_L1_error) #line 161 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_6); #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyInt_From_long(__pyx_v_nresult); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 161, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_long(__pyx_v_nresult); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 161, __pyx_L1_error) #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 161 "root_numpy/src/innerjoin.pyx" __pyx_t_4 = NULL; #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_7 = 0; #line 161 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { #line 161 "root_numpy/src/innerjoin.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); @@ -68015,7 +72254,7 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p __Pyx_DECREF_SET(__pyx_t_6, function); #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_7 = 1; #line 161 "root_numpy/src/innerjoin.pyx" } @@ -68024,46 +72263,106 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p } #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 161, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + if (PyFunction_Check(__pyx_t_6)) { #line 161 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_4) { + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_8, __pyx_v_new_dtype}; #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 161, __pyx_L1_error) #line 161 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_3); #line 161 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_1, __pyx_t_7); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_new_dtype); + } else #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_new_dtype); + #endif #line 161 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_1, __pyx_v_new_dtype); + #if CYTHON_FAST_PYCCALL #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = 0; + if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { #line 161 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 161, __pyx_L1_error) + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_8, __pyx_v_new_dtype}; #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 161, __pyx_L1_error) #line 161 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 161 "root_numpy/src/innerjoin.pyx" + } else + +#line 161 "root_numpy/src/innerjoin.pyx" + #endif + +#line 161 "root_numpy/src/innerjoin.pyx" + { + +#line 161 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 161, __pyx_L1_error) + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 161 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_4) { + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 161 "root_numpy/src/innerjoin.pyx" + } + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_8); + +#line 161 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_8); + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_new_dtype); + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_new_dtype); + +#line 161 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_v_new_dtype); + +#line 161 "root_numpy/src/innerjoin.pyx" + __pyx_t_8 = 0; + +#line 161 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 161, __pyx_L1_error) + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 161 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 161 "root_numpy/src/innerjoin.pyx" + } #line 161 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -68107,7 +72406,7 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p if (likely(PyList_CheckExact(__pyx_v_repeat_columns)) || PyTuple_CheckExact(__pyx_v_repeat_columns)) { #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __pyx_v_repeat_columns; __Pyx_INCREF(__pyx_t_7); __pyx_t_1 = 0; + __pyx_t_8 = __pyx_v_repeat_columns; __Pyx_INCREF(__pyx_t_8); __pyx_t_1 = 0; #line 165 "root_numpy/src/innerjoin.pyx" __pyx_t_14 = NULL; @@ -68116,13 +72415,13 @@ if (unlikely(__pyx_t_13 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p } else { __pyx_t_1 = -1; #line 165 "root_numpy/src/innerjoin.pyx" -__pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 165, __pyx_L1_error) +__pyx_t_8 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_14 = Py_TYPE(__pyx_t_7)->tp_iternext; if (unlikely(!__pyx_t_14)) __PYX_ERR(9, 165, __pyx_L1_error) + __pyx_t_14 = Py_TYPE(__pyx_t_8)->tp_iternext; if (unlikely(!__pyx_t_14)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" } @@ -68134,22 +72433,22 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) if (likely(!__pyx_t_14)) { #line 165 "root_numpy/src/innerjoin.pyx" - if (likely(PyList_CheckExact(__pyx_t_7))) { + if (likely(PyList_CheckExact(__pyx_t_8))) { #line 165 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_7)) break; + if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_8)) break; #line 165 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 165, __pyx_L1_error) + __pyx_t_4 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" #else #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PySequence_ITEM(__pyx_t_7, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) + __pyx_t_4 = PySequence_ITEM(__pyx_t_8, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -68161,19 +72460,19 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) } else { #line 165 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_7)) break; + if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_8)) break; #line 165 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 165, __pyx_L1_error) + __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" #else #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PySequence_ITEM(__pyx_t_7, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) + __pyx_t_4 = PySequence_ITEM(__pyx_t_8, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -68188,7 +72487,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) { #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = __pyx_t_14(__pyx_t_7); + __pyx_t_4 = __pyx_t_14(__pyx_t_8); #line 165 "root_numpy/src/innerjoin.pyx" if (unlikely(!__pyx_t_4)) { @@ -68254,7 +72553,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) __pyx_t_15 = NULL; #line 165 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { #line 165 "root_numpy/src/innerjoin.pyx" __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_5); @@ -68293,31 +72592,85 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) } else { #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 165, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_16); + if (PyFunction_Check(__pyx_t_5)) { #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; #line 165 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + __Pyx_GOTREF(__pyx_t_4); #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_16, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) + } else #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_4); + #endif + +#line 165 "root_numpy/src/innerjoin.pyx" + #if CYTHON_FAST_PYCCALL + +#line 165 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { + +#line 165 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; + +#line 165 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 165 "root_numpy/src/innerjoin.pyx" + } else + +#line 165 "root_numpy/src/innerjoin.pyx" + #endif + +#line 165 "root_numpy/src/innerjoin.pyx" + { + +#line 165 "root_numpy/src/innerjoin.pyx" + __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 165, __pyx_L1_error) + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_16); #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); + +#line 165 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + +#line 165 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_16, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + } #line 165 "root_numpy/src/innerjoin.pyx" } @@ -68335,43 +72688,43 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) } #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 165, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_4); #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = NULL; + __pyx_t_8 = NULL; #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_7 = 0; #line 165 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); #line 165 "root_numpy/src/innerjoin.pyx" - if (likely(__pyx_t_7)) { + if (likely(__pyx_t_8)) { #line 165 "root_numpy/src/innerjoin.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(__pyx_t_8); #line 165 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(function); @@ -68380,7 +72733,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) __Pyx_DECREF_SET(__pyx_t_2, function); #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_7 = 1; #line 165 "root_numpy/src/innerjoin.pyx" } @@ -68389,46 +72742,112 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) } #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 165, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_5); + if (PyFunction_Check(__pyx_t_2)) { #line 165 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_7) { + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_t_4}; #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 165, __pyx_L1_error) #line 165 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_3); #line 165 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_1, __pyx_t_6); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 165 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_1, __pyx_t_4); + } else #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 0; + #endif #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = 0; + #if CYTHON_FAST_PYCCALL #line 165 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 165, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_t_4}; #line 165 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 165, __pyx_L1_error) + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + } else + +#line 165 "root_numpy/src/innerjoin.pyx" + #endif + +#line 165 "root_numpy/src/innerjoin.pyx" + { + +#line 165 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 165, __pyx_L1_error) + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_5); + +#line 165 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_8) { + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 165 "root_numpy/src/innerjoin.pyx" + } + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 165 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_7, __pyx_t_6); + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); + +#line 165 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_7, __pyx_t_4); + +#line 165 "root_numpy/src/innerjoin.pyx" + __pyx_t_6 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 165, __pyx_L1_error) + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 165 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 165 "root_numpy/src/innerjoin.pyx" + } #line 165 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -68538,7 +72957,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_4)) break; #line 167 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 167 "root_numpy/src/innerjoin.pyx" __pyx_t_6 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 167, __pyx_L1_error) @@ -68562,7 +72981,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #line 167 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 167 "root_numpy/src/innerjoin.pyx" __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 167, __pyx_L1_error) @@ -68625,25 +73044,25 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) __pyx_t_6 = 0; #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_ret, __pyx_n_s_dtype); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 167, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_ret, __pyx_n_s_dtype); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 167, __pyx_L1_error) #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_names); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 167, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_names); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 167, __pyx_L1_error) #line 167 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_16); #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 167, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 167, __pyx_L1_error) #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 167 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; @@ -68652,16 +73071,16 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) __pyx_t_16 = NULL; #line 167 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_7))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_7); + __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_8); #line 167 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_16)) { #line 167 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); #line 167 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_16); @@ -68670,7 +73089,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) __Pyx_INCREF(function); #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_7, function); + __Pyx_DECREF_SET(__pyx_t_8, function); #line 167 "root_numpy/src/innerjoin.pyx" } @@ -68682,7 +73101,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) if (!__pyx_t_16) { #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_x); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_x); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error) #line 167 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_6); @@ -68691,37 +73110,91 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) } else { #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(9, 167, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_15); + if (PyFunction_Check(__pyx_t_8)) { #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_16); __pyx_t_16 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_16, __pyx_v_x}; #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error) #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; #line 167 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_v_x); + __Pyx_GOTREF(__pyx_t_6); #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_15, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error) + } else #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_6); + #endif #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; + #if CYTHON_FAST_PYCCALL + +#line 167 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + +#line 167 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_16, __pyx_v_x}; + +#line 167 "root_numpy/src/innerjoin.pyx" + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error) + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 167 "root_numpy/src/innerjoin.pyx" + } else + +#line 167 "root_numpy/src/innerjoin.pyx" + #endif + +#line 167 "root_numpy/src/innerjoin.pyx" + { + +#line 167 "root_numpy/src/innerjoin.pyx" + __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(9, 167, __pyx_L1_error) + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_15); + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_16); __pyx_t_16 = NULL; + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); + +#line 167 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_v_x); + +#line 167 "root_numpy/src/innerjoin.pyx" + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_15, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 167, __pyx_L1_error) + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_6); + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + } #line 167 "root_numpy/src/innerjoin.pyx" } #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 167 "root_numpy/src/innerjoin.pyx" if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(9, 167, __pyx_L1_error) @@ -68754,10 +73227,10 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) __pyx_t_4 = NULL; #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_7 = 0; #line 167 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { #line 167 "root_numpy/src/innerjoin.pyx" __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); @@ -68778,7 +73251,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) __Pyx_DECREF_SET(__pyx_t_5, function); #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_7 = 1; #line 167 "root_numpy/src/innerjoin.pyx" } @@ -68787,46 +73260,112 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) } #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 167, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyFunction_Check(__pyx_t_5)) { #line 167 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_4) { + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_2, __pyx_t_6}; #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 167, __pyx_L1_error) #line 167 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 167 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_1, __pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 167 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_1, __pyx_t_6); + } else #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = 0; + #endif #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = 0; + #if CYTHON_FAST_PYCCALL #line 167 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 167, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_2, __pyx_t_6}; #line 167 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 167, __pyx_L1_error) + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + } else + +#line 167 "root_numpy/src/innerjoin.pyx" + #endif + +#line 167 "root_numpy/src/innerjoin.pyx" + { + +#line 167 "root_numpy/src/innerjoin.pyx" + __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 167, __pyx_L1_error) + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_8); + +#line 167 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_4) { + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 167 "root_numpy/src/innerjoin.pyx" + } + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 167 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2); + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_6); + +#line 167 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_6); + +#line 167 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + __pyx_t_6 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 167, __pyx_L1_error) + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 167 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 167 "root_numpy/src/innerjoin.pyx" + } #line 167 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -68885,10 +73424,10 @@ __pyx_pybuffernd_stretch_result_indices.diminfo[0].strides = __pyx_pybuffernd_st __Pyx_GOTREF(__pyx_t_5); #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_array); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 169, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 169, __pyx_L1_error) #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 169 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -68936,7 +73475,7 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_6)) break; #line 169 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 169 "root_numpy/src/innerjoin.pyx" __pyx_t_2 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_1); __Pyx_INCREF(__pyx_t_2); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 169, __pyx_L1_error) @@ -68960,7 +73499,7 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #line 169 "root_numpy/src/innerjoin.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 169 "root_numpy/src/innerjoin.pyx" __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_1); __Pyx_INCREF(__pyx_t_2); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(9, 169, __pyx_L1_error) @@ -69050,7 +73589,7 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR __pyx_t_15 = NULL; #line 169 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { #line 169 "root_numpy/src/innerjoin.pyx" __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_4); @@ -69089,31 +73628,85 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR } else { #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 169, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_16); + if (PyFunction_Check(__pyx_t_4)) { #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_x); + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 169, __pyx_L1_error) #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_x); + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; #line 169 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + __Pyx_GOTREF(__pyx_t_2); #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 169, __pyx_L1_error) + } else #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + #endif + +#line 169 "root_numpy/src/innerjoin.pyx" + #if CYTHON_FAST_PYCCALL + +#line 169 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + +#line 169 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_15, __pyx_v_x}; + +#line 169 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 169, __pyx_L1_error) + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 169 "root_numpy/src/innerjoin.pyx" + } else + +#line 169 "root_numpy/src/innerjoin.pyx" + #endif + +#line 169 "root_numpy/src/innerjoin.pyx" + { + +#line 169 "root_numpy/src/innerjoin.pyx" + __pyx_t_16 = PyTuple_New(1+1); if (unlikely(!__pyx_t_16)) __PYX_ERR(9, 169, __pyx_L1_error) + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_16); + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_x); + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_x); #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + PyTuple_SET_ITEM(__pyx_t_16, 0+1, __pyx_v_x); + +#line 169 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 169, __pyx_L1_error) + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + } #line 169 "root_numpy/src/innerjoin.pyx" } @@ -69152,19 +73745,19 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR __pyx_t_6 = NULL; #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 0; + __pyx_t_7 = 0; #line 169 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_7))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8); #line 169 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_6)) { #line 169 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); #line 169 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_6); @@ -69173,10 +73766,10 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR __Pyx_INCREF(function); #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_7, function); + __Pyx_DECREF_SET(__pyx_t_8, function); #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = 1; + __pyx_t_7 = 1; #line 169 "root_numpy/src/innerjoin.pyx" } @@ -69185,49 +73778,115 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR } #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 169, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_4); + if (PyFunction_Check(__pyx_t_8)) { #line 169 "root_numpy/src/innerjoin.pyx" - if (__pyx_t_6) { + PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_5, __pyx_t_2}; #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 169, __pyx_L1_error) #line 169 "root_numpy/src/innerjoin.pyx" - } + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_3); #line 169 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_1, __pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 169 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_1, __pyx_t_2); + } else #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_5 = 0; + #endif #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = 0; + #if CYTHON_FAST_PYCCALL #line 169 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 169, __pyx_L1_error) + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_5, __pyx_t_2}; #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 169, __pyx_L1_error) #line 169 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + } else + +#line 169 "root_numpy/src/innerjoin.pyx" + #endif + +#line 169 "root_numpy/src/innerjoin.pyx" + { + +#line 169 "root_numpy/src/innerjoin.pyx" + __pyx_t_4 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 169, __pyx_L1_error) + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_4); + +#line 169 "root_numpy/src/innerjoin.pyx" + if (__pyx_t_6) { + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; + +#line 169 "root_numpy/src/innerjoin.pyx" + } + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_5); + +#line 169 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_7, __pyx_t_5); + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_2); + +#line 169 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_7, __pyx_t_2); + +#line 169 "root_numpy/src/innerjoin.pyx" + __pyx_t_5 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 169, __pyx_L1_error) + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 169 "root_numpy/src/innerjoin.pyx" + } + +#line 169 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 169 "root_numpy/src/innerjoin.pyx" if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(9, 169, __pyx_L1_error) @@ -69277,25 +73936,25 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_ret, __pyx_n_s_dtype); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 170, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_ret, __pyx_n_s_dtype); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 170, __pyx_L1_error) #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_names); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 170, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_names); if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 170, __pyx_L1_error) #line 170 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_4); #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 170, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 170, __pyx_L1_error) #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 170 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -69304,16 +73963,16 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __pyx_t_4 = NULL; #line 170 "root_numpy/src/innerjoin.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_7))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_8); #line 170 "root_numpy/src/innerjoin.pyx" if (likely(__pyx_t_4)) { #line 170 "root_numpy/src/innerjoin.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); #line 170 "root_numpy/src/innerjoin.pyx" __Pyx_INCREF(__pyx_t_4); @@ -69322,7 +73981,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __Pyx_INCREF(function); #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF_SET(__pyx_t_7, function); + __Pyx_DECREF_SET(__pyx_t_8, function); #line 170 "root_numpy/src/innerjoin.pyx" } @@ -69334,7 +73993,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ if (!__pyx_t_4) { #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_fk_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 170, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_fk_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 170, __pyx_L1_error) #line 170 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -69343,46 +74002,100 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ } else { #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 170, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_2); + if (PyFunction_Check(__pyx_t_8)) { #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_fk_name}; #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_INCREF(__pyx_v_fk_name); + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 170, __pyx_L1_error) #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_GIVEREF(__pyx_v_fk_name); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 170 "root_numpy/src/innerjoin.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_fk_name); + __Pyx_GOTREF(__pyx_t_3); #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 170, __pyx_L1_error) + } else #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_3); + #endif #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + #if CYTHON_FAST_PYCCALL + +#line 170 "root_numpy/src/innerjoin.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + +#line 170 "root_numpy/src/innerjoin.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_fk_name}; + +#line 170 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 170, __pyx_L1_error) + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 170 "root_numpy/src/innerjoin.pyx" + } else + +#line 170 "root_numpy/src/innerjoin.pyx" + #endif + +#line 170 "root_numpy/src/innerjoin.pyx" + { + +#line 170 "root_numpy/src/innerjoin.pyx" + __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 170, __pyx_L1_error) + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_2); + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); __pyx_t_4 = NULL; + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_INCREF(__pyx_v_fk_name); + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_GIVEREF(__pyx_v_fk_name); + +#line 170 "root_numpy/src/innerjoin.pyx" + PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_fk_name); + +#line 170 "root_numpy/src/innerjoin.pyx" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 170, __pyx_L1_error) + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_GOTREF(__pyx_t_3); + +#line 170 "root_numpy/src/innerjoin.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 170 "root_numpy/src/innerjoin.pyx" + } #line 170 "root_numpy/src/innerjoin.pyx" } #line 170 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 170, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 170, __pyx_L1_error) #line 170 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 170 "root_numpy/src/innerjoin.pyx" - __pyx_v_fk_result_index = __pyx_t_10; + __pyx_v_fk_result_index = __pyx_t_7; /* "root_numpy/src/innerjoin.pyx":172 * cdef int fk_result_index = ret.dtype.names.index(fk_name) @@ -69487,10 +74200,10 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 181 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = __pyx_v_ndata; + __pyx_t_10 = __pyx_v_ndata; #line 181 "root_numpy/src/innerjoin.pyx" - for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_9; __pyx_v_i_data++) { + for (__pyx_v_i_data = 0; __pyx_v_i_data < __pyx_t_10; __pyx_v_i_data++) { /* "root_numpy/src/innerjoin.pyx":182 * @@ -69504,7 +74217,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __pyx_t_20 = __pyx_v_i_data; #line 182 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = -1; + __pyx_t_7 = -1; #line 182 "root_numpy/src/innerjoin.pyx" if (__pyx_t_20 < 0) { @@ -69513,16 +74226,16 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ __pyx_t_20 += __pyx_pybuffernd_fk_index_good.diminfo[0].shape; #line 182 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_20 < 0)) __pyx_t_10 = 0; + if (unlikely(__pyx_t_20 < 0)) __pyx_t_7 = 0; } else #line 182 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_20 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __pyx_t_10 = 0; +if (unlikely(__pyx_t_20 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __pyx_t_7 = 0; #line 182 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_10 != -1)) { + if (unlikely(__pyx_t_7 != -1)) { #line 182 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_10); + __Pyx_RaiseBufferIndexError(__pyx_t_7); #line 182 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 182, __pyx_L1_error) @@ -69585,7 +74298,7 @@ if (unlikely(__pyx_t_20 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p __pyx_t_22 = __pyx_v_i_repeat; #line 185 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = -1; + __pyx_t_7 = -1; #line 185 "root_numpy/src/innerjoin.pyx" if (__pyx_t_22 < 0) { @@ -69594,16 +74307,16 @@ if (unlikely(__pyx_t_20 >= __pyx_pybuffernd_fk_index_good.diminfo[0].shape)) __p __pyx_t_22 += __pyx_pybuffernd_repeat_result_indices.diminfo[0].shape; #line 185 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_22 < 0)) __pyx_t_10 = 0; + if (unlikely(__pyx_t_22 < 0)) __pyx_t_7 = 0; } else #line 185 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].shape)) __pyx_t_10 = 0; +if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].shape)) __pyx_t_7 = 0; #line 185 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_10 != -1)) { + if (unlikely(__pyx_t_7 != -1)) { #line 185 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_10); + __Pyx_RaiseBufferIndexError(__pyx_t_7); #line 185 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 185, __pyx_L1_error) @@ -69626,7 +74339,7 @@ if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].sha __pyx_t_23 = __pyx_v_i_repeat; #line 186 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = -1; + __pyx_t_7 = -1; #line 186 "root_numpy/src/innerjoin.pyx" if (__pyx_t_23 < 0) { @@ -69635,16 +74348,16 @@ if (unlikely(__pyx_t_22 >= __pyx_pybuffernd_repeat_result_indices.diminfo[0].sha __pyx_t_23 += __pyx_pybuffernd_repeat_indices.diminfo[0].shape; #line 186 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_23 < 0)) __pyx_t_10 = 0; + if (unlikely(__pyx_t_23 < 0)) __pyx_t_7 = 0; } else #line 186 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_23 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __pyx_t_10 = 0; +if (unlikely(__pyx_t_23 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __pyx_t_7 = 0; #line 186 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_10 != -1)) { + if (unlikely(__pyx_t_7 != -1)) { #line 186 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_10); + __Pyx_RaiseBufferIndexError(__pyx_t_7); #line 186 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 186, __pyx_L1_error) @@ -69670,10 +74383,10 @@ if (unlikely(__pyx_t_23 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __Pyx_GOTREF(__pyx_t_3); #line 187 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 187, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 187, __pyx_L1_error) #line 187 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 187 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -69685,13 +74398,13 @@ if (unlikely(__pyx_t_23 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __Pyx_GOTREF(__pyx_t_3); #line 187 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_7, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 187, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_8, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 187, __pyx_L1_error) #line 187 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 187 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 187 "root_numpy/src/innerjoin.pyx" } @@ -69722,7 +74435,7 @@ if (unlikely(__pyx_t_23 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __pyx_t_24 = __pyx_v_i_right; #line 189 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = -1; + __pyx_t_7 = -1; #line 189 "root_numpy/src/innerjoin.pyx" if (__pyx_t_24 < 0) { @@ -69731,16 +74444,16 @@ if (unlikely(__pyx_t_23 >= __pyx_pybuffernd_repeat_indices.diminfo[0].shape)) __ __pyx_t_24 += __pyx_pybuffernd_right_result_indices.diminfo[0].shape; #line 189 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_24 < 0)) __pyx_t_10 = 0; + if (unlikely(__pyx_t_24 < 0)) __pyx_t_7 = 0; } else #line 189 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shape)) __pyx_t_10 = 0; +if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shape)) __pyx_t_7 = 0; #line 189 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_10 != -1)) { + if (unlikely(__pyx_t_7 != -1)) { #line 189 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_10); + __Pyx_RaiseBufferIndexError(__pyx_t_7); #line 189 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 189, __pyx_L1_error) @@ -69763,7 +74476,7 @@ if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shap __pyx_t_25 = __pyx_v_i_right; #line 190 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = -1; + __pyx_t_7 = -1; #line 190 "root_numpy/src/innerjoin.pyx" if (__pyx_t_25 < 0) { @@ -69772,16 +74485,16 @@ if (unlikely(__pyx_t_24 >= __pyx_pybuffernd_right_result_indices.diminfo[0].shap __pyx_t_25 += __pyx_pybuffernd_right_indices.diminfo[0].shape; #line 190 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_25 < 0)) __pyx_t_10 = 0; + if (unlikely(__pyx_t_25 < 0)) __pyx_t_7 = 0; } else #line 190 "root_numpy/src/innerjoin.pyx" -if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __pyx_t_10 = 0; +if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __pyx_t_7 = 0; #line 190 "root_numpy/src/innerjoin.pyx" - if (unlikely(__pyx_t_10 != -1)) { + if (unlikely(__pyx_t_7 != -1)) { #line 190 "root_numpy/src/innerjoin.pyx" - __Pyx_RaiseBufferIndexError(__pyx_t_10); + __Pyx_RaiseBufferIndexError(__pyx_t_7); #line 190 "root_numpy/src/innerjoin.pyx" __PYX_ERR(9, 190, __pyx_L1_error) @@ -69801,25 +74514,25 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p */ #line 191 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_GetItemInt(((PyObject *)__pyx_v_data), __pyx_v_i_data, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 191, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(((PyObject *)__pyx_v_data), __pyx_v_i_data, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 191, __pyx_L1_error) #line 191 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 191 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_7, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 191, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_8, __pyx_v_i_source, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 191, __pyx_L1_error) #line 191 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); #line 191 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 191 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_right_good_index, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 191, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_right_good_index, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 191, __pyx_L1_error) #line 191 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 191 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -69831,13 +74544,13 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p __Pyx_GOTREF(__pyx_t_3); #line 191 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_7, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 191, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_i_land, __pyx_t_8, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) __PYX_ERR(9, 191, __pyx_L1_error) #line 191 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 191 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 191 "root_numpy/src/innerjoin.pyx" } @@ -69851,10 +74564,10 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p */ #line 192 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_PyInt_From_long(__pyx_v_right_good_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 192, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_long(__pyx_v_right_good_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 192, __pyx_L1_error) #line 192 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 192 "root_numpy/src/innerjoin.pyx" __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_ret, __pyx_v_i_ret, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 192, __pyx_L1_error) @@ -69863,13 +74576,13 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p __Pyx_GOTREF(__pyx_t_3); #line 192 "root_numpy/src/innerjoin.pyx" - if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_fk_result_index, __pyx_t_7, int, 1, __Pyx_PyInt_From_int, 0, 1, 1) < 0)) __PYX_ERR(9, 192, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_3, __pyx_v_fk_result_index, __pyx_t_8, int, 1, __Pyx_PyInt_From_int, 0, 1, 1) < 0)) __PYX_ERR(9, 192, __pyx_L1_error) #line 192 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 192 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "root_numpy/src/innerjoin.pyx":193 * ret[i_ret][i_land] = data[i_data][i_source][right_good_index] @@ -69946,7 +74659,7 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p __Pyx_XDECREF(__pyx_t_6); #line 142 "root_numpy/src/innerjoin.pyx" - __Pyx_XDECREF(__pyx_t_7); + __Pyx_XDECREF(__pyx_t_8); #line 142 "root_numpy/src/innerjoin.pyx" __Pyx_XDECREF(__pyx_t_15); @@ -73327,7 +78040,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(11, 794, __pyx_L1_error) @@ -73400,7 +78113,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx PyObject* sequence = __pyx_v_fields; #line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" Py_ssize_t size = Py_SIZE(sequence); @@ -73430,7 +78143,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx } #line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); @@ -74920,6 +79633,8 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py * return None * else: * return arr.base # <<<<<<<<<<<<<< + * + * */ #line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" @@ -74969,6 +79684,798 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py #line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() + */ + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_array", 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 + * cdef inline int import_array() except -1: + * try: + * _import_array() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") + */ + +#line 987 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(11, 987, __pyx_L3_error) + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L10_try_end; + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 + * try: + * _import_array() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.multiarray failed to import") + * + */ + +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); + +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { + +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(11, 988, __pyx_L5_except_error) + +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); + +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); + +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + * _import_array() + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_umath() except -1: + */ + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 989, __pyx_L5_except_error) + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(11, 989, __pyx_L5_except_error) + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L10_try_end:; + +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() + */ + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 + * raise ImportError("numpy.core.multiarray failed to import") + * + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_umath", 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":993 + * cdef inline int import_umath() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") + */ + +#line 993 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(11, 993, __pyx_L3_error) + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L10_try_end; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":994 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") + * + */ + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(11, 994, __pyx_L5_except_error) + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_ufunc() except -1: + */ + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 995, __pyx_L5_except_error) + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(11, 995, __pyx_L5_except_error) + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L10_try_end:; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 + * raise ImportError("numpy.core.multiarray failed to import") + * + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * raise ImportError("numpy.core.umath failed to import") + * + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_ufunc", 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":999 + * cdef inline int import_ufunc() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") + */ + +#line 999 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(11, 999, __pyx_L3_error) + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L10_try_end; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") + */ + +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); + +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { + +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(11, 1000, __pyx_L5_except_error) + +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); + +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); + +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + */ + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 1001, __pyx_L5_except_error) + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(11, 1001, __pyx_L5_except_error) + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L10_try_end:; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * raise ImportError("numpy.core.umath failed to import") + * + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + /* "string.from_py":13 * * @cname("__pyx_convert_string_from_py_std__in_string") @@ -75842,6 +81349,8 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_none_of_the_input_files_contain, __pyx_k_none_of_the_input_files_contain, sizeof(__pyx_k_none_of_the_input_files_contain), 0, 0, 1, 0}, {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1}, {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1}, + {&__pyx_kp_s_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to, sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 0, 1, 0}, + {&__pyx_kp_s_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor, sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 0, 1, 0}, {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1}, {&__pyx_n_s_object_selection, __pyx_k_object_selection, sizeof(__pyx_k_object_selection), 0, 0, 1, 1}, {&__pyx_kp_s_object_selection_contains_branch, __pyx_k_object_selection_contains_branch, sizeof(__pyx_k_object_selection_contains_branch), 0, 0, 1, 0}, @@ -76684,6 +82193,55 @@ static int __Pyx_InitCachedConstants(void) { #line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__50); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + * _import_array() + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_umath() except -1: + */ + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(11, 989, __pyx_L1_error) + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_tuple__51); + +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_tuple__51); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_ufunc() except -1: + */ + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(11, 995, __pyx_L1_error) + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_tuple__52); + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_tuple__52); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + */ + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(11, 1001, __pyx_L1_error) + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_tuple__53); + +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_tuple__53); + /* "root_numpy/src/converters.pyx":4 * * # match leaf_name[length_leaf][N][M]... or leaf_name[N][M]... @@ -76693,13 +82251,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 4 "root_numpy/src/converters.pyx" - __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_s_0_9); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(1, 4, __pyx_L1_error) + __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_s_s_0_9); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(1, 4, __pyx_L1_error) #line 4 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__51); + __Pyx_GOTREF(__pyx_tuple__54); #line 4 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__51); + __Pyx_GIVEREF(__pyx_tuple__54); /* "root_numpy/src/converters.pyx":23 * @@ -76710,13 +82268,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 23 "root_numpy/src/converters.pyx" - __pyx_tuple__52 = PyTuple_Pack(2, __pyx_int_1, __pyx_n_s_O); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(1, 23, __pyx_L1_error) + __pyx_tuple__55 = PyTuple_Pack(2, __pyx_int_1, __pyx_n_s_O); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(1, 23, __pyx_L1_error) #line 23 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__52); + __Pyx_GOTREF(__pyx_tuple__55); #line 23 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__52); + __Pyx_GIVEREF(__pyx_tuple__55); /* "root_numpy/src/converters.pyx":24 * TYPES_NUMPY2ROOT = { @@ -76727,13 +82285,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 24 "root_numpy/src/converters.pyx" - __pyx_tuple__53 = PyTuple_Pack(2, __pyx_int_1, __pyx_n_s_B); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(1, 24, __pyx_L1_error) + __pyx_tuple__56 = PyTuple_Pack(2, __pyx_int_1, __pyx_n_s_B); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(1, 24, __pyx_L1_error) #line 24 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__53); + __Pyx_GOTREF(__pyx_tuple__56); #line 24 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__53); + __Pyx_GIVEREF(__pyx_tuple__56); /* "root_numpy/src/converters.pyx":25 * np.dtype(np.bool): (1, 'O'), @@ -76744,13 +82302,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 25 "root_numpy/src/converters.pyx" - __pyx_tuple__54 = PyTuple_Pack(2, __pyx_int_2, __pyx_n_s_S); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(1, 25, __pyx_L1_error) + __pyx_tuple__57 = PyTuple_Pack(2, __pyx_int_2, __pyx_n_s_S); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(1, 25, __pyx_L1_error) #line 25 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__54); + __Pyx_GOTREF(__pyx_tuple__57); #line 25 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__54); + __Pyx_GIVEREF(__pyx_tuple__57); /* "root_numpy/src/converters.pyx":26 * np.dtype(np.int8): (1, 'B'), @@ -76761,13 +82319,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 26 "root_numpy/src/converters.pyx" - __pyx_tuple__55 = PyTuple_Pack(2, __pyx_int_4, __pyx_n_s_I); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(1, 26, __pyx_L1_error) + __pyx_tuple__58 = PyTuple_Pack(2, __pyx_int_4, __pyx_n_s_I); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(1, 26, __pyx_L1_error) #line 26 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__55); + __Pyx_GOTREF(__pyx_tuple__58); #line 26 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__55); + __Pyx_GIVEREF(__pyx_tuple__58); /* "root_numpy/src/converters.pyx":27 * np.dtype(np.int16): (2, 'S'), @@ -76778,13 +82336,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 27 "root_numpy/src/converters.pyx" - __pyx_tuple__56 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_L); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(1, 27, __pyx_L1_error) + __pyx_tuple__59 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_L); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(1, 27, __pyx_L1_error) #line 27 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__56); + __Pyx_GOTREF(__pyx_tuple__59); #line 27 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__56); + __Pyx_GIVEREF(__pyx_tuple__59); /* "root_numpy/src/converters.pyx":28 * np.dtype(np.int32): (4, 'I'), @@ -76795,13 +82353,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 28 "root_numpy/src/converters.pyx" - __pyx_tuple__57 = PyTuple_Pack(2, __pyx_int_1, __pyx_n_s_b); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(1, 28, __pyx_L1_error) + __pyx_tuple__60 = PyTuple_Pack(2, __pyx_int_1, __pyx_n_s_b); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(1, 28, __pyx_L1_error) #line 28 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__57); + __Pyx_GOTREF(__pyx_tuple__60); #line 28 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__57); + __Pyx_GIVEREF(__pyx_tuple__60); /* "root_numpy/src/converters.pyx":29 * np.dtype(np.int64): (8, 'L'), @@ -76812,13 +82370,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 29 "root_numpy/src/converters.pyx" - __pyx_tuple__58 = PyTuple_Pack(2, __pyx_int_2, __pyx_n_s_s); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(1, 29, __pyx_L1_error) + __pyx_tuple__61 = PyTuple_Pack(2, __pyx_int_2, __pyx_n_s_s); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(1, 29, __pyx_L1_error) #line 29 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__58); + __Pyx_GOTREF(__pyx_tuple__61); #line 29 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__58); + __Pyx_GIVEREF(__pyx_tuple__61); /* "root_numpy/src/converters.pyx":30 * np.dtype(np.uint8): (1, 'b'), @@ -76829,13 +82387,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 30 "root_numpy/src/converters.pyx" - __pyx_tuple__59 = PyTuple_Pack(2, __pyx_int_4, __pyx_n_s_i); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(1, 30, __pyx_L1_error) + __pyx_tuple__62 = PyTuple_Pack(2, __pyx_int_4, __pyx_n_s_i); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(1, 30, __pyx_L1_error) #line 30 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__59); + __Pyx_GOTREF(__pyx_tuple__62); #line 30 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__59); + __Pyx_GIVEREF(__pyx_tuple__62); /* "root_numpy/src/converters.pyx":31 * np.dtype(np.uint16): (2, 's'), @@ -76846,13 +82404,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 31 "root_numpy/src/converters.pyx" - __pyx_tuple__60 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_l); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(1, 31, __pyx_L1_error) + __pyx_tuple__63 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_l); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(1, 31, __pyx_L1_error) #line 31 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__60); + __Pyx_GOTREF(__pyx_tuple__63); #line 31 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__60); + __Pyx_GIVEREF(__pyx_tuple__63); /* "root_numpy/src/converters.pyx":32 * np.dtype(np.uint32): (4, 'i'), @@ -76863,13 +82421,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 32 "root_numpy/src/converters.pyx" - __pyx_tuple__61 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_D); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(1, 32, __pyx_L1_error) + __pyx_tuple__64 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_D); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(1, 32, __pyx_L1_error) #line 32 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__61); + __Pyx_GOTREF(__pyx_tuple__64); #line 32 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__61); + __Pyx_GIVEREF(__pyx_tuple__64); /* "root_numpy/src/converters.pyx":33 * np.dtype(np.uint64): (8, 'l'), @@ -76880,13 +82438,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 33 "root_numpy/src/converters.pyx" - __pyx_tuple__62 = PyTuple_Pack(2, __pyx_int_4, __pyx_n_s_F); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(1, 33, __pyx_L1_error) + __pyx_tuple__65 = PyTuple_Pack(2, __pyx_int_4, __pyx_n_s_F); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(1, 33, __pyx_L1_error) #line 33 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__62); + __Pyx_GOTREF(__pyx_tuple__65); #line 33 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__62); + __Pyx_GIVEREF(__pyx_tuple__65); /* "root_numpy/src/converters.pyx":34 * np.dtype(np.float): (8, 'D'), @@ -76897,13 +82455,13 @@ static int __Pyx_InitCachedConstants(void) { */ #line 34 "root_numpy/src/converters.pyx" - __pyx_tuple__63 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_D); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(1, 34, __pyx_L1_error) + __pyx_tuple__66 = PyTuple_Pack(2, __pyx_int_8, __pyx_n_s_D); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(1, 34, __pyx_L1_error) #line 34 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__63); + __Pyx_GOTREF(__pyx_tuple__66); #line 34 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__63); + __Pyx_GIVEREF(__pyx_tuple__66); /* "root_numpy/src/converters.pyx":596 * @@ -76914,16 +82472,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 596 "root_numpy/src/converters.pyx" - __pyx_tuple__64 = PyTuple_Pack(1, __pyx_n_s_it); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(1, 596, __pyx_L1_error) + __pyx_tuple__67 = PyTuple_Pack(1, __pyx_n_s_it); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(1, 596, __pyx_L1_error) #line 596 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_tuple__64); + __Pyx_GOTREF(__pyx_tuple__67); #line 596 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_tuple__64); + __Pyx_GIVEREF(__pyx_tuple__67); #line 596 "root_numpy/src/converters.pyx" - __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_cleanup, 596, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(1, 596, __pyx_L1_error) + __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_cleanup, 596, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(1, 596, __pyx_L1_error) /* "root_numpy/src/tree.pyx":33 * @@ -76934,16 +82492,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 33 "root_numpy/src/tree.pyx" - __pyx_tuple__66 = PyTuple_Pack(7, __pyx_n_s_fname, __pyx_n_s_types, __pyx_n_s_tclass, __pyx_n_s_classes, __pyx_n_s_clsname, __pyx_n_s_rfile, __pyx_n_s_objects); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(2, 33, __pyx_L1_error) + __pyx_tuple__69 = PyTuple_Pack(7, __pyx_n_s_fname, __pyx_n_s_types, __pyx_n_s_tclass, __pyx_n_s_classes, __pyx_n_s_clsname, __pyx_n_s_rfile, __pyx_n_s_objects); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(2, 33, __pyx_L1_error) #line 33 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__66); + __Pyx_GOTREF(__pyx_tuple__69); #line 33 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__66); + __Pyx_GIVEREF(__pyx_tuple__69); #line 33 "root_numpy/src/tree.pyx" - __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_objects, 33, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(2, 33, __pyx_L1_error) + __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_objects, 33, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(2, 33, __pyx_L1_error) /* "root_numpy/src/tree.pyx":53 * @@ -76954,16 +82512,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 53 "root_numpy/src/tree.pyx" - __pyx_tuple__68 = PyTuple_Pack(1, __pyx_n_s_fname); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(2, 53, __pyx_L1_error) + __pyx_tuple__71 = PyTuple_Pack(1, __pyx_n_s_fname); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(2, 53, __pyx_L1_error) #line 53 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__68); + __Pyx_GOTREF(__pyx_tuple__71); #line 53 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__68); + __Pyx_GIVEREF(__pyx_tuple__71); #line 53 "root_numpy/src/tree.pyx" - __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__68, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_trees, 53, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(2, 53, __pyx_L1_error) + __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_trees, 53, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(2, 53, __pyx_L1_error) /* "root_numpy/src/tree.pyx":57 * @@ -76974,16 +82532,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 57 "root_numpy/src/tree.pyx" - __pyx_tuple__70 = PyTuple_Pack(1, __pyx_n_s_fname); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(2, 57, __pyx_L1_error) + __pyx_tuple__73 = PyTuple_Pack(1, __pyx_n_s_fname); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(2, 57, __pyx_L1_error) #line 57 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__70); + __Pyx_GOTREF(__pyx_tuple__73); #line 57 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__70); + __Pyx_GIVEREF(__pyx_tuple__73); #line 57 "root_numpy/src/tree.pyx" - __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__70, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_directories, 57, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(2, 57, __pyx_L1_error) + __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_directories, 57, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(2, 57, __pyx_L1_error) /* "root_numpy/src/tree.pyx":61 * @@ -76994,16 +82552,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 61 "root_numpy/src/tree.pyx" - __pyx_tuple__72 = PyTuple_Pack(5, __pyx_n_s_fname, __pyx_n_s_tree, __pyx_n_s_rfile, __pyx_n_s_rtree, __pyx_n_s_structure); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(2, 61, __pyx_L1_error) + __pyx_tuple__75 = PyTuple_Pack(5, __pyx_n_s_fname, __pyx_n_s_tree, __pyx_n_s_rfile, __pyx_n_s_rtree, __pyx_n_s_structure); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(2, 61, __pyx_L1_error) #line 61 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__72); + __Pyx_GOTREF(__pyx_tuple__75); #line 61 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__72); + __Pyx_GIVEREF(__pyx_tuple__75); #line 61 "root_numpy/src/tree.pyx" - __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__72, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_structures, 61, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(2, 61, __pyx_L1_error) + __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_structures, 61, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(2, 61, __pyx_L1_error) /* "root_numpy/src/tree.pyx":80 * @@ -77014,16 +82572,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 80 "root_numpy/src/tree.pyx" - __pyx_tuple__74 = PyTuple_Pack(2, __pyx_n_s_fname, __pyx_n_s_tree); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(2, 80, __pyx_L1_error) + __pyx_tuple__77 = PyTuple_Pack(2, __pyx_n_s_fname, __pyx_n_s_tree); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(2, 80, __pyx_L1_error) #line 80 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__74); + __Pyx_GOTREF(__pyx_tuple__77); #line 80 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__74); + __Pyx_GIVEREF(__pyx_tuple__77); #line 80 "root_numpy/src/tree.pyx" - __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__74, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_branches, 80, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(2, 80, __pyx_L1_error) + __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_branches, 80, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(2, 80, __pyx_L1_error) /* "root_numpy/src/tree.pyx":527 * @@ -77034,16 +82592,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 527 "root_numpy/src/tree.pyx" - __pyx_tuple__76 = PyTuple_Pack(17, __pyx_n_s_fnames, __pyx_n_s_treename, __pyx_n_s_branches, __pyx_n_s_selection, __pyx_n_s_object_selection, __pyx_n_s_start, __pyx_n_s_stop, __pyx_n_s_step, __pyx_n_s_include_weight, __pyx_n_s_weight_name, __pyx_n_s_cache_size, __pyx_n_s_warn_missing_tree, __pyx_n_s_rfile, __pyx_n_s_tree, __pyx_n_s_chain, __pyx_n_s_fn, __pyx_n_s_ret); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(2, 527, __pyx_L1_error) + __pyx_tuple__79 = PyTuple_Pack(17, __pyx_n_s_fnames, __pyx_n_s_treename, __pyx_n_s_branches, __pyx_n_s_selection, __pyx_n_s_object_selection, __pyx_n_s_start, __pyx_n_s_stop, __pyx_n_s_step, __pyx_n_s_include_weight, __pyx_n_s_weight_name, __pyx_n_s_cache_size, __pyx_n_s_warn_missing_tree, __pyx_n_s_rfile, __pyx_n_s_tree, __pyx_n_s_chain, __pyx_n_s_fn, __pyx_n_s_ret); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(2, 527, __pyx_L1_error) #line 527 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__76); + __Pyx_GOTREF(__pyx_tuple__79); #line 527 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__76); + __Pyx_GIVEREF(__pyx_tuple__79); #line 527 "root_numpy/src/tree.pyx" - __pyx_codeobj__77 = (PyObject*)__Pyx_PyCode_New(12, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__76, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_root2array_fromfile, 527, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__77)) __PYX_ERR(2, 527, __pyx_L1_error) + __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(12, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_root2array_fromfile, 527, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(2, 527, __pyx_L1_error) /* "root_numpy/src/tree.pyx":567 * @@ -77054,16 +82612,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 567 "root_numpy/src/tree.pyx" - __pyx_tuple__78 = PyTuple_Pack(11, __pyx_n_s_tree, __pyx_n_s_branches, __pyx_n_s_selection, __pyx_n_s_object_selection, __pyx_n_s_start, __pyx_n_s_stop, __pyx_n_s_step, __pyx_n_s_include_weight, __pyx_n_s_weight_name, __pyx_n_s_cache_size, __pyx_n_s_rtree); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(2, 567, __pyx_L1_error) + __pyx_tuple__81 = PyTuple_Pack(11, __pyx_n_s_tree, __pyx_n_s_branches, __pyx_n_s_selection, __pyx_n_s_object_selection, __pyx_n_s_start, __pyx_n_s_stop, __pyx_n_s_step, __pyx_n_s_include_weight, __pyx_n_s_weight_name, __pyx_n_s_cache_size, __pyx_n_s_rtree); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(2, 567, __pyx_L1_error) #line 567 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__78); + __Pyx_GOTREF(__pyx_tuple__81); #line 567 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__78); + __Pyx_GIVEREF(__pyx_tuple__81); #line 567 "root_numpy/src/tree.pyx" - __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__78, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_root2array_fromtree, 567, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(2, 567, __pyx_L1_error) + __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_root2array_fromtree, 567, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(2, 567, __pyx_L1_error) /* "root_numpy/src/tree.pyx":639 * @@ -77074,16 +82632,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 639 "root_numpy/src/tree.pyx" - __pyx_tuple__80 = PyTuple_Pack(5, __pyx_n_s_arr, __pyx_n_s_name, __pyx_n_s_tree, __pyx_n_s_intree, __pyx_n_s_outtree); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(2, 639, __pyx_L1_error) + __pyx_tuple__83 = PyTuple_Pack(5, __pyx_n_s_arr, __pyx_n_s_name, __pyx_n_s_tree, __pyx_n_s_intree, __pyx_n_s_outtree); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(2, 639, __pyx_L1_error) #line 639 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__80); + __Pyx_GOTREF(__pyx_tuple__83); #line 639 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__80); + __Pyx_GIVEREF(__pyx_tuple__83); #line 639 "root_numpy/src/tree.pyx" - __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_array2tree_toCObj, 639, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(2, 639, __pyx_L1_error) + __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_array2tree_toCObj, 639, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(2, 639, __pyx_L1_error) /* "root_numpy/src/tree.pyx":648 * @@ -77094,16 +82652,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 648 "root_numpy/src/tree.pyx" - __pyx_tuple__82 = PyTuple_Pack(6, __pyx_n_s_arr, __pyx_n_s_filename, __pyx_n_s_treename, __pyx_n_s_mode, __pyx_n_s_rfile, __pyx_n_s_tree); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(2, 648, __pyx_L1_error) + __pyx_tuple__85 = PyTuple_Pack(6, __pyx_n_s_arr, __pyx_n_s_filename, __pyx_n_s_treename, __pyx_n_s_mode, __pyx_n_s_rfile, __pyx_n_s_tree); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(2, 648, __pyx_L1_error) #line 648 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_tuple__82); + __Pyx_GOTREF(__pyx_tuple__85); #line 648 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_tuple__82); + __Pyx_GIVEREF(__pyx_tuple__85); #line 648 "root_numpy/src/tree.pyx" - __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_array2root, 648, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(2, 648, __pyx_L1_error) + __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_array2root, 648, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(2, 648, __pyx_L1_error) /* "root_numpy/src/array.pyx":10 * @@ -77114,16 +82672,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 10 "root_numpy/src/array.pyx" - __pyx_tuple__84 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(3, 10, __pyx_L1_error) + __pyx_tuple__87 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(3, 10, __pyx_L1_error) #line 10 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__84); + __Pyx_GOTREF(__pyx_tuple__87); #line 10 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__84); + __Pyx_GIVEREF(__pyx_tuple__87); #line 10 "root_numpy/src/array.pyx" - __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_d, 10, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(3, 10, __pyx_L1_error) + __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_d, 10, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(3, 10, __pyx_L1_error) /* "root_numpy/src/array.pyx":15 * @@ -77134,16 +82692,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 15 "root_numpy/src/array.pyx" - __pyx_tuple__86 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(3, 15, __pyx_L1_error) + __pyx_tuple__89 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(3, 15, __pyx_L1_error) #line 15 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__86); + __Pyx_GOTREF(__pyx_tuple__89); #line 15 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__86); + __Pyx_GIVEREF(__pyx_tuple__89); #line 15 "root_numpy/src/array.pyx" - __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_f, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(3, 15, __pyx_L1_error) + __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_f, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(3, 15, __pyx_L1_error) /* "root_numpy/src/array.pyx":20 * @@ -77154,16 +82712,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 20 "root_numpy/src/array.pyx" - __pyx_tuple__88 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(3, 20, __pyx_L1_error) + __pyx_tuple__91 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(3, 20, __pyx_L1_error) #line 20 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__88); + __Pyx_GOTREF(__pyx_tuple__91); #line 20 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__88); + __Pyx_GIVEREF(__pyx_tuple__91); #line 20 "root_numpy/src/array.pyx" - __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__88, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_l, 20, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(3, 20, __pyx_L1_error) + __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_l, 20, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(3, 20, __pyx_L1_error) /* "root_numpy/src/array.pyx":25 * @@ -77174,16 +82732,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 25 "root_numpy/src/array.pyx" - __pyx_tuple__90 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(3, 25, __pyx_L1_error) + __pyx_tuple__93 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(3, 25, __pyx_L1_error) #line 25 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__90); + __Pyx_GOTREF(__pyx_tuple__93); #line 25 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__90); + __Pyx_GIVEREF(__pyx_tuple__93); #line 25 "root_numpy/src/array.pyx" - __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_i, 25, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(3, 25, __pyx_L1_error) + __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_i, 25, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(3, 25, __pyx_L1_error) /* "root_numpy/src/array.pyx":30 * @@ -77194,16 +82752,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 30 "root_numpy/src/array.pyx" - __pyx_tuple__92 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(3, 30, __pyx_L1_error) + __pyx_tuple__95 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(3, 30, __pyx_L1_error) #line 30 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__92); + __Pyx_GOTREF(__pyx_tuple__95); #line 30 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__92); + __Pyx_GIVEREF(__pyx_tuple__95); #line 30 "root_numpy/src/array.pyx" - __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__92, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_s, 30, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(3, 30, __pyx_L1_error) + __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_s, 30, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(3, 30, __pyx_L1_error) /* "root_numpy/src/array.pyx":35 * @@ -77214,16 +82772,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 35 "root_numpy/src/array.pyx" - __pyx_tuple__94 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(3, 35, __pyx_L1_error) + __pyx_tuple__97 = PyTuple_Pack(2, __pyx_n_s_root_arr, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(3, 35, __pyx_L1_error) #line 35 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__94); + __Pyx_GOTREF(__pyx_tuple__97); #line 35 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__94); + __Pyx_GIVEREF(__pyx_tuple__97); #line 35 "root_numpy/src/array.pyx" - __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__94, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_c, 35, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(3, 35, __pyx_L1_error) + __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_c, 35, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(3, 35, __pyx_L1_error) /* "root_numpy/src/array.pyx":40 * @@ -77234,16 +82792,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 40 "root_numpy/src/array.pyx" - __pyx_tuple__96 = PyTuple_Pack(3, __pyx_n_s_root_hist, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(3, 40, __pyx_L1_error) + __pyx_tuple__99 = PyTuple_Pack(3, __pyx_n_s_root_hist, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(3, 40, __pyx_L1_error) #line 40 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__96); + __Pyx_GOTREF(__pyx_tuple__99); #line 40 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__96); + __Pyx_GIVEREF(__pyx_tuple__99); #line 40 "root_numpy/src/array.pyx" - __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h1c, 40, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(3, 40, __pyx_L1_error) + __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h1c, 40, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(3, 40, __pyx_L1_error) /* "root_numpy/src/array.pyx":46 * @@ -77254,16 +82812,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 46 "root_numpy/src/array.pyx" - __pyx_tuple__98 = PyTuple_Pack(3, __pyx_n_s_root_hist, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(3, 46, __pyx_L1_error) + __pyx_tuple__101 = PyTuple_Pack(3, __pyx_n_s_root_hist, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(3, 46, __pyx_L1_error) #line 46 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__98); + __Pyx_GOTREF(__pyx_tuple__101); #line 46 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__98); + __Pyx_GIVEREF(__pyx_tuple__101); #line 46 "root_numpy/src/array.pyx" - __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__98, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h2c, 46, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(3, 46, __pyx_L1_error) + __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h2c, 46, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(3, 46, __pyx_L1_error) /* "root_numpy/src/array.pyx":52 * @@ -77274,16 +82832,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 52 "root_numpy/src/array.pyx" - __pyx_tuple__100 = PyTuple_Pack(3, __pyx_n_s_root_hist, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(3, 52, __pyx_L1_error) + __pyx_tuple__103 = PyTuple_Pack(3, __pyx_n_s_root_hist, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(3, 52, __pyx_L1_error) #line 52 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__100); + __Pyx_GOTREF(__pyx_tuple__103); #line 52 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__100); + __Pyx_GIVEREF(__pyx_tuple__103); #line 52 "root_numpy/src/array.pyx" - __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__100, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h3c, 52, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(3, 52, __pyx_L1_error) + __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h3c, 52, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(3, 52, __pyx_L1_error) /* "root_numpy/src/array.pyx":62 * @cython.boundscheck(False) @@ -77294,16 +82852,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 62 "root_numpy/src/array.pyx" - __pyx_tuple__102 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(3, 62, __pyx_L1_error) + __pyx_tuple__105 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(3, 62, __pyx_L1_error) #line 62 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__102); + __Pyx_GOTREF(__pyx_tuple__105); #line 62 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__102); + __Pyx_GIVEREF(__pyx_tuple__105); #line 62 "root_numpy/src/array.pyx" - __pyx_codeobj__103 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__102, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1d_array, 62, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__103)) __PYX_ERR(3, 62, __pyx_L1_error) + __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1d_array, 62, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(3, 62, __pyx_L1_error) /* "root_numpy/src/array.pyx":70 * @cython.boundscheck(False) @@ -77314,16 +82872,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 70 "root_numpy/src/array.pyx" - __pyx_tuple__104 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(3, 70, __pyx_L1_error) + __pyx_tuple__107 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(3, 70, __pyx_L1_error) #line 70 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__104); + __Pyx_GOTREF(__pyx_tuple__107); #line 70 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__104); + __Pyx_GIVEREF(__pyx_tuple__107); #line 70 "root_numpy/src/array.pyx" - __pyx_codeobj__105 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__104, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2d_array, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__105)) __PYX_ERR(3, 70, __pyx_L1_error) + __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2d_array, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(3, 70, __pyx_L1_error) /* "root_numpy/src/array.pyx":78 * @cython.boundscheck(False) @@ -77334,16 +82892,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 78 "root_numpy/src/array.pyx" - __pyx_tuple__106 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(3, 78, __pyx_L1_error) + __pyx_tuple__109 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(3, 78, __pyx_L1_error) #line 78 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__106); + __Pyx_GOTREF(__pyx_tuple__109); #line 78 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__106); + __Pyx_GIVEREF(__pyx_tuple__109); #line 78 "root_numpy/src/array.pyx" - __pyx_codeobj__107 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__106, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3d_array, 78, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__107)) __PYX_ERR(3, 78, __pyx_L1_error) + __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3d_array, 78, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(3, 78, __pyx_L1_error) /* "root_numpy/src/array.pyx":86 * @cython.boundscheck(False) @@ -77354,16 +82912,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 86 "root_numpy/src/array.pyx" - __pyx_tuple__108 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(3, 86, __pyx_L1_error) + __pyx_tuple__111 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(3, 86, __pyx_L1_error) #line 86 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__108); + __Pyx_GOTREF(__pyx_tuple__111); #line 86 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__108); + __Pyx_GIVEREF(__pyx_tuple__111); #line 86 "root_numpy/src/array.pyx" - __pyx_codeobj__109 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__108, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1f_array, 86, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__109)) __PYX_ERR(3, 86, __pyx_L1_error) + __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1f_array, 86, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(3, 86, __pyx_L1_error) /* "root_numpy/src/array.pyx":94 * @cython.boundscheck(False) @@ -77374,16 +82932,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 94 "root_numpy/src/array.pyx" - __pyx_tuple__110 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(3, 94, __pyx_L1_error) + __pyx_tuple__113 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(3, 94, __pyx_L1_error) #line 94 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__110); + __Pyx_GOTREF(__pyx_tuple__113); #line 94 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__110); + __Pyx_GIVEREF(__pyx_tuple__113); #line 94 "root_numpy/src/array.pyx" - __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__110, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2f_array, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(3, 94, __pyx_L1_error) + __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2f_array, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(3, 94, __pyx_L1_error) /* "root_numpy/src/array.pyx":102 * @cython.boundscheck(False) @@ -77394,16 +82952,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 102 "root_numpy/src/array.pyx" - __pyx_tuple__112 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(3, 102, __pyx_L1_error) + __pyx_tuple__115 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(3, 102, __pyx_L1_error) #line 102 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__112); + __Pyx_GOTREF(__pyx_tuple__115); #line 102 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__112); + __Pyx_GIVEREF(__pyx_tuple__115); #line 102 "root_numpy/src/array.pyx" - __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__112, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3f_array, 102, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(3, 102, __pyx_L1_error) + __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3f_array, 102, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(3, 102, __pyx_L1_error) /* "root_numpy/src/array.pyx":110 * @cython.boundscheck(False) @@ -77414,16 +82972,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 110 "root_numpy/src/array.pyx" - __pyx_tuple__114 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(3, 110, __pyx_L1_error) + __pyx_tuple__117 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__117)) __PYX_ERR(3, 110, __pyx_L1_error) #line 110 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__114); + __Pyx_GOTREF(__pyx_tuple__117); #line 110 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__114); + __Pyx_GIVEREF(__pyx_tuple__117); #line 110 "root_numpy/src/array.pyx" - __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__114, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1i_array, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(3, 110, __pyx_L1_error) + __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1i_array, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(3, 110, __pyx_L1_error) /* "root_numpy/src/array.pyx":118 * @cython.boundscheck(False) @@ -77434,16 +82992,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 118 "root_numpy/src/array.pyx" - __pyx_tuple__116 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(3, 118, __pyx_L1_error) + __pyx_tuple__119 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(3, 118, __pyx_L1_error) #line 118 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__116); + __Pyx_GOTREF(__pyx_tuple__119); #line 118 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__116); + __Pyx_GIVEREF(__pyx_tuple__119); #line 118 "root_numpy/src/array.pyx" - __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__116, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2i_array, 118, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(3, 118, __pyx_L1_error) + __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2i_array, 118, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(3, 118, __pyx_L1_error) /* "root_numpy/src/array.pyx":126 * @cython.boundscheck(False) @@ -77454,16 +83012,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 126 "root_numpy/src/array.pyx" - __pyx_tuple__118 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(3, 126, __pyx_L1_error) + __pyx_tuple__121 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(3, 126, __pyx_L1_error) #line 126 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__118); + __Pyx_GOTREF(__pyx_tuple__121); #line 126 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__118); + __Pyx_GIVEREF(__pyx_tuple__121); #line 126 "root_numpy/src/array.pyx" - __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__118, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3i_array, 126, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(3, 126, __pyx_L1_error) + __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3i_array, 126, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(3, 126, __pyx_L1_error) /* "root_numpy/src/array.pyx":134 * @cython.boundscheck(False) @@ -77474,16 +83032,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 134 "root_numpy/src/array.pyx" - __pyx_tuple__120 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(3, 134, __pyx_L1_error) + __pyx_tuple__123 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(3, 134, __pyx_L1_error) #line 134 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__120); + __Pyx_GOTREF(__pyx_tuple__123); #line 134 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__120); + __Pyx_GIVEREF(__pyx_tuple__123); #line 134 "root_numpy/src/array.pyx" - __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__120, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1s_array, 134, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) __PYX_ERR(3, 134, __pyx_L1_error) + __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1s_array, 134, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(3, 134, __pyx_L1_error) /* "root_numpy/src/array.pyx":142 * @cython.boundscheck(False) @@ -77494,16 +83052,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 142 "root_numpy/src/array.pyx" - __pyx_tuple__122 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(3, 142, __pyx_L1_error) + __pyx_tuple__125 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(3, 142, __pyx_L1_error) #line 142 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__122); + __Pyx_GOTREF(__pyx_tuple__125); #line 142 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__122); + __Pyx_GIVEREF(__pyx_tuple__125); #line 142 "root_numpy/src/array.pyx" - __pyx_codeobj__123 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__122, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2s_array, 142, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__123)) __PYX_ERR(3, 142, __pyx_L1_error) + __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2s_array, 142, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(3, 142, __pyx_L1_error) /* "root_numpy/src/array.pyx":150 * @cython.boundscheck(False) @@ -77514,16 +83072,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 150 "root_numpy/src/array.pyx" - __pyx_tuple__124 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(3, 150, __pyx_L1_error) + __pyx_tuple__127 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(3, 150, __pyx_L1_error) #line 150 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__124); + __Pyx_GOTREF(__pyx_tuple__127); #line 150 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__124); + __Pyx_GIVEREF(__pyx_tuple__127); #line 150 "root_numpy/src/array.pyx" - __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__124, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3s_array, 150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) __PYX_ERR(3, 150, __pyx_L1_error) + __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3s_array, 150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(3, 150, __pyx_L1_error) /* "root_numpy/src/array.pyx":158 * @cython.boundscheck(False) @@ -77534,16 +83092,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 158 "root_numpy/src/array.pyx" - __pyx_tuple__126 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(3, 158, __pyx_L1_error) + __pyx_tuple__129 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(3, 158, __pyx_L1_error) #line 158 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__126); + __Pyx_GOTREF(__pyx_tuple__129); #line 158 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__126); + __Pyx_GIVEREF(__pyx_tuple__129); #line 158 "root_numpy/src/array.pyx" - __pyx_codeobj__127 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__126, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1c_array, 158, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__127)) __PYX_ERR(3, 158, __pyx_L1_error) + __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1c_array, 158, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(3, 158, __pyx_L1_error) /* "root_numpy/src/array.pyx":166 * @cython.boundscheck(False) @@ -77554,16 +83112,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 166 "root_numpy/src/array.pyx" - __pyx_tuple__128 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(3, 166, __pyx_L1_error) + __pyx_tuple__131 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(3, 166, __pyx_L1_error) #line 166 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__128); + __Pyx_GOTREF(__pyx_tuple__131); #line 166 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__128); + __Pyx_GIVEREF(__pyx_tuple__131); #line 166 "root_numpy/src/array.pyx" - __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__128, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2c_array, 166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__129)) __PYX_ERR(3, 166, __pyx_L1_error) + __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2c_array, 166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(3, 166, __pyx_L1_error) /* "root_numpy/src/array.pyx":174 * @cython.boundscheck(False) @@ -77574,16 +83132,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 174 "root_numpy/src/array.pyx" - __pyx_tuple__130 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(3, 174, __pyx_L1_error) + __pyx_tuple__133 = PyTuple_Pack(4, __pyx_n_s_root_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_arr_2); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(3, 174, __pyx_L1_error) #line 174 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_tuple__130); + __Pyx_GOTREF(__pyx_tuple__133); #line 174 "root_numpy/src/array.pyx" - __Pyx_GIVEREF(__pyx_tuple__130); + __Pyx_GIVEREF(__pyx_tuple__133); #line 174 "root_numpy/src/array.pyx" - __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__130, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3c_array, 174, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__131)) __PYX_ERR(3, 174, __pyx_L1_error) + __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3c_array, 174, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(3, 174, __pyx_L1_error) /* "root_numpy/src/matrix.pyx":6 * @cython.boundscheck(False) @@ -77594,16 +83152,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 6 "root_numpy/src/matrix.pyx" - __pyx_tuple__132 = PyTuple_Pack(5, __pyx_n_s_root_mat, __pyx_n_s_mat, __pyx_n_s_arr, __pyx_n_s_i, __pyx_n_s_j); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(4, 6, __pyx_L1_error) + __pyx_tuple__135 = PyTuple_Pack(5, __pyx_n_s_root_mat, __pyx_n_s_mat, __pyx_n_s_arr, __pyx_n_s_i, __pyx_n_s_j); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(4, 6, __pyx_L1_error) #line 6 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_tuple__132); + __Pyx_GOTREF(__pyx_tuple__135); #line 6 "root_numpy/src/matrix.pyx" - __Pyx_GIVEREF(__pyx_tuple__132); + __Pyx_GIVEREF(__pyx_tuple__135); #line 6 "root_numpy/src/matrix.pyx" - __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__132, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_4, __pyx_n_s_matrix_d, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__133)) __PYX_ERR(4, 6, __pyx_L1_error) + __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_4, __pyx_n_s_matrix_d, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(4, 6, __pyx_L1_error) /* "root_numpy/src/matrix.pyx":19 * @cython.boundscheck(False) @@ -77614,16 +83172,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 19 "root_numpy/src/matrix.pyx" - __pyx_tuple__134 = PyTuple_Pack(5, __pyx_n_s_root_mat, __pyx_n_s_mat, __pyx_n_s_arr, __pyx_n_s_i, __pyx_n_s_j); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(4, 19, __pyx_L1_error) + __pyx_tuple__137 = PyTuple_Pack(5, __pyx_n_s_root_mat, __pyx_n_s_mat, __pyx_n_s_arr, __pyx_n_s_i, __pyx_n_s_j); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(4, 19, __pyx_L1_error) #line 19 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_tuple__134); + __Pyx_GOTREF(__pyx_tuple__137); #line 19 "root_numpy/src/matrix.pyx" - __Pyx_GIVEREF(__pyx_tuple__134); + __Pyx_GIVEREF(__pyx_tuple__137); #line 19 "root_numpy/src/matrix.pyx" - __pyx_codeobj__135 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__134, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_4, __pyx_n_s_matrix_f, 19, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__135)) __PYX_ERR(4, 19, __pyx_L1_error) + __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_4, __pyx_n_s_matrix_f, 19, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(4, 19, __pyx_L1_error) /* "root_numpy/src/sample.pyx":6 * @cython.boundscheck(False) @@ -77634,16 +83192,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 6 "root_numpy/src/sample.pyx" - __pyx_tuple__136 = PyTuple_Pack(5, __pyx_n_s_f1, __pyx_n_s_n_samples, __pyx_n_s_f1_2, __pyx_n_s_i, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(5, 6, __pyx_L1_error) + __pyx_tuple__139 = PyTuple_Pack(5, __pyx_n_s_f1, __pyx_n_s_n_samples, __pyx_n_s_f1_2, __pyx_n_s_i, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(5, 6, __pyx_L1_error) #line 6 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_tuple__136); + __Pyx_GOTREF(__pyx_tuple__139); #line 6 "root_numpy/src/sample.pyx" - __Pyx_GIVEREF(__pyx_tuple__136); + __Pyx_GIVEREF(__pyx_tuple__139); #line 6 "root_numpy/src/sample.pyx" - __pyx_codeobj__137 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__136, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f1, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__137)) __PYX_ERR(5, 6, __pyx_L1_error) + __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f1, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(5, 6, __pyx_L1_error) /* "root_numpy/src/sample.pyx":17 * @cython.boundscheck(False) @@ -77654,16 +83212,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 17 "root_numpy/src/sample.pyx" - __pyx_tuple__138 = PyTuple_Pack(5, __pyx_n_s_h1, __pyx_n_s_n_samples, __pyx_n_s_h1_2, __pyx_n_s_i, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(5, 17, __pyx_L1_error) + __pyx_tuple__141 = PyTuple_Pack(5, __pyx_n_s_h1, __pyx_n_s_n_samples, __pyx_n_s_h1_2, __pyx_n_s_i, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(5, 17, __pyx_L1_error) #line 17 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_tuple__138); + __Pyx_GOTREF(__pyx_tuple__141); #line 17 "root_numpy/src/sample.pyx" - __Pyx_GIVEREF(__pyx_tuple__138); + __Pyx_GIVEREF(__pyx_tuple__141); #line 17 "root_numpy/src/sample.pyx" - __pyx_codeobj__139 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__138, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h1, 17, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__139)) __PYX_ERR(5, 17, __pyx_L1_error) + __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h1, 17, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(5, 17, __pyx_L1_error) /* "root_numpy/src/sample.pyx":28 * @cython.boundscheck(False) @@ -77674,16 +83232,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 28 "root_numpy/src/sample.pyx" - __pyx_tuple__140 = PyTuple_Pack(7, __pyx_n_s_f2, __pyx_n_s_n_samples, __pyx_n_s_f2_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(5, 28, __pyx_L1_error) + __pyx_tuple__143 = PyTuple_Pack(7, __pyx_n_s_f2, __pyx_n_s_n_samples, __pyx_n_s_f2_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(5, 28, __pyx_L1_error) #line 28 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_tuple__140); + __Pyx_GOTREF(__pyx_tuple__143); #line 28 "root_numpy/src/sample.pyx" - __Pyx_GIVEREF(__pyx_tuple__140); + __Pyx_GIVEREF(__pyx_tuple__143); #line 28 "root_numpy/src/sample.pyx" - __pyx_codeobj__141 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__140, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f2, 28, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__141)) __PYX_ERR(5, 28, __pyx_L1_error) + __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f2, 28, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(5, 28, __pyx_L1_error) /* "root_numpy/src/sample.pyx":43 * @cython.boundscheck(False) @@ -77694,16 +83252,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 43 "root_numpy/src/sample.pyx" - __pyx_tuple__142 = PyTuple_Pack(7, __pyx_n_s_h2, __pyx_n_s_n_samples, __pyx_n_s_h2_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(5, 43, __pyx_L1_error) + __pyx_tuple__145 = PyTuple_Pack(7, __pyx_n_s_h2, __pyx_n_s_n_samples, __pyx_n_s_h2_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(5, 43, __pyx_L1_error) #line 43 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_tuple__142); + __Pyx_GOTREF(__pyx_tuple__145); #line 43 "root_numpy/src/sample.pyx" - __Pyx_GIVEREF(__pyx_tuple__142); + __Pyx_GIVEREF(__pyx_tuple__145); #line 43 "root_numpy/src/sample.pyx" - __pyx_codeobj__143 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h2, 43, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__143)) __PYX_ERR(5, 43, __pyx_L1_error) + __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h2, 43, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(5, 43, __pyx_L1_error) /* "root_numpy/src/sample.pyx":58 * @cython.boundscheck(False) @@ -77714,16 +83272,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 58 "root_numpy/src/sample.pyx" - __pyx_tuple__144 = PyTuple_Pack(8, __pyx_n_s_f3, __pyx_n_s_n_samples, __pyx_n_s_f3_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_z, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(5, 58, __pyx_L1_error) + __pyx_tuple__147 = PyTuple_Pack(8, __pyx_n_s_f3, __pyx_n_s_n_samples, __pyx_n_s_f3_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_z, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(5, 58, __pyx_L1_error) #line 58 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_tuple__144); + __Pyx_GOTREF(__pyx_tuple__147); #line 58 "root_numpy/src/sample.pyx" - __Pyx_GIVEREF(__pyx_tuple__144); + __Pyx_GIVEREF(__pyx_tuple__147); #line 58 "root_numpy/src/sample.pyx" - __pyx_codeobj__145 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__144, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f3, 58, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__145)) __PYX_ERR(5, 58, __pyx_L1_error) + __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f3, 58, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(5, 58, __pyx_L1_error) /* "root_numpy/src/sample.pyx":75 * @cython.boundscheck(False) @@ -77734,16 +83292,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 75 "root_numpy/src/sample.pyx" - __pyx_tuple__146 = PyTuple_Pack(8, __pyx_n_s_h3, __pyx_n_s_n_samples, __pyx_n_s_h3_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_z, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(5, 75, __pyx_L1_error) + __pyx_tuple__149 = PyTuple_Pack(8, __pyx_n_s_h3, __pyx_n_s_n_samples, __pyx_n_s_h3_2, __pyx_n_s_i, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_z, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(5, 75, __pyx_L1_error) #line 75 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_tuple__146); + __Pyx_GOTREF(__pyx_tuple__149); #line 75 "root_numpy/src/sample.pyx" - __Pyx_GIVEREF(__pyx_tuple__146); + __Pyx_GIVEREF(__pyx_tuple__149); #line 75 "root_numpy/src/sample.pyx" - __pyx_codeobj__147 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__146, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h3, 75, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__147)) __PYX_ERR(5, 75, __pyx_L1_error) + __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h3, 75, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(5, 75, __pyx_L1_error) /* "root_numpy/src/hist.pyx":3 * @cython.boundscheck(False) @@ -77754,16 +83312,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 3 "root_numpy/src/hist.pyx" - __pyx_tuple__148 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(6, 3, __pyx_L1_error) + __pyx_tuple__151 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(6, 3, __pyx_L1_error) #line 3 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__148); + __Pyx_GOTREF(__pyx_tuple__151); #line 3 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__148); + __Pyx_GIVEREF(__pyx_tuple__151); #line 3 "root_numpy/src/hist.pyx" - __pyx_codeobj__149 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__148, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__149)) __PYX_ERR(6, 3, __pyx_L1_error) + __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(6, 3, __pyx_L1_error) /* "root_numpy/src/hist.pyx":31 * @cython.boundscheck(False) @@ -77774,16 +83332,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 31 "root_numpy/src/hist.pyx" - __pyx_tuple__150 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(6, 31, __pyx_L1_error) + __pyx_tuple__153 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(6, 31, __pyx_L1_error) #line 31 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__150); + __Pyx_GOTREF(__pyx_tuple__153); #line 31 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__150); + __Pyx_GIVEREF(__pyx_tuple__153); #line 31 "root_numpy/src/hist.pyx" - __pyx_codeobj__151 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__150, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h2, 31, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__151)) __PYX_ERR(6, 31, __pyx_L1_error) + __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h2, 31, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(6, 31, __pyx_L1_error) /* "root_numpy/src/hist.pyx":59 * @cython.boundscheck(False) @@ -77794,16 +83352,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 59 "root_numpy/src/hist.pyx" - __pyx_tuple__152 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(6, 59, __pyx_L1_error) + __pyx_tuple__155 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(6, 59, __pyx_L1_error) #line 59 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__152); + __Pyx_GOTREF(__pyx_tuple__155); #line 59 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__152); + __Pyx_GIVEREF(__pyx_tuple__155); #line 59 "root_numpy/src/hist.pyx" - __pyx_codeobj__153 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__152, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h3, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__153)) __PYX_ERR(6, 59, __pyx_L1_error) + __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h3, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(6, 59, __pyx_L1_error) /* "root_numpy/src/hist.pyx":87 * @cython.boundscheck(False) @@ -77814,16 +83372,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 87 "root_numpy/src/hist.pyx" - __pyx_tuple__154 = PyTuple_Pack(9, __pyx_n_s_profile, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_profile_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(6, 87, __pyx_L1_error) + __pyx_tuple__157 = PyTuple_Pack(9, __pyx_n_s_profile, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_profile_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(6, 87, __pyx_L1_error) #line 87 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__154); + __Pyx_GOTREF(__pyx_tuple__157); #line 87 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__154); + __Pyx_GIVEREF(__pyx_tuple__157); #line 87 "root_numpy/src/hist.pyx" - __pyx_codeobj__155 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__154, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p1, 87, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__155)) __PYX_ERR(6, 87, __pyx_L1_error) + __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p1, 87, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(6, 87, __pyx_L1_error) /* "root_numpy/src/hist.pyx":115 * @cython.boundscheck(False) @@ -77834,16 +83392,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 115 "root_numpy/src/hist.pyx" - __pyx_tuple__156 = PyTuple_Pack(9, __pyx_n_s_profile, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_profile_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(6, 115, __pyx_L1_error) + __pyx_tuple__159 = PyTuple_Pack(9, __pyx_n_s_profile, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_profile_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(6, 115, __pyx_L1_error) #line 115 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__156); + __Pyx_GOTREF(__pyx_tuple__159); #line 115 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__156); + __Pyx_GIVEREF(__pyx_tuple__159); #line 115 "root_numpy/src/hist.pyx" - __pyx_codeobj__157 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__156, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p2, 115, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__157)) __PYX_ERR(6, 115, __pyx_L1_error) + __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p2, 115, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(6, 115, __pyx_L1_error) /* "root_numpy/src/hist.pyx":143 * @cython.boundscheck(False) @@ -77854,16 +83412,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 143 "root_numpy/src/hist.pyx" - __pyx_tuple__158 = PyTuple_Pack(9, __pyx_n_s_profile, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_profile_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(6, 143, __pyx_L1_error) + __pyx_tuple__161 = PyTuple_Pack(9, __pyx_n_s_profile, __pyx_n_s_array, __pyx_n_s_weights, __pyx_n_s_return_indices, __pyx_n_s_profile_2, __pyx_n_s_size, __pyx_n_s_idx, __pyx_n_s_i, __pyx_n_s_bin_idx); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(6, 143, __pyx_L1_error) #line 143 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__158); + __Pyx_GOTREF(__pyx_tuple__161); #line 143 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__158); + __Pyx_GIVEREF(__pyx_tuple__161); #line 143 "root_numpy/src/hist.pyx" - __pyx_codeobj__159 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__158, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p3, 143, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__159)) __PYX_ERR(6, 143, __pyx_L1_error) + __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p3, 143, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(6, 143, __pyx_L1_error) /* "root_numpy/src/hist.pyx":171 * @cython.boundscheck(False) @@ -77874,16 +83432,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 171 "root_numpy/src/hist.pyx" - __pyx_tuple__160 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_shape, __pyx_n_s_dtype, __pyx_n_s_hist_2, __pyx_n_s_content, __pyx_n_s_ibin, __pyx_n_s_nbins, __pyx_n_s_array, __pyx_n_s_array_ravel_view); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(6, 171, __pyx_L1_error) + __pyx_tuple__163 = PyTuple_Pack(9, __pyx_n_s_hist, __pyx_n_s_shape, __pyx_n_s_dtype, __pyx_n_s_hist_2, __pyx_n_s_content, __pyx_n_s_ibin, __pyx_n_s_nbins, __pyx_n_s_array, __pyx_n_s_array_ravel_view); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(6, 171, __pyx_L1_error) #line 171 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__160); + __Pyx_GOTREF(__pyx_tuple__163); #line 171 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__160); + __Pyx_GIVEREF(__pyx_tuple__163); #line 171 "root_numpy/src/hist.pyx" - __pyx_codeobj__161 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__160, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_thn2array, 171, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__161)) __PYX_ERR(6, 171, __pyx_L1_error) + __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_thn2array, 171, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(6, 171, __pyx_L1_error) /* "root_numpy/src/hist.pyx":185 * @cython.boundscheck(False) @@ -77894,16 +83452,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 185 "root_numpy/src/hist.pyx" - __pyx_tuple__162 = PyTuple_Pack(10, __pyx_n_s_hist, __pyx_n_s_shape, __pyx_n_s_dtype, __pyx_n_s_hist_2, __pyx_n_s_content, __pyx_n_s_ibin, __pyx_n_s_nbins, __pyx_n_s_array, __pyx_n_s_coord, __pyx_n_s_itemset); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(6, 185, __pyx_L1_error) + __pyx_tuple__165 = PyTuple_Pack(10, __pyx_n_s_hist, __pyx_n_s_shape, __pyx_n_s_dtype, __pyx_n_s_hist_2, __pyx_n_s_content, __pyx_n_s_ibin, __pyx_n_s_nbins, __pyx_n_s_array, __pyx_n_s_coord, __pyx_n_s_itemset); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(6, 185, __pyx_L1_error) #line 185 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_tuple__162); + __Pyx_GOTREF(__pyx_tuple__165); #line 185 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_tuple__162); + __Pyx_GIVEREF(__pyx_tuple__165); #line 185 "root_numpy/src/hist.pyx" - __pyx_codeobj__163 = (PyObject*)__Pyx_PyCode_New(3, 0, 10, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__162, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_thnsparse2array, 185, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__163)) __PYX_ERR(6, 185, __pyx_L1_error) + __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(3, 0, 10, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_thnsparse2array, 185, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(6, 185, __pyx_L1_error) /* "root_numpy/src/graph.pyx":3 * @cython.boundscheck(False) @@ -77914,16 +83472,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 3 "root_numpy/src/graph.pyx" - __pyx_tuple__164 = PyTuple_Pack(5, __pyx_n_s_graph, __pyx_n_s_array, __pyx_n_s_graph_2, __pyx_n_s_size, __pyx_n_s_i); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(7, 3, __pyx_L1_error) + __pyx_tuple__167 = PyTuple_Pack(5, __pyx_n_s_graph, __pyx_n_s_array, __pyx_n_s_graph_2, __pyx_n_s_size, __pyx_n_s_i); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(7, 3, __pyx_L1_error) #line 3 "root_numpy/src/graph.pyx" - __Pyx_GOTREF(__pyx_tuple__164); + __Pyx_GOTREF(__pyx_tuple__167); #line 3 "root_numpy/src/graph.pyx" - __Pyx_GIVEREF(__pyx_tuple__164); + __Pyx_GIVEREF(__pyx_tuple__167); #line 3 "root_numpy/src/graph.pyx" - __pyx_codeobj__165 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__164, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_7, __pyx_n_s_fill_g1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__165)) __PYX_ERR(7, 3, __pyx_L1_error) + __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_7, __pyx_n_s_fill_g1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(7, 3, __pyx_L1_error) /* "root_numpy/src/graph.pyx":16 * @cython.boundscheck(False) @@ -77934,16 +83492,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 16 "root_numpy/src/graph.pyx" - __pyx_tuple__166 = PyTuple_Pack(5, __pyx_n_s_graph, __pyx_n_s_array, __pyx_n_s_graph_2, __pyx_n_s_size, __pyx_n_s_i); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(7, 16, __pyx_L1_error) + __pyx_tuple__169 = PyTuple_Pack(5, __pyx_n_s_graph, __pyx_n_s_array, __pyx_n_s_graph_2, __pyx_n_s_size, __pyx_n_s_i); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(7, 16, __pyx_L1_error) #line 16 "root_numpy/src/graph.pyx" - __Pyx_GOTREF(__pyx_tuple__166); + __Pyx_GOTREF(__pyx_tuple__169); #line 16 "root_numpy/src/graph.pyx" - __Pyx_GIVEREF(__pyx_tuple__166); + __Pyx_GIVEREF(__pyx_tuple__169); #line 16 "root_numpy/src/graph.pyx" - __pyx_codeobj__167 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__166, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_7, __pyx_n_s_fill_g2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__167)) __PYX_ERR(7, 16, __pyx_L1_error) + __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_7, __pyx_n_s_fill_g2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(7, 16, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":3 * @cython.boundscheck(False) @@ -77954,16 +83512,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 3 "root_numpy/src/evaluate.pyx" - __pyx_tuple__168 = PyTuple_Pack(6, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__168)) __PYX_ERR(8, 3, __pyx_L1_error) + __pyx_tuple__171 = PyTuple_Pack(6, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(8, 3, __pyx_L1_error) #line 3 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__168); + __Pyx_GOTREF(__pyx_tuple__171); #line 3 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__168); + __Pyx_GIVEREF(__pyx_tuple__171); #line 3 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__169 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__168, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__169)) __PYX_ERR(8, 3, __pyx_L1_error) + __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(8, 3, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":16 * @cython.boundscheck(False) @@ -77974,16 +83532,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 16 "root_numpy/src/evaluate.pyx" - __pyx_tuple__170 = PyTuple_Pack(6, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(8, 16, __pyx_L1_error) + __pyx_tuple__173 = PyTuple_Pack(6, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(8, 16, __pyx_L1_error) #line 16 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__170); + __Pyx_GOTREF(__pyx_tuple__173); #line 16 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__170); + __Pyx_GIVEREF(__pyx_tuple__173); #line 16 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__171 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__170, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__171)) __PYX_ERR(8, 16, __pyx_L1_error) + __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(8, 16, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":29 * @cython.boundscheck(False) @@ -77994,16 +83552,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 29 "root_numpy/src/evaluate.pyx" - __pyx_tuple__172 = PyTuple_Pack(6, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(8, 29, __pyx_L1_error) + __pyx_tuple__175 = PyTuple_Pack(6, __pyx_n_s_hist, __pyx_n_s_array, __pyx_n_s_hist_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(8, 29, __pyx_L1_error) #line 29 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__172); + __Pyx_GOTREF(__pyx_tuple__175); #line 29 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__172); + __Pyx_GIVEREF(__pyx_tuple__175); #line 29 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__173 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__172, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h3, 29, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__173)) __PYX_ERR(8, 29, __pyx_L1_error) + __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h3, 29, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(8, 29, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":42 * @cython.boundscheck(False) @@ -78014,16 +83572,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 42 "root_numpy/src/evaluate.pyx" - __pyx_tuple__174 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(8, 42, __pyx_L1_error) + __pyx_tuple__177 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(8, 42, __pyx_L1_error) #line 42 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__174); + __Pyx_GOTREF(__pyx_tuple__177); #line 42 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__174); + __Pyx_GIVEREF(__pyx_tuple__177); #line 42 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__175 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__174, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f1, 42, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__175)) __PYX_ERR(8, 42, __pyx_L1_error) + __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f1, 42, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(8, 42, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":55 * @cython.boundscheck(False) @@ -78034,16 +83592,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 55 "root_numpy/src/evaluate.pyx" - __pyx_tuple__176 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__176)) __PYX_ERR(8, 55, __pyx_L1_error) + __pyx_tuple__179 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(8, 55, __pyx_L1_error) #line 55 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__176); + __Pyx_GOTREF(__pyx_tuple__179); #line 55 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__176); + __Pyx_GIVEREF(__pyx_tuple__179); #line 55 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__177 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__176, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f2, 55, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__177)) __PYX_ERR(8, 55, __pyx_L1_error) + __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f2, 55, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(8, 55, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":68 * @cython.boundscheck(False) @@ -78054,16 +83612,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 68 "root_numpy/src/evaluate.pyx" - __pyx_tuple__178 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__178)) __PYX_ERR(8, 68, __pyx_L1_error) + __pyx_tuple__181 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(8, 68, __pyx_L1_error) #line 68 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__178); + __Pyx_GOTREF(__pyx_tuple__181); #line 68 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__178); + __Pyx_GIVEREF(__pyx_tuple__181); #line 68 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__179 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__178, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f3, 68, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__179)) __PYX_ERR(8, 68, __pyx_L1_error) + __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f3, 68, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(8, 68, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":81 * @cython.boundscheck(False) @@ -78074,16 +83632,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 81 "root_numpy/src/evaluate.pyx" - __pyx_tuple__180 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__180)) __PYX_ERR(8, 81, __pyx_L1_error) + __pyx_tuple__183 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(8, 81, __pyx_L1_error) #line 81 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__180); + __Pyx_GOTREF(__pyx_tuple__183); #line 81 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__180); + __Pyx_GIVEREF(__pyx_tuple__183); #line 81 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__181 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__180, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_1d, 81, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__181)) __PYX_ERR(8, 81, __pyx_L1_error) + __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_1d, 81, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(8, 81, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":94 * @cython.boundscheck(False) @@ -78094,16 +83652,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 94 "root_numpy/src/evaluate.pyx" - __pyx_tuple__182 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__182)) __PYX_ERR(8, 94, __pyx_L1_error) + __pyx_tuple__185 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__185)) __PYX_ERR(8, 94, __pyx_L1_error) #line 94 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__182); + __Pyx_GOTREF(__pyx_tuple__185); #line 94 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__182); + __Pyx_GIVEREF(__pyx_tuple__185); #line 94 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__183 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__182, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_2d, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__183)) __PYX_ERR(8, 94, __pyx_L1_error) + __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_2d, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(8, 94, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":107 * @cython.boundscheck(False) @@ -78114,16 +83672,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 107 "root_numpy/src/evaluate.pyx" - __pyx_tuple__184 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__184)) __PYX_ERR(8, 107, __pyx_L1_error) + __pyx_tuple__187 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__187)) __PYX_ERR(8, 107, __pyx_L1_error) #line 107 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__184); + __Pyx_GOTREF(__pyx_tuple__187); #line 107 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__184); + __Pyx_GIVEREF(__pyx_tuple__187); #line 107 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__185 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__184, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_3d, 107, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__185)) __PYX_ERR(8, 107, __pyx_L1_error) + __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_3d, 107, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(8, 107, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":120 * @cython.boundscheck(False) @@ -78134,16 +83692,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 120 "root_numpy/src/evaluate.pyx" - __pyx_tuple__186 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__186)) __PYX_ERR(8, 120, __pyx_L1_error) + __pyx_tuple__189 = PyTuple_Pack(6, __pyx_n_s_func, __pyx_n_s_array, __pyx_n_s_func_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__189)) __PYX_ERR(8, 120, __pyx_L1_error) #line 120 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__186); + __Pyx_GOTREF(__pyx_tuple__189); #line 120 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__186); + __Pyx_GIVEREF(__pyx_tuple__189); #line 120 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__187 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__186, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_4d, 120, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__187)) __PYX_ERR(8, 120, __pyx_L1_error) + __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_4d, 120, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(8, 120, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":133 * @cython.boundscheck(False) @@ -78154,16 +83712,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 133 "root_numpy/src/evaluate.pyx" - __pyx_tuple__188 = PyTuple_Pack(6, __pyx_n_s_graph, __pyx_n_s_array, __pyx_n_s_graph_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__188)) __PYX_ERR(8, 133, __pyx_L1_error) + __pyx_tuple__191 = PyTuple_Pack(6, __pyx_n_s_graph, __pyx_n_s_array, __pyx_n_s_graph_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(8, 133, __pyx_L1_error) #line 133 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__188); + __Pyx_GOTREF(__pyx_tuple__191); #line 133 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__188); + __Pyx_GIVEREF(__pyx_tuple__191); #line 133 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__189 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__188, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_graph, 133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__189)) __PYX_ERR(8, 133, __pyx_L1_error) + __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_graph, 133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(8, 133, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":146 * @cython.boundscheck(False) @@ -78174,16 +83732,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 146 "root_numpy/src/evaluate.pyx" - __pyx_tuple__190 = PyTuple_Pack(6, __pyx_n_s_spline, __pyx_n_s_array, __pyx_n_s_spline_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__190)) __PYX_ERR(8, 146, __pyx_L1_error) + __pyx_tuple__193 = PyTuple_Pack(6, __pyx_n_s_spline, __pyx_n_s_array, __pyx_n_s_spline_2, __pyx_n_s_size, __pyx_n_s_i, __pyx_n_s_values); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(8, 146, __pyx_L1_error) #line 146 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__190); + __Pyx_GOTREF(__pyx_tuple__193); #line 146 "root_numpy/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__190); + __Pyx_GIVEREF(__pyx_tuple__193); #line 146 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__191 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__190, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_spline, 146, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__191)) __PYX_ERR(8, 146, __pyx_L1_error) + __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_spline, 146, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(8, 146, __pyx_L1_error) #line 146 "root_numpy/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); @@ -78231,11 +83789,11 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #endif { PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; + int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; + PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; @@ -78381,7 +83939,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 5 "root_numpy/src/setup.pxi" - import_array(); + __pyx_t_2 = __pyx_f_5numpy_import_array(); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(0, 5, __pyx_L1_error) /* "root_numpy/src/setup.pxi":27 * from libc.stdlib cimport malloc, free, realloc @@ -78401,10 +83959,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_PyThreadState_assign #line 27 "root_numpy/src/setup.pxi" - __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); - -#line 27 "root_numpy/src/setup.pxi" - __Pyx_XGOTREF(__pyx_t_2); + __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); #line 27 "root_numpy/src/setup.pxi" __Pyx_XGOTREF(__pyx_t_3); @@ -78412,6 +83967,9 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #line 27 "root_numpy/src/setup.pxi" __Pyx_XGOTREF(__pyx_t_4); +#line 27 "root_numpy/src/setup.pxi" + __Pyx_XGOTREF(__pyx_t_5); + #line 27 "root_numpy/src/setup.pxi" /*try:*/ { @@ -78439,16 +83997,16 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_OrderedDict); #line 28 "root_numpy/src/setup.pxi" - __pyx_t_5 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_1, -1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28, __pyx_L2_error) + __pyx_t_6 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_1, -1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 28, __pyx_L2_error) #line 28 "root_numpy/src/setup.pxi" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 28 "root_numpy/src/setup.pxi" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 28 "root_numpy/src/setup.pxi" - __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_5, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L2_error) + __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_6, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L2_error) #line 28 "root_numpy/src/setup.pxi" __Pyx_GOTREF(__pyx_t_1); @@ -78460,7 +84018,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 28 "root_numpy/src/setup.pxi" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/setup.pxi":27 * from libc.stdlib cimport malloc, free, realloc @@ -78473,15 +84031,15 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #line 27 "root_numpy/src/setup.pxi" } -#line 27 "root_numpy/src/setup.pxi" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 27 "root_numpy/src/setup.pxi" __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; #line 27 "root_numpy/src/setup.pxi" __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 27 "root_numpy/src/setup.pxi" + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + #line 27 "root_numpy/src/setup.pxi" goto __pyx_L9_try_end; @@ -78495,7 +84053,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; #line 27 "root_numpy/src/setup.pxi" - __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/setup.pxi":29 * try: @@ -78506,19 +84064,19 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 29 "root_numpy/src/setup.pxi" - __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError); + __pyx_t_2 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError); #line 29 "root_numpy/src/setup.pxi" - if (__pyx_t_6) { + if (__pyx_t_2) { #line 29 "root_numpy/src/setup.pxi" __Pyx_AddTraceback("_librootnumpy", __pyx_clineno, __pyx_lineno, __pyx_filename); #line 29 "root_numpy/src/setup.pxi" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_1, &__pyx_t_7) < 0) __PYX_ERR(0, 29, __pyx_L4_except_error) + if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_1, &__pyx_t_7) < 0) __PYX_ERR(0, 29, __pyx_L4_except_error) #line 29 "root_numpy/src/setup.pxi" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 29 "root_numpy/src/setup.pxi" __Pyx_GOTREF(__pyx_t_1); @@ -78574,7 +84132,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 31 "root_numpy/src/setup.pxi" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 31 "root_numpy/src/setup.pxi" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -78605,9 +84163,6 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #line 27 "root_numpy/src/setup.pxi" __Pyx_PyThreadState_assign -#line 27 "root_numpy/src/setup.pxi" - __Pyx_XGIVEREF(__pyx_t_2); - #line 27 "root_numpy/src/setup.pxi" __Pyx_XGIVEREF(__pyx_t_3); @@ -78615,7 +84170,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_XGIVEREF(__pyx_t_4); #line 27 "root_numpy/src/setup.pxi" - __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); + __Pyx_XGIVEREF(__pyx_t_5); + +#line 27 "root_numpy/src/setup.pxi" + __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); #line 27 "root_numpy/src/setup.pxi" goto __pyx_L1_error; @@ -78626,9 +84184,6 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #line 27 "root_numpy/src/setup.pxi" __Pyx_PyThreadState_assign -#line 27 "root_numpy/src/setup.pxi" - __Pyx_XGIVEREF(__pyx_t_2); - #line 27 "root_numpy/src/setup.pxi" __Pyx_XGIVEREF(__pyx_t_3); @@ -78636,7 +84191,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_XGIVEREF(__pyx_t_4); #line 27 "root_numpy/src/setup.pxi" - __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); + __Pyx_XGIVEREF(__pyx_t_5); + +#line 27 "root_numpy/src/setup.pxi" + __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); #line 27 "root_numpy/src/setup.pxi" __pyx_L9_try_end:; @@ -78773,7 +84331,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 4 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) #line 4 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -78808,49 +84366,49 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 7 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 7 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_bool); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_bool); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 7 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 7 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 7 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_9); #line 7 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); #line 7 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 7 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_5, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 7 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 7 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BOOL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BOOL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 7 "root_numpy/src/converters.pyx" __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 7, __pyx_L1_error) @@ -78874,16 +84432,16 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); #line 7 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 7 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); #line 7 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 7 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 7 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) @@ -78915,10 +84473,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 8 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int8); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error) #line 8 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 8 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -78930,19 +84488,19 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 8 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 8 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); #line 8 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 8 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error) #line 8 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 8 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -78969,10 +84527,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_n_s_char); #line 8 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 8 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); #line 8 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_7); @@ -78981,7 +84539,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); #line 8 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 8 "root_numpy/src/converters.pyx" __pyx_t_7 = 0; @@ -79055,10 +84613,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_8); #line 9 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 9, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 9, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 9 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_kp_s_unsigned_char); @@ -79067,19 +84625,19 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_kp_s_unsigned_char); #line 9 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_s_unsigned_char); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_s_unsigned_char); #line 9 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_7); #line 9 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); #line 9 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_8); #line 9 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_8); #line 9 "root_numpy/src/converters.pyx" __pyx_t_7 = 0; @@ -79088,13 +84646,13 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_8 = 0; #line 9 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_5) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 9 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/converters.pyx":10 * TypeName[char]().name: ('char', np.dtype(np.int8), np.NPY_INT8), @@ -79105,10 +84663,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 10 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 10, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 10, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 10 "root_numpy/src/converters.pyx" __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 10, __pyx_L1_error) @@ -79189,10 +84747,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_9 = 0; #line 10 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_5, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 10 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -79212,49 +84770,49 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 11 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 11 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_uint16); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint16); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 11 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 11 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); #line 11 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 11 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_5, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 11 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT16); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT16); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 11 "root_numpy/src/converters.pyx" __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 11, __pyx_L1_error) @@ -79278,16 +84836,16 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 11 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); #line 11 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 11 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 11 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) @@ -79319,10 +84877,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 12 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int32); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int32); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 12 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -79334,19 +84892,19 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 12 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 12 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); #line 12 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 12 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 12 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -79373,10 +84931,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_n_s_int); #line 12 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 12 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); #line 12 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_7); @@ -79385,7 +84943,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); #line 12 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 12 "root_numpy/src/converters.pyx" __pyx_t_7 = 0; @@ -79459,10 +85017,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_8); #line 13 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 13 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_kp_s_unsigned_int); @@ -79471,19 +85029,19 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_kp_s_unsigned_int); #line 13 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_s_unsigned_int); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_s_unsigned_int); #line 13 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_7); #line 13 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); #line 13 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_8); #line 13 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_8); #line 13 "root_numpy/src/converters.pyx" __pyx_t_7 = 0; @@ -79492,13 +85050,13 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_8 = 0; #line 13 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_5) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 13 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/converters.pyx":14 * TypeName[int]().name: ('int', np.dtype(np.int32), np.NPY_INT32), @@ -79509,10 +85067,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 14 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 14, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 14 "root_numpy/src/converters.pyx" __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error) @@ -79593,10 +85151,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_9 = 0; #line 14 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_5, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 14 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -79616,49 +85174,49 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 15 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 15 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_uint64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 15 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 15 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); #line 15 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 15 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_5, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 15 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT64); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT64); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 15 "root_numpy/src/converters.pyx" __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 15, __pyx_L1_error) @@ -79682,16 +85240,16 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 15 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); #line 15 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 15 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 15 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) @@ -79723,10 +85281,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 16 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_longlong); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 16, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_longlong); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 16 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -79738,19 +85296,19 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 16 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 16 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); #line 16 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 16 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 16, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 16 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -79777,10 +85335,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_kp_s_long_long); #line 16 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 16 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); #line 16 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_7); @@ -79789,7 +85347,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); #line 16 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 16 "root_numpy/src/converters.pyx" __pyx_t_7 = 0; @@ -79863,10 +85421,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_8); #line 17 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 17, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 17, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 17 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_kp_s_unsigned_long_long); @@ -79875,19 +85433,19 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_kp_s_unsigned_long_long); #line 17 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_s_unsigned_long_long); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_s_unsigned_long_long); #line 17 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_7); #line 17 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); #line 17 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_8); #line 17 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_8); #line 17 "root_numpy/src/converters.pyx" __pyx_t_7 = 0; @@ -79896,13 +85454,13 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_8 = 0; #line 17 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_5) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 17 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/converters.pyx":18 * TypeName[long_long]().name: ('long long', np.dtype(np.longlong), np.NPY_LONGLONG), @@ -79913,10 +85471,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 18 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 18, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 18, __pyx_L1_error) #line 18 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 18 "root_numpy/src/converters.pyx" __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 18, __pyx_L1_error) @@ -79997,10 +85555,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_9 = 0; #line 18 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_5, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 18 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 18 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -80020,49 +85578,49 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 19 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 19, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 19, __pyx_L1_error) #line 19 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 19 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_float64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L1_error) #line 19 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 19 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 19 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 19, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 19, __pyx_L1_error) #line 19 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 19 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_9); #line 19 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); #line 19 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 19 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_5, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L1_error) #line 19 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 19 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 19 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT64); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 19, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT64); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 19, __pyx_L1_error) #line 19 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 19 "root_numpy/src/converters.pyx" __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 19, __pyx_L1_error) @@ -80086,16 +85644,16 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); #line 19 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); #line 19 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); #line 19 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 19 "root_numpy/src/converters.pyx" - __pyx_t_5 = 0; + __pyx_t_6 = 0; #line 19 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) @@ -80166,7 +85724,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 23 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__52) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__55) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 23 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -80219,7 +85777,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 24 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__53) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__56) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 24 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -80272,7 +85830,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 25 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__54) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__57) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 25 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -80325,7 +85883,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 26 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__55) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__58) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 26 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -80378,7 +85936,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 27 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__56) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__59) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 27 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -80431,7 +85989,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 28 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__57) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__60) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 28 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -80484,7 +86042,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 29 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__58) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__61) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 29 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -80537,7 +86095,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 30 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__59) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__62) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 30 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -80590,7 +86148,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 31 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__60) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__63) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 31 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -80643,7 +86201,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 32 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__61) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__64) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 32 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -80696,7 +86254,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 33 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__62) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__65) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 33 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -80749,7 +86307,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 34 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__63) < 0) __PYX_ERR(1, 23, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__66) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 34 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -80813,7 +86371,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_8 = NULL; #line 443 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_7))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { #line 443 "root_numpy/src/converters.pyx" __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); @@ -80903,7 +86461,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, if (__pyx_t_10 >= PyList_GET_SIZE(__pyx_t_7)) break; #line 443 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 443 "root_numpy/src/converters.pyx" __pyx_t_1 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_10); __Pyx_INCREF(__pyx_t_1); __pyx_t_10++; if (unlikely(0 < 0)) __PYX_ERR(1, 443, __pyx_L1_error) @@ -80927,7 +86485,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, if (__pyx_t_10 >= PyTuple_GET_SIZE(__pyx_t_7)) break; #line 443 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 443 "root_numpy/src/converters.pyx" __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_10); __Pyx_INCREF(__pyx_t_1); __pyx_t_10++; if (unlikely(0 < 0)) __PYX_ERR(1, 443, __pyx_L1_error) @@ -80990,7 +86548,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, PyObject* sequence = __pyx_t_1; #line 443 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 443 "root_numpy/src/converters.pyx" Py_ssize_t size = Py_SIZE(sequence); @@ -81020,7 +86578,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, } #line 443 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 443 "root_numpy/src/converters.pyx" if (likely(PyTuple_CheckExact(sequence))) { @@ -81029,7 +86587,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0); #line 443 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); + __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); #line 443 "root_numpy/src/converters.pyx" } else { @@ -81038,7 +86596,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __pyx_t_8 = PyList_GET_ITEM(sequence, 0); #line 443 "root_numpy/src/converters.pyx" - __pyx_t_5 = PyList_GET_ITEM(sequence, 1); + __pyx_t_6 = PyList_GET_ITEM(sequence, 1); #line 443 "root_numpy/src/converters.pyx" } @@ -81047,7 +86605,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __Pyx_INCREF(__pyx_t_8); #line 443 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(__pyx_t_6); #line 443 "root_numpy/src/converters.pyx" #else @@ -81059,10 +86617,10 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __Pyx_GOTREF(__pyx_t_8); #line 443 "root_numpy/src/converters.pyx" - __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 443, __pyx_L1_error) + __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 443, __pyx_L1_error) #line 443 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 443 "root_numpy/src/converters.pyx" #endif @@ -81093,12 +86651,12 @@ goto __pyx_L14_unpacking_failed; #line 443 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); - index = 1; __pyx_t_5 = __pyx_t_12(__pyx_t_9); if (unlikely(!__pyx_t_5)) + index = 1; __pyx_t_6 = __pyx_t_12(__pyx_t_9); if (unlikely(!__pyx_t_6)) #line 443 "root_numpy/src/converters.pyx" goto __pyx_L14_unpacking_failed; #line 443 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 443 "root_numpy/src/converters.pyx" if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_9), 2) < 0) __PYX_ERR(1, 443, __pyx_L1_error) @@ -81140,13 +86698,13 @@ goto __pyx_L14_unpacking_failed; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 443 "root_numpy/src/converters.pyx" - if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) { + if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) { #line 443 "root_numpy/src/converters.pyx" - PyObject* sequence = __pyx_t_5; + PyObject* sequence = __pyx_t_6; #line 443 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY #line 443 "root_numpy/src/converters.pyx" Py_ssize_t size = Py_SIZE(sequence); @@ -81176,7 +86734,7 @@ goto __pyx_L14_unpacking_failed; } #line 443 "root_numpy/src/converters.pyx" - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 443 "root_numpy/src/converters.pyx" if (likely(PyTuple_CheckExact(sequence))) { @@ -81239,7 +86797,7 @@ goto __pyx_L14_unpacking_failed; #endif #line 443 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 443 "root_numpy/src/converters.pyx" } else { @@ -81248,13 +86806,13 @@ goto __pyx_L14_unpacking_failed; Py_ssize_t index = -1; #line 443 "root_numpy/src/converters.pyx" - __pyx_t_15 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 443, __pyx_L1_error) + __pyx_t_15 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 443, __pyx_L1_error) #line 443 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_15); #line 443 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 443 "root_numpy/src/converters.pyx" __pyx_t_12 = Py_TYPE(__pyx_t_15)->tp_iternext; @@ -81363,34 +86921,34 @@ goto __pyx_L16_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); #line 446 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 446, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 446, __pyx_L1_error) #line 446 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 446 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 446 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 446, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 446, __pyx_L1_error) #line 446 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 446 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_dtype); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 446, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_dtype); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 446, __pyx_L1_error) #line 446 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 446 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 446, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 446, __pyx_L1_error) #line 446 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_1); #line 446 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 446 "root_numpy/src/converters.pyx" __pyx_t_17 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 446, __pyx_L1_error) @@ -81422,7 +86980,7 @@ goto __pyx_L16_unpacking_failed; try { #line 444 "root_numpy/src/converters.pyx" - __pyx_t_19 = __pyx_t_13_librootnumpy_CONVERTERS_ITEM_TYPE(__pyx_t_16, new __pyx_t_13_librootnumpy_BasicConverter(__pyx_t_6, __pyx_t_17, __pyx_t_18)); + __pyx_t_19 = __pyx_t_13_librootnumpy_CONVERTERS_ITEM_TYPE(__pyx_t_16, new __pyx_t_13_librootnumpy_BasicConverter(__pyx_t_2, __pyx_t_17, __pyx_t_18)); #line 444 "root_numpy/src/converters.pyx" } catch(...) { @@ -83168,10 +88726,10 @@ goto __pyx_L16_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); #line 595 "root_numpy/src/converters.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_register); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 595, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_register); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 595, __pyx_L1_error) #line 595 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_6); #line 595 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -83194,16 +88752,16 @@ goto __pyx_L16_unpacking_failed; __pyx_t_8 = NULL; #line 596 "root_numpy/src/converters.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { #line 596 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); #line 596 "root_numpy/src/converters.pyx" if (likely(__pyx_t_8)) { #line 596 "root_numpy/src/converters.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); #line 596 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_t_8); @@ -83212,7 +88770,7 @@ goto __pyx_L16_unpacking_failed; __Pyx_INCREF(function); #line 596 "root_numpy/src/converters.pyx" - __Pyx_DECREF_SET(__pyx_t_5, function); + __Pyx_DECREF_SET(__pyx_t_6, function); #line 596 "root_numpy/src/converters.pyx" } @@ -83224,7 +88782,7 @@ goto __pyx_L16_unpacking_failed; if (!__pyx_t_8) { #line 596 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 595, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 595, __pyx_L1_error) #line 596 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -83236,37 +88794,97 @@ goto __pyx_L16_unpacking_failed; } else { #line 596 "root_numpy/src/converters.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 595, __pyx_L1_error) + #if CYTHON_FAST_PYCALL #line 596 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_14); + if (PyFunction_Check(__pyx_t_6)) { #line 596 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_8); __pyx_t_8 = NULL; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_1}; #line 596 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); + __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 595, __pyx_L1_error) #line 596 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_1); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 596 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; + __Pyx_GOTREF(__pyx_t_7); #line 596 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_14, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 595, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 596 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + } else #line 596 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + #endif + +#line 596 "root_numpy/src/converters.pyx" + #if CYTHON_FAST_PYCCALL + +#line 596 "root_numpy/src/converters.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { + +#line 596 "root_numpy/src/converters.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_1}; + +#line 596 "root_numpy/src/converters.pyx" + __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 595, __pyx_L1_error) + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 596 "root_numpy/src/converters.pyx" + } else + +#line 596 "root_numpy/src/converters.pyx" + #endif + +#line 596 "root_numpy/src/converters.pyx" + { + +#line 596 "root_numpy/src/converters.pyx" + __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 595, __pyx_L1_error) + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_14); + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_8); __pyx_t_8 = NULL; + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_GIVEREF(__pyx_t_1); + +#line 596 "root_numpy/src/converters.pyx" + PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_1); + +#line 596 "root_numpy/src/converters.pyx" + __pyx_t_1 = 0; + +#line 596 "root_numpy/src/converters.pyx" + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_14, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 595, __pyx_L1_error) + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_7); + +#line 596 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + +#line 596 "root_numpy/src/converters.pyx" + } #line 596 "root_numpy/src/converters.pyx" } #line 596 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 596 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_d, __pyx_n_s_cleanup, __pyx_t_7) < 0) __PYX_ERR(1, 596, __pyx_L1_error) @@ -84611,7 +90229,7 @@ goto __pyx_L16_unpacking_failed; __Pyx_XDECREF(__pyx_t_1); #line 55 "string.to_py" - __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_6); #line 55 "string.to_py" __Pyx_XDECREF(__pyx_t_7); @@ -84716,7 +90334,7 @@ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; -#if CYTHON_COMPILING_IN_CPYTHON +#if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); @@ -84731,6 +90349,146 @@ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { return result; } +/* PyFunctionFastCall */ + #if CYTHON_FAST_PYCALL +#include "frameobject.h" +static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, + PyObject *globals) { + PyFrameObject *f; + PyThreadState *tstate = PyThreadState_GET(); + PyObject **fastlocals; + Py_ssize_t i; + PyObject *result; + assert(globals != NULL); + /* XXX Perhaps we should create a specialized + PyFrame_New() that doesn't take locals, but does + take builtins without sanity checking them. + */ + assert(tstate != NULL); + f = PyFrame_New(tstate, co, globals, NULL); + if (f == NULL) { + return NULL; + } + fastlocals = f->f_localsplus; + for (i = 0; i < na; i++) { + Py_INCREF(*args); + fastlocals[i] = *args++; + } + result = PyEval_EvalFrameEx(f,0); + ++tstate->recursion_depth; + Py_DECREF(f); + --tstate->recursion_depth; + return result; +} +#if 1 || PY_VERSION_HEX < 0x030600B1 +static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { + PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); + PyObject *globals = PyFunction_GET_GLOBALS(func); + PyObject *argdefs = PyFunction_GET_DEFAULTS(func); + PyObject *closure; +#if PY_MAJOR_VERSION >= 3 + PyObject *kwdefs; +#endif + PyObject *kwtuple, **k; + PyObject **d; + Py_ssize_t nd; + Py_ssize_t nk; + PyObject *result; + assert(kwargs == NULL || PyDict_Check(kwargs)); + nk = kwargs ? PyDict_Size(kwargs) : 0; + if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { + return NULL; + } + if ( +#if PY_MAJOR_VERSION >= 3 + co->co_kwonlyargcount == 0 && +#endif + likely(kwargs == NULL || nk == 0) && + co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { + if (argdefs == NULL && co->co_argcount == nargs) { + result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); + goto done; + } + else if (nargs == 0 && argdefs != NULL + && co->co_argcount == Py_SIZE(argdefs)) { + /* function called with no arguments, but all parameters have + a default value: use default values as arguments .*/ + args = &PyTuple_GET_ITEM(argdefs, 0); + result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); + goto done; + } + } + if (kwargs != NULL) { + Py_ssize_t pos, i; + kwtuple = PyTuple_New(2 * nk); + if (kwtuple == NULL) { + result = NULL; + goto done; + } + k = &PyTuple_GET_ITEM(kwtuple, 0); + pos = i = 0; + while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { + Py_INCREF(k[i]); + Py_INCREF(k[i+1]); + i += 2; + } + nk = i / 2; + } + else { + kwtuple = NULL; + k = NULL; + } + closure = PyFunction_GET_CLOSURE(func); +#if PY_MAJOR_VERSION >= 3 + kwdefs = PyFunction_GET_KW_DEFAULTS(func); +#endif + if (argdefs != NULL) { + d = &PyTuple_GET_ITEM(argdefs, 0); + nd = Py_SIZE(argdefs); + } + else { + d = NULL; + nd = 0; + } +#if PY_MAJOR_VERSION >= 3 + result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, + args, nargs, + k, (int)nk, + d, (int)nd, kwdefs, closure); +#else + result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, + args, nargs, + k, (int)nk, + d, (int)nd, closure); +#endif + Py_XDECREF(kwtuple); +done: + Py_LeaveRecursiveCall(); + return result; +} +#endif // CPython < 3.6 +#endif // CYTHON_FAST_PYCALL + +/* PyCFunctionFastCall */ + #if CYTHON_FAST_PYCCALL +static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { + PyCFunctionObject *func = (PyCFunctionObject*)func_obj; + PyCFunction meth = PyCFunction_GET_FUNCTION(func); + PyObject *self = PyCFunction_GET_SELF(func); + PyObject *result; + int flags; + assert(PyCFunction_Check(func)); + assert(METH_FASTCALL == PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST)); + assert(nargs >= 0); + assert(nargs == 0 || args != NULL); + /* _PyCFunction_FastCallDict() must not be called with an exception set, + because it may clear it (directly or indirectly) and so the + caller loses its exception */ + assert(!PyErr_Occurred()); + return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); +} +#endif // CYTHON_FAST_PYCCALL + /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { @@ -84752,7 +90510,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg #endif /* PyErrFetchRestore */ - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; @@ -84961,7 +90719,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject } static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o)); if ((!boundscheck) || likely((n >= 0) & (n < PyList_GET_SIZE(o)))) { @@ -85074,6 +90832,11 @@ static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { +#if CYTHON_FAST_PYCALL + if (PyFunction_Check(func)) { + return __Pyx_PyFunction_FastCall(func, &arg, 1); + } +#endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else @@ -85081,6 +90844,10 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); +#if CYTHON_FAST_PYCCALL + } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { + return __Pyx_PyCFunction_FastCall(func, &arg, 1); +#endif } } return __Pyx__PyObject_CallOneArg(func, arg); @@ -85107,7 +90874,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, i); @@ -85122,7 +90889,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, i); @@ -85137,7 +90904,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { @@ -85178,7 +90945,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, } /* PyIntBinop */ - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { @@ -85191,12 +90958,14 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } #endif - #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 + #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; +#ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; +#endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { @@ -85208,58 +90977,74 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } default: return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } } x = a - b; return PyLong_FromLong(x); +#ifdef HAVE_LONG_LONG long_long: llx = lla - llb; return PyLong_FromLongLong(llx); +#endif + + } #endif if (PyFloat_CheckExact(op1)) { @@ -85280,7 +91065,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U Py_ssize_t cstart, Py_ssize_t cstop, PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) { -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_USE_TYPE_SLOTS PyMappingMethods* mp; #if PY_MAJOR_VERSION < 3 PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence; @@ -85356,7 +91141,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U Py_XDECREF(owned_stop); if (unlikely(!py_slice)) goto bad; } -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_USE_TYPE_SLOTS result = mp->mp_subscript(obj, py_slice); #else result = PyObject_GetItem(obj, py_slice); @@ -85387,7 +91172,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U /* IterFinish */ static CYTHON_INLINE int __Pyx_IterFinish(void) { -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE PyThreadState *tstate = PyThreadState_GET(); PyObject* exc_type = tstate->curexc_type; if (unlikely(exc_type)) { @@ -85558,15 +91343,29 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { PyObject *method, *result = NULL; method = __Pyx_PyObject_GetAttrStr(obj, method_name); - if (unlikely(!method)) goto bad; -#if CYTHON_COMPILING_IN_CPYTHON + if (unlikely(!method)) goto done; +#if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(method))) { PyObject *self = PyMethod_GET_SELF(method); if (likely(self)) { PyObject *args; PyObject *function = PyMethod_GET_FUNCTION(method); + #if CYTHON_FAST_PYCALL + if (PyFunction_Check(function)) { + PyObject *args[2] = {self, arg}; + result = __Pyx_PyFunction_FastCall(function, args, 2); + goto done; + } + #endif + #if CYTHON_FAST_PYCCALL + if (__Pyx_PyFastCFunction_Check(function)) { + PyObject *args[2] = {self, arg}; + result = __Pyx_PyCFunction_FastCall(function, args, 2); + goto done; + } + #endif args = PyTuple_New(2); - if (unlikely(!args)) goto bad; + if (unlikely(!args)) goto done; Py_INCREF(self); PyTuple_SET_ITEM(args, 0, self); Py_INCREF(arg); @@ -85581,7 +91380,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } #endif result = __Pyx_PyObject_CallOneArg(method, arg); -bad: +done: Py_XDECREF(method); return result; } @@ -85751,6 +91550,11 @@ static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* value /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { +#if CYTHON_FAST_PYCALL + if (PyFunction_Check(func)) { + return __Pyx_PyFunction_FastCall(func, NULL, 0); + } +#endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else @@ -85772,7 +91576,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { /* pyobject_as_double */ static double __Pyx__PyObject_AsDouble(PyObject* obj) { PyObject* float_value; -#if CYTHON_COMPILING_IN_PYPY +#if !CYTHON_USE_TYPE_SLOTS float_value = PyNumber_Float(obj); if (0) goto bad; #else PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number; @@ -85815,7 +91619,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { } /* PyIntBinop */ - #if CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { @@ -85828,12 +91632,14 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif - #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 + #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; +#ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; +#endif const digit* digits = ((PyLongObject*)op1)->ob_digit; const Py_ssize_t size = Py_SIZE(op1); if (likely(__Pyx_sst_abs(size) <= 1)) { @@ -85845,58 +91651,74 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; +#ifdef HAVE_LONG_LONG } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); goto long_long; +#endif } default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); +#ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); +#endif + + } #endif if (PyFloat_CheckExact(op1)) { @@ -85913,7 +91735,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED #endif /* SaveResetException */ - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->exc_type; *value = tstate->exc_value; @@ -85937,7 +91759,7 @@ static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject #endif /* PyErrExceptionMatches */ - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { PyObject *exc_type = tstate->curexc_type; if (exc_type == err) return 1; @@ -85947,13 +91769,13 @@ static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tsta #endif /* GetException */ - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { #endif PyObject *local_type, *local_value, *local_tb; -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; @@ -85965,7 +91787,7 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) @@ -85983,7 +91805,7 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) *type = local_type; *value = local_value; *tb = local_tb; -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; @@ -86008,7 +91830,7 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) } /* SwapException */ - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; @@ -86863,7 +92685,7 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line, 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; - py_frame->f_lineno = py_line; + __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); @@ -86902,14 +92724,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(enum NPY_TYPES) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(enum NPY_TYPES) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -86951,14 +92777,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(Py_intptr_t) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(Py_intptr_t) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(Py_intptr_t) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(Py_intptr_t) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -86978,14 +92808,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(unsigned long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(unsigned long) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -87005,14 +92839,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(int) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -87032,14 +92870,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -87059,14 +92901,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(PY_LONG_LONG) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -87086,14 +92932,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(unsigned int) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -87104,7 +92954,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } } -/* None */ +/* Declarations */ #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) { @@ -87124,61 +92974,86 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } #endif -/* None */ +/* Arithmetic */ #if CYTHON_CCOMPLEX #else - static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { return (a.real == b.real) && (a.imag == b.imag); } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real + b.real; z.imag = a.imag + b.imag; return z; } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real - b.real; z.imag = a.imag - b.imag; return z; } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real * b.real - a.imag * b.imag; z.imag = a.real * b.imag + a.imag * b.real; return z; } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex a, __pyx_t_float_complex b) { - __pyx_t_float_complex z; - float denom = b.real * b.real + b.imag * b.imag; - z.real = (a.real * b.real + a.imag * b.imag) / denom; - z.imag = (a.imag * b.real - a.real * b.imag) / denom; - return z; + #if 1 + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { + if (b.imag == 0) { + return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); + } else if (fabsf(b.real) >= fabsf(b.imag)) { + if (b.real == 0 && b.imag == 0) { + return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag); + } else { + float r = b.imag / b.real; + float s = 1.0 / (b.real + b.imag * r); + return __pyx_t_float_complex_from_parts( + (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); + } + } else { + float r = b.real / b.imag; + float s = 1.0 / (b.imag + b.real * r); + return __pyx_t_float_complex_from_parts( + (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); + } + } + #else + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { + if (b.imag == 0) { + return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); + } else { + float denom = b.real * b.real + b.imag * b.imag; + return __pyx_t_float_complex_from_parts( + (a.real * b.real + a.imag * b.imag) / denom, + (a.imag * b.real - a.real * b.imag) / denom); + } } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex a) { + #endif + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) { __pyx_t_float_complex z; z.real = -a.real; z.imag = -a.imag; return z; } - static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) { + static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex a) { return (a.real == 0) && (a.imag == 0); } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex a) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) { __pyx_t_float_complex z; z.real = a.real; z.imag = -a.imag; return z; } #if 1 - static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex z) { + static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex z) { #if !defined(HAVE_HYPOT) || defined(_MSC_VER) return sqrtf(z.real*z.real + z.imag*z.imag); #else return hypotf(z.real, z.imag); #endif } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; float r, lnr, theta, z_r, z_theta; if (b.imag == 0 && b.real == (int)b.real) { @@ -87196,14 +93071,14 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { case 1: return a; case 2: - z = __Pyx_c_prodf(a, a); - return __Pyx_c_prodf(a, a); + z = __Pyx_c_prod_float(a, a); + return __Pyx_c_prod_float(a, a); case 3: - z = __Pyx_c_prodf(a, a); - return __Pyx_c_prodf(z, a); + z = __Pyx_c_prod_float(a, a); + return __Pyx_c_prod_float(z, a); case 4: - z = __Pyx_c_prodf(a, a); - return __Pyx_c_prodf(z, z); + z = __Pyx_c_prod_float(a, a); + return __Pyx_c_prod_float(z, z); } } if (a.imag == 0) { @@ -87213,7 +93088,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { r = a.real; theta = 0; } else { - r = __Pyx_c_absf(a); + r = __Pyx_c_abs_float(a); theta = atan2f(a.imag, a.real); } lnr = logf(r); @@ -87226,7 +93101,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif #endif -/* None */ +/* Declarations */ #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) { @@ -87246,61 +93121,86 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } #endif -/* None */ +/* Arithmetic */ #if CYTHON_CCOMPLEX #else - static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { return (a.real == b.real) && (a.imag == b.imag); } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real + b.real; z.imag = a.imag + b.imag; return z; } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real - b.real; z.imag = a.imag - b.imag; return z; } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real * b.real - a.imag * b.imag; z.imag = a.real * b.imag + a.imag * b.real; return z; } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex a, __pyx_t_double_complex b) { - __pyx_t_double_complex z; - double denom = b.real * b.real + b.imag * b.imag; - z.real = (a.real * b.real + a.imag * b.imag) / denom; - z.imag = (a.imag * b.real - a.real * b.imag) / denom; - return z; + #if 1 + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { + if (b.imag == 0) { + return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); + } else if (fabs(b.real) >= fabs(b.imag)) { + if (b.real == 0 && b.imag == 0) { + return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag); + } else { + double r = b.imag / b.real; + double s = 1.0 / (b.real + b.imag * r); + return __pyx_t_double_complex_from_parts( + (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); + } + } else { + double r = b.real / b.imag; + double s = 1.0 / (b.imag + b.real * r); + return __pyx_t_double_complex_from_parts( + (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); + } } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex a) { + #else + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { + if (b.imag == 0) { + return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); + } else { + double denom = b.real * b.real + b.imag * b.imag; + return __pyx_t_double_complex_from_parts( + (a.real * b.real + a.imag * b.imag) / denom, + (a.imag * b.real - a.real * b.imag) / denom); + } + } + #endif + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) { __pyx_t_double_complex z; z.real = -a.real; z.imag = -a.imag; return z; } - static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) { + static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex a) { return (a.real == 0) && (a.imag == 0); } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex a) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) { __pyx_t_double_complex z; z.real = a.real; z.imag = -a.imag; return z; } #if 1 - static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex z) { + static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex z) { #if !defined(HAVE_HYPOT) || defined(_MSC_VER) return sqrt(z.real*z.real + z.imag*z.imag); #else return hypot(z.real, z.imag); #endif } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; double r, lnr, theta, z_r, z_theta; if (b.imag == 0 && b.real == (int)b.real) { @@ -87318,14 +93218,14 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { case 1: return a; case 2: - z = __Pyx_c_prod(a, a); - return __Pyx_c_prod(a, a); + z = __Pyx_c_prod_double(a, a); + return __Pyx_c_prod_double(a, a); case 3: - z = __Pyx_c_prod(a, a); - return __Pyx_c_prod(z, a); + z = __Pyx_c_prod_double(a, a); + return __Pyx_c_prod_double(z, a); case 4: - z = __Pyx_c_prod(a, a); - return __Pyx_c_prod(z, z); + z = __Pyx_c_prod_double(a, a); + return __Pyx_c_prod_double(z, z); } } if (a.imag == 0) { @@ -87335,7 +93235,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { r = a.real; theta = 0; } else { - r = __Pyx_c_abs(a); + r = __Pyx_c_abs_double(a); theta = atan2(a.imag, a.real); } lnr = log(r); @@ -87416,8 +93316,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -87484,8 +93386,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -87601,8 +93505,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -87669,8 +93575,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -87786,8 +93694,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(Py_intptr_t) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(Py_intptr_t, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(Py_intptr_t) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(Py_intptr_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -87854,8 +93764,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(Py_intptr_t) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(Py_intptr_t, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(Py_intptr_t) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(Py_intptr_t, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -87971,8 +93883,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(unsigned long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned long, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -88039,8 +93953,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(unsigned long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned long, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned long, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -88156,8 +94072,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(size_t) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -88224,8 +94142,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(size_t) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(size_t) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -88341,8 +94261,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(unsigned int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -88409,8 +94331,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(unsigned int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -88526,8 +94450,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -88594,8 +94520,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(PY_LONG_LONG) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -88844,7 +94772,9 @@ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { +#if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; +#endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 @@ -88853,8 +94783,9 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); +#if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; -#if PY_MAJOR_VERSION < 3 + #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); @@ -88863,11 +94794,14 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { name = "long"; res = PyNumber_Long(x); } -#else + #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } + #endif +#else + res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 diff --git a/root_numpy/tmva/__init__.py b/root_numpy/tmva/__init__.py index ea65996..8286f52 100644 --- a/root_numpy/tmva/__init__.py +++ b/root_numpy/tmva/__init__.py @@ -10,8 +10,7 @@ else: - from ._factory import add_classification_events - from ._factory import add_regression_events + from ._data import add_classification_events, add_regression_events from ._evaluate import evaluate_reader, evaluate_method diff --git a/root_numpy/tmva/_factory.py b/root_numpy/tmva/_data.py similarity index 69% rename from root_numpy/tmva/_factory.py rename to root_numpy/tmva/_data.py index 77a390b..d8245ea 100644 --- a/root_numpy/tmva/_factory.py +++ b/root_numpy/tmva/_data.py @@ -2,6 +2,7 @@ import ROOT from ROOT import TMVA from . import _libtmvanumpy +from .. import ROOT_VERSION __all__ = [ @@ -9,16 +10,19 @@ 'add_regression_events', ] +NEW_TMVA_API = ROOT_VERSION >= '6.07/04' -def add_classification_events(factory, events, labels, signal_label=None, + +def add_classification_events(obj, events, labels, signal_label=None, weights=None, test=False): - """Add classification events to a TMVA::Factory from NumPy arrays. + """Add classification events to a TMVA::Factory or TMVA::DataLoader from NumPy arrays. Parameters ---------- - factory : TMVA::Factory - A TMVA::Factory instance with variables already booked in exactly the - same order as the columns in ``events``. + obj : TMVA::Factory or TMVA::DataLoader + A TMVA::Factory or TMVA::DataLoader (TMVA's interface as of ROOT + 6.07/04) instance with variables already booked in exactly the same + order as the columns in ``events``. events : numpy array of shape [n_events, n_variables] A two-dimensional NumPy array containing the rows of events and columns of variables. The order of the columns must match the order in which @@ -37,8 +41,8 @@ def add_classification_events(factory, events, labels, signal_label=None, Notes ----- - * A TMVA::Factory requires you to add both training and test events even if - you don't intend to call ``TestAllMethods()``. + * A TMVA::Factory or TMVA::DataLoader requires you to add both training and + test events even if you don't intend to call ``TestAllMethods()``. * When using MethodCuts, the first event added must be a signal event, otherwise TMVA will fail with `` Interval : maximum lower than @@ -52,8 +56,15 @@ def add_classification_events(factory, events, labels, signal_label=None, weights[0], weights[first_signal] = weights[first_signal], weights[0] """ - if not isinstance(factory, TMVA.Factory): - raise TypeError("factory must be a TMVA.Factory instance") + if NEW_TMVA_API: # pragma: no cover + if not isinstance(obj, TMVA.DataLoader): + raise TypeError( + "obj must be a TMVA.DataLoader " + "instance for ROOT >= 6.07/04") + else: # pragma: no cover + if not isinstance(obj, TMVA.Factory): + raise TypeError( + "obj must be a TMVA.Factory instance") events = np.ascontiguousarray(events, dtype=np.float64) if events.ndim == 1: # convert to 2D @@ -74,29 +85,30 @@ def add_classification_events(factory, events, labels, signal_label=None, n_classes = class_labels.shape[0] if n_classes > 2: # multiclass classification - _libtmvanumpy.factory_add_events_multiclass( - ROOT.AsCObject(factory), events, class_idx, + _libtmvanumpy.add_events_multiclass( + ROOT.AsCObject(obj), events, class_idx, weights, test) elif n_classes == 2: # binary classification if signal_label is None: signal_label = class_labels[1] signal_label = np.where(class_labels == signal_label)[0][0] - _libtmvanumpy.factory_add_events_twoclass( - ROOT.AsCObject(factory), events, class_idx, + _libtmvanumpy.add_events_twoclass( + ROOT.AsCObject(obj), events, class_idx, signal_label, weights, test) else: raise ValueError("labels must contain at least two classes") -def add_regression_events(factory, events, targets, weights=None, test=False): +def add_regression_events(obj, events, targets, weights=None, test=False): """Add regression events to a TMVA::Factory from NumPy arrays. Parameters ---------- - factory : TMVA::Factory - A TMVA::Factory instance with variables already booked in exactly the - same order as the columns in ``events``. + obj : TMVA::Factory or TMVA::DataLoader + A TMVA::Factory or TMVA::DataLoader (TMVA's interface as of ROOT + 6.07/04) instance with variables already + booked in exactly the same order as the columns in ``events``. events : numpy array of shape [n_events, n_variables] A two-dimensional NumPy array containing the rows of events and columns of variables. The order of the columns must match the order in which @@ -113,12 +125,19 @@ def add_regression_events(factory, events, targets, weights=None, test=False): Notes ----- - A TMVA::Factory requires you to add both training and test events even if - you don't intend to call ``TestAllMethods()``. + A TMVA::Factory or TMVA::DataLoader requires you to add both training and + test events even if you don't intend to call ``TestAllMethods()``. """ - if not isinstance(factory, TMVA.Factory): - raise TypeError("factory must be a TMVA.Factory instance") + if NEW_TMVA_API: # pragma: no cover + if not isinstance(obj, TMVA.DataLoader): + raise TypeError( + "obj must be a TMVA.DataLoader " + "instance for ROOT >= 6.07/04") + else: # pragma: no cover + if not isinstance(obj, TMVA.Factory): + raise TypeError( + "obj must be a TMVA.Factory instance") events = np.ascontiguousarray(events, dtype=np.float64) if events.ndim == 1: # convert to 2D @@ -141,5 +160,5 @@ def add_regression_events(factory, events, targets, weights=None, test=False): raise ValueError("numbers of events and weights do not match") if weights.ndim != 1: raise ValueError("weights must be one-dimensional") - _libtmvanumpy.factory_add_events_regression( - ROOT.AsCObject(factory), events, targets, weights, test) + _libtmvanumpy.add_events_regression( + ROOT.AsCObject(obj), events, targets, weights, test) diff --git a/root_numpy/tmva/src/TMVA.pxi b/root_numpy/tmva/src/TMVA.pxi index 60b4a39..dd684bb 100644 --- a/root_numpy/tmva/src/TMVA.pxi +++ b/root_numpy/tmva/src/TMVA.pxi @@ -47,10 +47,10 @@ cdef extern from "TMVA/MethodCuts.h" namespace "TMVA": cdef cppclass MethodCuts: void SetTestSignalEfficiency(double eff) -cdef extern from "TMVA/Factory.h" namespace "TMVA": - cdef cppclass Factory: - void AddEvent(string& classname, ETreeType treetype, vector[double]& event, double weight) - cdef extern from "TMVA/Reader.h" namespace "TMVA": cdef cppclass Reader: IMethod* FindMVA(string name) + +cdef extern from "defs.h": + cdef cppclass TMVA_Object: + void AddEvent(string& classname, ETreeType treetype, vector[double]& event, double weight) diff --git a/root_numpy/tmva/src/_libtmvanumpy.cpp b/root_numpy/tmva/src/_libtmvanumpy.cpp index 1140e32..da47f78 100644 --- a/root_numpy/tmva/src/_libtmvanumpy.cpp +++ b/root_numpy/tmva/src/_libtmvanumpy.cpp @@ -1,4 +1,4 @@ -/* Generated by Cython 0.24 */ +/* Generated by Cython 0.25.1 */ #define PY_SSIZE_T_CLEAN #include "Python.h" @@ -7,7 +7,7 @@ #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython requires Python 2.6+ or Python 3.2+. #else -#define CYTHON_ABI "0_24" +#define CYTHON_ABI "0_25_1" #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) @@ -29,6 +29,11 @@ #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif +#ifndef HAVE_LONG_LONG + #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) + #define HAVE_LONG_LONG + #endif +#endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif @@ -37,13 +42,110 @@ #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 + #define CYTHON_COMPILING_IN_PYSTON 0 + #define CYTHON_COMPILING_IN_CPYTHON 0 + #undef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 0 + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #undef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 0 + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #undef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 1 + #undef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 0 + #undef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 0 + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 +#elif defined(PYSTON_VERSION) + #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 + #ifndef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 1 + #endif + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #undef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 0 + #ifndef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 1 + #endif + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #ifndef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 0 + #endif + #ifndef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 1 + #endif + #ifndef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 1 + #endif + #undef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 0 #else #define CYTHON_COMPILING_IN_PYPY 0 + #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 + #ifndef CYTHON_USE_TYPE_SLOTS + #define CYTHON_USE_TYPE_SLOTS 1 + #endif + #if PY_MAJOR_VERSION < 3 + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #elif !defined(CYTHON_USE_ASYNC_SLOTS) + #define CYTHON_USE_ASYNC_SLOTS 1 + #endif + #if PY_VERSION_HEX < 0x02070000 + #undef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #elif !defined(CYTHON_USE_PYLONG_INTERNALS) + #define CYTHON_USE_PYLONG_INTERNALS 1 + #endif + #ifndef CYTHON_USE_PYLIST_INTERNALS + #define CYTHON_USE_PYLIST_INTERNALS 1 + #endif + #ifndef CYTHON_USE_UNICODE_INTERNALS + #define CYTHON_USE_UNICODE_INTERNALS 1 + #endif + #if PY_VERSION_HEX < 0x030300F0 + #undef CYTHON_USE_UNICODE_WRITER + #define CYTHON_USE_UNICODE_WRITER 0 + #elif !defined(CYTHON_USE_UNICODE_WRITER) + #define CYTHON_USE_UNICODE_WRITER 1 + #endif + #ifndef CYTHON_AVOID_BORROWED_REFS + #define CYTHON_AVOID_BORROWED_REFS 0 + #endif + #ifndef CYTHON_ASSUME_SAFE_MACROS + #define CYTHON_ASSUME_SAFE_MACROS 1 + #endif + #ifndef CYTHON_UNPACK_METHODS + #define CYTHON_UNPACK_METHODS 1 + #endif + #ifndef CYTHON_FAST_THREAD_STATE + #define CYTHON_FAST_THREAD_STATE 1 + #endif + #ifndef CYTHON_FAST_PYCALL + #define CYTHON_FAST_PYCALL 1 + #endif #endif -#if !defined(CYTHON_USE_PYLONG_INTERNALS) && CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x02070000 - #define CYTHON_USE_PYLONG_INTERNALS 1 +#if !defined(CYTHON_FAST_PYCCALL) +#define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" @@ -79,24 +181,44 @@ #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif +#ifndef METH_FASTCALL + #define METH_FASTCALL 0x80 + typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, + Py_ssize_t nargs, PyObject *kwnames); +#else + #define __Pyx_PyCFunctionFast _PyCFunctionFast +#endif +#if CYTHON_FAST_PYCCALL +#define __Pyx_PyFastCFunction_Check(func)\ + ((PyCFunction_Check(func) && METH_FASTCALL == PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))) +#else +#define __Pyx_PyFastCFunction_Check(func) 0 +#endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) + #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) + #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 + #define PyUnicode_1BYTE_KIND 1 + #define PyUnicode_2BYTE_KIND 2 + #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) + #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) + #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY @@ -110,6 +232,9 @@ #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif +#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) + #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) +#endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif @@ -118,6 +243,13 @@ #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif +#if CYTHON_COMPILING_IN_PYSTON + #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) +#else + #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) +#endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 @@ -146,6 +278,7 @@ #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) +#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type @@ -184,18 +317,20 @@ #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif -#if PY_VERSION_HEX >= 0x030500B1 -#define __Pyx_PyAsyncMethodsStruct PyAsyncMethods -#define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) -#elif CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3 -typedef struct { - unaryfunc am_await; - unaryfunc am_aiter; - unaryfunc am_anext; -} __Pyx_PyAsyncMethodsStruct; -#define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) +#if CYTHON_USE_ASYNC_SLOTS + #if PY_VERSION_HEX >= 0x030500B1 + #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods + #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) + #else + typedef struct { + unaryfunc am_await; + unaryfunc am_aiter; + unaryfunc am_anext; + } __Pyx_PyAsyncMethodsStruct; + #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) + #endif #else -#define __Pyx_PyType_AsAsync(obj) NULL + #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) @@ -227,6 +362,8 @@ class __Pyx_FakeReference { __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } T *operator->() { return ptr; } operator T&() { return *ptr; } + template bool operator ==(U other) { return *ptr == other; }; + template bool operator !=(U other) { return *ptr != other; }; private: T *ptr; }; @@ -244,6 +381,11 @@ static CYTHON_INLINE float __PYX_NAN() { return value; } #endif +#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) +#define __Pyx_truncl trunc +#else +#define __Pyx_truncl truncl +#endif #define __PYX_ERR(f_index, lineno, Ln_error) \ @@ -269,9 +411,9 @@ static CYTHON_INLINE float __PYX_NAN() { #define __PYX_HAVE___libtmvanumpy #define __PYX_HAVE_API___libtmvanumpy -#include "string.h" -#include "stdio.h" -#include "stdlib.h" +#include +#include +#include #include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "pythread.h" @@ -290,8 +432,8 @@ static CYTHON_INLINE float __PYX_NAN() { #include "TMVA/IMethod.h" #include "TMVA/MethodBase.h" #include "TMVA/MethodCuts.h" -#include "TMVA/Factory.h" #include "TMVA/Reader.h" +#include "defs.h" #ifdef _OPENMP #include #endif /* _OPENMP */ @@ -397,7 +539,7 @@ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) @@ -505,7 +647,7 @@ static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; -/* None.proto */ +/* Header.proto */ #if !defined(CYTHON_CCOMPLEX) #if defined(__cplusplus) #define CYTHON_CCOMPLEX 1 @@ -530,7 +672,7 @@ static const char *__pyx_filename; static const char *__pyx_f[] = { "root_numpy/tmva/src/evaluate.pyx", - "root_numpy/tmva/src/factory.pyx", + "root_numpy/tmva/src/data.pyx", "array.pxd", "__init__.pxd", "stringsource", @@ -873,7 +1015,7 @@ typedef PY_LONG_LONG __pyx_t_13_libtmvanumpy_long_long; #line 32 "root_numpy/tmva/src/setup.pxi" typedef unsigned PY_LONG_LONG __pyx_t_13_libtmvanumpy_unsigned_long_long; -/* None.proto */ +/* Declarations.proto */ #if CYTHON_CCOMPLEX #ifdef __cplusplus typedef ::std::complex< float > __pyx_t_float_complex; @@ -883,8 +1025,9 @@ typedef unsigned PY_LONG_LONG __pyx_t_13_libtmvanumpy_unsigned_long_long; #else typedef struct { float real, imag; } __pyx_t_float_complex; #endif +static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float); -/* None.proto */ +/* Declarations.proto */ #if CYTHON_CCOMPLEX #ifdef __cplusplus typedef ::std::complex< double > __pyx_t_double_complex; @@ -894,6 +1037,7 @@ typedef unsigned PY_LONG_LONG __pyx_t_13_libtmvanumpy_unsigned_long_long; #else typedef struct { double real, imag; } __pyx_t_double_complex; #endif +static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double); /*--- Type declarations ---*/ @@ -1011,7 +1155,7 @@ typedef npy_cdouble __pyx_t_5numpy_complex_t; #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) @@ -1054,10 +1198,41 @@ static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, __Pyx_BufFmt_StackElem* stack, __Pyx_TypeInfo* type); // PROTO -#define __Pyx_BufPtrStrided1d(type, buf, i0, s0) (type)((char*)buf + i0 * s0) -#define __Pyx_BufPtrStrided2d(type, buf, i0, s0, i1, s1) (type)((char*)buf + i0 * s0 + i1 * s1) -/* PyThreadStateGet.proto */ +/* PyCFunctionFastCall.proto */ +#if CYTHON_FAST_PYCCALL +static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); +#else +#define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) +#endif + +/* PyFunctionFastCall.proto */ +#if CYTHON_FAST_PYCALL +#define __Pyx_PyFunction_FastCall(func, args, nargs)\ + __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) +#if 1 || PY_VERSION_HEX < 0x030600B1 +static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); +#else +#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) +#endif +#endif + +/* PyObjectCall.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); +#else +#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) +#endif + +/* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); +#endif + +/* PyObjectCallOneArg.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); + +/* PyThreadStateGet.proto */ +#if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); #else @@ -1066,7 +1241,7 @@ static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, #endif /* PyErrFetchRestore.proto */ -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_FAST_THREAD_STATE #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) @@ -1080,21 +1255,6 @@ static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif -/* PyObjectCall.proto */ -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); -#else -#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) -#endif - -/* PyObjectCallMethO.proto */ -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); -#endif - -/* PyObjectCallOneArg.proto */ -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); - /* RaiseException.proto */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); @@ -1104,6 +1264,8 @@ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /* ExtTypeTest.proto */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); +#define __Pyx_BufPtrStrided2d(type, buf, i0, s0, i1, s1) (type)((char*)buf + i0 * s0 + i1 * s1) +#define __Pyx_BufPtrStrided1d(type, buf, i0, s0) (type)((char*)buf + i0 * s0) /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { @@ -1134,6 +1296,33 @@ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); /* RaiseNoneIterError.proto */ static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); +/* SaveResetException.proto */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); +#else +#define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) +#define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) +#endif + +/* PyErrExceptionMatches.proto */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) +static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); +#else +#define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) +#endif + +/* GetException.proto */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) +static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#else +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); +#endif + /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); @@ -1246,12 +1435,12 @@ static CYTHON_INLINE int resize(arrayobject *self, Py_ssize_t n) { static CYTHON_INLINE int resize_smart(arrayobject *self, Py_ssize_t n) { void *items = (void*) self->data.ob_item; Py_ssize_t newsize; - if (n < self->ob_size) { + if (n < self->allocated && n*4 > self->allocated) { self->ob_size = n; return 0; } newsize = n + (n / 2) + 1; - if (newsize <= self->allocated) { + if (newsize <= n) { PyErr_NoMemory(); return -1; } @@ -1310,6 +1499,8 @@ static void __Pyx_CppExn2PyErr() { PyErr_SetString(PyExc_MemoryError, exn.what()); } catch (const std::bad_cast& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); + } catch (const std::bad_typeid& exn) { + PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::domain_error& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::invalid_argument& exn) { @@ -1334,16 +1525,16 @@ static void __Pyx_CppExn2PyErr() { } #endif -/* CIntToPy.proto */ -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); - /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); -/* None.proto */ +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); + +/* RealImag.proto */ #if CYTHON_CCOMPLEX #ifdef __cplusplus #define __Pyx_CREAL(z) ((z).real()) @@ -1356,7 +1547,8 @@ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); #define __Pyx_CREAL(z) ((z).real) #define __Pyx_CIMAG(z) ((z).imag) #endif -#if defined(__cplusplus) && CYTHON_CCOMPLEX && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103) +#if defined(__cplusplus) && CYTHON_CCOMPLEX\ + && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103) #define __Pyx_SET_CREAL(z,x) ((z).real(x)) #define __Pyx_SET_CIMAG(z,y) ((z).imag(y)) #else @@ -1364,85 +1556,79 @@ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y) #endif -/* None.proto */ -static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float); - -/* None.proto */ +/* Arithmetic.proto */ #if CYTHON_CCOMPLEX - #define __Pyx_c_eqf(a, b) ((a)==(b)) - #define __Pyx_c_sumf(a, b) ((a)+(b)) - #define __Pyx_c_difff(a, b) ((a)-(b)) - #define __Pyx_c_prodf(a, b) ((a)*(b)) - #define __Pyx_c_quotf(a, b) ((a)/(b)) - #define __Pyx_c_negf(a) (-(a)) + #define __Pyx_c_eq_float(a, b) ((a)==(b)) + #define __Pyx_c_sum_float(a, b) ((a)+(b)) + #define __Pyx_c_diff_float(a, b) ((a)-(b)) + #define __Pyx_c_prod_float(a, b) ((a)*(b)) + #define __Pyx_c_quot_float(a, b) ((a)/(b)) + #define __Pyx_c_neg_float(a) (-(a)) #ifdef __cplusplus - #define __Pyx_c_is_zerof(z) ((z)==(float)0) - #define __Pyx_c_conjf(z) (::std::conj(z)) + #define __Pyx_c_is_zero_float(z) ((z)==(float)0) + #define __Pyx_c_conj_float(z) (::std::conj(z)) #if 1 - #define __Pyx_c_absf(z) (::std::abs(z)) - #define __Pyx_c_powf(a, b) (::std::pow(a, b)) + #define __Pyx_c_abs_float(z) (::std::abs(z)) + #define __Pyx_c_pow_float(a, b) (::std::pow(a, b)) #endif #else - #define __Pyx_c_is_zerof(z) ((z)==0) - #define __Pyx_c_conjf(z) (conjf(z)) + #define __Pyx_c_is_zero_float(z) ((z)==0) + #define __Pyx_c_conj_float(z) (conjf(z)) #if 1 - #define __Pyx_c_absf(z) (cabsf(z)) - #define __Pyx_c_powf(a, b) (cpowf(a, b)) + #define __Pyx_c_abs_float(z) (cabsf(z)) + #define __Pyx_c_pow_float(a, b) (cpowf(a, b)) #endif #endif #else - static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex, __pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex); - static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex); + static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex); + static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex); #if 1 - static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex); - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex, __pyx_t_float_complex); + static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex); + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex); #endif #endif -/* None.proto */ -static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double); - -/* None.proto */ +/* Arithmetic.proto */ #if CYTHON_CCOMPLEX - #define __Pyx_c_eq(a, b) ((a)==(b)) - #define __Pyx_c_sum(a, b) ((a)+(b)) - #define __Pyx_c_diff(a, b) ((a)-(b)) - #define __Pyx_c_prod(a, b) ((a)*(b)) - #define __Pyx_c_quot(a, b) ((a)/(b)) - #define __Pyx_c_neg(a) (-(a)) + #define __Pyx_c_eq_double(a, b) ((a)==(b)) + #define __Pyx_c_sum_double(a, b) ((a)+(b)) + #define __Pyx_c_diff_double(a, b) ((a)-(b)) + #define __Pyx_c_prod_double(a, b) ((a)*(b)) + #define __Pyx_c_quot_double(a, b) ((a)/(b)) + #define __Pyx_c_neg_double(a) (-(a)) #ifdef __cplusplus - #define __Pyx_c_is_zero(z) ((z)==(double)0) - #define __Pyx_c_conj(z) (::std::conj(z)) + #define __Pyx_c_is_zero_double(z) ((z)==(double)0) + #define __Pyx_c_conj_double(z) (::std::conj(z)) #if 1 - #define __Pyx_c_abs(z) (::std::abs(z)) - #define __Pyx_c_pow(a, b) (::std::pow(a, b)) + #define __Pyx_c_abs_double(z) (::std::abs(z)) + #define __Pyx_c_pow_double(a, b) (::std::pow(a, b)) #endif #else - #define __Pyx_c_is_zero(z) ((z)==0) - #define __Pyx_c_conj(z) (conj(z)) + #define __Pyx_c_is_zero_double(z) ((z)==0) + #define __Pyx_c_conj_double(z) (conj(z)) #if 1 - #define __Pyx_c_abs(z) (cabs(z)) - #define __Pyx_c_pow(a, b) (cpow(a, b)) + #define __Pyx_c_abs_double(z) (cabs(z)) + #define __Pyx_c_pow_double(a, b) (cpow(a, b)) #endif #endif #else - static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex, __pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex); - static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex); + static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex); + static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex); #if 1 - static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex); - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex, __pyx_t_double_complex); + static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex); + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex); #endif #endif @@ -1571,6 +1757,7 @@ static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0; static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0; static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0; static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/ +static CYTHON_INLINE int __pyx_f_5numpy_import_array(void); /*proto*/ /* Module declarations from 'array' */ @@ -1601,8 +1788,8 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_multiclass(TMVA::MethodBase *, static PyObject *__pyx_f_13_libtmvanumpy_evaluate_regression(TMVA::MethodBase *, PyArrayObject *, unsigned int); /*proto*/ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *); /*proto*/ static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_double_t = { "double_t", NULL, sizeof(__pyx_t_5numpy_double_t), { 0 }, 0, 'R', 0, 0 }; -static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int_t = { "int_t", NULL, sizeof(__pyx_t_5numpy_int_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int_t), 0 }; static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t = { "float32_t", NULL, sizeof(__pyx_t_5numpy_float32_t), { 0 }, 0, 'R', 0, 0 }; +static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int_t = { "int_t", NULL, sizeof(__pyx_t_5numpy_int_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int_t), 0 }; #define __Pyx_MODULE_NAME "_libtmvanumpy" int __pyx_module_is_main__libtmvanumpy = 0; @@ -1612,10 +1799,12 @@ static PyObject *__pyx_builtin_AssertionError; static PyObject *__pyx_builtin_MemoryError; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_RuntimeError; +static PyObject *__pyx_builtin_ImportError; static const char __pyx_k_i[] = "i"; static const char __pyx_k_j[] = "j"; static const char __pyx_k_np[] = "np"; static const char __pyx_k_aux[] = "aux"; +static const char __pyx_k_obj[] = "obj"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "name"; static const char __pyx_k_size[] = "size"; @@ -1626,6 +1815,7 @@ static const char __pyx_k_event[] = "event"; static const char __pyx_k_imeth[] = "imeth"; static const char __pyx_k_label[] = "label"; static const char __pyx_k_numpy[] = "numpy"; +static const char __pyx_k_obj_2[] = "_obj"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_ravel[] = "ravel"; static const char __pyx_k_Signal[] = "Signal"; @@ -1638,20 +1828,19 @@ static const char __pyx_k_method[] = "method"; static const char __pyx_k_reader[] = "reader"; static const char __pyx_k_test_2[] = "__test__"; static const char __pyx_k_weight[] = "weight"; -static const char __pyx_k_factory[] = "factory"; static const char __pyx_k_float32[] = "float32"; static const char __pyx_k_targets[] = "targets"; static const char __pyx_k_weights[] = "weights"; static const char __pyx_k_method_2[] = "_method"; static const char __pyx_k_reader_2[] = "_reader"; static const char __pyx_k_treetype[] = "treetype"; -static const char __pyx_k_factory_2[] = "_factory"; static const char __pyx_k_n_targets[] = "n_targets"; static const char __pyx_k_Background[] = "Background"; static const char __pyx_k_Class__0_d[] = "Class_{0:d}"; static const char __pyx_k_Regression[] = "Regression"; static const char __pyx_k_ValueError[] = "ValueError"; static const char __pyx_k_n_features[] = "n_features"; +static const char __pyx_k_ImportError[] = "ImportError"; static const char __pyx_k_MemoryError[] = "MemoryError"; static const char __pyx_k_RuntimeError[] = "RuntimeError"; static const char __pyx_k_libtmvanumpy[] = "_libtmvanumpy"; @@ -1659,17 +1848,19 @@ static const char __pyx_k_signal_label[] = "signal_label"; static const char __pyx_k_AssertionError[] = "AssertionError"; static const char __pyx_k_evaluate_method[] = "evaluate_method"; static const char __pyx_k_evaluate_reader[] = "evaluate_reader"; -static const char __pyx_k_factory_add_events_twoclass[] = "factory_add_events_twoclass"; +static const char __pyx_k_add_events_twoclass[] = "add_events_twoclass"; +static const char __pyx_k_add_events_multiclass[] = "add_events_multiclass"; +static const char __pyx_k_add_events_regression[] = "add_events_regression"; static const char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous"; -static const char __pyx_k_factory_add_events_multiclass[] = "factory_add_events_multiclass"; -static const char __pyx_k_factory_add_events_regression[] = "factory_add_events_regression"; -static const char __pyx_k_home_endw_workspace_root_numpy[] = "/home/endw/workspace/root_numpy/root_numpy/tmva/src/factory.pyx"; +static const char __pyx_k_home_endw_workspace_root_numpy[] = "/home/endw/workspace/root_numpy/root_numpy/tmva/src/evaluate.pyx"; +static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import"; static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)"; static const char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd"; static const char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported"; -static const char __pyx_k_home_endw_workspace_root_numpy_2[] = "/home/endw/workspace/root_numpy/root_numpy/tmva/src/evaluate.pyx"; +static const char __pyx_k_home_endw_workspace_root_numpy_2[] = "/home/endw/workspace/root_numpy/root_numpy/tmva/src/data.pyx"; static const char __pyx_k_method_0_is_not_booked_in_this_r[] = "method '{0}' is not booked in this reader"; static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous"; +static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import"; static const char __pyx_k_the_analysis_type_of_this_method[] = "the analysis type of this method is not supported"; static const char __pyx_k_there_must_be_at_least_one_regre[] = "there must be at least one regression target"; static const char __pyx_k_there_must_be_at_least_two_class[] = "there must be at least two classes"; @@ -1680,12 +1871,16 @@ static PyObject *__pyx_n_b_Background; static PyObject *__pyx_kp_s_Class__0_d; static PyObject *__pyx_kp_u_Format_string_allocated_too_shor; static PyObject *__pyx_kp_u_Format_string_allocated_too_shor_2; +static PyObject *__pyx_n_s_ImportError; static PyObject *__pyx_n_s_MemoryError; static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor; static PyObject *__pyx_n_b_Regression; static PyObject *__pyx_n_s_RuntimeError; static PyObject *__pyx_n_b_Signal; static PyObject *__pyx_n_s_ValueError; +static PyObject *__pyx_n_s_add_events_multiclass; +static PyObject *__pyx_n_s_add_events_regression; +static PyObject *__pyx_n_s_add_events_twoclass; static PyObject *__pyx_n_s_aux; static PyObject *__pyx_n_s_double; static PyObject *__pyx_n_s_dtype; @@ -1694,11 +1889,6 @@ static PyObject *__pyx_n_s_evaluate_method; static PyObject *__pyx_n_s_evaluate_reader; static PyObject *__pyx_n_s_event; static PyObject *__pyx_n_s_events; -static PyObject *__pyx_n_s_factory; -static PyObject *__pyx_n_s_factory_2; -static PyObject *__pyx_n_s_factory_add_events_multiclass; -static PyObject *__pyx_n_s_factory_add_events_regression; -static PyObject *__pyx_n_s_factory_add_events_twoclass; static PyObject *__pyx_n_s_float32; static PyObject *__pyx_n_s_format; static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy; @@ -1721,6 +1911,10 @@ static PyObject *__pyx_kp_u_ndarray_is_not_C_contiguous; static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou; static PyObject *__pyx_n_s_np; static PyObject *__pyx_n_s_numpy; +static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to; +static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor; +static PyObject *__pyx_n_s_obj; +static PyObject *__pyx_n_s_obj_2; static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_s_ravel; static PyObject *__pyx_n_s_reader; @@ -1738,11 +1932,11 @@ static PyObject *__pyx_n_s_treetype; static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd; static PyObject *__pyx_n_s_weight; static PyObject *__pyx_n_s_weights; -static PyObject *__pyx_pf_13_libtmvanumpy_factory_add_events_twoclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_factory, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, int __pyx_v_signal_label, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ -static PyObject *__pyx_pf_13_libtmvanumpy_2factory_add_events_multiclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_factory, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ -static PyObject *__pyx_pf_13_libtmvanumpy_4factory_add_events_regression(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_factory, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_targets, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ -static PyObject *__pyx_pf_13_libtmvanumpy_6evaluate_reader(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_reader, PyObject *__pyx_v_name, PyArrayObject *__pyx_v_events, double __pyx_v_aux); /* proto */ -static PyObject *__pyx_pf_13_libtmvanumpy_8evaluate_method(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_method, PyArrayObject *__pyx_v_events, double __pyx_v_aux); /* proto */ +static PyObject *__pyx_pf_13_libtmvanumpy_evaluate_reader(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_reader, PyObject *__pyx_v_name, PyArrayObject *__pyx_v_events, double __pyx_v_aux); /* proto */ +static PyObject *__pyx_pf_13_libtmvanumpy_2evaluate_method(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_method, PyArrayObject *__pyx_v_events, double __pyx_v_aux); /* proto */ +static PyObject *__pyx_pf_13_libtmvanumpy_4add_events_twoclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, int __pyx_v_signal_label, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ +static PyObject *__pyx_pf_13_libtmvanumpy_6add_events_multiclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ +static PyObject *__pyx_pf_13_libtmvanumpy_8add_events_regression(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_targets, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags); /* proto */ static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */ @@ -1757,11210 +1951,12241 @@ static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; +static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; -static PyObject *__pyx_tuple__14; -static PyObject *__pyx_tuple__16; -static PyObject *__pyx_tuple__18; -static PyObject *__pyx_codeobj__11; -static PyObject *__pyx_codeobj__13; -static PyObject *__pyx_codeobj__15; -static PyObject *__pyx_codeobj__17; -static PyObject *__pyx_codeobj__19; - -/* "root_numpy/tmva/src/factory.pyx":4 +static PyObject *__pyx_tuple__13; +static PyObject *__pyx_tuple__15; +static PyObject *__pyx_tuple__17; +static PyObject *__pyx_tuple__19; +static PyObject *__pyx_tuple__21; +static PyObject *__pyx_codeobj__14; +static PyObject *__pyx_codeobj__16; +static PyObject *__pyx_codeobj__18; +static PyObject *__pyx_codeobj__20; +static PyObject *__pyx_codeobj__22; + +/* "root_numpy/tmva/src/evaluate.pyx":3 * @cython.boundscheck(False) * @cython.wraparound(False) - * def factory_add_events_twoclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) + * cdef IMethod* imeth = _reader.FindMVA(name) */ -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" /* Python wrapper */ -#line 4 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_1factory_add_events_twoclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_13_libtmvanumpy_1factory_add_events_twoclass = -#line 4 "root_numpy/tmva/src/factory.pyx" -{"factory_add_events_twoclass", (PyCFunction)__pyx_pw_13_libtmvanumpy_1factory_add_events_twoclass, METH_VARARGS|METH_KEYWORDS, 0}; +#line 3 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_1evaluate_reader(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_13_libtmvanumpy_1evaluate_reader = +#line 3 "root_numpy/tmva/src/evaluate.pyx" +{"evaluate_reader", (PyCFunction)__pyx_pw_13_libtmvanumpy_1evaluate_reader, METH_VARARGS|METH_KEYWORDS, 0}; -#line 4 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_1factory_add_events_twoclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_factory = 0 -#line 4 "root_numpy/tmva/src/factory.pyx" -; - PyArrayObject *__pyx_v_events = 0 -#line 4 "root_numpy/tmva/src/factory.pyx" -; - PyArrayObject *__pyx_v_labels = 0 -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_1evaluate_reader(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_reader = 0 +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; - int __pyx_v_signal_label -#line 4 "root_numpy/tmva/src/factory.pyx" + PyObject *__pyx_v_name = 0 +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; - PyArrayObject *__pyx_v_weights = 0 -#line 4 "root_numpy/tmva/src/factory.pyx" + PyArrayObject *__pyx_v_events = 0 +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; - bool __pyx_v_test -#line 4 "root_numpy/tmva/src/factory.pyx" + double __pyx_v_aux +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" PyObject *__pyx_r = 0; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyDeclarations -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannySetupContext("factory_add_events_twoclass (wrapper)", 0); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_reader (wrapper)", 0); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" { -#line 4 "root_numpy/tmva/src/factory.pyx" - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_factory,&__pyx_n_s_events,&__pyx_n_s_labels,&__pyx_n_s_signal_label,&__pyx_n_s_weights,&__pyx_n_s_test,0}; - -#line 4 "root_numpy/tmva/src/factory.pyx" - PyObject* values[6] = {0,0,0,0,0,0}; - - /* "root_numpy/tmva/src/factory.pyx":9 - * np.ndarray[np.int_t, ndim=1] labels, - * int signal_label, - * np.ndarray[np.double_t, ndim=1] weights=None, # <<<<<<<<<<<<<< - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - */ +#line 3 "root_numpy/tmva/src/evaluate.pyx" + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_reader,&__pyx_n_s_name,&__pyx_n_s_events,&__pyx_n_s_aux,0}; -#line 9 "root_numpy/tmva/src/factory.pyx" - values[4] = (PyObject *)((PyArrayObject *)Py_None); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + PyObject* values[4] = {0,0,0,0}; -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" if (unlikely(__pyx_kwds)) { -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" Py_ssize_t kw_args; -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" switch (pos_args) { - case 6: -#line 9 "root_numpy/tmva/src/factory.pyx" -values[5] = PyTuple_GET_ITEM(__pyx_args, 5); - case 5: -#line 9 "root_numpy/tmva/src/factory.pyx" -values[4] = PyTuple_GET_ITEM(__pyx_args, 4); case 4: -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" case 0: break; default: -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L5_argtuple_error; -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" kw_args = PyDict_Size(__pyx_kwds); -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" switch (pos_args) { -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" case 0: -#line 9 "root_numpy/tmva/src/factory.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_factory)) != 0)) kw_args--; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_reader)) != 0)) kw_args--; else -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L5_argtuple_error; -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" case 1: -#line 9 "root_numpy/tmva/src/factory.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" else { - __Pyx_RaiseArgtupleInvalid("factory_add_events_twoclass", 0, 4, 6, 1); -#line 9 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 4, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, 1); +#line 3 "root_numpy/tmva/src/evaluate.pyx" +__PYX_ERR(0, 3, __pyx_L3_error) -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" case 2: -#line 9 "root_numpy/tmva/src/factory.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" else { - __Pyx_RaiseArgtupleInvalid("factory_add_events_twoclass", 0, 4, 6, 2); -#line 9 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 4, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, 2); +#line 3 "root_numpy/tmva/src/evaluate.pyx" +__PYX_ERR(0, 3, __pyx_L3_error) -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" case 3: -#line 9 "root_numpy/tmva/src/factory.pyx" - if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_signal_label)) != 0)) kw_args--; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" else { - __Pyx_RaiseArgtupleInvalid("factory_add_events_twoclass", 0, 4, 6, 3); -#line 9 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 4, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, 3); +#line 3 "root_numpy/tmva/src/evaluate.pyx" +__PYX_ERR(0, 3, __pyx_L3_error) -#line 9 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -#line 9 "root_numpy/tmva/src/factory.pyx" - case 4: +#line 3 "root_numpy/tmva/src/evaluate.pyx" + } -#line 9 "root_numpy/tmva/src/factory.pyx" - if (kw_args > 0) { +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(kw_args > 0)) { -#line 9 "root_numpy/tmva/src/factory.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "evaluate_reader") < 0)) __PYX_ERR(0, 3, __pyx_L3_error) -#line 9 "root_numpy/tmva/src/factory.pyx" - if (value) { values[4] = value; kw_args--; } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + } -#line 9 "root_numpy/tmva/src/factory.pyx" - } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { -#line 9 "root_numpy/tmva/src/factory.pyx" - case 5: +#line 3 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L5_argtuple_error; -#line 9 "root_numpy/tmva/src/factory.pyx" - if (kw_args > 0) { +#line 3 "root_numpy/tmva/src/evaluate.pyx" + } else { -#line 9 "root_numpy/tmva/src/factory.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 9 "root_numpy/tmva/src/factory.pyx" - if (value) { values[5] = value; kw_args--; } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + values[1] = PyTuple_GET_ITEM(__pyx_args, 1); -#line 9 "root_numpy/tmva/src/factory.pyx" - } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + values[2] = PyTuple_GET_ITEM(__pyx_args, 2); -#line 9 "root_numpy/tmva/src/factory.pyx" - } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + values[3] = PyTuple_GET_ITEM(__pyx_args, 3); -#line 9 "root_numpy/tmva/src/factory.pyx" - if (unlikely(kw_args > 0)) { +#line 3 "root_numpy/tmva/src/evaluate.pyx" + } -#line 9 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "factory_add_events_twoclass") < 0)) __PYX_ERR(1, 4, __pyx_L3_error) +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_reader = values[0]; -#line 9 "root_numpy/tmva/src/factory.pyx" - } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_name = values[1]; -#line 9 "root_numpy/tmva/src/factory.pyx" - } else { +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_events = ((PyArrayObject *)values[2]); -#line 9 "root_numpy/tmva/src/factory.pyx" - switch (PyTuple_GET_SIZE(__pyx_args)) { - case 6: -#line 9 "root_numpy/tmva/src/factory.pyx" -values[5] = PyTuple_GET_ITEM(__pyx_args, 5); - case 5: -#line 9 "root_numpy/tmva/src/factory.pyx" -values[4] = PyTuple_GET_ITEM(__pyx_args, 4); - case 4: -#line 9 "root_numpy/tmva/src/factory.pyx" -values[3] = PyTuple_GET_ITEM(__pyx_args, 3); - -#line 9 "root_numpy/tmva/src/factory.pyx" - values[2] = PyTuple_GET_ITEM(__pyx_args, 2); - -#line 9 "root_numpy/tmva/src/factory.pyx" - values[1] = PyTuple_GET_ITEM(__pyx_args, 1); - -#line 9 "root_numpy/tmva/src/factory.pyx" - values[0] = PyTuple_GET_ITEM(__pyx_args, 0); - -#line 9 "root_numpy/tmva/src/factory.pyx" - break; - default: -#line 9 "root_numpy/tmva/src/factory.pyx" -goto __pyx_L5_argtuple_error; - -#line 9 "root_numpy/tmva/src/factory.pyx" - } - -#line 9 "root_numpy/tmva/src/factory.pyx" - } - -#line 9 "root_numpy/tmva/src/factory.pyx" - __pyx_v_factory = values[0]; - -#line 9 "root_numpy/tmva/src/factory.pyx" - __pyx_v_events = ((PyArrayObject *)values[1]); - -#line 9 "root_numpy/tmva/src/factory.pyx" - __pyx_v_labels = ((PyArrayObject *)values[2]); - -#line 9 "root_numpy/tmva/src/factory.pyx" - __pyx_v_signal_label = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_signal_label == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 8, __pyx_L3_error) - -#line 9 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weights = ((PyArrayObject *)values[4]); - -#line 9 "root_numpy/tmva/src/factory.pyx" - if (values[5]) { - -#line 9 "root_numpy/tmva/src/factory.pyx" - __pyx_v_test = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_test == (bool)-1) && PyErr_Occurred())) __PYX_ERR(1, 10, __pyx_L3_error) - -#line 9 "root_numpy/tmva/src/factory.pyx" - } else { - - /* "root_numpy/tmva/src/factory.pyx":10 - * int signal_label, - * np.ndarray[np.double_t, ndim=1] weights=None, - * bool test=False): # <<<<<<<<<<<<<< - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] - */ - -#line 10 "root_numpy/tmva/src/factory.pyx" - __pyx_v_test = ((bool)0); - -#line 10 "root_numpy/tmva/src/factory.pyx" - } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_aux = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_aux == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3, __pyx_L3_error) -#line 10 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -#line 10 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L4_argument_unpacking_done; -#line 10 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("factory_add_events_twoclass", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); -#line 10 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 4, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); +#line 3 "root_numpy/tmva/src/evaluate.pyx" +__PYX_ERR(0, 3, __pyx_L3_error) -#line 10 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_L3_error:; -#line 10 "root_numpy/tmva/src/factory.pyx" - __Pyx_AddTraceback("_libtmvanumpy.factory_add_events_twoclass", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_reader", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 10 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); -#line 10 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" return NULL; -#line 10 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_L4_argument_unpacking_done:; -#line 10 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(1, 6, __pyx_L1_error) - -#line 10 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_labels), __pyx_ptype_5numpy_ndarray, 1, "labels", 0))) __PYX_ERR(1, 7, __pyx_L1_error) - -#line 10 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1, "weights", 0))) __PYX_ERR(1, 9, __pyx_L1_error) +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(0, 3, __pyx_L1_error) __pyx_r = -#line 10 "root_numpy/tmva/src/factory.pyx" -__pyx_pf_13_libtmvanumpy_factory_add_events_twoclass(__pyx_self, __pyx_v_factory, __pyx_v_events, __pyx_v_labels, __pyx_v_signal_label, __pyx_v_weights, __pyx_v_test); - - /* "root_numpy/tmva/src/factory.pyx":4 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_twoclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, - */ +#line 3 "root_numpy/tmva/src/evaluate.pyx" +__pyx_pf_13_libtmvanumpy_evaluate_reader(__pyx_self, __pyx_v_reader, __pyx_v_name, __pyx_v_events, __pyx_v_aux); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" /* function exit code */ -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_L1_error:; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_r = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_L0:; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" return __pyx_r; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" -#line 4 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pf_13_libtmvanumpy_factory_add_events_twoclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_factory, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, int __pyx_v_signal_label, PyArrayObject *__pyx_v_weights, bool __pyx_v_test) { - TMVA::Factory *__pyx_v__factory -#line 4 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_size -#line 4 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_n_features -#line 4 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_i -#line 4 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_j -#line 4 "root_numpy/tmva/src/factory.pyx" -; - double __pyx_v_weight -#line 4 "root_numpy/tmva/src/factory.pyx" -; - int __pyx_v_label -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_pf_13_libtmvanumpy_evaluate_reader(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_reader, PyObject *__pyx_v_name, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { + TMVA::Reader *__pyx_v__reader +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; - std::vector *__pyx_v_event -#line 4 "root_numpy/tmva/src/factory.pyx" + TMVA::IMethod *__pyx_v_imeth +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; - TMVA::Types::ETreeType __pyx_v_treetype -#line 4 "root_numpy/tmva/src/factory.pyx" + TMVA::MethodBase *__pyx_v_method +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; __Pyx_Buffer __pyx_pybuffer_events -#line 4 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_labels -#line 4 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_labels -#line 4 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_weights -#line 4 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_weights -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" ; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" PyObject *__pyx_r = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyDeclarations -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" void *__pyx_t_1; -#line 4 "root_numpy/tmva/src/factory.pyx" - std::vector *__pyx_t_2; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + std::string __pyx_t_2; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" int __pyx_t_3; -#line 4 "root_numpy/tmva/src/factory.pyx" - long __pyx_t_4; - -#line 4 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_5; - -#line 4 "root_numpy/tmva/src/factory.pyx" - int __pyx_t_6; - -#line 4 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_7; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_4 = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" - long __pyx_t_8; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_5 = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_9; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_6 = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_10; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_7 = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" - std::string __pyx_t_11; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + TMVA::MethodBase *__pyx_t_8; -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannySetupContext("factory_add_events_twoclass", 0); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_reader", 0); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffer_events.refcount = 0; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffernd_events.data = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_labels.pybuffer.buf = NULL; - -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_labels.refcount = 0; - -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_labels.data = NULL; - -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_labels.rcbuffer = &__pyx_pybuffer_labels; - -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_weights.pybuffer.buf = NULL; - -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_weights.refcount = 0; - -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.data = NULL; - -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.rcbuffer = &__pyx_pybuffer_weights; - -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" { -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 4 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 4, __pyx_L1_error) +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 3, __pyx_L1_error) -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; -#line 4 "root_numpy/tmva/src/factory.pyx" - { - -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; + /* "root_numpy/tmva/src/evaluate.pyx":4 + * @cython.wraparound(False) + * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): + * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) # <<<<<<<<<<<<<< + * cdef IMethod* imeth = _reader.FindMVA(name) + * if imeth == NULL: + */ -#line 4 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_labels.rcbuffer->pybuffer, (PyObject*)__pyx_v_labels, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 4, __pyx_L1_error) +#line 4 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_reader); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(0, 4, __pyx_L1_error) -#line 4 "root_numpy/tmva/src/factory.pyx" - } +#line 4 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__reader = ((TMVA::Reader *)__pyx_t_1); -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_labels.diminfo[0].strides = __pyx_pybuffernd_labels.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_labels.diminfo[0].shape = __pyx_pybuffernd_labels.rcbuffer->pybuffer.shape[0]; + /* "root_numpy/tmva/src/evaluate.pyx":5 + * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): + * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) + * cdef IMethod* imeth = _reader.FindMVA(name) # <<<<<<<<<<<<<< + * if imeth == NULL: + * raise ValueError( + */ -#line 4 "root_numpy/tmva/src/factory.pyx" - { +#line 5 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5, __pyx_L1_error) -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 5 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_imeth = __pyx_v__reader->FindMVA(__pyx_t_2); -#line 4 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_weights.rcbuffer->pybuffer, (PyObject*)__pyx_v_weights, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 4, __pyx_L1_error) + /* "root_numpy/tmva/src/evaluate.pyx":6 + * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) + * cdef IMethod* imeth = _reader.FindMVA(name) + * if imeth == NULL: # <<<<<<<<<<<<<< + * raise ValueError( + * "method '{0}' is not booked in this reader".format(name)) + */ -#line 4 "root_numpy/tmva/src/factory.pyx" - } +#line 6 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = ((__pyx_v_imeth == NULL) != 0); -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.diminfo[0].strides = __pyx_pybuffernd_weights.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_weights.diminfo[0].shape = __pyx_pybuffernd_weights.rcbuffer->pybuffer.shape[0]; +#line 6 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_3) { - /* "root_numpy/tmva/src/factory.pyx":11 - * np.ndarray[np.double_t, ndim=1] weights=None, - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) # <<<<<<<<<<<<<< - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] + /* "root_numpy/tmva/src/evaluate.pyx":8 + * if imeth == NULL: + * raise ValueError( + * "method '{0}' is not booked in this reader".format(name)) # <<<<<<<<<<<<<< + * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) + * return evaluate_method_dispatch(method, events, aux) */ -#line 11 "root_numpy/tmva/src/factory.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_factory); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 11, __pyx_L1_error) +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_method_0_is_not_booked_in_this_r, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8, __pyx_L1_error) -#line 11 "root_numpy/tmva/src/factory.pyx" - __pyx_v__factory = ((TMVA::Factory *)__pyx_t_1); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); - /* "root_numpy/tmva/src/factory.pyx":12 - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] # <<<<<<<<<<<<<< - * cdef long n_features = events.shape[1] - * cdef long i, j - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = NULL; -#line 12 "root_numpy/tmva/src/factory.pyx" - __pyx_v_size = (__pyx_v_events->dimensions[0]); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { - /* "root_numpy/tmva/src/factory.pyx":13 - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< - * cdef long i, j - * cdef double weight = 1. - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); -#line 13 "root_numpy/tmva/src/factory.pyx" - __pyx_v_n_features = (__pyx_v_events->dimensions[1]); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + if (likely(__pyx_t_6)) { - /* "root_numpy/tmva/src/factory.pyx":15 - * cdef long n_features = events.shape[1] - * cdef long i, j - * cdef double weight = 1. # <<<<<<<<<<<<<< - * cdef int label - * cdef vector[double]* event = new vector[double](n_features) - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); -#line 15 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weight = 1.; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(__pyx_t_6); - /* "root_numpy/tmva/src/factory.pyx":17 - * cdef double weight = 1. - * cdef int label - * cdef vector[double]* event = new vector[double](n_features) # <<<<<<<<<<<<<< - * cdef ETreeType treetype = kTraining - * if test: - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(function); -#line 17 "root_numpy/tmva/src/factory.pyx" - try { +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF_SET(__pyx_t_5, function); -#line 17 "root_numpy/tmva/src/factory.pyx" - __pyx_t_2 = new std::vector (__pyx_v_n_features); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + } -#line 17 "root_numpy/tmva/src/factory.pyx" - } catch(...) { +#line 8 "root_numpy/tmva/src/evaluate.pyx" + } -#line 17 "root_numpy/tmva/src/factory.pyx" - __Pyx_CppExn2PyErr(); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + if (!__pyx_t_6) { -#line 17 "root_numpy/tmva/src/factory.pyx" - __PYX_ERR(1, 17, __pyx_L1_error) +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8, __pyx_L1_error) -#line 17 "root_numpy/tmva/src/factory.pyx" - } +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 17 "root_numpy/tmva/src/factory.pyx" - __pyx_v_event = __pyx_t_2; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + } else { - /* "root_numpy/tmva/src/factory.pyx":18 - * cdef int label - * cdef vector[double]* event = new vector[double](n_features) - * cdef ETreeType treetype = kTraining # <<<<<<<<<<<<<< - * if test: - * treetype = kTesting - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + #if CYTHON_FAST_PYCALL -#line 18 "root_numpy/tmva/src/factory.pyx" - __pyx_v_treetype = TMVA::Types::kTraining; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + if (PyFunction_Check(__pyx_t_5)) { - /* "root_numpy/tmva/src/factory.pyx":19 - * cdef vector[double]* event = new vector[double](n_features) - * cdef ETreeType treetype = kTraining - * if test: # <<<<<<<<<<<<<< - * treetype = kTesting - * for i from 0 <= i < size: - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_name}; -#line 19 "root_numpy/tmva/src/factory.pyx" - __pyx_t_3 = (__pyx_v_test != 0); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8, __pyx_L1_error) -#line 19 "root_numpy/tmva/src/factory.pyx" - if (__pyx_t_3) { +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "root_numpy/tmva/src/factory.pyx":20 - * cdef ETreeType treetype = kTraining - * if test: - * treetype = kTesting # <<<<<<<<<<<<<< - * for i from 0 <= i < size: - * label = labels[i] - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 20 "root_numpy/tmva/src/factory.pyx" - __pyx_v_treetype = TMVA::Types::kTesting; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + } else - /* "root_numpy/tmva/src/factory.pyx":19 - * cdef vector[double]* event = new vector[double](n_features) - * cdef ETreeType treetype = kTraining - * if test: # <<<<<<<<<<<<<< - * treetype = kTesting - * for i from 0 <= i < size: - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + #endif -#line 19 "root_numpy/tmva/src/factory.pyx" - } +#line 8 "root_numpy/tmva/src/evaluate.pyx" + #if CYTHON_FAST_PYCCALL - /* "root_numpy/tmva/src/factory.pyx":21 - * if test: - * treetype = kTesting - * for i from 0 <= i < size: # <<<<<<<<<<<<<< - * label = labels[i] - * if weights is not None: - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { -#line 21 "root_numpy/tmva/src/factory.pyx" - __pyx_t_4 = __pyx_v_size; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_name}; -#line 21 "root_numpy/tmva/src/factory.pyx" - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_4; __pyx_v_i++) { +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8, __pyx_L1_error) - /* "root_numpy/tmva/src/factory.pyx":22 - * treetype = kTesting - * for i from 0 <= i < size: - * label = labels[i] # <<<<<<<<<<<<<< - * if weights is not None: - * weight = weights[i] - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; -#line 22 "root_numpy/tmva/src/factory.pyx" - __pyx_t_5 = __pyx_v_i; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 22 "root_numpy/tmva/src/factory.pyx" - __pyx_v_label = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int_t *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf, __pyx_t_5, __pyx_pybuffernd_labels.diminfo[0].strides)); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + } else - /* "root_numpy/tmva/src/factory.pyx":23 - * for i from 0 <= i < size: - * label = labels[i] - * if weights is not None: # <<<<<<<<<<<<<< - * weight = weights[i] - * for j from 0 <= j < n_features: - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + #endif -#line 23 "root_numpy/tmva/src/factory.pyx" - __pyx_t_3 = (((PyObject *)__pyx_v_weights) != Py_None); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + { -#line 23 "root_numpy/tmva/src/factory.pyx" - __pyx_t_6 = (__pyx_t_3 != 0); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8, __pyx_L1_error) -#line 23 "root_numpy/tmva/src/factory.pyx" - if (__pyx_t_6) { +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_7); - /* "root_numpy/tmva/src/factory.pyx":24 - * label = labels[i] - * if weights is not None: - * weight = weights[i] # <<<<<<<<<<<<<< - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; -#line 24 "root_numpy/tmva/src/factory.pyx" - __pyx_t_7 = __pyx_v_i; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(__pyx_v_name); -#line 24 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weight = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_weights.rcbuffer->pybuffer.buf, __pyx_t_7, __pyx_pybuffernd_weights.diminfo[0].strides)); +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_v_name); - /* "root_numpy/tmva/src/factory.pyx":23 - * for i from 0 <= i < size: - * label = labels[i] - * if weights is not None: # <<<<<<<<<<<<<< - * weight = weights[i] - * for j from 0 <= j < n_features: - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_name); -#line 23 "root_numpy/tmva/src/factory.pyx" - } +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8, __pyx_L1_error) - /* "root_numpy/tmva/src/factory.pyx":25 - * if weights is not None: - * weight = weights[i] - * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< - * event[0][j] = events[i, j] - * if label == signal_label: - */ +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 25 "root_numpy/tmva/src/factory.pyx" - __pyx_t_8 = __pyx_v_n_features; +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; -#line 25 "root_numpy/tmva/src/factory.pyx" - for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { +#line 8 "root_numpy/tmva/src/evaluate.pyx" + } - /* "root_numpy/tmva/src/factory.pyx":26 - * weight = weights[i] - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] # <<<<<<<<<<<<<< - * if label == signal_label: - * _factory.AddEvent("Signal", treetype, event[0], weight) +#line 8 "root_numpy/tmva/src/evaluate.pyx" + } + +#line 8 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "root_numpy/tmva/src/evaluate.pyx":7 + * cdef IMethod* imeth = _reader.FindMVA(name) + * if imeth == NULL: + * raise ValueError( # <<<<<<<<<<<<<< + * "method '{0}' is not booked in this reader".format(name)) + * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) */ -#line 26 "root_numpy/tmva/src/factory.pyx" - __pyx_t_9 = __pyx_v_i; +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7, __pyx_L1_error) -#line 26 "root_numpy/tmva/src/factory.pyx" - __pyx_t_10 = __pyx_v_j; +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 26 "root_numpy/tmva/src/factory.pyx" - ((__pyx_v_event[0])[__pyx_v_j]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides)); +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_4); -#line 26 "root_numpy/tmva/src/factory.pyx" - } +#line 7 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); - /* "root_numpy/tmva/src/factory.pyx":27 - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] - * if label == signal_label: # <<<<<<<<<<<<<< - * _factory.AddEvent("Signal", treetype, event[0], weight) - * else: - */ +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = 0; -#line 27 "root_numpy/tmva/src/factory.pyx" - __pyx_t_6 = ((__pyx_v_label == __pyx_v_signal_label) != 0); +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7, __pyx_L1_error) -#line 27 "root_numpy/tmva/src/factory.pyx" - if (__pyx_t_6) { +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); - /* "root_numpy/tmva/src/factory.pyx":28 - * event[0][j] = events[i, j] - * if label == signal_label: - * _factory.AddEvent("Signal", treetype, event[0], weight) # <<<<<<<<<<<<<< - * else: - * _factory.AddEvent("Background", treetype, event[0], weight) - */ +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 28 "root_numpy/tmva/src/factory.pyx" - __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Signal); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 28, __pyx_L1_error) +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_Raise(__pyx_t_4, 0, 0, 0); -#line 28 "root_numpy/tmva/src/factory.pyx" - __pyx_v__factory->AddEvent(__pyx_t_11, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "root_numpy/tmva/src/factory.pyx":27 - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] - * if label == signal_label: # <<<<<<<<<<<<<< - * _factory.AddEvent("Signal", treetype, event[0], weight) - * else: - */ +#line 7 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 7, __pyx_L1_error) -#line 27 "root_numpy/tmva/src/factory.pyx" - goto __pyx_L9; + /* "root_numpy/tmva/src/evaluate.pyx":6 + * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) + * cdef IMethod* imeth = _reader.FindMVA(name) + * if imeth == NULL: # <<<<<<<<<<<<<< + * raise ValueError( + * "method '{0}' is not booked in this reader".format(name)) + */ -#line 27 "root_numpy/tmva/src/factory.pyx" - } +#line 6 "root_numpy/tmva/src/evaluate.pyx" + } - /* "root_numpy/tmva/src/factory.pyx":30 - * _factory.AddEvent("Signal", treetype, event[0], weight) - * else: - * _factory.AddEvent("Background", treetype, event[0], weight) # <<<<<<<<<<<<<< - * del event + /* "root_numpy/tmva/src/evaluate.pyx":9 + * raise ValueError( + * "method '{0}' is not booked in this reader".format(name)) + * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) # <<<<<<<<<<<<<< + * return evaluate_method_dispatch(method, events, aux) * */ -#line 30 "root_numpy/tmva/src/factory.pyx" - /*else*/ { +#line 9 "root_numpy/tmva/src/evaluate.pyx" + try { -#line 30 "root_numpy/tmva/src/factory.pyx" - __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Background); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 30, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_8 = dynamic_cast(__pyx_v_imeth); -#line 30 "root_numpy/tmva/src/factory.pyx" - __pyx_v__factory->AddEvent(__pyx_t_11, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); +#line 9 "root_numpy/tmva/src/evaluate.pyx" + } catch(...) { -#line 30 "root_numpy/tmva/src/factory.pyx" - } +#line 9 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_CppExn2PyErr(); -#line 30 "root_numpy/tmva/src/factory.pyx" - __pyx_L9:; +#line 9 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 9, __pyx_L1_error) -#line 30 "root_numpy/tmva/src/factory.pyx" +#line 9 "root_numpy/tmva/src/evaluate.pyx" } - /* "root_numpy/tmva/src/factory.pyx":31 - * else: - * _factory.AddEvent("Background", treetype, event[0], weight) - * del event # <<<<<<<<<<<<<< +#line 9 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_method = __pyx_t_8; + + /* "root_numpy/tmva/src/evaluate.pyx":10 + * "method '{0}' is not booked in this reader".format(name)) + * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) + * return evaluate_method_dispatch(method, events, aux) # <<<<<<<<<<<<<< * * */ -#line 31 "root_numpy/tmva/src/factory.pyx" - delete __pyx_v_event; - - /* "root_numpy/tmva/src/factory.pyx":4 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_twoclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, - */ +#line 10 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 10 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __pyx_f_13_libtmvanumpy_evaluate_method_dispatch(__pyx_v_method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10, __pyx_L1_error) +#line 10 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 4 "root_numpy/tmva/src/factory.pyx" - /* function exit code */ +#line 10 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = __pyx_t_4; -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_r = Py_None; __Pyx_INCREF(Py_None); +#line 10 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = 0; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 10 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_L1_error:; + /* "root_numpy/tmva/src/evaluate.pyx":3 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) + * cdef IMethod* imeth = _reader.FindMVA(name) + */ + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + /* function exit code */ + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L1_error:; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_4); + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_5); + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_6); + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_7); + +#line 3 "root_numpy/tmva/src/evaluate.pyx" { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_PyThreadState_declare -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_PyThreadState_assign -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); - -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); - -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_AddTraceback("_libtmvanumpy.factory_add_events_twoclass", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_reader", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_r = NULL; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L2; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_L0:; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); - -#line 4 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); - -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __pyx_L2:; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_XGIVEREF(__pyx_r); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" return __pyx_r; -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" } -/* "root_numpy/tmva/src/factory.pyx":36 +/* "root_numpy/tmva/src/evaluate.pyx":15 * @cython.boundscheck(False) * @cython.wraparound(False) - * def factory_add_events_multiclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) + * return evaluate_method_dispatch(_method, events, aux) */ -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" /* Python wrapper */ -#line 36 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_3factory_add_events_multiclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_13_libtmvanumpy_3factory_add_events_multiclass = -#line 36 "root_numpy/tmva/src/factory.pyx" -{"factory_add_events_multiclass", (PyCFunction)__pyx_pw_13_libtmvanumpy_3factory_add_events_multiclass, METH_VARARGS|METH_KEYWORDS, 0}; +#line 15 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_3evaluate_method(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_13_libtmvanumpy_3evaluate_method = +#line 15 "root_numpy/tmva/src/evaluate.pyx" +{"evaluate_method", (PyCFunction)__pyx_pw_13_libtmvanumpy_3evaluate_method, METH_VARARGS|METH_KEYWORDS, 0}; -#line 36 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_3factory_add_events_multiclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_factory = 0 -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_3evaluate_method(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_method = 0 +#line 15 "root_numpy/tmva/src/evaluate.pyx" ; PyArrayObject *__pyx_v_events = 0 -#line 36 "root_numpy/tmva/src/factory.pyx" -; - PyArrayObject *__pyx_v_labels = 0 -#line 36 "root_numpy/tmva/src/factory.pyx" -; - PyArrayObject *__pyx_v_weights = 0 -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" ; - bool __pyx_v_test -#line 36 "root_numpy/tmva/src/factory.pyx" + double __pyx_v_aux +#line 15 "root_numpy/tmva/src/evaluate.pyx" ; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" PyObject *__pyx_r = 0; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyDeclarations -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannySetupContext("factory_add_events_multiclass (wrapper)", 0); +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_method (wrapper)", 0); -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" { -#line 36 "root_numpy/tmva/src/factory.pyx" - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_factory,&__pyx_n_s_events,&__pyx_n_s_labels,&__pyx_n_s_weights,&__pyx_n_s_test,0}; - -#line 36 "root_numpy/tmva/src/factory.pyx" - PyObject* values[5] = {0,0,0,0,0}; - - /* "root_numpy/tmva/src/factory.pyx":40 - * np.ndarray[np.double_t, ndim=2] events, - * np.ndarray[np.int_t, ndim=1] labels, - * np.ndarray[np.double_t, ndim=1] weights=None, # <<<<<<<<<<<<<< - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - */ +#line 15 "root_numpy/tmva/src/evaluate.pyx" + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method,&__pyx_n_s_events,&__pyx_n_s_aux,0}; -#line 40 "root_numpy/tmva/src/factory.pyx" - values[3] = (PyObject *)((PyArrayObject *)Py_None); +#line 15 "root_numpy/tmva/src/evaluate.pyx" + PyObject* values[3] = {0,0,0}; -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" if (unlikely(__pyx_kwds)) { -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" Py_ssize_t kw_args; -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" switch (pos_args) { - case 5: -#line 40 "root_numpy/tmva/src/factory.pyx" -values[4] = PyTuple_GET_ITEM(__pyx_args, 4); - case 4: -#line 40 "root_numpy/tmva/src/factory.pyx" -values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" case 0: break; default: -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L5_argtuple_error; -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" kw_args = PyDict_Size(__pyx_kwds); -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" switch (pos_args) { -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" case 0: -#line 40 "root_numpy/tmva/src/factory.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_factory)) != 0)) kw_args--; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_method)) != 0)) kw_args--; else -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L5_argtuple_error; -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" case 1: -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" else { - __Pyx_RaiseArgtupleInvalid("factory_add_events_multiclass", 0, 3, 5, 1); -#line 40 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 36, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("evaluate_method", 1, 3, 3, 1); +#line 15 "root_numpy/tmva/src/evaluate.pyx" +__PYX_ERR(0, 15, __pyx_L3_error) -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" case 2: -#line 40 "root_numpy/tmva/src/factory.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" else { - __Pyx_RaiseArgtupleInvalid("factory_add_events_multiclass", 0, 3, 5, 2); -#line 40 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 36, __pyx_L3_error) - -#line 40 "root_numpy/tmva/src/factory.pyx" - } - -#line 40 "root_numpy/tmva/src/factory.pyx" - case 3: - -#line 40 "root_numpy/tmva/src/factory.pyx" - if (kw_args > 0) { - -#line 40 "root_numpy/tmva/src/factory.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); - -#line 40 "root_numpy/tmva/src/factory.pyx" - if (value) { values[3] = value; kw_args--; } - -#line 40 "root_numpy/tmva/src/factory.pyx" - } - -#line 40 "root_numpy/tmva/src/factory.pyx" - case 4: - -#line 40 "root_numpy/tmva/src/factory.pyx" - if (kw_args > 0) { - -#line 40 "root_numpy/tmva/src/factory.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); - -#line 40 "root_numpy/tmva/src/factory.pyx" - if (value) { values[4] = value; kw_args--; } + __Pyx_RaiseArgtupleInvalid("evaluate_method", 1, 3, 3, 2); +#line 15 "root_numpy/tmva/src/evaluate.pyx" +__PYX_ERR(0, 15, __pyx_L3_error) -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" if (unlikely(kw_args > 0)) { -#line 40 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "factory_add_events_multiclass") < 0)) __PYX_ERR(1, 36, __pyx_L3_error) +#line 15 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "evaluate_method") < 0)) __PYX_ERR(0, 15, __pyx_L3_error) -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 40 "root_numpy/tmva/src/factory.pyx" - } else { +#line 15 "root_numpy/tmva/src/evaluate.pyx" + } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { -#line 40 "root_numpy/tmva/src/factory.pyx" - switch (PyTuple_GET_SIZE(__pyx_args)) { - case 5: -#line 40 "root_numpy/tmva/src/factory.pyx" -values[4] = PyTuple_GET_ITEM(__pyx_args, 4); - case 4: -#line 40 "root_numpy/tmva/src/factory.pyx" -values[3] = PyTuple_GET_ITEM(__pyx_args, 3); - case 3: -#line 40 "root_numpy/tmva/src/factory.pyx" -values[2] = PyTuple_GET_ITEM(__pyx_args, 2); +#line 15 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L5_argtuple_error; -#line 40 "root_numpy/tmva/src/factory.pyx" - values[1] = PyTuple_GET_ITEM(__pyx_args, 1); +#line 15 "root_numpy/tmva/src/evaluate.pyx" + } else { -#line 40 "root_numpy/tmva/src/factory.pyx" - values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 15 "root_numpy/tmva/src/evaluate.pyx" + values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 40 "root_numpy/tmva/src/factory.pyx" - break; - default: -#line 40 "root_numpy/tmva/src/factory.pyx" -goto __pyx_L5_argtuple_error; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + values[1] = PyTuple_GET_ITEM(__pyx_args, 1); -#line 40 "root_numpy/tmva/src/factory.pyx" - } +#line 15 "root_numpy/tmva/src/evaluate.pyx" + values[2] = PyTuple_GET_ITEM(__pyx_args, 2); -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 40 "root_numpy/tmva/src/factory.pyx" - __pyx_v_factory = values[0]; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_method = values[0]; -#line 40 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __pyx_v_events = ((PyArrayObject *)values[1]); -#line 40 "root_numpy/tmva/src/factory.pyx" - __pyx_v_labels = ((PyArrayObject *)values[2]); - -#line 40 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weights = ((PyArrayObject *)values[3]); - -#line 40 "root_numpy/tmva/src/factory.pyx" - if (values[4]) { - -#line 40 "root_numpy/tmva/src/factory.pyx" - __pyx_v_test = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_test == (bool)-1) && PyErr_Occurred())) __PYX_ERR(1, 41, __pyx_L3_error) - -#line 40 "root_numpy/tmva/src/factory.pyx" - } else { - - /* "root_numpy/tmva/src/factory.pyx":41 - * np.ndarray[np.int_t, ndim=1] labels, - * np.ndarray[np.double_t, ndim=1] weights=None, - * bool test=False): # <<<<<<<<<<<<<< - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] - */ - -#line 41 "root_numpy/tmva/src/factory.pyx" - __pyx_v_test = ((bool)0); - -#line 41 "root_numpy/tmva/src/factory.pyx" - } +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_aux = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_aux == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 15, __pyx_L3_error) -#line 41 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 41 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L4_argument_unpacking_done; -#line 41 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("factory_add_events_multiclass", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); -#line 41 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 36, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("evaluate_method", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); +#line 15 "root_numpy/tmva/src/evaluate.pyx" +__PYX_ERR(0, 15, __pyx_L3_error) -#line 41 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __pyx_L3_error:; -#line 41 "root_numpy/tmva/src/factory.pyx" - __Pyx_AddTraceback("_libtmvanumpy.factory_add_events_multiclass", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_method", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 41 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); -#line 41 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" return NULL; -#line 41 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __pyx_L4_argument_unpacking_done:; -#line 41 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(1, 38, __pyx_L1_error) - -#line 41 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_labels), __pyx_ptype_5numpy_ndarray, 1, "labels", 0))) __PYX_ERR(1, 39, __pyx_L1_error) - -#line 41 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1, "weights", 0))) __PYX_ERR(1, 40, __pyx_L1_error) +#line 15 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(0, 15, __pyx_L1_error) __pyx_r = -#line 41 "root_numpy/tmva/src/factory.pyx" -__pyx_pf_13_libtmvanumpy_2factory_add_events_multiclass(__pyx_self, __pyx_v_factory, __pyx_v_events, __pyx_v_labels, __pyx_v_weights, __pyx_v_test); - - /* "root_numpy/tmva/src/factory.pyx":36 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_multiclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, - */ +#line 15 "root_numpy/tmva/src/evaluate.pyx" +__pyx_pf_13_libtmvanumpy_2evaluate_method(__pyx_self, __pyx_v_method, __pyx_v_events, __pyx_v_aux); -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" /* function exit code */ -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __pyx_L1_error:; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __pyx_r = NULL; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __pyx_L0:; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" return __pyx_r; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" } -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" -#line 36 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pf_13_libtmvanumpy_2factory_add_events_multiclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_factory, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, PyArrayObject *__pyx_v_weights, bool __pyx_v_test) { - TMVA::Factory *__pyx_v__factory -#line 36 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_size -#line 36 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_n_features -#line 36 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_i -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_pf_13_libtmvanumpy_2evaluate_method(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_method, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { + TMVA::MethodBase *__pyx_v__method +#line 15 "root_numpy/tmva/src/evaluate.pyx" ; - long __pyx_v_j -#line 36 "root_numpy/tmva/src/factory.pyx" + __Pyx_LocalBuf_ND __pyx_pybuffernd_events +#line 15 "root_numpy/tmva/src/evaluate.pyx" ; - double __pyx_v_weight -#line 36 "root_numpy/tmva/src/factory.pyx" -; - int __pyx_v_label -#line 36 "root_numpy/tmva/src/factory.pyx" -; - std::vector *__pyx_v_event -#line 36 "root_numpy/tmva/src/factory.pyx" -; - TMVA::Types::ETreeType __pyx_v_treetype -#line 36 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 36 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_events -#line 36 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_labels -#line 36 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_labels -#line 36 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_weights -#line 36 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_weights -#line 36 "root_numpy/tmva/src/factory.pyx" + __Pyx_Buffer __pyx_pybuffer_events +#line 15 "root_numpy/tmva/src/evaluate.pyx" ; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" PyObject *__pyx_r = NULL; -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyDeclarations -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" void *__pyx_t_1; -#line 36 "root_numpy/tmva/src/factory.pyx" - std::vector *__pyx_t_2; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_2 = NULL; -#line 36 "root_numpy/tmva/src/factory.pyx" - int __pyx_t_3; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_method", 0); -#line 36 "root_numpy/tmva/src/factory.pyx" - long __pyx_t_4; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 36 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_5; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.refcount = 0; -#line 36 "root_numpy/tmva/src/factory.pyx" - int __pyx_t_6; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.data = NULL; -#line 36 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_7; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; -#line 36 "root_numpy/tmva/src/factory.pyx" - long __pyx_t_8; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + { -#line 36 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_9; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 36 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_10; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 15, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - PyObject *__pyx_t_11 = NULL; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + } -#line 36 "root_numpy/tmva/src/factory.pyx" - PyObject *__pyx_t_12 = NULL; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; -#line 36 "root_numpy/tmva/src/factory.pyx" - PyObject *__pyx_t_13 = NULL; + /* "root_numpy/tmva/src/evaluate.pyx":16 + * @cython.wraparound(False) + * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): + * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) # <<<<<<<<<<<<<< + * return evaluate_method_dispatch(_method, events, aux) + * + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - PyObject *__pyx_t_14 = NULL; +#line 16 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_method); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(0, 16, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - PyObject *__pyx_t_15 = NULL; +#line 16 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__method = ((TMVA::MethodBase *)__pyx_t_1); -#line 36 "root_numpy/tmva/src/factory.pyx" - std::string __pyx_t_16; + /* "root_numpy/tmva/src/evaluate.pyx":17 + * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): + * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) + * return evaluate_method_dispatch(_method, events, aux) # <<<<<<<<<<<<<< + * + * + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannySetupContext("factory_add_events_multiclass", 0); +#line 17 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_events.pybuffer.buf = NULL; +#line 17 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_method_dispatch(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_events.refcount = 0; +#line 17 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_events.data = NULL; +#line 17 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = __pyx_t_2; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; +#line 17 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = 0; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_labels.pybuffer.buf = NULL; +#line 17 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L0; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_labels.refcount = 0; + /* "root_numpy/tmva/src/evaluate.pyx":15 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) + * return evaluate_method_dispatch(_method, events, aux) + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_labels.data = NULL; +#line 15 "root_numpy/tmva/src/evaluate.pyx" -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_labels.rcbuffer = &__pyx_pybuffer_labels; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_weights.pybuffer.buf = NULL; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + /* function exit code */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_weights.refcount = 0; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L1_error:; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.data = NULL; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_2); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.rcbuffer = &__pyx_pybuffer_weights; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 36 "root_numpy/tmva/src/factory.pyx" - { +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_declare -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_assign -#line 36 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 36, __pyx_L1_error) +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 36 "root_numpy/tmva/src/factory.pyx" - } +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 36 "root_numpy/tmva/src/factory.pyx" - { +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_method", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = NULL; -#line 36 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_labels.rcbuffer->pybuffer, (PyObject*)__pyx_v_labels, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 36, __pyx_L1_error) +#line 15 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L2; -#line 36 "root_numpy/tmva/src/factory.pyx" - } +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L0:; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_labels.diminfo[0].strides = __pyx_pybuffernd_labels.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_labels.diminfo[0].shape = __pyx_pybuffernd_labels.rcbuffer->pybuffer.shape[0]; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 36 "root_numpy/tmva/src/factory.pyx" - { +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L2:; -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XGIVEREF(__pyx_r); -#line 36 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_weights.rcbuffer->pybuffer, (PyObject*)__pyx_v_weights, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 36, __pyx_L1_error) +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyFinishContext(); -#line 36 "root_numpy/tmva/src/factory.pyx" - } +#line 15 "root_numpy/tmva/src/evaluate.pyx" + return __pyx_r; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.diminfo[0].strides = __pyx_pybuffernd_weights.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_weights.diminfo[0].shape = __pyx_pybuffernd_weights.rcbuffer->pybuffer.shape[0]; +#line 15 "root_numpy/tmva/src/evaluate.pyx" +} - /* "root_numpy/tmva/src/factory.pyx":42 - * np.ndarray[np.double_t, ndim=1] weights=None, - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) # <<<<<<<<<<<<<< - * cdef long size = events.shape[0] +/* "root_numpy/tmva/src/evaluate.pyx":22 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * cdef evaluate_method_dispatch(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< * cdef long n_features = events.shape[1] + * cdef unsigned int n_classes, n_targets */ -#line 42 "root_numpy/tmva/src/factory.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_factory); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 42, __pyx_L1_error) +#line 22 "root_numpy/tmva/src/evaluate.pyx" -#line 42 "root_numpy/tmva/src/factory.pyx" - __pyx_v__factory = ((TMVA::Factory *)__pyx_t_1); - /* "root_numpy/tmva/src/factory.pyx":43 - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] # <<<<<<<<<<<<<< - * cdef long n_features = events.shape[1] - * cdef long i, j - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { + long __pyx_v_n_features +#line 22 "root_numpy/tmva/src/evaluate.pyx" +; + unsigned int __pyx_v_n_classes +#line 22 "root_numpy/tmva/src/evaluate.pyx" +; + unsigned int __pyx_v_n_targets +#line 22 "root_numpy/tmva/src/evaluate.pyx" +; + TMVA::Types::EAnalysisType __pyx_v_analysistype +#line 22 "root_numpy/tmva/src/evaluate.pyx" +; + PyObject *__pyx_v_output = NULL +#line 22 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_events +#line 22 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_Buffer __pyx_pybuffer_events +#line 22 "root_numpy/tmva/src/evaluate.pyx" +; -#line 43 "root_numpy/tmva/src/factory.pyx" - __pyx_v_size = (__pyx_v_events->dimensions[0]); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_r = NULL; - /* "root_numpy/tmva/src/factory.pyx":44 - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< - * cdef long i, j - * cdef double weight = 1. - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyDeclarations -#line 44 "root_numpy/tmva/src/factory.pyx" - __pyx_v_n_features = (__pyx_v_events->dimensions[1]); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + int __pyx_t_1; - /* "root_numpy/tmva/src/factory.pyx":46 - * cdef long n_features = events.shape[1] - * cdef long i, j - * cdef double weight = 1. # <<<<<<<<<<<<<< - * cdef int label - * cdef vector[double]* event = new vector[double](n_features) - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_2 = NULL; -#line 46 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weight = 1.; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_3 = NULL; - /* "root_numpy/tmva/src/factory.pyx":48 - * cdef double weight = 1. - * cdef int label - * cdef vector[double]* event = new vector[double](n_features) # <<<<<<<<<<<<<< - * cdef ETreeType treetype = kTraining - * if test: - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_4 = NULL; -#line 48 "root_numpy/tmva/src/factory.pyx" - try { +#line 22 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_5 = NULL; -#line 48 "root_numpy/tmva/src/factory.pyx" - __pyx_t_2 = new std::vector (__pyx_v_n_features); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_6 = NULL; -#line 48 "root_numpy/tmva/src/factory.pyx" - } catch(...) { +#line 22 "root_numpy/tmva/src/evaluate.pyx" + int __pyx_t_7; -#line 48 "root_numpy/tmva/src/factory.pyx" - __Pyx_CppExn2PyErr(); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_8 = NULL; -#line 48 "root_numpy/tmva/src/factory.pyx" - __PYX_ERR(1, 48, __pyx_L1_error) +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_method_dispatch", 0); -#line 48 "root_numpy/tmva/src/factory.pyx" - } +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 48 "root_numpy/tmva/src/factory.pyx" - __pyx_v_event = __pyx_t_2; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.refcount = 0; - /* "root_numpy/tmva/src/factory.pyx":49 - * cdef int label - * cdef vector[double]* event = new vector[double](n_features) - * cdef ETreeType treetype = kTraining # <<<<<<<<<<<<<< - * if test: - * treetype = kTesting - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.data = NULL; -#line 49 "root_numpy/tmva/src/factory.pyx" - __pyx_v_treetype = TMVA::Types::kTraining; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; - /* "root_numpy/tmva/src/factory.pyx":50 - * cdef vector[double]* event = new vector[double](n_features) - * cdef ETreeType treetype = kTraining - * if test: # <<<<<<<<<<<<<< - * treetype = kTesting - * for i from 0 <= i < size: - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + { -#line 50 "root_numpy/tmva/src/factory.pyx" - __pyx_t_3 = (__pyx_v_test != 0); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 50 "root_numpy/tmva/src/factory.pyx" - if (__pyx_t_3) { +#line 22 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 22, __pyx_L1_error) - /* "root_numpy/tmva/src/factory.pyx":51 - * cdef ETreeType treetype = kTraining - * if test: - * treetype = kTesting # <<<<<<<<<<<<<< - * for i from 0 <= i < size: - * label = labels[i] - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + } -#line 51 "root_numpy/tmva/src/factory.pyx" - __pyx_v_treetype = TMVA::Types::kTesting; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; - /* "root_numpy/tmva/src/factory.pyx":50 - * cdef vector[double]* event = new vector[double](n_features) - * cdef ETreeType treetype = kTraining - * if test: # <<<<<<<<<<<<<< - * treetype = kTesting - * for i from 0 <= i < size: + /* "root_numpy/tmva/src/evaluate.pyx":23 + * @cython.wraparound(False) + * cdef evaluate_method_dispatch(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): + * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< + * cdef unsigned int n_classes, n_targets + * if n_features != _method.GetNVariables(): */ -#line 50 "root_numpy/tmva/src/factory.pyx" - } +#line 23 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_n_features = (__pyx_v_events->dimensions[1]); - /* "root_numpy/tmva/src/factory.pyx":52 - * if test: - * treetype = kTesting - * for i from 0 <= i < size: # <<<<<<<<<<<<<< - * label = labels[i] - * if weights is not None: + /* "root_numpy/tmva/src/evaluate.pyx":25 + * cdef long n_features = events.shape[1] + * cdef unsigned int n_classes, n_targets + * if n_features != _method.GetNVariables(): # <<<<<<<<<<<<<< + * raise ValueError( + * "this method was trained with events containing " */ -#line 52 "root_numpy/tmva/src/factory.pyx" - __pyx_t_4 = __pyx_v_size; +#line 25 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = ((__pyx_v_n_features != __pyx_v__method->GetNVariables()) != 0); -#line 52 "root_numpy/tmva/src/factory.pyx" - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_4; __pyx_v_i++) { +#line 25 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_1) { - /* "root_numpy/tmva/src/factory.pyx":53 - * treetype = kTesting - * for i from 0 <= i < size: - * label = labels[i] # <<<<<<<<<<<<<< - * if weights is not None: - * weight = weights[i] + /* "root_numpy/tmva/src/evaluate.pyx":28 + * raise ValueError( + * "this method was trained with events containing " + * "{0} variables, but these events contain {1} variables".format( # <<<<<<<<<<<<<< + * _method.GetNVariables(), n_features)) + * cdef EAnalysisType analysistype */ -#line 53 "root_numpy/tmva/src/factory.pyx" - __pyx_t_5 = __pyx_v_i; +#line 28 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_this_method_was_trained_with_eve, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28, __pyx_L1_error) -#line 53 "root_numpy/tmva/src/factory.pyx" - __pyx_v_label = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int_t *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf, __pyx_t_5, __pyx_pybuffernd_labels.diminfo[0].strides)); +#line 28 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); - /* "root_numpy/tmva/src/factory.pyx":54 - * for i from 0 <= i < size: - * label = labels[i] - * if weights is not None: # <<<<<<<<<<<<<< - * weight = weights[i] - * for j from 0 <= j < n_features: + /* "root_numpy/tmva/src/evaluate.pyx":29 + * "this method was trained with events containing " + * "{0} variables, but these events contain {1} variables".format( + * _method.GetNVariables(), n_features)) # <<<<<<<<<<<<<< + * cdef EAnalysisType analysistype + * analysistype = _method.GetAnalysisType() */ -#line 54 "root_numpy/tmva/src/factory.pyx" - __pyx_t_3 = (((PyObject *)__pyx_v_weights) != Py_None); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v__method->GetNVariables()); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error) -#line 54 "root_numpy/tmva/src/factory.pyx" - __pyx_t_6 = (__pyx_t_3 != 0); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 54 "root_numpy/tmva/src/factory.pyx" - if (__pyx_t_6) { +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_n_features); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29, __pyx_L1_error) - /* "root_numpy/tmva/src/factory.pyx":55 - * label = labels[i] - * if weights is not None: - * weight = weights[i] # <<<<<<<<<<<<<< - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] - */ +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 55 "root_numpy/tmva/src/factory.pyx" - __pyx_t_7 = __pyx_v_i; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = NULL; -#line 55 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weight = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_weights.rcbuffer->pybuffer.buf, __pyx_t_7, __pyx_pybuffernd_weights.diminfo[0].strides)); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_7 = 0; - /* "root_numpy/tmva/src/factory.pyx":54 - * for i from 0 <= i < size: - * label = labels[i] - * if weights is not None: # <<<<<<<<<<<<<< - * weight = weights[i] - * for j from 0 <= j < n_features: - */ +#line 29 "root_numpy/tmva/src/evaluate.pyx" + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { -#line 54 "root_numpy/tmva/src/factory.pyx" - } +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); - /* "root_numpy/tmva/src/factory.pyx":56 - * if weights is not None: - * weight = weights[i] - * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< - * event[0][j] = events[i, j] - * _factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) - */ +#line 29 "root_numpy/tmva/src/evaluate.pyx" + if (likely(__pyx_t_6)) { -#line 56 "root_numpy/tmva/src/factory.pyx" - __pyx_t_8 = __pyx_v_n_features; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); -#line 56 "root_numpy/tmva/src/factory.pyx" - for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(__pyx_t_6); - /* "root_numpy/tmva/src/factory.pyx":57 - * weight = weights[i] - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] # <<<<<<<<<<<<<< - * _factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) - * del event - */ +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(function); -#line 57 "root_numpy/tmva/src/factory.pyx" - __pyx_t_9 = __pyx_v_i; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF_SET(__pyx_t_3, function); -#line 57 "root_numpy/tmva/src/factory.pyx" - __pyx_t_10 = __pyx_v_j; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_7 = 1; -#line 57 "root_numpy/tmva/src/factory.pyx" - ((__pyx_v_event[0])[__pyx_v_j]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides)); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + } -#line 57 "root_numpy/tmva/src/factory.pyx" +#line 29 "root_numpy/tmva/src/evaluate.pyx" } - /* "root_numpy/tmva/src/factory.pyx":58 - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] - * _factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) # <<<<<<<<<<<<<< - * del event - * - */ +#line 29 "root_numpy/tmva/src/evaluate.pyx" + #if CYTHON_FAST_PYCALL -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Class__0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 58, __pyx_L1_error) +#line 29 "root_numpy/tmva/src/evaluate.pyx" + if (PyFunction_Check(__pyx_t_3)) { -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_GOTREF(__pyx_t_12); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_t_5}; -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_13 = __Pyx_PyInt_From_int(__pyx_v_label); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 58, __pyx_L1_error) +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_GOTREF(__pyx_t_13); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_14 = NULL; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 58 "root_numpy/tmva/src/factory.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_12))) { +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_12); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - if (likely(__pyx_t_14)) { +#line 29 "root_numpy/tmva/src/evaluate.pyx" + } else -#line 58 "root_numpy/tmva/src/factory.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + #endif -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_INCREF(__pyx_t_14); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + #if CYTHON_FAST_PYCCALL -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_INCREF(function); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_DECREF_SET(__pyx_t_12, function); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_t_5}; -#line 58 "root_numpy/tmva/src/factory.pyx" - } +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) -#line 58 "root_numpy/tmva/src/factory.pyx" - } +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - if (!__pyx_t_14) { +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 58, __pyx_L1_error) +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_GOTREF(__pyx_t_11); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + } else -#line 58 "root_numpy/tmva/src/factory.pyx" - } else { +#line 29 "root_numpy/tmva/src/evaluate.pyx" + #endif -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 58, __pyx_L1_error) +#line 29 "root_numpy/tmva/src/evaluate.pyx" + { -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_GOTREF(__pyx_t_15); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28, __pyx_L1_error) -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_8); -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_GIVEREF(__pyx_t_13); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_6) { -#line 58 "root_numpy/tmva/src/factory.pyx" - PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_t_13); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_13 = 0; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + } -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_15, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 58, __pyx_L1_error) +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_4); -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_GOTREF(__pyx_t_11); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4); -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_5); -#line 58 "root_numpy/tmva/src/factory.pyx" - } +#line 29 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5); -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_t_16 = __pyx_convert_string_from_py_std__in_string(__pyx_t_11); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 58, __pyx_L1_error) +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = 0; -#line 58 "root_numpy/tmva/src/factory.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) -#line 58 "root_numpy/tmva/src/factory.pyx" - __pyx_v__factory->AddEvent(__pyx_t_16, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 58 "root_numpy/tmva/src/factory.pyx" - } +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "root_numpy/tmva/src/factory.pyx":59 - * event[0][j] = events[i, j] - * _factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) - * del event # <<<<<<<<<<<<<< - * - * - */ +#line 29 "root_numpy/tmva/src/evaluate.pyx" + } -#line 59 "root_numpy/tmva/src/factory.pyx" - delete __pyx_v_event; +#line 29 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "root_numpy/tmva/src/factory.pyx":36 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_multiclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + /* "root_numpy/tmva/src/evaluate.pyx":26 + * cdef unsigned int n_classes, n_targets + * if n_features != _method.GetNVariables(): + * raise ValueError( # <<<<<<<<<<<<<< + * "this method was trained with events containing " + * "{0} variables, but these events contain {1} variables".format( */ -#line 36 "root_numpy/tmva/src/factory.pyx" - +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - /* function exit code */ +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - -#line 36 "root_numpy/tmva/src/factory.pyx" - goto __pyx_L0; +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_2); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_L1_error:; +#line 26 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_XDECREF(__pyx_t_11); +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = 0; -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_XDECREF(__pyx_t_12); +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_XDECREF(__pyx_t_13); +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_XDECREF(__pyx_t_14); +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_XDECREF(__pyx_t_15); +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_Raise(__pyx_t_2, 0, 0, 0); -#line 36 "root_numpy/tmva/src/factory.pyx" - { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_PyThreadState_declare +#line 26 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 26, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_PyThreadState_assign + /* "root_numpy/tmva/src/evaluate.pyx":25 + * cdef long n_features = events.shape[1] + * cdef unsigned int n_classes, n_targets + * if n_features != _method.GetNVariables(): # <<<<<<<<<<<<<< + * raise ValueError( + * "this method was trained with events containing " + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); +#line 25 "root_numpy/tmva/src/evaluate.pyx" + } -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); + /* "root_numpy/tmva/src/evaluate.pyx":31 + * _method.GetNVariables(), n_features)) + * cdef EAnalysisType analysistype + * analysistype = _method.GetAnalysisType() # <<<<<<<<<<<<<< + * if analysistype == kClassification: + * return evaluate_twoclass(_method, events, aux) + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); +#line 31 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_analysistype = __pyx_v__method->GetAnalysisType(); -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); + /* "root_numpy/tmva/src/evaluate.pyx":32 + * cdef EAnalysisType analysistype + * analysistype = _method.GetAnalysisType() + * if analysistype == kClassification: # <<<<<<<<<<<<<< + * return evaluate_twoclass(_method, events, aux) + * elif analysistype == kMulticlass: + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} +#line 32 "root_numpy/tmva/src/evaluate.pyx" + switch (__pyx_v_analysistype) { -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_AddTraceback("_libtmvanumpy.factory_add_events_multiclass", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 32 "root_numpy/tmva/src/evaluate.pyx" + case TMVA::Types::kClassification: -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_r = NULL; + /* "root_numpy/tmva/src/evaluate.pyx":33 + * analysistype = _method.GetAnalysisType() + * if analysistype == kClassification: + * return evaluate_twoclass(_method, events, aux) # <<<<<<<<<<<<<< + * elif analysistype == kMulticlass: + * n_classes = _method.DataInfo().GetNClasses() + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - goto __pyx_L2; +#line 33 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_L0:; +#line 33 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_twoclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 33 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); +#line 33 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = __pyx_t_2; -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); +#line 33 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = 0; -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_L2:; +#line 33 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L0; -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_XGIVEREF(__pyx_r); + /* "root_numpy/tmva/src/evaluate.pyx":32 + * cdef EAnalysisType analysistype + * analysistype = _method.GetAnalysisType() + * if analysistype == kClassification: # <<<<<<<<<<<<<< + * return evaluate_twoclass(_method, events, aux) + * elif analysistype == kMulticlass: + */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannyFinishContext(); +#line 32 "root_numpy/tmva/src/evaluate.pyx" + break; -#line 36 "root_numpy/tmva/src/factory.pyx" - return __pyx_r; + /* "root_numpy/tmva/src/evaluate.pyx":34 + * if analysistype == kClassification: + * return evaluate_twoclass(_method, events, aux) + * elif analysistype == kMulticlass: # <<<<<<<<<<<<<< + * n_classes = _method.DataInfo().GetNClasses() + * if n_classes < 2: + */ -#line 36 "root_numpy/tmva/src/factory.pyx" -} +#line 34 "root_numpy/tmva/src/evaluate.pyx" + case TMVA::Types::kMulticlass: -/* "root_numpy/tmva/src/factory.pyx":64 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_regression( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + /* "root_numpy/tmva/src/evaluate.pyx":35 + * return evaluate_twoclass(_method, events, aux) + * elif analysistype == kMulticlass: + * n_classes = _method.DataInfo().GetNClasses() # <<<<<<<<<<<<<< + * if n_classes < 2: + * raise AssertionError("there must be at least two classes") */ -#line 64 "root_numpy/tmva/src/factory.pyx" - +#line 35 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_n_classes = __pyx_v__method->DataInfo().GetNClasses(); -#line 64 "root_numpy/tmva/src/factory.pyx" -/* Python wrapper */ + /* "root_numpy/tmva/src/evaluate.pyx":36 + * elif analysistype == kMulticlass: + * n_classes = _method.DataInfo().GetNClasses() + * if n_classes < 2: # <<<<<<<<<<<<<< + * raise AssertionError("there must be at least two classes") + * return evaluate_multiclass(_method, events, n_classes) + */ -#line 64 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_5factory_add_events_regression(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_13_libtmvanumpy_5factory_add_events_regression = -#line 64 "root_numpy/tmva/src/factory.pyx" -{"factory_add_events_regression", (PyCFunction)__pyx_pw_13_libtmvanumpy_5factory_add_events_regression, METH_VARARGS|METH_KEYWORDS, 0}; +#line 36 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = ((__pyx_v_n_classes < 2) != 0); -#line 64 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_5factory_add_events_regression(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_factory = 0 -#line 64 "root_numpy/tmva/src/factory.pyx" -; - PyArrayObject *__pyx_v_events = 0 -#line 64 "root_numpy/tmva/src/factory.pyx" -; - PyArrayObject *__pyx_v_targets = 0 -#line 64 "root_numpy/tmva/src/factory.pyx" -; - PyArrayObject *__pyx_v_weights = 0 -#line 64 "root_numpy/tmva/src/factory.pyx" -; - bool __pyx_v_test -#line 64 "root_numpy/tmva/src/factory.pyx" -; +#line 36 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_1) { -#line 64 "root_numpy/tmva/src/factory.pyx" - PyObject *__pyx_r = 0; + /* "root_numpy/tmva/src/evaluate.pyx":37 + * n_classes = _method.DataInfo().GetNClasses() + * if n_classes < 2: + * raise AssertionError("there must be at least two classes") # <<<<<<<<<<<<<< + * return evaluate_multiclass(_method, events, n_classes) + * elif analysistype == kRegression: + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannyDeclarations +#line 37 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannySetupContext("factory_add_events_regression (wrapper)", 0); +#line 37 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 64 "root_numpy/tmva/src/factory.pyx" - { +#line 37 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_Raise(__pyx_t_2, 0, 0, 0); -#line 64 "root_numpy/tmva/src/factory.pyx" - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_factory,&__pyx_n_s_events,&__pyx_n_s_targets,&__pyx_n_s_weights,&__pyx_n_s_test,0}; +#line 37 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 64 "root_numpy/tmva/src/factory.pyx" - PyObject* values[5] = {0,0,0,0,0}; +#line 37 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 37, __pyx_L1_error) - /* "root_numpy/tmva/src/factory.pyx":68 - * np.ndarray[np.double_t, ndim=2] events, - * np.ndarray[np.double_t, ndim=2] targets, - * np.ndarray[np.double_t, ndim=1] weights=None, # <<<<<<<<<<<<<< - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) + /* "root_numpy/tmva/src/evaluate.pyx":36 + * elif analysistype == kMulticlass: + * n_classes = _method.DataInfo().GetNClasses() + * if n_classes < 2: # <<<<<<<<<<<<<< + * raise AssertionError("there must be at least two classes") + * return evaluate_multiclass(_method, events, n_classes) */ -#line 68 "root_numpy/tmva/src/factory.pyx" - values[3] = (PyObject *)((PyArrayObject *)Py_None); - -#line 68 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__pyx_kwds)) { - -#line 68 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t kw_args; +#line 36 "root_numpy/tmva/src/evaluate.pyx" + } -#line 68 "root_numpy/tmva/src/factory.pyx" - const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); + /* "root_numpy/tmva/src/evaluate.pyx":38 + * if n_classes < 2: + * raise AssertionError("there must be at least two classes") + * return evaluate_multiclass(_method, events, n_classes) # <<<<<<<<<<<<<< + * elif analysistype == kRegression: + * n_targets = _method.DataInfo().GetNTargets() + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - switch (pos_args) { - case 5: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[4] = PyTuple_GET_ITEM(__pyx_args, 4); - case 4: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[3] = PyTuple_GET_ITEM(__pyx_args, 3); - case 3: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[2] = PyTuple_GET_ITEM(__pyx_args, 2); - case 2: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[1] = PyTuple_GET_ITEM(__pyx_args, 1); - case 1: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 38 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 68 "root_numpy/tmva/src/factory.pyx" - case 0: break; - default: -#line 68 "root_numpy/tmva/src/factory.pyx" -goto __pyx_L5_argtuple_error; +#line 38 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_multiclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_classes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) -#line 68 "root_numpy/tmva/src/factory.pyx" - } +#line 38 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 68 "root_numpy/tmva/src/factory.pyx" - kw_args = PyDict_Size(__pyx_kwds); +#line 38 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = __pyx_t_2; -#line 68 "root_numpy/tmva/src/factory.pyx" - switch (pos_args) { +#line 38 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = 0; -#line 68 "root_numpy/tmva/src/factory.pyx" - case 0: +#line 38 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L0; -#line 68 "root_numpy/tmva/src/factory.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_factory)) != 0)) kw_args--; - else -#line 68 "root_numpy/tmva/src/factory.pyx" -goto __pyx_L5_argtuple_error; + /* "root_numpy/tmva/src/evaluate.pyx":34 + * if analysistype == kClassification: + * return evaluate_twoclass(_method, events, aux) + * elif analysistype == kMulticlass: # <<<<<<<<<<<<<< + * n_classes = _method.DataInfo().GetNClasses() + * if n_classes < 2: + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - case 1: +#line 34 "root_numpy/tmva/src/evaluate.pyx" + break; -#line 68 "root_numpy/tmva/src/factory.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; + /* "root_numpy/tmva/src/evaluate.pyx":39 + * raise AssertionError("there must be at least two classes") + * return evaluate_multiclass(_method, events, n_classes) + * elif analysistype == kRegression: # <<<<<<<<<<<<<< + * n_targets = _method.DataInfo().GetNTargets() + * if n_targets < 1: + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - else { - __Pyx_RaiseArgtupleInvalid("factory_add_events_regression", 0, 3, 5, 1); -#line 68 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 64, __pyx_L3_error) +#line 39 "root_numpy/tmva/src/evaluate.pyx" + case TMVA::Types::kRegression: -#line 68 "root_numpy/tmva/src/factory.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":40 + * return evaluate_multiclass(_method, events, n_classes) + * elif analysistype == kRegression: + * n_targets = _method.DataInfo().GetNTargets() # <<<<<<<<<<<<<< + * if n_targets < 1: + * raise AssertionError("there must be at least one regression target") + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - case 2: +#line 40 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_n_targets = __pyx_v__method->DataInfo().GetNTargets(); -#line 68 "root_numpy/tmva/src/factory.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_targets)) != 0)) kw_args--; + /* "root_numpy/tmva/src/evaluate.pyx":41 + * elif analysistype == kRegression: + * n_targets = _method.DataInfo().GetNTargets() + * if n_targets < 1: # <<<<<<<<<<<<<< + * raise AssertionError("there must be at least one regression target") + * output = evaluate_regression(_method, events, n_targets) + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - else { - __Pyx_RaiseArgtupleInvalid("factory_add_events_regression", 0, 3, 5, 2); -#line 68 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 64, __pyx_L3_error) +#line 41 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = ((__pyx_v_n_targets < 1) != 0); -#line 68 "root_numpy/tmva/src/factory.pyx" - } +#line 41 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_1) { -#line 68 "root_numpy/tmva/src/factory.pyx" - case 3: + /* "root_numpy/tmva/src/evaluate.pyx":42 + * n_targets = _method.DataInfo().GetNTargets() + * if n_targets < 1: + * raise AssertionError("there must be at least one regression target") # <<<<<<<<<<<<<< + * output = evaluate_regression(_method, events, n_targets) + * if n_targets == 1: + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - if (kw_args > 0) { +#line 42 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) -#line 68 "root_numpy/tmva/src/factory.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); +#line 42 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 68 "root_numpy/tmva/src/factory.pyx" - if (value) { values[3] = value; kw_args--; } +#line 42 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_Raise(__pyx_t_2, 0, 0, 0); -#line 68 "root_numpy/tmva/src/factory.pyx" - } +#line 42 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 68 "root_numpy/tmva/src/factory.pyx" - case 4: +#line 42 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 42, __pyx_L1_error) -#line 68 "root_numpy/tmva/src/factory.pyx" - if (kw_args > 0) { + /* "root_numpy/tmva/src/evaluate.pyx":41 + * elif analysistype == kRegression: + * n_targets = _method.DataInfo().GetNTargets() + * if n_targets < 1: # <<<<<<<<<<<<<< + * raise AssertionError("there must be at least one regression target") + * output = evaluate_regression(_method, events, n_targets) + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); +#line 41 "root_numpy/tmva/src/evaluate.pyx" + } -#line 68 "root_numpy/tmva/src/factory.pyx" - if (value) { values[4] = value; kw_args--; } + /* "root_numpy/tmva/src/evaluate.pyx":43 + * if n_targets < 1: + * raise AssertionError("there must be at least one regression target") + * output = evaluate_regression(_method, events, n_targets) # <<<<<<<<<<<<<< + * if n_targets == 1: + * return np.ravel(output) + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - } +#line 43 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_regression(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_targets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) -#line 68 "root_numpy/tmva/src/factory.pyx" - } +#line 43 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 68 "root_numpy/tmva/src/factory.pyx" - if (unlikely(kw_args > 0)) { +#line 43 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_output = __pyx_t_2; -#line 68 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "factory_add_events_regression") < 0)) __PYX_ERR(1, 64, __pyx_L3_error) +#line 43 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = 0; -#line 68 "root_numpy/tmva/src/factory.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":44 + * raise AssertionError("there must be at least one regression target") + * output = evaluate_regression(_method, events, n_targets) + * if n_targets == 1: # <<<<<<<<<<<<<< + * return np.ravel(output) + * return output + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - } else { +#line 44 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = ((__pyx_v_n_targets == 1) != 0); -#line 68 "root_numpy/tmva/src/factory.pyx" - switch (PyTuple_GET_SIZE(__pyx_args)) { - case 5: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[4] = PyTuple_GET_ITEM(__pyx_args, 4); - case 4: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[3] = PyTuple_GET_ITEM(__pyx_args, 3); - case 3: -#line 68 "root_numpy/tmva/src/factory.pyx" -values[2] = PyTuple_GET_ITEM(__pyx_args, 2); +#line 44 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_1) { -#line 68 "root_numpy/tmva/src/factory.pyx" - values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + /* "root_numpy/tmva/src/evaluate.pyx":45 + * output = evaluate_regression(_method, events, n_targets) + * if n_targets == 1: + * return np.ravel(output) # <<<<<<<<<<<<<< + * return output + * raise AssertionError("the analysis type of this method is not supported") + */ -#line 68 "root_numpy/tmva/src/factory.pyx" - values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 68 "root_numpy/tmva/src/factory.pyx" - break; - default: -#line 68 "root_numpy/tmva/src/factory.pyx" -goto __pyx_L5_argtuple_error; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) -#line 68 "root_numpy/tmva/src/factory.pyx" - } +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); -#line 68 "root_numpy/tmva/src/factory.pyx" - } +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ravel); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 45, __pyx_L1_error) -#line 68 "root_numpy/tmva/src/factory.pyx" - __pyx_v_factory = values[0]; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_8); -#line 68 "root_numpy/tmva/src/factory.pyx" - __pyx_v_events = ((PyArrayObject *)values[1]); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 68 "root_numpy/tmva/src/factory.pyx" - __pyx_v_targets = ((PyArrayObject *)values[2]); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = NULL; -#line 68 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weights = ((PyArrayObject *)values[3]); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { -#line 68 "root_numpy/tmva/src/factory.pyx" - if (values[4]) { +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8); -#line 68 "root_numpy/tmva/src/factory.pyx" - __pyx_v_test = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_test == (bool)-1) && PyErr_Occurred())) __PYX_ERR(1, 69, __pyx_L3_error) +#line 45 "root_numpy/tmva/src/evaluate.pyx" + if (likely(__pyx_t_3)) { -#line 68 "root_numpy/tmva/src/factory.pyx" - } else { +#line 45 "root_numpy/tmva/src/evaluate.pyx" + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); - /* "root_numpy/tmva/src/factory.pyx":69 - * np.ndarray[np.double_t, ndim=2] targets, - * np.ndarray[np.double_t, ndim=1] weights=None, - * bool test=False): # <<<<<<<<<<<<<< - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] - */ +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(__pyx_t_3); -#line 69 "root_numpy/tmva/src/factory.pyx" - __pyx_v_test = ((bool)0); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(function); -#line 69 "root_numpy/tmva/src/factory.pyx" - } +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF_SET(__pyx_t_8, function); -#line 69 "root_numpy/tmva/src/factory.pyx" - } +#line 45 "root_numpy/tmva/src/evaluate.pyx" + } -#line 69 "root_numpy/tmva/src/factory.pyx" - goto __pyx_L4_argument_unpacking_done; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + } -#line 69 "root_numpy/tmva/src/factory.pyx" - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("factory_add_events_regression", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); -#line 69 "root_numpy/tmva/src/factory.pyx" -__PYX_ERR(1, 64, __pyx_L3_error) +#line 45 "root_numpy/tmva/src/evaluate.pyx" + if (!__pyx_t_3) { -#line 69 "root_numpy/tmva/src/factory.pyx" - __pyx_L3_error:; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_output); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) -#line 69 "root_numpy/tmva/src/factory.pyx" - __Pyx_AddTraceback("_libtmvanumpy.factory_add_events_regression", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 69 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannyFinishContext(); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + } else { -#line 69 "root_numpy/tmva/src/factory.pyx" - return NULL; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + #if CYTHON_FAST_PYCALL -#line 69 "root_numpy/tmva/src/factory.pyx" - __pyx_L4_argument_unpacking_done:; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + if (PyFunction_Check(__pyx_t_8)) { -#line 69 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(1, 66, __pyx_L1_error) +#line 45 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_output}; -#line 69 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_targets), __pyx_ptype_5numpy_ndarray, 1, "targets", 0))) __PYX_ERR(1, 67, __pyx_L1_error) +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) -#line 69 "root_numpy/tmva/src/factory.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1, "weights", 0))) __PYX_ERR(1, 68, __pyx_L1_error) - __pyx_r = -#line 69 "root_numpy/tmva/src/factory.pyx" -__pyx_pf_13_libtmvanumpy_4factory_add_events_regression(__pyx_self, __pyx_v_factory, __pyx_v_events, __pyx_v_targets, __pyx_v_weights, __pyx_v_test); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "root_numpy/tmva/src/factory.pyx":64 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_regression( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, - */ +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 64 "root_numpy/tmva/src/factory.pyx" +#line 45 "root_numpy/tmva/src/evaluate.pyx" + } else +#line 45 "root_numpy/tmva/src/evaluate.pyx" + #endif -#line 64 "root_numpy/tmva/src/factory.pyx" - /* function exit code */ +#line 45 "root_numpy/tmva/src/evaluate.pyx" + #if CYTHON_FAST_PYCCALL -#line 64 "root_numpy/tmva/src/factory.pyx" - goto __pyx_L0; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_L1_error:; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_output}; -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_r = NULL; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_L0:; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannyFinishContext(); +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 64 "root_numpy/tmva/src/factory.pyx" - return __pyx_r; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + } else -#line 64 "root_numpy/tmva/src/factory.pyx" -} +#line 45 "root_numpy/tmva/src/evaluate.pyx" + #endif -#line 64 "root_numpy/tmva/src/factory.pyx" +#line 45 "root_numpy/tmva/src/evaluate.pyx" + { +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 45, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" -static PyObject *__pyx_pf_13_libtmvanumpy_4factory_add_events_regression(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_factory, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_targets, PyArrayObject *__pyx_v_weights, bool __pyx_v_test) { - TMVA::Factory *__pyx_v__factory -#line 64 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_size -#line 64 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_n_features -#line 64 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_n_targets -#line 64 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_i -#line 64 "root_numpy/tmva/src/factory.pyx" -; - long __pyx_v_j -#line 64 "root_numpy/tmva/src/factory.pyx" -; - double __pyx_v_weight -#line 64 "root_numpy/tmva/src/factory.pyx" -; - std::vector *__pyx_v_event -#line 64 "root_numpy/tmva/src/factory.pyx" -; - TMVA::Types::ETreeType __pyx_v_treetype -#line 64 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 64 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_events -#line 64 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_targets -#line 64 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_targets -#line 64 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_weights -#line 64 "root_numpy/tmva/src/factory.pyx" -; - __Pyx_Buffer __pyx_pybuffer_weights -#line 64 "root_numpy/tmva/src/factory.pyx" -; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 64 "root_numpy/tmva/src/factory.pyx" - PyObject *__pyx_r = NULL; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannyDeclarations +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(__pyx_v_output); -#line 64 "root_numpy/tmva/src/factory.pyx" - void *__pyx_t_1; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_v_output); -#line 64 "root_numpy/tmva/src/factory.pyx" - std::vector *__pyx_t_2; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_output); -#line 64 "root_numpy/tmva/src/factory.pyx" - int __pyx_t_3; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - long __pyx_t_4; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 64 "root_numpy/tmva/src/factory.pyx" - int __pyx_t_5; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 64 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_6; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + } -#line 64 "root_numpy/tmva/src/factory.pyx" - long __pyx_t_7; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + } -#line 64 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_8; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 64 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_9; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = __pyx_t_2; -#line 64 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_10; - -#line 64 "root_numpy/tmva/src/factory.pyx" - Py_ssize_t __pyx_t_11; - -#line 64 "root_numpy/tmva/src/factory.pyx" - std::string __pyx_t_12; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannySetupContext("factory_add_events_regression", 0); - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_events.pybuffer.buf = NULL; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_events.refcount = 0; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_events.data = NULL; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_targets.pybuffer.buf = NULL; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_targets.refcount = 0; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_targets.data = NULL; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_targets.rcbuffer = &__pyx_pybuffer_targets; - -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_weights.pybuffer.buf = NULL; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = 0; -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffer_weights.refcount = 0; +#line 45 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L0; -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.data = NULL; + /* "root_numpy/tmva/src/evaluate.pyx":44 + * raise AssertionError("there must be at least one regression target") + * output = evaluate_regression(_method, events, n_targets) + * if n_targets == 1: # <<<<<<<<<<<<<< + * return np.ravel(output) + * return output + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.rcbuffer = &__pyx_pybuffer_weights; +#line 44 "root_numpy/tmva/src/evaluate.pyx" + } -#line 64 "root_numpy/tmva/src/factory.pyx" - { + /* "root_numpy/tmva/src/evaluate.pyx":46 + * if n_targets == 1: + * return np.ravel(output) + * return output # <<<<<<<<<<<<<< + * raise AssertionError("the analysis type of this method is not supported") + * + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 46 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 64 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 64, __pyx_L1_error) +#line 46 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(__pyx_v_output); -#line 64 "root_numpy/tmva/src/factory.pyx" - } +#line 46 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = __pyx_v_output; -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; +#line 46 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L0; -#line 64 "root_numpy/tmva/src/factory.pyx" - { + /* "root_numpy/tmva/src/evaluate.pyx":39 + * raise AssertionError("there must be at least two classes") + * return evaluate_multiclass(_method, events, n_classes) + * elif analysistype == kRegression: # <<<<<<<<<<<<<< + * n_targets = _method.DataInfo().GetNTargets() + * if n_targets < 1: + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 39 "root_numpy/tmva/src/evaluate.pyx" + break; -#line 64 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_targets.rcbuffer->pybuffer, (PyObject*)__pyx_v_targets, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 64, __pyx_L1_error) +#line 39 "root_numpy/tmva/src/evaluate.pyx" + default: break; -#line 64 "root_numpy/tmva/src/factory.pyx" +#line 39 "root_numpy/tmva/src/evaluate.pyx" } -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_targets.diminfo[0].strides = __pyx_pybuffernd_targets.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_targets.diminfo[0].shape = __pyx_pybuffernd_targets.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_targets.diminfo[1].strides = __pyx_pybuffernd_targets.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_targets.diminfo[1].shape = __pyx_pybuffernd_targets.rcbuffer->pybuffer.shape[1]; - -#line 64 "root_numpy/tmva/src/factory.pyx" - { - -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; - -#line 64 "root_numpy/tmva/src/factory.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_weights.rcbuffer->pybuffer, (PyObject*)__pyx_v_weights, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 64, __pyx_L1_error) + /* "root_numpy/tmva/src/evaluate.pyx":47 + * return np.ravel(output) + * return output + * raise AssertionError("the analysis type of this method is not supported") # <<<<<<<<<<<<<< + * + * + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - } +#line 47 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_pybuffernd_weights.diminfo[0].strides = __pyx_pybuffernd_weights.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_weights.diminfo[0].shape = __pyx_pybuffernd_weights.rcbuffer->pybuffer.shape[0]; +#line 47 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); - /* "root_numpy/tmva/src/factory.pyx":70 - * np.ndarray[np.double_t, ndim=1] weights=None, - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) # <<<<<<<<<<<<<< - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] - */ +#line 47 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_Raise(__pyx_t_2, 0, 0, 0); -#line 70 "root_numpy/tmva/src/factory.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_factory); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 70, __pyx_L1_error) +#line 47 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 70 "root_numpy/tmva/src/factory.pyx" - __pyx_v__factory = ((TMVA::Factory *)__pyx_t_1); +#line 47 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 47, __pyx_L1_error) - /* "root_numpy/tmva/src/factory.pyx":71 - * bool test=False): - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] # <<<<<<<<<<<<<< + /* "root_numpy/tmva/src/evaluate.pyx":22 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * cdef evaluate_method_dispatch(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< * cdef long n_features = events.shape[1] - * cdef long n_targets = targets.shape[1] + * cdef unsigned int n_classes, n_targets */ -#line 71 "root_numpy/tmva/src/factory.pyx" - __pyx_v_size = (__pyx_v_events->dimensions[0]); +#line 22 "root_numpy/tmva/src/evaluate.pyx" - /* "root_numpy/tmva/src/factory.pyx":72 - * cdef Factory* _factory = PyCObject_AsVoidPtr(factory) - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< - * cdef long n_targets = targets.shape[1] - * cdef long i, j - */ -#line 72 "root_numpy/tmva/src/factory.pyx" - __pyx_v_n_features = (__pyx_v_events->dimensions[1]); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + /* function exit code */ - /* "root_numpy/tmva/src/factory.pyx":73 - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] - * cdef long n_targets = targets.shape[1] # <<<<<<<<<<<<<< - * cdef long i, j - * cdef double weight = 1. - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L1_error:; -#line 73 "root_numpy/tmva/src/factory.pyx" - __pyx_v_n_targets = (__pyx_v_targets->dimensions[1]); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_2); - /* "root_numpy/tmva/src/factory.pyx":75 - * cdef long n_targets = targets.shape[1] - * cdef long i, j - * cdef double weight = 1. # <<<<<<<<<<<<<< - * cdef vector[double]* event = new vector[double](n_features + n_targets) - * cdef ETreeType treetype = kTraining - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_3); -#line 75 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weight = 1.; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_4); - /* "root_numpy/tmva/src/factory.pyx":76 - * cdef long i, j - * cdef double weight = 1. - * cdef vector[double]* event = new vector[double](n_features + n_targets) # <<<<<<<<<<<<<< - * cdef ETreeType treetype = kTraining - * if test: - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_5); -#line 76 "root_numpy/tmva/src/factory.pyx" - try { +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_6); -#line 76 "root_numpy/tmva/src/factory.pyx" - __pyx_t_2 = new std::vector ((__pyx_v_n_features + __pyx_v_n_targets)); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_8); -#line 76 "root_numpy/tmva/src/factory.pyx" - } catch(...) { +#line 22 "root_numpy/tmva/src/evaluate.pyx" + { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 76 "root_numpy/tmva/src/factory.pyx" - __Pyx_CppExn2PyErr(); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_declare -#line 76 "root_numpy/tmva/src/factory.pyx" - __PYX_ERR(1, 76, __pyx_L1_error) +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_assign -#line 76 "root_numpy/tmva/src/factory.pyx" - } +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 76 "root_numpy/tmva/src/factory.pyx" - __pyx_v_event = __pyx_t_2; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); - /* "root_numpy/tmva/src/factory.pyx":77 - * cdef double weight = 1. - * cdef vector[double]* event = new vector[double](n_features + n_targets) - * cdef ETreeType treetype = kTraining # <<<<<<<<<<<<<< - * if test: - * treetype = kTesting - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 77 "root_numpy/tmva/src/factory.pyx" - __pyx_v_treetype = TMVA::Types::kTraining; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_method_dispatch", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "root_numpy/tmva/src/factory.pyx":78 - * cdef vector[double]* event = new vector[double](n_features + n_targets) - * cdef ETreeType treetype = kTraining - * if test: # <<<<<<<<<<<<<< - * treetype = kTesting - * for i from 0 <= i < size: - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = 0; -#line 78 "root_numpy/tmva/src/factory.pyx" - __pyx_t_3 = (__pyx_v_test != 0); +#line 22 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L2; -#line 78 "root_numpy/tmva/src/factory.pyx" - if (__pyx_t_3) { +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L0:; - /* "root_numpy/tmva/src/factory.pyx":79 - * cdef ETreeType treetype = kTraining - * if test: - * treetype = kTesting # <<<<<<<<<<<<<< - * for i from 0 <= i < size: - * if weights is not None: - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 79 "root_numpy/tmva/src/factory.pyx" - __pyx_v_treetype = TMVA::Types::kTesting; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L2:; - /* "root_numpy/tmva/src/factory.pyx":78 - * cdef vector[double]* event = new vector[double](n_features + n_targets) - * cdef ETreeType treetype = kTraining - * if test: # <<<<<<<<<<<<<< - * treetype = kTesting - * for i from 0 <= i < size: - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_v_output); -#line 78 "root_numpy/tmva/src/factory.pyx" - } +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XGIVEREF(__pyx_r); - /* "root_numpy/tmva/src/factory.pyx":80 - * if test: - * treetype = kTesting - * for i from 0 <= i < size: # <<<<<<<<<<<<<< - * if weights is not None: - * weight = weights[i] - */ +#line 22 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyFinishContext(); -#line 80 "root_numpy/tmva/src/factory.pyx" - __pyx_t_4 = __pyx_v_size; +#line 22 "root_numpy/tmva/src/evaluate.pyx" + return __pyx_r; -#line 80 "root_numpy/tmva/src/factory.pyx" - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_4; __pyx_v_i++) { +#line 22 "root_numpy/tmva/src/evaluate.pyx" +} - /* "root_numpy/tmva/src/factory.pyx":81 - * treetype = kTesting - * for i from 0 <= i < size: - * if weights is not None: # <<<<<<<<<<<<<< - * weight = weights[i] - * for j from 0 <= j < n_features: +/* "root_numpy/tmva/src/evaluate.pyx":52 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * cdef evaluate_twoclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef MethodCuts* mc + * cdef long size = events.shape[0] */ -#line 81 "root_numpy/tmva/src/factory.pyx" - __pyx_t_3 = (((PyObject *)__pyx_v_weights) != Py_None); - -#line 81 "root_numpy/tmva/src/factory.pyx" - __pyx_t_5 = (__pyx_t_3 != 0); +#line 52 "root_numpy/tmva/src/evaluate.pyx" -#line 81 "root_numpy/tmva/src/factory.pyx" - if (__pyx_t_5) { - /* "root_numpy/tmva/src/factory.pyx":82 - * for i from 0 <= i < size: - * if weights is not None: - * weight = weights[i] # <<<<<<<<<<<<<< - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] - */ +#line 52 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_f_13_libtmvanumpy_evaluate_twoclass(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { + TMVA::MethodCuts *__pyx_v_mc +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_size +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_n_features +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_i +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_j +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + std::vector __pyx_v_features +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + TMVA::Event *__pyx_v_event +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + PyArrayObject *__pyx_v_output = 0 +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_events +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_Buffer __pyx_pybuffer_events +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_output +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_Buffer __pyx_pybuffer_output +#line 52 "root_numpy/tmva/src/evaluate.pyx" +; -#line 82 "root_numpy/tmva/src/factory.pyx" - __pyx_t_6 = __pyx_v_i; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_r = NULL; -#line 82 "root_numpy/tmva/src/factory.pyx" - __pyx_v_weight = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_weights.rcbuffer->pybuffer.buf, __pyx_t_6, __pyx_pybuffernd_weights.diminfo[0].strides)); +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyDeclarations - /* "root_numpy/tmva/src/factory.pyx":81 - * treetype = kTesting - * for i from 0 <= i < size: - * if weights is not None: # <<<<<<<<<<<<<< - * weight = weights[i] - * for j from 0 <= j < n_features: - */ +#line 52 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_1 = NULL; -#line 81 "root_numpy/tmva/src/factory.pyx" - } +#line 52 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_2 = NULL; - /* "root_numpy/tmva/src/factory.pyx":83 - * if weights is not None: - * weight = weights[i] - * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< - * event[0][j] = events[i, j] - * for j from 0 <= j < n_targets: - */ +#line 52 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_3 = NULL; -#line 83 "root_numpy/tmva/src/factory.pyx" - __pyx_t_7 = __pyx_v_n_features; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_4 = NULL; -#line 83 "root_numpy/tmva/src/factory.pyx" - for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_7; __pyx_v_j++) { +#line 52 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_5 = NULL; - /* "root_numpy/tmva/src/factory.pyx":84 - * weight = weights[i] - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] # <<<<<<<<<<<<<< - * for j from 0 <= j < n_targets: - * event[0][n_features + j] = targets[i, j] - */ +#line 52 "root_numpy/tmva/src/evaluate.pyx" + PyArrayObject *__pyx_t_6 = NULL; -#line 84 "root_numpy/tmva/src/factory.pyx" - __pyx_t_8 = __pyx_v_i; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + int __pyx_t_7; -#line 84 "root_numpy/tmva/src/factory.pyx" - __pyx_t_9 = __pyx_v_j; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + TMVA::MethodCuts *__pyx_t_8; -#line 84 "root_numpy/tmva/src/factory.pyx" - ((__pyx_v_event[0])[__pyx_v_j]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_8, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_9, __pyx_pybuffernd_events.diminfo[1].strides)); +#line 52 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_t_9; -#line 84 "root_numpy/tmva/src/factory.pyx" - } +#line 52 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_t_10; - /* "root_numpy/tmva/src/factory.pyx":85 - * for j from 0 <= j < n_features: - * event[0][j] = events[i, j] - * for j from 0 <= j < n_targets: # <<<<<<<<<<<<<< - * event[0][n_features + j] = targets[i, j] - * _factory.AddEvent("Regression", treetype, event[0], weight) - */ +#line 52 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_11; -#line 85 "root_numpy/tmva/src/factory.pyx" - __pyx_t_7 = __pyx_v_n_targets; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_12; -#line 85 "root_numpy/tmva/src/factory.pyx" - for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_7; __pyx_v_j++) { +#line 52 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_13; - /* "root_numpy/tmva/src/factory.pyx":86 - * event[0][j] = events[i, j] - * for j from 0 <= j < n_targets: - * event[0][n_features + j] = targets[i, j] # <<<<<<<<<<<<<< - * _factory.AddEvent("Regression", treetype, event[0], weight) - * del event - */ +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_twoclass", 0); -#line 86 "root_numpy/tmva/src/factory.pyx" - __pyx_t_10 = __pyx_v_i; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_output.pybuffer.buf = NULL; -#line 86 "root_numpy/tmva/src/factory.pyx" - __pyx_t_11 = __pyx_v_j; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_output.refcount = 0; -#line 86 "root_numpy/tmva/src/factory.pyx" - ((__pyx_v_event[0])[(__pyx_v_n_features + __pyx_v_j)]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_targets.rcbuffer->pybuffer.buf, __pyx_t_10, __pyx_pybuffernd_targets.diminfo[0].strides, __pyx_t_11, __pyx_pybuffernd_targets.diminfo[1].strides)); +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_output.data = NULL; -#line 86 "root_numpy/tmva/src/factory.pyx" - } +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_output.rcbuffer = &__pyx_pybuffer_output; - /* "root_numpy/tmva/src/factory.pyx":87 - * for j from 0 <= j < n_targets: - * event[0][n_features + j] = targets[i, j] - * _factory.AddEvent("Regression", treetype, event[0], weight) # <<<<<<<<<<<<<< - * del event - */ +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 87 "root_numpy/tmva/src/factory.pyx" - __pyx_t_12 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Regression); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 87, __pyx_L1_error) +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.refcount = 0; + +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.data = NULL; + +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; + +#line 52 "root_numpy/tmva/src/evaluate.pyx" + { + +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 87 "root_numpy/tmva/src/factory.pyx" - __pyx_v__factory->AddEvent(__pyx_t_12, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); +#line 52 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 52, __pyx_L1_error) -#line 87 "root_numpy/tmva/src/factory.pyx" +#line 52 "root_numpy/tmva/src/evaluate.pyx" } - /* "root_numpy/tmva/src/factory.pyx":88 - * event[0][n_features + j] = targets[i, j] - * _factory.AddEvent("Regression", treetype, event[0], weight) - * del event # <<<<<<<<<<<<<< +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; + + /* "root_numpy/tmva/src/evaluate.pyx":54 + * cdef evaluate_twoclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): + * cdef MethodCuts* mc + * cdef long size = events.shape[0] # <<<<<<<<<<<<<< + * cdef long n_features = events.shape[1] + * cdef long i, j */ -#line 88 "root_numpy/tmva/src/factory.pyx" - delete __pyx_v_event; +#line 54 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_size = (__pyx_v_events->dimensions[0]); - /* "root_numpy/tmva/src/factory.pyx":64 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_regression( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + /* "root_numpy/tmva/src/evaluate.pyx":55 + * cdef MethodCuts* mc + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< + * cdef long i, j + * cdef vector[float] features */ -#line 64 "root_numpy/tmva/src/factory.pyx" - +#line 55 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_n_features = (__pyx_v_events->dimensions[1]); -#line 64 "root_numpy/tmva/src/factory.pyx" - /* function exit code */ + /* "root_numpy/tmva/src/evaluate.pyx":58 + * cdef long i, j + * cdef vector[float] features + * cdef Event* event = new Event(features, 0) # <<<<<<<<<<<<<< + * _method.fTmpEvent = event + * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_r = Py_None; __Pyx_INCREF(Py_None); +#line 58 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_event = new TMVA::Event(__pyx_v_features, 0); -#line 64 "root_numpy/tmva/src/factory.pyx" - goto __pyx_L0; + /* "root_numpy/tmva/src/evaluate.pyx":59 + * cdef vector[float] features + * cdef Event* event = new Event(features, 0) + * _method.fTmpEvent = event # <<<<<<<<<<<<<< + * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) + * if _method.GetMethodType() == kCuts: + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_L1_error:; +#line 59 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__method->fTmpEvent = __pyx_v_event; -#line 64 "root_numpy/tmva/src/factory.pyx" - { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; + /* "root_numpy/tmva/src/evaluate.pyx":60 + * cdef Event* event = new Event(features, 0) + * _method.fTmpEvent = event + * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) # <<<<<<<<<<<<<< + * if _method.GetMethodType() == kCuts: + * mc = dynamic_cast["MethodCuts*"](_method) + */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_PyThreadState_declare +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_PyThreadState_assign +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_targets.rcbuffer->pybuffer); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_AddTraceback("_libtmvanumpy.factory_add_events_regression", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_r = NULL; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); -#line 64 "root_numpy/tmva/src/factory.pyx" - goto __pyx_L2; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_1); -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_L0:; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = 0; -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_targets.rcbuffer->pybuffer); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_L2:; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_XGIVEREF(__pyx_r); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_RefNannyFinishContext(); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_double); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - return __pyx_r; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 64 "root_numpy/tmva/src/factory.pyx" -} +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -/* "root_numpy/tmva/src/evaluate.pyx":3 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) - * cdef IMethod* imeth = _reader.FindMVA(name) - */ +#line 60 "root_numpy/tmva/src/evaluate.pyx" + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 60, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 60, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" -/* Python wrapper */ +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_7evaluate_reader(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_13_libtmvanumpy_7evaluate_reader = -#line 3 "root_numpy/tmva/src/evaluate.pyx" -{"evaluate_reader", (PyCFunction)__pyx_pw_13_libtmvanumpy_7evaluate_reader, METH_VARARGS|METH_KEYWORDS, 0}; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_7evaluate_reader(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_reader = 0 -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; - PyObject *__pyx_v_name = 0 -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; - PyArrayObject *__pyx_v_events = 0 -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; - double __pyx_v_aux -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_r = 0; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyDeclarations +#line 60 "root_numpy/tmva/src/evaluate.pyx" + if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 60, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_reader (wrapper)", 0); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = ((PyArrayObject *)__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 60 "root_numpy/tmva/src/evaluate.pyx" { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_reader,&__pyx_n_s_name,&__pyx_n_s_events,&__pyx_n_s_aux,0}; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - PyObject* values[4] = {0,0,0,0}; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_output.rcbuffer->pybuffer, (PyObject*)__pyx_t_6, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__pyx_kwds)) { +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_output = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_output.rcbuffer->pybuffer.buf = NULL; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t kw_args; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 60, __pyx_L1_error) + } else { +#line 60 "root_numpy/tmva/src/evaluate.pyx" +__pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_output.diminfo[0].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[0]; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - switch (pos_args) { - case 4: -#line 3 "root_numpy/tmva/src/evaluate.pyx" -values[3] = PyTuple_GET_ITEM(__pyx_args, 3); - case 3: -#line 3 "root_numpy/tmva/src/evaluate.pyx" -values[2] = PyTuple_GET_ITEM(__pyx_args, 2); - case 2: -#line 3 "root_numpy/tmva/src/evaluate.pyx" -values[1] = PyTuple_GET_ITEM(__pyx_args, 1); - case 1: -#line 3 "root_numpy/tmva/src/evaluate.pyx" -values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - case 0: break; - default: -#line 3 "root_numpy/tmva/src/evaluate.pyx" -goto __pyx_L5_argtuple_error; +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_output = ((PyArrayObject *)__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - kw_args = PyDict_Size(__pyx_kwds); +#line 60 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - switch (pos_args) { + /* "root_numpy/tmva/src/evaluate.pyx":61 + * _method.fTmpEvent = event + * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) + * if _method.GetMethodType() == kCuts: # <<<<<<<<<<<<<< + * mc = dynamic_cast["MethodCuts*"](_method) + * if mc != NULL: + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - case 0: +#line 61 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_7 = ((__pyx_v__method->GetMethodType() == TMVA::Types::kCuts) != 0); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_reader)) != 0)) kw_args--; - else -#line 3 "root_numpy/tmva/src/evaluate.pyx" -goto __pyx_L5_argtuple_error; +#line 61 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_7) { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - case 1: + /* "root_numpy/tmva/src/evaluate.pyx":62 + * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) + * if _method.GetMethodType() == kCuts: + * mc = dynamic_cast["MethodCuts*"](_method) # <<<<<<<<<<<<<< + * if mc != NULL: + * mc.SetTestSignalEfficiency(aux) + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; +#line 62 "root_numpy/tmva/src/evaluate.pyx" + try { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - else { - __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, 1); -#line 3 "root_numpy/tmva/src/evaluate.pyx" -__PYX_ERR(0, 3, __pyx_L3_error) +#line 62 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_8 = dynamic_cast(__pyx_v__method); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } +#line 62 "root_numpy/tmva/src/evaluate.pyx" + } catch(...) { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - case 2: +#line 62 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_CppExn2PyErr(); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; +#line 62 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 62, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" - else { - __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, 2); -#line 3 "root_numpy/tmva/src/evaluate.pyx" -__PYX_ERR(0, 3, __pyx_L3_error) +#line 62 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } +#line 62 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_mc = __pyx_t_8; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - case 3: + /* "root_numpy/tmva/src/evaluate.pyx":63 + * if _method.GetMethodType() == kCuts: + * mc = dynamic_cast["MethodCuts*"](_method) + * if mc != NULL: # <<<<<<<<<<<<<< + * mc.SetTestSignalEfficiency(aux) + * for i from 0 <= i < size: + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; +#line 63 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_7 = ((__pyx_v_mc != NULL) != 0); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - else { - __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, 3); -#line 3 "root_numpy/tmva/src/evaluate.pyx" -__PYX_ERR(0, 3, __pyx_L3_error) +#line 63 "root_numpy/tmva/src/evaluate.pyx" + if (__pyx_t_7) { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":64 + * mc = dynamic_cast["MethodCuts*"](_method) + * if mc != NULL: + * mc.SetTestSignalEfficiency(aux) # <<<<<<<<<<<<<< + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } +#line 64 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_mc->SetTestSignalEfficiency(__pyx_v_aux); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(kw_args > 0)) { + /* "root_numpy/tmva/src/evaluate.pyx":63 + * if _method.GetMethodType() == kCuts: + * mc = dynamic_cast["MethodCuts*"](_method) + * if mc != NULL: # <<<<<<<<<<<<<< + * mc.SetTestSignalEfficiency(aux) + * for i from 0 <= i < size: + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "evaluate_reader") < 0)) __PYX_ERR(0, 3, __pyx_L3_error) +#line 63 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":61 + * _method.fTmpEvent = event + * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) + * if _method.GetMethodType() == kCuts: # <<<<<<<<<<<<<< + * mc = dynamic_cast["MethodCuts*"](_method) + * if mc != NULL: + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { +#line 61 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L5_argtuple_error; + /* "root_numpy/tmva/src/evaluate.pyx":65 + * if mc != NULL: + * mc.SetTestSignalEfficiency(aux) + * for i from 0 <= i < size: # <<<<<<<<<<<<<< + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } else { +#line 65 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_9 = __pyx_v_size; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 65 "root_numpy/tmva/src/evaluate.pyx" + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_9; __pyx_v_i++) { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + /* "root_numpy/tmva/src/evaluate.pyx":66 + * mc.SetTestSignalEfficiency(aux) + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< + * event.SetVal(j, events[i, j]) + * output[i] = _method.GetMvaValue() + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - values[2] = PyTuple_GET_ITEM(__pyx_args, 2); +#line 66 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_10 = __pyx_v_n_features; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - values[3] = PyTuple_GET_ITEM(__pyx_args, 3); +#line 66 "root_numpy/tmva/src/evaluate.pyx" + for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_10; __pyx_v_j++) { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":67 + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) # <<<<<<<<<<<<<< + * output[i] = _method.GetMvaValue() + * _method.fTmpEvent = NULL + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_reader = values[0]; +#line 67 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_11 = __pyx_v_i; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_name = values[1]; +#line 67 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_12 = __pyx_v_j; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_events = ((PyArrayObject *)values[2]); +#line 67 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_event->SetVal(__pyx_v_j, (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_events.diminfo[1].strides))); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_aux = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_aux == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3, __pyx_L3_error) +#line 67 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":68 + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) + * output[i] = _method.GetMvaValue() # <<<<<<<<<<<<<< + * _method.fTmpEvent = NULL + * del event + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L4_argument_unpacking_done; +#line 68 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_13 = __pyx_v_i; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("evaluate_reader", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); -#line 3 "root_numpy/tmva/src/evaluate.pyx" -__PYX_ERR(0, 3, __pyx_L3_error) +#line 68 "root_numpy/tmva/src/evaluate.pyx" + *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_output.diminfo[0].strides) = __pyx_v__method->GetMvaValue(); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L3_error:; +#line 68 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_reader", __pyx_clineno, __pyx_lineno, __pyx_filename); + /* "root_numpy/tmva/src/evaluate.pyx":69 + * event.SetVal(j, events[i, j]) + * output[i] = _method.GetMvaValue() + * _method.fTmpEvent = NULL # <<<<<<<<<<<<<< + * del event + * return output + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyFinishContext(); +#line 69 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__method->fTmpEvent = NULL; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - return NULL; + /* "root_numpy/tmva/src/evaluate.pyx":70 + * output[i] = _method.GetMvaValue() + * _method.fTmpEvent = NULL + * del event # <<<<<<<<<<<<<< + * return output + * + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L4_argument_unpacking_done:; +#line 70 "root_numpy/tmva/src/evaluate.pyx" + delete __pyx_v_event; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(0, 3, __pyx_L1_error) - __pyx_r = -#line 3 "root_numpy/tmva/src/evaluate.pyx" -__pyx_pf_13_libtmvanumpy_6evaluate_reader(__pyx_self, __pyx_v_reader, __pyx_v_name, __pyx_v_events, __pyx_v_aux); + /* "root_numpy/tmva/src/evaluate.pyx":71 + * _method.fTmpEvent = NULL + * del event + * return output # <<<<<<<<<<<<<< + * + * + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 71 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); +#line 71 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(((PyObject *)__pyx_v_output)); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - /* function exit code */ +#line 71 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = ((PyObject *)__pyx_v_output); -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 71 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; + /* "root_numpy/tmva/src/evaluate.pyx":52 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * cdef evaluate_twoclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef MethodCuts* mc + * cdef long size = events.shape[0] + */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L0:; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyFinishContext(); +#line 52 "root_numpy/tmva/src/evaluate.pyx" + /* function exit code */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - return __pyx_r; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L1_error:; -#line 3 "root_numpy/tmva/src/evaluate.pyx" -} +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_1); -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_2); +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_3); -#line 3 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_pf_13_libtmvanumpy_6evaluate_reader(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_reader, PyObject *__pyx_v_name, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { - TMVA::Reader *__pyx_v__reader -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; - TMVA::IMethod *__pyx_v_imeth -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; - TMVA::MethodBase *__pyx_v_method -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_Buffer __pyx_pybuffer_events -#line 3 "root_numpy/tmva/src/evaluate.pyx" -; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_4); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_r = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyDeclarations +#line 52 "root_numpy/tmva/src/evaluate.pyx" + { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - void *__pyx_t_1; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_declare -#line 3 "root_numpy/tmva/src/evaluate.pyx" - std::string __pyx_t_2; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_assign -#line 3 "root_numpy/tmva/src/evaluate.pyx" - int __pyx_t_3; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_4 = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_5 = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_6 = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 3 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_7 = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_twoclass", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - TMVA::MethodBase *__pyx_t_8; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_reader", 0); +#line 52 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L2; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.pybuffer.buf = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L0:; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.refcount = 0; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.data = NULL; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L2:; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - { +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF((PyObject *)__pyx_v_output); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XGIVEREF(__pyx_r); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 3, __pyx_L1_error) +#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyFinishContext(); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - } +#line 52 "root_numpy/tmva/src/evaluate.pyx" + return __pyx_r; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; +#line 52 "root_numpy/tmva/src/evaluate.pyx" +} - /* "root_numpy/tmva/src/evaluate.pyx":4 +/* "root_numpy/tmva/src/evaluate.pyx":76 + * @cython.boundscheck(False) * @cython.wraparound(False) - * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): - * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) # <<<<<<<<<<<<<< - * cdef IMethod* imeth = _reader.FindMVA(name) - * if imeth == NULL: + * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): # <<<<<<<<<<<<<< + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] */ -#line 4 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_reader); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(0, 4, __pyx_L1_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" -#line 4 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__reader = ((TMVA::Reader *)__pyx_t_1); - /* "root_numpy/tmva/src/evaluate.pyx":5 - * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): - * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) - * cdef IMethod* imeth = _reader.FindMVA(name) # <<<<<<<<<<<<<< - * if imeth == NULL: - * raise ValueError( - */ - -#line 5 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5, __pyx_L1_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_f_13_libtmvanumpy_evaluate_multiclass(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, unsigned int __pyx_v_n_classes) { + long __pyx_v_size +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_n_features +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_i +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_j +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + std::vector __pyx_v_features +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + TMVA::Event *__pyx_v_event +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + PyArrayObject *__pyx_v_output = 0 +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_events +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_Buffer __pyx_pybuffer_events +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_output +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_Buffer __pyx_pybuffer_output +#line 76 "root_numpy/tmva/src/evaluate.pyx" +; -#line 5 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_imeth = __pyx_v__reader->FindMVA(__pyx_t_2); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_r = NULL; - /* "root_numpy/tmva/src/evaluate.pyx":6 - * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) - * cdef IMethod* imeth = _reader.FindMVA(name) - * if imeth == NULL: # <<<<<<<<<<<<<< - * raise ValueError( - * "method '{0}' is not booked in this reader".format(name)) - */ +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyDeclarations -#line 6 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = ((__pyx_v_imeth == NULL) != 0); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_1 = NULL; -#line 6 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_3) { +#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_2 = NULL; - /* "root_numpy/tmva/src/evaluate.pyx":8 - * if imeth == NULL: - * raise ValueError( - * "method '{0}' is not booked in this reader".format(name)) # <<<<<<<<<<<<<< - * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) - * return evaluate_method_dispatch(method, events, aux) - */ +#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_3 = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_method_0_is_not_booked_in_this_r, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8, __pyx_L1_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_4 = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_5 = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = NULL; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyArrayObject *__pyx_t_6 = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { +#line 76 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_t_7; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_t_8; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - if (likely(__pyx_t_6)) { +#line 76 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_9; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_10; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(__pyx_t_6); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_11; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(function); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_12; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF_SET(__pyx_t_5, function); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_multiclass", 0); -#line 8 "root_numpy/tmva/src/evaluate.pyx" - } +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_output.pybuffer.buf = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - } +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_output.refcount = 0; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - if (!__pyx_t_6) { +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_output.data = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8, __pyx_L1_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_output.rcbuffer = &__pyx_pybuffer_output; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - } else { +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_events.refcount = 0; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8, __pyx_L1_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.data = NULL; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + { -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(__pyx_v_name); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_v_name); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 76, __pyx_L1_error) -#line 8 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_name); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + } -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8, __pyx_L1_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); + /* "root_numpy/tmva/src/evaluate.pyx":77 + * @cython.wraparound(False) + * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): + * cdef long size = events.shape[0] # <<<<<<<<<<<<<< + * cdef long n_features = events.shape[1] + * cdef long i, j + */ -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; +#line 77 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_size = (__pyx_v_events->dimensions[0]); -#line 8 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":78 + * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< + * cdef long i, j + * cdef vector[float] features + */ -#line 8 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; +#line 78 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_n_features = (__pyx_v_events->dimensions[1]); - /* "root_numpy/tmva/src/evaluate.pyx":7 - * cdef IMethod* imeth = _reader.FindMVA(name) - * if imeth == NULL: - * raise ValueError( # <<<<<<<<<<<<<< - * "method '{0}' is not booked in this reader".format(name)) - * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) + /* "root_numpy/tmva/src/evaluate.pyx":81 + * cdef long i, j + * cdef vector[float] features + * cdef Event* event = new Event(features, 0) # <<<<<<<<<<<<<< + * _method.fTmpEvent = event + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) */ -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7, __pyx_L1_error) - -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 81 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_event = new TMVA::Event(__pyx_v_features, 0); -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_4); + /* "root_numpy/tmva/src/evaluate.pyx":82 + * cdef vector[float] features + * cdef Event* event = new Event(features, 0) + * _method.fTmpEvent = event # <<<<<<<<<<<<<< + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) + * for i from 0 <= i < size: + */ -#line 7 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); +#line 82 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__method->fTmpEvent = __pyx_v_event; -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = 0; + /* "root_numpy/tmva/src/evaluate.pyx":83 + * cdef Event* event = new Event(features, 0) + * _method.fTmpEvent = event + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) # <<<<<<<<<<<<<< + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: + */ -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7, __pyx_L1_error) +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 7, __pyx_L1_error) +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) - /* "root_numpy/tmva/src/evaluate.pyx":6 - * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) - * cdef IMethod* imeth = _reader.FindMVA(name) - * if imeth == NULL: # <<<<<<<<<<<<<< - * raise ValueError( - * "method '{0}' is not booked in this reader".format(name)) - */ +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 6 "root_numpy/tmva/src/evaluate.pyx" - } +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_n_classes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error) - /* "root_numpy/tmva/src/evaluate.pyx":9 - * raise ValueError( - * "method '{0}' is not booked in this reader".format(name)) - * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) # <<<<<<<<<<<<<< - * return evaluate_method_dispatch(method, events, aux) - * - */ +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); -#line 9 "root_numpy/tmva/src/evaluate.pyx" - try { +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) -#line 9 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_8 = dynamic_cast(__pyx_v_imeth); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 9 "root_numpy/tmva/src/evaluate.pyx" - } catch(...) { +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_1); -#line 9 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_CppExn2PyErr(); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); -#line 9 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 9, __pyx_L1_error) +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_3); -#line 9 "root_numpy/tmva/src/evaluate.pyx" - } +#line 83 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); -#line 9 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_method = __pyx_t_8; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = 0; - /* "root_numpy/tmva/src/evaluate.pyx":10 - * "method '{0}' is not booked in this reader".format(name)) - * cdef MethodBase* method = dynamic_cast["MethodBase*"](imeth) - * return evaluate_method_dispatch(method, events, aux) # <<<<<<<<<<<<<< - * - * - */ +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = 0; -#line 10 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error) -#line 10 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __pyx_f_13_libtmvanumpy_evaluate_method_dispatch(__pyx_v_method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10, __pyx_L1_error) +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); -#line 10 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_4); -#line 10 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_4; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); -#line 10 "root_numpy/tmva/src/evaluate.pyx" +#line 83 "root_numpy/tmva/src/evaluate.pyx" __pyx_t_4 = 0; -#line 10 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) - /* "root_numpy/tmva/src/evaluate.pyx":3 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) - * cdef IMethod* imeth = _reader.FindMVA(name) - */ +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - /* function exit code */ +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_float32); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_4); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_5); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 83, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_6); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_7); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" - { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_declare +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_assign +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 83, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = ((PyArrayObject *)__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_reader", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = NULL; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L2; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_output.rcbuffer->pybuffer, (PyObject*)__pyx_t_6, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) { -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L0:; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_output = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_output.rcbuffer->pybuffer.buf = NULL; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 83, __pyx_L1_error) + } else { +#line 83 "root_numpy/tmva/src/evaluate.pyx" +__pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_output.diminfo[0].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_output.diminfo[1].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_output.diminfo[1].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[1]; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L2:; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XGIVEREF(__pyx_r); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + } -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyFinishContext(); +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = 0; -#line 3 "root_numpy/tmva/src/evaluate.pyx" - return __pyx_r; +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_output = ((PyArrayObject *)__pyx_t_5); -#line 3 "root_numpy/tmva/src/evaluate.pyx" -} +#line 83 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = 0; -/* "root_numpy/tmva/src/evaluate.pyx":15 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) - * return evaluate_method_dispatch(_method, events, aux) + /* "root_numpy/tmva/src/evaluate.pyx":84 + * _method.fTmpEvent = event + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) + * for i from 0 <= i < size: # <<<<<<<<<<<<<< + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - +#line 84 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_7 = __pyx_v_size; -#line 15 "root_numpy/tmva/src/evaluate.pyx" -/* Python wrapper */ +#line 84 "root_numpy/tmva/src/evaluate.pyx" + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_7; __pyx_v_i++) { -#line 15 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_9evaluate_method(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_13_libtmvanumpy_9evaluate_method = -#line 15 "root_numpy/tmva/src/evaluate.pyx" -{"evaluate_method", (PyCFunction)__pyx_pw_13_libtmvanumpy_9evaluate_method, METH_VARARGS|METH_KEYWORDS, 0}; + /* "root_numpy/tmva/src/evaluate.pyx":85 + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< + * event.SetVal(j, events[i, j]) + * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) + */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_pw_13_libtmvanumpy_9evaluate_method(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_method = 0 -#line 15 "root_numpy/tmva/src/evaluate.pyx" -; - PyArrayObject *__pyx_v_events = 0 -#line 15 "root_numpy/tmva/src/evaluate.pyx" -; - double __pyx_v_aux -#line 15 "root_numpy/tmva/src/evaluate.pyx" -; +#line 85 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_8 = __pyx_v_n_features; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_r = 0; +#line 85 "root_numpy/tmva/src/evaluate.pyx" + for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyDeclarations + /* "root_numpy/tmva/src/evaluate.pyx":86 + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) # <<<<<<<<<<<<<< + * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) + * _method.fTmpEvent = NULL + */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_method (wrapper)", 0); +#line 86 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_9 = __pyx_v_i; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - { +#line 86 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_10 = __pyx_v_j; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method,&__pyx_n_s_events,&__pyx_n_s_aux,0}; +#line 86 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_event->SetVal(__pyx_v_j, (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides))); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - PyObject* values[3] = {0,0,0}; +#line 86 "root_numpy/tmva/src/evaluate.pyx" + } -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__pyx_kwds)) { + /* "root_numpy/tmva/src/evaluate.pyx":87 + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) + * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) # <<<<<<<<<<<<<< + * _method.fTmpEvent = NULL + * del event + */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t kw_args; +#line 87 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_11 = __pyx_v_i; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - switch (pos_args) { - case 3: -#line 15 "root_numpy/tmva/src/evaluate.pyx" -values[2] = PyTuple_GET_ITEM(__pyx_args, 2); - case 2: -#line 15 "root_numpy/tmva/src/evaluate.pyx" -values[1] = PyTuple_GET_ITEM(__pyx_args, 1); - case 1: -#line 15 "root_numpy/tmva/src/evaluate.pyx" -values[0] = PyTuple_GET_ITEM(__pyx_args, 0); - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - case 0: break; - default: -#line 15 "root_numpy/tmva/src/evaluate.pyx" -goto __pyx_L5_argtuple_error; - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - kw_args = PyDict_Size(__pyx_kwds); - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - switch (pos_args) { - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - case 0: - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_method)) != 0)) kw_args--; - else -#line 15 "root_numpy/tmva/src/evaluate.pyx" -goto __pyx_L5_argtuple_error; - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - case 1: +#line 87 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_12 = 0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; +#line 87 "root_numpy/tmva/src/evaluate.pyx" + memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetMulticlassValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_classes)); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - else { - __Pyx_RaiseArgtupleInvalid("evaluate_method", 1, 3, 3, 1); -#line 15 "root_numpy/tmva/src/evaluate.pyx" -__PYX_ERR(0, 15, __pyx_L3_error) +#line 87 "root_numpy/tmva/src/evaluate.pyx" + } -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":88 + * event.SetVal(j, events[i, j]) + * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) + * _method.fTmpEvent = NULL # <<<<<<<<<<<<<< + * del event + * return output + */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - case 2: +#line 88 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__method->fTmpEvent = NULL; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; + /* "root_numpy/tmva/src/evaluate.pyx":89 + * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) + * _method.fTmpEvent = NULL + * del event # <<<<<<<<<<<<<< + * return output + * + */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - else { - __Pyx_RaiseArgtupleInvalid("evaluate_method", 1, 3, 3, 2); -#line 15 "root_numpy/tmva/src/evaluate.pyx" -__PYX_ERR(0, 15, __pyx_L3_error) +#line 89 "root_numpy/tmva/src/evaluate.pyx" + delete __pyx_v_event; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":90 + * _method.fTmpEvent = NULL + * del event + * return output # <<<<<<<<<<<<<< + * + * + */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } +#line 90 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(kw_args > 0)) { +#line 90 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(((PyObject *)__pyx_v_output)); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "evaluate_method") < 0)) __PYX_ERR(0, 15, __pyx_L3_error) +#line 90 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = ((PyObject *)__pyx_v_output); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } +#line 90 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { + /* "root_numpy/tmva/src/evaluate.pyx":76 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): # <<<<<<<<<<<<<< + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] + */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L5_argtuple_error; +#line 76 "root_numpy/tmva/src/evaluate.pyx" -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } else { -#line 15 "root_numpy/tmva/src/evaluate.pyx" - values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + /* function exit code */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - values[1] = PyTuple_GET_ITEM(__pyx_args, 1); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L1_error:; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - values[2] = PyTuple_GET_ITEM(__pyx_args, 2); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_1); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_2); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_method = values[0]; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_3); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_events = ((PyArrayObject *)values[1]); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_4); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_aux = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_aux == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 15, __pyx_L3_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_5); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - } +#line 76 "root_numpy/tmva/src/evaluate.pyx" + { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L4_argument_unpacking_done; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_declare -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("evaluate_method", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); -#line 15 "root_numpy/tmva/src/evaluate.pyx" -__PYX_ERR(0, 15, __pyx_L3_error) +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_assign -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L3_error:; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_method", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyFinishContext(); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - return NULL; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L4_argument_unpacking_done:; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_multiclass", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(0, 15, __pyx_L1_error) - __pyx_r = -#line 15 "root_numpy/tmva/src/evaluate.pyx" -__pyx_pf_13_libtmvanumpy_8evaluate_method(__pyx_self, __pyx_v_method, __pyx_v_events, __pyx_v_aux); +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = 0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 76 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L2; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L0:; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - /* function exit code */ +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L2:; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = NULL; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF((PyObject *)__pyx_v_output); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L0:; +#line 76 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XGIVEREF(__pyx_r); -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 76 "root_numpy/tmva/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 76 "root_numpy/tmva/src/evaluate.pyx" return __pyx_r; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 76 "root_numpy/tmva/src/evaluate.pyx" } -#line 15 "root_numpy/tmva/src/evaluate.pyx" +/* "root_numpy/tmva/src/evaluate.pyx":95 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): # <<<<<<<<<<<<<< + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] + */ +#line 95 "root_numpy/tmva/src/evaluate.pyx" -#line 15 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_pf_13_libtmvanumpy_8evaluate_method(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_method, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { - TMVA::MethodBase *__pyx_v__method -#line 15 "root_numpy/tmva/src/evaluate.pyx" + +#line 95 "root_numpy/tmva/src/evaluate.pyx" +static PyObject *__pyx_f_13_libtmvanumpy_evaluate_regression(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, unsigned int __pyx_v_n_targets) { + long __pyx_v_size +#line 95 "root_numpy/tmva/src/evaluate.pyx" ; - __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 15 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_v_n_features +#line 95 "root_numpy/tmva/src/evaluate.pyx" ; - __Pyx_Buffer __pyx_pybuffer_events -#line 15 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_v_i +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + long __pyx_v_j +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + std::vector __pyx_v_features +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + TMVA::Event *__pyx_v_event +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + PyArrayObject *__pyx_v_output = 0 +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_events +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_Buffer __pyx_pybuffer_events +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_output +#line 95 "root_numpy/tmva/src/evaluate.pyx" +; + __Pyx_Buffer __pyx_pybuffer_output +#line 95 "root_numpy/tmva/src/evaluate.pyx" ; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_r = NULL; - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyDeclarations - -#line 15 "root_numpy/tmva/src/evaluate.pyx" - void *__pyx_t_1; - -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_r = NULL; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyDeclarations + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_1 = NULL; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" PyObject *__pyx_t_2 = NULL; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_method", 0); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_3 = NULL; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_4 = NULL; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + PyObject *__pyx_t_5 = NULL; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + PyArrayObject *__pyx_t_6 = NULL; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_t_7; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + long __pyx_t_8; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_9; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_10; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_11; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + Py_ssize_t __pyx_t_12; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannySetupContext("evaluate_regression", 0); + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_output.pybuffer.buf = NULL; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffer_output.refcount = 0; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_output.data = NULL; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_pybuffernd_output.rcbuffer = &__pyx_pybuffer_output; + +#line 95 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffer_events.refcount = 0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffernd_events.data = NULL; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" { -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 15, __pyx_L1_error) +#line 95 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 95, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" } -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 95 "root_numpy/tmva/src/evaluate.pyx" __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; - /* "root_numpy/tmva/src/evaluate.pyx":16 + /* "root_numpy/tmva/src/evaluate.pyx":96 * @cython.wraparound(False) - * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): - * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) # <<<<<<<<<<<<<< - * return evaluate_method_dispatch(_method, events, aux) - * + * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): + * cdef long size = events.shape[0] # <<<<<<<<<<<<<< + * cdef long n_features = events.shape[1] + * cdef long i, j */ -#line 16 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_method); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(0, 16, __pyx_L1_error) - -#line 16 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__method = ((TMVA::MethodBase *)__pyx_t_1); +#line 96 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_size = (__pyx_v_events->dimensions[0]); - /* "root_numpy/tmva/src/evaluate.pyx":17 - * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): - * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) - * return evaluate_method_dispatch(_method, events, aux) # <<<<<<<<<<<<<< - * - * + /* "root_numpy/tmva/src/evaluate.pyx":97 + * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< + * cdef long i, j + * cdef vector[float] features */ -#line 17 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); - -#line 17 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_method_dispatch(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error) +#line 97 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_n_features = (__pyx_v_events->dimensions[1]); -#line 17 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + /* "root_numpy/tmva/src/evaluate.pyx":100 + * cdef long i, j + * cdef vector[float] features + * cdef Event* event = new Event(features, 0) # <<<<<<<<<<<<<< + * _method.fTmpEvent = event + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) + */ -#line 17 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_2; +#line 100 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_event = new TMVA::Event(__pyx_v_features, 0); -#line 17 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; + /* "root_numpy/tmva/src/evaluate.pyx":101 + * cdef vector[float] features + * cdef Event* event = new Event(features, 0) + * _method.fTmpEvent = event # <<<<<<<<<<<<<< + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) + * for i from 0 <= i < size: + */ -#line 17 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; +#line 101 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__method->fTmpEvent = __pyx_v_event; - /* "root_numpy/tmva/src/evaluate.pyx":15 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) - * return evaluate_method_dispatch(_method, events, aux) + /* "root_numpy/tmva/src/evaluate.pyx":102 + * cdef Event* event = new Event(features, 0) + * _method.fTmpEvent = event + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) # <<<<<<<<<<<<<< + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - /* function exit code */ +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_2); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_2); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_declare +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_assign +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_n_targets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_method", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_1); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L2; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_3); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L0:; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = 0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L2:; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = 0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XGIVEREF(__pyx_r); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyFinishContext(); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_3); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - return __pyx_r; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GIVEREF(__pyx_t_4); -#line 15 "root_numpy/tmva/src/evaluate.pyx" -} - -/* "root_numpy/tmva/src/evaluate.pyx":22 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * cdef evaluate_method_dispatch(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef long n_features = events.shape[1] - * cdef unsigned int n_classes, n_targets - */ - -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 102 "root_numpy/tmva/src/evaluate.pyx" + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = 0; -#line 22 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { - long __pyx_v_n_features -#line 22 "root_numpy/tmva/src/evaluate.pyx" -; - unsigned int __pyx_v_n_classes -#line 22 "root_numpy/tmva/src/evaluate.pyx" -; - unsigned int __pyx_v_n_targets -#line 22 "root_numpy/tmva/src/evaluate.pyx" -; - TMVA::Types::EAnalysisType __pyx_v_analysistype -#line 22 "root_numpy/tmva/src/evaluate.pyx" -; - PyObject *__pyx_v_output = NULL -#line 22 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 22 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_Buffer __pyx_pybuffer_events -#line 22 "root_numpy/tmva/src/evaluate.pyx" -; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 22 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_r = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_4); -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyDeclarations +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 22 "root_numpy/tmva/src/evaluate.pyx" - int __pyx_t_1; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_1); -#line 22 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_2 = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_float32); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 22 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_3 = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 22 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_4 = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_5 = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 102, __pyx_L1_error) -#line 22 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_6 = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_7; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 102, __pyx_L1_error) -#line 22 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_8 = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_GOTREF(__pyx_t_5); -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_method_dispatch", 0); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.pybuffer.buf = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.refcount = 0; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.data = NULL; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 102, __pyx_L1_error) -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = ((PyArrayObject *)__pyx_t_5); -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 102 "root_numpy/tmva/src/evaluate.pyx" { -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 102 "root_numpy/tmva/src/evaluate.pyx" __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 22, __pyx_L1_error) +#line 102 "root_numpy/tmva/src/evaluate.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_output.rcbuffer->pybuffer, (PyObject*)__pyx_t_6, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) { -#line 22 "root_numpy/tmva/src/evaluate.pyx" - } +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_output = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_output.rcbuffer->pybuffer.buf = NULL; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __PYX_ERR(0, 102, __pyx_L1_error) + } else { +#line 102 "root_numpy/tmva/src/evaluate.pyx" +__pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_output.diminfo[0].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_output.diminfo[1].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_output.diminfo[1].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[1]; - /* "root_numpy/tmva/src/evaluate.pyx":23 - * @cython.wraparound(False) - * cdef evaluate_method_dispatch(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): - * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< - * cdef unsigned int n_classes, n_targets - * if n_features != _method.GetNVariables(): - */ +#line 102 "root_numpy/tmva/src/evaluate.pyx" + } -#line 23 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_n_features = (__pyx_v_events->dimensions[1]); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":25 - * cdef long n_features = events.shape[1] - * cdef unsigned int n_classes, n_targets - * if n_features != _method.GetNVariables(): # <<<<<<<<<<<<<< - * raise ValueError( - * "this method was trained with events containing " - */ +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_6 = 0; -#line 25 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = ((__pyx_v_n_features != __pyx_v__method->GetNVariables()) != 0); +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_output = ((PyArrayObject *)__pyx_t_5); -#line 25 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_1) { +#line 102 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_5 = 0; - /* "root_numpy/tmva/src/evaluate.pyx":28 - * raise ValueError( - * "this method was trained with events containing " - * "{0} variables, but these events contain {1} variables".format( # <<<<<<<<<<<<<< - * _method.GetNVariables(), n_features)) - * cdef EAnalysisType analysistype + /* "root_numpy/tmva/src/evaluate.pyx":103 + * _method.fTmpEvent = event + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) + * for i from 0 <= i < size: # <<<<<<<<<<<<<< + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) */ -#line 28 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_this_method_was_trained_with_eve, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28, __pyx_L1_error) +#line 103 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_7 = __pyx_v_size; -#line 28 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 103 "root_numpy/tmva/src/evaluate.pyx" + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_7; __pyx_v_i++) { - /* "root_numpy/tmva/src/evaluate.pyx":29 - * "this method was trained with events containing " - * "{0} variables, but these events contain {1} variables".format( - * _method.GetNVariables(), n_features)) # <<<<<<<<<<<<<< - * cdef EAnalysisType analysistype - * analysistype = _method.GetAnalysisType() + /* "root_numpy/tmva/src/evaluate.pyx":104 + * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< + * event.SetVal(j, events[i, j]) + * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v__method->GetNVariables()); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error) +#line 104 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_8 = __pyx_v_n_features; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 104 "root_numpy/tmva/src/evaluate.pyx" + for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_n_features); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29, __pyx_L1_error) + /* "root_numpy/tmva/src/evaluate.pyx":105 + * for i from 0 <= i < size: + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) # <<<<<<<<<<<<<< + * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) + * _method.fTmpEvent = NULL + */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 105 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_9 = __pyx_v_i; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = NULL; +#line 105 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_10 = __pyx_v_j; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_7 = 0; +#line 105 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v_event->SetVal(__pyx_v_j, (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides))); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { +#line 105 "root_numpy/tmva/src/evaluate.pyx" + } -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); + /* "root_numpy/tmva/src/evaluate.pyx":106 + * for j from 0 <= j < n_features: + * event.SetVal(j, events[i, j]) + * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) # <<<<<<<<<<<<<< + * _method.fTmpEvent = NULL + * del event + */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - if (likely(__pyx_t_6)) { +#line 106 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_11 = __pyx_v_i; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); +#line 106 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_12 = 0; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(__pyx_t_6); +#line 106 "root_numpy/tmva/src/evaluate.pyx" + memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetRegressionValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_targets)); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(function); +#line 106 "root_numpy/tmva/src/evaluate.pyx" + } -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF_SET(__pyx_t_3, function); + /* "root_numpy/tmva/src/evaluate.pyx":107 + * event.SetVal(j, events[i, j]) + * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) + * _method.fTmpEvent = NULL # <<<<<<<<<<<<<< + * del event + * return output + */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_7 = 1; +#line 107 "root_numpy/tmva/src/evaluate.pyx" + __pyx_v__method->fTmpEvent = NULL; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - } + /* "root_numpy/tmva/src/evaluate.pyx":108 + * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) + * _method.fTmpEvent = NULL + * del event # <<<<<<<<<<<<<< + * return output + */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - } +#line 108 "root_numpy/tmva/src/evaluate.pyx" + delete __pyx_v_event; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28, __pyx_L1_error) + /* "root_numpy/tmva/src/evaluate.pyx":109 + * _method.fTmpEvent = NULL + * del event + * return output # <<<<<<<<<<<<<< + */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_8); +#line 109 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_r); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_6) { +#line 109 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_INCREF(((PyObject *)__pyx_v_output)); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; +#line 109 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = ((PyObject *)__pyx_v_output); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - } +#line 109 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L0; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_4); + /* "root_numpy/tmva/src/evaluate.pyx":95 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): # <<<<<<<<<<<<<< + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] + */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4); +#line 95 "root_numpy/tmva/src/evaluate.pyx" -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_5); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + /* function exit code */ -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = 0; +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L1_error:; -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = 0; +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_1); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error) +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_2); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_3); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_4); -#line 29 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF(__pyx_t_5); - /* "root_numpy/tmva/src/evaluate.pyx":26 - * cdef unsigned int n_classes, n_targets - * if n_features != _method.GetNVariables(): - * raise ValueError( # <<<<<<<<<<<<<< - * "this method was trained with events containing " - * "{0} variables, but these events contain {1} variables".format( - */ +#line 95 "root_numpy/tmva/src/evaluate.pyx" + { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26, __pyx_L1_error) +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_declare -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_PyThreadState_assign -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_2); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 26 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_AddTraceback("_libtmvanumpy.evaluate_regression", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_r = 0; -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + goto __pyx_L2; -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L0:; -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 26, __pyx_L1_error) +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); - /* "root_numpy/tmva/src/evaluate.pyx":25 - * cdef long n_features = events.shape[1] - * cdef unsigned int n_classes, n_targets - * if n_features != _method.GetNVariables(): # <<<<<<<<<<<<<< - * raise ValueError( - * "this method was trained with events containing " - */ +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); -#line 25 "root_numpy/tmva/src/evaluate.pyx" - } +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __pyx_L2:; - /* "root_numpy/tmva/src/evaluate.pyx":31 - * _method.GetNVariables(), n_features)) - * cdef EAnalysisType analysistype - * analysistype = _method.GetAnalysisType() # <<<<<<<<<<<<<< - * if analysistype == kClassification: - * return evaluate_twoclass(_method, events, aux) - */ +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XDECREF((PyObject *)__pyx_v_output); -#line 31 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_analysistype = __pyx_v__method->GetAnalysisType(); +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_XGIVEREF(__pyx_r); - /* "root_numpy/tmva/src/evaluate.pyx":32 - * cdef EAnalysisType analysistype - * analysistype = _method.GetAnalysisType() - * if analysistype == kClassification: # <<<<<<<<<<<<<< - * return evaluate_twoclass(_method, events, aux) - * elif analysistype == kMulticlass: - */ +#line 95 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_RefNannyFinishContext(); -#line 32 "root_numpy/tmva/src/evaluate.pyx" - switch (__pyx_v_analysistype) { +#line 95 "root_numpy/tmva/src/evaluate.pyx" + return __pyx_r; -#line 32 "root_numpy/tmva/src/evaluate.pyx" - case TMVA::Types::kClassification: +#line 95 "root_numpy/tmva/src/evaluate.pyx" +} - /* "root_numpy/tmva/src/evaluate.pyx":33 - * analysistype = _method.GetAnalysisType() - * if analysistype == kClassification: - * return evaluate_twoclass(_method, events, aux) # <<<<<<<<<<<<<< - * elif analysistype == kMulticlass: - * n_classes = _method.DataInfo().GetNClasses() +/* "root_numpy/tmva/src/data.pyx":4 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_twoclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 33 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); - -#line 33 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_twoclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) +#line 4 "root_numpy/tmva/src/data.pyx" -#line 33 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); -#line 33 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_2; +#line 4 "root_numpy/tmva/src/data.pyx" +/* Python wrapper */ -#line 33 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; +#line 4 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_5add_events_twoclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_13_libtmvanumpy_5add_events_twoclass = +#line 4 "root_numpy/tmva/src/data.pyx" +{"add_events_twoclass", (PyCFunction)__pyx_pw_13_libtmvanumpy_5add_events_twoclass, METH_VARARGS|METH_KEYWORDS, 0}; -#line 33 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; +#line 4 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_5add_events_twoclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_obj = 0 +#line 4 "root_numpy/tmva/src/data.pyx" +; + PyArrayObject *__pyx_v_events = 0 +#line 4 "root_numpy/tmva/src/data.pyx" +; + PyArrayObject *__pyx_v_labels = 0 +#line 4 "root_numpy/tmva/src/data.pyx" +; + int __pyx_v_signal_label +#line 4 "root_numpy/tmva/src/data.pyx" +; + PyArrayObject *__pyx_v_weights = 0 +#line 4 "root_numpy/tmva/src/data.pyx" +; + bool __pyx_v_test +#line 4 "root_numpy/tmva/src/data.pyx" +; - /* "root_numpy/tmva/src/evaluate.pyx":32 - * cdef EAnalysisType analysistype - * analysistype = _method.GetAnalysisType() - * if analysistype == kClassification: # <<<<<<<<<<<<<< - * return evaluate_twoclass(_method, events, aux) - * elif analysistype == kMulticlass: - */ +#line 4 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_r = 0; -#line 32 "root_numpy/tmva/src/evaluate.pyx" - break; +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyDeclarations - /* "root_numpy/tmva/src/evaluate.pyx":34 - * if analysistype == kClassification: - * return evaluate_twoclass(_method, events, aux) - * elif analysistype == kMulticlass: # <<<<<<<<<<<<<< - * n_classes = _method.DataInfo().GetNClasses() - * if n_classes < 2: - */ +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannySetupContext("add_events_twoclass (wrapper)", 0); -#line 34 "root_numpy/tmva/src/evaluate.pyx" - case TMVA::Types::kMulticlass: +#line 4 "root_numpy/tmva/src/data.pyx" + { - /* "root_numpy/tmva/src/evaluate.pyx":35 - * return evaluate_twoclass(_method, events, aux) - * elif analysistype == kMulticlass: - * n_classes = _method.DataInfo().GetNClasses() # <<<<<<<<<<<<<< - * if n_classes < 2: - * raise AssertionError("there must be at least two classes") - */ +#line 4 "root_numpy/tmva/src/data.pyx" + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_obj,&__pyx_n_s_events,&__pyx_n_s_labels,&__pyx_n_s_signal_label,&__pyx_n_s_weights,&__pyx_n_s_test,0}; -#line 35 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_n_classes = __pyx_v__method->DataInfo().GetNClasses(); +#line 4 "root_numpy/tmva/src/data.pyx" + PyObject* values[6] = {0,0,0,0,0,0}; - /* "root_numpy/tmva/src/evaluate.pyx":36 - * elif analysistype == kMulticlass: - * n_classes = _method.DataInfo().GetNClasses() - * if n_classes < 2: # <<<<<<<<<<<<<< - * raise AssertionError("there must be at least two classes") - * return evaluate_multiclass(_method, events, n_classes) + /* "root_numpy/tmva/src/data.pyx":9 + * np.ndarray[np.int_t, ndim=1] labels, + * int signal_label, + * np.ndarray[np.double_t, ndim=1] weights=None, # <<<<<<<<<<<<<< + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) */ -#line 36 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = ((__pyx_v_n_classes < 2) != 0); - -#line 36 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_1) { - - /* "root_numpy/tmva/src/evaluate.pyx":37 - * n_classes = _method.DataInfo().GetNClasses() - * if n_classes < 2: - * raise AssertionError("there must be at least two classes") # <<<<<<<<<<<<<< - * return evaluate_multiclass(_method, events, n_classes) - * elif analysistype == kRegression: - */ +#line 9 "root_numpy/tmva/src/data.pyx" + values[4] = (PyObject *)((PyArrayObject *)Py_None); -#line 37 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + if (unlikely(__pyx_kwds)) { -#line 37 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 9 "root_numpy/tmva/src/data.pyx" + Py_ssize_t kw_args; -#line 37 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); +#line 9 "root_numpy/tmva/src/data.pyx" + const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); -#line 37 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 9 "root_numpy/tmva/src/data.pyx" + switch (pos_args) { + case 6: +#line 9 "root_numpy/tmva/src/data.pyx" +values[5] = PyTuple_GET_ITEM(__pyx_args, 5); + case 5: +#line 9 "root_numpy/tmva/src/data.pyx" +values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + case 4: +#line 9 "root_numpy/tmva/src/data.pyx" +values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + case 3: +#line 9 "root_numpy/tmva/src/data.pyx" +values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + case 2: +#line 9 "root_numpy/tmva/src/data.pyx" +values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + case 1: +#line 9 "root_numpy/tmva/src/data.pyx" +values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 37 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 37, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + case 0: break; + default: +#line 9 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; - /* "root_numpy/tmva/src/evaluate.pyx":36 - * elif analysistype == kMulticlass: - * n_classes = _method.DataInfo().GetNClasses() - * if n_classes < 2: # <<<<<<<<<<<<<< - * raise AssertionError("there must be at least two classes") - * return evaluate_multiclass(_method, events, n_classes) - */ +#line 9 "root_numpy/tmva/src/data.pyx" + } -#line 36 "root_numpy/tmva/src/evaluate.pyx" - } +#line 9 "root_numpy/tmva/src/data.pyx" + kw_args = PyDict_Size(__pyx_kwds); - /* "root_numpy/tmva/src/evaluate.pyx":38 - * if n_classes < 2: - * raise AssertionError("there must be at least two classes") - * return evaluate_multiclass(_method, events, n_classes) # <<<<<<<<<<<<<< - * elif analysistype == kRegression: - * n_targets = _method.DataInfo().GetNTargets() - */ +#line 9 "root_numpy/tmva/src/data.pyx" + switch (pos_args) { -#line 38 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); +#line 9 "root_numpy/tmva/src/data.pyx" + case 0: -#line 38 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_multiclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_classes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; + else +#line 9 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 38 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 9 "root_numpy/tmva/src/data.pyx" + case 1: -#line 38 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_2; +#line 9 "root_numpy/tmva/src/data.pyx" + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; -#line 38 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; +#line 9 "root_numpy/tmva/src/data.pyx" + else { + __Pyx_RaiseArgtupleInvalid("add_events_twoclass", 0, 4, 6, 1); +#line 9 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 4, __pyx_L3_error) -#line 38 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; +#line 9 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":34 - * if analysistype == kClassification: - * return evaluate_twoclass(_method, events, aux) - * elif analysistype == kMulticlass: # <<<<<<<<<<<<<< - * n_classes = _method.DataInfo().GetNClasses() - * if n_classes < 2: - */ +#line 9 "root_numpy/tmva/src/data.pyx" + case 2: -#line 34 "root_numpy/tmva/src/evaluate.pyx" - break; +#line 9 "root_numpy/tmva/src/data.pyx" + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; - /* "root_numpy/tmva/src/evaluate.pyx":39 - * raise AssertionError("there must be at least two classes") - * return evaluate_multiclass(_method, events, n_classes) - * elif analysistype == kRegression: # <<<<<<<<<<<<<< - * n_targets = _method.DataInfo().GetNTargets() - * if n_targets < 1: - */ +#line 9 "root_numpy/tmva/src/data.pyx" + else { + __Pyx_RaiseArgtupleInvalid("add_events_twoclass", 0, 4, 6, 2); +#line 9 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 4, __pyx_L3_error) -#line 39 "root_numpy/tmva/src/evaluate.pyx" - case TMVA::Types::kRegression: +#line 9 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":40 - * return evaluate_multiclass(_method, events, n_classes) - * elif analysistype == kRegression: - * n_targets = _method.DataInfo().GetNTargets() # <<<<<<<<<<<<<< - * if n_targets < 1: - * raise AssertionError("there must be at least one regression target") - */ +#line 9 "root_numpy/tmva/src/data.pyx" + case 3: -#line 40 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_n_targets = __pyx_v__method->DataInfo().GetNTargets(); +#line 9 "root_numpy/tmva/src/data.pyx" + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_signal_label)) != 0)) kw_args--; - /* "root_numpy/tmva/src/evaluate.pyx":41 - * elif analysistype == kRegression: - * n_targets = _method.DataInfo().GetNTargets() - * if n_targets < 1: # <<<<<<<<<<<<<< - * raise AssertionError("there must be at least one regression target") - * output = evaluate_regression(_method, events, n_targets) - */ +#line 9 "root_numpy/tmva/src/data.pyx" + else { + __Pyx_RaiseArgtupleInvalid("add_events_twoclass", 0, 4, 6, 3); +#line 9 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 4, __pyx_L3_error) -#line 41 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = ((__pyx_v_n_targets < 1) != 0); +#line 9 "root_numpy/tmva/src/data.pyx" + } -#line 41 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_1) { +#line 9 "root_numpy/tmva/src/data.pyx" + case 4: - /* "root_numpy/tmva/src/evaluate.pyx":42 - * n_targets = _method.DataInfo().GetNTargets() - * if n_targets < 1: - * raise AssertionError("there must be at least one regression target") # <<<<<<<<<<<<<< - * output = evaluate_regression(_method, events, n_targets) - * if n_targets == 1: - */ +#line 9 "root_numpy/tmva/src/data.pyx" + if (kw_args > 0) { -#line 42 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); -#line 42 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 9 "root_numpy/tmva/src/data.pyx" + if (value) { values[4] = value; kw_args--; } -#line 42 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); +#line 9 "root_numpy/tmva/src/data.pyx" + } -#line 42 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 9 "root_numpy/tmva/src/data.pyx" + case 5: -#line 42 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 42, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + if (kw_args > 0) { - /* "root_numpy/tmva/src/evaluate.pyx":41 - * elif analysistype == kRegression: - * n_targets = _method.DataInfo().GetNTargets() - * if n_targets < 1: # <<<<<<<<<<<<<< - * raise AssertionError("there must be at least one regression target") - * output = evaluate_regression(_method, events, n_targets) - */ +#line 9 "root_numpy/tmva/src/data.pyx" + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); -#line 41 "root_numpy/tmva/src/evaluate.pyx" - } +#line 9 "root_numpy/tmva/src/data.pyx" + if (value) { values[5] = value; kw_args--; } - /* "root_numpy/tmva/src/evaluate.pyx":43 - * if n_targets < 1: - * raise AssertionError("there must be at least one regression target") - * output = evaluate_regression(_method, events, n_targets) # <<<<<<<<<<<<<< - * if n_targets == 1: - * return np.ravel(output) - */ +#line 9 "root_numpy/tmva/src/data.pyx" + } -#line 43 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_regression(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_targets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + } -#line 43 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 9 "root_numpy/tmva/src/data.pyx" + if (unlikely(kw_args > 0)) { -#line 43 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = __pyx_t_2; +#line 9 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_events_twoclass") < 0)) __PYX_ERR(1, 4, __pyx_L3_error) -#line 43 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; +#line 9 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":44 - * raise AssertionError("there must be at least one regression target") - * output = evaluate_regression(_method, events, n_targets) - * if n_targets == 1: # <<<<<<<<<<<<<< - * return np.ravel(output) - * return output - */ +#line 9 "root_numpy/tmva/src/data.pyx" + } else { -#line 44 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = ((__pyx_v_n_targets == 1) != 0); +#line 9 "root_numpy/tmva/src/data.pyx" + switch (PyTuple_GET_SIZE(__pyx_args)) { + case 6: +#line 9 "root_numpy/tmva/src/data.pyx" +values[5] = PyTuple_GET_ITEM(__pyx_args, 5); + case 5: +#line 9 "root_numpy/tmva/src/data.pyx" +values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + case 4: +#line 9 "root_numpy/tmva/src/data.pyx" +values[3] = PyTuple_GET_ITEM(__pyx_args, 3); -#line 44 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_1) { +#line 9 "root_numpy/tmva/src/data.pyx" + values[2] = PyTuple_GET_ITEM(__pyx_args, 2); - /* "root_numpy/tmva/src/evaluate.pyx":45 - * output = evaluate_regression(_method, events, n_targets) - * if n_targets == 1: - * return np.ravel(output) # <<<<<<<<<<<<<< - * return output - * raise AssertionError("the analysis type of this method is not supported") - */ +#line 9 "root_numpy/tmva/src/data.pyx" + values[1] = PyTuple_GET_ITEM(__pyx_args, 1); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); +#line 9 "root_numpy/tmva/src/data.pyx" + values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + break; + default: +#line 9 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 9 "root_numpy/tmva/src/data.pyx" + } -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ravel); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 45, __pyx_L1_error) +#line 9 "root_numpy/tmva/src/data.pyx" + } -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_8); +#line 9 "root_numpy/tmva/src/data.pyx" + __pyx_v_obj = values[0]; -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 9 "root_numpy/tmva/src/data.pyx" + __pyx_v_events = ((PyArrayObject *)values[1]); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = NULL; +#line 9 "root_numpy/tmva/src/data.pyx" + __pyx_v_labels = ((PyArrayObject *)values[2]); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_8))) { +#line 9 "root_numpy/tmva/src/data.pyx" + __pyx_v_signal_label = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_signal_label == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 8, __pyx_L3_error) -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8); +#line 9 "root_numpy/tmva/src/data.pyx" + __pyx_v_weights = ((PyArrayObject *)values[4]); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - if (likely(__pyx_t_3)) { +#line 9 "root_numpy/tmva/src/data.pyx" + if (values[5]) { -#line 45 "root_numpy/tmva/src/evaluate.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); +#line 9 "root_numpy/tmva/src/data.pyx" + __pyx_v_test = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_test == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(1, 10, __pyx_L3_error) -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(__pyx_t_3); +#line 9 "root_numpy/tmva/src/data.pyx" + } else { -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(function); + /* "root_numpy/tmva/src/data.pyx":10 + * int signal_label, + * np.ndarray[np.double_t, ndim=1] weights=None, + * bool test=False): # <<<<<<<<<<<<<< + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + * cdef long size = events.shape[0] + */ -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF_SET(__pyx_t_8, function); +#line 10 "root_numpy/tmva/src/data.pyx" + __pyx_v_test = ((bool)0); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - } +#line 10 "root_numpy/tmva/src/data.pyx" + } -#line 45 "root_numpy/tmva/src/evaluate.pyx" - } +#line 10 "root_numpy/tmva/src/data.pyx" + } -#line 45 "root_numpy/tmva/src/evaluate.pyx" - if (!__pyx_t_3) { +#line 10 "root_numpy/tmva/src/data.pyx" + goto __pyx_L4_argument_unpacking_done; -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_output); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) +#line 10 "root_numpy/tmva/src/data.pyx" + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("add_events_twoclass", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); +#line 10 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 4, __pyx_L3_error) -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 10 "root_numpy/tmva/src/data.pyx" + __pyx_L3_error:; -#line 45 "root_numpy/tmva/src/evaluate.pyx" - } else { +#line 10 "root_numpy/tmva/src/data.pyx" + __Pyx_AddTraceback("_libtmvanumpy.add_events_twoclass", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 45, __pyx_L1_error) +#line 10 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 10 "root_numpy/tmva/src/data.pyx" + return NULL; -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; +#line 10 "root_numpy/tmva/src/data.pyx" + __pyx_L4_argument_unpacking_done:; -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(__pyx_v_output); - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_v_output); - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_output); - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - } - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_2; - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; - -#line 45 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; - - /* "root_numpy/tmva/src/evaluate.pyx":44 - * raise AssertionError("there must be at least one regression target") - * output = evaluate_regression(_method, events, n_targets) - * if n_targets == 1: # <<<<<<<<<<<<<< - * return np.ravel(output) - * return output - */ - -#line 44 "root_numpy/tmva/src/evaluate.pyx" - } - - /* "root_numpy/tmva/src/evaluate.pyx":46 - * if n_targets == 1: - * return np.ravel(output) - * return output # <<<<<<<<<<<<<< - * raise AssertionError("the analysis type of this method is not supported") - * - */ - -#line 46 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); - -#line 46 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(__pyx_v_output); - -#line 46 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_v_output; - -#line 46 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; - - /* "root_numpy/tmva/src/evaluate.pyx":39 - * raise AssertionError("there must be at least two classes") - * return evaluate_multiclass(_method, events, n_classes) - * elif analysistype == kRegression: # <<<<<<<<<<<<<< - * n_targets = _method.DataInfo().GetNTargets() - * if n_targets < 1: - */ - -#line 39 "root_numpy/tmva/src/evaluate.pyx" - break; - -#line 39 "root_numpy/tmva/src/evaluate.pyx" - default: break; - -#line 39 "root_numpy/tmva/src/evaluate.pyx" - } - - /* "root_numpy/tmva/src/evaluate.pyx":47 - * return np.ravel(output) - * return output - * raise AssertionError("the analysis type of this method is not supported") # <<<<<<<<<<<<<< - * - * - */ - -#line 47 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) - -#line 47 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 47 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); +#line 10 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(1, 6, __pyx_L1_error) -#line 47 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 10 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_labels), __pyx_ptype_5numpy_ndarray, 1, "labels", 0))) __PYX_ERR(1, 7, __pyx_L1_error) -#line 47 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 47, __pyx_L1_error) +#line 10 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1, "weights", 0))) __PYX_ERR(1, 9, __pyx_L1_error) + __pyx_r = +#line 10 "root_numpy/tmva/src/data.pyx" +__pyx_pf_13_libtmvanumpy_4add_events_twoclass(__pyx_self, __pyx_v_obj, __pyx_v_events, __pyx_v_labels, __pyx_v_signal_label, __pyx_v_weights, __pyx_v_test); - /* "root_numpy/tmva/src/evaluate.pyx":22 + /* "root_numpy/tmva/src/data.pyx":4 * @cython.boundscheck(False) * @cython.wraparound(False) - * cdef evaluate_method_dispatch(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef long n_features = events.shape[1] - * cdef unsigned int n_classes, n_targets + * def add_events_twoclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" /* function exit code */ -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_2); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_3); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_4); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_5); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_6); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_8); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_declare - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_assign - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_method_dispatch", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 4 "root_numpy/tmva/src/data.pyx" + goto __pyx_L0; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = 0; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_L1_error:; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L2; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_r = NULL; -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __pyx_L0:; -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L2:; - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_v_output); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XGIVEREF(__pyx_r); - -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyFinishContext(); -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" return __pyx_r; -#line 22 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" } -/* "root_numpy/tmva/src/evaluate.pyx":52 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * cdef evaluate_twoclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef MethodCuts* mc - * cdef long size = events.shape[0] - */ - -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" -#line 52 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_f_13_libtmvanumpy_evaluate_twoclass(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, double __pyx_v_aux) { - TMVA::MethodCuts *__pyx_v_mc -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pf_13_libtmvanumpy_4add_events_twoclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, int __pyx_v_signal_label, PyArrayObject *__pyx_v_weights, bool __pyx_v_test) { + TMVA_Object *__pyx_v__obj +#line 4 "root_numpy/tmva/src/data.pyx" ; long __pyx_v_size -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" ; long __pyx_v_n_features -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" ; long __pyx_v_i -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" ; long __pyx_v_j -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" ; - std::vector __pyx_v_features -#line 52 "root_numpy/tmva/src/evaluate.pyx" + double __pyx_v_weight +#line 4 "root_numpy/tmva/src/data.pyx" ; - TMVA::Event *__pyx_v_event -#line 52 "root_numpy/tmva/src/evaluate.pyx" + int __pyx_v_label +#line 4 "root_numpy/tmva/src/data.pyx" ; - PyArrayObject *__pyx_v_output = 0 -#line 52 "root_numpy/tmva/src/evaluate.pyx" + std::vector *__pyx_v_event +#line 4 "root_numpy/tmva/src/data.pyx" +; + TMVA::Types::ETreeType __pyx_v_treetype +#line 4 "root_numpy/tmva/src/data.pyx" ; __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" ; __Pyx_Buffer __pyx_pybuffer_events -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" ; - __Pyx_LocalBuf_ND __pyx_pybuffernd_output -#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_LocalBuf_ND __pyx_pybuffernd_labels +#line 4 "root_numpy/tmva/src/data.pyx" ; - __Pyx_Buffer __pyx_pybuffer_output -#line 52 "root_numpy/tmva/src/evaluate.pyx" + __Pyx_Buffer __pyx_pybuffer_labels +#line 4 "root_numpy/tmva/src/data.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_weights +#line 4 "root_numpy/tmva/src/data.pyx" +; + __Pyx_Buffer __pyx_pybuffer_weights +#line 4 "root_numpy/tmva/src/data.pyx" ; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" PyObject *__pyx_r = NULL; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyDeclarations -#line 52 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_1 = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + void *__pyx_t_1; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_2 = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + std::vector *__pyx_t_2; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_3 = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + int __pyx_t_3; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_4 = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + long __pyx_t_4; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_5 = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_5; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - PyArrayObject *__pyx_t_6 = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + int __pyx_t_6; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - int __pyx_t_7; +#line 4 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_7; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - TMVA::MethodCuts *__pyx_t_8; +#line 4 "root_numpy/tmva/src/data.pyx" + long __pyx_t_8; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - long __pyx_t_9; +#line 4 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_9; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - long __pyx_t_10; +#line 4 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_10; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_11; +#line 4 "root_numpy/tmva/src/data.pyx" + std::string __pyx_t_11; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_12; +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannySetupContext("add_events_twoclass", 0); -#line 52 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_13; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_twoclass", 0); +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_events.refcount = 0; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_output.pybuffer.buf = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.data = NULL; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_output.refcount = 0; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_output.data = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_labels.pybuffer.buf = NULL; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_output.rcbuffer = &__pyx_pybuffer_output; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_labels.refcount = 0; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.pybuffer.buf = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_labels.data = NULL; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.refcount = 0; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_labels.rcbuffer = &__pyx_pybuffer_labels; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.data = NULL; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_weights.pybuffer.buf = NULL; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_weights.refcount = 0; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.data = NULL; + +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.rcbuffer = &__pyx_pybuffer_weights; + +#line 4 "root_numpy/tmva/src/data.pyx" { -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 52, __pyx_L1_error) +#line 4 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 4, __pyx_L1_error) -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" } -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; - /* "root_numpy/tmva/src/evaluate.pyx":54 - * cdef evaluate_twoclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): - * cdef MethodCuts* mc +#line 4 "root_numpy/tmva/src/data.pyx" + { + +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; + +#line 4 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_labels.rcbuffer->pybuffer, (PyObject*)__pyx_v_labels, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 4, __pyx_L1_error) + +#line 4 "root_numpy/tmva/src/data.pyx" + } + +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_labels.diminfo[0].strides = __pyx_pybuffernd_labels.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_labels.diminfo[0].shape = __pyx_pybuffernd_labels.rcbuffer->pybuffer.shape[0]; + +#line 4 "root_numpy/tmva/src/data.pyx" + { + +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; + +#line 4 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_weights.rcbuffer->pybuffer, (PyObject*)__pyx_v_weights, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 4, __pyx_L1_error) + +#line 4 "root_numpy/tmva/src/data.pyx" + } + +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.diminfo[0].strides = __pyx_pybuffernd_weights.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_weights.diminfo[0].shape = __pyx_pybuffernd_weights.rcbuffer->pybuffer.shape[0]; + + /* "root_numpy/tmva/src/data.pyx":11 + * np.ndarray[np.double_t, ndim=1] weights=None, + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) # <<<<<<<<<<<<<< + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] + */ + +#line 11 "root_numpy/tmva/src/data.pyx" + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 11, __pyx_L1_error) + +#line 11 "root_numpy/tmva/src/data.pyx" + __pyx_v__obj = ((TMVA_Object *)__pyx_t_1); + + /* "root_numpy/tmva/src/data.pyx":12 + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) * cdef long size = events.shape[0] # <<<<<<<<<<<<<< * cdef long n_features = events.shape[1] * cdef long i, j */ -#line 54 "root_numpy/tmva/src/evaluate.pyx" +#line 12 "root_numpy/tmva/src/data.pyx" __pyx_v_size = (__pyx_v_events->dimensions[0]); - /* "root_numpy/tmva/src/evaluate.pyx":55 - * cdef MethodCuts* mc + /* "root_numpy/tmva/src/data.pyx":13 + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) * cdef long size = events.shape[0] * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< * cdef long i, j - * cdef vector[float] features + * cdef double weight = 1. */ -#line 55 "root_numpy/tmva/src/evaluate.pyx" +#line 13 "root_numpy/tmva/src/data.pyx" __pyx_v_n_features = (__pyx_v_events->dimensions[1]); - /* "root_numpy/tmva/src/evaluate.pyx":58 + /* "root_numpy/tmva/src/data.pyx":15 + * cdef long n_features = events.shape[1] * cdef long i, j - * cdef vector[float] features - * cdef Event* event = new Event(features, 0) # <<<<<<<<<<<<<< - * _method.fTmpEvent = event - * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) + * cdef double weight = 1. # <<<<<<<<<<<<<< + * cdef int label + * cdef vector[double]* event = new vector[double](n_features) */ -#line 58 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_event = new TMVA::Event(__pyx_v_features, 0); +#line 15 "root_numpy/tmva/src/data.pyx" + __pyx_v_weight = 1.; - /* "root_numpy/tmva/src/evaluate.pyx":59 - * cdef vector[float] features - * cdef Event* event = new Event(features, 0) - * _method.fTmpEvent = event # <<<<<<<<<<<<<< - * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) - * if _method.GetMethodType() == kCuts: + /* "root_numpy/tmva/src/data.pyx":17 + * cdef double weight = 1. + * cdef int label + * cdef vector[double]* event = new vector[double](n_features) # <<<<<<<<<<<<<< + * cdef ETreeType treetype = kTraining + * if test: */ -#line 59 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__method->fTmpEvent = __pyx_v_event; +#line 17 "root_numpy/tmva/src/data.pyx" + try { - /* "root_numpy/tmva/src/evaluate.pyx":60 - * cdef Event* event = new Event(features, 0) - * _method.fTmpEvent = event - * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) # <<<<<<<<<<<<<< - * if _method.GetMethodType() == kCuts: - * mc = dynamic_cast["MethodCuts*"](_method) - */ +#line 17 "root_numpy/tmva/src/data.pyx" + __pyx_t_2 = new std::vector (__pyx_v_n_features); -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) +#line 17 "root_numpy/tmva/src/data.pyx" + } catch(...) { -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 17 "root_numpy/tmva/src/data.pyx" + __Pyx_CppExn2PyErr(); -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) +#line 17 "root_numpy/tmva/src/data.pyx" + __PYX_ERR(1, 17, __pyx_L1_error) -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 17 "root_numpy/tmva/src/data.pyx" + } -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 17 "root_numpy/tmva/src/data.pyx" + __pyx_v_event = __pyx_t_2; -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) + /* "root_numpy/tmva/src/data.pyx":18 + * cdef int label + * cdef vector[double]* event = new vector[double](n_features) + * cdef ETreeType treetype = kTraining # <<<<<<<<<<<<<< + * if test: + * treetype = kTesting + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 18 "root_numpy/tmva/src/data.pyx" + __pyx_v_treetype = TMVA::Types::kTraining; -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) + /* "root_numpy/tmva/src/data.pyx":19 + * cdef vector[double]* event = new vector[double](n_features) + * cdef ETreeType treetype = kTraining + * if test: # <<<<<<<<<<<<<< + * treetype = kTesting + * for i from 0 <= i < size: + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 19 "root_numpy/tmva/src/data.pyx" + __pyx_t_3 = (__pyx_v_test != 0); -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_1); +#line 19 "root_numpy/tmva/src/data.pyx" + if (__pyx_t_3) { -#line 60 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); + /* "root_numpy/tmva/src/data.pyx":20 + * cdef ETreeType treetype = kTraining + * if test: + * treetype = kTesting # <<<<<<<<<<<<<< + * for i from 0 <= i < size: + * label = labels[i] + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = 0; +#line 20 "root_numpy/tmva/src/data.pyx" + __pyx_v_treetype = TMVA::Types::kTesting; -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) + /* "root_numpy/tmva/src/data.pyx":19 + * cdef vector[double]* event = new vector[double](n_features) + * cdef ETreeType treetype = kTraining + * if test: # <<<<<<<<<<<<<< + * treetype = kTesting + * for i from 0 <= i < size: + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 19 "root_numpy/tmva/src/data.pyx" + } -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 60, __pyx_L1_error) + /* "root_numpy/tmva/src/data.pyx":21 + * if test: + * treetype = kTesting + * for i from 0 <= i < size: # <<<<<<<<<<<<<< + * label = labels[i] + * if weights is not None: + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 21 "root_numpy/tmva/src/data.pyx" + __pyx_t_4 = __pyx_v_size; -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_double); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 60, __pyx_L1_error) +#line 21 "root_numpy/tmva/src/data.pyx" + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_4; __pyx_v_i++) { -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); + /* "root_numpy/tmva/src/data.pyx":22 + * treetype = kTesting + * for i from 0 <= i < size: + * label = labels[i] # <<<<<<<<<<<<<< + * if weights is not None: + * weight = weights[i] + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 22 "root_numpy/tmva/src/data.pyx" + __pyx_t_5 = __pyx_v_i; -#line 60 "root_numpy/tmva/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 60, __pyx_L1_error) +#line 22 "root_numpy/tmva/src/data.pyx" + __pyx_v_label = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int_t *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf, __pyx_t_5, __pyx_pybuffernd_labels.diminfo[0].strides)); -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + /* "root_numpy/tmva/src/data.pyx":23 + * for i from 0 <= i < size: + * label = labels[i] + * if weights is not None: # <<<<<<<<<<<<<< + * weight = weights[i] + * for j from 0 <= j < n_features: + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 60, __pyx_L1_error) +#line 23 "root_numpy/tmva/src/data.pyx" + __pyx_t_3 = (((PyObject *)__pyx_v_weights) != Py_None); -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 23 "root_numpy/tmva/src/data.pyx" + __pyx_t_6 = (__pyx_t_3 != 0); -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 23 "root_numpy/tmva/src/data.pyx" + if (__pyx_t_6) { -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "root_numpy/tmva/src/data.pyx":24 + * label = labels[i] + * if weights is not None: + * weight = weights[i] # <<<<<<<<<<<<<< + * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 24 "root_numpy/tmva/src/data.pyx" + __pyx_t_7 = __pyx_v_i; -#line 60 "root_numpy/tmva/src/evaluate.pyx" - if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 60, __pyx_L1_error) +#line 24 "root_numpy/tmva/src/data.pyx" + __pyx_v_weight = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_weights.rcbuffer->pybuffer.buf, __pyx_t_7, __pyx_pybuffernd_weights.diminfo[0].strides)); -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = ((PyArrayObject *)__pyx_t_5); + /* "root_numpy/tmva/src/data.pyx":23 + * for i from 0 <= i < size: + * label = labels[i] + * if weights is not None: # <<<<<<<<<<<<<< + * weight = weights[i] + * for j from 0 <= j < n_features: + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - { +#line 23 "root_numpy/tmva/src/data.pyx" + } -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; + /* "root_numpy/tmva/src/data.pyx":25 + * if weights is not None: + * weight = weights[i] + * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< + * event[0][j] = events[i, j] + * if label == signal_label: + */ -#line 60 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_output.rcbuffer->pybuffer, (PyObject*)__pyx_t_6, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) { +#line 25 "root_numpy/tmva/src/data.pyx" + __pyx_t_8 = __pyx_v_n_features; -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_output.rcbuffer->pybuffer.buf = NULL; +#line 25 "root_numpy/tmva/src/data.pyx" + for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 60, __pyx_L1_error) - } else { -#line 60 "root_numpy/tmva/src/evaluate.pyx" -__pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_output.diminfo[0].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[0]; - -#line 60 "root_numpy/tmva/src/evaluate.pyx" - } - -#line 60 "root_numpy/tmva/src/evaluate.pyx" - } - -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = 0; - -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = ((PyArrayObject *)__pyx_t_5); - -#line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = 0; - - /* "root_numpy/tmva/src/evaluate.pyx":61 - * _method.fTmpEvent = event - * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) - * if _method.GetMethodType() == kCuts: # <<<<<<<<<<<<<< - * mc = dynamic_cast["MethodCuts*"](_method) - * if mc != NULL: - */ - -#line 61 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_7 = ((__pyx_v__method->GetMethodType() == TMVA::Types::kCuts) != 0); - -#line 61 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_7) { - - /* "root_numpy/tmva/src/evaluate.pyx":62 - * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) - * if _method.GetMethodType() == kCuts: - * mc = dynamic_cast["MethodCuts*"](_method) # <<<<<<<<<<<<<< - * if mc != NULL: - * mc.SetTestSignalEfficiency(aux) - */ - -#line 62 "root_numpy/tmva/src/evaluate.pyx" - try { - -#line 62 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_8 = dynamic_cast(__pyx_v__method); - -#line 62 "root_numpy/tmva/src/evaluate.pyx" - } catch(...) { - -#line 62 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_CppExn2PyErr(); - -#line 62 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 62, __pyx_L1_error) - -#line 62 "root_numpy/tmva/src/evaluate.pyx" - } - -#line 62 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_mc = __pyx_t_8; - - /* "root_numpy/tmva/src/evaluate.pyx":63 - * if _method.GetMethodType() == kCuts: - * mc = dynamic_cast["MethodCuts*"](_method) - * if mc != NULL: # <<<<<<<<<<<<<< - * mc.SetTestSignalEfficiency(aux) - * for i from 0 <= i < size: - */ - -#line 63 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_7 = ((__pyx_v_mc != NULL) != 0); - -#line 63 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_7) { - - /* "root_numpy/tmva/src/evaluate.pyx":64 - * mc = dynamic_cast["MethodCuts*"](_method) - * if mc != NULL: - * mc.SetTestSignalEfficiency(aux) # <<<<<<<<<<<<<< - * for i from 0 <= i < size: + /* "root_numpy/tmva/src/data.pyx":26 + * weight = weights[i] * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] # <<<<<<<<<<<<<< + * if label == signal_label: + * _obj.AddEvent("Signal", treetype, event[0], weight) */ -#line 64 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_mc->SetTestSignalEfficiency(__pyx_v_aux); - - /* "root_numpy/tmva/src/evaluate.pyx":63 - * if _method.GetMethodType() == kCuts: - * mc = dynamic_cast["MethodCuts*"](_method) - * if mc != NULL: # <<<<<<<<<<<<<< - * mc.SetTestSignalEfficiency(aux) - * for i from 0 <= i < size: - */ +#line 26 "root_numpy/tmva/src/data.pyx" + __pyx_t_9 = __pyx_v_i; -#line 63 "root_numpy/tmva/src/evaluate.pyx" - } +#line 26 "root_numpy/tmva/src/data.pyx" + __pyx_t_10 = __pyx_v_j; - /* "root_numpy/tmva/src/evaluate.pyx":61 - * _method.fTmpEvent = event - * cdef np.ndarray[np.double_t, ndim=1] output = np.empty(size, dtype=np.double) - * if _method.GetMethodType() == kCuts: # <<<<<<<<<<<<<< - * mc = dynamic_cast["MethodCuts*"](_method) - * if mc != NULL: - */ +#line 26 "root_numpy/tmva/src/data.pyx" + ((__pyx_v_event[0])[__pyx_v_j]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides)); -#line 61 "root_numpy/tmva/src/evaluate.pyx" - } +#line 26 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":65 - * if mc != NULL: - * mc.SetTestSignalEfficiency(aux) - * for i from 0 <= i < size: # <<<<<<<<<<<<<< + /* "root_numpy/tmva/src/data.pyx":27 * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) + * event[0][j] = events[i, j] + * if label == signal_label: # <<<<<<<<<<<<<< + * _obj.AddEvent("Signal", treetype, event[0], weight) + * else: */ -#line 65 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_9 = __pyx_v_size; +#line 27 "root_numpy/tmva/src/data.pyx" + __pyx_t_6 = ((__pyx_v_label == __pyx_v_signal_label) != 0); -#line 65 "root_numpy/tmva/src/evaluate.pyx" - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_9; __pyx_v_i++) { +#line 27 "root_numpy/tmva/src/data.pyx" + if (__pyx_t_6) { - /* "root_numpy/tmva/src/evaluate.pyx":66 - * mc.SetTestSignalEfficiency(aux) - * for i from 0 <= i < size: - * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< - * event.SetVal(j, events[i, j]) - * output[i] = _method.GetMvaValue() + /* "root_numpy/tmva/src/data.pyx":28 + * event[0][j] = events[i, j] + * if label == signal_label: + * _obj.AddEvent("Signal", treetype, event[0], weight) # <<<<<<<<<<<<<< + * else: + * _obj.AddEvent("Background", treetype, event[0], weight) */ -#line 66 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_10 = __pyx_v_n_features; +#line 28 "root_numpy/tmva/src/data.pyx" + __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Signal); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 28, __pyx_L1_error) -#line 66 "root_numpy/tmva/src/evaluate.pyx" - for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_10; __pyx_v_j++) { +#line 28 "root_numpy/tmva/src/data.pyx" + __pyx_v__obj->AddEvent(__pyx_t_11, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); - /* "root_numpy/tmva/src/evaluate.pyx":67 - * for i from 0 <= i < size: + /* "root_numpy/tmva/src/data.pyx":27 * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) # <<<<<<<<<<<<<< - * output[i] = _method.GetMvaValue() - * _method.fTmpEvent = NULL + * event[0][j] = events[i, j] + * if label == signal_label: # <<<<<<<<<<<<<< + * _obj.AddEvent("Signal", treetype, event[0], weight) + * else: */ -#line 67 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_11 = __pyx_v_i; - -#line 67 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_12 = __pyx_v_j; - -#line 67 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_event->SetVal(__pyx_v_j, (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_events.diminfo[1].strides))); +#line 27 "root_numpy/tmva/src/data.pyx" + goto __pyx_L9; -#line 67 "root_numpy/tmva/src/evaluate.pyx" +#line 27 "root_numpy/tmva/src/data.pyx" } - /* "root_numpy/tmva/src/evaluate.pyx":68 - * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) - * output[i] = _method.GetMvaValue() # <<<<<<<<<<<<<< - * _method.fTmpEvent = NULL + /* "root_numpy/tmva/src/data.pyx":30 + * _obj.AddEvent("Signal", treetype, event[0], weight) + * else: + * _obj.AddEvent("Background", treetype, event[0], weight) # <<<<<<<<<<<<<< * del event + * */ -#line 68 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_13 = __pyx_v_i; - -#line 68 "root_numpy/tmva/src/evaluate.pyx" - *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_output.diminfo[0].strides) = __pyx_v__method->GetMvaValue(); +#line 30 "root_numpy/tmva/src/data.pyx" + /*else*/ { -#line 68 "root_numpy/tmva/src/evaluate.pyx" - } +#line 30 "root_numpy/tmva/src/data.pyx" + __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Background); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 30, __pyx_L1_error) - /* "root_numpy/tmva/src/evaluate.pyx":69 - * event.SetVal(j, events[i, j]) - * output[i] = _method.GetMvaValue() - * _method.fTmpEvent = NULL # <<<<<<<<<<<<<< - * del event - * return output - */ +#line 30 "root_numpy/tmva/src/data.pyx" + __pyx_v__obj->AddEvent(__pyx_t_11, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); -#line 69 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__method->fTmpEvent = NULL; +#line 30 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":70 - * output[i] = _method.GetMvaValue() - * _method.fTmpEvent = NULL - * del event # <<<<<<<<<<<<<< - * return output - * - */ +#line 30 "root_numpy/tmva/src/data.pyx" + __pyx_L9:; -#line 70 "root_numpy/tmva/src/evaluate.pyx" - delete __pyx_v_event; +#line 30 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":71 - * _method.fTmpEvent = NULL - * del event - * return output # <<<<<<<<<<<<<< + /* "root_numpy/tmva/src/data.pyx":31 + * else: + * _obj.AddEvent("Background", treetype, event[0], weight) + * del event # <<<<<<<<<<<<<< * * */ -#line 71 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); - -#line 71 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(((PyObject *)__pyx_v_output)); - -#line 71 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = ((PyObject *)__pyx_v_output); - -#line 71 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; +#line 31 "root_numpy/tmva/src/data.pyx" + delete __pyx_v_event; - /* "root_numpy/tmva/src/evaluate.pyx":52 + /* "root_numpy/tmva/src/data.pyx":4 * @cython.boundscheck(False) * @cython.wraparound(False) - * cdef evaluate_twoclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef MethodCuts* mc - * cdef long size = events.shape[0] + * def add_events_twoclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" /* function exit code */ -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; - -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_1); - -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_2); - -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_3); +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_r = Py_None; __Pyx_INCREF(Py_None); -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_4); +#line 4 "root_numpy/tmva/src/data.pyx" + goto __pyx_L0; -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_5); +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_L1_error:; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_PyThreadState_declare -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_PyThreadState_assign -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); + +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_twoclass", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_AddTraceback("_libtmvanumpy.add_events_twoclass", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = 0; +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_r = NULL; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" goto __pyx_L2; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __pyx_L0:; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L2:; +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); -#line 52 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF((PyObject *)__pyx_v_output); +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_L2:; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_XGIVEREF(__pyx_r); -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyFinishContext(); -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" return __pyx_r; -#line 52 "root_numpy/tmva/src/evaluate.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" } -/* "root_numpy/tmva/src/evaluate.pyx":76 +/* "root_numpy/tmva/src/data.pyx":36 * @cython.boundscheck(False) * @cython.wraparound(False) - * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): # <<<<<<<<<<<<<< - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] + * def add_events_multiclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 76 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" -#line 76 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_f_13_libtmvanumpy_evaluate_multiclass(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, unsigned int __pyx_v_n_classes) { - long __pyx_v_size -#line 76 "root_numpy/tmva/src/evaluate.pyx" -; - long __pyx_v_n_features -#line 76 "root_numpy/tmva/src/evaluate.pyx" -; - long __pyx_v_i -#line 76 "root_numpy/tmva/src/evaluate.pyx" -; - long __pyx_v_j -#line 76 "root_numpy/tmva/src/evaluate.pyx" -; - std::vector __pyx_v_features -#line 76 "root_numpy/tmva/src/evaluate.pyx" -; - TMVA::Event *__pyx_v_event -#line 76 "root_numpy/tmva/src/evaluate.pyx" -; - PyArrayObject *__pyx_v_output = 0 -#line 76 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" +/* Python wrapper */ + +#line 36 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_7add_events_multiclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_13_libtmvanumpy_7add_events_multiclass = +#line 36 "root_numpy/tmva/src/data.pyx" +{"add_events_multiclass", (PyCFunction)__pyx_pw_13_libtmvanumpy_7add_events_multiclass, METH_VARARGS|METH_KEYWORDS, 0}; + +#line 36 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_7add_events_multiclass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_obj = 0 +#line 36 "root_numpy/tmva/src/data.pyx" ; - __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyArrayObject *__pyx_v_events = 0 +#line 36 "root_numpy/tmva/src/data.pyx" ; - __Pyx_Buffer __pyx_pybuffer_events -#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyArrayObject *__pyx_v_labels = 0 +#line 36 "root_numpy/tmva/src/data.pyx" ; - __Pyx_LocalBuf_ND __pyx_pybuffernd_output -#line 76 "root_numpy/tmva/src/evaluate.pyx" + PyArrayObject *__pyx_v_weights = 0 +#line 36 "root_numpy/tmva/src/data.pyx" ; - __Pyx_Buffer __pyx_pybuffer_output -#line 76 "root_numpy/tmva/src/evaluate.pyx" + bool __pyx_v_test +#line 36 "root_numpy/tmva/src/data.pyx" ; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_r = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_r = 0; -#line 76 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyDeclarations -#line 76 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_1 = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannySetupContext("add_events_multiclass (wrapper)", 0); -#line 76 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_2 = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" + { -#line 76 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_3 = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_obj,&__pyx_n_s_events,&__pyx_n_s_labels,&__pyx_n_s_weights,&__pyx_n_s_test,0}; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_4 = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject* values[5] = {0,0,0,0,0}; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_5 = NULL; + /* "root_numpy/tmva/src/data.pyx":40 + * np.ndarray[np.double_t, ndim=2] events, + * np.ndarray[np.int_t, ndim=1] labels, + * np.ndarray[np.double_t, ndim=1] weights=None, # <<<<<<<<<<<<<< + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + */ -#line 76 "root_numpy/tmva/src/evaluate.pyx" - PyArrayObject *__pyx_t_6 = NULL; +#line 40 "root_numpy/tmva/src/data.pyx" + values[3] = (PyObject *)((PyArrayObject *)Py_None); -#line 76 "root_numpy/tmva/src/evaluate.pyx" - long __pyx_t_7; +#line 40 "root_numpy/tmva/src/data.pyx" + if (unlikely(__pyx_kwds)) { -#line 76 "root_numpy/tmva/src/evaluate.pyx" - long __pyx_t_8; +#line 40 "root_numpy/tmva/src/data.pyx" + Py_ssize_t kw_args; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_9; +#line 40 "root_numpy/tmva/src/data.pyx" + const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); -#line 76 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_10; +#line 40 "root_numpy/tmva/src/data.pyx" + switch (pos_args) { + case 5: +#line 40 "root_numpy/tmva/src/data.pyx" +values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + case 4: +#line 40 "root_numpy/tmva/src/data.pyx" +values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + case 3: +#line 40 "root_numpy/tmva/src/data.pyx" +values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + case 2: +#line 40 "root_numpy/tmva/src/data.pyx" +values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + case 1: +#line 40 "root_numpy/tmva/src/data.pyx" +values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 76 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_11; +#line 40 "root_numpy/tmva/src/data.pyx" + case 0: break; + default: +#line 40 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_12; +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_multiclass", 0); +#line 40 "root_numpy/tmva/src/data.pyx" + kw_args = PyDict_Size(__pyx_kwds); -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_output.pybuffer.buf = NULL; +#line 40 "root_numpy/tmva/src/data.pyx" + switch (pos_args) { -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_output.refcount = 0; +#line 40 "root_numpy/tmva/src/data.pyx" + case 0: -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_output.data = NULL; +#line 40 "root_numpy/tmva/src/data.pyx" + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; + else +#line 40 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_output.rcbuffer = &__pyx_pybuffer_output; +#line 40 "root_numpy/tmva/src/data.pyx" + case 1: -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.pybuffer.buf = NULL; +#line 40 "root_numpy/tmva/src/data.pyx" + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.refcount = 0; +#line 40 "root_numpy/tmva/src/data.pyx" + else { + __Pyx_RaiseArgtupleInvalid("add_events_multiclass", 0, 3, 5, 1); +#line 40 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 36, __pyx_L3_error) -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.data = NULL; +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; +#line 40 "root_numpy/tmva/src/data.pyx" + case 2: -#line 76 "root_numpy/tmva/src/evaluate.pyx" - { +#line 40 "root_numpy/tmva/src/data.pyx" + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 40 "root_numpy/tmva/src/data.pyx" + else { + __Pyx_RaiseArgtupleInvalid("add_events_multiclass", 0, 3, 5, 2); +#line 40 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 36, __pyx_L3_error) -#line 76 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 76, __pyx_L1_error) +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 76 "root_numpy/tmva/src/evaluate.pyx" - } +#line 40 "root_numpy/tmva/src/data.pyx" + case 3: -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; +#line 40 "root_numpy/tmva/src/data.pyx" + if (kw_args > 0) { - /* "root_numpy/tmva/src/evaluate.pyx":77 - * @cython.wraparound(False) - * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): - * cdef long size = events.shape[0] # <<<<<<<<<<<<<< - * cdef long n_features = events.shape[1] - * cdef long i, j - */ +#line 40 "root_numpy/tmva/src/data.pyx" + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); -#line 77 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_size = (__pyx_v_events->dimensions[0]); +#line 40 "root_numpy/tmva/src/data.pyx" + if (value) { values[3] = value; kw_args--; } - /* "root_numpy/tmva/src/evaluate.pyx":78 - * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< - * cdef long i, j - * cdef vector[float] features - */ +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 78 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_n_features = (__pyx_v_events->dimensions[1]); +#line 40 "root_numpy/tmva/src/data.pyx" + case 4: - /* "root_numpy/tmva/src/evaluate.pyx":81 - * cdef long i, j - * cdef vector[float] features - * cdef Event* event = new Event(features, 0) # <<<<<<<<<<<<<< - * _method.fTmpEvent = event - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) - */ +#line 40 "root_numpy/tmva/src/data.pyx" + if (kw_args > 0) { -#line 81 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_event = new TMVA::Event(__pyx_v_features, 0); +#line 40 "root_numpy/tmva/src/data.pyx" + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); - /* "root_numpy/tmva/src/evaluate.pyx":82 - * cdef vector[float] features - * cdef Event* event = new Event(features, 0) - * _method.fTmpEvent = event # <<<<<<<<<<<<<< - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) - * for i from 0 <= i < size: - */ +#line 40 "root_numpy/tmva/src/data.pyx" + if (value) { values[4] = value; kw_args--; } -#line 82 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__method->fTmpEvent = __pyx_v_event; +#line 40 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":83 - * cdef Event* event = new Event(features, 0) - * _method.fTmpEvent = event - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) # <<<<<<<<<<<<<< - * for i from 0 <= i < size: - * for j from 0 <= j < n_features: - */ +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 40 "root_numpy/tmva/src/data.pyx" + if (unlikely(kw_args > 0)) { -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 40 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_events_multiclass") < 0)) __PYX_ERR(1, 36, __pyx_L3_error) -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 40 "root_numpy/tmva/src/data.pyx" + } else { -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 40 "root_numpy/tmva/src/data.pyx" + switch (PyTuple_GET_SIZE(__pyx_args)) { + case 5: +#line 40 "root_numpy/tmva/src/data.pyx" +values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + case 4: +#line 40 "root_numpy/tmva/src/data.pyx" +values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + case 3: +#line 40 "root_numpy/tmva/src/data.pyx" +values[2] = PyTuple_GET_ITEM(__pyx_args, 2); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 40 "root_numpy/tmva/src/data.pyx" + values[1] = PyTuple_GET_ITEM(__pyx_args, 1); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 40 "root_numpy/tmva/src/data.pyx" + values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_n_classes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 40 "root_numpy/tmva/src/data.pyx" + break; + default: +#line 40 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 40 "root_numpy/tmva/src/data.pyx" + } -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 40 "root_numpy/tmva/src/data.pyx" + __pyx_v_obj = values[0]; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_1); +#line 40 "root_numpy/tmva/src/data.pyx" + __pyx_v_events = ((PyArrayObject *)values[1]); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); +#line 40 "root_numpy/tmva/src/data.pyx" + __pyx_v_labels = ((PyArrayObject *)values[2]); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_3); +#line 40 "root_numpy/tmva/src/data.pyx" + __pyx_v_weights = ((PyArrayObject *)values[3]); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); +#line 40 "root_numpy/tmva/src/data.pyx" + if (values[4]) { -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = 0; +#line 40 "root_numpy/tmva/src/data.pyx" + __pyx_v_test = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_test == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(1, 41, __pyx_L3_error) -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = 0; +#line 40 "root_numpy/tmva/src/data.pyx" + } else { -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error) + /* "root_numpy/tmva/src/data.pyx":41 + * np.ndarray[np.int_t, ndim=1] labels, + * np.ndarray[np.double_t, ndim=1] weights=None, + * bool test=False): # <<<<<<<<<<<<<< + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + * cdef long size = events.shape[0] + */ -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 41 "root_numpy/tmva/src/data.pyx" + __pyx_v_test = ((bool)0); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_4); +#line 41 "root_numpy/tmva/src/data.pyx" + } -#line 83 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); +#line 41 "root_numpy/tmva/src/data.pyx" + } -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = 0; +#line 41 "root_numpy/tmva/src/data.pyx" + goto __pyx_L4_argument_unpacking_done; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 41 "root_numpy/tmva/src/data.pyx" + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("add_events_multiclass", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); +#line 41 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 36, __pyx_L3_error) -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 41 "root_numpy/tmva/src/data.pyx" + __pyx_L3_error:; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 41 "root_numpy/tmva/src/data.pyx" + __Pyx_AddTraceback("_libtmvanumpy.add_events_multiclass", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 41 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_float32); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error) +#line 41 "root_numpy/tmva/src/data.pyx" + return NULL; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 41 "root_numpy/tmva/src/data.pyx" + __pyx_L4_argument_unpacking_done:; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 41 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(1, 38, __pyx_L1_error) -#line 83 "root_numpy/tmva/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 83, __pyx_L1_error) +#line 41 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_labels), __pyx_ptype_5numpy_ndarray, 1, "labels", 0))) __PYX_ERR(1, 39, __pyx_L1_error) -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; +#line 41 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1, "weights", 0))) __PYX_ERR(1, 40, __pyx_L1_error) + __pyx_r = +#line 41 "root_numpy/tmva/src/data.pyx" +__pyx_pf_13_libtmvanumpy_6add_events_multiclass(__pyx_self, __pyx_v_obj, __pyx_v_events, __pyx_v_labels, __pyx_v_weights, __pyx_v_test); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error) + /* "root_numpy/tmva/src/data.pyx":36 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_multiclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, + */ -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 36 "root_numpy/tmva/src/data.pyx" -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + /* function exit code */ -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + goto __pyx_L0; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 83, __pyx_L1_error) +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_L1_error:; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = ((PyArrayObject *)__pyx_t_5); +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_r = NULL; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - { +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_L0:; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); -#line 83 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_output.rcbuffer->pybuffer, (PyObject*)__pyx_t_6, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) { +#line 36 "root_numpy/tmva/src/data.pyx" + return __pyx_r; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_output.rcbuffer->pybuffer.buf = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" +} -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 83, __pyx_L1_error) - } else { -#line 83 "root_numpy/tmva/src/evaluate.pyx" -__pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_output.diminfo[0].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_output.diminfo[1].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_output.diminfo[1].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[1]; +#line 36 "root_numpy/tmva/src/data.pyx" -#line 83 "root_numpy/tmva/src/evaluate.pyx" - } -#line 83 "root_numpy/tmva/src/evaluate.pyx" - } +#line 36 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pf_13_libtmvanumpy_6add_events_multiclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, PyArrayObject *__pyx_v_weights, bool __pyx_v_test) { + TMVA_Object *__pyx_v__obj +#line 36 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_size +#line 36 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_n_features +#line 36 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_i +#line 36 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_j +#line 36 "root_numpy/tmva/src/data.pyx" +; + double __pyx_v_weight +#line 36 "root_numpy/tmva/src/data.pyx" +; + int __pyx_v_label +#line 36 "root_numpy/tmva/src/data.pyx" +; + std::vector *__pyx_v_event +#line 36 "root_numpy/tmva/src/data.pyx" +; + TMVA::Types::ETreeType __pyx_v_treetype +#line 36 "root_numpy/tmva/src/data.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_events +#line 36 "root_numpy/tmva/src/data.pyx" +; + __Pyx_Buffer __pyx_pybuffer_events +#line 36 "root_numpy/tmva/src/data.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_labels +#line 36 "root_numpy/tmva/src/data.pyx" +; + __Pyx_Buffer __pyx_pybuffer_labels +#line 36 "root_numpy/tmva/src/data.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_weights +#line 36 "root_numpy/tmva/src/data.pyx" +; + __Pyx_Buffer __pyx_pybuffer_weights +#line 36 "root_numpy/tmva/src/data.pyx" +; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_r = NULL; -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = ((PyArrayObject *)__pyx_t_5); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyDeclarations -#line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + void *__pyx_t_1; - /* "root_numpy/tmva/src/evaluate.pyx":84 - * _method.fTmpEvent = event - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) - * for i from 0 <= i < size: # <<<<<<<<<<<<<< - * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) - */ +#line 36 "root_numpy/tmva/src/data.pyx" + std::vector *__pyx_t_2; -#line 84 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_7 = __pyx_v_size; +#line 36 "root_numpy/tmva/src/data.pyx" + int __pyx_t_3; -#line 84 "root_numpy/tmva/src/evaluate.pyx" - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_7; __pyx_v_i++) { +#line 36 "root_numpy/tmva/src/data.pyx" + long __pyx_t_4; - /* "root_numpy/tmva/src/evaluate.pyx":85 - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_classes), dtype=np.float32) - * for i from 0 <= i < size: - * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< - * event.SetVal(j, events[i, j]) - * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) - */ +#line 36 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_5; -#line 85 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_8 = __pyx_v_n_features; +#line 36 "root_numpy/tmva/src/data.pyx" + int __pyx_t_6; -#line 85 "root_numpy/tmva/src/evaluate.pyx" - for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { +#line 36 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_7; - /* "root_numpy/tmva/src/evaluate.pyx":86 - * for i from 0 <= i < size: - * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) # <<<<<<<<<<<<<< - * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) - * _method.fTmpEvent = NULL - */ +#line 36 "root_numpy/tmva/src/data.pyx" + long __pyx_t_8; -#line 86 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_9 = __pyx_v_i; +#line 36 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_9; -#line 86 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_10 = __pyx_v_j; +#line 36 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_10; -#line 86 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_event->SetVal(__pyx_v_j, (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides))); +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_t_11 = NULL; -#line 86 "root_numpy/tmva/src/evaluate.pyx" - } +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_t_12 = NULL; - /* "root_numpy/tmva/src/evaluate.pyx":87 - * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) - * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) # <<<<<<<<<<<<<< - * _method.fTmpEvent = NULL - * del event - */ +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_t_13 = NULL; -#line 87 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_11 = __pyx_v_i; +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_t_14 = NULL; -#line 87 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_12 = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_t_15 = NULL; -#line 87 "root_numpy/tmva/src/evaluate.pyx" - memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetMulticlassValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_classes)); +#line 36 "root_numpy/tmva/src/data.pyx" + std::string __pyx_t_16; -#line 87 "root_numpy/tmva/src/evaluate.pyx" - } +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannySetupContext("add_events_multiclass", 0); - /* "root_numpy/tmva/src/evaluate.pyx":88 - * event.SetVal(j, events[i, j]) - * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) - * _method.fTmpEvent = NULL # <<<<<<<<<<<<<< - * del event - * return output - */ +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 88 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__method->fTmpEvent = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_events.refcount = 0; - /* "root_numpy/tmva/src/evaluate.pyx":89 - * memcpy(&output[i, 0], &(_method.GetMulticlassValues()[0]), sizeof(np.float32_t) * n_classes) - * _method.fTmpEvent = NULL - * del event # <<<<<<<<<<<<<< - * return output - * - */ +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.data = NULL; -#line 89 "root_numpy/tmva/src/evaluate.pyx" - delete __pyx_v_event; +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; - /* "root_numpy/tmva/src/evaluate.pyx":90 - * _method.fTmpEvent = NULL - * del event - * return output # <<<<<<<<<<<<<< - * - * - */ +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_labels.pybuffer.buf = NULL; -#line 90 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_labels.refcount = 0; -#line 90 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(((PyObject *)__pyx_v_output)); +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_labels.data = NULL; -#line 90 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = ((PyObject *)__pyx_v_output); +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_labels.rcbuffer = &__pyx_pybuffer_labels; -#line 90 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_weights.pybuffer.buf = NULL; - /* "root_numpy/tmva/src/evaluate.pyx":76 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * cdef evaluate_multiclass(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_classes): # <<<<<<<<<<<<<< - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] - */ +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_weights.refcount = 0; -#line 76 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.data = NULL; +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.rcbuffer = &__pyx_pybuffer_weights; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - /* function exit code */ +#line 36 "root_numpy/tmva/src/data.pyx" + { -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_1); - -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_2); - -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_3); - -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_4); - -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_5); +#line 36 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 36, __pyx_L1_error) -#line 76 "root_numpy/tmva/src/evaluate.pyx" - { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; +#line 36 "root_numpy/tmva/src/data.pyx" + } -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_declare +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_PyThreadState_assign +#line 36 "root_numpy/tmva/src/data.pyx" + { -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 36 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_labels.rcbuffer->pybuffer, (PyObject*)__pyx_v_labels, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 36, __pyx_L1_error) -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); +#line 36 "root_numpy/tmva/src/data.pyx" + } -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_labels.diminfo[0].strides = __pyx_pybuffernd_labels.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_labels.diminfo[0].shape = __pyx_pybuffernd_labels.rcbuffer->pybuffer.shape[0]; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_multiclass", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 36 "root_numpy/tmva/src/data.pyx" + { -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L2; +#line 36 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_weights.rcbuffer->pybuffer, (PyObject*)__pyx_v_weights, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 36, __pyx_L1_error) -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L0:; +#line 36 "root_numpy/tmva/src/data.pyx" + } -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.diminfo[0].strides = __pyx_pybuffernd_weights.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_weights.diminfo[0].shape = __pyx_pybuffernd_weights.rcbuffer->pybuffer.shape[0]; -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); + /* "root_numpy/tmva/src/data.pyx":42 + * np.ndarray[np.double_t, ndim=1] weights=None, + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) # <<<<<<<<<<<<<< + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] + */ -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L2:; +#line 42 "root_numpy/tmva/src/data.pyx" + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 42, __pyx_L1_error) -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF((PyObject *)__pyx_v_output); +#line 42 "root_numpy/tmva/src/data.pyx" + __pyx_v__obj = ((TMVA_Object *)__pyx_t_1); -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XGIVEREF(__pyx_r); + /* "root_numpy/tmva/src/data.pyx":43 + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + * cdef long size = events.shape[0] # <<<<<<<<<<<<<< + * cdef long n_features = events.shape[1] + * cdef long i, j + */ -#line 76 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyFinishContext(); +#line 43 "root_numpy/tmva/src/data.pyx" + __pyx_v_size = (__pyx_v_events->dimensions[0]); -#line 76 "root_numpy/tmva/src/evaluate.pyx" - return __pyx_r; + /* "root_numpy/tmva/src/data.pyx":44 + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< + * cdef long i, j + * cdef double weight = 1. + */ -#line 76 "root_numpy/tmva/src/evaluate.pyx" -} +#line 44 "root_numpy/tmva/src/data.pyx" + __pyx_v_n_features = (__pyx_v_events->dimensions[1]); -/* "root_numpy/tmva/src/evaluate.pyx":95 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): # <<<<<<<<<<<<<< - * cdef long size = events.shape[0] + /* "root_numpy/tmva/src/data.pyx":46 * cdef long n_features = events.shape[1] + * cdef long i, j + * cdef double weight = 1. # <<<<<<<<<<<<<< + * cdef int label + * cdef vector[double]* event = new vector[double](n_features) */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 46 "root_numpy/tmva/src/data.pyx" + __pyx_v_weight = 1.; + /* "root_numpy/tmva/src/data.pyx":48 + * cdef double weight = 1. + * cdef int label + * cdef vector[double]* event = new vector[double](n_features) # <<<<<<<<<<<<<< + * cdef ETreeType treetype = kTraining + * if test: + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" -static PyObject *__pyx_f_13_libtmvanumpy_evaluate_regression(TMVA::MethodBase *__pyx_v__method, PyArrayObject *__pyx_v_events, unsigned int __pyx_v_n_targets) { - long __pyx_v_size -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - long __pyx_v_n_features -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - long __pyx_v_i -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - long __pyx_v_j -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - std::vector __pyx_v_features -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - TMVA::Event *__pyx_v_event -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - PyArrayObject *__pyx_v_output = 0 -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_events -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_Buffer __pyx_pybuffer_events -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_LocalBuf_ND __pyx_pybuffernd_output -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; - __Pyx_Buffer __pyx_pybuffer_output -#line 95 "root_numpy/tmva/src/evaluate.pyx" -; +#line 48 "root_numpy/tmva/src/data.pyx" + try { -#line 95 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_r = NULL; +#line 48 "root_numpy/tmva/src/data.pyx" + __pyx_t_2 = new std::vector (__pyx_v_n_features); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannyDeclarations +#line 48 "root_numpy/tmva/src/data.pyx" + } catch(...) { -#line 95 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_1 = NULL; +#line 48 "root_numpy/tmva/src/data.pyx" + __Pyx_CppExn2PyErr(); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_2 = NULL; +#line 48 "root_numpy/tmva/src/data.pyx" + __PYX_ERR(1, 48, __pyx_L1_error) -#line 95 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_3 = NULL; +#line 48 "root_numpy/tmva/src/data.pyx" + } -#line 95 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_4 = NULL; +#line 48 "root_numpy/tmva/src/data.pyx" + __pyx_v_event = __pyx_t_2; -#line 95 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_t_5 = NULL; + /* "root_numpy/tmva/src/data.pyx":49 + * cdef int label + * cdef vector[double]* event = new vector[double](n_features) + * cdef ETreeType treetype = kTraining # <<<<<<<<<<<<<< + * if test: + * treetype = kTesting + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - PyArrayObject *__pyx_t_6 = NULL; +#line 49 "root_numpy/tmva/src/data.pyx" + __pyx_v_treetype = TMVA::Types::kTraining; -#line 95 "root_numpy/tmva/src/evaluate.pyx" - long __pyx_t_7; + /* "root_numpy/tmva/src/data.pyx":50 + * cdef vector[double]* event = new vector[double](n_features) + * cdef ETreeType treetype = kTraining + * if test: # <<<<<<<<<<<<<< + * treetype = kTesting + * for i from 0 <= i < size: + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - long __pyx_t_8; +#line 50 "root_numpy/tmva/src/data.pyx" + __pyx_t_3 = (__pyx_v_test != 0); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_9; +#line 50 "root_numpy/tmva/src/data.pyx" + if (__pyx_t_3) { -#line 95 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_10; + /* "root_numpy/tmva/src/data.pyx":51 + * cdef ETreeType treetype = kTraining + * if test: + * treetype = kTesting # <<<<<<<<<<<<<< + * for i from 0 <= i < size: + * label = labels[i] + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_11; +#line 51 "root_numpy/tmva/src/data.pyx" + __pyx_v_treetype = TMVA::Types::kTesting; -#line 95 "root_numpy/tmva/src/evaluate.pyx" - Py_ssize_t __pyx_t_12; + /* "root_numpy/tmva/src/data.pyx":50 + * cdef vector[double]* event = new vector[double](n_features) + * cdef ETreeType treetype = kTraining + * if test: # <<<<<<<<<<<<<< + * treetype = kTesting + * for i from 0 <= i < size: + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_RefNannySetupContext("evaluate_regression", 0); +#line 50 "root_numpy/tmva/src/data.pyx" + } -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_output.pybuffer.buf = NULL; + /* "root_numpy/tmva/src/data.pyx":52 + * if test: + * treetype = kTesting + * for i from 0 <= i < size: # <<<<<<<<<<<<<< + * label = labels[i] + * if weights is not None: + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_output.refcount = 0; +#line 52 "root_numpy/tmva/src/data.pyx" + __pyx_t_4 = __pyx_v_size; -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_output.data = NULL; +#line 52 "root_numpy/tmva/src/data.pyx" + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_4; __pyx_v_i++) { -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_output.rcbuffer = &__pyx_pybuffer_output; + /* "root_numpy/tmva/src/data.pyx":53 + * treetype = kTesting + * for i from 0 <= i < size: + * label = labels[i] # <<<<<<<<<<<<<< + * if weights is not None: + * weight = weights[i] + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.pybuffer.buf = NULL; +#line 53 "root_numpy/tmva/src/data.pyx" + __pyx_t_5 = __pyx_v_i; -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffer_events.refcount = 0; +#line 53 "root_numpy/tmva/src/data.pyx" + __pyx_v_label = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int_t *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf, __pyx_t_5, __pyx_pybuffernd_labels.diminfo[0].strides)); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.data = NULL; + /* "root_numpy/tmva/src/data.pyx":54 + * for i from 0 <= i < size: + * label = labels[i] + * if weights is not None: # <<<<<<<<<<<<<< + * weight = weights[i] + * for j from 0 <= j < n_features: + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; +#line 54 "root_numpy/tmva/src/data.pyx" + __pyx_t_3 = (((PyObject *)__pyx_v_weights) != Py_None); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - { +#line 54 "root_numpy/tmva/src/data.pyx" + __pyx_t_6 = (__pyx_t_3 != 0); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 54 "root_numpy/tmva/src/data.pyx" + if (__pyx_t_6) { -#line 95 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 95, __pyx_L1_error) + /* "root_numpy/tmva/src/data.pyx":55 + * label = labels[i] + * if weights is not None: + * weight = weights[i] # <<<<<<<<<<<<<< + * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] + */ -#line 95 "root_numpy/tmva/src/evaluate.pyx" - } +#line 55 "root_numpy/tmva/src/data.pyx" + __pyx_t_7 = __pyx_v_i; -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; +#line 55 "root_numpy/tmva/src/data.pyx" + __pyx_v_weight = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_weights.rcbuffer->pybuffer.buf, __pyx_t_7, __pyx_pybuffernd_weights.diminfo[0].strides)); - /* "root_numpy/tmva/src/evaluate.pyx":96 - * @cython.wraparound(False) - * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): - * cdef long size = events.shape[0] # <<<<<<<<<<<<<< - * cdef long n_features = events.shape[1] - * cdef long i, j + /* "root_numpy/tmva/src/data.pyx":54 + * for i from 0 <= i < size: + * label = labels[i] + * if weights is not None: # <<<<<<<<<<<<<< + * weight = weights[i] + * for j from 0 <= j < n_features: */ -#line 96 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_size = (__pyx_v_events->dimensions[0]); +#line 54 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":97 - * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< - * cdef long i, j - * cdef vector[float] features + /* "root_numpy/tmva/src/data.pyx":56 + * if weights is not None: + * weight = weights[i] + * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< + * event[0][j] = events[i, j] + * _obj.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) */ -#line 97 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_n_features = (__pyx_v_events->dimensions[1]); +#line 56 "root_numpy/tmva/src/data.pyx" + __pyx_t_8 = __pyx_v_n_features; - /* "root_numpy/tmva/src/evaluate.pyx":100 - * cdef long i, j - * cdef vector[float] features - * cdef Event* event = new Event(features, 0) # <<<<<<<<<<<<<< - * _method.fTmpEvent = event - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) +#line 56 "root_numpy/tmva/src/data.pyx" + for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { + + /* "root_numpy/tmva/src/data.pyx":57 + * weight = weights[i] + * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] # <<<<<<<<<<<<<< + * _obj.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) + * del event */ -#line 100 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_event = new TMVA::Event(__pyx_v_features, 0); +#line 57 "root_numpy/tmva/src/data.pyx" + __pyx_t_9 = __pyx_v_i; - /* "root_numpy/tmva/src/evaluate.pyx":101 - * cdef vector[float] features - * cdef Event* event = new Event(features, 0) - * _method.fTmpEvent = event # <<<<<<<<<<<<<< - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) - * for i from 0 <= i < size: - */ +#line 57 "root_numpy/tmva/src/data.pyx" + __pyx_t_10 = __pyx_v_j; -#line 101 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__method->fTmpEvent = __pyx_v_event; +#line 57 "root_numpy/tmva/src/data.pyx" + ((__pyx_v_event[0])[__pyx_v_j]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides)); - /* "root_numpy/tmva/src/evaluate.pyx":102 - * cdef Event* event = new Event(features, 0) - * _method.fTmpEvent = event - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) # <<<<<<<<<<<<<< - * for i from 0 <= i < size: +#line 57 "root_numpy/tmva/src/data.pyx" + } + + /* "root_numpy/tmva/src/data.pyx":58 * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] + * _obj.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) # <<<<<<<<<<<<<< + * del event + * */ -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Class__0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 58, __pyx_L1_error) -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_t_12); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_13 = __Pyx_PyInt_From_int(__pyx_v_label); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 58, __pyx_L1_error) -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_t_13); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_14 = NULL; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) { -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_12); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_n_targets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + if (likely(__pyx_t_14)) { -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 58 "root_numpy/tmva/src/data.pyx" + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_INCREF(__pyx_t_14); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_INCREF(function); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_1); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_DECREF_SET(__pyx_t_12, function); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); +#line 58 "root_numpy/tmva/src/data.pyx" + } -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_3); +#line 58 "root_numpy/tmva/src/data.pyx" + } -#line 102 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); +#line 58 "root_numpy/tmva/src/data.pyx" + if (!__pyx_t_14) { -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 58, __pyx_L1_error) -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_t_11); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); +#line 58 "root_numpy/tmva/src/data.pyx" + } else { -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_4); +#line 58 "root_numpy/tmva/src/data.pyx" + #if CYTHON_FAST_PYCALL -#line 102 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); +#line 58 "root_numpy/tmva/src/data.pyx" + if (PyFunction_Check(__pyx_t_12)) { -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_t_13}; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 58, __pyx_L1_error) -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_t_11); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_1); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_float32); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + } else -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 58 "root_numpy/tmva/src/data.pyx" + #endif -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + #if CYTHON_FAST_PYCCALL -#line 102 "root_numpy/tmva/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + if (__Pyx_PyFastCFunction_Check(__pyx_t_12)) { -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_t_13}; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_12, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 58, __pyx_L1_error) -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_5); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_t_11); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + } else -#line 102 "root_numpy/tmva/src/evaluate.pyx" - if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 102, __pyx_L1_error) +#line 58 "root_numpy/tmva/src/data.pyx" + #endif -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = ((PyArrayObject *)__pyx_t_5); +#line 58 "root_numpy/tmva/src/data.pyx" + { -#line 102 "root_numpy/tmva/src/evaluate.pyx" - { +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 58, __pyx_L1_error) -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_BufFmt_StackElem __pyx_stack[1]; +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_t_15); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_output.rcbuffer->pybuffer, (PyObject*)__pyx_t_6, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) { +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_pybuffernd_output.rcbuffer->pybuffer.buf = NULL; +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GIVEREF(__pyx_t_13); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __PYX_ERR(0, 102, __pyx_L1_error) - } else { -#line 102 "root_numpy/tmva/src/evaluate.pyx" -__pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_output.diminfo[0].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_output.diminfo[1].strides = __pyx_pybuffernd_output.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_output.diminfo[1].shape = __pyx_pybuffernd_output.rcbuffer->pybuffer.shape[1]; +#line 58 "root_numpy/tmva/src/data.pyx" + PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_t_13); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - } +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_13 = 0; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - } +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_15, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 58, __pyx_L1_error) -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_6 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_t_11); -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = ((PyArrayObject *)__pyx_t_5); +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; -#line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = 0; +#line 58 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":103 - * _method.fTmpEvent = event - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) - * for i from 0 <= i < size: # <<<<<<<<<<<<<< - * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) - */ +#line 58 "root_numpy/tmva/src/data.pyx" + } -#line 103 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_7 = __pyx_v_size; +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; -#line 103 "root_numpy/tmva/src/evaluate.pyx" - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_7; __pyx_v_i++) { +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_t_16 = __pyx_convert_string_from_py_std__in_string(__pyx_t_11); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 58, __pyx_L1_error) - /* "root_numpy/tmva/src/evaluate.pyx":104 - * cdef np.ndarray[np.float32_t, ndim=2] output = np.empty((size, n_targets), dtype=np.float32) - * for i from 0 <= i < size: - * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< - * event.SetVal(j, events[i, j]) - * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) - */ +#line 58 "root_numpy/tmva/src/data.pyx" + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; -#line 104 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_8 = __pyx_v_n_features; +#line 58 "root_numpy/tmva/src/data.pyx" + __pyx_v__obj->AddEvent(__pyx_t_16, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); -#line 104 "root_numpy/tmva/src/evaluate.pyx" - for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_8; __pyx_v_j++) { +#line 58 "root_numpy/tmva/src/data.pyx" + } - /* "root_numpy/tmva/src/evaluate.pyx":105 - * for i from 0 <= i < size: - * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) # <<<<<<<<<<<<<< - * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) - * _method.fTmpEvent = NULL + /* "root_numpy/tmva/src/data.pyx":59 + * event[0][j] = events[i, j] + * _obj.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) + * del event # <<<<<<<<<<<<<< + * + * */ -#line 105 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_9 = __pyx_v_i; +#line 59 "root_numpy/tmva/src/data.pyx" + delete __pyx_v_event; -#line 105 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_10 = __pyx_v_j; + /* "root_numpy/tmva/src/data.pyx":36 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_multiclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, + */ -#line 105 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_event->SetVal(__pyx_v_j, (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_9, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_10, __pyx_pybuffernd_events.diminfo[1].strides))); +#line 36 "root_numpy/tmva/src/data.pyx" -#line 105 "root_numpy/tmva/src/evaluate.pyx" - } - /* "root_numpy/tmva/src/evaluate.pyx":106 - * for j from 0 <= j < n_features: - * event.SetVal(j, events[i, j]) - * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) # <<<<<<<<<<<<<< - * _method.fTmpEvent = NULL - * del event - */ +#line 36 "root_numpy/tmva/src/data.pyx" + /* function exit code */ -#line 106 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_11 = __pyx_v_i; +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_r = Py_None; __Pyx_INCREF(Py_None); -#line 106 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_12 = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + goto __pyx_L0; -#line 106 "root_numpy/tmva/src/evaluate.pyx" - memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetRegressionValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_targets)); +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_L1_error:; -#line 106 "root_numpy/tmva/src/evaluate.pyx" - } +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_XDECREF(__pyx_t_11); - /* "root_numpy/tmva/src/evaluate.pyx":107 - * event.SetVal(j, events[i, j]) - * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) - * _method.fTmpEvent = NULL # <<<<<<<<<<<<<< - * del event - * return output - */ - -#line 107 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v__method->fTmpEvent = NULL; - - /* "root_numpy/tmva/src/evaluate.pyx":108 - * memcpy(&output[i, 0], &(_method.GetRegressionValues()[0]), sizeof(np.float32_t) * n_targets) - * _method.fTmpEvent = NULL - * del event # <<<<<<<<<<<<<< - * return output - */ - -#line 108 "root_numpy/tmva/src/evaluate.pyx" - delete __pyx_v_event; - - /* "root_numpy/tmva/src/evaluate.pyx":109 - * _method.fTmpEvent = NULL - * del event - * return output # <<<<<<<<<<<<<< - */ - -#line 109 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_r); - -#line 109 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(((PyObject *)__pyx_v_output)); - -#line 109 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = ((PyObject *)__pyx_v_output); - -#line 109 "root_numpy/tmva/src/evaluate.pyx" - goto __pyx_L0; - - /* "root_numpy/tmva/src/evaluate.pyx":95 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * cdef evaluate_regression(MethodBase* _method, np.ndarray[np.double_t, ndim=2] events, unsigned int n_targets): # <<<<<<<<<<<<<< - * cdef long size = events.shape[0] - * cdef long n_features = events.shape[1] - */ - -#line 95 "root_numpy/tmva/src/evaluate.pyx" - - -#line 95 "root_numpy/tmva/src/evaluate.pyx" - /* function exit code */ - -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L1_error:; - -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_1); - -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_2); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_XDECREF(__pyx_t_12); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_3); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_XDECREF(__pyx_t_13); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_4); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_XDECREF(__pyx_t_14); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_5); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_XDECREF(__pyx_t_15); -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_PyThreadState_declare -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_PyThreadState_assign -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); + +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_AddTraceback("_libtmvanumpy.evaluate_regression", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_AddTraceback("_libtmvanumpy.add_events_multiclass", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = 0; +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_r = NULL; -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" goto __pyx_L2; -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __pyx_L0:; -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_output.rcbuffer->pybuffer); +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_labels.rcbuffer->pybuffer); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __pyx_L2:; +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); -#line 95 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF((PyObject *)__pyx_v_output); +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_L2:; -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_XGIVEREF(__pyx_r); -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyFinishContext(); -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" return __pyx_r; -#line 95 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" } -/* "array.pxd":91 - * __data_union data - * - * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. +/* "root_numpy/tmva/src/data.pyx":64 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_regression( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" /* Python wrapper */ -#line 91 "array.pxd" -static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ +#line 64 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_9add_events_regression(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_13_libtmvanumpy_9add_events_regression = +#line 64 "root_numpy/tmva/src/data.pyx" +{"add_events_regression", (PyCFunction)__pyx_pw_13_libtmvanumpy_9add_events_regression, METH_VARARGS|METH_KEYWORDS, 0}; -#line 91 "array.pxd" -static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { +#line 64 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pw_13_libtmvanumpy_9add_events_regression(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_obj = 0 +#line 64 "root_numpy/tmva/src/data.pyx" +; + PyArrayObject *__pyx_v_events = 0 +#line 64 "root_numpy/tmva/src/data.pyx" +; + PyArrayObject *__pyx_v_targets = 0 +#line 64 "root_numpy/tmva/src/data.pyx" +; + PyArrayObject *__pyx_v_weights = 0 +#line 64 "root_numpy/tmva/src/data.pyx" +; + bool __pyx_v_test +#line 64 "root_numpy/tmva/src/data.pyx" +; -#line 91 "array.pxd" - int __pyx_r; +#line 64 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_r = 0; -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyDeclarations -#line 91 "array.pxd" - __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); - __pyx_r = -#line 91 "array.pxd" -__pyx_pf_7cpython_5array_5array___getbuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannySetupContext("add_events_regression (wrapper)", 0); -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + { +#line 64 "root_numpy/tmva/src/data.pyx" + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_obj,&__pyx_n_s_events,&__pyx_n_s_targets,&__pyx_n_s_weights,&__pyx_n_s_test,0}; -#line 91 "array.pxd" - /* function exit code */ +#line 64 "root_numpy/tmva/src/data.pyx" + PyObject* values[5] = {0,0,0,0,0}; -#line 91 "array.pxd" - __Pyx_RefNannyFinishContext(); + /* "root_numpy/tmva/src/data.pyx":68 + * np.ndarray[np.double_t, ndim=2] events, + * np.ndarray[np.double_t, ndim=2] targets, + * np.ndarray[np.double_t, ndim=1] weights=None, # <<<<<<<<<<<<<< + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + */ -#line 91 "array.pxd" - return __pyx_r; +#line 68 "root_numpy/tmva/src/data.pyx" + values[3] = (PyObject *)((PyArrayObject *)Py_None); -#line 91 "array.pxd" -} +#line 68 "root_numpy/tmva/src/data.pyx" + if (unlikely(__pyx_kwds)) { -#line 91 "array.pxd" +#line 68 "root_numpy/tmva/src/data.pyx" + Py_ssize_t kw_args; +#line 68 "root_numpy/tmva/src/data.pyx" + const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); -#line 91 "array.pxd" -static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags) { - PyObject *__pyx_v_item_count = NULL -#line 91 "array.pxd" -; +#line 68 "root_numpy/tmva/src/data.pyx" + switch (pos_args) { + case 5: +#line 68 "root_numpy/tmva/src/data.pyx" +values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + case 4: +#line 68 "root_numpy/tmva/src/data.pyx" +values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + case 3: +#line 68 "root_numpy/tmva/src/data.pyx" +values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + case 2: +#line 68 "root_numpy/tmva/src/data.pyx" +values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + case 1: +#line 68 "root_numpy/tmva/src/data.pyx" +values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 91 "array.pxd" - int __pyx_r; +#line 68 "root_numpy/tmva/src/data.pyx" + case 0: break; + default: +#line 68 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 91 "array.pxd" - __Pyx_RefNannyDeclarations +#line 68 "root_numpy/tmva/src/data.pyx" + } -#line 91 "array.pxd" - PyObject *__pyx_t_1 = NULL; +#line 68 "root_numpy/tmva/src/data.pyx" + kw_args = PyDict_Size(__pyx_kwds); -#line 91 "array.pxd" - char *__pyx_t_2; +#line 68 "root_numpy/tmva/src/data.pyx" + switch (pos_args) { -#line 91 "array.pxd" - int __pyx_t_3; +#line 68 "root_numpy/tmva/src/data.pyx" + case 0: -#line 91 "array.pxd" - PyObject *__pyx_t_4 = NULL; +#line 68 "root_numpy/tmva/src/data.pyx" + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; + else +#line 68 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 91 "array.pxd" - Py_ssize_t __pyx_t_5; +#line 68 "root_numpy/tmva/src/data.pyx" + case 1: -#line 91 "array.pxd" - int __pyx_t_6; +#line 68 "root_numpy/tmva/src/data.pyx" + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; -#line 91 "array.pxd" - __Pyx_RefNannySetupContext("__getbuffer__", 0); +#line 68 "root_numpy/tmva/src/data.pyx" + else { + __Pyx_RaiseArgtupleInvalid("add_events_regression", 0, 3, 5, 1); +#line 68 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 64, __pyx_L3_error) -#line 91 "array.pxd" - if (__pyx_v_info != NULL) { +#line 68 "root_numpy/tmva/src/data.pyx" + } -#line 91 "array.pxd" - __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); +#line 68 "root_numpy/tmva/src/data.pyx" + case 2: -#line 91 "array.pxd" - __Pyx_GIVEREF(__pyx_v_info->obj); +#line 68 "root_numpy/tmva/src/data.pyx" + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_targets)) != 0)) kw_args--; -#line 91 "array.pxd" - } +#line 68 "root_numpy/tmva/src/data.pyx" + else { + __Pyx_RaiseArgtupleInvalid("add_events_regression", 0, 3, 5, 2); +#line 68 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 64, __pyx_L3_error) - /* "array.pxd":96 - * # In particular strided access is always provided regardless - * # of flags - * item_count = Py_SIZE(self) # <<<<<<<<<<<<<< - * - * info.suboffsets = NULL - */ +#line 68 "root_numpy/tmva/src/data.pyx" + } -#line 96 "array.pxd" - __pyx_t_1 = PyInt_FromSsize_t(Py_SIZE(((PyObject *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 96, __pyx_L1_error) +#line 68 "root_numpy/tmva/src/data.pyx" + case 3: -#line 96 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 68 "root_numpy/tmva/src/data.pyx" + if (kw_args > 0) { -#line 96 "array.pxd" - __pyx_v_item_count = __pyx_t_1; +#line 68 "root_numpy/tmva/src/data.pyx" + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); -#line 96 "array.pxd" - __pyx_t_1 = 0; +#line 68 "root_numpy/tmva/src/data.pyx" + if (value) { values[3] = value; kw_args--; } - /* "array.pxd":98 - * item_count = Py_SIZE(self) - * - * info.suboffsets = NULL # <<<<<<<<<<<<<< - * info.buf = self.data.as_chars - * info.readonly = 0 - */ +#line 68 "root_numpy/tmva/src/data.pyx" + } -#line 98 "array.pxd" - __pyx_v_info->suboffsets = NULL; +#line 68 "root_numpy/tmva/src/data.pyx" + case 4: - /* "array.pxd":99 - * - * info.suboffsets = NULL - * info.buf = self.data.as_chars # <<<<<<<<<<<<<< - * info.readonly = 0 - * info.ndim = 1 - */ +#line 68 "root_numpy/tmva/src/data.pyx" + if (kw_args > 0) { -#line 99 "array.pxd" - __pyx_t_2 = __pyx_v_self->data.as_chars; - -#line 99 "array.pxd" - __pyx_v_info->buf = __pyx_t_2; - - /* "array.pxd":100 - * info.suboffsets = NULL - * info.buf = self.data.as_chars - * info.readonly = 0 # <<<<<<<<<<<<<< - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - */ +#line 68 "root_numpy/tmva/src/data.pyx" + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); -#line 100 "array.pxd" - __pyx_v_info->readonly = 0; +#line 68 "root_numpy/tmva/src/data.pyx" + if (value) { values[4] = value; kw_args--; } - /* "array.pxd":101 - * info.buf = self.data.as_chars - * info.readonly = 0 - * info.ndim = 1 # <<<<<<<<<<<<<< - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - * info.len = info.itemsize * item_count - */ +#line 68 "root_numpy/tmva/src/data.pyx" + } -#line 101 "array.pxd" - __pyx_v_info->ndim = 1; +#line 68 "root_numpy/tmva/src/data.pyx" + } - /* "array.pxd":102 - * info.readonly = 0 - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) # <<<<<<<<<<<<<< - * info.len = info.itemsize * item_count - * - */ +#line 68 "root_numpy/tmva/src/data.pyx" + if (unlikely(kw_args > 0)) { -#line 102 "array.pxd" - __pyx_t_3 = __pyx_v_self->ob_descr->itemsize; +#line 68 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_events_regression") < 0)) __PYX_ERR(1, 64, __pyx_L3_error) -#line 102 "array.pxd" - __pyx_v_info->itemsize = __pyx_t_3; +#line 68 "root_numpy/tmva/src/data.pyx" + } - /* "array.pxd":103 - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - * info.len = info.itemsize * item_count # <<<<<<<<<<<<<< - * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - */ +#line 68 "root_numpy/tmva/src/data.pyx" + } else { -#line 103 "array.pxd" - __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_info->itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 103, __pyx_L1_error) +#line 68 "root_numpy/tmva/src/data.pyx" + switch (PyTuple_GET_SIZE(__pyx_args)) { + case 5: +#line 68 "root_numpy/tmva/src/data.pyx" +values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + case 4: +#line 68 "root_numpy/tmva/src/data.pyx" +values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + case 3: +#line 68 "root_numpy/tmva/src/data.pyx" +values[2] = PyTuple_GET_ITEM(__pyx_args, 2); -#line 103 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 68 "root_numpy/tmva/src/data.pyx" + values[1] = PyTuple_GET_ITEM(__pyx_args, 1); -#line 103 "array.pxd" - __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_v_item_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 103, __pyx_L1_error) +#line 68 "root_numpy/tmva/src/data.pyx" + values[0] = PyTuple_GET_ITEM(__pyx_args, 0); -#line 103 "array.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 68 "root_numpy/tmva/src/data.pyx" + break; + default: +#line 68 "root_numpy/tmva/src/data.pyx" +goto __pyx_L5_argtuple_error; -#line 103 "array.pxd" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 68 "root_numpy/tmva/src/data.pyx" + } -#line 103 "array.pxd" - __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 103, __pyx_L1_error) +#line 68 "root_numpy/tmva/src/data.pyx" + } -#line 103 "array.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 68 "root_numpy/tmva/src/data.pyx" + __pyx_v_obj = values[0]; -#line 103 "array.pxd" - __pyx_v_info->len = __pyx_t_5; +#line 68 "root_numpy/tmva/src/data.pyx" + __pyx_v_events = ((PyArrayObject *)values[1]); - /* "array.pxd":105 - * info.len = info.itemsize * item_count - * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) # <<<<<<<<<<<<<< - * if not info.shape: - * raise MemoryError() - */ +#line 68 "root_numpy/tmva/src/data.pyx" + __pyx_v_targets = ((PyArrayObject *)values[2]); -#line 105 "array.pxd" - __pyx_v_info->shape = ((Py_ssize_t *)PyObject_Malloc(((sizeof(Py_ssize_t)) + 2))); +#line 68 "root_numpy/tmva/src/data.pyx" + __pyx_v_weights = ((PyArrayObject *)values[3]); - /* "array.pxd":106 - * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: # <<<<<<<<<<<<<< - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing - */ +#line 68 "root_numpy/tmva/src/data.pyx" + if (values[4]) { -#line 106 "array.pxd" - __pyx_t_6 = ((!(__pyx_v_info->shape != 0)) != 0); +#line 68 "root_numpy/tmva/src/data.pyx" + __pyx_v_test = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_test == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(1, 69, __pyx_L3_error) -#line 106 "array.pxd" - if (__pyx_t_6) { +#line 68 "root_numpy/tmva/src/data.pyx" + } else { - /* "array.pxd":107 - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: - * raise MemoryError() # <<<<<<<<<<<<<< - * info.shape[0] = item_count # constant regardless of resizing - * info.strides = &info.itemsize + /* "root_numpy/tmva/src/data.pyx":69 + * np.ndarray[np.double_t, ndim=2] targets, + * np.ndarray[np.double_t, ndim=1] weights=None, + * bool test=False): # <<<<<<<<<<<<<< + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + * cdef long size = events.shape[0] */ -#line 107 "array.pxd" - PyErr_NoMemory(); __PYX_ERR(2, 107, __pyx_L1_error) +#line 69 "root_numpy/tmva/src/data.pyx" + __pyx_v_test = ((bool)0); - /* "array.pxd":106 - * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: # <<<<<<<<<<<<<< - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing - */ +#line 69 "root_numpy/tmva/src/data.pyx" + } -#line 106 "array.pxd" +#line 69 "root_numpy/tmva/src/data.pyx" } - /* "array.pxd":108 - * if not info.shape: - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing # <<<<<<<<<<<<<< - * info.strides = &info.itemsize - * - */ - -#line 108 "array.pxd" - __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_item_count); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 108, __pyx_L1_error) - -#line 108 "array.pxd" - (__pyx_v_info->shape[0]) = __pyx_t_5; - - /* "array.pxd":109 - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing - * info.strides = &info.itemsize # <<<<<<<<<<<<<< - * - * info.format = (info.shape + 1) - */ - -#line 109 "array.pxd" - __pyx_v_info->strides = (&__pyx_v_info->itemsize); - - /* "array.pxd":111 - * info.strides = &info.itemsize - * - * info.format = (info.shape + 1) # <<<<<<<<<<<<<< - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 - */ - -#line 111 "array.pxd" - __pyx_v_info->format = ((char *)(__pyx_v_info->shape + 1)); - - /* "array.pxd":112 - * - * info.format = (info.shape + 1) - * info.format[0] = self.ob_descr.typecode # <<<<<<<<<<<<<< - * info.format[1] = 0 - * info.obj = self - */ - -#line 112 "array.pxd" - __pyx_t_3 = __pyx_v_self->ob_descr->typecode; +#line 69 "root_numpy/tmva/src/data.pyx" + goto __pyx_L4_argument_unpacking_done; -#line 112 "array.pxd" - (__pyx_v_info->format[0]) = __pyx_t_3; +#line 69 "root_numpy/tmva/src/data.pyx" + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("add_events_regression", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); +#line 69 "root_numpy/tmva/src/data.pyx" +__PYX_ERR(1, 64, __pyx_L3_error) - /* "array.pxd":113 - * info.format = (info.shape + 1) - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 # <<<<<<<<<<<<<< - * info.obj = self - * - */ +#line 69 "root_numpy/tmva/src/data.pyx" + __pyx_L3_error:; -#line 113 "array.pxd" - (__pyx_v_info->format[1]) = 0; +#line 69 "root_numpy/tmva/src/data.pyx" + __Pyx_AddTraceback("_libtmvanumpy.add_events_regression", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "array.pxd":114 - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 - * info.obj = self # <<<<<<<<<<<<<< - * - * def __releasebuffer__(self, Py_buffer* info): - */ +#line 69 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); -#line 114 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_self)); +#line 69 "root_numpy/tmva/src/data.pyx" + return NULL; -#line 114 "array.pxd" - __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); +#line 69 "root_numpy/tmva/src/data.pyx" + __pyx_L4_argument_unpacking_done:; -#line 114 "array.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 69 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_events), __pyx_ptype_5numpy_ndarray, 1, "events", 0))) __PYX_ERR(1, 66, __pyx_L1_error) -#line 114 "array.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 69 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_targets), __pyx_ptype_5numpy_ndarray, 1, "targets", 0))) __PYX_ERR(1, 67, __pyx_L1_error) -#line 114 "array.pxd" - __pyx_v_info->obj = ((PyObject *)__pyx_v_self); +#line 69 "root_numpy/tmva/src/data.pyx" + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1, "weights", 0))) __PYX_ERR(1, 68, __pyx_L1_error) + __pyx_r = +#line 69 "root_numpy/tmva/src/data.pyx" +__pyx_pf_13_libtmvanumpy_8add_events_regression(__pyx_self, __pyx_v_obj, __pyx_v_events, __pyx_v_targets, __pyx_v_weights, __pyx_v_test); - /* "array.pxd":91 - * __data_union data - * - * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. + /* "root_numpy/tmva/src/data.pyx":64 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_regression( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" /* function exit code */ -#line 91 "array.pxd" - __pyx_r = 0; - -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" goto __pyx_L0; -#line 91 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" __pyx_L1_error:; -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); - -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_t_4); - -#line 91 "array.pxd" - __Pyx_AddTraceback("cpython.array.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); - -#line 91 "array.pxd" - __pyx_r = -1; +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_r = NULL; -#line 91 "array.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_L0:; -#line 91 "array.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); -#line 91 "array.pxd" - __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; +#line 64 "root_numpy/tmva/src/data.pyx" + return __pyx_r; -#line 91 "array.pxd" - } +#line 64 "root_numpy/tmva/src/data.pyx" +} -#line 91 "array.pxd" - goto __pyx_L2; +#line 64 "root_numpy/tmva/src/data.pyx" -#line 91 "array.pxd" - __pyx_L0:; -#line 91 "array.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { +#line 64 "root_numpy/tmva/src/data.pyx" +static PyObject *__pyx_pf_13_libtmvanumpy_8add_events_regression(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_targets, PyArrayObject *__pyx_v_weights, bool __pyx_v_test) { + TMVA_Object *__pyx_v__obj +#line 64 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_size +#line 64 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_n_features +#line 64 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_n_targets +#line 64 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_i +#line 64 "root_numpy/tmva/src/data.pyx" +; + long __pyx_v_j +#line 64 "root_numpy/tmva/src/data.pyx" +; + double __pyx_v_weight +#line 64 "root_numpy/tmva/src/data.pyx" +; + std::vector *__pyx_v_event +#line 64 "root_numpy/tmva/src/data.pyx" +; + TMVA::Types::ETreeType __pyx_v_treetype +#line 64 "root_numpy/tmva/src/data.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_events +#line 64 "root_numpy/tmva/src/data.pyx" +; + __Pyx_Buffer __pyx_pybuffer_events +#line 64 "root_numpy/tmva/src/data.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_targets +#line 64 "root_numpy/tmva/src/data.pyx" +; + __Pyx_Buffer __pyx_pybuffer_targets +#line 64 "root_numpy/tmva/src/data.pyx" +; + __Pyx_LocalBuf_ND __pyx_pybuffernd_weights +#line 64 "root_numpy/tmva/src/data.pyx" +; + __Pyx_Buffer __pyx_pybuffer_weights +#line 64 "root_numpy/tmva/src/data.pyx" +; -#line 91 "array.pxd" - __Pyx_GOTREF(Py_None); +#line 64 "root_numpy/tmva/src/data.pyx" + PyObject *__pyx_r = NULL; -#line 91 "array.pxd" - __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyDeclarations -#line 91 "array.pxd" - } +#line 64 "root_numpy/tmva/src/data.pyx" + void *__pyx_t_1; -#line 91 "array.pxd" - __pyx_L2:; +#line 64 "root_numpy/tmva/src/data.pyx" + std::vector *__pyx_t_2; -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_v_item_count); +#line 64 "root_numpy/tmva/src/data.pyx" + int __pyx_t_3; -#line 91 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 64 "root_numpy/tmva/src/data.pyx" + long __pyx_t_4; -#line 91 "array.pxd" - return __pyx_r; +#line 64 "root_numpy/tmva/src/data.pyx" + int __pyx_t_5; -#line 91 "array.pxd" -} +#line 64 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_6; -/* "array.pxd":116 - * info.obj = self - * - * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< - * PyObject_Free(info.shape) - * - */ +#line 64 "root_numpy/tmva/src/data.pyx" + long __pyx_t_7; -#line 116 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_8; +#line 64 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_9; -#line 116 "array.pxd" -/* Python wrapper */ +#line 64 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_10; -#line 116 "array.pxd" -static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ +#line 64 "root_numpy/tmva/src/data.pyx" + Py_ssize_t __pyx_t_11; -#line 116 "array.pxd" -static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 64 "root_numpy/tmva/src/data.pyx" + std::string __pyx_t_12; -#line 116 "array.pxd" - __Pyx_RefNannyDeclarations +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannySetupContext("add_events_regression", 0); -#line 116 "array.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_events.pybuffer.buf = NULL; -#line 116 "array.pxd" - __pyx_pf_7cpython_5array_5array_2__releasebuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_events.refcount = 0; -#line 116 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.data = NULL; +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.rcbuffer = &__pyx_pybuffer_events; -#line 116 "array.pxd" - /* function exit code */ +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_targets.pybuffer.buf = NULL; -#line 116 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_targets.refcount = 0; -#line 116 "array.pxd" -} +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_targets.data = NULL; -#line 116 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_targets.rcbuffer = &__pyx_pybuffer_targets; +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_weights.pybuffer.buf = NULL; -#line 116 "array.pxd" -static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffer_weights.refcount = 0; -#line 116 "array.pxd" - __Pyx_RefNannyDeclarations +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.data = NULL; -#line 116 "array.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__", 0); +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.rcbuffer = &__pyx_pybuffer_weights; - /* "array.pxd":117 - * - * def __releasebuffer__(self, Py_buffer* info): - * PyObject_Free(info.shape) # <<<<<<<<<<<<<< - * - * array newarrayobject(PyTypeObject* type, Py_ssize_t size, arraydescr *descr) - */ +#line 64 "root_numpy/tmva/src/data.pyx" + { -#line 117 "array.pxd" - PyObject_Free(__pyx_v_info->shape); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; - /* "array.pxd":116 - * info.obj = self - * - * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< - * PyObject_Free(info.shape) - * - */ +#line 64 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_events.rcbuffer->pybuffer, (PyObject*)__pyx_v_events, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 64, __pyx_L1_error) -#line 116 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + } + +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_events.diminfo[0].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_events.diminfo[0].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_events.diminfo[1].strides = __pyx_pybuffernd_events.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_events.diminfo[1].shape = __pyx_pybuffernd_events.rcbuffer->pybuffer.shape[1]; +#line 64 "root_numpy/tmva/src/data.pyx" + { -#line 116 "array.pxd" - /* function exit code */ +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 116 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 64 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_targets.rcbuffer->pybuffer, (PyObject*)__pyx_v_targets, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(1, 64, __pyx_L1_error) -#line 116 "array.pxd" -} +#line 64 "root_numpy/tmva/src/data.pyx" + } -/* "array.pxd":128 - * - * - * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< - * """ fast creation of a new array, given a template array. - * type will be same as template. - */ +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_targets.diminfo[0].strides = __pyx_pybuffernd_targets.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_targets.diminfo[0].shape = __pyx_pybuffernd_targets.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_targets.diminfo[1].strides = __pyx_pybuffernd_targets.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_targets.diminfo[1].shape = __pyx_pybuffernd_targets.rcbuffer->pybuffer.shape[1]; -#line 128 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + { +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_BufFmt_StackElem __pyx_stack[1]; -#line 128 "array.pxd" -static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_clone(arrayobject *__pyx_v_template, Py_ssize_t __pyx_v_length, int __pyx_v_zero) { - arrayobject *__pyx_v_op = NULL -#line 128 "array.pxd" -; +#line 64 "root_numpy/tmva/src/data.pyx" + if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_weights.rcbuffer->pybuffer, (PyObject*)__pyx_v_weights, &__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) __PYX_ERR(1, 64, __pyx_L1_error) -#line 128 "array.pxd" - arrayobject *__pyx_r = NULL; +#line 64 "root_numpy/tmva/src/data.pyx" + } -#line 128 "array.pxd" - __Pyx_RefNannyDeclarations +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_pybuffernd_weights.diminfo[0].strides = __pyx_pybuffernd_weights.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_weights.diminfo[0].shape = __pyx_pybuffernd_weights.rcbuffer->pybuffer.shape[0]; -#line 128 "array.pxd" - PyObject *__pyx_t_1 = NULL; + /* "root_numpy/tmva/src/data.pyx":70 + * np.ndarray[np.double_t, ndim=1] weights=None, + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) # <<<<<<<<<<<<<< + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] + */ -#line 128 "array.pxd" - int __pyx_t_2; +#line 70 "root_numpy/tmva/src/data.pyx" + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 70, __pyx_L1_error) -#line 128 "array.pxd" - int __pyx_t_3; +#line 70 "root_numpy/tmva/src/data.pyx" + __pyx_v__obj = ((TMVA_Object *)__pyx_t_1); -#line 128 "array.pxd" - int __pyx_t_4; + /* "root_numpy/tmva/src/data.pyx":71 + * bool test=False): + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + * cdef long size = events.shape[0] # <<<<<<<<<<<<<< + * cdef long n_features = events.shape[1] + * cdef long n_targets = targets.shape[1] + */ -#line 128 "array.pxd" - __Pyx_RefNannySetupContext("clone", 0); +#line 71 "root_numpy/tmva/src/data.pyx" + __pyx_v_size = (__pyx_v_events->dimensions[0]); - /* "array.pxd":132 - * type will be same as template. - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) # <<<<<<<<<<<<<< - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + /* "root_numpy/tmva/src/data.pyx":72 + * cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] # <<<<<<<<<<<<<< + * cdef long n_targets = targets.shape[1] + * cdef long i, j */ -#line 132 "array.pxd" - __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_template)), __pyx_v_length, __pyx_v_template->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 132, __pyx_L1_error) +#line 72 "root_numpy/tmva/src/data.pyx" + __pyx_v_n_features = (__pyx_v_events->dimensions[1]); -#line 132 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); + /* "root_numpy/tmva/src/data.pyx":73 + * cdef long size = events.shape[0] + * cdef long n_features = events.shape[1] + * cdef long n_targets = targets.shape[1] # <<<<<<<<<<<<<< + * cdef long i, j + * cdef double weight = 1. + */ -#line 132 "array.pxd" - __pyx_v_op = ((arrayobject *)__pyx_t_1); +#line 73 "root_numpy/tmva/src/data.pyx" + __pyx_v_n_targets = (__pyx_v_targets->dimensions[1]); -#line 132 "array.pxd" - __pyx_t_1 = 0; + /* "root_numpy/tmva/src/data.pyx":75 + * cdef long n_targets = targets.shape[1] + * cdef long i, j + * cdef double weight = 1. # <<<<<<<<<<<<<< + * cdef vector[double]* event = new vector[double](n_features + n_targets) + * cdef ETreeType treetype = kTraining + */ - /* "array.pxd":133 - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: # <<<<<<<<<<<<<< - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op +#line 75 "root_numpy/tmva/src/data.pyx" + __pyx_v_weight = 1.; + + /* "root_numpy/tmva/src/data.pyx":76 + * cdef long i, j + * cdef double weight = 1. + * cdef vector[double]* event = new vector[double](n_features + n_targets) # <<<<<<<<<<<<<< + * cdef ETreeType treetype = kTraining + * if test: */ -#line 133 "array.pxd" - __pyx_t_3 = (__pyx_v_zero != 0); +#line 76 "root_numpy/tmva/src/data.pyx" + try { -#line 133 "array.pxd" - if (__pyx_t_3) { +#line 76 "root_numpy/tmva/src/data.pyx" + __pyx_t_2 = new std::vector ((__pyx_v_n_features + __pyx_v_n_targets)); -#line 133 "array.pxd" - } else { +#line 76 "root_numpy/tmva/src/data.pyx" + } catch(...) { -#line 133 "array.pxd" - __pyx_t_2 = __pyx_t_3; +#line 76 "root_numpy/tmva/src/data.pyx" + __Pyx_CppExn2PyErr(); -#line 133 "array.pxd" - goto __pyx_L4_bool_binop_done; +#line 76 "root_numpy/tmva/src/data.pyx" + __PYX_ERR(1, 76, __pyx_L1_error) -#line 133 "array.pxd" +#line 76 "root_numpy/tmva/src/data.pyx" } -#line 133 "array.pxd" - __pyx_t_3 = (((PyObject *)__pyx_v_op) != Py_None); +#line 76 "root_numpy/tmva/src/data.pyx" + __pyx_v_event = __pyx_t_2; -#line 133 "array.pxd" - __pyx_t_4 = (__pyx_t_3 != 0); + /* "root_numpy/tmva/src/data.pyx":77 + * cdef double weight = 1. + * cdef vector[double]* event = new vector[double](n_features + n_targets) + * cdef ETreeType treetype = kTraining # <<<<<<<<<<<<<< + * if test: + * treetype = kTesting + */ -#line 133 "array.pxd" - __pyx_t_2 = __pyx_t_4; +#line 77 "root_numpy/tmva/src/data.pyx" + __pyx_v_treetype = TMVA::Types::kTraining; -#line 133 "array.pxd" - __pyx_L4_bool_binop_done:; + /* "root_numpy/tmva/src/data.pyx":78 + * cdef vector[double]* event = new vector[double](n_features + n_targets) + * cdef ETreeType treetype = kTraining + * if test: # <<<<<<<<<<<<<< + * treetype = kTesting + * for i from 0 <= i < size: + */ -#line 133 "array.pxd" - if (__pyx_t_2) { +#line 78 "root_numpy/tmva/src/data.pyx" + __pyx_t_3 = (__pyx_v_test != 0); - /* "array.pxd":134 - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) # <<<<<<<<<<<<<< - * return op - * +#line 78 "root_numpy/tmva/src/data.pyx" + if (__pyx_t_3) { + + /* "root_numpy/tmva/src/data.pyx":79 + * cdef ETreeType treetype = kTraining + * if test: + * treetype = kTesting # <<<<<<<<<<<<<< + * for i from 0 <= i < size: + * if weights is not None: */ -#line 134 "array.pxd" - memset(__pyx_v_op->data.as_chars, 0, (__pyx_v_length * __pyx_v_op->ob_descr->itemsize)); +#line 79 "root_numpy/tmva/src/data.pyx" + __pyx_v_treetype = TMVA::Types::kTesting; - /* "array.pxd":133 - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: # <<<<<<<<<<<<<< - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op + /* "root_numpy/tmva/src/data.pyx":78 + * cdef vector[double]* event = new vector[double](n_features + n_targets) + * cdef ETreeType treetype = kTraining + * if test: # <<<<<<<<<<<<<< + * treetype = kTesting + * for i from 0 <= i < size: */ -#line 133 "array.pxd" +#line 78 "root_numpy/tmva/src/data.pyx" } - /* "array.pxd":135 - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op # <<<<<<<<<<<<<< - * - * cdef inline array copy(array self): + /* "root_numpy/tmva/src/data.pyx":80 + * if test: + * treetype = kTesting + * for i from 0 <= i < size: # <<<<<<<<<<<<<< + * if weights is not None: + * weight = weights[i] */ -#line 135 "array.pxd" - __Pyx_XDECREF(((PyObject *)__pyx_r)); +#line 80 "root_numpy/tmva/src/data.pyx" + __pyx_t_4 = __pyx_v_size; -#line 135 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_op)); +#line 80 "root_numpy/tmva/src/data.pyx" + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_4; __pyx_v_i++) { -#line 135 "array.pxd" - __pyx_r = __pyx_v_op; + /* "root_numpy/tmva/src/data.pyx":81 + * treetype = kTesting + * for i from 0 <= i < size: + * if weights is not None: # <<<<<<<<<<<<<< + * weight = weights[i] + * for j from 0 <= j < n_features: + */ -#line 135 "array.pxd" - goto __pyx_L0; +#line 81 "root_numpy/tmva/src/data.pyx" + __pyx_t_3 = (((PyObject *)__pyx_v_weights) != Py_None); - /* "array.pxd":128 - * - * - * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< - * """ fast creation of a new array, given a template array. - * type will be same as template. - */ +#line 81 "root_numpy/tmva/src/data.pyx" + __pyx_t_5 = (__pyx_t_3 != 0); -#line 128 "array.pxd" +#line 81 "root_numpy/tmva/src/data.pyx" + if (__pyx_t_5) { + /* "root_numpy/tmva/src/data.pyx":82 + * for i from 0 <= i < size: + * if weights is not None: + * weight = weights[i] # <<<<<<<<<<<<<< + * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] + */ -#line 128 "array.pxd" - /* function exit code */ +#line 82 "root_numpy/tmva/src/data.pyx" + __pyx_t_6 = __pyx_v_i; -#line 128 "array.pxd" - __pyx_L1_error:; +#line 82 "root_numpy/tmva/src/data.pyx" + __pyx_v_weight = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_weights.rcbuffer->pybuffer.buf, __pyx_t_6, __pyx_pybuffernd_weights.diminfo[0].strides)); -#line 128 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); + /* "root_numpy/tmva/src/data.pyx":81 + * treetype = kTesting + * for i from 0 <= i < size: + * if weights is not None: # <<<<<<<<<<<<<< + * weight = weights[i] + * for j from 0 <= j < n_features: + */ -#line 128 "array.pxd" - __Pyx_AddTraceback("cpython.array.clone", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 81 "root_numpy/tmva/src/data.pyx" + } -#line 128 "array.pxd" - __pyx_r = 0; + /* "root_numpy/tmva/src/data.pyx":83 + * if weights is not None: + * weight = weights[i] + * for j from 0 <= j < n_features: # <<<<<<<<<<<<<< + * event[0][j] = events[i, j] + * for j from 0 <= j < n_targets: + */ -#line 128 "array.pxd" - __pyx_L0:; +#line 83 "root_numpy/tmva/src/data.pyx" + __pyx_t_7 = __pyx_v_n_features; -#line 128 "array.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_op); +#line 83 "root_numpy/tmva/src/data.pyx" + for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_7; __pyx_v_j++) { -#line 128 "array.pxd" - __Pyx_XGIVEREF((PyObject *)__pyx_r); + /* "root_numpy/tmva/src/data.pyx":84 + * weight = weights[i] + * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] # <<<<<<<<<<<<<< + * for j from 0 <= j < n_targets: + * event[0][n_features + j] = targets[i, j] + */ -#line 128 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 84 "root_numpy/tmva/src/data.pyx" + __pyx_t_8 = __pyx_v_i; -#line 128 "array.pxd" - return __pyx_r; +#line 84 "root_numpy/tmva/src/data.pyx" + __pyx_t_9 = __pyx_v_j; -#line 128 "array.pxd" -} +#line 84 "root_numpy/tmva/src/data.pyx" + ((__pyx_v_event[0])[__pyx_v_j]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_events.rcbuffer->pybuffer.buf, __pyx_t_8, __pyx_pybuffernd_events.diminfo[0].strides, __pyx_t_9, __pyx_pybuffernd_events.diminfo[1].strides)); -/* "array.pxd":137 - * return op - * - * cdef inline array copy(array self): # <<<<<<<<<<<<<< - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) +#line 84 "root_numpy/tmva/src/data.pyx" + } + + /* "root_numpy/tmva/src/data.pyx":85 + * for j from 0 <= j < n_features: + * event[0][j] = events[i, j] + * for j from 0 <= j < n_targets: # <<<<<<<<<<<<<< + * event[0][n_features + j] = targets[i, j] + * _obj.AddEvent("Regression", treetype, event[0], weight) */ -#line 137 "array.pxd" +#line 85 "root_numpy/tmva/src/data.pyx" + __pyx_t_7 = __pyx_v_n_targets; +#line 85 "root_numpy/tmva/src/data.pyx" + for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_7; __pyx_v_j++) { -#line 137 "array.pxd" -static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_copy(arrayobject *__pyx_v_self) { - arrayobject *__pyx_v_op = NULL -#line 137 "array.pxd" -; + /* "root_numpy/tmva/src/data.pyx":86 + * event[0][j] = events[i, j] + * for j from 0 <= j < n_targets: + * event[0][n_features + j] = targets[i, j] # <<<<<<<<<<<<<< + * _obj.AddEvent("Regression", treetype, event[0], weight) + * del event + */ -#line 137 "array.pxd" - arrayobject *__pyx_r = NULL; +#line 86 "root_numpy/tmva/src/data.pyx" + __pyx_t_10 = __pyx_v_i; -#line 137 "array.pxd" - __Pyx_RefNannyDeclarations +#line 86 "root_numpy/tmva/src/data.pyx" + __pyx_t_11 = __pyx_v_j; -#line 137 "array.pxd" - PyObject *__pyx_t_1 = NULL; +#line 86 "root_numpy/tmva/src/data.pyx" + ((__pyx_v_event[0])[(__pyx_v_n_features + __pyx_v_j)]) = (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_double_t *, __pyx_pybuffernd_targets.rcbuffer->pybuffer.buf, __pyx_t_10, __pyx_pybuffernd_targets.diminfo[0].strides, __pyx_t_11, __pyx_pybuffernd_targets.diminfo[1].strides)); -#line 137 "array.pxd" - __Pyx_RefNannySetupContext("copy", 0); +#line 86 "root_numpy/tmva/src/data.pyx" + } - /* "array.pxd":139 - * cdef inline array copy(array self): - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) # <<<<<<<<<<<<<< - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) - * return op + /* "root_numpy/tmva/src/data.pyx":87 + * for j from 0 <= j < n_targets: + * event[0][n_features + j] = targets[i, j] + * _obj.AddEvent("Regression", treetype, event[0], weight) # <<<<<<<<<<<<<< + * del event */ -#line 139 "array.pxd" - __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_self)), Py_SIZE(((PyObject *)__pyx_v_self)), __pyx_v_self->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 139, __pyx_L1_error) - -#line 139 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 87 "root_numpy/tmva/src/data.pyx" + __pyx_t_12 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Regression); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 87, __pyx_L1_error) -#line 139 "array.pxd" - __pyx_v_op = ((arrayobject *)__pyx_t_1); +#line 87 "root_numpy/tmva/src/data.pyx" + __pyx_v__obj->AddEvent(__pyx_t_12, __pyx_v_treetype, (__pyx_v_event[0]), __pyx_v_weight); -#line 139 "array.pxd" - __pyx_t_1 = 0; +#line 87 "root_numpy/tmva/src/data.pyx" + } - /* "array.pxd":140 - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) # <<<<<<<<<<<<<< - * return op - * + /* "root_numpy/tmva/src/data.pyx":88 + * event[0][n_features + j] = targets[i, j] + * _obj.AddEvent("Regression", treetype, event[0], weight) + * del event # <<<<<<<<<<<<<< */ -#line 140 "array.pxd" - memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize)); +#line 88 "root_numpy/tmva/src/data.pyx" + delete __pyx_v_event; - /* "array.pxd":141 - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) - * return op # <<<<<<<<<<<<<< - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: + /* "root_numpy/tmva/src/data.pyx":64 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_regression( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 141 "array.pxd" - __Pyx_XDECREF(((PyObject *)__pyx_r)); +#line 64 "root_numpy/tmva/src/data.pyx" -#line 141 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_op)); -#line 141 "array.pxd" - __pyx_r = __pyx_v_op; +#line 64 "root_numpy/tmva/src/data.pyx" + /* function exit code */ -#line 141 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + +#line 64 "root_numpy/tmva/src/data.pyx" goto __pyx_L0; - /* "array.pxd":137 - * return op - * - * cdef inline array copy(array self): # <<<<<<<<<<<<<< - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - */ +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_L1_error:; -#line 137 "array.pxd" +#line 64 "root_numpy/tmva/src/data.pyx" + { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_PyThreadState_declare -#line 137 "array.pxd" - /* function exit code */ +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_PyThreadState_assign -#line 137 "array.pxd" - __pyx_L1_error:; +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); -#line 137 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); -#line 137 "array.pxd" - __Pyx_AddTraceback("cpython.array.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_targets.rcbuffer->pybuffer); -#line 137 "array.pxd" - __pyx_r = 0; +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); -#line 137 "array.pxd" - __pyx_L0:; +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);} -#line 137 "array.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_op); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_AddTraceback("_libtmvanumpy.add_events_regression", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 137 "array.pxd" - __Pyx_XGIVEREF((PyObject *)__pyx_r); +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_r = NULL; -#line 137 "array.pxd" - __Pyx_RefNannyFinishContext(); - -#line 137 "array.pxd" - return __pyx_r; - -#line 137 "array.pxd" -} - -/* "array.pxd":143 - * return op - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< - * """ efficent appending of new stuff of same type - * (e.g. of same array type) - */ - -#line 143 "array.pxd" - - -#line 143 "array.pxd" -static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *__pyx_v_self, char *__pyx_v_stuff, Py_ssize_t __pyx_v_n) { - Py_ssize_t __pyx_v_itemsize -#line 143 "array.pxd" -; - Py_ssize_t __pyx_v_origsize -#line 143 "array.pxd" -; - -#line 143 "array.pxd" - int __pyx_r; - -#line 143 "array.pxd" - __Pyx_RefNannyDeclarations +#line 64 "root_numpy/tmva/src/data.pyx" + goto __pyx_L2; -#line 143 "array.pxd" - int __pyx_t_1; +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_L0:; -#line 143 "array.pxd" - __Pyx_RefNannySetupContext("extend_buffer", 0); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_events.rcbuffer->pybuffer); - /* "array.pxd":147 - * (e.g. of same array type) - * n: number of elements (not number of bytes!) """ - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize # <<<<<<<<<<<<<< - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) - */ +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_targets.rcbuffer->pybuffer); -#line 147 "array.pxd" - __pyx_t_1 = __pyx_v_self->ob_descr->itemsize; +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_weights.rcbuffer->pybuffer); -#line 147 "array.pxd" - __pyx_v_itemsize = __pyx_t_1; +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_L2:; - /* "array.pxd":148 - * n: number of elements (not number of bytes!) """ - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize - * cdef Py_ssize_t origsize = Py_SIZE(self) # <<<<<<<<<<<<<< - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - */ +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_XGIVEREF(__pyx_r); -#line 148 "array.pxd" - __pyx_v_origsize = Py_SIZE(((PyObject *)__pyx_v_self)); +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); - /* "array.pxd":149 - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) # <<<<<<<<<<<<<< - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - * return 0 - */ +#line 64 "root_numpy/tmva/src/data.pyx" + return __pyx_r; -#line 149 "array.pxd" - __pyx_t_1 = resize_smart(__pyx_v_self, (__pyx_v_origsize + __pyx_v_n)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(2, 149, __pyx_L1_error) +#line 64 "root_numpy/tmva/src/data.pyx" +} - /* "array.pxd":150 - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) # <<<<<<<<<<<<<< - * return 0 +/* "array.pxd":91 + * __data_union data * + * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fullfill the PEP. */ -#line 150 "array.pxd" - memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize)); - - /* "array.pxd":151 - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - * return 0 # <<<<<<<<<<<<<< - * - * cdef inline int extend(array self, array other) except -1: - */ +#line 91 "array.pxd" -#line 151 "array.pxd" - __pyx_r = 0; -#line 151 "array.pxd" - goto __pyx_L0; +#line 91 "array.pxd" +/* Python wrapper */ - /* "array.pxd":143 - * return op - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< - * """ efficent appending of new stuff of same type - * (e.g. of same array type) - */ +#line 91 "array.pxd" +static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ -#line 143 "array.pxd" +#line 91 "array.pxd" +static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { +#line 91 "array.pxd" + int __pyx_r; -#line 143 "array.pxd" - /* function exit code */ +#line 91 "array.pxd" + __Pyx_RefNannyDeclarations -#line 143 "array.pxd" - __pyx_L1_error:; +#line 91 "array.pxd" + __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); + __pyx_r = +#line 91 "array.pxd" +__pyx_pf_7cpython_5array_5array___getbuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); -#line 143 "array.pxd" - __Pyx_AddTraceback("cpython.array.extend_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 91 "array.pxd" -#line 143 "array.pxd" - __pyx_r = -1; -#line 143 "array.pxd" - __pyx_L0:; +#line 91 "array.pxd" + /* function exit code */ -#line 143 "array.pxd" +#line 91 "array.pxd" __Pyx_RefNannyFinishContext(); -#line 143 "array.pxd" +#line 91 "array.pxd" return __pyx_r; -#line 143 "array.pxd" +#line 91 "array.pxd" } -/* "array.pxd":153 - * return 0 - * - * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: - */ - -#line 153 "array.pxd" +#line 91 "array.pxd" -#line 153 "array.pxd" -static CYTHON_INLINE int __pyx_f_7cpython_5array_extend(arrayobject *__pyx_v_self, arrayobject *__pyx_v_other) { +#line 91 "array.pxd" +static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags) { + PyObject *__pyx_v_item_count = NULL +#line 91 "array.pxd" +; -#line 153 "array.pxd" +#line 91 "array.pxd" int __pyx_r; -#line 153 "array.pxd" +#line 91 "array.pxd" __Pyx_RefNannyDeclarations -#line 153 "array.pxd" - int __pyx_t_1; +#line 91 "array.pxd" + PyObject *__pyx_t_1 = NULL; -#line 153 "array.pxd" - int __pyx_t_2; +#line 91 "array.pxd" + char *__pyx_t_2; -#line 153 "array.pxd" - __Pyx_RefNannySetupContext("extend", 0); +#line 91 "array.pxd" + int __pyx_t_3; - /* "array.pxd":155 - * cdef inline int extend(array self, array other) except -1: - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - */ +#line 91 "array.pxd" + PyObject *__pyx_t_4 = NULL; -#line 155 "array.pxd" - __pyx_t_1 = ((__pyx_v_self->ob_descr->typecode != __pyx_v_other->ob_descr->typecode) != 0); +#line 91 "array.pxd" + Py_ssize_t __pyx_t_5; -#line 155 "array.pxd" - if (__pyx_t_1) { +#line 91 "array.pxd" + int __pyx_t_6; - /* "array.pxd":156 - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: - * PyErr_BadArgument() # <<<<<<<<<<<<<< - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - * - */ +#line 91 "array.pxd" + __Pyx_RefNannySetupContext("__getbuffer__", 0); -#line 156 "array.pxd" - __pyx_t_2 = PyErr_BadArgument(); if (unlikely(__pyx_t_2 == 0)) __PYX_ERR(2, 156, __pyx_L1_error) +#line 91 "array.pxd" + if (__pyx_v_info != NULL) { - /* "array.pxd":155 - * cdef inline int extend(array self, array other) except -1: - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - */ +#line 91 "array.pxd" + __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); -#line 155 "array.pxd" +#line 91 "array.pxd" + __Pyx_GIVEREF(__pyx_v_info->obj); + +#line 91 "array.pxd" } - /* "array.pxd":157 - * if self.ob_descr.typecode != other.ob_descr.typecode: - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) # <<<<<<<<<<<<<< + /* "array.pxd":96 + * # In particular strided access is always provided regardless + * # of flags + * item_count = Py_SIZE(self) # <<<<<<<<<<<<<< * - * cdef inline void zero(array self): + * info.suboffsets = NULL */ -#line 157 "array.pxd" - __pyx_t_2 = __pyx_f_7cpython_5array_extend_buffer(__pyx_v_self, __pyx_v_other->data.as_chars, Py_SIZE(((PyObject *)__pyx_v_other))); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(2, 157, __pyx_L1_error) +#line 96 "array.pxd" + __pyx_t_1 = PyInt_FromSsize_t(Py_SIZE(((PyObject *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 96, __pyx_L1_error) -#line 157 "array.pxd" - __pyx_r = __pyx_t_2; +#line 96 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 157 "array.pxd" - goto __pyx_L0; +#line 96 "array.pxd" + __pyx_v_item_count = __pyx_t_1; - /* "array.pxd":153 - * return 0 +#line 96 "array.pxd" + __pyx_t_1 = 0; + + /* "array.pxd":98 + * item_count = Py_SIZE(self) * - * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: + * info.suboffsets = NULL # <<<<<<<<<<<<<< + * info.buf = self.data.as_chars + * info.readonly = 0 */ -#line 153 "array.pxd" - +#line 98 "array.pxd" + __pyx_v_info->suboffsets = NULL; -#line 153 "array.pxd" - /* function exit code */ + /* "array.pxd":99 + * + * info.suboffsets = NULL + * info.buf = self.data.as_chars # <<<<<<<<<<<<<< + * info.readonly = 0 + * info.ndim = 1 + */ -#line 153 "array.pxd" - __pyx_L1_error:; +#line 99 "array.pxd" + __pyx_t_2 = __pyx_v_self->data.as_chars; -#line 153 "array.pxd" - __Pyx_AddTraceback("cpython.array.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 99 "array.pxd" + __pyx_v_info->buf = __pyx_t_2; -#line 153 "array.pxd" - __pyx_r = -1; + /* "array.pxd":100 + * info.suboffsets = NULL + * info.buf = self.data.as_chars + * info.readonly = 0 # <<<<<<<<<<<<<< + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + */ -#line 153 "array.pxd" - __pyx_L0:; +#line 100 "array.pxd" + __pyx_v_info->readonly = 0; -#line 153 "array.pxd" - __Pyx_RefNannyFinishContext(); + /* "array.pxd":101 + * info.buf = self.data.as_chars + * info.readonly = 0 + * info.ndim = 1 # <<<<<<<<<<<<<< + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + * info.len = info.itemsize * item_count + */ -#line 153 "array.pxd" - return __pyx_r; +#line 101 "array.pxd" + __pyx_v_info->ndim = 1; -#line 153 "array.pxd" -} + /* "array.pxd":102 + * info.readonly = 0 + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) # <<<<<<<<<<<<<< + * info.len = info.itemsize * item_count + * + */ -/* "array.pxd":159 - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) +#line 102 "array.pxd" + __pyx_t_3 = __pyx_v_self->ob_descr->itemsize; + +#line 102 "array.pxd" + __pyx_v_info->itemsize = __pyx_t_3; + + /* "array.pxd":103 + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + * info.len = info.itemsize * item_count # <<<<<<<<<<<<<< * - * cdef inline void zero(array self): # <<<<<<<<<<<<<< - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) */ -#line 159 "array.pxd" +#line 103 "array.pxd" + __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_info->itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 103, __pyx_L1_error) +#line 103 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 159 "array.pxd" -static CYTHON_INLINE void __pyx_f_7cpython_5array_zero(arrayobject *__pyx_v_self) { +#line 103 "array.pxd" + __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_v_item_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 103, __pyx_L1_error) -#line 159 "array.pxd" - __Pyx_RefNannyDeclarations +#line 103 "array.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 159 "array.pxd" - __Pyx_RefNannySetupContext("zero", 0); +#line 103 "array.pxd" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "array.pxd":161 - * cdef inline void zero(array self): - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) # <<<<<<<<<<<<<< +#line 103 "array.pxd" + __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 103, __pyx_L1_error) + +#line 103 "array.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 103 "array.pxd" + __pyx_v_info->len = __pyx_t_5; + + /* "array.pxd":105 + * info.len = info.itemsize * item_count + * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) # <<<<<<<<<<<<<< + * if not info.shape: + * raise MemoryError() */ -#line 161 "array.pxd" - memset(__pyx_v_self->data.as_chars, 0, (Py_SIZE(((PyObject *)__pyx_v_self)) * __pyx_v_self->ob_descr->itemsize)); +#line 105 "array.pxd" + __pyx_v_info->shape = ((Py_ssize_t *)PyObject_Malloc(((sizeof(Py_ssize_t)) + 2))); - /* "array.pxd":159 - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + /* "array.pxd":106 * - * cdef inline void zero(array self): # <<<<<<<<<<<<<< - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: # <<<<<<<<<<<<<< + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing */ -#line 159 "array.pxd" +#line 106 "array.pxd" + __pyx_t_6 = ((!(__pyx_v_info->shape != 0)) != 0); +#line 106 "array.pxd" + if (__pyx_t_6) { -#line 159 "array.pxd" - /* function exit code */ + /* "array.pxd":107 + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: + * raise MemoryError() # <<<<<<<<<<<<<< + * info.shape[0] = item_count # constant regardless of resizing + * info.strides = &info.itemsize + */ -#line 159 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 107 "array.pxd" + PyErr_NoMemory(); __PYX_ERR(2, 107, __pyx_L1_error) -#line 159 "array.pxd" -} + /* "array.pxd":106 + * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: # <<<<<<<<<<<<<< + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing + */ -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":197 - * # experimental exception made for __getbuffer__ and __releasebuffer__ - * # -- the details of this may change. - * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. +#line 106 "array.pxd" + } + + /* "array.pxd":108 + * if not info.shape: + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing # <<<<<<<<<<<<<< + * info.strides = &info.itemsize + * */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 108 "array.pxd" + __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_item_count); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 108, __pyx_L1_error) +#line 108 "array.pxd" + (__pyx_v_info->shape[0]) = __pyx_t_5; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -/* Python wrapper */ + /* "array.pxd":109 + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing + * info.strides = &info.itemsize # <<<<<<<<<<<<<< + * + * info.format = (info.shape + 1) + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ +#line 109 "array.pxd" + __pyx_v_info->strides = (&__pyx_v_info->itemsize); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { + /* "array.pxd":111 + * info.strides = &info.itemsize + * + * info.format = (info.shape + 1) # <<<<<<<<<<<<<< + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 111 "array.pxd" + __pyx_v_info->format = ((char *)(__pyx_v_info->shape + 1)); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations + /* "array.pxd":112 + * + * info.format = (info.shape + 1) + * info.format[0] = self.ob_descr.typecode # <<<<<<<<<<<<<< + * info.format[1] = 0 + * info.obj = self + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); - __pyx_r = -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -__pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); +#line 112 "array.pxd" + __pyx_t_3 = __pyx_v_self->ob_descr->typecode; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 112 "array.pxd" + (__pyx_v_info->format[0]) = __pyx_t_3; + /* "array.pxd":113 + * info.format = (info.shape + 1) + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 # <<<<<<<<<<<<<< + * info.obj = self + * + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 113 "array.pxd" + (__pyx_v_info->format[1]) = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); + /* "array.pxd":114 + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 + * info.obj = self # <<<<<<<<<<<<<< + * + * def __releasebuffer__(self, Py_buffer* info): + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 114 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_self)); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 114 "array.pxd" + __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 114 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); +#line 114 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { - int __pyx_v_copy_shape -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_i -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_ndim -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_endian_detector -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_little_endian -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_t -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - char *__pyx_v_f -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyArray_Descr *__pyx_v_descr = 0 -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_offset -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_hasfields -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; +#line 114 "array.pxd" + __pyx_v_info->obj = ((PyObject *)__pyx_v_self); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; + /* "array.pxd":91 + * __data_union data + * + * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fullfill the PEP. + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 91 "array.pxd" -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_2; +#line 91 "array.pxd" + /* function exit code */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 91 "array.pxd" + __pyx_r = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_4; +#line 91 "array.pxd" + goto __pyx_L0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_5; +#line 91 "array.pxd" + __pyx_L1_error:; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; +#line 91 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_t_7; +#line 91 "array.pxd" + __Pyx_XDECREF(__pyx_t_4); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__getbuffer__", 0); +#line 91 "array.pxd" + __Pyx_AddTraceback("cpython.array.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL) { +#line 91 "array.pxd" + __pyx_r = -1; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); +#line 91 "array.pxd" + if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_v_info->obj); +#line 91 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 91 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; + +#line 91 "array.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":203 - * # of flags - * - * if info == NULL: return # <<<<<<<<<<<<<< - * - * cdef int copy_shape, i, ndim - */ +#line 91 "array.pxd" + goto __pyx_L2; -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((__pyx_v_info == NULL) != 0); +#line 91 "array.pxd" + __pyx_L0:; -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 91 "array.pxd" + if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 91 "array.pxd" + __Pyx_GOTREF(Py_None); -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 91 "array.pxd" + __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 91 "array.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":206 - * - * cdef int copy_shape, i, ndim - * cdef int endian_detector = 1 # <<<<<<<<<<<<<< - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * - */ - -#line 206 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_endian_detector = 1; +#line 91 "array.pxd" + __pyx_L2:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":207 - * cdef int copy_shape, i, ndim - * cdef int endian_detector = 1 - * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< - * - * ndim = PyArray_NDIM(self) - */ +#line 91 "array.pxd" + __Pyx_XDECREF(__pyx_v_item_count); -#line 207 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); +#line 91 "array.pxd" + __Pyx_RefNannyFinishContext(); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":209 - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * - * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< - * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - */ +#line 91 "array.pxd" + return __pyx_r; -#line 209 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); +#line 91 "array.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 - * ndim = PyArray_NDIM(self) +/* "array.pxd":116 + * info.obj = self + * + * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< + * PyObject_Free(info.shape) * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * copy_shape = 1 - * else: */ -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); - -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 116 "array.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":212 - * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * copy_shape = 1 # <<<<<<<<<<<<<< - * else: - * copy_shape = 0 - */ -#line 212 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_copy_shape = 1; +#line 116 "array.pxd" +/* Python wrapper */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 - * ndim = PyArray_NDIM(self) - * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * copy_shape = 1 - * else: - */ +#line 116 "array.pxd" +static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L4; +#line 116 "array.pxd" +static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 116 "array.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":214 - * copy_shape = 1 - * else: - * copy_shape = 0 # <<<<<<<<<<<<<< - * - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) - */ +#line 116 "array.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 116 "array.pxd" + __pyx_pf_7cpython_5array_5array_2__releasebuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_copy_shape = 0; +#line 116 "array.pxd" -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L4:; +#line 116 "array.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 - * copy_shape = 0 - * - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< - * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): - * raise ValueError(u"ndarray is not C contiguous") - */ +#line 116 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0); +#line 116 "array.pxd" +} -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 116 "array.pxd" -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 116 "array.pxd" +static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L6_bool_binop_done; +#line 116 "array.pxd" + __Pyx_RefNannyDeclarations -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 116 "array.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":217 + /* "array.pxd":117 * - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) - * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): # <<<<<<<<<<<<<< - * raise ValueError(u"ndarray is not C contiguous") + * def __releasebuffer__(self, Py_buffer* info): + * PyObject_Free(info.shape) # <<<<<<<<<<<<<< * + * array newarrayobject(PyTypeObject* type, Py_ssize_t size, arraydescr *descr) */ -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0); +#line 117 "array.pxd" + PyObject_Free(__pyx_v_info->shape); -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* "array.pxd":116 + * info.obj = self + * + * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< + * PyObject_Free(info.shape) + * + */ + +#line 116 "array.pxd" + + +#line 116 "array.pxd" + /* function exit code */ + +#line 116 "array.pxd" + __Pyx_RefNannyFinishContext(); + +#line 116 "array.pxd" +} + +/* "array.pxd":128 + * + * + * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< + * """ fast creation of a new array, given a template array. + * type will be same as template. + */ + +#line 128 "array.pxd" + + +#line 128 "array.pxd" +static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_clone(arrayobject *__pyx_v_template, Py_ssize_t __pyx_v_length, int __pyx_v_zero) { + arrayobject *__pyx_v_op = NULL +#line 128 "array.pxd" +; + +#line 128 "array.pxd" + arrayobject *__pyx_r = NULL; + +#line 128 "array.pxd" + __Pyx_RefNannyDeclarations + +#line 128 "array.pxd" + PyObject *__pyx_t_1 = NULL; + +#line 128 "array.pxd" + int __pyx_t_2; + +#line 128 "array.pxd" + int __pyx_t_3; + +#line 128 "array.pxd" + int __pyx_t_4; + +#line 128 "array.pxd" + __Pyx_RefNannySetupContext("clone", 0); + + /* "array.pxd":132 + * type will be same as template. + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) # <<<<<<<<<<<<<< + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + */ + +#line 132 "array.pxd" + __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_template)), __pyx_v_length, __pyx_v_template->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 132, __pyx_L1_error) + +#line 132 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); + +#line 132 "array.pxd" + __pyx_v_op = ((arrayobject *)__pyx_t_1); + +#line 132 "array.pxd" + __pyx_t_1 = 0; + + /* "array.pxd":133 + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: # <<<<<<<<<<<<<< + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op + */ + +#line 133 "array.pxd" + __pyx_t_3 = (__pyx_v_zero != 0); + +#line 133 "array.pxd" + if (__pyx_t_3) { + +#line 133 "array.pxd" + } else { + +#line 133 "array.pxd" + __pyx_t_2 = __pyx_t_3; + +#line 133 "array.pxd" + goto __pyx_L4_bool_binop_done; + +#line 133 "array.pxd" + } + +#line 133 "array.pxd" + __pyx_t_3 = (((PyObject *)__pyx_v_op) != Py_None); + +#line 133 "array.pxd" + __pyx_t_4 = (__pyx_t_3 != 0); + +#line 133 "array.pxd" + __pyx_t_2 = __pyx_t_4; + +#line 133 "array.pxd" + __pyx_L4_bool_binop_done:; + +#line 133 "array.pxd" + if (__pyx_t_2) { + + /* "array.pxd":134 + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) # <<<<<<<<<<<<<< + * return op + * + */ + +#line 134 "array.pxd" + memset(__pyx_v_op->data.as_chars, 0, (__pyx_v_length * __pyx_v_op->ob_descr->itemsize)); + + /* "array.pxd":133 + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: # <<<<<<<<<<<<<< + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op + */ + +#line 133 "array.pxd" + } + + /* "array.pxd":135 + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op # <<<<<<<<<<<<<< + * + * cdef inline array copy(array self): + */ + +#line 135 "array.pxd" + __Pyx_XDECREF(((PyObject *)__pyx_r)); + +#line 135 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_op)); + +#line 135 "array.pxd" + __pyx_r = __pyx_v_op; + +#line 135 "array.pxd" + goto __pyx_L0; + + /* "array.pxd":128 + * + * + * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< + * """ fast creation of a new array, given a template array. + * type will be same as template. + */ + +#line 128 "array.pxd" + + +#line 128 "array.pxd" + /* function exit code */ + +#line 128 "array.pxd" + __pyx_L1_error:; + +#line 128 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); + +#line 128 "array.pxd" + __Pyx_AddTraceback("cpython.array.clone", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 128 "array.pxd" + __pyx_r = 0; + +#line 128 "array.pxd" + __pyx_L0:; + +#line 128 "array.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_op); + +#line 128 "array.pxd" + __Pyx_XGIVEREF((PyObject *)__pyx_r); + +#line 128 "array.pxd" + __Pyx_RefNannyFinishContext(); + +#line 128 "array.pxd" + return __pyx_r; + +#line 128 "array.pxd" +} + +/* "array.pxd":137 + * return op + * + * cdef inline array copy(array self): # <<<<<<<<<<<<<< + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + */ + +#line 137 "array.pxd" + + +#line 137 "array.pxd" +static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_copy(arrayobject *__pyx_v_self) { + arrayobject *__pyx_v_op = NULL +#line 137 "array.pxd" +; + +#line 137 "array.pxd" + arrayobject *__pyx_r = NULL; + +#line 137 "array.pxd" + __Pyx_RefNannyDeclarations + +#line 137 "array.pxd" + PyObject *__pyx_t_1 = NULL; + +#line 137 "array.pxd" + __Pyx_RefNannySetupContext("copy", 0); + + /* "array.pxd":139 + * cdef inline array copy(array self): + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) # <<<<<<<<<<<<<< + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) + * return op + */ + +#line 139 "array.pxd" + __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_self)), Py_SIZE(((PyObject *)__pyx_v_self)), __pyx_v_self->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 139, __pyx_L1_error) + +#line 139 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); + +#line 139 "array.pxd" + __pyx_v_op = ((arrayobject *)__pyx_t_1); + +#line 139 "array.pxd" + __pyx_t_1 = 0; + + /* "array.pxd":140 + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) # <<<<<<<<<<<<<< + * return op + * + */ + +#line 140 "array.pxd" + memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize)); + + /* "array.pxd":141 + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) + * return op # <<<<<<<<<<<<<< + * + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: + */ + +#line 141 "array.pxd" + __Pyx_XDECREF(((PyObject *)__pyx_r)); + +#line 141 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_op)); + +#line 141 "array.pxd" + __pyx_r = __pyx_v_op; + +#line 141 "array.pxd" + goto __pyx_L0; + + /* "array.pxd":137 + * return op + * + * cdef inline array copy(array self): # <<<<<<<<<<<<<< + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + */ + +#line 137 "array.pxd" + + +#line 137 "array.pxd" + /* function exit code */ + +#line 137 "array.pxd" + __pyx_L1_error:; + +#line 137 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); + +#line 137 "array.pxd" + __Pyx_AddTraceback("cpython.array.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 137 "array.pxd" + __pyx_r = 0; + +#line 137 "array.pxd" + __pyx_L0:; + +#line 137 "array.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_op); + +#line 137 "array.pxd" + __Pyx_XGIVEREF((PyObject *)__pyx_r); + +#line 137 "array.pxd" + __Pyx_RefNannyFinishContext(); + +#line 137 "array.pxd" + return __pyx_r; + +#line 137 "array.pxd" +} + +/* "array.pxd":143 + * return op + * + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< + * """ efficent appending of new stuff of same type + * (e.g. of same array type) + */ + +#line 143 "array.pxd" + + +#line 143 "array.pxd" +static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *__pyx_v_self, char *__pyx_v_stuff, Py_ssize_t __pyx_v_n) { + Py_ssize_t __pyx_v_itemsize +#line 143 "array.pxd" +; + Py_ssize_t __pyx_v_origsize +#line 143 "array.pxd" +; + +#line 143 "array.pxd" + int __pyx_r; + +#line 143 "array.pxd" + __Pyx_RefNannyDeclarations + +#line 143 "array.pxd" + int __pyx_t_1; + +#line 143 "array.pxd" + __Pyx_RefNannySetupContext("extend_buffer", 0); + + /* "array.pxd":147 + * (e.g. of same array type) + * n: number of elements (not number of bytes!) """ + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize # <<<<<<<<<<<<<< + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) + */ + +#line 147 "array.pxd" + __pyx_t_1 = __pyx_v_self->ob_descr->itemsize; + +#line 147 "array.pxd" + __pyx_v_itemsize = __pyx_t_1; + + /* "array.pxd":148 + * n: number of elements (not number of bytes!) """ + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize + * cdef Py_ssize_t origsize = Py_SIZE(self) # <<<<<<<<<<<<<< + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + */ + +#line 148 "array.pxd" + __pyx_v_origsize = Py_SIZE(((PyObject *)__pyx_v_self)); + + /* "array.pxd":149 + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) # <<<<<<<<<<<<<< + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + * return 0 + */ + +#line 149 "array.pxd" + __pyx_t_1 = resize_smart(__pyx_v_self, (__pyx_v_origsize + __pyx_v_n)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(2, 149, __pyx_L1_error) + + /* "array.pxd":150 + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) # <<<<<<<<<<<<<< + * return 0 + * + */ + +#line 150 "array.pxd" + memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize)); + + /* "array.pxd":151 + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + * return 0 # <<<<<<<<<<<<<< + * + * cdef inline int extend(array self, array other) except -1: + */ + +#line 151 "array.pxd" + __pyx_r = 0; + +#line 151 "array.pxd" + goto __pyx_L0; + + /* "array.pxd":143 + * return op + * + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< + * """ efficent appending of new stuff of same type + * (e.g. of same array type) + */ + +#line 143 "array.pxd" + + +#line 143 "array.pxd" + /* function exit code */ + +#line 143 "array.pxd" + __pyx_L1_error:; + +#line 143 "array.pxd" + __Pyx_AddTraceback("cpython.array.extend_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 143 "array.pxd" + __pyx_r = -1; + +#line 143 "array.pxd" + __pyx_L0:; + +#line 143 "array.pxd" + __Pyx_RefNannyFinishContext(); + +#line 143 "array.pxd" + return __pyx_r; + +#line 143 "array.pxd" +} + +/* "array.pxd":153 + * return 0 + * + * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: + */ + +#line 153 "array.pxd" + + +#line 153 "array.pxd" +static CYTHON_INLINE int __pyx_f_7cpython_5array_extend(arrayobject *__pyx_v_self, arrayobject *__pyx_v_other) { + +#line 153 "array.pxd" + int __pyx_r; + +#line 153 "array.pxd" + __Pyx_RefNannyDeclarations + +#line 153 "array.pxd" + int __pyx_t_1; + +#line 153 "array.pxd" + int __pyx_t_2; + +#line 153 "array.pxd" + __Pyx_RefNannySetupContext("extend", 0); + + /* "array.pxd":155 + * cdef inline int extend(array self, array other) except -1: + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + */ + +#line 155 "array.pxd" + __pyx_t_1 = ((__pyx_v_self->ob_descr->typecode != __pyx_v_other->ob_descr->typecode) != 0); + +#line 155 "array.pxd" + if (__pyx_t_1) { + + /* "array.pxd":156 + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: + * PyErr_BadArgument() # <<<<<<<<<<<<<< + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * + */ + +#line 156 "array.pxd" + __pyx_t_2 = PyErr_BadArgument(); if (unlikely(__pyx_t_2 == 0)) __PYX_ERR(2, 156, __pyx_L1_error) + + /* "array.pxd":155 + * cdef inline int extend(array self, array other) except -1: + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + */ + +#line 155 "array.pxd" + } + + /* "array.pxd":157 + * if self.ob_descr.typecode != other.ob_descr.typecode: + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) # <<<<<<<<<<<<<< + * + * cdef inline void zero(array self): + */ + +#line 157 "array.pxd" + __pyx_t_2 = __pyx_f_7cpython_5array_extend_buffer(__pyx_v_self, __pyx_v_other->data.as_chars, Py_SIZE(((PyObject *)__pyx_v_other))); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(2, 157, __pyx_L1_error) + +#line 157 "array.pxd" + __pyx_r = __pyx_t_2; + +#line 157 "array.pxd" + goto __pyx_L0; + + /* "array.pxd":153 + * return 0 + * + * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: + */ + +#line 153 "array.pxd" + + +#line 153 "array.pxd" + /* function exit code */ + +#line 153 "array.pxd" + __pyx_L1_error:; + +#line 153 "array.pxd" + __Pyx_AddTraceback("cpython.array.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 153 "array.pxd" + __pyx_r = -1; + +#line 153 "array.pxd" + __pyx_L0:; + +#line 153 "array.pxd" + __Pyx_RefNannyFinishContext(); + +#line 153 "array.pxd" + return __pyx_r; + +#line 153 "array.pxd" +} + +/* "array.pxd":159 + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * + * cdef inline void zero(array self): # <<<<<<<<<<<<<< + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + */ + +#line 159 "array.pxd" + + +#line 159 "array.pxd" +static CYTHON_INLINE void __pyx_f_7cpython_5array_zero(arrayobject *__pyx_v_self) { + +#line 159 "array.pxd" + __Pyx_RefNannyDeclarations + +#line 159 "array.pxd" + __Pyx_RefNannySetupContext("zero", 0); + + /* "array.pxd":161 + * cdef inline void zero(array self): + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) # <<<<<<<<<<<<<< + */ + +#line 161 "array.pxd" + memset(__pyx_v_self->data.as_chars, 0, (Py_SIZE(((PyObject *)__pyx_v_self)) * __pyx_v_self->ob_descr->itemsize)); + + /* "array.pxd":159 + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * + * cdef inline void zero(array self): # <<<<<<<<<<<<<< + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + */ + +#line 159 "array.pxd" + + +#line 159 "array.pxd" + /* function exit code */ + +#line 159 "array.pxd" + __Pyx_RefNannyFinishContext(); + +#line 159 "array.pxd" +} + +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":197 + * # experimental exception made for __getbuffer__ and __releasebuffer__ + * # -- the details of this may change. + * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fullfill the PEP. + */ + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +/* Python wrapper */ + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); + __pyx_r = +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +__pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { + int __pyx_v_copy_shape +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_i +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_ndim +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_endian_detector +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_little_endian +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_t +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + char *__pyx_v_f +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyArray_Descr *__pyx_v_descr = 0 +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_offset +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_hasfields +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_2; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_5; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_t_7; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__getbuffer__", 0); + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info != NULL) { + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_v_info->obj); + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":203 + * # of flags + * + * if info == NULL: return # <<<<<<<<<<<<<< + * + * cdef int copy_shape, i, ndim + */ + +#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = ((__pyx_v_info == NULL) != 0); + +#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + +#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; + +#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + +#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":206 + * + * cdef int copy_shape, i, ndim + * cdef int endian_detector = 1 # <<<<<<<<<<<<<< + * cdef bint little_endian = ((&endian_detector)[0] != 0) + * + */ + +#line 206 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_endian_detector = 1; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":207 + * cdef int copy_shape, i, ndim + * cdef int endian_detector = 1 + * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< + * + * ndim = PyArray_NDIM(self) + */ + +#line 207 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":209 + * cdef bint little_endian = ((&endian_detector)[0] != 0) + * + * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< + * + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + */ + +#line 209 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 + * ndim = PyArray_NDIM(self) + * + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * copy_shape = 1 + * else: + */ + +#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); + +#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":212 + * + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * copy_shape = 1 # <<<<<<<<<<<<<< + * else: + * copy_shape = 0 + */ + +#line 212 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_copy_shape = 1; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 + * ndim = PyArray_NDIM(self) + * + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * copy_shape = 1 + * else: + */ + +#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L4; + +#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":214 + * copy_shape = 1 + * else: + * copy_shape = 0 # <<<<<<<<<<<<<< + * + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) + */ + +#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { + +#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_copy_shape = 0; + +#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L4:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 + * copy_shape = 0 + * + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< + * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): + * raise ValueError(u"ndarray is not C contiguous") + */ + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0); + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L6_bool_binop_done; + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":217 + * + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) + * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): # <<<<<<<<<<<<<< + * raise ValueError(u"ndarray is not C contiguous") + * + */ + +#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0); + +#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L6_bool_binop_done:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 + * copy_shape = 0 + * + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< + * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): + * raise ValueError(u"ndarray is not C contiguous") + */ + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":218 + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) + * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): + * raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<< + * + * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) + */ + +#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 218, __pyx_L1_error) + +#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); + +#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + +#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 218, __pyx_L1_error) + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 + * copy_shape = 0 + * + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< + * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): + * raise ValueError(u"ndarray is not C contiguous") + */ + +#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 + * raise ValueError(u"ndarray is not C contiguous") + * + * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< + * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): + * raise ValueError(u"ndarray is not Fortran contiguous") + */ + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0); + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L9_bool_binop_done; + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":221 + * + * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) + * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): # <<<<<<<<<<<<<< + * raise ValueError(u"ndarray is not Fortran contiguous") + * + */ + +#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0); + +#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L9_bool_binop_done:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 + * raise ValueError(u"ndarray is not C contiguous") + * + * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< + * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): + * raise ValueError(u"ndarray is not Fortran contiguous") + */ + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":222 + * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) + * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): + * raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<< + * + * info.buf = PyArray_DATA(self) + */ + +#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 222, __pyx_L1_error) + +#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); + +#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + +#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 222, __pyx_L1_error) + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 + * raise ValueError(u"ndarray is not C contiguous") + * + * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< + * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): + * raise ValueError(u"ndarray is not Fortran contiguous") + */ + +#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":224 + * raise ValueError(u"ndarray is not Fortran contiguous") + * + * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< + * info.ndim = ndim + * if copy_shape: + */ + +#line 224 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":225 + * + * info.buf = PyArray_DATA(self) + * info.ndim = ndim # <<<<<<<<<<<<<< + * if copy_shape: + * # Allocate new buffer for strides and shape info. + */ + +#line 225 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->ndim = __pyx_v_ndim; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":226 + * info.buf = PyArray_DATA(self) + * info.ndim = ndim + * if copy_shape: # <<<<<<<<<<<<<< + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + */ + +#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (__pyx_v_copy_shape != 0); + +#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":229 + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) # <<<<<<<<<<<<<< + * info.shape = info.strides + ndim + * for i in range(ndim): + */ + +#line 229 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2))); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":230 + * # This is allocated as one block, strides first. + * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) + * info.shape = info.strides + ndim # <<<<<<<<<<<<<< + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] + */ + +#line 230 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 + * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) + * info.shape = info.strides + ndim + * for i in range(ndim): # <<<<<<<<<<<<<< + * info.strides[i] = PyArray_STRIDES(self)[i] + * info.shape[i] = PyArray_DIMS(self)[i] + */ + +#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __pyx_v_ndim; + +#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { + +#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_i = __pyx_t_5; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":232 + * info.shape = info.strides + ndim + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<< + * info.shape[i] = PyArray_DIMS(self)[i] + * else: + */ + +#line 232 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":233 + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] + * info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<< + * else: + * info.strides = PyArray_STRIDES(self) + */ + +#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); + +#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":226 + * info.buf = PyArray_DATA(self) + * info.ndim = ndim + * if copy_shape: # <<<<<<<<<<<<<< + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + */ + +#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L11; + +#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":235 + * info.shape[i] = PyArray_DIMS(self)[i] + * else: + * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL + */ + +#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { + +#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":236 + * else: + * info.strides = PyArray_STRIDES(self) + * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) + */ + +#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self)); + +#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L11:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 + * info.strides = PyArray_STRIDES(self) + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL # <<<<<<<<<<<<<< + * info.itemsize = PyArray_ITEMSIZE(self) + * info.readonly = not PyArray_ISWRITEABLE(self) + */ + +#line 237 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->suboffsets = NULL; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":238 + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< + * info.readonly = not PyArray_ISWRITEABLE(self) + * + */ + +#line 238 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":239 + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) + * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< + * + * cdef int t + */ + +#line 239 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0)); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":242 + * + * cdef int t + * cdef char* f = NULL # <<<<<<<<<<<<<< + * cdef dtype descr = self.descr + * cdef int offset + */ + +#line 242 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = NULL; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":243 + * cdef int t + * cdef char* f = NULL + * cdef dtype descr = self.descr # <<<<<<<<<<<<<< + * cdef int offset + * + */ + +#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = ((PyObject *)__pyx_v_self->descr); + +#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_3); + +#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3); + +#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":246 + * cdef int offset + * + * cdef bint hasfields = PyDataType_HASFIELDS(descr) # <<<<<<<<<<<<<< + * + * if not hasfields and not copy_shape: + */ + +#line 246 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 + * cdef bint hasfields = PyDataType_HASFIELDS(descr) + * + * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< + * # do not call releasebuffer + * info.obj = None + */ + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(__pyx_v_hasfields != 0)) != 0); + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15_bool_binop_done; + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(__pyx_v_copy_shape != 0)) != 0); + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __pyx_t_1 = __pyx_t_2; -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L6_bool_binop_done:; +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L15_bool_binop_done:; + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":250 + * if not hasfields and not copy_shape: + * # do not call releasebuffer + * info.obj = None # <<<<<<<<<<<<<< + * else: + * # need to call releasebuffer + */ + +#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(Py_None); + +#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(Py_None); + +#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); + +#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); + +#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->obj = Py_None; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 + * cdef bint hasfields = PyDataType_HASFIELDS(descr) + * + * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< + * # do not call releasebuffer + * info.obj = None + */ + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L14; + +#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":253 + * else: + * # need to call releasebuffer + * info.obj = self # <<<<<<<<<<<<<< + * + * if not hasfields: + */ + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_self)); + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->obj = ((PyObject *)__pyx_v_self); + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L14:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 + * info.obj = self + * + * if not hasfields: # <<<<<<<<<<<<<< + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or + */ + +#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0); + +#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":256 + * + * if not hasfields: + * t = descr.type_num # <<<<<<<<<<<<<< + * if ((descr.byteorder == c'>' and little_endian) or + * (descr.byteorder == c'<' and not little_endian)): + */ + +#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __pyx_v_descr->type_num; + +#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_t = __pyx_t_4; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 + * if not hasfields: + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (descr.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") + */ + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0); + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_2) { + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L20_next_or; + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (__pyx_v_little_endian != 0); + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_2) { + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L19_bool_binop_done; + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L20_next_or:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or + * (descr.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<< + * raise ValueError(u"Non-native byte order not supported") + * if t == NPY_BYTE: f = "b" + */ + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0); + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L19_bool_binop_done; + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0); + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; + +#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L19_bool_binop_done:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 + * if not hasfields: + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (descr.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") + */ + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 + * if ((descr.byteorder == c'>' and little_endian) or + * (descr.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< + * if t == NPY_BYTE: f = "b" + * elif t == NPY_UBYTE: f = "B" + */ + +#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 259, __pyx_L1_error) + +#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); + +#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + +#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 259, __pyx_L1_error) + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 + * if not hasfields: + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (descr.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") + */ + +#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":260 + * (descr.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") + * if t == NPY_BYTE: f = "b" # <<<<<<<<<<<<<< + * elif t == NPY_UBYTE: f = "B" + * elif t == NPY_SHORT: f = "h" + */ + +#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + switch (__pyx_v_t) { + +#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_BYTE: + +#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"b"); + +#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 + * raise ValueError(u"Non-native byte order not supported") + * if t == NPY_BYTE: f = "b" + * elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<< + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" + */ + +#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_UBYTE: + +#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"B"); + +#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":262 + * if t == NPY_BYTE: f = "b" + * elif t == NPY_UBYTE: f = "B" + * elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<< + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" + */ + +#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_SHORT: + +#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"h"); + +#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 + * elif t == NPY_UBYTE: f = "B" + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<< + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" + */ + +#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_USHORT: + +#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"H"); + +#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":264 + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<< + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" + */ + +#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_INT: + +#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"i"); + +#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<< + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" + */ + +#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_UINT: + +#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"I"); + +#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<< + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" + */ + +#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONG: + +#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"l"); + +#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":267 + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<< + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" + */ + +#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_ULONG: + +#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"L"); + +#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<< + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" + */ + +#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONGLONG: + +#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"q"); + +#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":269 + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<< + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" + */ + +#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_ULONGLONG: - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 - * copy_shape = 0 - * - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< - * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): - * raise ValueError(u"ndarray is not C contiguous") - */ +#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Q"); -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":218 - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) - * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): - * raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<< - * - * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<< + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" */ -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 218, __pyx_L1_error) +#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_FLOAT: -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"f"); -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<< + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" + */ -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 218, __pyx_L1_error) +#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_DOUBLE: - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 - * copy_shape = 0 - * - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< - * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): - * raise ValueError(u"ndarray is not C contiguous") - */ +#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"d"); -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 - * raise ValueError(u"ndarray is not C contiguous") - * - * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< - * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): - * raise ValueError(u"ndarray is not Fortran contiguous") + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<< + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" */ -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0); +#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONGDOUBLE: -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"g"); -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":273 + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<< + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" + */ -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L9_bool_binop_done; +#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CFLOAT: -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zf"); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":221 - * - * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) - * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): # <<<<<<<<<<<<<< - * raise ValueError(u"ndarray is not Fortran contiguous") - * +#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<< + * elif t == NPY_CLONGDOUBLE: f = "Zg" + * elif t == NPY_OBJECT: f = "O" */ -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0); +#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CDOUBLE: -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zd"); -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L9_bool_binop_done:; +#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 - * raise ValueError(u"ndarray is not C contiguous") - * - * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< - * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): - * raise ValueError(u"ndarray is not Fortran contiguous") + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<< + * elif t == NPY_OBJECT: f = "O" + * else: */ -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CLONGDOUBLE: - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":222 - * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) - * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): - * raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<< - * - * info.buf = PyArray_DATA(self) - */ +#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zg"); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 222, __pyx_L1_error) +#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" + * elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<< + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + */ -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_OBJECT: -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"O"); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 222, __pyx_L1_error) +#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 - * raise ValueError(u"ndarray is not C contiguous") - * - * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< - * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): - * raise ValueError(u"ndarray is not Fortran contiguous") +#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + default: + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 + * elif t == NPY_OBJECT: f = "O" + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< + * info.format = f + * return */ -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 278, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":224 - * raise ValueError(u"ndarray is not Fortran contiguous") - * - * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< - * info.ndim = ndim - * if copy_shape: - */ +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 224 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 278, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":225 - * - * info.buf = PyArray_DATA(self) - * info.ndim = ndim # <<<<<<<<<<<<<< - * if copy_shape: - * # Allocate new buffer for strides and shape info. - */ +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 225 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->ndim = __pyx_v_ndim; +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":226 - * info.buf = PyArray_DATA(self) - * info.ndim = ndim - * if copy_shape: # <<<<<<<<<<<<<< - * # Allocate new buffer for strides and shape info. - * # This is allocated as one block, strides first. - */ +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 278, __pyx_L1_error) -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (__pyx_v_copy_shape != 0); +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_t_6); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":229 - * # Allocate new buffer for strides and shape info. - * # This is allocated as one block, strides first. - * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) # <<<<<<<<<<<<<< - * info.shape = info.strides + ndim - * for i in range(ndim): - */ +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); -#line 229 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2))); +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":230 - * # This is allocated as one block, strides first. - * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) - * info.shape = info.strides + ndim # <<<<<<<<<<<<<< - * for i in range(ndim): - * info.strides[i] = PyArray_STRIDES(self)[i] - */ +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 278, __pyx_L1_error) -#line 230 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 - * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) - * info.shape = info.strides + ndim - * for i in range(ndim): # <<<<<<<<<<<<<< - * info.strides[i] = PyArray_STRIDES(self)[i] - * info.shape[i] = PyArray_DIMS(self)[i] - */ +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __pyx_v_ndim; +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_6, 0, 0, 0); -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_i = __pyx_t_5; +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 278, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":232 - * info.shape = info.strides + ndim - * for i in range(ndim): - * info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<< - * info.shape[i] = PyArray_DIMS(self)[i] +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + +#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * info.format = f # <<<<<<<<<<<<<< + * return * else: */ -#line 232 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); +#line 279 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->format = __pyx_v_f; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":233 - * for i in range(ndim): - * info.strides[i] = PyArray_STRIDES(self)[i] - * info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<< + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * info.format = f + * return # <<<<<<<<<<<<<< * else: - * info.strides = PyArray_STRIDES(self) + * info.format = stdlib.malloc(_buffer_format_string_len) */ -#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); +#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":226 - * info.buf = PyArray_DATA(self) - * info.ndim = ndim - * if copy_shape: # <<<<<<<<<<<<<< - * # Allocate new buffer for strides and shape info. - * # This is allocated as one block, strides first. + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 + * info.obj = self + * + * if not hasfields: # <<<<<<<<<<<<<< + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or */ -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L11; - -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":235 - * info.shape[i] = PyArray_DIMS(self)[i] + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":282 + * return * else: - * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL + * info.format = stdlib.malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< + * info.format[0] = c'^' # Native data types, manual alignment + * offset = 0 */ -#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" /*else*/ { -#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); +#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->format = ((char *)malloc(0xFF)); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":236 + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 * else: - * info.strides = PyArray_STRIDES(self) - * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) + * info.format = stdlib.malloc(_buffer_format_string_len) + * info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<< + * offset = 0 + * f = _util_dtypestring(descr, info.format + 1, */ -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self)); +#line 283 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->format[0]) = '^'; -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 + * info.format = stdlib.malloc(_buffer_format_string_len) + * info.format[0] = c'^' # Native data types, manual alignment + * offset = 0 # <<<<<<<<<<<<<< + * f = _util_dtypestring(descr, info.format + 1, + * info.format + _buffer_format_string_len, + */ -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L11:; +#line 284 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_offset = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 - * info.strides = PyArray_STRIDES(self) - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL # <<<<<<<<<<<<<< - * info.itemsize = PyArray_ITEMSIZE(self) - * info.readonly = not PyArray_ISWRITEABLE(self) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":285 + * info.format[0] = c'^' # Native data types, manual alignment + * offset = 0 + * f = _util_dtypestring(descr, info.format + 1, # <<<<<<<<<<<<<< + * info.format + _buffer_format_string_len, + * &offset) */ -#line 237 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->suboffsets = NULL; +#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_7 == NULL)) __PYX_ERR(3, 285, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":238 - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< - * info.readonly = not PyArray_ISWRITEABLE(self) +#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = __pyx_t_7; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":288 + * info.format + _buffer_format_string_len, + * &offset) + * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< * + * def __releasebuffer__(ndarray self, Py_buffer* info): */ -#line 238 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); +#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = '\x00'; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":239 - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) - * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< - * - * cdef int t +#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":197 + * # experimental exception made for __getbuffer__ and __releasebuffer__ + * # -- the details of this may change. + * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fullfill the PEP. */ -#line 239 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0)); +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":242 - * - * cdef int t - * cdef char* f = NULL # <<<<<<<<<<<<<< - * cdef dtype descr = self.descr - * cdef int offset - */ -#line 242 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = NULL; +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":243 - * cdef int t - * cdef char* f = NULL - * cdef dtype descr = self.descr # <<<<<<<<<<<<<< - * cdef int offset - * - */ +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = ((PyObject *)__pyx_v_self->descr); +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_3); +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3); +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":246 - * cdef int offset - * - * cdef bint hasfields = PyDataType_HASFIELDS(descr) # <<<<<<<<<<<<<< - * - * if not hasfields and not copy_shape: - */ +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 246 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr); +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 - * cdef bint hasfields = PyDataType_HASFIELDS(descr) - * - * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< - * # do not call releasebuffer - * info.obj = None - */ +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_hasfields != 0)) != 0); +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L2; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(Py_None); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15_bool_binop_done; +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_copy_shape != 0)) != 0); +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L2:; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_descr); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L15_bool_binop_done:; +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":250 - * if not hasfields and not copy_shape: - * # do not call releasebuffer - * info.obj = None # <<<<<<<<<<<<<< - * else: - * # need to call releasebuffer +#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 + * f[0] = c'\0' # Terminate format string + * + * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< + * if PyArray_HASFIELDS(self): + * stdlib.free(info.format) */ -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(Py_None); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(Py_None); -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +/* Python wrapper */ -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = Py_None; +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 - * cdef bint hasfields = PyDataType_HASFIELDS(descr) - * - * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< - * # do not call releasebuffer - * info.obj = None - */ +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L14; +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":253 - * else: - * # need to call releasebuffer - * info.obj = self # <<<<<<<<<<<<<< - * - * if not hasfields: - */ +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_self)); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = ((PyObject *)__pyx_v_self); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L14:; +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 - * info.obj = self +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; + +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__", 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 * - * if not hasfields: # <<<<<<<<<<<<<< - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< + * stdlib.free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0); +#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0); -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":256 - * - * if not hasfields: - * t = descr.type_num # <<<<<<<<<<<<<< - * if ((descr.byteorder == c'>' and little_endian) or - * (descr.byteorder == c'<' and not little_endian)): + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): + * stdlib.free(info.format) # <<<<<<<<<<<<<< + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * stdlib.free(info.strides) */ -#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __pyx_v_descr->type_num; - -#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_t = __pyx_t_4; +#line 292 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + free(__pyx_v_info->format); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 - * if not hasfields: - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (descr.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 + * + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< + * stdlib.free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0); +#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_2) { + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 + * if PyArray_HASFIELDS(self): + * stdlib.free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * stdlib.free(info.strides) + * # info.shape was stored after info.strides in the same block + */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L20_next_or; +#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 + * stdlib.free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * stdlib.free(info.strides) # <<<<<<<<<<<<<< + * # info.shape was stored after info.strides in the same block + * + */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (__pyx_v_little_endian != 0); +#line 294 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + free(__pyx_v_info->strides); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_2) { + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 + * if PyArray_HASFIELDS(self): + * stdlib.free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * stdlib.free(info.strides) + * # info.shape was stored after info.strides in the same block + */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 + * f[0] = c'\0' # Terminate format string + * + * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< + * if PyArray_HASFIELDS(self): + * stdlib.free(info.format) + */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L19_bool_binop_done; +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L20_next_or:; +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or - * (descr.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<< - * raise ValueError(u"Non-native byte order not supported") - * if t == NPY_BYTE: f = "b" - */ +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0); +#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 + * ctypedef npy_cdouble complex_t + * + * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(1, a) + * + */ -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L19_bool_binop_done; +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0); +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L19_bool_binop_done:; +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 - * if not hasfields: - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (descr.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":771 + * + * cdef inline object PyArray_MultiIterNew1(a): + * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew2(a, b): */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 - * if ((descr.byteorder == c'>' and little_endian) or - * (descr.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< - * if t == NPY_BYTE: f = "b" - * elif t == NPY_UBYTE: f = "B" - */ +#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 259, __pyx_L1_error) +#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 771, __pyx_L1_error) -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 259, __pyx_L1_error) +#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 - * if not hasfields: - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (descr.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 + * ctypedef npy_cdouble complex_t + * + * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(1, a) + * */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":260 - * (descr.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") - * if t == NPY_BYTE: f = "b" # <<<<<<<<<<<<<< - * elif t == NPY_UBYTE: f = "B" - * elif t == NPY_SHORT: f = "h" - */ -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - switch (__pyx_v_t) { +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_BYTE: +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"b"); +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 - * raise ValueError(u"Non-native byte order not supported") - * if t == NPY_BYTE: f = "b" - * elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<< - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" - */ +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_UBYTE: +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"B"); +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":262 - * if t == NPY_BYTE: f = "b" - * elif t == NPY_UBYTE: f = "B" - * elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<< - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; + +#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 + * return PyArray_MultiIterNew(1, a) + * + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, b) + * */ -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_SHORT: +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"h"); -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 - * elif t == NPY_UBYTE: f = "B" - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<< - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" - */ +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_USHORT: +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"H"); +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":264 - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<< - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":774 + * + * cdef inline object PyArray_MultiIterNew2(a, b): + * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): */ -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_INT: - -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"i"); +#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 774, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<< - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" - */ +#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_UINT: +#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"I"); +#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<< - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 + * return PyArray_MultiIterNew(1, a) + * + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, b) + * */ -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONG: +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"l"); -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":267 - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<< - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" - */ +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; + +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_ULONG: +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"L"); +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<< - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" - */ +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONGLONG: +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"q"); +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":269 - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<< - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 + * return PyArray_MultiIterNew(2, a, b) + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, c) + * */ -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_ULONGLONG: +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Q"); -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<< - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" - */ +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_FLOAT: +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"f"); +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<< - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":777 + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): + * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): */ -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_DOUBLE: - -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"d"); +#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 777, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<< - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" - */ +#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONGDOUBLE: +#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"g"); +#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":273 - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<< - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 + * return PyArray_MultiIterNew(2, a, b) + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, c) + * */ -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CFLOAT: +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zf"); -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<< - * elif t == NPY_CLONGDOUBLE: f = "Zg" - * elif t == NPY_OBJECT: f = "O" - */ +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CDOUBLE: +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zd"); +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<< - * elif t == NPY_OBJECT: f = "O" - * else: - */ +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CLONGDOUBLE: +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zg"); +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" - * elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<< - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - */ +#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_OBJECT: +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 + * return PyArray_MultiIterNew(3, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, d) + * + */ -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"O"); +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - default: +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 - * elif t == NPY_OBJECT: f = "O" - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< - * info.format = f - * return - */ +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 278, __pyx_L1_error) +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 278, __pyx_L1_error) +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":780 + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): + * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): + */ -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 278, __pyx_L1_error) +#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 780, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_t_6); +#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); +#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = 0; +#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 278, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 + * return PyArray_MultiIterNew(3, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, d) + * + */ -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_6, 0, 0, 0); +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 278, __pyx_L1_error) +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * info.format = f # <<<<<<<<<<<<<< - * return - * else: - */ +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 279 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->format = __pyx_v_f; +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * info.format = f - * return # <<<<<<<<<<<<<< - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) - */ +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 - * info.obj = self +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 + * return PyArray_MultiIterNew(4, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, e) * - * if not hasfields: # <<<<<<<<<<<<<< - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or */ -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":282 - * return - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< - * info.format[0] = c'^' # Native data types, manual alignment - * offset = 0 - */ -#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { -#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->format = ((char *)malloc(0xFF)); +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) - * info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<< - * offset = 0 - * f = _util_dtypestring(descr, info.format + 1, - */ +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 283 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->format[0]) = '^'; +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 - * info.format = stdlib.malloc(_buffer_format_string_len) - * info.format[0] = c'^' # Native data types, manual alignment - * offset = 0 # <<<<<<<<<<<<<< - * f = _util_dtypestring(descr, info.format + 1, - * info.format + _buffer_format_string_len, +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":783 + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): + * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: */ -#line 284 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_offset = 0; +#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":285 - * info.format[0] = c'^' # Native data types, manual alignment - * offset = 0 - * f = _util_dtypestring(descr, info.format + 1, # <<<<<<<<<<<<<< - * info.format + _buffer_format_string_len, - * &offset) - */ +#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 783, __pyx_L1_error) -#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_7 == NULL)) __PYX_ERR(3, 285, __pyx_L1_error) +#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = __pyx_t_7; +#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":288 - * info.format + _buffer_format_string_len, - * &offset) - * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< +#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; + +#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 + * return PyArray_MultiIterNew(4, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, e) * - * def __releasebuffer__(ndarray self, Py_buffer* info): */ -#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = '\x00'; +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":197 - * # experimental exception made for __getbuffer__ and __releasebuffer__ - * # -- the details of this may change. - * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. - */ +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __pyx_r = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; +#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< + * # Recursive utility function used in __getbuffer__ to get format + * # string. The new location in the format string is returned. + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) { + PyArray_Descr *__pyx_v_child = 0 +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_endian_detector +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_little_endian +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_fields = 0 +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_childname = NULL +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_new_offset = NULL +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_t = NULL +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L2; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_r; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(Py_None); +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_ssize_t __pyx_t_2; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_4 = NULL; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L2:; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_5; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_descr); +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_6; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_7; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + long __pyx_t_8; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_t_9; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 - * f[0] = c'\0' # Terminate format string +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("_util_dtypestring", 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 * - * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) + * cdef dtype child + * cdef int endian_detector = 1 # <<<<<<<<<<<<<< + * cdef bint little_endian = ((&endian_detector)[0] != 0) + * cdef tuple fields */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 790 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_endian_detector = 1; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 + * cdef dtype child + * cdef int endian_detector = 1 + * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< + * cdef tuple fields + * + */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -/* Python wrapper */ +#line 791 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 + * cdef tuple fields + * + * for childname in descr.names: # <<<<<<<<<<<<<< + * fields = descr.fields[childname] + * child, new_offset = fields + */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_v_descr->names == Py_None)) { -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 794, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + for (;;) { -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(3, 794, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #else +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 794, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #endif -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__", 0); +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":795 * - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - */ - -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0); - -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) # <<<<<<<<<<<<<< - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * stdlib.free(info.strides) - */ - -#line 292 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - free(__pyx_v_info->format); - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 + * for childname in descr.names: + * fields = descr.fields[childname] # <<<<<<<<<<<<<< + * child, new_offset = fields * - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_v_descr->fields == Py_None)) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * stdlib.free(info.strides) - * # info.shape was stored after info.strides in the same block - */ +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 795, __pyx_L1_error) -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * stdlib.free(info.strides) # <<<<<<<<<<<<<< - * # info.shape was stored after info.strides in the same block - * - */ +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 795, __pyx_L1_error) -#line 294 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - free(__pyx_v_info->strides); +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * stdlib.free(info.strides) - * # info.shape was stored after info.strides in the same block - */ +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(3, 795, __pyx_L1_error) -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3)); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 - * f[0] = c'\0' # Terminate format string +#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 + * for childname in descr.names: + * fields = descr.fields[childname] + * child, new_offset = fields # <<<<<<<<<<<<<< * - * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) + * if (end - f) - (new_offset - offset[0]) < 15: */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (likely(__pyx_v_fields != Py_None)) { -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject* sequence = __pyx_v_fields; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #if !CYTHON_COMPILING_IN_PYPY -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 - * ctypedef npy_cdouble complex_t - * - * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(1, a) - * - */ +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_ssize_t size = Py_SIZE(sequence); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #else +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_ssize_t size = PySequence_Size(sequence); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #endif -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(size != 2)) { -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (size > 2) __Pyx_RaiseTooManyValuesError(2); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 796, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":771 - * - * cdef inline object PyArray_MultiIterNew1(a): - * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< - * - * cdef inline object PyArray_MultiIterNew2(a, b): - */ +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 771, __pyx_L1_error) +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_3); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_4); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #else - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 - * ctypedef npy_cdouble complex_t - * - * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(1, a) - * - */ +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 796, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 796, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #endif -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(3, 796, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(3, 796, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3)); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = 0; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 - * return PyArray_MultiIterNew(1, a) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 + * child, new_offset = fields * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, b) + * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 798, __pyx_L1_error) +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 798, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 798, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":774 +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0); + +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 * - * cdef inline object PyArray_MultiIterNew2(a, b): - * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< + * if (end - f) - (new_offset - offset[0]) < 15: + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<< * - * cdef inline object PyArray_MultiIterNew3(a, b, c): + * if ((child.byteorder == c'>' and little_endian) or */ -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); - -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 774, __pyx_L1_error) +#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 799, __pyx_L1_error) -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 799, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 - * return PyArray_MultiIterNew(1, a) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 + * child, new_offset = fields * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, b) + * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") + * + * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (child.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") + */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_7) { -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_next_or; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = (__pyx_v_little_endian != 0); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_7) { -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 - * return PyArray_MultiIterNew(2, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, c) +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_next_or:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 * + * if ((child.byteorder == c'>' and little_endian) or + * (child.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<< + * raise ValueError(u"Non-native byte order not supported") + * # One could encode it in the format string and have Cython */ -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0); + +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_7) { +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0); -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":777 - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): - * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< +#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L7_bool_binop_done:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): + * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (child.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") */ -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 777, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803 + * if ((child.byteorder == c'>' and little_endian) or + * (child.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< + * # One could encode it in the format string and have Cython + * # complain instead, BUT: < and > in format strings also imply + */ -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 803, __pyx_L1_error) -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 - * return PyArray_MultiIterNew(2, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, c) +#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 803, __pyx_L1_error) + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * + * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (child.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") */ -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 + * + * # Output padding bytes + * while offset[0] < new_offset: # <<<<<<<<<<<<<< + * f[0] = 120 # "x"; pad byte + * f += 1 + */ -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + while (1) { -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 813, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 813, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 813, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_6) break; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 + * # Output padding bytes + * while offset[0] < new_offset: + * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< + * f += 1 + * offset[0] += 1 + */ -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 814 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x78; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 - * return PyArray_MultiIterNew(3, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, d) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":815 + * while offset[0] < new_offset: + * f[0] = 120 # "x"; pad byte + * f += 1 # <<<<<<<<<<<<<< + * offset[0] += 1 * */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { +#line 815 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":816 + * f[0] = 120 # "x"; pad byte + * f += 1 + * offset[0] += 1 # <<<<<<<<<<<<<< + * + * offset[0] += child.itemsize + */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); +#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":780 + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":818 + * offset[0] += 1 * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): - * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< + * offset[0] += child.itemsize # <<<<<<<<<<<<<< * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): + * if not PyDataType_HASFIELDS(child): */ -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); - -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 780, __pyx_L1_error) +#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = 0; -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize); -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 + * offset[0] += child.itemsize + * + * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< + * t = child.type_num + * if end - f < 5: + */ -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0); -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 - * return PyArray_MultiIterNew(3, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, d) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 * + * if not PyDataType_HASFIELDS(child): + * t = child.type_num # <<<<<<<<<<<<<< + * if end - f < 5: + * raise RuntimeError(u"Format string allocated too short.") */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 821, __pyx_L1_error) +#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 + * if not PyDataType_HASFIELDS(child): + * t = child.type_num + * if end - f < 5: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short.") + * + */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823 + * t = child.type_num + * if end - f < 5: + * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< + * + * # Until ticket #99 is fixed, use integers to avoid warnings + */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 823, __pyx_L1_error) + +#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_4, 0, 0, 0); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 823, __pyx_L1_error) -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 - * return PyArray_MultiIterNew(4, a, b, c, d) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 + * if not PyDataType_HASFIELDS(child): + * t = child.type_num + * if end - f < 5: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short.") * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, e) + */ + +#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":826 * + * # Until ticket #99 is fixed, use integers to avoid warnings + * if t == NPY_BYTE: f[0] = 98 #"b" # <<<<<<<<<<<<<< + * elif t == NPY_UBYTE: f[0] = 66 #"B" + * elif t == NPY_SHORT: f[0] = 104 #"h" */ -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 826, __pyx_L1_error) +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 826, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 826, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":783 - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): - * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< - * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: - */ +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 98; -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 783, __pyx_L1_error) +#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 + * # Until ticket #99 is fixed, use integers to avoid warnings + * if t == NPY_BYTE: f[0] = 98 #"b" + * elif t == NPY_UBYTE: f[0] = 66 #"B" # <<<<<<<<<<<<<< + * elif t == NPY_SHORT: f[0] = 104 #"h" + * elif t == NPY_USHORT: f[0] = 72 #"H" + */ -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 827, __pyx_L1_error) -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 827, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 - * return PyArray_MultiIterNew(4, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * - */ +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 827, __pyx_L1_error) +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 66; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":828 + * if t == NPY_BYTE: f[0] = 98 #"b" + * elif t == NPY_UBYTE: f[0] = 66 #"B" + * elif t == NPY_SHORT: f[0] = 104 #"h" # <<<<<<<<<<<<<< + * elif t == NPY_USHORT: f[0] = 72 #"H" + * elif t == NPY_INT: f[0] = 105 #"i" + */ -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 828, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 828, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 828, __pyx_L1_error) -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< - * # Recursive utility function used in __getbuffer__ to get format - * # string. The new location in the format string is returned. - */ +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x68; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) { - PyArray_Descr *__pyx_v_child = 0 -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_endian_detector -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_little_endian -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_fields = 0 -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_childname = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_new_offset = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_t = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_r; +#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":829 + * elif t == NPY_UBYTE: f[0] = 66 #"B" + * elif t == NPY_SHORT: f[0] = 104 #"h" + * elif t == NPY_USHORT: f[0] = 72 #"H" # <<<<<<<<<<<<<< + * elif t == NPY_INT: f[0] = 105 #"i" + * elif t == NPY_UINT: f[0] = 73 #"I" + */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 829, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t __pyx_t_2; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 829, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_4 = NULL; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_5; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 829, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_6; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_7; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - long __pyx_t_8; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 72; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_t_9; +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("_util_dtypestring", 0); +#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 - * - * cdef dtype child - * cdef int endian_detector = 1 # <<<<<<<<<<<<<< - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * cdef tuple fields + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 + * elif t == NPY_SHORT: f[0] = 104 #"h" + * elif t == NPY_USHORT: f[0] = 72 #"H" + * elif t == NPY_INT: f[0] = 105 #"i" # <<<<<<<<<<<<<< + * elif t == NPY_UINT: f[0] = 73 #"I" + * elif t == NPY_LONG: f[0] = 108 #"l" */ -#line 790 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_endian_detector = 1; +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 830, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 - * cdef dtype child - * cdef int endian_detector = 1 - * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< - * cdef tuple fields - * - */ +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 791 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 830, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 - * cdef tuple fields - * - * for childname in descr.names: # <<<<<<<<<<<<<< - * fields = descr.fields[childname] - * child, new_offset = fields - */ +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(__pyx_v_descr->names == Py_None)) { +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 830, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 794, __pyx_L1_error) +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x69; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - for (;;) { +#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 + * elif t == NPY_USHORT: f[0] = 72 #"H" + * elif t == NPY_INT: f[0] = 105 #"i" + * elif t == NPY_UINT: f[0] = 73 #"I" # <<<<<<<<<<<<<< + * elif t == NPY_LONG: f[0] = 108 #"l" + * elif t == NPY_ULONG: f[0] = 76 #"L" + */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_COMPILING_IN_CPYTHON +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 831, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(3, 794, __pyx_L1_error) +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 831, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 794, __pyx_L1_error) +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 831, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3); +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 73; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":795 - * - * for childname in descr.names: - * fields = descr.fields[childname] # <<<<<<<<<<<<<< - * child, new_offset = fields - * +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; + +#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":832 + * elif t == NPY_INT: f[0] = 105 #"i" + * elif t == NPY_UINT: f[0] = 73 #"I" + * elif t == NPY_LONG: f[0] = 108 #"l" # <<<<<<<<<<<<<< + * elif t == NPY_ULONG: f[0] = 76 #"L" + * elif t == NPY_LONGLONG: f[0] = 113 #"q" */ -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(__pyx_v_descr->fields == Py_None)) { +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 832, __pyx_L1_error) -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 795, __pyx_L1_error) +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 832, __pyx_L1_error) -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 795, __pyx_L1_error) +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 832, __pyx_L1_error) -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(3, 795, __pyx_L1_error) +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3)); +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x6C; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 - * for childname in descr.names: - * fields = descr.fields[childname] - * child, new_offset = fields # <<<<<<<<<<<<<< - * - * if (end - f) - (new_offset - offset[0]) < 15: +#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 + * elif t == NPY_UINT: f[0] = 73 #"I" + * elif t == NPY_LONG: f[0] = 108 #"l" + * elif t == NPY_ULONG: f[0] = 76 #"L" # <<<<<<<<<<<<<< + * elif t == NPY_LONGLONG: f[0] = 113 #"q" + * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (likely(__pyx_v_fields != Py_None)) { +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 833, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject* sequence = __pyx_v_fields; +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_COMPILING_IN_CPYTHON +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 833, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t size = Py_SIZE(sequence); +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 833, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t size = PySequence_Size(sequence); +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(size != 2)) { +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 76; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (size > 2) __Pyx_RaiseTooManyValuesError(2); +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); +#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 796, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 + * elif t == NPY_LONG: f[0] = 108 #"l" + * elif t == NPY_ULONG: f[0] = 76 #"L" + * elif t == NPY_LONGLONG: f[0] = 113 #"q" # <<<<<<<<<<<<<< + * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" + * elif t == NPY_FLOAT: f[0] = 102 #"f" + */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 834, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_COMPILING_IN_CPYTHON +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 834, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_3); +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 834, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_4); +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 796, __pyx_L1_error) +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x71; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 796, __pyx_L1_error) +#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":835 + * elif t == NPY_ULONG: f[0] = 76 #"L" + * elif t == NPY_LONGLONG: f[0] = 113 #"q" + * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" # <<<<<<<<<<<<<< + * elif t == NPY_FLOAT: f[0] = 102 #"f" + * elif t == NPY_DOUBLE: f[0] = 100 #"d" + */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 835, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(3, 796, __pyx_L1_error) +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 835, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(3, 796, __pyx_L1_error) +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 835, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3)); +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4); +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 81; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = 0; +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 - * child, new_offset = fields - * - * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") - * +#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 + * elif t == NPY_LONGLONG: f[0] = 113 #"q" + * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" + * elif t == NPY_FLOAT: f[0] = 102 #"f" # <<<<<<<<<<<<<< + * elif t == NPY_DOUBLE: f[0] = 100 #"d" + * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" */ -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 798, __pyx_L1_error) +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 836, __pyx_L1_error) -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 798, __pyx_L1_error) +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 836, __pyx_L1_error) -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 836, __pyx_L1_error) -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 798, __pyx_L1_error) +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0); +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x66; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 - * - * if (end - f) - (new_offset - offset[0]) < 15: - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<< - * - * if ((child.byteorder == c'>' and little_endian) or +#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 + * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" + * elif t == NPY_FLOAT: f[0] = 102 #"f" + * elif t == NPY_DOUBLE: f[0] = 100 #"d" # <<<<<<<<<<<<<< + * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" + * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf */ -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 799, __pyx_L1_error) +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 837, __pyx_L1_error) -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_t_3); -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 837, __pyx_L1_error) -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 799, __pyx_L1_error) +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 837, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 - * child, new_offset = fields - * - * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") - * - */ +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") - * - * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (child.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") - */ +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x64; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0); +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_7) { +#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L8_next_or; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 + * elif t == NPY_FLOAT: f[0] = 102 #"f" + * elif t == NPY_DOUBLE: f[0] = 100 #"d" + * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" # <<<<<<<<<<<<<< + * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf + * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd + */ -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 838, __pyx_L1_error) -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = (__pyx_v_little_endian != 0); +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 838, __pyx_L1_error) -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_7) { +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 838, __pyx_L1_error) -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L7_bool_binop_done; +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x67; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L8_next_or:; +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 - * - * if ((child.byteorder == c'>' and little_endian) or - * (child.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<< - * raise ValueError(u"Non-native byte order not supported") - * # One could encode it in the format string and have Cython +#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":839 + * elif t == NPY_DOUBLE: f[0] = 100 #"d" + * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" + * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf # <<<<<<<<<<<<<< + * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd + * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg */ -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0); +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 839, __pyx_L1_error) -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_7) { +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 839, __pyx_L1_error) -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L7_bool_binop_done; +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 839, __pyx_L1_error) -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0); +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L7_bool_binop_done:; +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x66; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") - * - * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (child.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") - */ +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); + +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803 - * if ((child.byteorder == c'>' and little_endian) or - * (child.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< - * # One could encode it in the format string and have Cython - * # complain instead, BUT: < and > in format strings also imply + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 + * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" + * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf + * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd # <<<<<<<<<<<<<< + * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg + * elif t == NPY_OBJECT: f[0] = 79 #"O" */ -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 803, __pyx_L1_error) +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 840, __pyx_L1_error) -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 840, __pyx_L1_error) -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 840, __pyx_L1_error) + +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 803, __pyx_L1_error) +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") - * - * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (child.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") - */ +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x64; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 - * - * # Output padding bytes - * while offset[0] < new_offset: # <<<<<<<<<<<<<< - * f[0] = 120 # "x"; pad byte - * f += 1 - */ +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - while (1) { +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 813, __pyx_L1_error) +#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":841 + * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf + * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd + * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg # <<<<<<<<<<<<<< + * elif t == NPY_OBJECT: f[0] = 79 #"O" + * else: + */ + +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 841, __pyx_L1_error) + +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_t_3); -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 813, __pyx_L1_error) +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 841, __pyx_L1_error) -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 813, __pyx_L1_error) +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 841, __pyx_L1_error) -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_6) break; +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 - * # Output padding bytes - * while offset[0] < new_offset: - * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< - * f += 1 - * offset[0] += 1 - */ +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 814 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x78; +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x67; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":815 - * while offset[0] < new_offset: - * f[0] = 120 # "x"; pad byte - * f += 1 # <<<<<<<<<<<<<< - * offset[0] += 1 - * - */ +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 815 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":816 - * f[0] = 120 # "x"; pad byte - * f += 1 - * offset[0] += 1 # <<<<<<<<<<<<<< - * - * offset[0] += child.itemsize +#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 + * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd + * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg + * elif t == NPY_OBJECT: f[0] = 79 #"O" # <<<<<<<<<<<<<< + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) */ -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = 0; +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 842, __pyx_L1_error) -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1); +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 842, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":818 - * offset[0] += 1 - * - * offset[0] += child.itemsize # <<<<<<<<<<<<<< - * - * if not PyDataType_HASFIELDS(child): - */ +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = 0; +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 842, __pyx_L1_error) -#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize); +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 - * offset[0] += child.itemsize - * - * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< - * t = child.type_num - * if end - f < 5: - */ +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0); +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 79; -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 - * - * if not PyDataType_HASFIELDS(child): - * t = child.type_num # <<<<<<<<<<<<<< - * if end - f < 5: - * raise RuntimeError(u"Format string allocated too short.") - */ +#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 821, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":844 + * elif t == NPY_OBJECT: f[0] = 79 #"O" + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< + * f += 1 + * else: + */ -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4); +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 844, __pyx_L1_error) -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = 0; +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 - * if not PyDataType_HASFIELDS(child): - * t = child.type_num - * if end - f < 5: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short.") - * - */ +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 844, __pyx_L1_error) -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0); +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823 - * t = child.type_num - * if end - f < 5: - * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< - * - * # Until ticket #99 is fixed, use integers to avoid warnings - */ +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 823, __pyx_L1_error) +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 844, __pyx_L1_error) -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 823, __pyx_L1_error) +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 - * if not PyDataType_HASFIELDS(child): - * t = child.type_num - * if end - f < 5: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short.") - * - */ +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 844, __pyx_L1_error) + +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":826 - * - * # Until ticket #99 is fixed, use integers to avoid warnings - * if t == NPY_BYTE: f[0] = 98 #"b" # <<<<<<<<<<<<<< - * elif t == NPY_UBYTE: f[0] = 66 #"B" - * elif t == NPY_SHORT: f[0] = 104 #"h" +#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L15:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":845 + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * f += 1 # <<<<<<<<<<<<<< + * else: + * # Cython ignores struct boundary information ("T{...}"), */ -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 826, __pyx_L1_error) +#line 845 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 + * offset[0] += child.itemsize + * + * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< + * t = child.type_num + * if end - f < 5: + */ -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 826, __pyx_L1_error) +#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L13; -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 826, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":849 + * # Cython ignores struct boundary information ("T{...}"), + * # so don't output it + * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< + * return f + * + */ -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_9 == NULL)) __PYX_ERR(3, 849, __pyx_L1_error) -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 98; +#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = __pyx_t_9; -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L13:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 - * # Until ticket #99 is fixed, use integers to avoid warnings - * if t == NPY_BYTE: f[0] = 98 #"b" - * elif t == NPY_UBYTE: f[0] = 66 #"B" # <<<<<<<<<<<<<< - * elif t == NPY_SHORT: f[0] = 104 #"h" - * elif t == NPY_USHORT: f[0] = 72 #"H" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 + * cdef tuple fields + * + * for childname in descr.names: # <<<<<<<<<<<<<< + * fields = descr.fields[childname] + * child, new_offset = fields */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 827, __pyx_L1_error) - -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); - -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 827, __pyx_L1_error) +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 827, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":850 + * # so don't output it + * f = _util_dtypestring(child, f, end, offset) + * return f # <<<<<<<<<<<<<< + * + * + */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_v_f; -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 66; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< + * # Recursive utility function used in __getbuffer__ to get format + * # string. The new location in the format string is returned. + */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":828 - * if t == NPY_BYTE: f[0] = 98 #"b" - * elif t == NPY_UBYTE: f[0] = 66 #"B" - * elif t == NPY_SHORT: f[0] = 104 #"h" # <<<<<<<<<<<<<< - * elif t == NPY_USHORT: f[0] = 72 #"H" - * elif t == NPY_INT: f[0] = 105 #"i" - */ +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 828, __pyx_L1_error) +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 828, __pyx_L1_error) +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_4); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 828, __pyx_L1_error) +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x68; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_child); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_fields); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_childname); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":829 - * elif t == NPY_UBYTE: f[0] = 66 #"B" - * elif t == NPY_SHORT: f[0] = 104 #"h" - * elif t == NPY_USHORT: f[0] = 72 #"H" # <<<<<<<<<<<<<< - * elif t == NPY_INT: f[0] = 105 #"i" - * elif t == NPY_UINT: f[0] = 73 #"I" - */ +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_new_offset); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 829, __pyx_L1_error) +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_t); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 829, __pyx_L1_error) +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 829, __pyx_L1_error) +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 + * + * + * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< + * cdef PyObject* baseptr + * if base is None: + */ -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 72; +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { + PyObject *__pyx_v_baseptr +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 - * elif t == NPY_SHORT: f[0] = 104 #"h" - * elif t == NPY_USHORT: f[0] = 72 #"H" - * elif t == NPY_INT: f[0] = 105 #"i" # <<<<<<<<<<<<<< - * elif t == NPY_UINT: f[0] = 73 #"I" - * elif t == NPY_LONG: f[0] = 108 #"l" - */ +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_2; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 830, __pyx_L1_error) +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("set_array_base", 0); -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 + * cdef inline void set_array_base(ndarray arr, object base): + * cdef PyObject* baseptr + * if base is None: # <<<<<<<<<<<<<< + * baseptr = NULL + * else: + */ -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 830, __pyx_L1_error) +#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (__pyx_v_base == Py_None); -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (__pyx_t_1 != 0); -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 830, __pyx_L1_error) +#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":969 + * cdef PyObject* baseptr + * if base is None: + * baseptr = NULL # <<<<<<<<<<<<<< + * else: + * Py_INCREF(base) # important to do this before decref below! + */ -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 969 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_baseptr = NULL; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x69; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 + * cdef inline void set_array_base(ndarray arr, object base): + * cdef PyObject* baseptr + * if base is None: # <<<<<<<<<<<<<< + * baseptr = NULL + * else: + */ -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L3; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 - * elif t == NPY_USHORT: f[0] = 72 #"H" - * elif t == NPY_INT: f[0] = 105 #"i" - * elif t == NPY_UINT: f[0] = 73 #"I" # <<<<<<<<<<<<<< - * elif t == NPY_LONG: f[0] = 108 #"l" - * elif t == NPY_ULONG: f[0] = 76 #"L" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":971 + * baseptr = NULL + * else: + * Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<< + * baseptr = base + * Py_XDECREF(arr.base) */ -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 831, __pyx_L1_error) +#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_INCREF(__pyx_v_base); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 831, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":972 + * else: + * Py_INCREF(base) # important to do this before decref below! + * baseptr = base # <<<<<<<<<<<<<< + * Py_XDECREF(arr.base) + * arr.base = baseptr + */ -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_baseptr = ((PyObject *)__pyx_v_base); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 831, __pyx_L1_error) +#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3:; -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":973 + * Py_INCREF(base) # important to do this before decref below! + * baseptr = base + * Py_XDECREF(arr.base) # <<<<<<<<<<<<<< + * arr.base = baseptr + * + */ -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 73; +#line 973 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_XDECREF(__pyx_v_arr->base); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":974 + * baseptr = base + * Py_XDECREF(arr.base) + * arr.base = baseptr # <<<<<<<<<<<<<< + * + * cdef inline object get_array_base(ndarray arr): + */ -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 974 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_arr->base = __pyx_v_baseptr; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":832 - * elif t == NPY_INT: f[0] = 105 #"i" - * elif t == NPY_UINT: f[0] = 73 #"I" - * elif t == NPY_LONG: f[0] = 108 #"l" # <<<<<<<<<<<<<< - * elif t == NPY_ULONG: f[0] = 76 #"L" - * elif t == NPY_LONGLONG: f[0] = 113 #"q" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 + * + * + * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< + * cdef PyObject* baseptr + * if base is None: */ -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 832, __pyx_L1_error) +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 832, __pyx_L1_error) +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 832, __pyx_L1_error) +#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 + * arr.base = baseptr + * + * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< + * if arr.base is NULL: + * return None + */ -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x6C; -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 - * elif t == NPY_UINT: f[0] = 73 #"I" - * elif t == NPY_LONG: f[0] = 108 #"l" - * elif t == NPY_ULONG: f[0] = 76 #"L" # <<<<<<<<<<<<<< - * elif t == NPY_LONGLONG: f[0] = 113 #"q" - * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" - */ +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 833, __pyx_L1_error) +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("get_array_base", 0); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 833, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + * + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: # <<<<<<<<<<<<<< + * return None + * else: + */ -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 833, __pyx_L1_error) +#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":978 + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: + * return None # <<<<<<<<<<<<<< + * else: + * return arr.base + */ -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 76; +#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(Py_None); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = Py_None; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 - * elif t == NPY_LONG: f[0] = 108 #"l" - * elif t == NPY_ULONG: f[0] = 76 #"L" - * elif t == NPY_LONGLONG: f[0] = 113 #"q" # <<<<<<<<<<<<<< - * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" - * elif t == NPY_FLOAT: f[0] = 102 #"f" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + * + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: # <<<<<<<<<<<<<< + * return None + * else: */ -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 834, __pyx_L1_error) - -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); - -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 834, __pyx_L1_error) +#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":980 + * return None + * else: + * return arr.base # <<<<<<<<<<<<<< + * + * + */ -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 834, __pyx_L1_error) +#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_arr->base)); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x71; +#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = ((PyObject *)__pyx_v_arr->base); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":835 - * elif t == NPY_ULONG: f[0] = 76 #"L" - * elif t == NPY_LONGLONG: f[0] = 113 #"q" - * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" # <<<<<<<<<<<<<< - * elif t == NPY_FLOAT: f[0] = 102 #"f" - * elif t == NPY_DOUBLE: f[0] = 100 #"d" + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 + * arr.base = baseptr + * + * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< + * if arr.base is NULL: + * return None */ -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 835, __pyx_L1_error) +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 835, __pyx_L1_error) +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 835, __pyx_L1_error) +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 81; +#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() + */ -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 - * elif t == NPY_LONGLONG: f[0] = 113 #"q" - * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" - * elif t == NPY_FLOAT: f[0] = 102 #"f" # <<<<<<<<<<<<<< - * elif t == NPY_DOUBLE: f[0] = 100 #"d" - * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" - */ -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 836, __pyx_L1_error) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 836, __pyx_L1_error) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 836, __pyx_L1_error) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x66; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 - * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" - * elif t == NPY_FLOAT: f[0] = 102 #"f" - * elif t == NPY_DOUBLE: f[0] = 100 #"d" # <<<<<<<<<<<<<< - * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" - * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf - */ +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 837, __pyx_L1_error) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_array", 0); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 837, __pyx_L1_error) +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 837, __pyx_L1_error) +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x64; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 - * elif t == NPY_FLOAT: f[0] = 102 #"f" - * elif t == NPY_DOUBLE: f[0] = 100 #"d" - * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" # <<<<<<<<<<<<<< - * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf - * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 + * cdef inline int import_array() except -1: + * try: + * _import_array() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") */ -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 838, __pyx_L1_error) - -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 987 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(3, 987, __pyx_L3_error) -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 838, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 838, __pyx_L1_error) +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x67; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L10_try_end; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":839 - * elif t == NPY_DOUBLE: f[0] = 100 #"d" - * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" - * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf # <<<<<<<<<<<<<< - * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd - * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 + * try: + * _import_array() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.multiarray failed to import") + * */ -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 839, __pyx_L1_error) +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 839, __pyx_L1_error) +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 988, __pyx_L5_except_error) -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 839, __pyx_L1_error) +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + * _import_array() + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_umath() except -1: + */ -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x66; +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 989, __pyx_L5_except_error) -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 - * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" - * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf - * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd # <<<<<<<<<<<<<< - * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg - * elif t == NPY_OBJECT: f[0] = 79 #"O" - */ +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 989, __pyx_L5_except_error) -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 840, __pyx_L1_error) +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 840, __pyx_L1_error) +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 840, __pyx_L1_error) +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x64; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L10_try_end:; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":841 - * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf - * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd - * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg # <<<<<<<<<<<<<< - * elif t == NPY_OBJECT: f[0] = 79 #"O" - * else: + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() */ -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 841, __pyx_L1_error) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ + +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 841, __pyx_L1_error) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 841, __pyx_L1_error) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x67; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 - * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd - * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg - * elif t == NPY_OBJECT: f[0] = 79 #"O" # <<<<<<<<<<<<<< - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) +#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 + * raise ImportError("numpy.core.multiarray failed to import") + * + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 842, __pyx_L1_error) +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 842, __pyx_L1_error) +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 842, __pyx_L1_error) +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 79; +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":844 - * elif t == NPY_OBJECT: f[0] = 79 #"O" - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< - * f += 1 - * else: +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; + +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_umath", 0); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 844, __pyx_L1_error) +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 844, __pyx_L1_error) +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_t_3); +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 844, __pyx_L1_error) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":993 + * cdef inline int import_umath() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") + */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 993 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(3, 993, __pyx_L3_error) -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 844, __pyx_L1_error) +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L15:; +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L10_try_end; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":845 - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * f += 1 # <<<<<<<<<<<<<< - * else: - * # Cython ignores struct boundary information ("T{...}"), - */ +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; -#line 845 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 - * offset[0] += child.itemsize + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":994 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") * - * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< - * t = child.type_num - * if end - f < 5: */ -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L13; +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":849 - * # Cython ignores struct boundary information ("T{...}"), - * # so don't output it - * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< - * return f +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 994, __pyx_L5_except_error) + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); + +#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< * + * cdef inline int import_ufunc() except -1: */ -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 995, __pyx_L5_except_error) -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_9 == NULL)) __PYX_ERR(3, 849, __pyx_L1_error) +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = __pyx_t_9; +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 995, __pyx_L5_except_error) + +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L13:; +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 - * cdef tuple fields +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 * - * for childname in descr.names: # <<<<<<<<<<<<<< - * fields = descr.fields[childname] - * child, new_offset = fields + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":850 - * # so don't output it - * f = _util_dtypestring(child, f, end, offset) - * return f # <<<<<<<<<<<<<< - * - * - */ +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); -#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_v_f; +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 - * return PyArray_MultiIterNew(5, a, b, c, d, e) +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L10_try_end:; + +#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 + * raise ImportError("numpy.core.multiarray failed to import") * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< - * # Recursive utility function used in __getbuffer__ to get format - * # string. The new location in the format string is returned. + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; - -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); - -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_4); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = NULL; +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_child); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_fields); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_childname); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_new_offset); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_t); +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" return __pyx_r; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 - * +/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * raise ImportError("numpy.core.umath failed to import") * - * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< - * cdef PyObject* baseptr - * if base is None: + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { - PyObject *__pyx_v_baseptr -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_2; +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("set_array_base", 0); +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 - * cdef inline void set_array_base(ndarray arr, object base): - * cdef PyObject* baseptr - * if base is None: # <<<<<<<<<<<<<< - * baseptr = NULL - * else: - */ +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (__pyx_v_base == Py_None); +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (__pyx_t_1 != 0); +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":969 - * cdef PyObject* baseptr - * if base is None: - * baseptr = NULL # <<<<<<<<<<<<<< - * else: - * Py_INCREF(base) # important to do this before decref below! - */ +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; -#line 969 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_baseptr = NULL; +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 - * cdef inline void set_array_base(ndarray arr, object base): - * cdef PyObject* baseptr - * if base is None: # <<<<<<<<<<<<<< - * baseptr = NULL - * else: - */ +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L3; +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_ufunc", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":971 - * baseptr = NULL - * else: - * Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<< - * baseptr = base - * Py_XDECREF(arr.base) + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_INCREF(__pyx_v_base); +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":972 - * else: - * Py_INCREF(base) # important to do this before decref below! - * baseptr = base # <<<<<<<<<<<<<< - * Py_XDECREF(arr.base) - * arr.base = baseptr - */ +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_baseptr = ((PyObject *)__pyx_v_base); +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3:; +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":973 - * Py_INCREF(base) # important to do this before decref below! - * baseptr = base - * Py_XDECREF(arr.base) # <<<<<<<<<<<<<< - * arr.base = baseptr - * - */ +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 973 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_XDECREF(__pyx_v_arr->base); +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":974 - * baseptr = base - * Py_XDECREF(arr.base) - * arr.base = baseptr # <<<<<<<<<<<<<< - * - * cdef inline object get_array_base(ndarray arr): + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":999 + * cdef inline int import_ufunc() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") */ -#line 974 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_arr->base = __pyx_v_baseptr; +#line 999 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(3, 999, __pyx_L3_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 - * + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 * - * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< - * cdef PyObject* baseptr - * if base is None: + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L10_try_end; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 - * arr.base = baseptr - * - * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< - * if arr.base is NULL: - * return None +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; + +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 1000, __pyx_L5_except_error) -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("get_array_base", 0); +#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 - * - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: # <<<<<<<<<<<<<< - * return None - * else: + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< */ -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0); +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1001, __pyx_L5_except_error) -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":978 - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: - * return None # <<<<<<<<<<<<<< - * else: - * return arr.base - */ +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(Py_None); +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(3, 1001, __pyx_L5_except_error) -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = Py_None; +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; + + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 * - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: # <<<<<<<<<<<<<< - * return None - * else: + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":980 - * return None - * else: - * return arr.base # <<<<<<<<<<<<<< - */ +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_arr->base)); +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = ((PyObject *)__pyx_v_arr->base); +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L10_try_end:; -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 - * arr.base = baseptr + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * raise ImportError("numpy.core.umath failed to import") * - * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< - * if arr.base is NULL: - * return None + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; + +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" return __pyx_r; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" } /* "string.from_py":13 @@ -13127,12 +14352,16 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_Class__0_d, __pyx_k_Class__0_d, sizeof(__pyx_k_Class__0_d), 0, 0, 1, 0}, {&__pyx_kp_u_Format_string_allocated_too_shor, __pyx_k_Format_string_allocated_too_shor, sizeof(__pyx_k_Format_string_allocated_too_shor), 0, 1, 0, 0}, {&__pyx_kp_u_Format_string_allocated_too_shor_2, __pyx_k_Format_string_allocated_too_shor_2, sizeof(__pyx_k_Format_string_allocated_too_shor_2), 0, 1, 0, 0}, + {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1}, {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1}, {&__pyx_kp_u_Non_native_byte_order_not_suppor, __pyx_k_Non_native_byte_order_not_suppor, sizeof(__pyx_k_Non_native_byte_order_not_suppor), 0, 1, 0, 0}, {&__pyx_n_b_Regression, __pyx_k_Regression, sizeof(__pyx_k_Regression), 0, 0, 0, 1}, {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1}, {&__pyx_n_b_Signal, __pyx_k_Signal, sizeof(__pyx_k_Signal), 0, 0, 0, 1}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, + {&__pyx_n_s_add_events_multiclass, __pyx_k_add_events_multiclass, sizeof(__pyx_k_add_events_multiclass), 0, 0, 1, 1}, + {&__pyx_n_s_add_events_regression, __pyx_k_add_events_regression, sizeof(__pyx_k_add_events_regression), 0, 0, 1, 1}, + {&__pyx_n_s_add_events_twoclass, __pyx_k_add_events_twoclass, sizeof(__pyx_k_add_events_twoclass), 0, 0, 1, 1}, {&__pyx_n_s_aux, __pyx_k_aux, sizeof(__pyx_k_aux), 0, 0, 1, 1}, {&__pyx_n_s_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 0, 1, 1}, {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1}, @@ -13141,11 +14370,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_evaluate_reader, __pyx_k_evaluate_reader, sizeof(__pyx_k_evaluate_reader), 0, 0, 1, 1}, {&__pyx_n_s_event, __pyx_k_event, sizeof(__pyx_k_event), 0, 0, 1, 1}, {&__pyx_n_s_events, __pyx_k_events, sizeof(__pyx_k_events), 0, 0, 1, 1}, - {&__pyx_n_s_factory, __pyx_k_factory, sizeof(__pyx_k_factory), 0, 0, 1, 1}, - {&__pyx_n_s_factory_2, __pyx_k_factory_2, sizeof(__pyx_k_factory_2), 0, 0, 1, 1}, - {&__pyx_n_s_factory_add_events_multiclass, __pyx_k_factory_add_events_multiclass, sizeof(__pyx_k_factory_add_events_multiclass), 0, 0, 1, 1}, - {&__pyx_n_s_factory_add_events_regression, __pyx_k_factory_add_events_regression, sizeof(__pyx_k_factory_add_events_regression), 0, 0, 1, 1}, - {&__pyx_n_s_factory_add_events_twoclass, __pyx_k_factory_add_events_twoclass, sizeof(__pyx_k_factory_add_events_twoclass), 0, 0, 1, 1}, {&__pyx_n_s_float32, __pyx_k_float32, sizeof(__pyx_k_float32), 0, 0, 1, 1}, {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1}, {&__pyx_kp_s_home_endw_workspace_root_numpy, __pyx_k_home_endw_workspace_root_numpy, sizeof(__pyx_k_home_endw_workspace_root_numpy), 0, 0, 1, 0}, @@ -13168,6 +14392,10 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_ndarray_is_not_Fortran_contiguou, __pyx_k_ndarray_is_not_Fortran_contiguou, sizeof(__pyx_k_ndarray_is_not_Fortran_contiguou), 0, 1, 0, 0}, {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1}, {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1}, + {&__pyx_kp_s_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to, sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 0, 1, 0}, + {&__pyx_kp_s_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor, sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 0, 1, 0}, + {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1}, + {&__pyx_n_s_obj_2, __pyx_k_obj_2, sizeof(__pyx_k_obj_2), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_s_ravel, __pyx_k_ravel, sizeof(__pyx_k_ravel), 0, 0, 1, 1}, {&__pyx_n_s_reader, __pyx_k_reader, sizeof(__pyx_k_reader), 0, 0, 1, 1}, @@ -13193,6 +14421,7 @@ static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(2, 107, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(3, 231, __pyx_L1_error) __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(3, 799, __pyx_L1_error) + __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(3, 989, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; @@ -13355,65 +14584,54 @@ static int __Pyx_InitCachedConstants(void) { #line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__9); - /* "root_numpy/tmva/src/factory.pyx":4 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_twoclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + * _import_array() + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_umath() except -1: */ -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_tuple__10 = PyTuple_Pack(15, __pyx_n_s_factory, __pyx_n_s_events, __pyx_n_s_labels, __pyx_n_s_signal_label, __pyx_n_s_weights, __pyx_n_s_test, __pyx_n_s_factory_2, __pyx_n_s_size, __pyx_n_s_n_features, __pyx_n_s_i, __pyx_n_s_j, __pyx_n_s_weight, __pyx_n_s_label, __pyx_n_s_event, __pyx_n_s_treetype); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(1, 4, __pyx_L1_error) +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(3, 989, __pyx_L1_error) -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__10); -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__10); -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(6, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__10, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_factory_add_events_twoclass, 4, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(1, 4, __pyx_L1_error) - - /* "root_numpy/tmva/src/factory.pyx":36 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_multiclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_ufunc() except -1: */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_tuple__12 = PyTuple_Pack(14, __pyx_n_s_factory, __pyx_n_s_events, __pyx_n_s_labels, __pyx_n_s_weights, __pyx_n_s_test, __pyx_n_s_factory_2, __pyx_n_s_size, __pyx_n_s_n_features, __pyx_n_s_i, __pyx_n_s_j, __pyx_n_s_weight, __pyx_n_s_label, __pyx_n_s_event, __pyx_n_s_treetype); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(1, 36, __pyx_L1_error) +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(3, 995, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_GOTREF(__pyx_tuple__12); - -#line 36 "root_numpy/tmva/src/factory.pyx" - __Pyx_GIVEREF(__pyx_tuple__12); +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_tuple__11); -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_factory_add_events_multiclass, 36, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(1, 36, __pyx_L1_error) +#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_tuple__11); - /* "root_numpy/tmva/src/factory.pyx":64 - * @cython.boundscheck(False) - * @cython.wraparound(False) - * def factory_add_events_regression( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_tuple__14 = PyTuple_Pack(14, __pyx_n_s_factory, __pyx_n_s_events, __pyx_n_s_targets, __pyx_n_s_weights, __pyx_n_s_test, __pyx_n_s_factory_2, __pyx_n_s_size, __pyx_n_s_n_features, __pyx_n_s_n_targets, __pyx_n_s_i, __pyx_n_s_j, __pyx_n_s_weight, __pyx_n_s_event, __pyx_n_s_treetype); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(1, 64, __pyx_L1_error) +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(3, 1001, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_GOTREF(__pyx_tuple__14); - -#line 64 "root_numpy/tmva/src/factory.pyx" - __Pyx_GIVEREF(__pyx_tuple__14); +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_tuple__12); -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_codeobj__15 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__14, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_factory_add_events_regression, 64, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__15)) __PYX_ERR(1, 64, __pyx_L1_error) +#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_tuple__12); /* "root_numpy/tmva/src/evaluate.pyx":3 * @cython.boundscheck(False) @@ -13424,16 +14642,16 @@ static int __Pyx_InitCachedConstants(void) { */ #line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_tuple__16 = PyTuple_Pack(7, __pyx_n_s_reader, __pyx_n_s_name, __pyx_n_s_events, __pyx_n_s_aux, __pyx_n_s_reader_2, __pyx_n_s_imeth, __pyx_n_s_method); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 3, __pyx_L1_error) + __pyx_tuple__13 = PyTuple_Pack(7, __pyx_n_s_reader, __pyx_n_s_name, __pyx_n_s_events, __pyx_n_s_aux, __pyx_n_s_reader_2, __pyx_n_s_imeth, __pyx_n_s_method); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 3, __pyx_L1_error) #line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__16); + __Pyx_GOTREF(__pyx_tuple__13); #line 3 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__16); + __Pyx_GIVEREF(__pyx_tuple__13); #line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_codeobj__17 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__16, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_evaluate_reader, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__17)) __PYX_ERR(0, 3, __pyx_L1_error) + __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_evaluate_reader, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 3, __pyx_L1_error) /* "root_numpy/tmva/src/evaluate.pyx":15 * @cython.boundscheck(False) @@ -13444,33 +14662,93 @@ static int __Pyx_InitCachedConstants(void) { */ #line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_tuple__18 = PyTuple_Pack(4, __pyx_n_s_method, __pyx_n_s_events, __pyx_n_s_aux, __pyx_n_s_method_2); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 15, __pyx_L1_error) + __pyx_tuple__15 = PyTuple_Pack(4, __pyx_n_s_method, __pyx_n_s_events, __pyx_n_s_aux, __pyx_n_s_method_2); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 15, __pyx_L1_error) #line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_tuple__18); + __Pyx_GOTREF(__pyx_tuple__15); #line 15 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_tuple__18); + __Pyx_GIVEREF(__pyx_tuple__15); #line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_codeobj__19 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__18, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_evaluate_method, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__19)) __PYX_ERR(0, 15, __pyx_L1_error) + __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_evaluate_method, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 15, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" + /* "root_numpy/tmva/src/data.pyx":4 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_twoclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, + */ + +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_tuple__17 = PyTuple_Pack(15, __pyx_n_s_obj, __pyx_n_s_events, __pyx_n_s_labels, __pyx_n_s_signal_label, __pyx_n_s_weights, __pyx_n_s_test, __pyx_n_s_obj_2, __pyx_n_s_size, __pyx_n_s_n_features, __pyx_n_s_i, __pyx_n_s_j, __pyx_n_s_weight, __pyx_n_s_label, __pyx_n_s_event, __pyx_n_s_treetype); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(1, 4, __pyx_L1_error) + +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_tuple__17); + +#line 4 "root_numpy/tmva/src/data.pyx" + __Pyx_GIVEREF(__pyx_tuple__17); + +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(6, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_add_events_twoclass, 4, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(1, 4, __pyx_L1_error) + + /* "root_numpy/tmva/src/data.pyx":36 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_multiclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, + */ + +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_tuple__19 = PyTuple_Pack(14, __pyx_n_s_obj, __pyx_n_s_events, __pyx_n_s_labels, __pyx_n_s_weights, __pyx_n_s_test, __pyx_n_s_obj_2, __pyx_n_s_size, __pyx_n_s_n_features, __pyx_n_s_i, __pyx_n_s_j, __pyx_n_s_weight, __pyx_n_s_label, __pyx_n_s_event, __pyx_n_s_treetype); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(1, 36, __pyx_L1_error) + +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_tuple__19); + +#line 36 "root_numpy/tmva/src/data.pyx" + __Pyx_GIVEREF(__pyx_tuple__19); + +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_add_events_multiclass, 36, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(1, 36, __pyx_L1_error) + + /* "root_numpy/tmva/src/data.pyx":64 + * @cython.boundscheck(False) + * @cython.wraparound(False) + * def add_events_regression( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, + */ + +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_tuple__21 = PyTuple_Pack(14, __pyx_n_s_obj, __pyx_n_s_events, __pyx_n_s_targets, __pyx_n_s_weights, __pyx_n_s_test, __pyx_n_s_obj_2, __pyx_n_s_size, __pyx_n_s_n_features, __pyx_n_s_n_targets, __pyx_n_s_i, __pyx_n_s_j, __pyx_n_s_weight, __pyx_n_s_event, __pyx_n_s_treetype); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(1, 64, __pyx_L1_error) + +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_GOTREF(__pyx_tuple__21); + +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_GIVEREF(__pyx_tuple__21); + +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_add_events_regression, 64, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(1, 64, __pyx_L1_error) + +#line 64 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyFinishContext(); -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 64 "root_numpy/tmva/src/data.pyx" return 0; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 64 "root_numpy/tmva/src/data.pyx" __pyx_L1_error:; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 64 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyFinishContext(); -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 64 "root_numpy/tmva/src/data.pyx" return -1; -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 64 "root_numpy/tmva/src/data.pyx" } static int __Pyx_InitGlobals(void) { @@ -13489,6 +14767,7 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) #endif { PyObject *__pyx_t_1 = NULL; + int __pyx_t_2; __Pyx_RefNannyDeclarations #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); @@ -13616,106 +14895,106 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) */ #line 5 "root_numpy/tmva/src/setup.pxi" - import_array(); + __pyx_t_2 = __pyx_f_5numpy_import_array(); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(9, 5, __pyx_L1_error) - /* "root_numpy/tmva/src/factory.pyx":4 + /* "root_numpy/tmva/src/evaluate.pyx":3 * @cython.boundscheck(False) * @cython.wraparound(False) - * def factory_add_events_twoclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) + * cdef IMethod* imeth = _reader.FindMVA(name) */ -#line 4 "root_numpy/tmva/src/factory.pyx" - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_1factory_add_events_twoclass, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) +#line 3 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_1evaluate_reader, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3, __pyx_L1_error) -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_1); -#line 4 "root_numpy/tmva/src/factory.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_factory_add_events_twoclass, __pyx_t_1) < 0) __PYX_ERR(1, 4, __pyx_L1_error) +#line 3 "root_numpy/tmva/src/evaluate.pyx" + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_reader, __pyx_t_1) < 0) __PYX_ERR(0, 3, __pyx_L1_error) -#line 4 "root_numpy/tmva/src/factory.pyx" +#line 3 "root_numpy/tmva/src/evaluate.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "root_numpy/tmva/src/factory.pyx":36 + /* "root_numpy/tmva/src/evaluate.pyx":15 * @cython.boundscheck(False) * @cython.wraparound(False) - * def factory_add_events_multiclass( # <<<<<<<<<<<<<< - * factory, - * np.ndarray[np.double_t, ndim=2] events, + * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< + * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) + * return evaluate_method_dispatch(_method, events, aux) */ -#line 36 "root_numpy/tmva/src/factory.pyx" - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_3factory_add_events_multiclass, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 36, __pyx_L1_error) +#line 15 "root_numpy/tmva/src/evaluate.pyx" + __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_3evaluate_method, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_1); -#line 36 "root_numpy/tmva/src/factory.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_factory_add_events_multiclass, __pyx_t_1) < 0) __PYX_ERR(1, 36, __pyx_L1_error) +#line 15 "root_numpy/tmva/src/evaluate.pyx" + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_method, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) -#line 36 "root_numpy/tmva/src/factory.pyx" +#line 15 "root_numpy/tmva/src/evaluate.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "root_numpy/tmva/src/factory.pyx":64 + /* "root_numpy/tmva/src/data.pyx":4 * @cython.boundscheck(False) * @cython.wraparound(False) - * def factory_add_events_regression( # <<<<<<<<<<<<<< - * factory, + * def add_events_twoclass( # <<<<<<<<<<<<<< + * obj, * np.ndarray[np.double_t, ndim=2] events, */ -#line 64 "root_numpy/tmva/src/factory.pyx" - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_5factory_add_events_regression, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 64, __pyx_L1_error) +#line 4 "root_numpy/tmva/src/data.pyx" + __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_5add_events_twoclass, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_GOTREF(__pyx_t_1); -#line 64 "root_numpy/tmva/src/factory.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_factory_add_events_regression, __pyx_t_1) < 0) __PYX_ERR(1, 64, __pyx_L1_error) +#line 4 "root_numpy/tmva/src/data.pyx" + if (PyDict_SetItem(__pyx_d, __pyx_n_s_add_events_twoclass, __pyx_t_1) < 0) __PYX_ERR(1, 4, __pyx_L1_error) -#line 64 "root_numpy/tmva/src/factory.pyx" +#line 4 "root_numpy/tmva/src/data.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "root_numpy/tmva/src/evaluate.pyx":3 + /* "root_numpy/tmva/src/data.pyx":36 * @cython.boundscheck(False) * @cython.wraparound(False) - * def evaluate_reader(reader, name, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef Reader* _reader = PyCObject_AsVoidPtr(reader) - * cdef IMethod* imeth = _reader.FindMVA(name) + * def add_events_multiclass( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_7evaluate_reader, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3, __pyx_L1_error) +#line 36 "root_numpy/tmva/src/data.pyx" + __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_7add_events_multiclass, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 36, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_GOTREF(__pyx_t_1); -#line 3 "root_numpy/tmva/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_reader, __pyx_t_1) < 0) __PYX_ERR(0, 3, __pyx_L1_error) +#line 36 "root_numpy/tmva/src/data.pyx" + if (PyDict_SetItem(__pyx_d, __pyx_n_s_add_events_multiclass, __pyx_t_1) < 0) __PYX_ERR(1, 36, __pyx_L1_error) -#line 3 "root_numpy/tmva/src/evaluate.pyx" +#line 36 "root_numpy/tmva/src/data.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "root_numpy/tmva/src/evaluate.pyx":15 + /* "root_numpy/tmva/src/data.pyx":64 * @cython.boundscheck(False) * @cython.wraparound(False) - * def evaluate_method(method, np.ndarray[np.double_t, ndim=2] events, double aux): # <<<<<<<<<<<<<< - * cdef MethodBase* _method = PyCObject_AsVoidPtr(method) - * return evaluate_method_dispatch(_method, events, aux) + * def add_events_regression( # <<<<<<<<<<<<<< + * obj, + * np.ndarray[np.double_t, ndim=2] events, */ -#line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_9evaluate_method, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_libtmvanumpy_9add_events_regression, NULL, __pyx_n_s_libtmvanumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 64, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 64 "root_numpy/tmva/src/data.pyx" __Pyx_GOTREF(__pyx_t_1); -#line 15 "root_numpy/tmva/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_method, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) +#line 64 "root_numpy/tmva/src/data.pyx" + if (PyDict_SetItem(__pyx_d, __pyx_n_s_add_events_regression, __pyx_t_1) < 0) __PYX_ERR(1, 64, __pyx_L1_error) -#line 15 "root_numpy/tmva/src/evaluate.pyx" +#line 64 "root_numpy/tmva/src/data.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "_libtmvanumpy.pyx":1 @@ -14563,29 +15842,145 @@ static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) { __Pyx_ReleaseBuffer(info); } -/* PyErrFetchRestore */ - #if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { - PyObject *tmp_type, *tmp_value, *tmp_tb; - tmp_type = tstate->curexc_type; - tmp_value = tstate->curexc_value; - tmp_tb = tstate->curexc_traceback; - tstate->curexc_type = type; - tstate->curexc_value = value; - tstate->curexc_traceback = tb; - Py_XDECREF(tmp_type); - Py_XDECREF(tmp_value); - Py_XDECREF(tmp_tb); +/* PyCFunctionFastCall */ + #if CYTHON_FAST_PYCCALL +static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { + PyCFunctionObject *func = (PyCFunctionObject*)func_obj; + PyCFunction meth = PyCFunction_GET_FUNCTION(func); + PyObject *self = PyCFunction_GET_SELF(func); + PyObject *result; + int flags; + assert(PyCFunction_Check(func)); + assert(METH_FASTCALL == PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST)); + assert(nargs >= 0); + assert(nargs == 0 || args != NULL); + /* _PyCFunction_FastCallDict() must not be called with an exception set, + because it may clear it (directly or indirectly) and so the + caller loses its exception */ + assert(!PyErr_Occurred()); + return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); } -static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { - *type = tstate->curexc_type; - *value = tstate->curexc_value; - *tb = tstate->curexc_traceback; - tstate->curexc_type = 0; - tstate->curexc_value = 0; - tstate->curexc_traceback = 0; +#endif // CYTHON_FAST_PYCCALL + +/* PyFunctionFastCall */ + #if CYTHON_FAST_PYCALL +#include "frameobject.h" +static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, + PyObject *globals) { + PyFrameObject *f; + PyThreadState *tstate = PyThreadState_GET(); + PyObject **fastlocals; + Py_ssize_t i; + PyObject *result; + assert(globals != NULL); + /* XXX Perhaps we should create a specialized + PyFrame_New() that doesn't take locals, but does + take builtins without sanity checking them. + */ + assert(tstate != NULL); + f = PyFrame_New(tstate, co, globals, NULL); + if (f == NULL) { + return NULL; + } + fastlocals = f->f_localsplus; + for (i = 0; i < na; i++) { + Py_INCREF(*args); + fastlocals[i] = *args++; + } + result = PyEval_EvalFrameEx(f,0); + ++tstate->recursion_depth; + Py_DECREF(f); + --tstate->recursion_depth; + return result; } +#if 1 || PY_VERSION_HEX < 0x030600B1 +static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { + PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); + PyObject *globals = PyFunction_GET_GLOBALS(func); + PyObject *argdefs = PyFunction_GET_DEFAULTS(func); + PyObject *closure; +#if PY_MAJOR_VERSION >= 3 + PyObject *kwdefs; +#endif + PyObject *kwtuple, **k; + PyObject **d; + Py_ssize_t nd; + Py_ssize_t nk; + PyObject *result; + assert(kwargs == NULL || PyDict_Check(kwargs)); + nk = kwargs ? PyDict_Size(kwargs) : 0; + if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { + return NULL; + } + if ( +#if PY_MAJOR_VERSION >= 3 + co->co_kwonlyargcount == 0 && +#endif + likely(kwargs == NULL || nk == 0) && + co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { + if (argdefs == NULL && co->co_argcount == nargs) { + result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); + goto done; + } + else if (nargs == 0 && argdefs != NULL + && co->co_argcount == Py_SIZE(argdefs)) { + /* function called with no arguments, but all parameters have + a default value: use default values as arguments .*/ + args = &PyTuple_GET_ITEM(argdefs, 0); + result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); + goto done; + } + } + if (kwargs != NULL) { + Py_ssize_t pos, i; + kwtuple = PyTuple_New(2 * nk); + if (kwtuple == NULL) { + result = NULL; + goto done; + } + k = &PyTuple_GET_ITEM(kwtuple, 0); + pos = i = 0; + while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { + Py_INCREF(k[i]); + Py_INCREF(k[i+1]); + i += 2; + } + nk = i / 2; + } + else { + kwtuple = NULL; + k = NULL; + } + closure = PyFunction_GET_CLOSURE(func); +#if PY_MAJOR_VERSION >= 3 + kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif + if (argdefs != NULL) { + d = &PyTuple_GET_ITEM(argdefs, 0); + nd = Py_SIZE(argdefs); + } + else { + d = NULL; + nd = 0; + } +#if PY_MAJOR_VERSION >= 3 + result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, + args, nargs, + k, (int)nk, + d, (int)nd, kwdefs, closure); +#else + result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, + args, nargs, + k, (int)nk, + d, (int)nd, closure); +#endif + Py_XDECREF(kwtuple); +done: + Py_LeaveRecursiveCall(); + return result; +} +#endif // CPython < 3.6 +#endif // CYTHON_FAST_PYCALL /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON @@ -14640,6 +16035,11 @@ static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { +#if CYTHON_FAST_PYCALL + if (PyFunction_Check(func)) { + return __Pyx_PyFunction_FastCall(func, &arg, 1); + } +#endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { #else @@ -14647,6 +16047,10 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec #endif if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); +#if CYTHON_FAST_PYCCALL + } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { + return __Pyx_PyCFunction_FastCall(func, &arg, 1); +#endif } } return __Pyx__PyObject_CallOneArg(func, arg); @@ -14662,6 +16066,30 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec } #endif +/* PyErrFetchRestore */ + #if CYTHON_FAST_THREAD_STATE +static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { + PyObject *tmp_type, *tmp_value, *tmp_tb; + tmp_type = tstate->curexc_type; + tmp_value = tstate->curexc_value; + tmp_tb = tstate->curexc_traceback; + tstate->curexc_type = type; + tstate->curexc_value = value; + tstate->curexc_traceback = tb; + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); +} +static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { + *type = tstate->curexc_type; + *value = tstate->curexc_value; + *tb = tstate->curexc_traceback; + tstate->curexc_type = 0; + tstate->curexc_value = 0; + tstate->curexc_traceback = 0; +} +#endif + /* RaiseException */ #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, @@ -14828,7 +16256,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject /* GetModuleGlobalName */ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; -#if CYTHON_COMPILING_IN_CPYTHON +#if !CYTHON_AVOID_BORROWED_REFS result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); @@ -14874,8 +16302,103 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); } +/* SaveResetException */ + #if CYTHON_FAST_THREAD_STATE +static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { + *type = tstate->exc_type; + *value = tstate->exc_value; + *tb = tstate->exc_traceback; + Py_XINCREF(*type); + Py_XINCREF(*value); + Py_XINCREF(*tb); +} +static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { + PyObject *tmp_type, *tmp_value, *tmp_tb; + tmp_type = tstate->exc_type; + tmp_value = tstate->exc_value; + tmp_tb = tstate->exc_traceback; + tstate->exc_type = type; + tstate->exc_value = value; + tstate->exc_traceback = tb; + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); +} +#endif + +/* PyErrExceptionMatches */ + #if CYTHON_FAST_THREAD_STATE +static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { + PyObject *exc_type = tstate->curexc_type; + if (exc_type == err) return 1; + if (unlikely(!exc_type)) return 0; + return PyErr_GivenExceptionMatches(exc_type, err); +} +#endif + +/* GetException */ + #if CYTHON_FAST_THREAD_STATE +static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { +#else +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { +#endif + PyObject *local_type, *local_value, *local_tb; +#if CYTHON_FAST_THREAD_STATE + PyObject *tmp_type, *tmp_value, *tmp_tb; + local_type = tstate->curexc_type; + local_value = tstate->curexc_value; + local_tb = tstate->curexc_traceback; + tstate->curexc_type = 0; + tstate->curexc_value = 0; + tstate->curexc_traceback = 0; +#else + PyErr_Fetch(&local_type, &local_value, &local_tb); +#endif + PyErr_NormalizeException(&local_type, &local_value, &local_tb); +#if CYTHON_FAST_THREAD_STATE + if (unlikely(tstate->curexc_type)) +#else + if (unlikely(PyErr_Occurred())) +#endif + goto bad; + #if PY_MAJOR_VERSION >= 3 + if (local_tb) { + if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) + goto bad; + } + #endif + Py_XINCREF(local_tb); + Py_XINCREF(local_type); + Py_XINCREF(local_value); + *type = local_type; + *value = local_value; + *tb = local_tb; +#if CYTHON_FAST_THREAD_STATE + tmp_type = tstate->exc_type; + tmp_value = tstate->exc_value; + tmp_tb = tstate->exc_traceback; + tstate->exc_type = local_type; + tstate->exc_value = local_value; + tstate->exc_traceback = local_tb; + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); +#else + PyErr_SetExcInfo(local_type, local_value, local_tb); +#endif + return 0; +bad: + *type = 0; + *value = 0; + *tb = 0; + Py_XDECREF(local_type); + Py_XDECREF(local_value); + Py_XDECREF(local_tb); + return -1; +} + /* Import */ - static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { + static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; @@ -14949,7 +16472,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject } /* CodeObjectCache */ - static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { + static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; @@ -15029,7 +16552,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { } /* AddTraceback */ - #include "compile.h" + #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( @@ -15102,7 +16625,7 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line, 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; - py_frame->f_lineno = py_line; + __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); @@ -15132,8 +16655,8 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif - /* CIntFromPyVerify */ - #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ + /* CIntFromPyVerify */ + #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) @@ -15155,88 +16678,100 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { - const int neg_one = (int) -1, const_zero = (int) 0; + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { + const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { - if (sizeof(int) < sizeof(long)) { + if (sizeof(unsigned int) < sizeof(long)) { return PyInt_FromLong((long) value); - } else if (sizeof(int) <= sizeof(unsigned long)) { + } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { +#ifdef HAVE_LONG_LONG + } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { - if (sizeof(int) <= sizeof(long)) { + if (sizeof(unsigned int) <= sizeof(long)) { return PyInt_FromLong((long) value); - } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { +#ifdef HAVE_LONG_LONG + } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; - return _PyLong_FromByteArray(bytes, sizeof(int), + return _PyLong_FromByteArray(bytes, sizeof(unsigned int), little, !is_unsigned); } } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { - const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { + const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { - if (sizeof(unsigned int) < sizeof(long)) { + if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); - } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { + } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { +#ifdef HAVE_LONG_LONG + } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { - if (sizeof(unsigned int) <= sizeof(long)) { + if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); - } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { +#ifdef HAVE_LONG_LONG + } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; - return _PyLong_FromByteArray(bytes, sizeof(unsigned int), + return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { - const long neg_one = (long) -1, const_zero = (long) 0; + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { + const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { - if (sizeof(long) < sizeof(long)) { + if (sizeof(int) < sizeof(long)) { return PyInt_FromLong((long) value); - } else if (sizeof(long) <= sizeof(unsigned long)) { + } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { +#ifdef HAVE_LONG_LONG + } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { - if (sizeof(long) <= sizeof(long)) { + if (sizeof(int) <= sizeof(long)) { return PyInt_FromLong((long) value); - } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { +#ifdef HAVE_LONG_LONG + } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; - return _PyLong_FromByteArray(bytes, sizeof(long), + return _PyLong_FromByteArray(bytes, sizeof(int), little, !is_unsigned); } } -/* None */ - #if CYTHON_CCOMPLEX +/* Declarations */ + #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) { return ::std::complex< float >(x, y); @@ -15255,61 +16790,86 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } #endif -/* None */ - #if CYTHON_CCOMPLEX +/* Arithmetic */ + #if CYTHON_CCOMPLEX #else - static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { return (a.real == b.real) && (a.imag == b.imag); } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real + b.real; z.imag = a.imag + b.imag; return z; } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real - b.real; z.imag = a.imag - b.imag; return z; } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real * b.real - a.imag * b.imag; z.imag = a.real * b.imag + a.imag * b.real; return z; } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex a, __pyx_t_float_complex b) { - __pyx_t_float_complex z; - float denom = b.real * b.real + b.imag * b.imag; - z.real = (a.real * b.real + a.imag * b.imag) / denom; - z.imag = (a.imag * b.real - a.real * b.imag) / denom; - return z; + #if 1 + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { + if (b.imag == 0) { + return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); + } else if (fabsf(b.real) >= fabsf(b.imag)) { + if (b.real == 0 && b.imag == 0) { + return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag); + } else { + float r = b.imag / b.real; + float s = 1.0 / (b.real + b.imag * r); + return __pyx_t_float_complex_from_parts( + (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); + } + } else { + float r = b.real / b.imag; + float s = 1.0 / (b.imag + b.real * r); + return __pyx_t_float_complex_from_parts( + (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); + } + } + #else + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { + if (b.imag == 0) { + return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); + } else { + float denom = b.real * b.real + b.imag * b.imag; + return __pyx_t_float_complex_from_parts( + (a.real * b.real + a.imag * b.imag) / denom, + (a.imag * b.real - a.real * b.imag) / denom); + } } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex a) { + #endif + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) { __pyx_t_float_complex z; z.real = -a.real; z.imag = -a.imag; return z; } - static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) { + static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex a) { return (a.real == 0) && (a.imag == 0); } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex a) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) { __pyx_t_float_complex z; z.real = a.real; z.imag = -a.imag; return z; } #if 1 - static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex z) { + static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex z) { #if !defined(HAVE_HYPOT) || defined(_MSC_VER) return sqrtf(z.real*z.real + z.imag*z.imag); #else return hypotf(z.real, z.imag); #endif } - static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex a, __pyx_t_float_complex b) { + static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; float r, lnr, theta, z_r, z_theta; if (b.imag == 0 && b.real == (int)b.real) { @@ -15327,14 +16887,14 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { case 1: return a; case 2: - z = __Pyx_c_prodf(a, a); - return __Pyx_c_prodf(a, a); + z = __Pyx_c_prod_float(a, a); + return __Pyx_c_prod_float(a, a); case 3: - z = __Pyx_c_prodf(a, a); - return __Pyx_c_prodf(z, a); + z = __Pyx_c_prod_float(a, a); + return __Pyx_c_prod_float(z, a); case 4: - z = __Pyx_c_prodf(a, a); - return __Pyx_c_prodf(z, z); + z = __Pyx_c_prod_float(a, a); + return __Pyx_c_prod_float(z, z); } } if (a.imag == 0) { @@ -15344,7 +16904,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { r = a.real; theta = 0; } else { - r = __Pyx_c_absf(a); + r = __Pyx_c_abs_float(a); theta = atan2f(a.imag, a.real); } lnr = logf(r); @@ -15357,8 +16917,8 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif #endif -/* None */ - #if CYTHON_CCOMPLEX +/* Declarations */ + #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) { return ::std::complex< double >(x, y); @@ -15377,61 +16937,86 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } #endif -/* None */ - #if CYTHON_CCOMPLEX +/* Arithmetic */ + #if CYTHON_CCOMPLEX #else - static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { return (a.real == b.real) && (a.imag == b.imag); } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real + b.real; z.imag = a.imag + b.imag; return z; } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real - b.real; z.imag = a.imag - b.imag; return z; } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real * b.real - a.imag * b.imag; z.imag = a.real * b.imag + a.imag * b.real; return z; } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex a, __pyx_t_double_complex b) { - __pyx_t_double_complex z; - double denom = b.real * b.real + b.imag * b.imag; - z.real = (a.real * b.real + a.imag * b.imag) / denom; - z.imag = (a.imag * b.real - a.real * b.imag) / denom; - return z; + #if 1 + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { + if (b.imag == 0) { + return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); + } else if (fabs(b.real) >= fabs(b.imag)) { + if (b.real == 0 && b.imag == 0) { + return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag); + } else { + double r = b.imag / b.real; + double s = 1.0 / (b.real + b.imag * r); + return __pyx_t_double_complex_from_parts( + (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); + } + } else { + double r = b.real / b.imag; + double s = 1.0 / (b.imag + b.real * r); + return __pyx_t_double_complex_from_parts( + (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); + } } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex a) { + #else + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { + if (b.imag == 0) { + return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); + } else { + double denom = b.real * b.real + b.imag * b.imag; + return __pyx_t_double_complex_from_parts( + (a.real * b.real + a.imag * b.imag) / denom, + (a.imag * b.real - a.real * b.imag) / denom); + } + } + #endif + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) { __pyx_t_double_complex z; z.real = -a.real; z.imag = -a.imag; return z; } - static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) { + static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex a) { return (a.real == 0) && (a.imag == 0); } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex a) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) { __pyx_t_double_complex z; z.real = a.real; z.imag = -a.imag; return z; } #if 1 - static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex z) { + static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex z) { #if !defined(HAVE_HYPOT) || defined(_MSC_VER) return sqrt(z.real*z.real + z.imag*z.imag); #else return hypot(z.real, z.imag); #endif } - static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex a, __pyx_t_double_complex b) { + static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; double r, lnr, theta, z_r, z_theta; if (b.imag == 0 && b.real == (int)b.real) { @@ -15449,14 +17034,14 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { case 1: return a; case 2: - z = __Pyx_c_prod(a, a); - return __Pyx_c_prod(a, a); + z = __Pyx_c_prod_double(a, a); + return __Pyx_c_prod_double(a, a); case 3: - z = __Pyx_c_prod(a, a); - return __Pyx_c_prod(z, a); + z = __Pyx_c_prod_double(a, a); + return __Pyx_c_prod_double(z, a); case 4: - z = __Pyx_c_prod(a, a); - return __Pyx_c_prod(z, z); + z = __Pyx_c_prod_double(a, a); + return __Pyx_c_prod_double(z, z); } } if (a.imag == 0) { @@ -15466,7 +17051,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { r = a.real; theta = 0; } else { - r = __Pyx_c_abs(a); + r = __Pyx_c_abs_double(a); theta = atan2(a.imag, a.real); } lnr = log(r); @@ -15480,7 +17065,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) { const enum NPY_TYPES neg_one = (enum NPY_TYPES) -1, const_zero = (enum NPY_TYPES) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -15488,14 +17073,18 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return PyInt_FromLong((long) value); } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); +#endif } } else { if (sizeof(enum NPY_TYPES) <= sizeof(long)) { return PyInt_FromLong((long) value); +#ifdef HAVE_LONG_LONG } else if (sizeof(enum NPY_TYPES) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); +#endif } } { @@ -15507,7 +17096,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { + static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -15574,8 +17163,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -15642,8 +17233,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -15692,7 +17285,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { + static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -15759,8 +17352,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) +#endif } } else { #if CYTHON_USE_PYLONG_INTERNALS @@ -15827,8 +17422,10 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) +#ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) +#endif } } { @@ -15877,7 +17474,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CheckBinaryVersion */ - static int __Pyx_check_binary_version(void) { + static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); @@ -15893,7 +17490,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* ModuleImport */ - #ifndef __PYX_HAVE_RT_ImportModule + #ifndef __PYX_HAVE_RT_ImportModule #define __PYX_HAVE_RT_ImportModule static PyObject *__Pyx_ImportModule(const char *name) { PyObject *py_name = 0; @@ -15911,7 +17508,7 @@ static PyObject *__Pyx_ImportModule(const char *name) { #endif /* TypeImport */ - #ifndef __PYX_HAVE_RT_ImportType + #ifndef __PYX_HAVE_RT_ImportType #define __PYX_HAVE_RT_ImportType static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict) @@ -15976,7 +17573,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class #endif /* InitStrings */ - static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { + static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { @@ -16077,7 +17674,9 @@ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { +#if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; +#endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 @@ -16086,8 +17685,9 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { if (PyLong_Check(x)) #endif return __Pyx_NewRef(x); +#if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; -#if PY_MAJOR_VERSION < 3 + #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); @@ -16096,11 +17696,14 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { name = "long"; res = PyNumber_Long(x); } -#else + #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } + #endif +#else + res = PyNumber_Int(x); #endif if (res) { #if PY_MAJOR_VERSION < 3 diff --git a/root_numpy/tmva/src/_libtmvanumpy.pyx b/root_numpy/tmva/src/_libtmvanumpy.pyx index 40d3e78..7c11627 100644 --- a/root_numpy/tmva/src/_libtmvanumpy.pyx +++ b/root_numpy/tmva/src/_libtmvanumpy.pyx @@ -1,5 +1,5 @@ # cython: experimental_cpp_class_def=True, c_string_type=str, c_string_encoding=ascii include "setup.pxi" -include "factory.pyx" include "evaluate.pyx" +include "data.pyx" diff --git a/root_numpy/tmva/src/factory.pyx b/root_numpy/tmva/src/data.pyx similarity index 78% rename from root_numpy/tmva/src/factory.pyx rename to root_numpy/tmva/src/data.pyx index 8a619a9..5f23ca3 100644 --- a/root_numpy/tmva/src/factory.pyx +++ b/root_numpy/tmva/src/data.pyx @@ -1,14 +1,14 @@ @cython.boundscheck(False) @cython.wraparound(False) -def factory_add_events_twoclass( - factory, +def add_events_twoclass( + obj, np.ndarray[np.double_t, ndim=2] events, np.ndarray[np.int_t, ndim=1] labels, int signal_label, np.ndarray[np.double_t, ndim=1] weights=None, bool test=False): - cdef Factory* _factory = PyCObject_AsVoidPtr(factory) + cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) cdef long size = events.shape[0] cdef long n_features = events.shape[1] cdef long i, j @@ -25,21 +25,21 @@ def factory_add_events_twoclass( for j from 0 <= j < n_features: event[0][j] = events[i, j] if label == signal_label: - _factory.AddEvent("Signal", treetype, event[0], weight) + _obj.AddEvent("Signal", treetype, event[0], weight) else: - _factory.AddEvent("Background", treetype, event[0], weight) + _obj.AddEvent("Background", treetype, event[0], weight) del event @cython.boundscheck(False) @cython.wraparound(False) -def factory_add_events_multiclass( - factory, +def add_events_multiclass( + obj, np.ndarray[np.double_t, ndim=2] events, np.ndarray[np.int_t, ndim=1] labels, np.ndarray[np.double_t, ndim=1] weights=None, bool test=False): - cdef Factory* _factory = PyCObject_AsVoidPtr(factory) + cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) cdef long size = events.shape[0] cdef long n_features = events.shape[1] cdef long i, j @@ -55,19 +55,19 @@ def factory_add_events_multiclass( weight = weights[i] for j from 0 <= j < n_features: event[0][j] = events[i, j] - _factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) + _obj.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight) del event @cython.boundscheck(False) @cython.wraparound(False) -def factory_add_events_regression( - factory, +def add_events_regression( + obj, np.ndarray[np.double_t, ndim=2] events, np.ndarray[np.double_t, ndim=2] targets, np.ndarray[np.double_t, ndim=1] weights=None, bool test=False): - cdef Factory* _factory = PyCObject_AsVoidPtr(factory) + cdef TMVA_Object* _obj = PyCObject_AsVoidPtr(obj) cdef long size = events.shape[0] cdef long n_features = events.shape[1] cdef long n_targets = targets.shape[1] @@ -84,5 +84,5 @@ def factory_add_events_regression( event[0][j] = events[i, j] for j from 0 <= j < n_targets: event[0][n_features + j] = targets[i, j] - _factory.AddEvent("Regression", treetype, event[0], weight) + _obj.AddEvent("Regression", treetype, event[0], weight) del event diff --git a/root_numpy/tmva/src/defs.h b/root_numpy/tmva/src/defs.h new file mode 100644 index 0000000..21496a4 --- /dev/null +++ b/root_numpy/tmva/src/defs.h @@ -0,0 +1,7 @@ +#ifdef NEW_TMVA_API +#include "TMVA/DataLoader.h" +typedef TMVA::DataLoader TMVA_Object; +#else +#include "TMVA/Factory.h" +typedef TMVA::Factory TMVA_Object; +#endif diff --git a/root_numpy/tmva/tests.py b/root_numpy/tmva/tests.py index 90cdbe2..456f87c 100644 --- a/root_numpy/tmva/tests.py +++ b/root_numpy/tmva/tests.py @@ -3,8 +3,10 @@ SKIP = False try: from root_numpy.tmva import _libtmvanumpy + from root_numpy.tmva._data import NEW_TMVA_API except ImportError: # pragma: no cover SKIP = True + raise import os import tempfile @@ -47,11 +49,13 @@ def __init__(self, name, n_vars, n_targets=1, 'recreate') self.factory = ROOT.TMVA.Factory( name, self.output, 'AnalysisType={0}:Silent'.format(task)) - for n in range(n_vars): - self.factory.AddVariable('X_{0}'.format(n), 'F') - if task == 'Regression': - for n in range(n_targets): - self.factory.AddTarget('y_{0}'.format(n), 'F') + + if not NEW_TMVA_API: # pragma: no cover + for n in range(n_vars): + self.factory.AddVariable('X_{0}'.format(n), 'F') + if task == 'Regression': + for n in range(n_targets): + self.factory.AddTarget('y_{0}'.format(n), 'F') def __del__(self): self.output.Close() @@ -68,6 +72,18 @@ def fit(self, X, y, X_test=None, y_test=None, config.SetDrawProgressBar(False) self.factory.DeleteAllMethods() + if NEW_TMVA_API: # pragma: no cover + # DataLoader name must be an empty string otherwise TMVA tries to + # prepend the name to the path where the weights files are located + obj = ROOT.TMVA.DataLoader('') + for n in range(self.n_vars): + obj.AddVariable('X_{0}'.format(n), 'F') + if self.task == 'Regression': + for n in range(self.n_targets): + obj.AddTarget('y_{0}'.format(n), 'F') + else: # pragma: no cover + obj = self.factory + extra_kwargs = dict() if self.task == 'Regression': func = rnp.tmva.add_regression_events @@ -77,27 +93,26 @@ def fit(self, X, y, X_test=None, y_test=None, # test exceptions assert_raises(TypeError, func, object(), X, y) - assert_raises(ValueError, func, - self.factory, X, y[:y.shape[0] // 2]) + assert_raises(ValueError, func, obj, X, y[:y.shape[0] // 2]) if weights is not None: - assert_raises(ValueError, func, self.factory, X, y, + assert_raises(ValueError, func, obj, X, y, weights=weights[:weights.shape[0] // 2]) - assert_raises(ValueError, func, self.factory, X, y, + assert_raises(ValueError, func, obj, X, y, weights=weights[:, np.newaxis]) - assert_raises(ValueError, func, self.factory, [[[1, 2]]], [1]) - assert_raises(ValueError, func, self.factory, [[1, 2]], [[[1]]]) + assert_raises(ValueError, func, obj, [[[1, 2]]], [1]) + assert_raises(ValueError, func, obj, [[1, 2]], [[[1]]]) + + func(obj, X, y, weights=weights, **extra_kwargs) - func(self.factory, X, y, weights=weights, **extra_kwargs) if X_test is None: X_test = X y_test = y weights_test = weights - func(self.factory, X_test, y_test, + func(obj, X_test, y_test, weights=weights_test, test=True, **extra_kwargs) - self.factory.PrepareTrainingAndTestTree( - TCut('1'), 'NormMode=EqualNumEvents') + obj.PrepareTrainingAndTestTree(TCut('1'), 'NormMode=EqualNumEvents') options = [] for param, value in kwargs.items(): if value is True: @@ -107,7 +122,10 @@ def fit(self, X, y, X_test=None, y_test=None, else: options.append('{0}={1}'.format(param, value)) options = ':'.join(options) - self.factory.BookMethod(self.method, self.method, options) + if NEW_TMVA_API: # pragma: no cover + self.factory.BookMethod(obj, self.method, self.method, options) + else: # pragma: no cover + self.factory.BookMethod(self.method, self.method, options) self.factory.TrainAllMethods() def predict(self, X, aux=0.): @@ -128,7 +146,7 @@ def predict(self, X, aux=0.): assert_raises(ValueError, rnp.tmva.evaluate_reader, reader, self.method, [1, 2, 3]) output = rnp.tmva.evaluate_reader(reader, self.method, X, aux) - if ROOT.gROOT.GetVersionInt() >= 60300: + if ROOT.gROOT.GetVersionInt() >= 60300: # pragma: no cover method = reader.FindMVA(self.method) assert_raises(TypeError, rnp.tmva.evaluate_method, object(), X) diff --git a/setup.py b/setup.py index 153209a..c106712 100755 --- a/setup.py +++ b/setup.py @@ -90,19 +90,22 @@ 'root_numpy.extern', ] -if has_tmva and not os.getenv('NOTMVA', None): +if has_tmva: librootnumpy_tmva = Extension( 'root_numpy.tmva._libtmvanumpy', sources=[ 'root_numpy/tmva/src/_libtmvanumpy.cpp', ], - depends=['root_numpy/src/2to3.h'], + depends=glob('root_numpy/tmva/src/*.h') + [ + 'root_numpy/src/2to3.h', + ], language='c++', include_dirs=[ numpy.get_include(), 'root_numpy/src', 'root_numpy/tmva/src', ], + define_macros=[('NEW_TMVA_API', None)] if root_version >= '6.07/04' else [], extra_compile_args=root_cflags + [ '-Wno-unused-function', '-Wno-write-strings', @@ -136,7 +139,7 @@ print(__doc__) config = { - 'ROOT_version': root_version, + 'ROOT_version': str(root_version), 'numpy_version': numpy.__version__, }