scikit-network 0.33.0__cp311-cp311-win_amd64.whl → 0.33.2__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of scikit-network might be problematic. Click here for more details.
- scikit_network-0.33.2.dist-info/METADATA +122 -0
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info}/RECORD +44 -44
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info}/WHEEL +1 -1
- sknetwork/classification/diffusion.py +1 -1
- sknetwork/classification/knn.py +1 -1
- sknetwork/classification/metrics.py +3 -3
- sknetwork/classification/pagerank.py +1 -1
- sknetwork/classification/propagation.py +1 -1
- sknetwork/classification/vote.cp311-win_amd64.pyd +0 -0
- sknetwork/classification/vote.cpp +686 -679
- sknetwork/clustering/leiden_core.cp311-win_amd64.pyd +0 -0
- sknetwork/clustering/leiden_core.cpp +715 -704
- sknetwork/clustering/louvain.py +3 -3
- sknetwork/clustering/louvain_core.cp311-win_amd64.pyd +0 -0
- sknetwork/clustering/louvain_core.cpp +715 -704
- sknetwork/clustering/metrics.py +1 -1
- sknetwork/clustering/tests/test_louvain.py +6 -0
- sknetwork/gnn/base_activation.py +1 -0
- sknetwork/gnn/gnn_classifier.py +1 -1
- sknetwork/hierarchy/metrics.py +3 -3
- sknetwork/hierarchy/paris.cp311-win_amd64.pyd +0 -0
- sknetwork/hierarchy/paris.cpp +1766 -1162
- sknetwork/linalg/diteration.cp311-win_amd64.pyd +0 -0
- sknetwork/linalg/diteration.cpp +686 -679
- sknetwork/linalg/push.cp311-win_amd64.pyd +0 -0
- sknetwork/linalg/push.cpp +1763 -1165
- sknetwork/linalg/sparse_lowrank.py +1 -1
- sknetwork/ranking/betweenness.cp311-win_amd64.pyd +0 -0
- sknetwork/ranking/betweenness.cpp +565 -559
- sknetwork/topology/cliques.cp311-win_amd64.pyd +0 -0
- sknetwork/topology/cliques.cpp +1723 -1122
- sknetwork/topology/core.cp311-win_amd64.pyd +0 -0
- sknetwork/topology/core.cpp +1749 -1151
- sknetwork/topology/cycles.py +2 -2
- sknetwork/topology/minheap.cp311-win_amd64.pyd +0 -0
- sknetwork/topology/minheap.cpp +689 -679
- sknetwork/topology/triangles.cp311-win_amd64.pyd +0 -0
- sknetwork/topology/triangles.cpp +439 -434
- sknetwork/topology/weisfeiler_lehman_core.cp311-win_amd64.pyd +0 -0
- sknetwork/topology/weisfeiler_lehman_core.cpp +686 -679
- sknetwork/visualization/graphs.py +1 -1
- scikit_network-0.33.0.dist-info/METADATA +0 -517
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info/licenses}/AUTHORS.rst +0 -0
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info/licenses}/LICENSE +0 -0
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info}/top_level.txt +0 -0
sknetwork/linalg/push.cpp
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/* Generated by Cython 3.0.
|
|
1
|
+
/* Generated by Cython 3.0.12 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
5
5
|
"distutils": {
|
|
6
6
|
"depends": [
|
|
7
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
8
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
9
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
10
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
11
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
7
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayobject.h",
|
|
8
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayscalars.h",
|
|
9
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarrayobject.h",
|
|
10
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarraytypes.h",
|
|
11
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ufuncobject.h"
|
|
12
12
|
],
|
|
13
13
|
"extra_compile_args": [
|
|
14
14
|
"/d2FH4-"
|
|
15
15
|
],
|
|
16
16
|
"include_dirs": [
|
|
17
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
17
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
|
|
18
18
|
],
|
|
19
19
|
"language": "c++",
|
|
20
20
|
"name": "sknetwork.linalg.push",
|
|
@@ -50,10 +50,10 @@ END: Cython Metadata */
|
|
|
50
50
|
#else
|
|
51
51
|
#define __PYX_EXTRA_ABI_MODULE_NAME ""
|
|
52
52
|
#endif
|
|
53
|
-
#define CYTHON_ABI "
|
|
53
|
+
#define CYTHON_ABI "3_0_12" __PYX_EXTRA_ABI_MODULE_NAME
|
|
54
54
|
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
|
|
55
55
|
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
|
|
56
|
-
#define CYTHON_HEX_VERSION
|
|
56
|
+
#define CYTHON_HEX_VERSION 0x03000CF0
|
|
57
57
|
#define CYTHON_FUTURE_DIVISION 1
|
|
58
58
|
#include <stddef.h>
|
|
59
59
|
#ifndef offsetof
|
|
@@ -1693,7 +1693,7 @@ typedef struct {
|
|
|
1693
1693
|
|
|
1694
1694
|
/* #### Code section: numeric_typedefs ### */
|
|
1695
1695
|
|
|
1696
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1696
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":787
|
|
1697
1697
|
* # in Cython to enable them only on the right systems.
|
|
1698
1698
|
*
|
|
1699
1699
|
* ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
|
|
@@ -1702,7 +1702,7 @@ typedef struct {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
1704
1704
|
|
|
1705
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1705
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":788
|
|
1706
1706
|
*
|
|
1707
1707
|
* ctypedef npy_int8 int8_t
|
|
1708
1708
|
* ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
|
|
@@ -1711,7 +1711,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
|
1711
1711
|
*/
|
|
1712
1712
|
typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
1713
1713
|
|
|
1714
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1714
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":789
|
|
1715
1715
|
* ctypedef npy_int8 int8_t
|
|
1716
1716
|
* ctypedef npy_int16 int16_t
|
|
1717
1717
|
* ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
|
|
@@ -1720,7 +1720,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
|
1720
1720
|
*/
|
|
1721
1721
|
typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
1722
1722
|
|
|
1723
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1723
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":790
|
|
1724
1724
|
* ctypedef npy_int16 int16_t
|
|
1725
1725
|
* ctypedef npy_int32 int32_t
|
|
1726
1726
|
* ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
|
|
@@ -1729,7 +1729,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
|
1729
1729
|
*/
|
|
1730
1730
|
typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
1731
1731
|
|
|
1732
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1732
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":794
|
|
1733
1733
|
* #ctypedef npy_int128 int128_t
|
|
1734
1734
|
*
|
|
1735
1735
|
* ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
|
|
@@ -1738,7 +1738,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
|
1738
1738
|
*/
|
|
1739
1739
|
typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
1740
1740
|
|
|
1741
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1741
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":795
|
|
1742
1742
|
*
|
|
1743
1743
|
* ctypedef npy_uint8 uint8_t
|
|
1744
1744
|
* ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
|
|
@@ -1747,7 +1747,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
|
1747
1747
|
*/
|
|
1748
1748
|
typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
1749
1749
|
|
|
1750
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1750
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":796
|
|
1751
1751
|
* ctypedef npy_uint8 uint8_t
|
|
1752
1752
|
* ctypedef npy_uint16 uint16_t
|
|
1753
1753
|
* ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
|
|
@@ -1756,7 +1756,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
|
1756
1756
|
*/
|
|
1757
1757
|
typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
1758
1758
|
|
|
1759
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1759
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":797
|
|
1760
1760
|
* ctypedef npy_uint16 uint16_t
|
|
1761
1761
|
* ctypedef npy_uint32 uint32_t
|
|
1762
1762
|
* ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
|
|
@@ -1765,7 +1765,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
|
1765
1765
|
*/
|
|
1766
1766
|
typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
1767
1767
|
|
|
1768
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1768
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":801
|
|
1769
1769
|
* #ctypedef npy_uint128 uint128_t
|
|
1770
1770
|
*
|
|
1771
1771
|
* ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
|
|
@@ -1774,7 +1774,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
|
1774
1774
|
*/
|
|
1775
1775
|
typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
1776
1776
|
|
|
1777
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1777
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":802
|
|
1778
1778
|
*
|
|
1779
1779
|
* ctypedef npy_float32 float32_t
|
|
1780
1780
|
* ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
|
|
@@ -1783,43 +1783,25 @@ typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
|
1783
1783
|
*/
|
|
1784
1784
|
typedef npy_float64 __pyx_t_5numpy_float64_t;
|
|
1785
1785
|
|
|
1786
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1787
|
-
*
|
|
1788
|
-
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
1789
|
-
* ctypedef npy_long int_t # <<<<<<<<<<<<<<
|
|
1790
|
-
* ctypedef npy_longlong longlong_t
|
|
1786
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":809
|
|
1787
|
+
* ctypedef double complex complex128_t
|
|
1791
1788
|
*
|
|
1792
|
-
*/
|
|
1793
|
-
typedef npy_long __pyx_t_5numpy_int_t;
|
|
1794
|
-
|
|
1795
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":755
|
|
1796
|
-
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
1797
|
-
* ctypedef npy_long int_t
|
|
1798
1789
|
* ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
|
|
1799
|
-
*
|
|
1800
|
-
* ctypedef npy_ulong uint_t
|
|
1801
|
-
*/
|
|
1802
|
-
typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
1803
|
-
|
|
1804
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":757
|
|
1805
|
-
* ctypedef npy_longlong longlong_t
|
|
1806
|
-
*
|
|
1807
|
-
* ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
|
|
1808
1790
|
* ctypedef npy_ulonglong ulonglong_t
|
|
1809
1791
|
*
|
|
1810
1792
|
*/
|
|
1811
|
-
typedef
|
|
1793
|
+
typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
1812
1794
|
|
|
1813
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1795
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
|
|
1814
1796
|
*
|
|
1815
|
-
* ctypedef
|
|
1797
|
+
* ctypedef npy_longlong longlong_t
|
|
1816
1798
|
* ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
|
|
1817
1799
|
*
|
|
1818
1800
|
* ctypedef npy_intp intp_t
|
|
1819
1801
|
*/
|
|
1820
1802
|
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
1821
1803
|
|
|
1822
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1804
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":812
|
|
1823
1805
|
* ctypedef npy_ulonglong ulonglong_t
|
|
1824
1806
|
*
|
|
1825
1807
|
* ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
|
|
@@ -1828,7 +1810,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
|
1828
1810
|
*/
|
|
1829
1811
|
typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
1830
1812
|
|
|
1831
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1813
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
|
|
1832
1814
|
*
|
|
1833
1815
|
* ctypedef npy_intp intp_t
|
|
1834
1816
|
* ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
|
|
@@ -1837,7 +1819,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
|
1837
1819
|
*/
|
|
1838
1820
|
typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
1839
1821
|
|
|
1840
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1822
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":815
|
|
1841
1823
|
* ctypedef npy_uintp uintp_t
|
|
1842
1824
|
*
|
|
1843
1825
|
* ctypedef npy_double float_t # <<<<<<<<<<<<<<
|
|
@@ -1846,7 +1828,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
|
1846
1828
|
*/
|
|
1847
1829
|
typedef npy_double __pyx_t_5numpy_float_t;
|
|
1848
1830
|
|
|
1849
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1831
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
|
|
1850
1832
|
*
|
|
1851
1833
|
* ctypedef npy_double float_t
|
|
1852
1834
|
* ctypedef npy_double double_t # <<<<<<<<<<<<<<
|
|
@@ -1855,12 +1837,12 @@ typedef npy_double __pyx_t_5numpy_float_t;
|
|
|
1855
1837
|
*/
|
|
1856
1838
|
typedef npy_double __pyx_t_5numpy_double_t;
|
|
1857
1839
|
|
|
1858
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1840
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":817
|
|
1859
1841
|
* ctypedef npy_double float_t
|
|
1860
1842
|
* ctypedef npy_double double_t
|
|
1861
1843
|
* ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
|
|
1862
1844
|
*
|
|
1863
|
-
* ctypedef
|
|
1845
|
+
* ctypedef float complex cfloat_t
|
|
1864
1846
|
*/
|
|
1865
1847
|
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
|
|
1866
1848
|
/* #### Code section: complex_type_declarations ### */
|
|
@@ -1888,6 +1870,18 @@ static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(floa
|
|
|
1888
1870
|
#endif
|
|
1889
1871
|
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);
|
|
1890
1872
|
|
|
1873
|
+
/* Declarations.proto */
|
|
1874
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
1875
|
+
#ifdef __cplusplus
|
|
1876
|
+
typedef ::std::complex< long double > __pyx_t_long_double_complex;
|
|
1877
|
+
#else
|
|
1878
|
+
typedef long double _Complex __pyx_t_long_double_complex;
|
|
1879
|
+
#endif
|
|
1880
|
+
#else
|
|
1881
|
+
typedef struct { long double real, imag; } __pyx_t_long_double_complex;
|
|
1882
|
+
#endif
|
|
1883
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double, long double);
|
|
1884
|
+
|
|
1891
1885
|
/* #### Code section: type_declarations ### */
|
|
1892
1886
|
|
|
1893
1887
|
/*--- Type declarations ---*/
|
|
@@ -1896,42 +1890,6 @@ struct __pyx_MemviewEnum_obj;
|
|
|
1896
1890
|
struct __pyx_memoryview_obj;
|
|
1897
1891
|
struct __pyx_memoryviewslice_obj;
|
|
1898
1892
|
|
|
1899
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":767
|
|
1900
|
-
* ctypedef npy_longdouble longdouble_t
|
|
1901
|
-
*
|
|
1902
|
-
* ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
|
|
1903
|
-
* ctypedef npy_cdouble cdouble_t
|
|
1904
|
-
* ctypedef npy_clongdouble clongdouble_t
|
|
1905
|
-
*/
|
|
1906
|
-
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
|
|
1907
|
-
|
|
1908
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":768
|
|
1909
|
-
*
|
|
1910
|
-
* ctypedef npy_cfloat cfloat_t
|
|
1911
|
-
* ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
|
|
1912
|
-
* ctypedef npy_clongdouble clongdouble_t
|
|
1913
|
-
*
|
|
1914
|
-
*/
|
|
1915
|
-
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
|
|
1916
|
-
|
|
1917
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":769
|
|
1918
|
-
* ctypedef npy_cfloat cfloat_t
|
|
1919
|
-
* ctypedef npy_cdouble cdouble_t
|
|
1920
|
-
* ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
|
|
1921
|
-
*
|
|
1922
|
-
* ctypedef npy_cdouble complex_t
|
|
1923
|
-
*/
|
|
1924
|
-
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
|
|
1925
|
-
|
|
1926
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":771
|
|
1927
|
-
* ctypedef npy_clongdouble clongdouble_t
|
|
1928
|
-
*
|
|
1929
|
-
* ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
|
|
1930
|
-
*
|
|
1931
|
-
* cdef inline object PyArray_MultiIterNew1(a):
|
|
1932
|
-
*/
|
|
1933
|
-
typedef npy_cdouble __pyx_t_5numpy_complex_t;
|
|
1934
|
-
|
|
1935
1893
|
/* "View.MemoryView":114
|
|
1936
1894
|
* @cython.collection_type("sequence")
|
|
1937
1895
|
* @cname("__pyx_array")
|
|
@@ -2303,7 +2261,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
|
|
|
2303
2261
|
#if !CYTHON_VECTORCALL
|
|
2304
2262
|
#if PY_VERSION_HEX >= 0x03080000
|
|
2305
2263
|
#include "frameobject.h"
|
|
2306
|
-
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
2264
|
+
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
|
|
2307
2265
|
#ifndef Py_BUILD_CORE
|
|
2308
2266
|
#define Py_BUILD_CORE 1
|
|
2309
2267
|
#endif
|
|
@@ -2640,11 +2598,7 @@ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* s
|
|
|
2640
2598
|
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
|
|
2641
2599
|
|
|
2642
2600
|
/* HasAttr.proto */
|
|
2643
|
-
#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
|
|
2644
|
-
#define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n)
|
|
2645
|
-
#else
|
|
2646
2601
|
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
|
|
2647
|
-
#endif
|
|
2648
2602
|
|
|
2649
2603
|
/* IsLittleEndian.proto */
|
|
2650
2604
|
static CYTHON_INLINE int __Pyx_Is_Little_Endian(void);
|
|
@@ -2727,22 +2681,22 @@ static int __Pyx_setup_reduce(PyObject* type_obj);
|
|
|
2727
2681
|
#endif
|
|
2728
2682
|
|
|
2729
2683
|
/* TypeImport.proto */
|
|
2730
|
-
#ifndef
|
|
2731
|
-
#define
|
|
2684
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2685
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2732
2686
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2733
2687
|
#include <stdalign.h>
|
|
2734
2688
|
#endif
|
|
2735
2689
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2736
|
-
#define
|
|
2690
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s)
|
|
2737
2691
|
#else
|
|
2738
|
-
#define
|
|
2692
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*)
|
|
2739
2693
|
#endif
|
|
2740
|
-
enum
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2694
|
+
enum __Pyx_ImportType_CheckSize_3_0_12 {
|
|
2695
|
+
__Pyx_ImportType_CheckSize_Error_3_0_12 = 0,
|
|
2696
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12 = 1,
|
|
2697
|
+
__Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2
|
|
2744
2698
|
};
|
|
2745
|
-
static PyTypeObject *
|
|
2699
|
+
static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size);
|
|
2746
2700
|
#endif
|
|
2747
2701
|
|
|
2748
2702
|
/* FetchSharedCythonModule.proto */
|
|
@@ -3063,6 +3017,44 @@ static CYTHON_INLINE int __pyx_memview_set_int(const char *itemp, PyObject *obj)
|
|
|
3063
3017
|
#endif
|
|
3064
3018
|
#endif
|
|
3065
3019
|
|
|
3020
|
+
/* Arithmetic.proto */
|
|
3021
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
3022
|
+
#define __Pyx_c_eq_long__double(a, b) ((a)==(b))
|
|
3023
|
+
#define __Pyx_c_sum_long__double(a, b) ((a)+(b))
|
|
3024
|
+
#define __Pyx_c_diff_long__double(a, b) ((a)-(b))
|
|
3025
|
+
#define __Pyx_c_prod_long__double(a, b) ((a)*(b))
|
|
3026
|
+
#define __Pyx_c_quot_long__double(a, b) ((a)/(b))
|
|
3027
|
+
#define __Pyx_c_neg_long__double(a) (-(a))
|
|
3028
|
+
#ifdef __cplusplus
|
|
3029
|
+
#define __Pyx_c_is_zero_long__double(z) ((z)==(long double)0)
|
|
3030
|
+
#define __Pyx_c_conj_long__double(z) (::std::conj(z))
|
|
3031
|
+
#if 1
|
|
3032
|
+
#define __Pyx_c_abs_long__double(z) (::std::abs(z))
|
|
3033
|
+
#define __Pyx_c_pow_long__double(a, b) (::std::pow(a, b))
|
|
3034
|
+
#endif
|
|
3035
|
+
#else
|
|
3036
|
+
#define __Pyx_c_is_zero_long__double(z) ((z)==0)
|
|
3037
|
+
#define __Pyx_c_conj_long__double(z) (conjl(z))
|
|
3038
|
+
#if 1
|
|
3039
|
+
#define __Pyx_c_abs_long__double(z) (cabsl(z))
|
|
3040
|
+
#define __Pyx_c_pow_long__double(a, b) (cpowl(a, b))
|
|
3041
|
+
#endif
|
|
3042
|
+
#endif
|
|
3043
|
+
#else
|
|
3044
|
+
static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3045
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3046
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3047
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3048
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3049
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex);
|
|
3050
|
+
static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex);
|
|
3051
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex);
|
|
3052
|
+
#if 1
|
|
3053
|
+
static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex);
|
|
3054
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3055
|
+
#endif
|
|
3056
|
+
#endif
|
|
3057
|
+
|
|
3066
3058
|
/* MemviewSliceCopyTemplate.proto */
|
|
3067
3059
|
static __Pyx_memviewslice
|
|
3068
3060
|
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
|
|
@@ -3146,6 +3138,18 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v
|
|
|
3146
3138
|
static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
|
|
3147
3139
|
static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/
|
|
3148
3140
|
static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto*/
|
|
3141
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3142
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3143
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3144
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3145
|
+
static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3146
|
+
static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3147
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3148
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3149
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3150
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3151
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3152
|
+
static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3149
3153
|
static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self); /* proto*/
|
|
3150
3154
|
static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self); /* proto*/
|
|
3151
3155
|
static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self); /* proto*/
|
|
@@ -3382,7 +3386,6 @@ static const char __pyx_k_itemsize_0_for_cython_array[] = "itemsize <= 0 for cyt
|
|
|
3382
3386
|
static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate array data.";
|
|
3383
3387
|
static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
|
|
3384
3388
|
static const char __pyx_k_Created_on_Mars_2021_author_Wen[] = "\nCreated on Mars 2021\n@author: Wenzhuo Zhao <wenzhuo.zhao@etu.sorbonne-universite.fr>\n";
|
|
3385
|
-
static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
|
|
3386
3389
|
static const char __pyx_k_All_dimensions_preceding_dimensi[] = "All dimensions preceding dimension %d must be indexed and not sliced";
|
|
3387
3390
|
static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
|
|
3388
3391
|
static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
|
|
@@ -3397,7 +3400,8 @@ static const char __pyx_k_Out_of_bounds_on_buffer_access_a[] = "Out of bounds on
|
|
|
3397
3400
|
static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object";
|
|
3398
3401
|
static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension ";
|
|
3399
3402
|
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
|
|
3400
|
-
static const char
|
|
3403
|
+
static const char __pyx_k_numpy__core_multiarray_failed_to[] = "numpy._core.multiarray failed to import";
|
|
3404
|
+
static const char __pyx_k_numpy__core_umath_failed_to_impo[] = "numpy._core.umath failed to import";
|
|
3401
3405
|
static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
|
|
3402
3406
|
/* #### Code section: decls ### */
|
|
3403
3407
|
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode, int __pyx_v_allocate_buffer); /* proto */
|
|
@@ -3628,8 +3632,8 @@ typedef struct {
|
|
|
3628
3632
|
PyObject *__pyx_n_s_norm;
|
|
3629
3633
|
PyObject *__pyx_n_s_np;
|
|
3630
3634
|
PyObject *__pyx_n_s_numpy;
|
|
3631
|
-
PyObject *
|
|
3632
|
-
PyObject *
|
|
3635
|
+
PyObject *__pyx_kp_u_numpy__core_multiarray_failed_to;
|
|
3636
|
+
PyObject *__pyx_kp_u_numpy__core_umath_failed_to_impo;
|
|
3633
3637
|
PyObject *__pyx_n_s_obj;
|
|
3634
3638
|
PyObject *__pyx_n_s_pack;
|
|
3635
3639
|
PyObject *__pyx_n_s_pickle;
|
|
@@ -3873,8 +3877,8 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3873
3877
|
Py_CLEAR(clear_module_state->__pyx_n_s_norm);
|
|
3874
3878
|
Py_CLEAR(clear_module_state->__pyx_n_s_np);
|
|
3875
3879
|
Py_CLEAR(clear_module_state->__pyx_n_s_numpy);
|
|
3876
|
-
Py_CLEAR(clear_module_state->
|
|
3877
|
-
Py_CLEAR(clear_module_state->
|
|
3880
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
|
|
3881
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
|
|
3878
3882
|
Py_CLEAR(clear_module_state->__pyx_n_s_obj);
|
|
3879
3883
|
Py_CLEAR(clear_module_state->__pyx_n_s_pack);
|
|
3880
3884
|
Py_CLEAR(clear_module_state->__pyx_n_s_pickle);
|
|
@@ -4096,8 +4100,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4096
4100
|
Py_VISIT(traverse_module_state->__pyx_n_s_norm);
|
|
4097
4101
|
Py_VISIT(traverse_module_state->__pyx_n_s_np);
|
|
4098
4102
|
Py_VISIT(traverse_module_state->__pyx_n_s_numpy);
|
|
4099
|
-
Py_VISIT(traverse_module_state->
|
|
4100
|
-
Py_VISIT(traverse_module_state->
|
|
4103
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
|
|
4104
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
|
|
4101
4105
|
Py_VISIT(traverse_module_state->__pyx_n_s_obj);
|
|
4102
4106
|
Py_VISIT(traverse_module_state->__pyx_n_s_pack);
|
|
4103
4107
|
Py_VISIT(traverse_module_state->__pyx_n_s_pickle);
|
|
@@ -4355,8 +4359,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4355
4359
|
#define __pyx_n_s_norm __pyx_mstate_global->__pyx_n_s_norm
|
|
4356
4360
|
#define __pyx_n_s_np __pyx_mstate_global->__pyx_n_s_np
|
|
4357
4361
|
#define __pyx_n_s_numpy __pyx_mstate_global->__pyx_n_s_numpy
|
|
4358
|
-
#define
|
|
4359
|
-
#define
|
|
4362
|
+
#define __pyx_kp_u_numpy__core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy__core_multiarray_failed_to
|
|
4363
|
+
#define __pyx_kp_u_numpy__core_umath_failed_to_impo __pyx_mstate_global->__pyx_kp_u_numpy__core_umath_failed_to_impo
|
|
4360
4364
|
#define __pyx_n_s_obj __pyx_mstate_global->__pyx_n_s_obj
|
|
4361
4365
|
#define __pyx_n_s_pack __pyx_mstate_global->__pyx_n_s_pack
|
|
4362
4366
|
#define __pyx_n_s_pickle __pyx_mstate_global->__pyx_n_s_pickle
|
|
@@ -4619,10 +4623,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4619
4623
|
PyObject *__pyx_t_4 = NULL;
|
|
4620
4624
|
PyObject *__pyx_t_5 = NULL;
|
|
4621
4625
|
PyObject *__pyx_t_6 = NULL;
|
|
4622
|
-
int __pyx_t_7;
|
|
4626
|
+
unsigned int __pyx_t_7;
|
|
4623
4627
|
char *__pyx_t_8;
|
|
4624
|
-
|
|
4625
|
-
|
|
4628
|
+
int __pyx_t_9;
|
|
4629
|
+
Py_ssize_t __pyx_t_10;
|
|
4630
|
+
Py_UCS4 __pyx_t_11;
|
|
4626
4631
|
int __pyx_lineno = 0;
|
|
4627
4632
|
const char *__pyx_filename = NULL;
|
|
4628
4633
|
int __pyx_clineno = 0;
|
|
@@ -4848,7 +4853,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4848
4853
|
* if dim <= 0:
|
|
4849
4854
|
* raise ValueError, f"Invalid shape in axis {idx}: {dim}."
|
|
4850
4855
|
*/
|
|
4851
|
-
|
|
4856
|
+
__pyx_t_9 = 0;
|
|
4852
4857
|
__pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4);
|
|
4853
4858
|
__pyx_t_1 = 0;
|
|
4854
4859
|
for (;;) {
|
|
@@ -4865,11 +4870,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4865
4870
|
__pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 159, __pyx_L1_error)
|
|
4866
4871
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4867
4872
|
#endif
|
|
4868
|
-
|
|
4873
|
+
__pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 159, __pyx_L1_error)
|
|
4869
4874
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4870
|
-
__pyx_v_dim =
|
|
4871
|
-
__pyx_v_idx =
|
|
4872
|
-
|
|
4875
|
+
__pyx_v_dim = __pyx_t_10;
|
|
4876
|
+
__pyx_v_idx = __pyx_t_9;
|
|
4877
|
+
__pyx_t_9 = (__pyx_t_9 + 1);
|
|
4873
4878
|
|
|
4874
4879
|
/* "View.MemoryView":160
|
|
4875
4880
|
*
|
|
@@ -4890,33 +4895,33 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4890
4895
|
*/
|
|
4891
4896
|
__pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4892
4897
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4893
|
-
|
|
4894
|
-
|
|
4898
|
+
__pyx_t_10 = 0;
|
|
4899
|
+
__pyx_t_11 = 127;
|
|
4895
4900
|
__Pyx_INCREF(__pyx_kp_u_Invalid_shape_in_axis);
|
|
4896
|
-
|
|
4901
|
+
__pyx_t_10 += 22;
|
|
4897
4902
|
__Pyx_GIVEREF(__pyx_kp_u_Invalid_shape_in_axis);
|
|
4898
4903
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Invalid_shape_in_axis);
|
|
4899
4904
|
__pyx_t_6 = __Pyx_PyUnicode_From_int(__pyx_v_idx, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4900
4905
|
__Pyx_GOTREF(__pyx_t_6);
|
|
4901
|
-
|
|
4906
|
+
__pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
|
|
4902
4907
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
4903
4908
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
|
|
4904
4909
|
__pyx_t_6 = 0;
|
|
4905
4910
|
__Pyx_INCREF(__pyx_kp_u_);
|
|
4906
|
-
|
|
4911
|
+
__pyx_t_10 += 2;
|
|
4907
4912
|
__Pyx_GIVEREF(__pyx_kp_u_);
|
|
4908
4913
|
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_);
|
|
4909
4914
|
__pyx_t_6 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_v_dim, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4910
4915
|
__Pyx_GOTREF(__pyx_t_6);
|
|
4911
|
-
|
|
4916
|
+
__pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
|
|
4912
4917
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
4913
4918
|
PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_6);
|
|
4914
4919
|
__pyx_t_6 = 0;
|
|
4915
4920
|
__Pyx_INCREF(__pyx_kp_u__2);
|
|
4916
|
-
|
|
4921
|
+
__pyx_t_10 += 1;
|
|
4917
4922
|
__Pyx_GIVEREF(__pyx_kp_u__2);
|
|
4918
4923
|
PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__2);
|
|
4919
|
-
__pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 5,
|
|
4924
|
+
__pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4920
4925
|
__Pyx_GOTREF(__pyx_t_6);
|
|
4921
4926
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4922
4927
|
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_6, 0, 0);
|
|
@@ -5100,7 +5105,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
5100
5105
|
*
|
|
5101
5106
|
* @cname('getbuffer')
|
|
5102
5107
|
*/
|
|
5103
|
-
|
|
5108
|
+
__pyx_t_9 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 180, __pyx_L1_error)
|
|
5104
5109
|
|
|
5105
5110
|
/* "View.MemoryView":179
|
|
5106
5111
|
* self.dtype_is_object = format == b'O'
|
|
@@ -8255,7 +8260,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8255
8260
|
*
|
|
8256
8261
|
* if have_slices: # <<<<<<<<<<<<<<
|
|
8257
8262
|
* obj = self.is_slice(value)
|
|
8258
|
-
* if obj:
|
|
8263
|
+
* if obj is not None:
|
|
8259
8264
|
*/
|
|
8260
8265
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 426, __pyx_L1_error)
|
|
8261
8266
|
if (__pyx_t_4) {
|
|
@@ -8264,7 +8269,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8264
8269
|
*
|
|
8265
8270
|
* if have_slices:
|
|
8266
8271
|
* obj = self.is_slice(value) # <<<<<<<<<<<<<<
|
|
8267
|
-
* if obj:
|
|
8272
|
+
* if obj is not None:
|
|
8268
8273
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8269
8274
|
*/
|
|
8270
8275
|
__pyx_t_1 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->is_slice(__pyx_v_self, __pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 427, __pyx_L1_error)
|
|
@@ -8275,16 +8280,16 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8275
8280
|
/* "View.MemoryView":428
|
|
8276
8281
|
* if have_slices:
|
|
8277
8282
|
* obj = self.is_slice(value)
|
|
8278
|
-
* if obj: # <<<<<<<<<<<<<<
|
|
8283
|
+
* if obj is not None: # <<<<<<<<<<<<<<
|
|
8279
8284
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8280
8285
|
* else:
|
|
8281
8286
|
*/
|
|
8282
|
-
__pyx_t_4 =
|
|
8287
|
+
__pyx_t_4 = (__pyx_v_obj != Py_None);
|
|
8283
8288
|
if (__pyx_t_4) {
|
|
8284
8289
|
|
|
8285
8290
|
/* "View.MemoryView":429
|
|
8286
8291
|
* obj = self.is_slice(value)
|
|
8287
|
-
* if obj:
|
|
8292
|
+
* if obj is not None:
|
|
8288
8293
|
* self.setitem_slice_assignment(self[index], obj) # <<<<<<<<<<<<<<
|
|
8289
8294
|
* else:
|
|
8290
8295
|
* self.setitem_slice_assign_scalar(self[index], value)
|
|
@@ -8299,7 +8304,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8299
8304
|
/* "View.MemoryView":428
|
|
8300
8305
|
* if have_slices:
|
|
8301
8306
|
* obj = self.is_slice(value)
|
|
8302
|
-
* if obj: # <<<<<<<<<<<<<<
|
|
8307
|
+
* if obj is not None: # <<<<<<<<<<<<<<
|
|
8303
8308
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8304
8309
|
* else:
|
|
8305
8310
|
*/
|
|
@@ -8329,7 +8334,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8329
8334
|
*
|
|
8330
8335
|
* if have_slices: # <<<<<<<<<<<<<<
|
|
8331
8336
|
* obj = self.is_slice(value)
|
|
8332
|
-
* if obj:
|
|
8337
|
+
* if obj is not None:
|
|
8333
8338
|
*/
|
|
8334
8339
|
goto __pyx_L4;
|
|
8335
8340
|
}
|
|
@@ -9037,9 +9042,10 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
|
|
|
9037
9042
|
PyObject *__pyx_t_5 = NULL;
|
|
9038
9043
|
PyObject *__pyx_t_6 = NULL;
|
|
9039
9044
|
PyObject *__pyx_t_7 = NULL;
|
|
9040
|
-
int __pyx_t_8;
|
|
9045
|
+
unsigned int __pyx_t_8;
|
|
9041
9046
|
Py_ssize_t __pyx_t_9;
|
|
9042
9047
|
int __pyx_t_10;
|
|
9048
|
+
int __pyx_t_11;
|
|
9043
9049
|
int __pyx_lineno = 0;
|
|
9044
9050
|
const char *__pyx_filename = NULL;
|
|
9045
9051
|
int __pyx_clineno = 0;
|
|
@@ -9194,11 +9200,11 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
|
|
|
9194
9200
|
__Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_6);
|
|
9195
9201
|
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 498, __pyx_L5_except_error)
|
|
9196
9202
|
__Pyx_GOTREF(__pyx_t_7);
|
|
9197
|
-
|
|
9203
|
+
__pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
|
|
9198
9204
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
9199
9205
|
__Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_6);
|
|
9200
9206
|
__pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
|
|
9201
|
-
if (
|
|
9207
|
+
if (__pyx_t_11) {
|
|
9202
9208
|
__Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
9203
9209
|
if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 498, __pyx_L5_except_error)
|
|
9204
9210
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
@@ -9283,7 +9289,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
|
|
|
9283
9289
|
PyObject *__pyx_t_3 = NULL;
|
|
9284
9290
|
PyObject *__pyx_t_4 = NULL;
|
|
9285
9291
|
PyObject *__pyx_t_5 = NULL;
|
|
9286
|
-
int __pyx_t_6;
|
|
9292
|
+
unsigned int __pyx_t_6;
|
|
9287
9293
|
Py_ssize_t __pyx_t_7;
|
|
9288
9294
|
PyObject *__pyx_t_8 = NULL;
|
|
9289
9295
|
char *__pyx_t_9;
|
|
@@ -17757,7 +17763,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
|
|
|
17757
17763
|
int __pyx_t_2;
|
|
17758
17764
|
PyObject *__pyx_t_3 = NULL;
|
|
17759
17765
|
PyObject *__pyx_t_4 = NULL;
|
|
17760
|
-
int __pyx_t_5;
|
|
17766
|
+
unsigned int __pyx_t_5;
|
|
17761
17767
|
int __pyx_lineno = 0;
|
|
17762
17768
|
const char *__pyx_filename = NULL;
|
|
17763
17769
|
int __pyx_clineno = 0;
|
|
@@ -17939,7 +17945,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
|
|
|
17939
17945
|
PyObject *__pyx_t_5 = NULL;
|
|
17940
17946
|
PyObject *__pyx_t_6 = NULL;
|
|
17941
17947
|
PyObject *__pyx_t_7 = NULL;
|
|
17942
|
-
int __pyx_t_8;
|
|
17948
|
+
unsigned int __pyx_t_8;
|
|
17943
17949
|
int __pyx_lineno = 0;
|
|
17944
17950
|
const char *__pyx_filename = NULL;
|
|
17945
17951
|
int __pyx_clineno = 0;
|
|
@@ -18059,33 +18065,33 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
|
|
|
18059
18065
|
return __pyx_r;
|
|
18060
18066
|
}
|
|
18061
18067
|
|
|
18062
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18068
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
|
|
18063
18069
|
*
|
|
18064
18070
|
* @property
|
|
18065
|
-
* cdef inline
|
|
18066
|
-
*
|
|
18067
|
-
*
|
|
18071
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18072
|
+
* return PyDataType_ELSIZE(self)
|
|
18073
|
+
*
|
|
18068
18074
|
*/
|
|
18069
18075
|
|
|
18070
|
-
static CYTHON_INLINE
|
|
18071
|
-
|
|
18076
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) {
|
|
18077
|
+
npy_intp __pyx_r;
|
|
18072
18078
|
|
|
18073
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18074
|
-
*
|
|
18075
|
-
*
|
|
18076
|
-
* return
|
|
18079
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":288
|
|
18080
|
+
* @property
|
|
18081
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil:
|
|
18082
|
+
* return PyDataType_ELSIZE(self) # <<<<<<<<<<<<<<
|
|
18077
18083
|
*
|
|
18078
18084
|
* @property
|
|
18079
18085
|
*/
|
|
18080
|
-
__pyx_r =
|
|
18086
|
+
__pyx_r = PyDataType_ELSIZE(__pyx_v_self);
|
|
18081
18087
|
goto __pyx_L0;
|
|
18082
18088
|
|
|
18083
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18089
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
|
|
18084
18090
|
*
|
|
18085
18091
|
* @property
|
|
18086
|
-
* cdef inline
|
|
18087
|
-
*
|
|
18088
|
-
*
|
|
18092
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18093
|
+
* return PyDataType_ELSIZE(self)
|
|
18094
|
+
*
|
|
18089
18095
|
*/
|
|
18090
18096
|
|
|
18091
18097
|
/* function exit code */
|
|
@@ -18093,143 +18099,151 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
|
|
|
18093
18099
|
return __pyx_r;
|
|
18094
18100
|
}
|
|
18095
18101
|
|
|
18096
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18102
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
|
|
18097
18103
|
*
|
|
18098
18104
|
* @property
|
|
18099
|
-
* cdef inline
|
|
18100
|
-
*
|
|
18101
|
-
*
|
|
18105
|
+
* cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18106
|
+
* return PyDataType_ALIGNMENT(self)
|
|
18107
|
+
*
|
|
18102
18108
|
*/
|
|
18103
18109
|
|
|
18104
|
-
static CYTHON_INLINE
|
|
18105
|
-
|
|
18106
|
-
__Pyx_RefNannyDeclarations
|
|
18107
|
-
PyArray_Descr *__pyx_t_1;
|
|
18108
|
-
__Pyx_RefNannySetupContext("descr", 1);
|
|
18110
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) {
|
|
18111
|
+
npy_intp __pyx_r;
|
|
18109
18112
|
|
|
18110
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18111
|
-
* """Returns an owned reference to the dtype of the array.
|
|
18112
|
-
* """
|
|
18113
|
-
* return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
|
|
18114
|
-
*
|
|
18113
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":292
|
|
18115
18114
|
* @property
|
|
18115
|
+
* cdef inline npy_intp alignment(self) noexcept nogil:
|
|
18116
|
+
* return PyDataType_ALIGNMENT(self) # <<<<<<<<<<<<<<
|
|
18117
|
+
*
|
|
18118
|
+
* # Use fields/names with care as they may be NULL. You must check
|
|
18116
18119
|
*/
|
|
18117
|
-
|
|
18118
|
-
__pyx_t_1 = PyArray_DESCR(__pyx_v_self);
|
|
18119
|
-
__Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
|
|
18120
|
-
__pyx_r = ((PyArray_Descr *)__pyx_t_1);
|
|
18120
|
+
__pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
|
|
18121
18121
|
goto __pyx_L0;
|
|
18122
18122
|
|
|
18123
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18123
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
|
|
18124
18124
|
*
|
|
18125
18125
|
* @property
|
|
18126
|
-
* cdef inline
|
|
18127
|
-
*
|
|
18128
|
-
*
|
|
18126
|
+
* cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18127
|
+
* return PyDataType_ALIGNMENT(self)
|
|
18128
|
+
*
|
|
18129
18129
|
*/
|
|
18130
18130
|
|
|
18131
18131
|
/* function exit code */
|
|
18132
18132
|
__pyx_L0:;
|
|
18133
|
-
__Pyx_XGIVEREF((PyObject *)__pyx_r);
|
|
18134
|
-
__Pyx_RefNannyFinishContext();
|
|
18135
18133
|
return __pyx_r;
|
|
18136
18134
|
}
|
|
18137
18135
|
|
|
18138
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18139
|
-
*
|
|
18136
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
|
|
18137
|
+
* # for this using PyDataType_HASFIELDS.
|
|
18140
18138
|
* @property
|
|
18141
|
-
* cdef inline
|
|
18142
|
-
*
|
|
18143
|
-
*
|
|
18139
|
+
* cdef inline object fields(self): # <<<<<<<<<<<<<<
|
|
18140
|
+
* return <object>PyDataType_FIELDS(self)
|
|
18141
|
+
*
|
|
18144
18142
|
*/
|
|
18145
18143
|
|
|
18146
|
-
static CYTHON_INLINE
|
|
18147
|
-
|
|
18144
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) {
|
|
18145
|
+
PyObject *__pyx_r = NULL;
|
|
18146
|
+
__Pyx_RefNannyDeclarations
|
|
18147
|
+
PyObject *__pyx_t_1;
|
|
18148
|
+
__Pyx_RefNannySetupContext("fields", 1);
|
|
18148
18149
|
|
|
18149
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18150
|
-
*
|
|
18151
|
-
*
|
|
18152
|
-
* return
|
|
18150
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":298
|
|
18151
|
+
* @property
|
|
18152
|
+
* cdef inline object fields(self):
|
|
18153
|
+
* return <object>PyDataType_FIELDS(self) # <<<<<<<<<<<<<<
|
|
18153
18154
|
*
|
|
18154
18155
|
* @property
|
|
18155
18156
|
*/
|
|
18156
|
-
__pyx_r
|
|
18157
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18158
|
+
__pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
|
|
18159
|
+
__Pyx_INCREF(((PyObject *)__pyx_t_1));
|
|
18160
|
+
__pyx_r = ((PyObject *)__pyx_t_1);
|
|
18157
18161
|
goto __pyx_L0;
|
|
18158
18162
|
|
|
18159
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18160
|
-
*
|
|
18163
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
|
|
18164
|
+
* # for this using PyDataType_HASFIELDS.
|
|
18161
18165
|
* @property
|
|
18162
|
-
* cdef inline
|
|
18163
|
-
*
|
|
18164
|
-
*
|
|
18166
|
+
* cdef inline object fields(self): # <<<<<<<<<<<<<<
|
|
18167
|
+
* return <object>PyDataType_FIELDS(self)
|
|
18168
|
+
*
|
|
18165
18169
|
*/
|
|
18166
18170
|
|
|
18167
18171
|
/* function exit code */
|
|
18168
18172
|
__pyx_L0:;
|
|
18173
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18174
|
+
__Pyx_RefNannyFinishContext();
|
|
18169
18175
|
return __pyx_r;
|
|
18170
18176
|
}
|
|
18171
18177
|
|
|
18172
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18178
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
|
|
18173
18179
|
*
|
|
18174
18180
|
* @property
|
|
18175
|
-
* cdef inline
|
|
18176
|
-
*
|
|
18177
|
-
*
|
|
18181
|
+
* cdef inline tuple names(self): # <<<<<<<<<<<<<<
|
|
18182
|
+
* return <tuple>PyDataType_NAMES(self)
|
|
18183
|
+
*
|
|
18178
18184
|
*/
|
|
18179
18185
|
|
|
18180
|
-
static CYTHON_INLINE
|
|
18181
|
-
|
|
18186
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) {
|
|
18187
|
+
PyObject *__pyx_r = NULL;
|
|
18188
|
+
__Pyx_RefNannyDeclarations
|
|
18189
|
+
PyObject *__pyx_t_1;
|
|
18190
|
+
__Pyx_RefNannySetupContext("names", 1);
|
|
18182
18191
|
|
|
18183
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18184
|
-
* Can return NULL for 0-dimensional arrays.
|
|
18185
|
-
* """
|
|
18186
|
-
* return PyArray_DIMS(self) # <<<<<<<<<<<<<<
|
|
18187
|
-
*
|
|
18192
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":302
|
|
18188
18193
|
* @property
|
|
18194
|
+
* cdef inline tuple names(self):
|
|
18195
|
+
* return <tuple>PyDataType_NAMES(self) # <<<<<<<<<<<<<<
|
|
18196
|
+
*
|
|
18197
|
+
* # Use PyDataType_HASSUBARRAY to test whether this field is
|
|
18189
18198
|
*/
|
|
18190
|
-
__pyx_r
|
|
18199
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18200
|
+
__pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
|
|
18201
|
+
__Pyx_INCREF(((PyObject*)__pyx_t_1));
|
|
18202
|
+
__pyx_r = ((PyObject*)__pyx_t_1);
|
|
18191
18203
|
goto __pyx_L0;
|
|
18192
18204
|
|
|
18193
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18205
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
|
|
18194
18206
|
*
|
|
18195
18207
|
* @property
|
|
18196
|
-
* cdef inline
|
|
18197
|
-
*
|
|
18198
|
-
*
|
|
18208
|
+
* cdef inline tuple names(self): # <<<<<<<<<<<<<<
|
|
18209
|
+
* return <tuple>PyDataType_NAMES(self)
|
|
18210
|
+
*
|
|
18199
18211
|
*/
|
|
18200
18212
|
|
|
18201
18213
|
/* function exit code */
|
|
18202
18214
|
__pyx_L0:;
|
|
18215
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18216
|
+
__Pyx_RefNannyFinishContext();
|
|
18203
18217
|
return __pyx_r;
|
|
18204
18218
|
}
|
|
18205
18219
|
|
|
18206
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18207
|
-
*
|
|
18220
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
|
|
18221
|
+
* # this field via the inline helper method PyDataType_SHAPE.
|
|
18208
18222
|
* @property
|
|
18209
|
-
* cdef inline
|
|
18210
|
-
*
|
|
18211
|
-
*
|
|
18223
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18224
|
+
* return PyDataType_SUBARRAY(self)
|
|
18225
|
+
*
|
|
18212
18226
|
*/
|
|
18213
18227
|
|
|
18214
|
-
static CYTHON_INLINE
|
|
18215
|
-
|
|
18228
|
+
static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) {
|
|
18229
|
+
PyArray_ArrayDescr *__pyx_r;
|
|
18216
18230
|
|
|
18217
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18218
|
-
*
|
|
18219
|
-
*
|
|
18220
|
-
* return
|
|
18231
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":309
|
|
18232
|
+
* @property
|
|
18233
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:
|
|
18234
|
+
* return PyDataType_SUBARRAY(self) # <<<<<<<<<<<<<<
|
|
18221
18235
|
*
|
|
18222
18236
|
* @property
|
|
18223
18237
|
*/
|
|
18224
|
-
__pyx_r =
|
|
18238
|
+
__pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
|
|
18225
18239
|
goto __pyx_L0;
|
|
18226
18240
|
|
|
18227
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18228
|
-
*
|
|
18241
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
|
|
18242
|
+
* # this field via the inline helper method PyDataType_SHAPE.
|
|
18229
18243
|
* @property
|
|
18230
|
-
* cdef inline
|
|
18231
|
-
*
|
|
18232
|
-
*
|
|
18244
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18245
|
+
* return PyDataType_SUBARRAY(self)
|
|
18246
|
+
*
|
|
18233
18247
|
*/
|
|
18234
18248
|
|
|
18235
18249
|
/* function exit code */
|
|
@@ -18237,33 +18251,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
|
|
|
18237
18251
|
return __pyx_r;
|
|
18238
18252
|
}
|
|
18239
18253
|
|
|
18240
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18254
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":312
|
|
18241
18255
|
*
|
|
18242
18256
|
* @property
|
|
18243
|
-
* cdef inline
|
|
18244
|
-
* """
|
|
18245
|
-
*
|
|
18257
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18258
|
+
* """The data types flags."""
|
|
18259
|
+
* return PyDataType_FLAGS(self)
|
|
18246
18260
|
*/
|
|
18247
18261
|
|
|
18248
|
-
static CYTHON_INLINE
|
|
18249
|
-
|
|
18262
|
+
static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self) {
|
|
18263
|
+
npy_uint64 __pyx_r;
|
|
18250
18264
|
|
|
18251
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18252
|
-
*
|
|
18253
|
-
* """
|
|
18254
|
-
* return
|
|
18265
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":314
|
|
18266
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil:
|
|
18267
|
+
* """The data types flags."""
|
|
18268
|
+
* return PyDataType_FLAGS(self) # <<<<<<<<<<<<<<
|
|
18269
|
+
*
|
|
18255
18270
|
*
|
|
18256
|
-
* @property
|
|
18257
18271
|
*/
|
|
18258
|
-
__pyx_r =
|
|
18272
|
+
__pyx_r = PyDataType_FLAGS(__pyx_v_self);
|
|
18259
18273
|
goto __pyx_L0;
|
|
18260
18274
|
|
|
18261
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18275
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":312
|
|
18262
18276
|
*
|
|
18263
18277
|
* @property
|
|
18264
|
-
* cdef inline
|
|
18265
|
-
* """
|
|
18266
|
-
*
|
|
18278
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18279
|
+
* """The data types flags."""
|
|
18280
|
+
* return PyDataType_FLAGS(self)
|
|
18267
18281
|
*/
|
|
18268
18282
|
|
|
18269
18283
|
/* function exit code */
|
|
@@ -18271,33 +18285,33 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
|
|
|
18271
18285
|
return __pyx_r;
|
|
18272
18286
|
}
|
|
18273
18287
|
|
|
18274
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18288
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":324
|
|
18275
18289
|
*
|
|
18276
18290
|
* @property
|
|
18277
|
-
* cdef inline
|
|
18278
|
-
* """The
|
|
18279
|
-
*
|
|
18291
|
+
* cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18292
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18293
|
+
* return PyArray_MultiIter_NUMITER(self)
|
|
18280
18294
|
*/
|
|
18281
18295
|
|
|
18282
|
-
static CYTHON_INLINE
|
|
18283
|
-
|
|
18296
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18297
|
+
int __pyx_r;
|
|
18284
18298
|
|
|
18285
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18286
|
-
*
|
|
18287
|
-
* """
|
|
18288
|
-
* return
|
|
18299
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":326
|
|
18300
|
+
* cdef inline int numiter(self) noexcept nogil:
|
|
18301
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18302
|
+
* return PyArray_MultiIter_NUMITER(self) # <<<<<<<<<<<<<<
|
|
18289
18303
|
*
|
|
18290
|
-
*
|
|
18304
|
+
* @property
|
|
18291
18305
|
*/
|
|
18292
|
-
__pyx_r =
|
|
18306
|
+
__pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
|
|
18293
18307
|
goto __pyx_L0;
|
|
18294
18308
|
|
|
18295
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18309
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":324
|
|
18296
18310
|
*
|
|
18297
18311
|
* @property
|
|
18298
|
-
* cdef inline
|
|
18299
|
-
* """The
|
|
18300
|
-
*
|
|
18312
|
+
* cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18313
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18314
|
+
* return PyArray_MultiIter_NUMITER(self)
|
|
18301
18315
|
*/
|
|
18302
18316
|
|
|
18303
18317
|
/* function exit code */
|
|
@@ -18305,111 +18319,527 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
|
|
|
18305
18319
|
return __pyx_r;
|
|
18306
18320
|
}
|
|
18307
18321
|
|
|
18308
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18309
|
-
* ctypedef npy_cdouble complex_t
|
|
18310
|
-
*
|
|
18311
|
-
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18312
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18322
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":329
|
|
18313
18323
|
*
|
|
18324
|
+
* @property
|
|
18325
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18326
|
+
* """The total broadcasted size."""
|
|
18327
|
+
* return PyArray_MultiIter_SIZE(self)
|
|
18314
18328
|
*/
|
|
18315
18329
|
|
|
18316
|
-
static CYTHON_INLINE
|
|
18317
|
-
|
|
18318
|
-
__Pyx_RefNannyDeclarations
|
|
18319
|
-
PyObject *__pyx_t_1 = NULL;
|
|
18320
|
-
int __pyx_lineno = 0;
|
|
18321
|
-
const char *__pyx_filename = NULL;
|
|
18322
|
-
int __pyx_clineno = 0;
|
|
18323
|
-
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
|
|
18330
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18331
|
+
npy_intp __pyx_r;
|
|
18324
18332
|
|
|
18325
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18326
|
-
*
|
|
18327
|
-
*
|
|
18328
|
-
*
|
|
18333
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":331
|
|
18334
|
+
* cdef inline npy_intp size(self) noexcept nogil:
|
|
18335
|
+
* """The total broadcasted size."""
|
|
18336
|
+
* return PyArray_MultiIter_SIZE(self) # <<<<<<<<<<<<<<
|
|
18329
18337
|
*
|
|
18330
|
-
*
|
|
18338
|
+
* @property
|
|
18331
18339
|
*/
|
|
18332
|
-
|
|
18333
|
-
__pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 774, __pyx_L1_error)
|
|
18334
|
-
__Pyx_GOTREF(__pyx_t_1);
|
|
18335
|
-
__pyx_r = __pyx_t_1;
|
|
18336
|
-
__pyx_t_1 = 0;
|
|
18340
|
+
__pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
|
|
18337
18341
|
goto __pyx_L0;
|
|
18338
18342
|
|
|
18339
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18340
|
-
* ctypedef npy_cdouble complex_t
|
|
18341
|
-
*
|
|
18342
|
-
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18343
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18343
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":329
|
|
18344
18344
|
*
|
|
18345
|
+
* @property
|
|
18346
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18347
|
+
* """The total broadcasted size."""
|
|
18348
|
+
* return PyArray_MultiIter_SIZE(self)
|
|
18345
18349
|
*/
|
|
18346
18350
|
|
|
18347
18351
|
/* function exit code */
|
|
18348
|
-
__pyx_L1_error:;
|
|
18349
|
-
__Pyx_XDECREF(__pyx_t_1);
|
|
18350
|
-
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18351
|
-
__pyx_r = 0;
|
|
18352
18352
|
__pyx_L0:;
|
|
18353
|
-
__Pyx_XGIVEREF(__pyx_r);
|
|
18354
|
-
__Pyx_RefNannyFinishContext();
|
|
18355
18353
|
return __pyx_r;
|
|
18356
18354
|
}
|
|
18357
18355
|
|
|
18358
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18359
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18360
|
-
*
|
|
18361
|
-
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18362
|
-
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18356
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":334
|
|
18363
18357
|
*
|
|
18358
|
+
* @property
|
|
18359
|
+
* cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18360
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18361
|
+
* return PyArray_MultiIter_INDEX(self)
|
|
18364
18362
|
*/
|
|
18365
18363
|
|
|
18366
|
-
static CYTHON_INLINE
|
|
18367
|
-
|
|
18368
|
-
__Pyx_RefNannyDeclarations
|
|
18369
|
-
PyObject *__pyx_t_1 = NULL;
|
|
18370
|
-
int __pyx_lineno = 0;
|
|
18371
|
-
const char *__pyx_filename = NULL;
|
|
18372
|
-
int __pyx_clineno = 0;
|
|
18373
|
-
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
|
|
18364
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18365
|
+
npy_intp __pyx_r;
|
|
18374
18366
|
|
|
18375
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18376
|
-
*
|
|
18377
|
-
*
|
|
18378
|
-
*
|
|
18367
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":336
|
|
18368
|
+
* cdef inline npy_intp index(self) noexcept nogil:
|
|
18369
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18370
|
+
* return PyArray_MultiIter_INDEX(self) # <<<<<<<<<<<<<<
|
|
18379
18371
|
*
|
|
18380
|
-
*
|
|
18372
|
+
* @property
|
|
18381
18373
|
*/
|
|
18382
|
-
|
|
18383
|
-
__pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 777, __pyx_L1_error)
|
|
18384
|
-
__Pyx_GOTREF(__pyx_t_1);
|
|
18385
|
-
__pyx_r = __pyx_t_1;
|
|
18386
|
-
__pyx_t_1 = 0;
|
|
18374
|
+
__pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
|
|
18387
18375
|
goto __pyx_L0;
|
|
18388
18376
|
|
|
18389
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18390
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18391
|
-
*
|
|
18392
|
-
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18393
|
-
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18377
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":334
|
|
18394
18378
|
*
|
|
18379
|
+
* @property
|
|
18380
|
+
* cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18381
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18382
|
+
* return PyArray_MultiIter_INDEX(self)
|
|
18395
18383
|
*/
|
|
18396
18384
|
|
|
18397
18385
|
/* function exit code */
|
|
18398
|
-
__pyx_L1_error:;
|
|
18399
|
-
__Pyx_XDECREF(__pyx_t_1);
|
|
18400
|
-
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18401
|
-
__pyx_r = 0;
|
|
18402
18386
|
__pyx_L0:;
|
|
18403
|
-
__Pyx_XGIVEREF(__pyx_r);
|
|
18404
|
-
__Pyx_RefNannyFinishContext();
|
|
18405
18387
|
return __pyx_r;
|
|
18406
18388
|
}
|
|
18407
18389
|
|
|
18408
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18409
|
-
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18390
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":339
|
|
18410
18391
|
*
|
|
18411
|
-
*
|
|
18412
|
-
*
|
|
18392
|
+
* @property
|
|
18393
|
+
* cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18394
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18395
|
+
* return PyArray_MultiIter_NDIM(self)
|
|
18396
|
+
*/
|
|
18397
|
+
|
|
18398
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18399
|
+
int __pyx_r;
|
|
18400
|
+
|
|
18401
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":341
|
|
18402
|
+
* cdef inline int nd(self) noexcept nogil:
|
|
18403
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18404
|
+
* return PyArray_MultiIter_NDIM(self) # <<<<<<<<<<<<<<
|
|
18405
|
+
*
|
|
18406
|
+
* @property
|
|
18407
|
+
*/
|
|
18408
|
+
__pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
|
|
18409
|
+
goto __pyx_L0;
|
|
18410
|
+
|
|
18411
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":339
|
|
18412
|
+
*
|
|
18413
|
+
* @property
|
|
18414
|
+
* cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18415
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18416
|
+
* return PyArray_MultiIter_NDIM(self)
|
|
18417
|
+
*/
|
|
18418
|
+
|
|
18419
|
+
/* function exit code */
|
|
18420
|
+
__pyx_L0:;
|
|
18421
|
+
return __pyx_r;
|
|
18422
|
+
}
|
|
18423
|
+
|
|
18424
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":344
|
|
18425
|
+
*
|
|
18426
|
+
* @property
|
|
18427
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18428
|
+
* """The shape of the broadcasted result."""
|
|
18429
|
+
* return PyArray_MultiIter_DIMS(self)
|
|
18430
|
+
*/
|
|
18431
|
+
|
|
18432
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18433
|
+
npy_intp *__pyx_r;
|
|
18434
|
+
|
|
18435
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":346
|
|
18436
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil:
|
|
18437
|
+
* """The shape of the broadcasted result."""
|
|
18438
|
+
* return PyArray_MultiIter_DIMS(self) # <<<<<<<<<<<<<<
|
|
18439
|
+
*
|
|
18440
|
+
* @property
|
|
18441
|
+
*/
|
|
18442
|
+
__pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
|
|
18443
|
+
goto __pyx_L0;
|
|
18444
|
+
|
|
18445
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":344
|
|
18446
|
+
*
|
|
18447
|
+
* @property
|
|
18448
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18449
|
+
* """The shape of the broadcasted result."""
|
|
18450
|
+
* return PyArray_MultiIter_DIMS(self)
|
|
18451
|
+
*/
|
|
18452
|
+
|
|
18453
|
+
/* function exit code */
|
|
18454
|
+
__pyx_L0:;
|
|
18455
|
+
return __pyx_r;
|
|
18456
|
+
}
|
|
18457
|
+
|
|
18458
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":349
|
|
18459
|
+
*
|
|
18460
|
+
* @property
|
|
18461
|
+
* cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18462
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18463
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18464
|
+
*/
|
|
18465
|
+
|
|
18466
|
+
static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18467
|
+
void **__pyx_r;
|
|
18468
|
+
|
|
18469
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":352
|
|
18470
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18471
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18472
|
+
* return PyArray_MultiIter_ITERS(self) # <<<<<<<<<<<<<<
|
|
18473
|
+
*
|
|
18474
|
+
*
|
|
18475
|
+
*/
|
|
18476
|
+
__pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
|
|
18477
|
+
goto __pyx_L0;
|
|
18478
|
+
|
|
18479
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":349
|
|
18480
|
+
*
|
|
18481
|
+
* @property
|
|
18482
|
+
* cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18483
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18484
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18485
|
+
*/
|
|
18486
|
+
|
|
18487
|
+
/* function exit code */
|
|
18488
|
+
__pyx_L0:;
|
|
18489
|
+
return __pyx_r;
|
|
18490
|
+
}
|
|
18491
|
+
|
|
18492
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":367
|
|
18493
|
+
*
|
|
18494
|
+
* @property
|
|
18495
|
+
* cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18496
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18497
|
+
* """
|
|
18498
|
+
*/
|
|
18499
|
+
|
|
18500
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
|
|
18501
|
+
PyObject *__pyx_r;
|
|
18502
|
+
|
|
18503
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":370
|
|
18504
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18505
|
+
* """
|
|
18506
|
+
* return PyArray_BASE(self) # <<<<<<<<<<<<<<
|
|
18507
|
+
*
|
|
18508
|
+
* @property
|
|
18509
|
+
*/
|
|
18510
|
+
__pyx_r = PyArray_BASE(__pyx_v_self);
|
|
18511
|
+
goto __pyx_L0;
|
|
18512
|
+
|
|
18513
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":367
|
|
18514
|
+
*
|
|
18515
|
+
* @property
|
|
18516
|
+
* cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18517
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18518
|
+
* """
|
|
18519
|
+
*/
|
|
18520
|
+
|
|
18521
|
+
/* function exit code */
|
|
18522
|
+
__pyx_L0:;
|
|
18523
|
+
return __pyx_r;
|
|
18524
|
+
}
|
|
18525
|
+
|
|
18526
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":373
|
|
18527
|
+
*
|
|
18528
|
+
* @property
|
|
18529
|
+
* cdef inline dtype descr(self): # <<<<<<<<<<<<<<
|
|
18530
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18531
|
+
* """
|
|
18532
|
+
*/
|
|
18533
|
+
|
|
18534
|
+
static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
|
|
18535
|
+
PyArray_Descr *__pyx_r = NULL;
|
|
18536
|
+
__Pyx_RefNannyDeclarations
|
|
18537
|
+
PyArray_Descr *__pyx_t_1;
|
|
18538
|
+
__Pyx_RefNannySetupContext("descr", 1);
|
|
18539
|
+
|
|
18540
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":376
|
|
18541
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18542
|
+
* """
|
|
18543
|
+
* return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
|
|
18544
|
+
*
|
|
18545
|
+
* @property
|
|
18546
|
+
*/
|
|
18547
|
+
__Pyx_XDECREF((PyObject *)__pyx_r);
|
|
18548
|
+
__pyx_t_1 = PyArray_DESCR(__pyx_v_self);
|
|
18549
|
+
__Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
|
|
18550
|
+
__pyx_r = ((PyArray_Descr *)__pyx_t_1);
|
|
18551
|
+
goto __pyx_L0;
|
|
18552
|
+
|
|
18553
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":373
|
|
18554
|
+
*
|
|
18555
|
+
* @property
|
|
18556
|
+
* cdef inline dtype descr(self): # <<<<<<<<<<<<<<
|
|
18557
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18558
|
+
* """
|
|
18559
|
+
*/
|
|
18560
|
+
|
|
18561
|
+
/* function exit code */
|
|
18562
|
+
__pyx_L0:;
|
|
18563
|
+
__Pyx_XGIVEREF((PyObject *)__pyx_r);
|
|
18564
|
+
__Pyx_RefNannyFinishContext();
|
|
18565
|
+
return __pyx_r;
|
|
18566
|
+
}
|
|
18567
|
+
|
|
18568
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":379
|
|
18569
|
+
*
|
|
18570
|
+
* @property
|
|
18571
|
+
* cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18572
|
+
* """Returns the number of dimensions in the array.
|
|
18573
|
+
* """
|
|
18574
|
+
*/
|
|
18575
|
+
|
|
18576
|
+
static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
|
|
18577
|
+
int __pyx_r;
|
|
18578
|
+
|
|
18579
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":382
|
|
18580
|
+
* """Returns the number of dimensions in the array.
|
|
18581
|
+
* """
|
|
18582
|
+
* return PyArray_NDIM(self) # <<<<<<<<<<<<<<
|
|
18583
|
+
*
|
|
18584
|
+
* @property
|
|
18585
|
+
*/
|
|
18586
|
+
__pyx_r = PyArray_NDIM(__pyx_v_self);
|
|
18587
|
+
goto __pyx_L0;
|
|
18588
|
+
|
|
18589
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":379
|
|
18590
|
+
*
|
|
18591
|
+
* @property
|
|
18592
|
+
* cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18593
|
+
* """Returns the number of dimensions in the array.
|
|
18594
|
+
* """
|
|
18595
|
+
*/
|
|
18596
|
+
|
|
18597
|
+
/* function exit code */
|
|
18598
|
+
__pyx_L0:;
|
|
18599
|
+
return __pyx_r;
|
|
18600
|
+
}
|
|
18601
|
+
|
|
18602
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":385
|
|
18603
|
+
*
|
|
18604
|
+
* @property
|
|
18605
|
+
* cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18606
|
+
* """Returns a pointer to the dimensions/shape of the array.
|
|
18607
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18608
|
+
*/
|
|
18609
|
+
|
|
18610
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
|
|
18611
|
+
npy_intp *__pyx_r;
|
|
18612
|
+
|
|
18613
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":390
|
|
18614
|
+
* Can return NULL for 0-dimensional arrays.
|
|
18615
|
+
* """
|
|
18616
|
+
* return PyArray_DIMS(self) # <<<<<<<<<<<<<<
|
|
18617
|
+
*
|
|
18618
|
+
* @property
|
|
18619
|
+
*/
|
|
18620
|
+
__pyx_r = PyArray_DIMS(__pyx_v_self);
|
|
18621
|
+
goto __pyx_L0;
|
|
18622
|
+
|
|
18623
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":385
|
|
18624
|
+
*
|
|
18625
|
+
* @property
|
|
18626
|
+
* cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18627
|
+
* """Returns a pointer to the dimensions/shape of the array.
|
|
18628
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18629
|
+
*/
|
|
18630
|
+
|
|
18631
|
+
/* function exit code */
|
|
18632
|
+
__pyx_L0:;
|
|
18633
|
+
return __pyx_r;
|
|
18634
|
+
}
|
|
18635
|
+
|
|
18636
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":393
|
|
18637
|
+
*
|
|
18638
|
+
* @property
|
|
18639
|
+
* cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18640
|
+
* """Returns a pointer to the strides of the array.
|
|
18641
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18642
|
+
*/
|
|
18643
|
+
|
|
18644
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
|
|
18645
|
+
npy_intp *__pyx_r;
|
|
18646
|
+
|
|
18647
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":397
|
|
18648
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18649
|
+
* """
|
|
18650
|
+
* return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
|
|
18651
|
+
*
|
|
18652
|
+
* @property
|
|
18653
|
+
*/
|
|
18654
|
+
__pyx_r = PyArray_STRIDES(__pyx_v_self);
|
|
18655
|
+
goto __pyx_L0;
|
|
18656
|
+
|
|
18657
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":393
|
|
18658
|
+
*
|
|
18659
|
+
* @property
|
|
18660
|
+
* cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18661
|
+
* """Returns a pointer to the strides of the array.
|
|
18662
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18663
|
+
*/
|
|
18664
|
+
|
|
18665
|
+
/* function exit code */
|
|
18666
|
+
__pyx_L0:;
|
|
18667
|
+
return __pyx_r;
|
|
18668
|
+
}
|
|
18669
|
+
|
|
18670
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":400
|
|
18671
|
+
*
|
|
18672
|
+
* @property
|
|
18673
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18674
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18675
|
+
* """
|
|
18676
|
+
*/
|
|
18677
|
+
|
|
18678
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
|
|
18679
|
+
npy_intp __pyx_r;
|
|
18680
|
+
|
|
18681
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":403
|
|
18682
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18683
|
+
* """
|
|
18684
|
+
* return PyArray_SIZE(self) # <<<<<<<<<<<<<<
|
|
18685
|
+
*
|
|
18686
|
+
* @property
|
|
18687
|
+
*/
|
|
18688
|
+
__pyx_r = PyArray_SIZE(__pyx_v_self);
|
|
18689
|
+
goto __pyx_L0;
|
|
18690
|
+
|
|
18691
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":400
|
|
18692
|
+
*
|
|
18693
|
+
* @property
|
|
18694
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18695
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18696
|
+
* """
|
|
18697
|
+
*/
|
|
18698
|
+
|
|
18699
|
+
/* function exit code */
|
|
18700
|
+
__pyx_L0:;
|
|
18701
|
+
return __pyx_r;
|
|
18702
|
+
}
|
|
18703
|
+
|
|
18704
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":406
|
|
18705
|
+
*
|
|
18706
|
+
* @property
|
|
18707
|
+
* cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18708
|
+
* """The pointer to the data buffer as a char*.
|
|
18709
|
+
* This is provided for legacy reasons to avoid direct struct field access.
|
|
18710
|
+
*/
|
|
18711
|
+
|
|
18712
|
+
static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
|
|
18713
|
+
char *__pyx_r;
|
|
18714
|
+
|
|
18715
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":412
|
|
18716
|
+
* of `PyArray_DATA()` instead, which returns a 'void*'.
|
|
18717
|
+
* """
|
|
18718
|
+
* return PyArray_BYTES(self) # <<<<<<<<<<<<<<
|
|
18719
|
+
*
|
|
18720
|
+
*
|
|
18721
|
+
*/
|
|
18722
|
+
__pyx_r = PyArray_BYTES(__pyx_v_self);
|
|
18723
|
+
goto __pyx_L0;
|
|
18724
|
+
|
|
18725
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":406
|
|
18726
|
+
*
|
|
18727
|
+
* @property
|
|
18728
|
+
* cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18729
|
+
* """The pointer to the data buffer as a char*.
|
|
18730
|
+
* This is provided for legacy reasons to avoid direct struct field access.
|
|
18731
|
+
*/
|
|
18732
|
+
|
|
18733
|
+
/* function exit code */
|
|
18734
|
+
__pyx_L0:;
|
|
18735
|
+
return __pyx_r;
|
|
18736
|
+
}
|
|
18737
|
+
|
|
18738
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
|
|
18739
|
+
* ctypedef long double complex clongdouble_t
|
|
18740
|
+
*
|
|
18741
|
+
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18742
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18743
|
+
*
|
|
18744
|
+
*/
|
|
18745
|
+
|
|
18746
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
|
|
18747
|
+
PyObject *__pyx_r = NULL;
|
|
18748
|
+
__Pyx_RefNannyDeclarations
|
|
18749
|
+
PyObject *__pyx_t_1 = NULL;
|
|
18750
|
+
int __pyx_lineno = 0;
|
|
18751
|
+
const char *__pyx_filename = NULL;
|
|
18752
|
+
int __pyx_clineno = 0;
|
|
18753
|
+
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
|
|
18754
|
+
|
|
18755
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":825
|
|
18756
|
+
*
|
|
18757
|
+
* cdef inline object PyArray_MultiIterNew1(a):
|
|
18758
|
+
* return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
|
|
18759
|
+
*
|
|
18760
|
+
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
18761
|
+
*/
|
|
18762
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18763
|
+
__pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 825, __pyx_L1_error)
|
|
18764
|
+
__Pyx_GOTREF(__pyx_t_1);
|
|
18765
|
+
__pyx_r = __pyx_t_1;
|
|
18766
|
+
__pyx_t_1 = 0;
|
|
18767
|
+
goto __pyx_L0;
|
|
18768
|
+
|
|
18769
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
|
|
18770
|
+
* ctypedef long double complex clongdouble_t
|
|
18771
|
+
*
|
|
18772
|
+
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18773
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18774
|
+
*
|
|
18775
|
+
*/
|
|
18776
|
+
|
|
18777
|
+
/* function exit code */
|
|
18778
|
+
__pyx_L1_error:;
|
|
18779
|
+
__Pyx_XDECREF(__pyx_t_1);
|
|
18780
|
+
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18781
|
+
__pyx_r = 0;
|
|
18782
|
+
__pyx_L0:;
|
|
18783
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18784
|
+
__Pyx_RefNannyFinishContext();
|
|
18785
|
+
return __pyx_r;
|
|
18786
|
+
}
|
|
18787
|
+
|
|
18788
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":827
|
|
18789
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18790
|
+
*
|
|
18791
|
+
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18792
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18793
|
+
*
|
|
18794
|
+
*/
|
|
18795
|
+
|
|
18796
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
|
|
18797
|
+
PyObject *__pyx_r = NULL;
|
|
18798
|
+
__Pyx_RefNannyDeclarations
|
|
18799
|
+
PyObject *__pyx_t_1 = NULL;
|
|
18800
|
+
int __pyx_lineno = 0;
|
|
18801
|
+
const char *__pyx_filename = NULL;
|
|
18802
|
+
int __pyx_clineno = 0;
|
|
18803
|
+
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
|
|
18804
|
+
|
|
18805
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":828
|
|
18806
|
+
*
|
|
18807
|
+
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
18808
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
|
|
18809
|
+
*
|
|
18810
|
+
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
18811
|
+
*/
|
|
18812
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18813
|
+
__pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 828, __pyx_L1_error)
|
|
18814
|
+
__Pyx_GOTREF(__pyx_t_1);
|
|
18815
|
+
__pyx_r = __pyx_t_1;
|
|
18816
|
+
__pyx_t_1 = 0;
|
|
18817
|
+
goto __pyx_L0;
|
|
18818
|
+
|
|
18819
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":827
|
|
18820
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18821
|
+
*
|
|
18822
|
+
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18823
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18824
|
+
*
|
|
18825
|
+
*/
|
|
18826
|
+
|
|
18827
|
+
/* function exit code */
|
|
18828
|
+
__pyx_L1_error:;
|
|
18829
|
+
__Pyx_XDECREF(__pyx_t_1);
|
|
18830
|
+
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18831
|
+
__pyx_r = 0;
|
|
18832
|
+
__pyx_L0:;
|
|
18833
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18834
|
+
__Pyx_RefNannyFinishContext();
|
|
18835
|
+
return __pyx_r;
|
|
18836
|
+
}
|
|
18837
|
+
|
|
18838
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":830
|
|
18839
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18840
|
+
*
|
|
18841
|
+
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
18842
|
+
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18413
18843
|
*
|
|
18414
18844
|
*/
|
|
18415
18845
|
|
|
@@ -18422,7 +18852,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18422
18852
|
int __pyx_clineno = 0;
|
|
18423
18853
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);
|
|
18424
18854
|
|
|
18425
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18855
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":831
|
|
18426
18856
|
*
|
|
18427
18857
|
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
18428
18858
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
|
|
@@ -18430,13 +18860,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18430
18860
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
18431
18861
|
*/
|
|
18432
18862
|
__Pyx_XDECREF(__pyx_r);
|
|
18433
|
-
__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(2,
|
|
18863
|
+
__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(2, 831, __pyx_L1_error)
|
|
18434
18864
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18435
18865
|
__pyx_r = __pyx_t_1;
|
|
18436
18866
|
__pyx_t_1 = 0;
|
|
18437
18867
|
goto __pyx_L0;
|
|
18438
18868
|
|
|
18439
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18869
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":830
|
|
18440
18870
|
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18441
18871
|
*
|
|
18442
18872
|
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
@@ -18455,7 +18885,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18455
18885
|
return __pyx_r;
|
|
18456
18886
|
}
|
|
18457
18887
|
|
|
18458
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18888
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":833
|
|
18459
18889
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18460
18890
|
*
|
|
18461
18891
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -18472,7 +18902,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18472
18902
|
int __pyx_clineno = 0;
|
|
18473
18903
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);
|
|
18474
18904
|
|
|
18475
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18905
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":834
|
|
18476
18906
|
*
|
|
18477
18907
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
18478
18908
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
|
|
@@ -18480,13 +18910,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18480
18910
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
18481
18911
|
*/
|
|
18482
18912
|
__Pyx_XDECREF(__pyx_r);
|
|
18483
|
-
__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(2,
|
|
18913
|
+
__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(2, 834, __pyx_L1_error)
|
|
18484
18914
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18485
18915
|
__pyx_r = __pyx_t_1;
|
|
18486
18916
|
__pyx_t_1 = 0;
|
|
18487
18917
|
goto __pyx_L0;
|
|
18488
18918
|
|
|
18489
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18919
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":833
|
|
18490
18920
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18491
18921
|
*
|
|
18492
18922
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -18505,7 +18935,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18505
18935
|
return __pyx_r;
|
|
18506
18936
|
}
|
|
18507
18937
|
|
|
18508
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18938
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":836
|
|
18509
18939
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
18510
18940
|
*
|
|
18511
18941
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -18522,7 +18952,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18522
18952
|
int __pyx_clineno = 0;
|
|
18523
18953
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);
|
|
18524
18954
|
|
|
18525
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18955
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":837
|
|
18526
18956
|
*
|
|
18527
18957
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
18528
18958
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
|
|
@@ -18530,13 +18960,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18530
18960
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18531
18961
|
*/
|
|
18532
18962
|
__Pyx_XDECREF(__pyx_r);
|
|
18533
|
-
__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(2,
|
|
18963
|
+
__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(2, 837, __pyx_L1_error)
|
|
18534
18964
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18535
18965
|
__pyx_r = __pyx_t_1;
|
|
18536
18966
|
__pyx_t_1 = 0;
|
|
18537
18967
|
goto __pyx_L0;
|
|
18538
18968
|
|
|
18539
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18969
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":836
|
|
18540
18970
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
18541
18971
|
*
|
|
18542
18972
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -18555,7 +18985,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18555
18985
|
return __pyx_r;
|
|
18556
18986
|
}
|
|
18557
18987
|
|
|
18558
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18988
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":839
|
|
18559
18989
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
18560
18990
|
*
|
|
18561
18991
|
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
|
|
@@ -18567,9 +18997,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18567
18997
|
PyObject *__pyx_r = NULL;
|
|
18568
18998
|
__Pyx_RefNannyDeclarations
|
|
18569
18999
|
int __pyx_t_1;
|
|
19000
|
+
PyObject *__pyx_t_2;
|
|
18570
19001
|
__Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);
|
|
18571
19002
|
|
|
18572
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19003
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":840
|
|
18573
19004
|
*
|
|
18574
19005
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18575
19006
|
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
|
|
@@ -18579,7 +19010,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18579
19010
|
__pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
|
|
18580
19011
|
if (__pyx_t_1) {
|
|
18581
19012
|
|
|
18582
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19013
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":841
|
|
18583
19014
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18584
19015
|
* if PyDataType_HASSUBARRAY(d):
|
|
18585
19016
|
* return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
|
|
@@ -18587,11 +19018,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18587
19018
|
* return ()
|
|
18588
19019
|
*/
|
|
18589
19020
|
__Pyx_XDECREF(__pyx_r);
|
|
18590
|
-
|
|
18591
|
-
|
|
19021
|
+
__pyx_t_2 = __pyx_f_5numpy_5dtype_8subarray_subarray(__pyx_v_d)->shape;
|
|
19022
|
+
__Pyx_INCREF(((PyObject*)__pyx_t_2));
|
|
19023
|
+
__pyx_r = ((PyObject*)__pyx_t_2);
|
|
18592
19024
|
goto __pyx_L0;
|
|
18593
19025
|
|
|
18594
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19026
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":840
|
|
18595
19027
|
*
|
|
18596
19028
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18597
19029
|
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
|
|
@@ -18600,7 +19032,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18600
19032
|
*/
|
|
18601
19033
|
}
|
|
18602
19034
|
|
|
18603
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19035
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":843
|
|
18604
19036
|
* return <tuple>d.subarray.shape
|
|
18605
19037
|
* else:
|
|
18606
19038
|
* return () # <<<<<<<<<<<<<<
|
|
@@ -18614,7 +19046,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18614
19046
|
goto __pyx_L0;
|
|
18615
19047
|
}
|
|
18616
19048
|
|
|
18617
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19049
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":839
|
|
18618
19050
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
18619
19051
|
*
|
|
18620
19052
|
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
|
|
@@ -18629,10 +19061,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18629
19061
|
return __pyx_r;
|
|
18630
19062
|
}
|
|
18631
19063
|
|
|
18632
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19064
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
18633
19065
|
* int _import_umath() except -1
|
|
18634
19066
|
*
|
|
18635
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19067
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
|
|
18636
19068
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18637
19069
|
* PyArray_SetBaseObject(arr, base)
|
|
18638
19070
|
*/
|
|
@@ -18643,28 +19075,28 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
18643
19075
|
const char *__pyx_filename = NULL;
|
|
18644
19076
|
int __pyx_clineno = 0;
|
|
18645
19077
|
|
|
18646
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19078
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
|
|
18647
19079
|
*
|
|
18648
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19080
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *:
|
|
18649
19081
|
* Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
|
|
18650
19082
|
* PyArray_SetBaseObject(arr, base)
|
|
18651
19083
|
*
|
|
18652
19084
|
*/
|
|
18653
19085
|
Py_INCREF(__pyx_v_base);
|
|
18654
19086
|
|
|
18655
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18656
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19087
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1037
|
|
19088
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *:
|
|
18657
19089
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18658
19090
|
* PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
|
|
18659
19091
|
*
|
|
18660
19092
|
* cdef inline object get_array_base(ndarray arr):
|
|
18661
19093
|
*/
|
|
18662
|
-
__pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2,
|
|
19094
|
+
__pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 1037, __pyx_L1_error)
|
|
18663
19095
|
|
|
18664
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19096
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
18665
19097
|
* int _import_umath() except -1
|
|
18666
19098
|
*
|
|
18667
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19099
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
|
|
18668
19100
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18669
19101
|
* PyArray_SetBaseObject(arr, base)
|
|
18670
19102
|
*/
|
|
@@ -18676,7 +19108,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
18676
19108
|
__pyx_L0:;
|
|
18677
19109
|
}
|
|
18678
19110
|
|
|
18679
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19111
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
|
|
18680
19112
|
* PyArray_SetBaseObject(arr, base)
|
|
18681
19113
|
*
|
|
18682
19114
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -18691,7 +19123,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18691
19123
|
int __pyx_t_1;
|
|
18692
19124
|
__Pyx_RefNannySetupContext("get_array_base", 1);
|
|
18693
19125
|
|
|
18694
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19126
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1040
|
|
18695
19127
|
*
|
|
18696
19128
|
* cdef inline object get_array_base(ndarray arr):
|
|
18697
19129
|
* base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
|
|
@@ -18700,7 +19132,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18700
19132
|
*/
|
|
18701
19133
|
__pyx_v_base = PyArray_BASE(__pyx_v_arr);
|
|
18702
19134
|
|
|
18703
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19135
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
|
|
18704
19136
|
* cdef inline object get_array_base(ndarray arr):
|
|
18705
19137
|
* base = PyArray_BASE(arr)
|
|
18706
19138
|
* if base is NULL: # <<<<<<<<<<<<<<
|
|
@@ -18710,7 +19142,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18710
19142
|
__pyx_t_1 = (__pyx_v_base == NULL);
|
|
18711
19143
|
if (__pyx_t_1) {
|
|
18712
19144
|
|
|
18713
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19145
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1042
|
|
18714
19146
|
* base = PyArray_BASE(arr)
|
|
18715
19147
|
* if base is NULL:
|
|
18716
19148
|
* return None # <<<<<<<<<<<<<<
|
|
@@ -18721,7 +19153,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18721
19153
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
18722
19154
|
goto __pyx_L0;
|
|
18723
19155
|
|
|
18724
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19156
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
|
|
18725
19157
|
* cdef inline object get_array_base(ndarray arr):
|
|
18726
19158
|
* base = PyArray_BASE(arr)
|
|
18727
19159
|
* if base is NULL: # <<<<<<<<<<<<<<
|
|
@@ -18730,7 +19162,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18730
19162
|
*/
|
|
18731
19163
|
}
|
|
18732
19164
|
|
|
18733
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19165
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1043
|
|
18734
19166
|
* if base is NULL:
|
|
18735
19167
|
* return None
|
|
18736
19168
|
* return <object>base # <<<<<<<<<<<<<<
|
|
@@ -18742,7 +19174,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18742
19174
|
__pyx_r = ((PyObject *)__pyx_v_base);
|
|
18743
19175
|
goto __pyx_L0;
|
|
18744
19176
|
|
|
18745
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19177
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
|
|
18746
19178
|
* PyArray_SetBaseObject(arr, base)
|
|
18747
19179
|
*
|
|
18748
19180
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -18757,7 +19189,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18757
19189
|
return __pyx_r;
|
|
18758
19190
|
}
|
|
18759
19191
|
|
|
18760
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19192
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1047
|
|
18761
19193
|
* # Versions of the import_* functions which are more suitable for
|
|
18762
19194
|
* # Cython code.
|
|
18763
19195
|
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
|
|
@@ -18781,7 +19213,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18781
19213
|
int __pyx_clineno = 0;
|
|
18782
19214
|
__Pyx_RefNannySetupContext("import_array", 1);
|
|
18783
19215
|
|
|
18784
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19216
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
|
|
18785
19217
|
* # Cython code.
|
|
18786
19218
|
* cdef inline int import_array() except -1:
|
|
18787
19219
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18797,16 +19229,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18797
19229
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
18798
19230
|
/*try:*/ {
|
|
18799
19231
|
|
|
18800
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19232
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1049
|
|
18801
19233
|
* cdef inline int import_array() except -1:
|
|
18802
19234
|
* try:
|
|
18803
19235
|
* __pyx_import_array() # <<<<<<<<<<<<<<
|
|
18804
19236
|
* except Exception:
|
|
18805
|
-
* raise ImportError("numpy.
|
|
19237
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
18806
19238
|
*/
|
|
18807
|
-
__pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19239
|
+
__pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1049, __pyx_L3_error)
|
|
18808
19240
|
|
|
18809
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19241
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
|
|
18810
19242
|
* # Cython code.
|
|
18811
19243
|
* cdef inline int import_array() except -1:
|
|
18812
19244
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18820,37 +19252,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18820
19252
|
goto __pyx_L8_try_end;
|
|
18821
19253
|
__pyx_L3_error:;
|
|
18822
19254
|
|
|
18823
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19255
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1050
|
|
18824
19256
|
* try:
|
|
18825
19257
|
* __pyx_import_array()
|
|
18826
19258
|
* except Exception: # <<<<<<<<<<<<<<
|
|
18827
|
-
* raise ImportError("numpy.
|
|
19259
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
18828
19260
|
*
|
|
18829
19261
|
*/
|
|
18830
19262
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
18831
19263
|
if (__pyx_t_4) {
|
|
18832
19264
|
__Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18833
|
-
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2,
|
|
19265
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1050, __pyx_L5_except_error)
|
|
18834
19266
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
18835
19267
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
18836
19268
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
18837
19269
|
|
|
18838
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19270
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1051
|
|
18839
19271
|
* __pyx_import_array()
|
|
18840
19272
|
* except Exception:
|
|
18841
|
-
* raise ImportError("numpy.
|
|
19273
|
+
* raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
|
|
18842
19274
|
*
|
|
18843
19275
|
* cdef inline int import_umath() except -1:
|
|
18844
19276
|
*/
|
|
18845
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19277
|
+
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1051, __pyx_L5_except_error)
|
|
18846
19278
|
__Pyx_GOTREF(__pyx_t_8);
|
|
18847
19279
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
18848
19280
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
18849
|
-
__PYX_ERR(2,
|
|
19281
|
+
__PYX_ERR(2, 1051, __pyx_L5_except_error)
|
|
18850
19282
|
}
|
|
18851
19283
|
goto __pyx_L5_except_error;
|
|
18852
19284
|
|
|
18853
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19285
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
|
|
18854
19286
|
* # Cython code.
|
|
18855
19287
|
* cdef inline int import_array() except -1:
|
|
18856
19288
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18866,7 +19298,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18866
19298
|
__pyx_L8_try_end:;
|
|
18867
19299
|
}
|
|
18868
19300
|
|
|
18869
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19301
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1047
|
|
18870
19302
|
* # Versions of the import_* functions which are more suitable for
|
|
18871
19303
|
* # Cython code.
|
|
18872
19304
|
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
|
|
@@ -18889,8 +19321,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18889
19321
|
return __pyx_r;
|
|
18890
19322
|
}
|
|
18891
19323
|
|
|
18892
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18893
|
-
* raise ImportError("numpy.
|
|
19324
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
|
|
19325
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
18894
19326
|
*
|
|
18895
19327
|
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
|
|
18896
19328
|
* try:
|
|
@@ -18913,7 +19345,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
18913
19345
|
int __pyx_clineno = 0;
|
|
18914
19346
|
__Pyx_RefNannySetupContext("import_umath", 1);
|
|
18915
19347
|
|
|
18916
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19348
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
|
|
18917
19349
|
*
|
|
18918
19350
|
* cdef inline int import_umath() except -1:
|
|
18919
19351
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18929,16 +19361,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
18929
19361
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
18930
19362
|
/*try:*/ {
|
|
18931
19363
|
|
|
18932
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19364
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1055
|
|
18933
19365
|
* cdef inline int import_umath() except -1:
|
|
18934
19366
|
* try:
|
|
18935
19367
|
* _import_umath() # <<<<<<<<<<<<<<
|
|
18936
19368
|
* except Exception:
|
|
18937
|
-
* raise ImportError("numpy.
|
|
19369
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
18938
19370
|
*/
|
|
18939
|
-
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19371
|
+
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1055, __pyx_L3_error)
|
|
18940
19372
|
|
|
18941
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19373
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
|
|
18942
19374
|
*
|
|
18943
19375
|
* cdef inline int import_umath() except -1:
|
|
18944
19376
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18952,37 +19384,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
18952
19384
|
goto __pyx_L8_try_end;
|
|
18953
19385
|
__pyx_L3_error:;
|
|
18954
19386
|
|
|
18955
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19387
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
|
|
18956
19388
|
* try:
|
|
18957
19389
|
* _import_umath()
|
|
18958
19390
|
* except Exception: # <<<<<<<<<<<<<<
|
|
18959
|
-
* raise ImportError("numpy.
|
|
19391
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
18960
19392
|
*
|
|
18961
19393
|
*/
|
|
18962
19394
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
18963
19395
|
if (__pyx_t_4) {
|
|
18964
19396
|
__Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18965
|
-
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2,
|
|
19397
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1056, __pyx_L5_except_error)
|
|
18966
19398
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
18967
19399
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
18968
19400
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
18969
19401
|
|
|
18970
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19402
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1057
|
|
18971
19403
|
* _import_umath()
|
|
18972
19404
|
* except Exception:
|
|
18973
|
-
* raise ImportError("numpy.
|
|
19405
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
18974
19406
|
*
|
|
18975
19407
|
* cdef inline int import_ufunc() except -1:
|
|
18976
19408
|
*/
|
|
18977
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19409
|
+
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1057, __pyx_L5_except_error)
|
|
18978
19410
|
__Pyx_GOTREF(__pyx_t_8);
|
|
18979
19411
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
18980
19412
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
18981
|
-
__PYX_ERR(2,
|
|
19413
|
+
__PYX_ERR(2, 1057, __pyx_L5_except_error)
|
|
18982
19414
|
}
|
|
18983
19415
|
goto __pyx_L5_except_error;
|
|
18984
19416
|
|
|
18985
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19417
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
|
|
18986
19418
|
*
|
|
18987
19419
|
* cdef inline int import_umath() except -1:
|
|
18988
19420
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18998,8 +19430,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
18998
19430
|
__pyx_L8_try_end:;
|
|
18999
19431
|
}
|
|
19000
19432
|
|
|
19001
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19002
|
-
* raise ImportError("numpy.
|
|
19433
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
|
|
19434
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
19003
19435
|
*
|
|
19004
19436
|
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
|
|
19005
19437
|
* try:
|
|
@@ -19021,8 +19453,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19021
19453
|
return __pyx_r;
|
|
19022
19454
|
}
|
|
19023
19455
|
|
|
19024
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19025
|
-
* raise ImportError("numpy.
|
|
19456
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1059
|
|
19457
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19026
19458
|
*
|
|
19027
19459
|
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
|
|
19028
19460
|
* try:
|
|
@@ -19045,7 +19477,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19045
19477
|
int __pyx_clineno = 0;
|
|
19046
19478
|
__Pyx_RefNannySetupContext("import_ufunc", 1);
|
|
19047
19479
|
|
|
19048
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19480
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
|
|
19049
19481
|
*
|
|
19050
19482
|
* cdef inline int import_ufunc() except -1:
|
|
19051
19483
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19061,16 +19493,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19061
19493
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
19062
19494
|
/*try:*/ {
|
|
19063
19495
|
|
|
19064
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19496
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1061
|
|
19065
19497
|
* cdef inline int import_ufunc() except -1:
|
|
19066
19498
|
* try:
|
|
19067
19499
|
* _import_umath() # <<<<<<<<<<<<<<
|
|
19068
19500
|
* except Exception:
|
|
19069
|
-
* raise ImportError("numpy.
|
|
19501
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19070
19502
|
*/
|
|
19071
|
-
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19503
|
+
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1061, __pyx_L3_error)
|
|
19072
19504
|
|
|
19073
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19505
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
|
|
19074
19506
|
*
|
|
19075
19507
|
* cdef inline int import_ufunc() except -1:
|
|
19076
19508
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19084,37 +19516,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19084
19516
|
goto __pyx_L8_try_end;
|
|
19085
19517
|
__pyx_L3_error:;
|
|
19086
19518
|
|
|
19087
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19519
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1062
|
|
19088
19520
|
* try:
|
|
19089
19521
|
* _import_umath()
|
|
19090
19522
|
* except Exception: # <<<<<<<<<<<<<<
|
|
19091
|
-
* raise ImportError("numpy.
|
|
19523
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19092
19524
|
*
|
|
19093
19525
|
*/
|
|
19094
19526
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
19095
19527
|
if (__pyx_t_4) {
|
|
19096
19528
|
__Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
19097
|
-
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2,
|
|
19529
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1062, __pyx_L5_except_error)
|
|
19098
19530
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
19099
19531
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
19100
19532
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
19101
19533
|
|
|
19102
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19534
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1063
|
|
19103
19535
|
* _import_umath()
|
|
19104
19536
|
* except Exception:
|
|
19105
|
-
* raise ImportError("numpy.
|
|
19537
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
19106
19538
|
*
|
|
19107
19539
|
*
|
|
19108
19540
|
*/
|
|
19109
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19541
|
+
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1063, __pyx_L5_except_error)
|
|
19110
19542
|
__Pyx_GOTREF(__pyx_t_8);
|
|
19111
19543
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
19112
19544
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
19113
|
-
__PYX_ERR(2,
|
|
19545
|
+
__PYX_ERR(2, 1063, __pyx_L5_except_error)
|
|
19114
19546
|
}
|
|
19115
19547
|
goto __pyx_L5_except_error;
|
|
19116
19548
|
|
|
19117
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19549
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
|
|
19118
19550
|
*
|
|
19119
19551
|
* cdef inline int import_ufunc() except -1:
|
|
19120
19552
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19130,8 +19562,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19130
19562
|
__pyx_L8_try_end:;
|
|
19131
19563
|
}
|
|
19132
19564
|
|
|
19133
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19134
|
-
* raise ImportError("numpy.
|
|
19565
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1059
|
|
19566
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19135
19567
|
*
|
|
19136
19568
|
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
|
|
19137
19569
|
* try:
|
|
@@ -19153,10 +19585,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19153
19585
|
return __pyx_r;
|
|
19154
19586
|
}
|
|
19155
19587
|
|
|
19156
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19588
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1066
|
|
19157
19589
|
*
|
|
19158
19590
|
*
|
|
19159
|
-
* cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
|
|
19591
|
+
* cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19160
19592
|
* """
|
|
19161
19593
|
* Cython equivalent of `isinstance(obj, np.timedelta64)`
|
|
19162
19594
|
*/
|
|
@@ -19164,7 +19596,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19164
19596
|
static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
|
|
19165
19597
|
int __pyx_r;
|
|
19166
19598
|
|
|
19167
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19599
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1078
|
|
19168
19600
|
* bool
|
|
19169
19601
|
* """
|
|
19170
19602
|
* return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
|
|
@@ -19174,10 +19606,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19174
19606
|
__pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
|
|
19175
19607
|
goto __pyx_L0;
|
|
19176
19608
|
|
|
19177
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19609
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1066
|
|
19178
19610
|
*
|
|
19179
19611
|
*
|
|
19180
|
-
* cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
|
|
19612
|
+
* cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19181
19613
|
* """
|
|
19182
19614
|
* Cython equivalent of `isinstance(obj, np.timedelta64)`
|
|
19183
19615
|
*/
|
|
@@ -19187,10 +19619,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19187
19619
|
return __pyx_r;
|
|
19188
19620
|
}
|
|
19189
19621
|
|
|
19190
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19622
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
|
|
19191
19623
|
*
|
|
19192
19624
|
*
|
|
19193
|
-
* cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
|
|
19625
|
+
* cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19194
19626
|
* """
|
|
19195
19627
|
* Cython equivalent of `isinstance(obj, np.datetime64)`
|
|
19196
19628
|
*/
|
|
@@ -19198,7 +19630,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19198
19630
|
static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
|
|
19199
19631
|
int __pyx_r;
|
|
19200
19632
|
|
|
19201
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19633
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1093
|
|
19202
19634
|
* bool
|
|
19203
19635
|
* """
|
|
19204
19636
|
* return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
|
|
@@ -19208,10 +19640,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19208
19640
|
__pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
|
|
19209
19641
|
goto __pyx_L0;
|
|
19210
19642
|
|
|
19211
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19643
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
|
|
19212
19644
|
*
|
|
19213
19645
|
*
|
|
19214
|
-
* cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
|
|
19646
|
+
* cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19215
19647
|
* """
|
|
19216
19648
|
* Cython equivalent of `isinstance(obj, np.datetime64)`
|
|
19217
19649
|
*/
|
|
@@ -19221,10 +19653,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19221
19653
|
return __pyx_r;
|
|
19222
19654
|
}
|
|
19223
19655
|
|
|
19224
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19656
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
|
|
19225
19657
|
*
|
|
19226
19658
|
*
|
|
19227
|
-
* cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19659
|
+
* cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19228
19660
|
* """
|
|
19229
19661
|
* returns the int64 value underlying scalar numpy datetime64 object
|
|
19230
19662
|
*/
|
|
@@ -19232,7 +19664,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19232
19664
|
static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
|
|
19233
19665
|
npy_datetime __pyx_r;
|
|
19234
19666
|
|
|
19235
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19667
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1103
|
|
19236
19668
|
* also needed. That can be found using `get_datetime64_unit`.
|
|
19237
19669
|
* """
|
|
19238
19670
|
* return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
|
|
@@ -19242,10 +19674,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19242
19674
|
__pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
|
|
19243
19675
|
goto __pyx_L0;
|
|
19244
19676
|
|
|
19245
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19677
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
|
|
19246
19678
|
*
|
|
19247
19679
|
*
|
|
19248
|
-
* cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19680
|
+
* cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19249
19681
|
* """
|
|
19250
19682
|
* returns the int64 value underlying scalar numpy datetime64 object
|
|
19251
19683
|
*/
|
|
@@ -19255,10 +19687,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19255
19687
|
return __pyx_r;
|
|
19256
19688
|
}
|
|
19257
19689
|
|
|
19258
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19690
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1106
|
|
19259
19691
|
*
|
|
19260
19692
|
*
|
|
19261
|
-
* cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19693
|
+
* cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19262
19694
|
* """
|
|
19263
19695
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19264
19696
|
*/
|
|
@@ -19266,7 +19698,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19266
19698
|
static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
|
|
19267
19699
|
npy_timedelta __pyx_r;
|
|
19268
19700
|
|
|
19269
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19701
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1110
|
|
19270
19702
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19271
19703
|
* """
|
|
19272
19704
|
* return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
|
|
@@ -19276,10 +19708,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19276
19708
|
__pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
|
|
19277
19709
|
goto __pyx_L0;
|
|
19278
19710
|
|
|
19279
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19711
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1106
|
|
19280
19712
|
*
|
|
19281
19713
|
*
|
|
19282
|
-
* cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19714
|
+
* cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19283
19715
|
* """
|
|
19284
19716
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19285
19717
|
*/
|
|
@@ -19289,10 +19721,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19289
19721
|
return __pyx_r;
|
|
19290
19722
|
}
|
|
19291
19723
|
|
|
19292
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19724
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1113
|
|
19293
19725
|
*
|
|
19294
19726
|
*
|
|
19295
|
-
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19727
|
+
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19296
19728
|
* """
|
|
19297
19729
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19298
19730
|
*/
|
|
@@ -19300,18 +19732,20 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19300
19732
|
static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
|
|
19301
19733
|
NPY_DATETIMEUNIT __pyx_r;
|
|
19302
19734
|
|
|
19303
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19735
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1117
|
|
19304
19736
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19305
19737
|
* """
|
|
19306
19738
|
* return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
|
|
19739
|
+
*
|
|
19740
|
+
*
|
|
19307
19741
|
*/
|
|
19308
19742
|
__pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
|
|
19309
19743
|
goto __pyx_L0;
|
|
19310
19744
|
|
|
19311
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19745
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1113
|
|
19312
19746
|
*
|
|
19313
19747
|
*
|
|
19314
|
-
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19748
|
+
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19315
19749
|
* """
|
|
19316
19750
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19317
19751
|
*/
|
|
@@ -19601,14 +20035,15 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
19601
20035
|
int __pyx_t_16;
|
|
19602
20036
|
__pyx_t_5numpy_int32_t __pyx_t_17;
|
|
19603
20037
|
Py_ssize_t __pyx_t_18;
|
|
19604
|
-
|
|
19605
|
-
|
|
20038
|
+
unsigned int __pyx_t_19;
|
|
20039
|
+
__Pyx_memviewslice __pyx_t_20 = { 0, 0, { 0 }, { 0 }, { 0 } };
|
|
19606
20040
|
Py_ssize_t __pyx_t_21;
|
|
19607
20041
|
Py_ssize_t __pyx_t_22;
|
|
19608
|
-
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
|
|
20042
|
+
Py_ssize_t __pyx_t_23;
|
|
20043
|
+
PyArrayObject *__pyx_t_24 = NULL;
|
|
20044
|
+
int __pyx_t_25;
|
|
20045
|
+
__pyx_t_5numpy_float32_t __pyx_t_26;
|
|
20046
|
+
float __pyx_t_27;
|
|
19612
20047
|
int __pyx_lineno = 0;
|
|
19613
20048
|
const char *__pyx_filename = NULL;
|
|
19614
20049
|
int __pyx_clineno = 0;
|
|
@@ -19967,7 +20402,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
19967
20402
|
__pyx_t_3 = PyNumber_Negative(((PyObject *)__pyx_v_residuals)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
19968
20403
|
__Pyx_GOTREF(__pyx_t_3);
|
|
19969
20404
|
__pyx_t_4 = NULL;
|
|
19970
|
-
|
|
20405
|
+
__pyx_t_19 = 0;
|
|
19971
20406
|
#if CYTHON_UNPACK_METHODS
|
|
19972
20407
|
if (unlikely(PyMethod_Check(__pyx_t_2))) {
|
|
19973
20408
|
__pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
|
|
@@ -19976,13 +20411,13 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
19976
20411
|
__Pyx_INCREF(__pyx_t_4);
|
|
19977
20412
|
__Pyx_INCREF(function);
|
|
19978
20413
|
__Pyx_DECREF_SET(__pyx_t_2, function);
|
|
19979
|
-
|
|
20414
|
+
__pyx_t_19 = 1;
|
|
19980
20415
|
}
|
|
19981
20416
|
}
|
|
19982
20417
|
#endif
|
|
19983
20418
|
{
|
|
19984
20419
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3};
|
|
19985
|
-
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-
|
|
20420
|
+
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_19, 1+__pyx_t_19);
|
|
19986
20421
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
19987
20422
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
19988
20423
|
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
@@ -19998,7 +20433,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
19998
20433
|
__Pyx_GOTREF(__pyx_t_3);
|
|
19999
20434
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
20000
20435
|
__pyx_t_1 = NULL;
|
|
20001
|
-
|
|
20436
|
+
__pyx_t_19 = 0;
|
|
20002
20437
|
#if CYTHON_UNPACK_METHODS
|
|
20003
20438
|
if (likely(PyMethod_Check(__pyx_t_2))) {
|
|
20004
20439
|
__pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
|
|
@@ -20007,24 +20442,24 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20007
20442
|
__Pyx_INCREF(__pyx_t_1);
|
|
20008
20443
|
__Pyx_INCREF(function);
|
|
20009
20444
|
__Pyx_DECREF_SET(__pyx_t_2, function);
|
|
20010
|
-
|
|
20445
|
+
__pyx_t_19 = 1;
|
|
20011
20446
|
}
|
|
20012
20447
|
}
|
|
20013
20448
|
#endif
|
|
20014
20449
|
{
|
|
20015
20450
|
PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_3};
|
|
20016
|
-
__pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-
|
|
20451
|
+
__pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_19, 1+__pyx_t_19);
|
|
20017
20452
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
20018
20453
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
20019
20454
|
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
20020
20455
|
__Pyx_GOTREF(__pyx_t_5);
|
|
20021
20456
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
20022
20457
|
}
|
|
20023
|
-
|
|
20458
|
+
__pyx_t_20 = __Pyx_PyObject_to_MemoryviewSlice_ds_int(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_20.memview)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
20024
20459
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
20025
|
-
__pyx_v_indexes =
|
|
20026
|
-
|
|
20027
|
-
|
|
20460
|
+
__pyx_v_indexes = __pyx_t_20;
|
|
20461
|
+
__pyx_t_20.memview = NULL;
|
|
20462
|
+
__pyx_t_20.data = NULL;
|
|
20028
20463
|
|
|
20029
20464
|
/* "sknetwork/linalg/push.pyx":50
|
|
20030
20465
|
* # node with high residual value will be processed first
|
|
@@ -20038,12 +20473,12 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20038
20473
|
__PYX_ERR(0, 50, __pyx_L1_error)
|
|
20039
20474
|
}
|
|
20040
20475
|
__PYX_INC_MEMVIEW(&__pyx_v_indexes, 1);
|
|
20041
|
-
|
|
20042
|
-
|
|
20043
|
-
for (
|
|
20044
|
-
|
|
20045
|
-
__pyx_t_13 =
|
|
20046
|
-
__pyx_v_index = (*((int *) ( /* dim=0 */ (
|
|
20476
|
+
__pyx_t_20 = __pyx_v_indexes;
|
|
20477
|
+
__pyx_t_21 = __Pyx_MemoryView_Len(__pyx_t_20);
|
|
20478
|
+
for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_21; __pyx_t_23++) {
|
|
20479
|
+
__pyx_t_22 = __pyx_t_23;
|
|
20480
|
+
__pyx_t_13 = __pyx_t_22;
|
|
20481
|
+
__pyx_v_index = (*((int *) ( /* dim=0 */ (__pyx_t_20.data + __pyx_t_13 * __pyx_t_20.strides[0]) )));
|
|
20047
20482
|
|
|
20048
20483
|
/* "sknetwork/linalg/push.pyx":51
|
|
20049
20484
|
* indexes = np.argsort(-residuals).astype(np.int32)
|
|
@@ -20054,8 +20489,8 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20054
20489
|
*/
|
|
20055
20490
|
__pyx_v_worklist.push(__pyx_v_index);
|
|
20056
20491
|
}
|
|
20057
|
-
__PYX_XCLEAR_MEMVIEW(&
|
|
20058
|
-
|
|
20492
|
+
__PYX_XCLEAR_MEMVIEW(&__pyx_t_20, 1);
|
|
20493
|
+
__pyx_t_20.memview = NULL; __pyx_t_20.data = NULL;
|
|
20059
20494
|
|
|
20060
20495
|
/* "sknetwork/linalg/push.pyx":52
|
|
20061
20496
|
* for index in indexes:
|
|
@@ -20096,11 +20531,11 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20096
20531
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
20097
20532
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
20098
20533
|
if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 52, __pyx_L1_error)
|
|
20099
|
-
|
|
20534
|
+
__pyx_t_24 = ((PyArrayObject *)__pyx_t_4);
|
|
20100
20535
|
{
|
|
20101
20536
|
__Pyx_BufFmt_StackElem __pyx_stack[1];
|
|
20102
20537
|
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_scores.rcbuffer->pybuffer);
|
|
20103
|
-
__pyx_t_12 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)
|
|
20538
|
+
__pyx_t_12 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)__pyx_t_24, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack);
|
|
20104
20539
|
if (unlikely(__pyx_t_12 < 0)) {
|
|
20105
20540
|
PyErr_Fetch(&__pyx_t_10, &__pyx_t_9, &__pyx_t_8);
|
|
20106
20541
|
if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)__pyx_v_scores, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) {
|
|
@@ -20114,7 +20549,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20114
20549
|
__pyx_pybuffernd_scores.diminfo[0].strides = __pyx_pybuffernd_scores.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_scores.diminfo[0].shape = __pyx_pybuffernd_scores.rcbuffer->pybuffer.shape[0];
|
|
20115
20550
|
if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 52, __pyx_L1_error)
|
|
20116
20551
|
}
|
|
20117
|
-
|
|
20552
|
+
__pyx_t_24 = 0;
|
|
20118
20553
|
__pyx_v_scores = ((PyArrayObject *)__pyx_t_4);
|
|
20119
20554
|
__pyx_t_4 = 0;
|
|
20120
20555
|
|
|
@@ -20126,8 +20561,8 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20126
20561
|
* worklist.pop()
|
|
20127
20562
|
*/
|
|
20128
20563
|
while (1) {
|
|
20129
|
-
|
|
20130
|
-
if (!
|
|
20564
|
+
__pyx_t_25 = (!__pyx_v_worklist.empty());
|
|
20565
|
+
if (!__pyx_t_25) break;
|
|
20131
20566
|
|
|
20132
20567
|
/* "sknetwork/linalg/push.pyx":55
|
|
20133
20568
|
*
|
|
@@ -20213,7 +20648,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20213
20648
|
if (__pyx_t_14 > 0)
|
|
20214
20649
|
{
|
|
20215
20650
|
#ifdef _OPENMP
|
|
20216
|
-
#pragma omp parallel private(__pyx_t_13, __pyx_t_17,
|
|
20651
|
+
#pragma omp parallel private(__pyx_t_13, __pyx_t_17, __pyx_t_25, __pyx_t_26) private(__pyx_filename, __pyx_lineno, __pyx_clineno) shared(__pyx_parallel_why, __pyx_parallel_exc_type, __pyx_parallel_exc_value, __pyx_parallel_exc_tb)
|
|
20217
20652
|
#endif /* _OPENMP */
|
|
20218
20653
|
{
|
|
20219
20654
|
#ifdef _OPENMP
|
|
@@ -20269,7 +20704,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20269
20704
|
* if residuals[neighbor] > tol > tmp:
|
|
20270
20705
|
* worklist.push(neighbor)
|
|
20271
20706
|
*/
|
|
20272
|
-
|
|
20707
|
+
__pyx_t_26 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_residuals.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_residuals.diminfo[0].strides)) * (1.0 - __pyx_v_damping_factor));
|
|
20273
20708
|
__pyx_t_13 = __pyx_v_vertex;
|
|
20274
20709
|
__pyx_t_17 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int32_t *, __pyx_pybuffernd_degrees.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_degrees.diminfo[0].strides));
|
|
20275
20710
|
if (unlikely(__pyx_t_17 == 0)) {
|
|
@@ -20291,7 +20726,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20291
20726
|
* if residuals[neighbor] > tol > tmp:
|
|
20292
20727
|
*/
|
|
20293
20728
|
__pyx_t_13 = __pyx_v_neighbor;
|
|
20294
|
-
*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_residuals.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_residuals.diminfo[0].strides) += (
|
|
20729
|
+
*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_residuals.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_residuals.diminfo[0].strides) += (__pyx_t_26 / ((__pyx_t_5numpy_float32_t)__pyx_t_17));
|
|
20295
20730
|
|
|
20296
20731
|
/* "sknetwork/linalg/push.pyx":67
|
|
20297
20732
|
* residuals[neighbor] += residuals[vertex] * \
|
|
@@ -20301,11 +20736,11 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20301
20736
|
* norm = np.linalg.norm(scores, 1)
|
|
20302
20737
|
*/
|
|
20303
20738
|
__pyx_t_13 = __pyx_v_neighbor;
|
|
20304
|
-
|
|
20305
|
-
if (
|
|
20306
|
-
|
|
20739
|
+
__pyx_t_25 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_residuals.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_residuals.diminfo[0].strides)) > __pyx_v_tol);
|
|
20740
|
+
if (__pyx_t_25) {
|
|
20741
|
+
__pyx_t_25 = (__pyx_v_tol > __pyx_v_tmp);
|
|
20307
20742
|
}
|
|
20308
|
-
if (
|
|
20743
|
+
if (__pyx_t_25) {
|
|
20309
20744
|
|
|
20310
20745
|
/* "sknetwork/linalg/push.pyx":68
|
|
20311
20746
|
* (1 - damping_factor) / degrees[vertex]
|
|
@@ -20452,7 +20887,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20452
20887
|
__Pyx_GOTREF(__pyx_t_3);
|
|
20453
20888
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
20454
20889
|
__pyx_t_1 = NULL;
|
|
20455
|
-
|
|
20890
|
+
__pyx_t_19 = 0;
|
|
20456
20891
|
#if CYTHON_UNPACK_METHODS
|
|
20457
20892
|
if (likely(PyMethod_Check(__pyx_t_3))) {
|
|
20458
20893
|
__pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
|
|
@@ -20461,21 +20896,21 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20461
20896
|
__Pyx_INCREF(__pyx_t_1);
|
|
20462
20897
|
__Pyx_INCREF(function);
|
|
20463
20898
|
__Pyx_DECREF_SET(__pyx_t_3, function);
|
|
20464
|
-
|
|
20899
|
+
__pyx_t_19 = 1;
|
|
20465
20900
|
}
|
|
20466
20901
|
}
|
|
20467
20902
|
#endif
|
|
20468
20903
|
{
|
|
20469
20904
|
PyObject *__pyx_callargs[3] = {__pyx_t_1, ((PyObject *)__pyx_v_scores), __pyx_int_1};
|
|
20470
|
-
__pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-
|
|
20905
|
+
__pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_19, 2+__pyx_t_19);
|
|
20471
20906
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
20472
20907
|
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L1_error)
|
|
20473
20908
|
__Pyx_GOTREF(__pyx_t_4);
|
|
20474
20909
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
20475
20910
|
}
|
|
20476
|
-
|
|
20911
|
+
__pyx_t_27 = __pyx_PyFloat_AsFloat(__pyx_t_4); if (unlikely((__pyx_t_27 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 69, __pyx_L1_error)
|
|
20477
20912
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
20478
|
-
__pyx_v_norm =
|
|
20913
|
+
__pyx_v_norm = __pyx_t_27;
|
|
20479
20914
|
|
|
20480
20915
|
/* "sknetwork/linalg/push.pyx":70
|
|
20481
20916
|
* worklist.push(neighbor)
|
|
@@ -20489,11 +20924,11 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20489
20924
|
__Pyx_GOTREF(__pyx_t_3);
|
|
20490
20925
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
20491
20926
|
if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 70, __pyx_L1_error)
|
|
20492
|
-
|
|
20927
|
+
__pyx_t_24 = ((PyArrayObject *)__pyx_t_3);
|
|
20493
20928
|
{
|
|
20494
20929
|
__Pyx_BufFmt_StackElem __pyx_stack[1];
|
|
20495
20930
|
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_scores.rcbuffer->pybuffer);
|
|
20496
|
-
__pyx_t_14 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)
|
|
20931
|
+
__pyx_t_14 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)__pyx_t_24, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack);
|
|
20497
20932
|
if (unlikely(__pyx_t_14 < 0)) {
|
|
20498
20933
|
PyErr_Fetch(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
|
|
20499
20934
|
if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)__pyx_v_scores, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) {
|
|
@@ -20507,7 +20942,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20507
20942
|
__pyx_pybuffernd_scores.diminfo[0].strides = __pyx_pybuffernd_scores.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_scores.diminfo[0].shape = __pyx_pybuffernd_scores.rcbuffer->pybuffer.shape[0];
|
|
20508
20943
|
if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(0, 70, __pyx_L1_error)
|
|
20509
20944
|
}
|
|
20510
|
-
|
|
20945
|
+
__pyx_t_24 = 0;
|
|
20511
20946
|
__Pyx_DECREF_SET(__pyx_v_scores, ((PyArrayObject *)__pyx_t_3));
|
|
20512
20947
|
__pyx_t_3 = 0;
|
|
20513
20948
|
|
|
@@ -20536,7 +20971,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
|
|
|
20536
20971
|
__Pyx_XDECREF(__pyx_t_3);
|
|
20537
20972
|
__Pyx_XDECREF(__pyx_t_4);
|
|
20538
20973
|
__Pyx_XDECREF(__pyx_t_5);
|
|
20539
|
-
__PYX_XCLEAR_MEMVIEW(&
|
|
20974
|
+
__PYX_XCLEAR_MEMVIEW(&__pyx_t_20, 1);
|
|
20540
20975
|
{ PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
|
|
20541
20976
|
__Pyx_PyThreadState_declare
|
|
20542
20977
|
__Pyx_PyThreadState_assign
|
|
@@ -20820,6 +21255,9 @@ static PyTypeObject __pyx_type___pyx_array = {
|
|
|
20820
21255
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
20821
21256
|
0, /*tp_watched*/
|
|
20822
21257
|
#endif
|
|
21258
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
21259
|
+
0, /*tp_versions_used*/
|
|
21260
|
+
#endif
|
|
20823
21261
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
20824
21262
|
0, /*tp_pypy_flags*/
|
|
20825
21263
|
#endif
|
|
@@ -20990,6 +21428,9 @@ static PyTypeObject __pyx_type___pyx_MemviewEnum = {
|
|
|
20990
21428
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
20991
21429
|
0, /*tp_watched*/
|
|
20992
21430
|
#endif
|
|
21431
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
21432
|
+
0, /*tp_versions_used*/
|
|
21433
|
+
#endif
|
|
20993
21434
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
20994
21435
|
0, /*tp_pypy_flags*/
|
|
20995
21436
|
#endif
|
|
@@ -21333,6 +21774,9 @@ static PyTypeObject __pyx_type___pyx_memoryview = {
|
|
|
21333
21774
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
21334
21775
|
0, /*tp_watched*/
|
|
21335
21776
|
#endif
|
|
21777
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
21778
|
+
0, /*tp_versions_used*/
|
|
21779
|
+
#endif
|
|
21336
21780
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
21337
21781
|
0, /*tp_pypy_flags*/
|
|
21338
21782
|
#endif
|
|
@@ -21505,6 +21949,9 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = {
|
|
|
21505
21949
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
21506
21950
|
0, /*tp_watched*/
|
|
21507
21951
|
#endif
|
|
21952
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
21953
|
+
0, /*tp_versions_used*/
|
|
21954
|
+
#endif
|
|
21508
21955
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
21509
21956
|
0, /*tp_pypy_flags*/
|
|
21510
21957
|
#endif
|
|
@@ -21630,8 +22077,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
21630
22077
|
{&__pyx_n_s_norm, __pyx_k_norm, sizeof(__pyx_k_norm), 0, 0, 1, 1},
|
|
21631
22078
|
{&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
|
|
21632
22079
|
{&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
|
|
21633
|
-
{&
|
|
21634
|
-
{&
|
|
22080
|
+
{&__pyx_kp_u_numpy__core_multiarray_failed_to, __pyx_k_numpy__core_multiarray_failed_to, sizeof(__pyx_k_numpy__core_multiarray_failed_to), 0, 1, 0, 0},
|
|
22081
|
+
{&__pyx_kp_u_numpy__core_umath_failed_to_impo, __pyx_k_numpy__core_umath_failed_to_impo, sizeof(__pyx_k_numpy__core_umath_failed_to_impo), 0, 1, 0, 0},
|
|
21635
22082
|
{&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
|
|
21636
22083
|
{&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1},
|
|
21637
22084
|
{&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
|
|
@@ -21697,7 +22144,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
|
|
|
21697
22144
|
__pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 408, __pyx_L1_error)
|
|
21698
22145
|
__pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 618, __pyx_L1_error)
|
|
21699
22146
|
__pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(1, 914, __pyx_L1_error)
|
|
21700
|
-
__pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2,
|
|
22147
|
+
__pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1051, __pyx_L1_error)
|
|
21701
22148
|
return 0;
|
|
21702
22149
|
__pyx_L1_error:;
|
|
21703
22150
|
return -1;
|
|
@@ -21744,25 +22191,25 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
21744
22191
|
__Pyx_GOTREF(__pyx_tuple__8);
|
|
21745
22192
|
__Pyx_GIVEREF(__pyx_tuple__8);
|
|
21746
22193
|
|
|
21747
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
22194
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1051
|
|
21748
22195
|
* __pyx_import_array()
|
|
21749
22196
|
* except Exception:
|
|
21750
|
-
* raise ImportError("numpy.
|
|
22197
|
+
* raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
|
|
21751
22198
|
*
|
|
21752
22199
|
* cdef inline int import_umath() except -1:
|
|
21753
22200
|
*/
|
|
21754
|
-
__pyx_tuple__9 = PyTuple_Pack(1,
|
|
22201
|
+
__pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_multiarray_failed_to); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 1051, __pyx_L1_error)
|
|
21755
22202
|
__Pyx_GOTREF(__pyx_tuple__9);
|
|
21756
22203
|
__Pyx_GIVEREF(__pyx_tuple__9);
|
|
21757
22204
|
|
|
21758
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
22205
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1057
|
|
21759
22206
|
* _import_umath()
|
|
21760
22207
|
* except Exception:
|
|
21761
|
-
* raise ImportError("numpy.
|
|
22208
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
21762
22209
|
*
|
|
21763
22210
|
* cdef inline int import_ufunc() except -1:
|
|
21764
22211
|
*/
|
|
21765
|
-
__pyx_tuple__10 = PyTuple_Pack(1,
|
|
22212
|
+
__pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_umath_failed_to_impo); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 1057, __pyx_L1_error)
|
|
21766
22213
|
__Pyx_GOTREF(__pyx_tuple__10);
|
|
21767
22214
|
__Pyx_GIVEREF(__pyx_tuple__10);
|
|
21768
22215
|
|
|
@@ -22143,33 +22590,33 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
22143
22590
|
/*--- Type import code ---*/
|
|
22144
22591
|
__pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
|
|
22145
22592
|
__Pyx_GOTREF(__pyx_t_1);
|
|
22146
|
-
__pyx_ptype_7cpython_4type_type =
|
|
22593
|
+
__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
|
|
22147
22594
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
22148
|
-
sizeof(PyTypeObject),
|
|
22595
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
22149
22596
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
22150
|
-
sizeof(PyTypeObject),
|
|
22597
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
22151
22598
|
#else
|
|
22152
|
-
sizeof(PyHeapTypeObject),
|
|
22599
|
+
sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject),
|
|
22153
22600
|
#endif
|
|
22154
|
-
|
|
22601
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
|
|
22155
22602
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
22156
|
-
__pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2,
|
|
22603
|
+
__pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 272, __pyx_L1_error)
|
|
22157
22604
|
__Pyx_GOTREF(__pyx_t_1);
|
|
22158
|
-
__pyx_ptype_5numpy_dtype =
|
|
22159
|
-
__pyx_ptype_5numpy_flatiter =
|
|
22160
|
-
__pyx_ptype_5numpy_broadcast =
|
|
22161
|
-
__pyx_ptype_5numpy_ndarray =
|
|
22162
|
-
__pyx_ptype_5numpy_generic =
|
|
22163
|
-
__pyx_ptype_5numpy_number =
|
|
22164
|
-
__pyx_ptype_5numpy_integer =
|
|
22165
|
-
__pyx_ptype_5numpy_signedinteger =
|
|
22166
|
-
__pyx_ptype_5numpy_unsignedinteger =
|
|
22167
|
-
__pyx_ptype_5numpy_inexact =
|
|
22168
|
-
__pyx_ptype_5numpy_floating =
|
|
22169
|
-
__pyx_ptype_5numpy_complexfloating =
|
|
22170
|
-
__pyx_ptype_5numpy_flexible =
|
|
22171
|
-
__pyx_ptype_5numpy_character =
|
|
22172
|
-
__pyx_ptype_5numpy_ufunc =
|
|
22605
|
+
__pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 272, __pyx_L1_error)
|
|
22606
|
+
__pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 317, __pyx_L1_error)
|
|
22607
|
+
__pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 321, __pyx_L1_error)
|
|
22608
|
+
__pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 360, __pyx_L1_error)
|
|
22609
|
+
__pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 873, __pyx_L1_error)
|
|
22610
|
+
__pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 875, __pyx_L1_error)
|
|
22611
|
+
__pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 877, __pyx_L1_error)
|
|
22612
|
+
__pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 879, __pyx_L1_error)
|
|
22613
|
+
__pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 881, __pyx_L1_error)
|
|
22614
|
+
__pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 883, __pyx_L1_error)
|
|
22615
|
+
__pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 885, __pyx_L1_error)
|
|
22616
|
+
__pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 887, __pyx_L1_error)
|
|
22617
|
+
__pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 889, __pyx_L1_error)
|
|
22618
|
+
__pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 891, __pyx_L1_error)
|
|
22619
|
+
__pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 955, __pyx_L1_error)
|
|
22173
22620
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
22174
22621
|
__Pyx_RefNannyFinishContext();
|
|
22175
22622
|
return 0;
|
|
@@ -25493,7 +25940,6 @@ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
|
|
|
25493
25940
|
}
|
|
25494
25941
|
|
|
25495
25942
|
/* HasAttr */
|
|
25496
|
-
#if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
|
|
25497
25943
|
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
25498
25944
|
PyObject *r;
|
|
25499
25945
|
if (unlikely(!__Pyx_PyBaseString_Check(n))) {
|
|
@@ -25510,7 +25956,6 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
|
25510
25956
|
return 1;
|
|
25511
25957
|
}
|
|
25512
25958
|
}
|
|
25513
|
-
#endif
|
|
25514
25959
|
|
|
25515
25960
|
/* IsLittleEndian */
|
|
25516
25961
|
static CYTHON_INLINE int __Pyx_Is_Little_Endian(void)
|
|
@@ -26704,10 +27149,10 @@ __PYX_GOOD:
|
|
|
26704
27149
|
#endif
|
|
26705
27150
|
|
|
26706
27151
|
/* TypeImport */
|
|
26707
|
-
#ifndef
|
|
26708
|
-
#define
|
|
26709
|
-
static PyTypeObject *
|
|
26710
|
-
size_t size, size_t alignment, enum
|
|
27152
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_0_12
|
|
27153
|
+
#define __PYX_HAVE_RT_ImportType_3_0_12
|
|
27154
|
+
static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name,
|
|
27155
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size)
|
|
26711
27156
|
{
|
|
26712
27157
|
PyObject *result = 0;
|
|
26713
27158
|
char warning[200];
|
|
@@ -26761,7 +27206,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
|
|
|
26761
27206
|
module_name, class_name, size, basicsize+itemsize);
|
|
26762
27207
|
goto bad;
|
|
26763
27208
|
}
|
|
26764
|
-
if (check_size ==
|
|
27209
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_12 &&
|
|
26765
27210
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
26766
27211
|
PyErr_Format(PyExc_ValueError,
|
|
26767
27212
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -26769,7 +27214,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
|
|
|
26769
27214
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
26770
27215
|
goto bad;
|
|
26771
27216
|
}
|
|
26772
|
-
else if (check_size ==
|
|
27217
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_12 && (size_t)basicsize > size) {
|
|
26773
27218
|
PyOS_snprintf(warning, sizeof(warning),
|
|
26774
27219
|
"%s.%s size changed, may indicate binary incompatibility. "
|
|
26775
27220
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -27904,6 +28349,9 @@ static PyTypeObject __pyx_CyFunctionType_type = {
|
|
|
27904
28349
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
27905
28350
|
0,
|
|
27906
28351
|
#endif
|
|
28352
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
28353
|
+
0,
|
|
28354
|
+
#endif
|
|
27907
28355
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
27908
28356
|
0,
|
|
27909
28357
|
#endif
|
|
@@ -28089,7 +28537,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
|
|
|
28089
28537
|
#include "compile.h"
|
|
28090
28538
|
#include "frameobject.h"
|
|
28091
28539
|
#include "traceback.h"
|
|
28092
|
-
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
28540
|
+
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
|
|
28093
28541
|
#ifndef Py_BUILD_CORE
|
|
28094
28542
|
#define Py_BUILD_CORE 1
|
|
28095
28543
|
#endif
|
|
@@ -28950,6 +29398,160 @@ static CYTHON_INLINE int __pyx_memview_set_int(const char *itemp, PyObject *obj)
|
|
|
28950
29398
|
#endif
|
|
28951
29399
|
#endif
|
|
28952
29400
|
|
|
29401
|
+
/* Declarations */
|
|
29402
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
29403
|
+
#ifdef __cplusplus
|
|
29404
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
29405
|
+
return ::std::complex< long double >(x, y);
|
|
29406
|
+
}
|
|
29407
|
+
#else
|
|
29408
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
29409
|
+
return x + y*(__pyx_t_long_double_complex)_Complex_I;
|
|
29410
|
+
}
|
|
29411
|
+
#endif
|
|
29412
|
+
#else
|
|
29413
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
29414
|
+
__pyx_t_long_double_complex z;
|
|
29415
|
+
z.real = x;
|
|
29416
|
+
z.imag = y;
|
|
29417
|
+
return z;
|
|
29418
|
+
}
|
|
29419
|
+
#endif
|
|
29420
|
+
|
|
29421
|
+
/* Arithmetic */
|
|
29422
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
29423
|
+
#else
|
|
29424
|
+
static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29425
|
+
return (a.real == b.real) && (a.imag == b.imag);
|
|
29426
|
+
}
|
|
29427
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29428
|
+
__pyx_t_long_double_complex z;
|
|
29429
|
+
z.real = a.real + b.real;
|
|
29430
|
+
z.imag = a.imag + b.imag;
|
|
29431
|
+
return z;
|
|
29432
|
+
}
|
|
29433
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29434
|
+
__pyx_t_long_double_complex z;
|
|
29435
|
+
z.real = a.real - b.real;
|
|
29436
|
+
z.imag = a.imag - b.imag;
|
|
29437
|
+
return z;
|
|
29438
|
+
}
|
|
29439
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29440
|
+
__pyx_t_long_double_complex z;
|
|
29441
|
+
z.real = a.real * b.real - a.imag * b.imag;
|
|
29442
|
+
z.imag = a.real * b.imag + a.imag * b.real;
|
|
29443
|
+
return z;
|
|
29444
|
+
}
|
|
29445
|
+
#if 1
|
|
29446
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29447
|
+
if (b.imag == 0) {
|
|
29448
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
|
|
29449
|
+
} else if (fabsl(b.real) >= fabsl(b.imag)) {
|
|
29450
|
+
if (b.real == 0 && b.imag == 0) {
|
|
29451
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
|
|
29452
|
+
} else {
|
|
29453
|
+
long double r = b.imag / b.real;
|
|
29454
|
+
long double s = (long double)(1.0) / (b.real + b.imag * r);
|
|
29455
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
29456
|
+
(a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
|
|
29457
|
+
}
|
|
29458
|
+
} else {
|
|
29459
|
+
long double r = b.real / b.imag;
|
|
29460
|
+
long double s = (long double)(1.0) / (b.imag + b.real * r);
|
|
29461
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
29462
|
+
(a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
|
|
29463
|
+
}
|
|
29464
|
+
}
|
|
29465
|
+
#else
|
|
29466
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29467
|
+
if (b.imag == 0) {
|
|
29468
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
|
|
29469
|
+
} else {
|
|
29470
|
+
long double denom = b.real * b.real + b.imag * b.imag;
|
|
29471
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
29472
|
+
(a.real * b.real + a.imag * b.imag) / denom,
|
|
29473
|
+
(a.imag * b.real - a.real * b.imag) / denom);
|
|
29474
|
+
}
|
|
29475
|
+
}
|
|
29476
|
+
#endif
|
|
29477
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex a) {
|
|
29478
|
+
__pyx_t_long_double_complex z;
|
|
29479
|
+
z.real = -a.real;
|
|
29480
|
+
z.imag = -a.imag;
|
|
29481
|
+
return z;
|
|
29482
|
+
}
|
|
29483
|
+
static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex a) {
|
|
29484
|
+
return (a.real == 0) && (a.imag == 0);
|
|
29485
|
+
}
|
|
29486
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex a) {
|
|
29487
|
+
__pyx_t_long_double_complex z;
|
|
29488
|
+
z.real = a.real;
|
|
29489
|
+
z.imag = -a.imag;
|
|
29490
|
+
return z;
|
|
29491
|
+
}
|
|
29492
|
+
#if 1
|
|
29493
|
+
static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex z) {
|
|
29494
|
+
#if !defined(HAVE_HYPOT) || defined(_MSC_VER)
|
|
29495
|
+
return sqrtl(z.real*z.real + z.imag*z.imag);
|
|
29496
|
+
#else
|
|
29497
|
+
return hypotl(z.real, z.imag);
|
|
29498
|
+
#endif
|
|
29499
|
+
}
|
|
29500
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29501
|
+
__pyx_t_long_double_complex z;
|
|
29502
|
+
long double r, lnr, theta, z_r, z_theta;
|
|
29503
|
+
if (b.imag == 0 && b.real == (int)b.real) {
|
|
29504
|
+
if (b.real < 0) {
|
|
29505
|
+
long double denom = a.real * a.real + a.imag * a.imag;
|
|
29506
|
+
a.real = a.real / denom;
|
|
29507
|
+
a.imag = -a.imag / denom;
|
|
29508
|
+
b.real = -b.real;
|
|
29509
|
+
}
|
|
29510
|
+
switch ((int)b.real) {
|
|
29511
|
+
case 0:
|
|
29512
|
+
z.real = 1;
|
|
29513
|
+
z.imag = 0;
|
|
29514
|
+
return z;
|
|
29515
|
+
case 1:
|
|
29516
|
+
return a;
|
|
29517
|
+
case 2:
|
|
29518
|
+
return __Pyx_c_prod_long__double(a, a);
|
|
29519
|
+
case 3:
|
|
29520
|
+
z = __Pyx_c_prod_long__double(a, a);
|
|
29521
|
+
return __Pyx_c_prod_long__double(z, a);
|
|
29522
|
+
case 4:
|
|
29523
|
+
z = __Pyx_c_prod_long__double(a, a);
|
|
29524
|
+
return __Pyx_c_prod_long__double(z, z);
|
|
29525
|
+
}
|
|
29526
|
+
}
|
|
29527
|
+
if (a.imag == 0) {
|
|
29528
|
+
if (a.real == 0) {
|
|
29529
|
+
return a;
|
|
29530
|
+
} else if ((b.imag == 0) && (a.real >= 0)) {
|
|
29531
|
+
z.real = powl(a.real, b.real);
|
|
29532
|
+
z.imag = 0;
|
|
29533
|
+
return z;
|
|
29534
|
+
} else if (a.real > 0) {
|
|
29535
|
+
r = a.real;
|
|
29536
|
+
theta = 0;
|
|
29537
|
+
} else {
|
|
29538
|
+
r = -a.real;
|
|
29539
|
+
theta = atan2l(0.0, -1.0);
|
|
29540
|
+
}
|
|
29541
|
+
} else {
|
|
29542
|
+
r = __Pyx_c_abs_long__double(a);
|
|
29543
|
+
theta = atan2l(a.imag, a.real);
|
|
29544
|
+
}
|
|
29545
|
+
lnr = logl(r);
|
|
29546
|
+
z_r = expl(lnr * b.real - theta * b.imag);
|
|
29547
|
+
z_theta = theta * b.real + lnr * b.imag;
|
|
29548
|
+
z.real = z_r * cosl(z_theta);
|
|
29549
|
+
z.imag = z_r * sinl(z_theta);
|
|
29550
|
+
return z;
|
|
29551
|
+
}
|
|
29552
|
+
#endif
|
|
29553
|
+
#endif
|
|
29554
|
+
|
|
28953
29555
|
/* MemviewSliceCopyTemplate */
|
|
28954
29556
|
static __Pyx_memviewslice
|
|
28955
29557
|
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
|
|
@@ -29174,245 +29776,239 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
|
|
|
29174
29776
|
}
|
|
29175
29777
|
return (int) val;
|
|
29176
29778
|
}
|
|
29177
|
-
}
|
|
29779
|
+
}
|
|
29178
29780
|
#endif
|
|
29179
|
-
if (
|
|
29180
|
-
|
|
29781
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
29782
|
+
int val;
|
|
29783
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
29784
|
+
if (!tmp) return (int) -1;
|
|
29785
|
+
val = __Pyx_PyInt_As_int(tmp);
|
|
29786
|
+
Py_DECREF(tmp);
|
|
29787
|
+
return val;
|
|
29788
|
+
}
|
|
29789
|
+
if (is_unsigned) {
|
|
29181
29790
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
}
|
|
29791
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
29792
|
+
goto raise_neg_overflow;
|
|
29793
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
29794
|
+
__PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
29795
|
+
} else {
|
|
29796
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
29797
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
29798
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
29799
|
+
case 2:
|
|
29800
|
+
if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
|
|
29801
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29802
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29803
|
+
} else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
|
|
29804
|
+
return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
29197
29805
|
}
|
|
29198
|
-
|
|
29199
|
-
|
|
29200
|
-
|
|
29201
|
-
|
|
29202
|
-
|
|
29203
|
-
|
|
29204
|
-
|
|
29205
|
-
|
|
29806
|
+
}
|
|
29807
|
+
break;
|
|
29808
|
+
case 3:
|
|
29809
|
+
if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
|
|
29810
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29811
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29812
|
+
} else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
|
|
29813
|
+
return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
29206
29814
|
}
|
|
29207
|
-
|
|
29208
|
-
|
|
29209
|
-
|
|
29210
|
-
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
|
|
29214
|
-
|
|
29815
|
+
}
|
|
29816
|
+
break;
|
|
29817
|
+
case 4:
|
|
29818
|
+
if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
|
|
29819
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29820
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29821
|
+
} else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
|
|
29822
|
+
return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
29215
29823
|
}
|
|
29216
|
-
|
|
29217
|
-
|
|
29824
|
+
}
|
|
29825
|
+
break;
|
|
29218
29826
|
}
|
|
29827
|
+
}
|
|
29219
29828
|
#endif
|
|
29220
29829
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
29221
|
-
|
|
29222
|
-
|
|
29223
|
-
|
|
29830
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
29831
|
+
goto raise_neg_overflow;
|
|
29832
|
+
}
|
|
29224
29833
|
#else
|
|
29225
|
-
|
|
29226
|
-
|
|
29227
|
-
|
|
29228
|
-
|
|
29229
|
-
|
|
29230
|
-
|
|
29231
|
-
|
|
29834
|
+
{
|
|
29835
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
29836
|
+
if (unlikely(result < 0))
|
|
29837
|
+
return (int) -1;
|
|
29838
|
+
if (unlikely(result == 1))
|
|
29839
|
+
goto raise_neg_overflow;
|
|
29840
|
+
}
|
|
29232
29841
|
#endif
|
|
29233
|
-
|
|
29234
|
-
|
|
29842
|
+
if ((sizeof(int) <= sizeof(unsigned long))) {
|
|
29843
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
|
|
29235
29844
|
#ifdef HAVE_LONG_LONG
|
|
29236
|
-
|
|
29237
|
-
|
|
29845
|
+
} else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
29846
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
29238
29847
|
#endif
|
|
29239
|
-
|
|
29240
|
-
|
|
29848
|
+
}
|
|
29849
|
+
} else {
|
|
29241
29850
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29242
|
-
|
|
29243
|
-
|
|
29244
|
-
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
|
|
29248
|
-
|
|
29249
|
-
|
|
29250
|
-
|
|
29251
|
-
|
|
29252
|
-
|
|
29253
|
-
|
|
29254
|
-
}
|
|
29851
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
29852
|
+
__PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
29853
|
+
} else {
|
|
29854
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
29855
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
29856
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
29857
|
+
case -2:
|
|
29858
|
+
if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
|
|
29859
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29860
|
+
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29861
|
+
} else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
29862
|
+
return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
29255
29863
|
}
|
|
29256
|
-
|
|
29257
|
-
|
|
29258
|
-
|
|
29259
|
-
|
|
29260
|
-
|
|
29261
|
-
|
|
29262
|
-
|
|
29263
|
-
|
|
29864
|
+
}
|
|
29865
|
+
break;
|
|
29866
|
+
case 2:
|
|
29867
|
+
if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
|
|
29868
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29869
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29870
|
+
} else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
29871
|
+
return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
29264
29872
|
}
|
|
29265
|
-
|
|
29266
|
-
|
|
29267
|
-
|
|
29268
|
-
|
|
29269
|
-
|
|
29270
|
-
|
|
29271
|
-
|
|
29272
|
-
|
|
29873
|
+
}
|
|
29874
|
+
break;
|
|
29875
|
+
case -3:
|
|
29876
|
+
if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
29877
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29878
|
+
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29879
|
+
} else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
29880
|
+
return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
29273
29881
|
}
|
|
29274
|
-
|
|
29275
|
-
|
|
29276
|
-
|
|
29277
|
-
|
|
29278
|
-
|
|
29279
|
-
|
|
29280
|
-
|
|
29281
|
-
|
|
29882
|
+
}
|
|
29883
|
+
break;
|
|
29884
|
+
case 3:
|
|
29885
|
+
if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
|
|
29886
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29887
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29888
|
+
} else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
29889
|
+
return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
29282
29890
|
}
|
|
29283
|
-
|
|
29284
|
-
|
|
29285
|
-
|
|
29286
|
-
|
|
29287
|
-
|
|
29288
|
-
|
|
29289
|
-
|
|
29290
|
-
|
|
29891
|
+
}
|
|
29892
|
+
break;
|
|
29893
|
+
case -4:
|
|
29894
|
+
if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
29895
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29896
|
+
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29897
|
+
} else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
|
|
29898
|
+
return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
29291
29899
|
}
|
|
29292
|
-
|
|
29293
|
-
|
|
29294
|
-
|
|
29295
|
-
|
|
29296
|
-
|
|
29297
|
-
|
|
29298
|
-
|
|
29299
|
-
|
|
29900
|
+
}
|
|
29901
|
+
break;
|
|
29902
|
+
case 4:
|
|
29903
|
+
if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
|
|
29904
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29905
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29906
|
+
} else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
|
|
29907
|
+
return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
29300
29908
|
}
|
|
29301
|
-
|
|
29302
|
-
|
|
29303
|
-
}
|
|
29304
|
-
|
|
29305
|
-
if ((sizeof(int) <= sizeof(long))) {
|
|
29306
|
-
__PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
|
|
29307
|
-
#ifdef HAVE_LONG_LONG
|
|
29308
|
-
} else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
|
|
29309
|
-
__PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
29310
|
-
#endif
|
|
29311
|
-
}
|
|
29312
|
-
}
|
|
29313
|
-
{
|
|
29314
|
-
int val;
|
|
29315
|
-
PyObject *v = __Pyx_PyNumber_IntOrLong(x);
|
|
29316
|
-
#if PY_MAJOR_VERSION < 3
|
|
29317
|
-
if (likely(v) && !PyLong_Check(v)) {
|
|
29318
|
-
PyObject *tmp = v;
|
|
29319
|
-
v = PyNumber_Long(tmp);
|
|
29320
|
-
Py_DECREF(tmp);
|
|
29321
|
-
}
|
|
29322
|
-
#endif
|
|
29323
|
-
if (likely(v)) {
|
|
29324
|
-
int ret = -1;
|
|
29325
|
-
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
29326
|
-
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
29327
|
-
unsigned char *bytes = (unsigned char *)&val;
|
|
29328
|
-
ret = _PyLong_AsByteArray((PyLongObject *)v,
|
|
29329
|
-
bytes, sizeof(val),
|
|
29330
|
-
is_little, !is_unsigned);
|
|
29331
|
-
#else
|
|
29332
|
-
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
29333
|
-
int bits, remaining_bits, is_negative = 0;
|
|
29334
|
-
long idigit;
|
|
29335
|
-
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
29336
|
-
if (unlikely(!PyLong_CheckExact(v))) {
|
|
29337
|
-
PyObject *tmp = v;
|
|
29338
|
-
v = PyNumber_Long(v);
|
|
29339
|
-
assert(PyLong_CheckExact(v));
|
|
29340
|
-
Py_DECREF(tmp);
|
|
29341
|
-
if (unlikely(!v)) return (int) -1;
|
|
29342
|
-
}
|
|
29343
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29344
|
-
if (Py_SIZE(x) == 0)
|
|
29345
|
-
return (int) 0;
|
|
29346
|
-
is_negative = Py_SIZE(x) < 0;
|
|
29347
|
-
#else
|
|
29348
|
-
{
|
|
29349
|
-
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
29350
|
-
if (unlikely(result < 0))
|
|
29351
|
-
return (int) -1;
|
|
29352
|
-
is_negative = result == 1;
|
|
29353
|
-
}
|
|
29909
|
+
}
|
|
29910
|
+
break;
|
|
29911
|
+
}
|
|
29912
|
+
}
|
|
29354
29913
|
#endif
|
|
29355
|
-
|
|
29356
|
-
|
|
29357
|
-
|
|
29358
|
-
|
|
29359
|
-
|
|
29360
|
-
return (int) -1;
|
|
29361
|
-
} else {
|
|
29362
|
-
stepval = __Pyx_NewRef(v);
|
|
29363
|
-
}
|
|
29364
|
-
val = (int) 0;
|
|
29365
|
-
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29366
|
-
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29367
|
-
for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
|
|
29368
|
-
PyObject *tmp, *digit;
|
|
29369
|
-
digit = PyNumber_And(stepval, mask);
|
|
29370
|
-
if (unlikely(!digit)) goto done;
|
|
29371
|
-
idigit = PyLong_AsLong(digit);
|
|
29372
|
-
Py_DECREF(digit);
|
|
29373
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29374
|
-
tmp = PyNumber_Rshift(stepval, shift);
|
|
29375
|
-
if (unlikely(!tmp)) goto done;
|
|
29376
|
-
Py_DECREF(stepval); stepval = tmp;
|
|
29377
|
-
val |= ((int) idigit) << bits;
|
|
29378
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29379
|
-
if (Py_SIZE(stepval) == 0)
|
|
29380
|
-
goto unpacking_done;
|
|
29381
|
-
#endif
|
|
29382
|
-
}
|
|
29383
|
-
idigit = PyLong_AsLong(stepval);
|
|
29384
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29385
|
-
remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29386
|
-
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29387
|
-
goto raise_overflow;
|
|
29388
|
-
val |= ((int) idigit) << bits;
|
|
29389
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29390
|
-
unpacking_done:
|
|
29391
|
-
#endif
|
|
29392
|
-
if (!is_unsigned) {
|
|
29393
|
-
if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
|
|
29394
|
-
goto raise_overflow;
|
|
29395
|
-
if (is_negative)
|
|
29396
|
-
val = ~val;
|
|
29397
|
-
}
|
|
29398
|
-
ret = 0;
|
|
29399
|
-
done:
|
|
29400
|
-
Py_XDECREF(shift);
|
|
29401
|
-
Py_XDECREF(mask);
|
|
29402
|
-
Py_XDECREF(stepval);
|
|
29914
|
+
if ((sizeof(int) <= sizeof(long))) {
|
|
29915
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
|
|
29916
|
+
#ifdef HAVE_LONG_LONG
|
|
29917
|
+
} else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
|
|
29918
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
29403
29919
|
#endif
|
|
29920
|
+
}
|
|
29921
|
+
}
|
|
29922
|
+
{
|
|
29923
|
+
int val;
|
|
29924
|
+
int ret = -1;
|
|
29925
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
29926
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
29927
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
29928
|
+
if (unlikely(bytes_copied == -1)) {
|
|
29929
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
29930
|
+
goto raise_overflow;
|
|
29931
|
+
} else {
|
|
29932
|
+
ret = 0;
|
|
29933
|
+
}
|
|
29934
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
29935
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
29936
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
29937
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
29938
|
+
bytes, sizeof(val),
|
|
29939
|
+
is_little, !is_unsigned);
|
|
29940
|
+
#else
|
|
29941
|
+
PyObject *v;
|
|
29942
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
29943
|
+
int bits, remaining_bits, is_negative = 0;
|
|
29944
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
29945
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
29946
|
+
v = __Pyx_NewRef(x);
|
|
29947
|
+
} else {
|
|
29948
|
+
v = PyNumber_Long(x);
|
|
29949
|
+
if (unlikely(!v)) return (int) -1;
|
|
29950
|
+
assert(PyLong_CheckExact(v));
|
|
29951
|
+
}
|
|
29952
|
+
{
|
|
29953
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
29954
|
+
if (unlikely(result < 0)) {
|
|
29404
29955
|
Py_DECREF(v);
|
|
29405
|
-
|
|
29406
|
-
return val;
|
|
29956
|
+
return (int) -1;
|
|
29407
29957
|
}
|
|
29408
|
-
|
|
29958
|
+
is_negative = result == 1;
|
|
29409
29959
|
}
|
|
29410
|
-
|
|
29411
|
-
|
|
29412
|
-
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29960
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
29961
|
+
Py_DECREF(v);
|
|
29962
|
+
goto raise_neg_overflow;
|
|
29963
|
+
} else if (is_negative) {
|
|
29964
|
+
stepval = PyNumber_Invert(v);
|
|
29965
|
+
Py_DECREF(v);
|
|
29966
|
+
if (unlikely(!stepval))
|
|
29967
|
+
return (int) -1;
|
|
29968
|
+
} else {
|
|
29969
|
+
stepval = v;
|
|
29970
|
+
}
|
|
29971
|
+
v = NULL;
|
|
29972
|
+
val = (int) 0;
|
|
29973
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29974
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29975
|
+
for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
|
|
29976
|
+
PyObject *tmp, *digit;
|
|
29977
|
+
long idigit;
|
|
29978
|
+
digit = PyNumber_And(stepval, mask);
|
|
29979
|
+
if (unlikely(!digit)) goto done;
|
|
29980
|
+
idigit = PyLong_AsLong(digit);
|
|
29981
|
+
Py_DECREF(digit);
|
|
29982
|
+
if (unlikely(idigit < 0)) goto done;
|
|
29983
|
+
val |= ((int) idigit) << bits;
|
|
29984
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
29985
|
+
if (unlikely(!tmp)) goto done;
|
|
29986
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
29987
|
+
}
|
|
29988
|
+
Py_DECREF(shift); shift = NULL;
|
|
29989
|
+
Py_DECREF(mask); mask = NULL;
|
|
29990
|
+
{
|
|
29991
|
+
long idigit = PyLong_AsLong(stepval);
|
|
29992
|
+
if (unlikely(idigit < 0)) goto done;
|
|
29993
|
+
remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29994
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29995
|
+
goto raise_overflow;
|
|
29996
|
+
val |= ((int) idigit) << bits;
|
|
29997
|
+
}
|
|
29998
|
+
if (!is_unsigned) {
|
|
29999
|
+
if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
|
|
30000
|
+
goto raise_overflow;
|
|
30001
|
+
if (is_negative)
|
|
30002
|
+
val = ~val;
|
|
30003
|
+
}
|
|
30004
|
+
ret = 0;
|
|
30005
|
+
done:
|
|
30006
|
+
Py_XDECREF(shift);
|
|
30007
|
+
Py_XDECREF(mask);
|
|
30008
|
+
Py_XDECREF(stepval);
|
|
30009
|
+
#endif
|
|
30010
|
+
if (unlikely(ret))
|
|
30011
|
+
return (int) -1;
|
|
29416
30012
|
return val;
|
|
29417
30013
|
}
|
|
29418
30014
|
raise_overflow:
|
|
@@ -29456,12 +30052,19 @@ raise_neg_overflow:
|
|
|
29456
30052
|
}
|
|
29457
30053
|
}
|
|
29458
30054
|
{
|
|
29459
|
-
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29460
30055
|
unsigned char *bytes = (unsigned char *)&value;
|
|
29461
|
-
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX
|
|
30056
|
+
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
|
|
30057
|
+
if (is_unsigned) {
|
|
30058
|
+
return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
|
|
30059
|
+
} else {
|
|
30060
|
+
return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
|
|
30061
|
+
}
|
|
30062
|
+
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
|
|
30063
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29462
30064
|
return _PyLong_FromByteArray(bytes, sizeof(int),
|
|
29463
30065
|
little, !is_unsigned);
|
|
29464
30066
|
#else
|
|
30067
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29465
30068
|
PyObject *from_bytes, *result = NULL;
|
|
29466
30069
|
PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
|
|
29467
30070
|
from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
|
|
@@ -29511,245 +30114,239 @@ raise_neg_overflow:
|
|
|
29511
30114
|
}
|
|
29512
30115
|
return (long) val;
|
|
29513
30116
|
}
|
|
29514
|
-
}
|
|
30117
|
+
}
|
|
29515
30118
|
#endif
|
|
29516
|
-
if (
|
|
29517
|
-
|
|
30119
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
30120
|
+
long val;
|
|
30121
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
30122
|
+
if (!tmp) return (long) -1;
|
|
30123
|
+
val = __Pyx_PyInt_As_long(tmp);
|
|
30124
|
+
Py_DECREF(tmp);
|
|
30125
|
+
return val;
|
|
30126
|
+
}
|
|
30127
|
+
if (is_unsigned) {
|
|
29518
30128
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29519
|
-
|
|
29520
|
-
|
|
29521
|
-
|
|
29522
|
-
|
|
29523
|
-
|
|
29524
|
-
|
|
29525
|
-
|
|
29526
|
-
|
|
29527
|
-
|
|
29528
|
-
|
|
29529
|
-
|
|
29530
|
-
|
|
29531
|
-
|
|
29532
|
-
|
|
29533
|
-
}
|
|
30129
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
30130
|
+
goto raise_neg_overflow;
|
|
30131
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
30132
|
+
__PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
30133
|
+
} else {
|
|
30134
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
30135
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
30136
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
30137
|
+
case 2:
|
|
30138
|
+
if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
|
|
30139
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30140
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30141
|
+
} else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
|
|
30142
|
+
return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
29534
30143
|
}
|
|
29535
|
-
|
|
29536
|
-
|
|
29537
|
-
|
|
29538
|
-
|
|
29539
|
-
|
|
29540
|
-
|
|
29541
|
-
|
|
29542
|
-
|
|
30144
|
+
}
|
|
30145
|
+
break;
|
|
30146
|
+
case 3:
|
|
30147
|
+
if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
|
|
30148
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30149
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30150
|
+
} else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
|
|
30151
|
+
return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
29543
30152
|
}
|
|
29544
|
-
|
|
29545
|
-
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
|
|
29550
|
-
|
|
29551
|
-
|
|
30153
|
+
}
|
|
30154
|
+
break;
|
|
30155
|
+
case 4:
|
|
30156
|
+
if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
|
|
30157
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30158
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30159
|
+
} else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
|
|
30160
|
+
return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
29552
30161
|
}
|
|
29553
|
-
|
|
29554
|
-
|
|
30162
|
+
}
|
|
30163
|
+
break;
|
|
29555
30164
|
}
|
|
30165
|
+
}
|
|
29556
30166
|
#endif
|
|
29557
30167
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
29558
|
-
|
|
29559
|
-
|
|
29560
|
-
|
|
30168
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
30169
|
+
goto raise_neg_overflow;
|
|
30170
|
+
}
|
|
29561
30171
|
#else
|
|
29562
|
-
|
|
29563
|
-
|
|
29564
|
-
|
|
29565
|
-
|
|
29566
|
-
|
|
29567
|
-
|
|
29568
|
-
|
|
30172
|
+
{
|
|
30173
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
30174
|
+
if (unlikely(result < 0))
|
|
30175
|
+
return (long) -1;
|
|
30176
|
+
if (unlikely(result == 1))
|
|
30177
|
+
goto raise_neg_overflow;
|
|
30178
|
+
}
|
|
29569
30179
|
#endif
|
|
29570
|
-
|
|
29571
|
-
|
|
30180
|
+
if ((sizeof(long) <= sizeof(unsigned long))) {
|
|
30181
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
|
|
29572
30182
|
#ifdef HAVE_LONG_LONG
|
|
29573
|
-
|
|
29574
|
-
|
|
30183
|
+
} else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
30184
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
29575
30185
|
#endif
|
|
29576
|
-
|
|
29577
|
-
|
|
30186
|
+
}
|
|
30187
|
+
} else {
|
|
29578
30188
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29579
|
-
|
|
29580
|
-
|
|
29581
|
-
|
|
29582
|
-
|
|
29583
|
-
|
|
29584
|
-
|
|
29585
|
-
|
|
29586
|
-
|
|
29587
|
-
|
|
29588
|
-
|
|
29589
|
-
|
|
29590
|
-
|
|
29591
|
-
}
|
|
30189
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
30190
|
+
__PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
30191
|
+
} else {
|
|
30192
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
30193
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
30194
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
30195
|
+
case -2:
|
|
30196
|
+
if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
|
|
30197
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30198
|
+
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30199
|
+
} else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
30200
|
+
return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29592
30201
|
}
|
|
29593
|
-
|
|
29594
|
-
|
|
29595
|
-
|
|
29596
|
-
|
|
29597
|
-
|
|
29598
|
-
|
|
29599
|
-
|
|
29600
|
-
|
|
30202
|
+
}
|
|
30203
|
+
break;
|
|
30204
|
+
case 2:
|
|
30205
|
+
if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
|
|
30206
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30207
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30208
|
+
} else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
30209
|
+
return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29601
30210
|
}
|
|
29602
|
-
|
|
29603
|
-
|
|
29604
|
-
|
|
29605
|
-
|
|
29606
|
-
|
|
29607
|
-
|
|
29608
|
-
|
|
29609
|
-
|
|
30211
|
+
}
|
|
30212
|
+
break;
|
|
30213
|
+
case -3:
|
|
30214
|
+
if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
30215
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30216
|
+
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30217
|
+
} else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
30218
|
+
return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29610
30219
|
}
|
|
29611
|
-
|
|
29612
|
-
|
|
29613
|
-
|
|
29614
|
-
|
|
29615
|
-
|
|
29616
|
-
|
|
29617
|
-
|
|
29618
|
-
|
|
30220
|
+
}
|
|
30221
|
+
break;
|
|
30222
|
+
case 3:
|
|
30223
|
+
if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
|
|
30224
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30225
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30226
|
+
} else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
30227
|
+
return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29619
30228
|
}
|
|
29620
|
-
|
|
29621
|
-
|
|
29622
|
-
|
|
29623
|
-
|
|
29624
|
-
|
|
29625
|
-
|
|
29626
|
-
|
|
29627
|
-
|
|
30229
|
+
}
|
|
30230
|
+
break;
|
|
30231
|
+
case -4:
|
|
30232
|
+
if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
30233
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30234
|
+
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30235
|
+
} else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
|
|
30236
|
+
return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29628
30237
|
}
|
|
29629
|
-
|
|
29630
|
-
|
|
29631
|
-
|
|
29632
|
-
|
|
29633
|
-
|
|
29634
|
-
|
|
29635
|
-
|
|
29636
|
-
|
|
30238
|
+
}
|
|
30239
|
+
break;
|
|
30240
|
+
case 4:
|
|
30241
|
+
if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
|
|
30242
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30243
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30244
|
+
} else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
|
|
30245
|
+
return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29637
30246
|
}
|
|
29638
|
-
|
|
29639
|
-
|
|
30247
|
+
}
|
|
30248
|
+
break;
|
|
29640
30249
|
}
|
|
30250
|
+
}
|
|
29641
30251
|
#endif
|
|
29642
|
-
|
|
29643
|
-
|
|
30252
|
+
if ((sizeof(long) <= sizeof(long))) {
|
|
30253
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
|
|
29644
30254
|
#ifdef HAVE_LONG_LONG
|
|
29645
|
-
|
|
29646
|
-
|
|
30255
|
+
} else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
|
|
30256
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
29647
30257
|
#endif
|
|
29648
|
-
|
|
30258
|
+
}
|
|
30259
|
+
}
|
|
30260
|
+
{
|
|
30261
|
+
long val;
|
|
30262
|
+
int ret = -1;
|
|
30263
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
30264
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
30265
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
30266
|
+
if (unlikely(bytes_copied == -1)) {
|
|
30267
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
30268
|
+
goto raise_overflow;
|
|
30269
|
+
} else {
|
|
30270
|
+
ret = 0;
|
|
30271
|
+
}
|
|
30272
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
30273
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
30274
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
30275
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
30276
|
+
bytes, sizeof(val),
|
|
30277
|
+
is_little, !is_unsigned);
|
|
30278
|
+
#else
|
|
30279
|
+
PyObject *v;
|
|
30280
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
30281
|
+
int bits, remaining_bits, is_negative = 0;
|
|
30282
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
30283
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
30284
|
+
v = __Pyx_NewRef(x);
|
|
30285
|
+
} else {
|
|
30286
|
+
v = PyNumber_Long(x);
|
|
30287
|
+
if (unlikely(!v)) return (long) -1;
|
|
30288
|
+
assert(PyLong_CheckExact(v));
|
|
29649
30289
|
}
|
|
29650
30290
|
{
|
|
29651
|
-
|
|
29652
|
-
|
|
29653
|
-
#if PY_MAJOR_VERSION < 3
|
|
29654
|
-
if (likely(v) && !PyLong_Check(v)) {
|
|
29655
|
-
PyObject *tmp = v;
|
|
29656
|
-
v = PyNumber_Long(tmp);
|
|
29657
|
-
Py_DECREF(tmp);
|
|
29658
|
-
}
|
|
29659
|
-
#endif
|
|
29660
|
-
if (likely(v)) {
|
|
29661
|
-
int ret = -1;
|
|
29662
|
-
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
29663
|
-
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
29664
|
-
unsigned char *bytes = (unsigned char *)&val;
|
|
29665
|
-
ret = _PyLong_AsByteArray((PyLongObject *)v,
|
|
29666
|
-
bytes, sizeof(val),
|
|
29667
|
-
is_little, !is_unsigned);
|
|
29668
|
-
#else
|
|
29669
|
-
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
29670
|
-
int bits, remaining_bits, is_negative = 0;
|
|
29671
|
-
long idigit;
|
|
29672
|
-
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
29673
|
-
if (unlikely(!PyLong_CheckExact(v))) {
|
|
29674
|
-
PyObject *tmp = v;
|
|
29675
|
-
v = PyNumber_Long(v);
|
|
29676
|
-
assert(PyLong_CheckExact(v));
|
|
29677
|
-
Py_DECREF(tmp);
|
|
29678
|
-
if (unlikely(!v)) return (long) -1;
|
|
29679
|
-
}
|
|
29680
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29681
|
-
if (Py_SIZE(x) == 0)
|
|
29682
|
-
return (long) 0;
|
|
29683
|
-
is_negative = Py_SIZE(x) < 0;
|
|
29684
|
-
#else
|
|
29685
|
-
{
|
|
29686
|
-
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
29687
|
-
if (unlikely(result < 0))
|
|
29688
|
-
return (long) -1;
|
|
29689
|
-
is_negative = result == 1;
|
|
29690
|
-
}
|
|
29691
|
-
#endif
|
|
29692
|
-
if (is_unsigned && unlikely(is_negative)) {
|
|
29693
|
-
goto raise_neg_overflow;
|
|
29694
|
-
} else if (is_negative) {
|
|
29695
|
-
stepval = PyNumber_Invert(v);
|
|
29696
|
-
if (unlikely(!stepval))
|
|
29697
|
-
return (long) -1;
|
|
29698
|
-
} else {
|
|
29699
|
-
stepval = __Pyx_NewRef(v);
|
|
29700
|
-
}
|
|
29701
|
-
val = (long) 0;
|
|
29702
|
-
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29703
|
-
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29704
|
-
for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
|
|
29705
|
-
PyObject *tmp, *digit;
|
|
29706
|
-
digit = PyNumber_And(stepval, mask);
|
|
29707
|
-
if (unlikely(!digit)) goto done;
|
|
29708
|
-
idigit = PyLong_AsLong(digit);
|
|
29709
|
-
Py_DECREF(digit);
|
|
29710
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29711
|
-
tmp = PyNumber_Rshift(stepval, shift);
|
|
29712
|
-
if (unlikely(!tmp)) goto done;
|
|
29713
|
-
Py_DECREF(stepval); stepval = tmp;
|
|
29714
|
-
val |= ((long) idigit) << bits;
|
|
29715
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29716
|
-
if (Py_SIZE(stepval) == 0)
|
|
29717
|
-
goto unpacking_done;
|
|
29718
|
-
#endif
|
|
29719
|
-
}
|
|
29720
|
-
idigit = PyLong_AsLong(stepval);
|
|
29721
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29722
|
-
remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29723
|
-
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29724
|
-
goto raise_overflow;
|
|
29725
|
-
val |= ((long) idigit) << bits;
|
|
29726
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29727
|
-
unpacking_done:
|
|
29728
|
-
#endif
|
|
29729
|
-
if (!is_unsigned) {
|
|
29730
|
-
if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
|
|
29731
|
-
goto raise_overflow;
|
|
29732
|
-
if (is_negative)
|
|
29733
|
-
val = ~val;
|
|
29734
|
-
}
|
|
29735
|
-
ret = 0;
|
|
29736
|
-
done:
|
|
29737
|
-
Py_XDECREF(shift);
|
|
29738
|
-
Py_XDECREF(mask);
|
|
29739
|
-
Py_XDECREF(stepval);
|
|
29740
|
-
#endif
|
|
30291
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
30292
|
+
if (unlikely(result < 0)) {
|
|
29741
30293
|
Py_DECREF(v);
|
|
29742
|
-
|
|
29743
|
-
return val;
|
|
30294
|
+
return (long) -1;
|
|
29744
30295
|
}
|
|
29745
|
-
|
|
30296
|
+
is_negative = result == 1;
|
|
29746
30297
|
}
|
|
29747
|
-
|
|
29748
|
-
|
|
29749
|
-
|
|
29750
|
-
|
|
29751
|
-
|
|
29752
|
-
|
|
30298
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
30299
|
+
Py_DECREF(v);
|
|
30300
|
+
goto raise_neg_overflow;
|
|
30301
|
+
} else if (is_negative) {
|
|
30302
|
+
stepval = PyNumber_Invert(v);
|
|
30303
|
+
Py_DECREF(v);
|
|
30304
|
+
if (unlikely(!stepval))
|
|
30305
|
+
return (long) -1;
|
|
30306
|
+
} else {
|
|
30307
|
+
stepval = v;
|
|
30308
|
+
}
|
|
30309
|
+
v = NULL;
|
|
30310
|
+
val = (long) 0;
|
|
30311
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
30312
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
30313
|
+
for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
|
|
30314
|
+
PyObject *tmp, *digit;
|
|
30315
|
+
long idigit;
|
|
30316
|
+
digit = PyNumber_And(stepval, mask);
|
|
30317
|
+
if (unlikely(!digit)) goto done;
|
|
30318
|
+
idigit = PyLong_AsLong(digit);
|
|
30319
|
+
Py_DECREF(digit);
|
|
30320
|
+
if (unlikely(idigit < 0)) goto done;
|
|
30321
|
+
val |= ((long) idigit) << bits;
|
|
30322
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
30323
|
+
if (unlikely(!tmp)) goto done;
|
|
30324
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
30325
|
+
}
|
|
30326
|
+
Py_DECREF(shift); shift = NULL;
|
|
30327
|
+
Py_DECREF(mask); mask = NULL;
|
|
30328
|
+
{
|
|
30329
|
+
long idigit = PyLong_AsLong(stepval);
|
|
30330
|
+
if (unlikely(idigit < 0)) goto done;
|
|
30331
|
+
remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
30332
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
30333
|
+
goto raise_overflow;
|
|
30334
|
+
val |= ((long) idigit) << bits;
|
|
30335
|
+
}
|
|
30336
|
+
if (!is_unsigned) {
|
|
30337
|
+
if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
|
|
30338
|
+
goto raise_overflow;
|
|
30339
|
+
if (is_negative)
|
|
30340
|
+
val = ~val;
|
|
30341
|
+
}
|
|
30342
|
+
ret = 0;
|
|
30343
|
+
done:
|
|
30344
|
+
Py_XDECREF(shift);
|
|
30345
|
+
Py_XDECREF(mask);
|
|
30346
|
+
Py_XDECREF(stepval);
|
|
30347
|
+
#endif
|
|
30348
|
+
if (unlikely(ret))
|
|
30349
|
+
return (long) -1;
|
|
29753
30350
|
return val;
|
|
29754
30351
|
}
|
|
29755
30352
|
raise_overflow:
|
|
@@ -29793,12 +30390,19 @@ raise_neg_overflow:
|
|
|
29793
30390
|
}
|
|
29794
30391
|
}
|
|
29795
30392
|
{
|
|
29796
|
-
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29797
30393
|
unsigned char *bytes = (unsigned char *)&value;
|
|
29798
|
-
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX
|
|
30394
|
+
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
|
|
30395
|
+
if (is_unsigned) {
|
|
30396
|
+
return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
|
|
30397
|
+
} else {
|
|
30398
|
+
return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
|
|
30399
|
+
}
|
|
30400
|
+
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
|
|
30401
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29799
30402
|
return _PyLong_FromByteArray(bytes, sizeof(long),
|
|
29800
30403
|
little, !is_unsigned);
|
|
29801
30404
|
#else
|
|
30405
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29802
30406
|
PyObject *from_bytes, *result = NULL;
|
|
29803
30407
|
PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
|
|
29804
30408
|
from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
|
|
@@ -29848,245 +30452,239 @@ raise_neg_overflow:
|
|
|
29848
30452
|
}
|
|
29849
30453
|
return (char) val;
|
|
29850
30454
|
}
|
|
29851
|
-
}
|
|
30455
|
+
}
|
|
29852
30456
|
#endif
|
|
29853
|
-
if (
|
|
29854
|
-
|
|
30457
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
30458
|
+
char val;
|
|
30459
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
30460
|
+
if (!tmp) return (char) -1;
|
|
30461
|
+
val = __Pyx_PyInt_As_char(tmp);
|
|
30462
|
+
Py_DECREF(tmp);
|
|
30463
|
+
return val;
|
|
30464
|
+
}
|
|
30465
|
+
if (is_unsigned) {
|
|
29855
30466
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29856
|
-
|
|
29857
|
-
|
|
29858
|
-
|
|
29859
|
-
|
|
29860
|
-
|
|
29861
|
-
|
|
29862
|
-
|
|
29863
|
-
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
29867
|
-
|
|
29868
|
-
|
|
29869
|
-
|
|
29870
|
-
}
|
|
30467
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
30468
|
+
goto raise_neg_overflow;
|
|
30469
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
30470
|
+
__PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
30471
|
+
} else {
|
|
30472
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
30473
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
30474
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
30475
|
+
case 2:
|
|
30476
|
+
if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
|
|
30477
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30478
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30479
|
+
} else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
|
|
30480
|
+
return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
29871
30481
|
}
|
|
29872
|
-
|
|
29873
|
-
|
|
29874
|
-
|
|
29875
|
-
|
|
29876
|
-
|
|
29877
|
-
|
|
29878
|
-
|
|
29879
|
-
|
|
30482
|
+
}
|
|
30483
|
+
break;
|
|
30484
|
+
case 3:
|
|
30485
|
+
if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
|
|
30486
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30487
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30488
|
+
} else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
|
|
30489
|
+
return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
29880
30490
|
}
|
|
29881
|
-
|
|
29882
|
-
|
|
29883
|
-
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
|
|
29887
|
-
|
|
29888
|
-
|
|
30491
|
+
}
|
|
30492
|
+
break;
|
|
30493
|
+
case 4:
|
|
30494
|
+
if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
|
|
30495
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30496
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30497
|
+
} else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
|
|
30498
|
+
return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
29889
30499
|
}
|
|
29890
|
-
|
|
29891
|
-
|
|
30500
|
+
}
|
|
30501
|
+
break;
|
|
29892
30502
|
}
|
|
30503
|
+
}
|
|
29893
30504
|
#endif
|
|
29894
30505
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
29895
|
-
|
|
29896
|
-
|
|
29897
|
-
|
|
30506
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
30507
|
+
goto raise_neg_overflow;
|
|
30508
|
+
}
|
|
29898
30509
|
#else
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29903
|
-
|
|
29904
|
-
|
|
29905
|
-
|
|
30510
|
+
{
|
|
30511
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
30512
|
+
if (unlikely(result < 0))
|
|
30513
|
+
return (char) -1;
|
|
30514
|
+
if (unlikely(result == 1))
|
|
30515
|
+
goto raise_neg_overflow;
|
|
30516
|
+
}
|
|
29906
30517
|
#endif
|
|
29907
|
-
|
|
29908
|
-
|
|
30518
|
+
if ((sizeof(char) <= sizeof(unsigned long))) {
|
|
30519
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
|
|
29909
30520
|
#ifdef HAVE_LONG_LONG
|
|
29910
|
-
|
|
29911
|
-
|
|
30521
|
+
} else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
30522
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
29912
30523
|
#endif
|
|
29913
|
-
|
|
29914
|
-
|
|
30524
|
+
}
|
|
30525
|
+
} else {
|
|
29915
30526
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29916
|
-
|
|
29917
|
-
|
|
29918
|
-
|
|
29919
|
-
|
|
29920
|
-
|
|
29921
|
-
|
|
29922
|
-
|
|
29923
|
-
|
|
29924
|
-
|
|
29925
|
-
|
|
29926
|
-
|
|
29927
|
-
|
|
29928
|
-
}
|
|
30527
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
30528
|
+
__PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
30529
|
+
} else {
|
|
30530
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
30531
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
30532
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
30533
|
+
case -2:
|
|
30534
|
+
if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
|
|
30535
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30536
|
+
__PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30537
|
+
} else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
30538
|
+
return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29929
30539
|
}
|
|
29930
|
-
|
|
29931
|
-
|
|
29932
|
-
|
|
29933
|
-
|
|
29934
|
-
|
|
29935
|
-
|
|
29936
|
-
|
|
29937
|
-
|
|
30540
|
+
}
|
|
30541
|
+
break;
|
|
30542
|
+
case 2:
|
|
30543
|
+
if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
|
|
30544
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30545
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30546
|
+
} else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
30547
|
+
return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29938
30548
|
}
|
|
29939
|
-
|
|
29940
|
-
|
|
29941
|
-
|
|
29942
|
-
|
|
29943
|
-
|
|
29944
|
-
|
|
29945
|
-
|
|
29946
|
-
|
|
30549
|
+
}
|
|
30550
|
+
break;
|
|
30551
|
+
case -3:
|
|
30552
|
+
if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
30553
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30554
|
+
__PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30555
|
+
} else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
30556
|
+
return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29947
30557
|
}
|
|
29948
|
-
|
|
29949
|
-
|
|
29950
|
-
|
|
29951
|
-
|
|
29952
|
-
|
|
29953
|
-
|
|
29954
|
-
|
|
29955
|
-
|
|
30558
|
+
}
|
|
30559
|
+
break;
|
|
30560
|
+
case 3:
|
|
30561
|
+
if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
|
|
30562
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30563
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30564
|
+
} else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
30565
|
+
return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29956
30566
|
}
|
|
29957
|
-
|
|
29958
|
-
|
|
29959
|
-
|
|
29960
|
-
|
|
29961
|
-
|
|
29962
|
-
|
|
29963
|
-
|
|
29964
|
-
|
|
30567
|
+
}
|
|
30568
|
+
break;
|
|
30569
|
+
case -4:
|
|
30570
|
+
if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
30571
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30572
|
+
__PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30573
|
+
} else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
|
|
30574
|
+
return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29965
30575
|
}
|
|
29966
|
-
|
|
29967
|
-
|
|
29968
|
-
|
|
29969
|
-
|
|
29970
|
-
|
|
29971
|
-
|
|
29972
|
-
|
|
29973
|
-
|
|
30576
|
+
}
|
|
30577
|
+
break;
|
|
30578
|
+
case 4:
|
|
30579
|
+
if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
|
|
30580
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30581
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30582
|
+
} else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
|
|
30583
|
+
return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29974
30584
|
}
|
|
29975
|
-
|
|
29976
|
-
|
|
30585
|
+
}
|
|
30586
|
+
break;
|
|
29977
30587
|
}
|
|
30588
|
+
}
|
|
29978
30589
|
#endif
|
|
29979
|
-
|
|
29980
|
-
|
|
30590
|
+
if ((sizeof(char) <= sizeof(long))) {
|
|
30591
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
|
|
29981
30592
|
#ifdef HAVE_LONG_LONG
|
|
29982
|
-
|
|
29983
|
-
|
|
30593
|
+
} else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
|
|
30594
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
29984
30595
|
#endif
|
|
29985
|
-
|
|
30596
|
+
}
|
|
30597
|
+
}
|
|
30598
|
+
{
|
|
30599
|
+
char val;
|
|
30600
|
+
int ret = -1;
|
|
30601
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
30602
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
30603
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
30604
|
+
if (unlikely(bytes_copied == -1)) {
|
|
30605
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
30606
|
+
goto raise_overflow;
|
|
30607
|
+
} else {
|
|
30608
|
+
ret = 0;
|
|
30609
|
+
}
|
|
30610
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
30611
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
30612
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
30613
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
30614
|
+
bytes, sizeof(val),
|
|
30615
|
+
is_little, !is_unsigned);
|
|
30616
|
+
#else
|
|
30617
|
+
PyObject *v;
|
|
30618
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
30619
|
+
int bits, remaining_bits, is_negative = 0;
|
|
30620
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
30621
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
30622
|
+
v = __Pyx_NewRef(x);
|
|
30623
|
+
} else {
|
|
30624
|
+
v = PyNumber_Long(x);
|
|
30625
|
+
if (unlikely(!v)) return (char) -1;
|
|
30626
|
+
assert(PyLong_CheckExact(v));
|
|
29986
30627
|
}
|
|
29987
30628
|
{
|
|
29988
|
-
|
|
29989
|
-
|
|
29990
|
-
#if PY_MAJOR_VERSION < 3
|
|
29991
|
-
if (likely(v) && !PyLong_Check(v)) {
|
|
29992
|
-
PyObject *tmp = v;
|
|
29993
|
-
v = PyNumber_Long(tmp);
|
|
29994
|
-
Py_DECREF(tmp);
|
|
29995
|
-
}
|
|
29996
|
-
#endif
|
|
29997
|
-
if (likely(v)) {
|
|
29998
|
-
int ret = -1;
|
|
29999
|
-
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
30000
|
-
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
30001
|
-
unsigned char *bytes = (unsigned char *)&val;
|
|
30002
|
-
ret = _PyLong_AsByteArray((PyLongObject *)v,
|
|
30003
|
-
bytes, sizeof(val),
|
|
30004
|
-
is_little, !is_unsigned);
|
|
30005
|
-
#else
|
|
30006
|
-
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
30007
|
-
int bits, remaining_bits, is_negative = 0;
|
|
30008
|
-
long idigit;
|
|
30009
|
-
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
30010
|
-
if (unlikely(!PyLong_CheckExact(v))) {
|
|
30011
|
-
PyObject *tmp = v;
|
|
30012
|
-
v = PyNumber_Long(v);
|
|
30013
|
-
assert(PyLong_CheckExact(v));
|
|
30014
|
-
Py_DECREF(tmp);
|
|
30015
|
-
if (unlikely(!v)) return (char) -1;
|
|
30016
|
-
}
|
|
30017
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
30018
|
-
if (Py_SIZE(x) == 0)
|
|
30019
|
-
return (char) 0;
|
|
30020
|
-
is_negative = Py_SIZE(x) < 0;
|
|
30021
|
-
#else
|
|
30022
|
-
{
|
|
30023
|
-
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
30024
|
-
if (unlikely(result < 0))
|
|
30025
|
-
return (char) -1;
|
|
30026
|
-
is_negative = result == 1;
|
|
30027
|
-
}
|
|
30028
|
-
#endif
|
|
30029
|
-
if (is_unsigned && unlikely(is_negative)) {
|
|
30030
|
-
goto raise_neg_overflow;
|
|
30031
|
-
} else if (is_negative) {
|
|
30032
|
-
stepval = PyNumber_Invert(v);
|
|
30033
|
-
if (unlikely(!stepval))
|
|
30034
|
-
return (char) -1;
|
|
30035
|
-
} else {
|
|
30036
|
-
stepval = __Pyx_NewRef(v);
|
|
30037
|
-
}
|
|
30038
|
-
val = (char) 0;
|
|
30039
|
-
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
30040
|
-
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
30041
|
-
for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
|
|
30042
|
-
PyObject *tmp, *digit;
|
|
30043
|
-
digit = PyNumber_And(stepval, mask);
|
|
30044
|
-
if (unlikely(!digit)) goto done;
|
|
30045
|
-
idigit = PyLong_AsLong(digit);
|
|
30046
|
-
Py_DECREF(digit);
|
|
30047
|
-
if (unlikely(idigit < 0)) goto done;
|
|
30048
|
-
tmp = PyNumber_Rshift(stepval, shift);
|
|
30049
|
-
if (unlikely(!tmp)) goto done;
|
|
30050
|
-
Py_DECREF(stepval); stepval = tmp;
|
|
30051
|
-
val |= ((char) idigit) << bits;
|
|
30052
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
30053
|
-
if (Py_SIZE(stepval) == 0)
|
|
30054
|
-
goto unpacking_done;
|
|
30055
|
-
#endif
|
|
30056
|
-
}
|
|
30057
|
-
idigit = PyLong_AsLong(stepval);
|
|
30058
|
-
if (unlikely(idigit < 0)) goto done;
|
|
30059
|
-
remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
30060
|
-
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
30061
|
-
goto raise_overflow;
|
|
30062
|
-
val |= ((char) idigit) << bits;
|
|
30063
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
30064
|
-
unpacking_done:
|
|
30065
|
-
#endif
|
|
30066
|
-
if (!is_unsigned) {
|
|
30067
|
-
if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
|
|
30068
|
-
goto raise_overflow;
|
|
30069
|
-
if (is_negative)
|
|
30070
|
-
val = ~val;
|
|
30071
|
-
}
|
|
30072
|
-
ret = 0;
|
|
30073
|
-
done:
|
|
30074
|
-
Py_XDECREF(shift);
|
|
30075
|
-
Py_XDECREF(mask);
|
|
30076
|
-
Py_XDECREF(stepval);
|
|
30077
|
-
#endif
|
|
30629
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
30630
|
+
if (unlikely(result < 0)) {
|
|
30078
30631
|
Py_DECREF(v);
|
|
30079
|
-
|
|
30080
|
-
return val;
|
|
30632
|
+
return (char) -1;
|
|
30081
30633
|
}
|
|
30082
|
-
|
|
30634
|
+
is_negative = result == 1;
|
|
30083
30635
|
}
|
|
30084
|
-
|
|
30085
|
-
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30636
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
30637
|
+
Py_DECREF(v);
|
|
30638
|
+
goto raise_neg_overflow;
|
|
30639
|
+
} else if (is_negative) {
|
|
30640
|
+
stepval = PyNumber_Invert(v);
|
|
30641
|
+
Py_DECREF(v);
|
|
30642
|
+
if (unlikely(!stepval))
|
|
30643
|
+
return (char) -1;
|
|
30644
|
+
} else {
|
|
30645
|
+
stepval = v;
|
|
30646
|
+
}
|
|
30647
|
+
v = NULL;
|
|
30648
|
+
val = (char) 0;
|
|
30649
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
30650
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
30651
|
+
for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
|
|
30652
|
+
PyObject *tmp, *digit;
|
|
30653
|
+
long idigit;
|
|
30654
|
+
digit = PyNumber_And(stepval, mask);
|
|
30655
|
+
if (unlikely(!digit)) goto done;
|
|
30656
|
+
idigit = PyLong_AsLong(digit);
|
|
30657
|
+
Py_DECREF(digit);
|
|
30658
|
+
if (unlikely(idigit < 0)) goto done;
|
|
30659
|
+
val |= ((char) idigit) << bits;
|
|
30660
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
30661
|
+
if (unlikely(!tmp)) goto done;
|
|
30662
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
30663
|
+
}
|
|
30664
|
+
Py_DECREF(shift); shift = NULL;
|
|
30665
|
+
Py_DECREF(mask); mask = NULL;
|
|
30666
|
+
{
|
|
30667
|
+
long idigit = PyLong_AsLong(stepval);
|
|
30668
|
+
if (unlikely(idigit < 0)) goto done;
|
|
30669
|
+
remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
30670
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
30671
|
+
goto raise_overflow;
|
|
30672
|
+
val |= ((char) idigit) << bits;
|
|
30673
|
+
}
|
|
30674
|
+
if (!is_unsigned) {
|
|
30675
|
+
if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
|
|
30676
|
+
goto raise_overflow;
|
|
30677
|
+
if (is_negative)
|
|
30678
|
+
val = ~val;
|
|
30679
|
+
}
|
|
30680
|
+
ret = 0;
|
|
30681
|
+
done:
|
|
30682
|
+
Py_XDECREF(shift);
|
|
30683
|
+
Py_XDECREF(mask);
|
|
30684
|
+
Py_XDECREF(stepval);
|
|
30685
|
+
#endif
|
|
30686
|
+
if (unlikely(ret))
|
|
30687
|
+
return (char) -1;
|
|
30090
30688
|
return val;
|
|
30091
30689
|
}
|
|
30092
30690
|
raise_overflow:
|