scikit-network 0.33.0__cp39-cp39-win_amd64.whl → 0.33.3__cp39-cp39-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.

Files changed (45) hide show
  1. scikit_network-0.33.3.dist-info/METADATA +122 -0
  2. {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info}/RECORD +44 -44
  3. {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info}/WHEEL +1 -1
  4. sknetwork/classification/diffusion.py +1 -1
  5. sknetwork/classification/knn.py +1 -1
  6. sknetwork/classification/metrics.py +3 -3
  7. sknetwork/classification/pagerank.py +1 -1
  8. sknetwork/classification/propagation.py +1 -1
  9. sknetwork/classification/vote.cp39-win_amd64.pyd +0 -0
  10. sknetwork/classification/vote.cpp +686 -679
  11. sknetwork/clustering/leiden_core.cp39-win_amd64.pyd +0 -0
  12. sknetwork/clustering/leiden_core.cpp +715 -704
  13. sknetwork/clustering/louvain.py +3 -3
  14. sknetwork/clustering/louvain_core.cp39-win_amd64.pyd +0 -0
  15. sknetwork/clustering/louvain_core.cpp +715 -704
  16. sknetwork/clustering/metrics.py +1 -1
  17. sknetwork/clustering/tests/test_louvain.py +6 -0
  18. sknetwork/gnn/base_activation.py +1 -0
  19. sknetwork/gnn/gnn_classifier.py +1 -1
  20. sknetwork/hierarchy/metrics.py +3 -3
  21. sknetwork/hierarchy/paris.cp39-win_amd64.pyd +0 -0
  22. sknetwork/hierarchy/paris.cpp +1777 -1155
  23. sknetwork/linalg/diteration.cp39-win_amd64.pyd +0 -0
  24. sknetwork/linalg/diteration.cpp +686 -679
  25. sknetwork/linalg/push.cp39-win_amd64.pyd +0 -0
  26. sknetwork/linalg/push.cpp +1771 -1155
  27. sknetwork/linalg/sparse_lowrank.py +1 -1
  28. sknetwork/ranking/betweenness.cp39-win_amd64.pyd +0 -0
  29. sknetwork/ranking/betweenness.cpp +565 -559
  30. sknetwork/topology/cliques.cp39-win_amd64.pyd +0 -0
  31. sknetwork/topology/cliques.cpp +1731 -1112
  32. sknetwork/topology/core.cp39-win_amd64.pyd +0 -0
  33. sknetwork/topology/core.cpp +1757 -1141
  34. sknetwork/topology/cycles.py +2 -2
  35. sknetwork/topology/minheap.cp39-win_amd64.pyd +0 -0
  36. sknetwork/topology/minheap.cpp +689 -679
  37. sknetwork/topology/triangles.cp39-win_amd64.pyd +0 -0
  38. sknetwork/topology/triangles.cpp +439 -434
  39. sknetwork/topology/weisfeiler_lehman_core.cp39-win_amd64.pyd +0 -0
  40. sknetwork/topology/weisfeiler_lehman_core.cpp +686 -679
  41. sknetwork/visualization/graphs.py +1 -1
  42. scikit_network-0.33.0.dist-info/METADATA +0 -517
  43. {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info/licenses}/AUTHORS.rst +0 -0
  44. {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info/licenses}/LICENSE +0 -0
  45. {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info}/top_level.txt +0 -0
sknetwork/linalg/push.cpp CHANGED
@@ -1,20 +1,20 @@
1
- /* Generated by Cython 3.0.10 */
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\\cibw-run-2jqincfh\\cp39-win_amd64\\build\\venv\\lib\\site-packages\\numpy\\core\\include\\numpy\\arrayobject.h",
8
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp39-win_amd64\\build\\venv\\lib\\site-packages\\numpy\\core\\include\\numpy\\arrayscalars.h",
9
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp39-win_amd64\\build\\venv\\lib\\site-packages\\numpy\\core\\include\\numpy\\ndarrayobject.h",
10
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp39-win_amd64\\build\\venv\\lib\\site-packages\\numpy\\core\\include\\numpy\\ndarraytypes.h",
11
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp39-win_amd64\\build\\venv\\lib\\site-packages\\numpy\\core\\include\\numpy\\ufuncobject.h"
7
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayobject.h",
8
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayscalars.h",
9
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarrayobject.h",
10
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarraytypes.h",
11
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\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\\cibw-run-2jqincfh\\cp39-win_amd64\\build\\venv\\lib\\site-packages\\numpy\\core\\include"
17
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\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 "3_0_10" __PYX_EXTRA_ABI_MODULE_NAME
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 0x03000AF0
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":730
1696
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":770
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":731
1705
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":771
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":732
1714
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":772
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":733
1723
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":773
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":737
1732
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":777
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":738
1741
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":778
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":739
1750
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":779
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":740
1759
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":780
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":744
1768
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":784
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":745
1777
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":785
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":754
1787
- * # The int types are mapped a bit surprising --
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-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":792
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/cp39-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/cp39-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 npy_ulong __pyx_t_5numpy_uint_t;
1793
+ typedef npy_longlong __pyx_t_5numpy_longlong_t;
1812
1794
 
1813
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":758
1795
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":793
1814
1796
  *
1815
- * ctypedef npy_ulong uint_t
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":760
1804
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":795
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":761
1813
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":796
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":763
1822
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":798
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":764
1831
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":799
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/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":765
1840
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":800
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 npy_cfloat cfloat_t
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,41 +1890,23 @@ 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/cp39-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/cp39-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
1893
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
1913
1894
  *
1914
- */
1915
- typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1916
-
1917
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-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 # <<<<<<<<<<<<<<
1895
+ * # Iterator API added in v1.6
1896
+ * ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil # <<<<<<<<<<<<<<
1897
+ * ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil
1921
1898
  *
1922
- * ctypedef npy_cdouble complex_t
1923
1899
  */
1924
- typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1900
+ typedef int (*__pyx_t_5numpy_NpyIter_IterNextFunc)(NpyIter *);
1925
1901
 
1926
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":771
1927
- * ctypedef npy_clongdouble clongdouble_t
1902
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1097
1903
+ * # Iterator API added in v1.6
1904
+ * ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil
1905
+ * ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil # <<<<<<<<<<<<<<
1928
1906
  *
1929
- * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
1930
- *
1931
- * cdef inline object PyArray_MultiIterNew1(a):
1907
+ * cdef extern from "numpy/arrayobject.h":
1932
1908
  */
1933
- typedef npy_cdouble __pyx_t_5numpy_complex_t;
1909
+ typedef void (*__pyx_t_5numpy_NpyIter_GetMultiIndexFunc)(NpyIter *, npy_intp *);
1934
1910
 
1935
1911
  /* "View.MemoryView":114
1936
1912
  * @cython.collection_type("sequence")
@@ -2303,7 +2279,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
2303
2279
  #if !CYTHON_VECTORCALL
2304
2280
  #if PY_VERSION_HEX >= 0x03080000
2305
2281
  #include "frameobject.h"
2306
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
2282
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
2307
2283
  #ifndef Py_BUILD_CORE
2308
2284
  #define Py_BUILD_CORE 1
2309
2285
  #endif
@@ -2640,11 +2616,7 @@ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* s
2640
2616
  static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
2641
2617
 
2642
2618
  /* HasAttr.proto */
2643
- #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
2644
- #define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n)
2645
- #else
2646
2619
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
2647
- #endif
2648
2620
 
2649
2621
  /* IsLittleEndian.proto */
2650
2622
  static CYTHON_INLINE int __Pyx_Is_Little_Endian(void);
@@ -2727,22 +2699,22 @@ static int __Pyx_setup_reduce(PyObject* type_obj);
2727
2699
  #endif
2728
2700
 
2729
2701
  /* TypeImport.proto */
2730
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_10
2731
- #define __PYX_HAVE_RT_ImportType_proto_3_0_10
2702
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12
2703
+ #define __PYX_HAVE_RT_ImportType_proto_3_0_12
2732
2704
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2733
2705
  #include <stdalign.h>
2734
2706
  #endif
2735
2707
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2736
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) alignof(s)
2708
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s)
2737
2709
  #else
2738
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) sizeof(void*)
2710
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*)
2739
2711
  #endif
2740
- enum __Pyx_ImportType_CheckSize_3_0_10 {
2741
- __Pyx_ImportType_CheckSize_Error_3_0_10 = 0,
2742
- __Pyx_ImportType_CheckSize_Warn_3_0_10 = 1,
2743
- __Pyx_ImportType_CheckSize_Ignore_3_0_10 = 2
2712
+ enum __Pyx_ImportType_CheckSize_3_0_12 {
2713
+ __Pyx_ImportType_CheckSize_Error_3_0_12 = 0,
2714
+ __Pyx_ImportType_CheckSize_Warn_3_0_12 = 1,
2715
+ __Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2
2744
2716
  };
2745
- static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size);
2717
+ 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
2718
  #endif
2747
2719
 
2748
2720
  /* FetchSharedCythonModule.proto */
@@ -3063,6 +3035,44 @@ static CYTHON_INLINE int __pyx_memview_set_int(const char *itemp, PyObject *obj)
3063
3035
  #endif
3064
3036
  #endif
3065
3037
 
3038
+ /* Arithmetic.proto */
3039
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
3040
+ #define __Pyx_c_eq_long__double(a, b) ((a)==(b))
3041
+ #define __Pyx_c_sum_long__double(a, b) ((a)+(b))
3042
+ #define __Pyx_c_diff_long__double(a, b) ((a)-(b))
3043
+ #define __Pyx_c_prod_long__double(a, b) ((a)*(b))
3044
+ #define __Pyx_c_quot_long__double(a, b) ((a)/(b))
3045
+ #define __Pyx_c_neg_long__double(a) (-(a))
3046
+ #ifdef __cplusplus
3047
+ #define __Pyx_c_is_zero_long__double(z) ((z)==(long double)0)
3048
+ #define __Pyx_c_conj_long__double(z) (::std::conj(z))
3049
+ #if 1
3050
+ #define __Pyx_c_abs_long__double(z) (::std::abs(z))
3051
+ #define __Pyx_c_pow_long__double(a, b) (::std::pow(a, b))
3052
+ #endif
3053
+ #else
3054
+ #define __Pyx_c_is_zero_long__double(z) ((z)==0)
3055
+ #define __Pyx_c_conj_long__double(z) (conjl(z))
3056
+ #if 1
3057
+ #define __Pyx_c_abs_long__double(z) (cabsl(z))
3058
+ #define __Pyx_c_pow_long__double(a, b) (cpowl(a, b))
3059
+ #endif
3060
+ #endif
3061
+ #else
3062
+ static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3063
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3064
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3065
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3066
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3067
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex);
3068
+ static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex);
3069
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex);
3070
+ #if 1
3071
+ static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex);
3072
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3073
+ #endif
3074
+ #endif
3075
+
3066
3076
  /* MemviewSliceCopyTemplate.proto */
3067
3077
  static __Pyx_memviewslice
3068
3078
  __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
@@ -3146,6 +3156,18 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v
3146
3156
  static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
3147
3157
  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
3158
  static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto*/
3159
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self); /* proto*/
3160
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self); /* proto*/
3161
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self); /* proto*/
3162
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self); /* proto*/
3163
+ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self); /* proto*/
3164
+ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self); /* proto*/
3165
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3166
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3167
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3168
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3169
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3170
+ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3149
3171
  static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self); /* proto*/
3150
3172
  static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self); /* proto*/
3151
3173
  static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self); /* proto*/
@@ -3382,7 +3404,6 @@ static const char __pyx_k_itemsize_0_for_cython_array[] = "itemsize <= 0 for cyt
3382
3404
  static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate array data.";
3383
3405
  static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
3384
3406
  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
3407
  static const char __pyx_k_All_dimensions_preceding_dimensi[] = "All dimensions preceding dimension %d must be indexed and not sliced";
3387
3408
  static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
3388
3409
  static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
@@ -3397,7 +3418,8 @@ static const char __pyx_k_Out_of_bounds_on_buffer_access_a[] = "Out of bounds on
3397
3418
  static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object";
3398
3419
  static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension ";
3399
3420
  static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
3400
- static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import";
3421
+ static const char __pyx_k_numpy__core_multiarray_failed_to[] = "numpy._core.multiarray failed to import";
3422
+ static const char __pyx_k_numpy__core_umath_failed_to_impo[] = "numpy._core.umath failed to import";
3401
3423
  static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
3402
3424
  /* #### Code section: decls ### */
3403
3425
  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 +3650,8 @@ typedef struct {
3628
3650
  PyObject *__pyx_n_s_norm;
3629
3651
  PyObject *__pyx_n_s_np;
3630
3652
  PyObject *__pyx_n_s_numpy;
3631
- PyObject *__pyx_kp_u_numpy_core_multiarray_failed_to;
3632
- PyObject *__pyx_kp_u_numpy_core_umath_failed_to_impor;
3653
+ PyObject *__pyx_kp_u_numpy__core_multiarray_failed_to;
3654
+ PyObject *__pyx_kp_u_numpy__core_umath_failed_to_impo;
3633
3655
  PyObject *__pyx_n_s_obj;
3634
3656
  PyObject *__pyx_n_s_pack;
3635
3657
  PyObject *__pyx_n_s_pickle;
@@ -3873,8 +3895,8 @@ static int __pyx_m_clear(PyObject *m) {
3873
3895
  Py_CLEAR(clear_module_state->__pyx_n_s_norm);
3874
3896
  Py_CLEAR(clear_module_state->__pyx_n_s_np);
3875
3897
  Py_CLEAR(clear_module_state->__pyx_n_s_numpy);
3876
- Py_CLEAR(clear_module_state->__pyx_kp_u_numpy_core_multiarray_failed_to);
3877
- Py_CLEAR(clear_module_state->__pyx_kp_u_numpy_core_umath_failed_to_impor);
3898
+ Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
3899
+ Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
3878
3900
  Py_CLEAR(clear_module_state->__pyx_n_s_obj);
3879
3901
  Py_CLEAR(clear_module_state->__pyx_n_s_pack);
3880
3902
  Py_CLEAR(clear_module_state->__pyx_n_s_pickle);
@@ -4096,8 +4118,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4096
4118
  Py_VISIT(traverse_module_state->__pyx_n_s_norm);
4097
4119
  Py_VISIT(traverse_module_state->__pyx_n_s_np);
4098
4120
  Py_VISIT(traverse_module_state->__pyx_n_s_numpy);
4099
- Py_VISIT(traverse_module_state->__pyx_kp_u_numpy_core_multiarray_failed_to);
4100
- Py_VISIT(traverse_module_state->__pyx_kp_u_numpy_core_umath_failed_to_impor);
4121
+ Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
4122
+ Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
4101
4123
  Py_VISIT(traverse_module_state->__pyx_n_s_obj);
4102
4124
  Py_VISIT(traverse_module_state->__pyx_n_s_pack);
4103
4125
  Py_VISIT(traverse_module_state->__pyx_n_s_pickle);
@@ -4355,8 +4377,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4355
4377
  #define __pyx_n_s_norm __pyx_mstate_global->__pyx_n_s_norm
4356
4378
  #define __pyx_n_s_np __pyx_mstate_global->__pyx_n_s_np
4357
4379
  #define __pyx_n_s_numpy __pyx_mstate_global->__pyx_n_s_numpy
4358
- #define __pyx_kp_u_numpy_core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy_core_multiarray_failed_to
4359
- #define __pyx_kp_u_numpy_core_umath_failed_to_impor __pyx_mstate_global->__pyx_kp_u_numpy_core_umath_failed_to_impor
4380
+ #define __pyx_kp_u_numpy__core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy__core_multiarray_failed_to
4381
+ #define __pyx_kp_u_numpy__core_umath_failed_to_impo __pyx_mstate_global->__pyx_kp_u_numpy__core_umath_failed_to_impo
4360
4382
  #define __pyx_n_s_obj __pyx_mstate_global->__pyx_n_s_obj
4361
4383
  #define __pyx_n_s_pack __pyx_mstate_global->__pyx_n_s_pack
4362
4384
  #define __pyx_n_s_pickle __pyx_mstate_global->__pyx_n_s_pickle
@@ -4619,10 +4641,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4619
4641
  PyObject *__pyx_t_4 = NULL;
4620
4642
  PyObject *__pyx_t_5 = NULL;
4621
4643
  PyObject *__pyx_t_6 = NULL;
4622
- int __pyx_t_7;
4644
+ unsigned int __pyx_t_7;
4623
4645
  char *__pyx_t_8;
4624
- Py_ssize_t __pyx_t_9;
4625
- Py_UCS4 __pyx_t_10;
4646
+ int __pyx_t_9;
4647
+ Py_ssize_t __pyx_t_10;
4648
+ Py_UCS4 __pyx_t_11;
4626
4649
  int __pyx_lineno = 0;
4627
4650
  const char *__pyx_filename = NULL;
4628
4651
  int __pyx_clineno = 0;
@@ -4848,7 +4871,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4848
4871
  * if dim <= 0:
4849
4872
  * raise ValueError, f"Invalid shape in axis {idx}: {dim}."
4850
4873
  */
4851
- __pyx_t_7 = 0;
4874
+ __pyx_t_9 = 0;
4852
4875
  __pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4);
4853
4876
  __pyx_t_1 = 0;
4854
4877
  for (;;) {
@@ -4865,11 +4888,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4865
4888
  __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
4889
  __Pyx_GOTREF(__pyx_t_5);
4867
4890
  #endif
4868
- __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 159, __pyx_L1_error)
4891
+ __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
4892
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4870
- __pyx_v_dim = __pyx_t_9;
4871
- __pyx_v_idx = __pyx_t_7;
4872
- __pyx_t_7 = (__pyx_t_7 + 1);
4893
+ __pyx_v_dim = __pyx_t_10;
4894
+ __pyx_v_idx = __pyx_t_9;
4895
+ __pyx_t_9 = (__pyx_t_9 + 1);
4873
4896
 
4874
4897
  /* "View.MemoryView":160
4875
4898
  *
@@ -4890,33 +4913,33 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4890
4913
  */
4891
4914
  __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 161, __pyx_L1_error)
4892
4915
  __Pyx_GOTREF(__pyx_t_5);
4893
- __pyx_t_9 = 0;
4894
- __pyx_t_10 = 127;
4916
+ __pyx_t_10 = 0;
4917
+ __pyx_t_11 = 127;
4895
4918
  __Pyx_INCREF(__pyx_kp_u_Invalid_shape_in_axis);
4896
- __pyx_t_9 += 22;
4919
+ __pyx_t_10 += 22;
4897
4920
  __Pyx_GIVEREF(__pyx_kp_u_Invalid_shape_in_axis);
4898
4921
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Invalid_shape_in_axis);
4899
4922
  __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
4923
  __Pyx_GOTREF(__pyx_t_6);
4901
- __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4924
+ __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4902
4925
  __Pyx_GIVEREF(__pyx_t_6);
4903
4926
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
4904
4927
  __pyx_t_6 = 0;
4905
4928
  __Pyx_INCREF(__pyx_kp_u_);
4906
- __pyx_t_9 += 2;
4929
+ __pyx_t_10 += 2;
4907
4930
  __Pyx_GIVEREF(__pyx_kp_u_);
4908
4931
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_);
4909
4932
  __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
4933
  __Pyx_GOTREF(__pyx_t_6);
4911
- __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4934
+ __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4912
4935
  __Pyx_GIVEREF(__pyx_t_6);
4913
4936
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_6);
4914
4937
  __pyx_t_6 = 0;
4915
4938
  __Pyx_INCREF(__pyx_kp_u__2);
4916
- __pyx_t_9 += 1;
4939
+ __pyx_t_10 += 1;
4917
4940
  __Pyx_GIVEREF(__pyx_kp_u__2);
4918
4941
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__2);
4919
- __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
4942
+ __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
4943
  __Pyx_GOTREF(__pyx_t_6);
4921
4944
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4922
4945
  __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_6, 0, 0);
@@ -5100,7 +5123,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
5100
5123
  *
5101
5124
  * @cname('getbuffer')
5102
5125
  */
5103
- __pyx_t_7 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 180, __pyx_L1_error)
5126
+ __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
5127
 
5105
5128
  /* "View.MemoryView":179
5106
5129
  * self.dtype_is_object = format == b'O'
@@ -8255,7 +8278,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8255
8278
  *
8256
8279
  * if have_slices: # <<<<<<<<<<<<<<
8257
8280
  * obj = self.is_slice(value)
8258
- * if obj:
8281
+ * if obj is not None:
8259
8282
  */
8260
8283
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 426, __pyx_L1_error)
8261
8284
  if (__pyx_t_4) {
@@ -8264,7 +8287,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8264
8287
  *
8265
8288
  * if have_slices:
8266
8289
  * obj = self.is_slice(value) # <<<<<<<<<<<<<<
8267
- * if obj:
8290
+ * if obj is not None:
8268
8291
  * self.setitem_slice_assignment(self[index], obj)
8269
8292
  */
8270
8293
  __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 +8298,16 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8275
8298
  /* "View.MemoryView":428
8276
8299
  * if have_slices:
8277
8300
  * obj = self.is_slice(value)
8278
- * if obj: # <<<<<<<<<<<<<<
8301
+ * if obj is not None: # <<<<<<<<<<<<<<
8279
8302
  * self.setitem_slice_assignment(self[index], obj)
8280
8303
  * else:
8281
8304
  */
8282
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_obj); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 428, __pyx_L1_error)
8305
+ __pyx_t_4 = (__pyx_v_obj != Py_None);
8283
8306
  if (__pyx_t_4) {
8284
8307
 
8285
8308
  /* "View.MemoryView":429
8286
8309
  * obj = self.is_slice(value)
8287
- * if obj:
8310
+ * if obj is not None:
8288
8311
  * self.setitem_slice_assignment(self[index], obj) # <<<<<<<<<<<<<<
8289
8312
  * else:
8290
8313
  * self.setitem_slice_assign_scalar(self[index], value)
@@ -8299,7 +8322,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8299
8322
  /* "View.MemoryView":428
8300
8323
  * if have_slices:
8301
8324
  * obj = self.is_slice(value)
8302
- * if obj: # <<<<<<<<<<<<<<
8325
+ * if obj is not None: # <<<<<<<<<<<<<<
8303
8326
  * self.setitem_slice_assignment(self[index], obj)
8304
8327
  * else:
8305
8328
  */
@@ -8329,7 +8352,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8329
8352
  *
8330
8353
  * if have_slices: # <<<<<<<<<<<<<<
8331
8354
  * obj = self.is_slice(value)
8332
- * if obj:
8355
+ * if obj is not None:
8333
8356
  */
8334
8357
  goto __pyx_L4;
8335
8358
  }
@@ -9037,9 +9060,10 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
9037
9060
  PyObject *__pyx_t_5 = NULL;
9038
9061
  PyObject *__pyx_t_6 = NULL;
9039
9062
  PyObject *__pyx_t_7 = NULL;
9040
- int __pyx_t_8;
9063
+ unsigned int __pyx_t_8;
9041
9064
  Py_ssize_t __pyx_t_9;
9042
9065
  int __pyx_t_10;
9066
+ int __pyx_t_11;
9043
9067
  int __pyx_lineno = 0;
9044
9068
  const char *__pyx_filename = NULL;
9045
9069
  int __pyx_clineno = 0;
@@ -9194,11 +9218,11 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
9194
9218
  __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_6);
9195
9219
  __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
9220
  __Pyx_GOTREF(__pyx_t_7);
9197
- __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
9221
+ __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
9198
9222
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9199
9223
  __Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_6);
9200
9224
  __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
9201
- if (__pyx_t_8) {
9225
+ if (__pyx_t_11) {
9202
9226
  __Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
9203
9227
  if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 498, __pyx_L5_except_error)
9204
9228
  __Pyx_XGOTREF(__pyx_t_6);
@@ -9283,7 +9307,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
9283
9307
  PyObject *__pyx_t_3 = NULL;
9284
9308
  PyObject *__pyx_t_4 = NULL;
9285
9309
  PyObject *__pyx_t_5 = NULL;
9286
- int __pyx_t_6;
9310
+ unsigned int __pyx_t_6;
9287
9311
  Py_ssize_t __pyx_t_7;
9288
9312
  PyObject *__pyx_t_8 = NULL;
9289
9313
  char *__pyx_t_9;
@@ -17757,7 +17781,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
17757
17781
  int __pyx_t_2;
17758
17782
  PyObject *__pyx_t_3 = NULL;
17759
17783
  PyObject *__pyx_t_4 = NULL;
17760
- int __pyx_t_5;
17784
+ unsigned int __pyx_t_5;
17761
17785
  int __pyx_lineno = 0;
17762
17786
  const char *__pyx_filename = NULL;
17763
17787
  int __pyx_clineno = 0;
@@ -17939,7 +17963,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
17939
17963
  PyObject *__pyx_t_5 = NULL;
17940
17964
  PyObject *__pyx_t_6 = NULL;
17941
17965
  PyObject *__pyx_t_7 = NULL;
17942
- int __pyx_t_8;
17966
+ unsigned int __pyx_t_8;
17943
17967
  int __pyx_lineno = 0;
17944
17968
  const char *__pyx_filename = NULL;
17945
17969
  int __pyx_clineno = 0;
@@ -18059,33 +18083,33 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
18059
18083
  return __pyx_r;
18060
18084
  }
18061
18085
 
18062
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":245
18086
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":286
18063
18087
  *
18064
18088
  * @property
18065
- * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
18066
- * """Returns a borrowed reference to the object owning the data/memory.
18067
- * """
18089
+ * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
18090
+ * return PyDataType_ELSIZE(self)
18091
+ *
18068
18092
  */
18069
18093
 
18070
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
18071
- PyObject *__pyx_r;
18094
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) {
18095
+ npy_intp __pyx_r;
18072
18096
 
18073
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":248
18074
- * """Returns a borrowed reference to the object owning the data/memory.
18075
- * """
18076
- * return PyArray_BASE(self) # <<<<<<<<<<<<<<
18097
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
18098
+ * @property
18099
+ * cdef inline npy_intp itemsize(self) noexcept nogil:
18100
+ * return PyDataType_ELSIZE(self) # <<<<<<<<<<<<<<
18077
18101
  *
18078
18102
  * @property
18079
18103
  */
18080
- __pyx_r = PyArray_BASE(__pyx_v_self);
18104
+ __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
18081
18105
  goto __pyx_L0;
18082
18106
 
18083
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":245
18107
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":286
18084
18108
  *
18085
18109
  * @property
18086
- * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
18087
- * """Returns a borrowed reference to the object owning the data/memory.
18088
- * """
18110
+ * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
18111
+ * return PyDataType_ELSIZE(self)
18112
+ *
18089
18113
  */
18090
18114
 
18091
18115
  /* function exit code */
@@ -18093,109 +18117,151 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
18093
18117
  return __pyx_r;
18094
18118
  }
18095
18119
 
18096
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":251
18120
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":290
18097
18121
  *
18098
18122
  * @property
18099
- * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18100
- * """Returns an owned reference to the dtype of the array.
18101
- * """
18123
+ * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
18124
+ * return PyDataType_ALIGNMENT(self)
18125
+ *
18102
18126
  */
18103
18127
 
18104
- static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
18105
- PyArray_Descr *__pyx_r = NULL;
18128
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) {
18129
+ npy_intp __pyx_r;
18130
+
18131
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
18132
+ * @property
18133
+ * cdef inline npy_intp alignment(self) noexcept nogil:
18134
+ * return PyDataType_ALIGNMENT(self) # <<<<<<<<<<<<<<
18135
+ *
18136
+ * # Use fields/names with care as they may be NULL. You must check
18137
+ */
18138
+ __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
18139
+ goto __pyx_L0;
18140
+
18141
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":290
18142
+ *
18143
+ * @property
18144
+ * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
18145
+ * return PyDataType_ALIGNMENT(self)
18146
+ *
18147
+ */
18148
+
18149
+ /* function exit code */
18150
+ __pyx_L0:;
18151
+ return __pyx_r;
18152
+ }
18153
+
18154
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":296
18155
+ * # for this using PyDataType_HASFIELDS.
18156
+ * @property
18157
+ * cdef inline object fields(self): # <<<<<<<<<<<<<<
18158
+ * return <object>PyDataType_FIELDS(self)
18159
+ *
18160
+ */
18161
+
18162
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) {
18163
+ PyObject *__pyx_r = NULL;
18106
18164
  __Pyx_RefNannyDeclarations
18107
- PyArray_Descr *__pyx_t_1;
18108
- __Pyx_RefNannySetupContext("descr", 1);
18165
+ PyObject *__pyx_t_1;
18166
+ __Pyx_RefNannySetupContext("fields", 1);
18109
18167
 
18110
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":254
18111
- * """Returns an owned reference to the dtype of the array.
18112
- * """
18113
- * return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
18168
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
18169
+ * @property
18170
+ * cdef inline object fields(self):
18171
+ * return <object>PyDataType_FIELDS(self) # <<<<<<<<<<<<<<
18114
18172
  *
18115
18173
  * @property
18116
18174
  */
18117
- __Pyx_XDECREF((PyObject *)__pyx_r);
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);
18175
+ __Pyx_XDECREF(__pyx_r);
18176
+ __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
18177
+ __Pyx_INCREF(((PyObject *)__pyx_t_1));
18178
+ __pyx_r = ((PyObject *)__pyx_t_1);
18121
18179
  goto __pyx_L0;
18122
18180
 
18123
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":251
18124
- *
18181
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":296
18182
+ * # for this using PyDataType_HASFIELDS.
18125
18183
  * @property
18126
- * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18127
- * """Returns an owned reference to the dtype of the array.
18128
- * """
18184
+ * cdef inline object fields(self): # <<<<<<<<<<<<<<
18185
+ * return <object>PyDataType_FIELDS(self)
18186
+ *
18129
18187
  */
18130
18188
 
18131
18189
  /* function exit code */
18132
18190
  __pyx_L0:;
18133
- __Pyx_XGIVEREF((PyObject *)__pyx_r);
18191
+ __Pyx_XGIVEREF(__pyx_r);
18134
18192
  __Pyx_RefNannyFinishContext();
18135
18193
  return __pyx_r;
18136
18194
  }
18137
18195
 
18138
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":257
18196
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":300
18139
18197
  *
18140
18198
  * @property
18141
- * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
18142
- * """Returns the number of dimensions in the array.
18143
- * """
18199
+ * cdef inline tuple names(self): # <<<<<<<<<<<<<<
18200
+ * return <tuple>PyDataType_NAMES(self)
18201
+ *
18144
18202
  */
18145
18203
 
18146
- static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
18147
- int __pyx_r;
18204
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) {
18205
+ PyObject *__pyx_r = NULL;
18206
+ __Pyx_RefNannyDeclarations
18207
+ PyObject *__pyx_t_1;
18208
+ __Pyx_RefNannySetupContext("names", 1);
18148
18209
 
18149
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":260
18150
- * """Returns the number of dimensions in the array.
18151
- * """
18152
- * return PyArray_NDIM(self) # <<<<<<<<<<<<<<
18153
- *
18210
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
18154
18211
  * @property
18212
+ * cdef inline tuple names(self):
18213
+ * return <tuple>PyDataType_NAMES(self) # <<<<<<<<<<<<<<
18214
+ *
18215
+ * # Use PyDataType_HASSUBARRAY to test whether this field is
18155
18216
  */
18156
- __pyx_r = PyArray_NDIM(__pyx_v_self);
18217
+ __Pyx_XDECREF(__pyx_r);
18218
+ __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
18219
+ __Pyx_INCREF(((PyObject*)__pyx_t_1));
18220
+ __pyx_r = ((PyObject*)__pyx_t_1);
18157
18221
  goto __pyx_L0;
18158
18222
 
18159
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":257
18223
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":300
18160
18224
  *
18161
18225
  * @property
18162
- * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
18163
- * """Returns the number of dimensions in the array.
18164
- * """
18226
+ * cdef inline tuple names(self): # <<<<<<<<<<<<<<
18227
+ * return <tuple>PyDataType_NAMES(self)
18228
+ *
18165
18229
  */
18166
18230
 
18167
18231
  /* function exit code */
18168
18232
  __pyx_L0:;
18233
+ __Pyx_XGIVEREF(__pyx_r);
18234
+ __Pyx_RefNannyFinishContext();
18169
18235
  return __pyx_r;
18170
18236
  }
18171
18237
 
18172
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":263
18173
- *
18238
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":307
18239
+ * # this field via the inline helper method PyDataType_SHAPE.
18174
18240
  * @property
18175
- * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
18176
- * """Returns a pointer to the dimensions/shape of the array.
18177
- * The number of elements matches the number of dimensions of the array (ndim).
18241
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
18242
+ * return PyDataType_SUBARRAY(self)
18243
+ *
18178
18244
  */
18179
18245
 
18180
- static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
18181
- npy_intp *__pyx_r;
18246
+ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) {
18247
+ PyArray_ArrayDescr *__pyx_r;
18182
18248
 
18183
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":268
18184
- * Can return NULL for 0-dimensional arrays.
18185
- * """
18186
- * return PyArray_DIMS(self) # <<<<<<<<<<<<<<
18249
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
18250
+ * @property
18251
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:
18252
+ * return PyDataType_SUBARRAY(self) # <<<<<<<<<<<<<<
18187
18253
  *
18188
18254
  * @property
18189
18255
  */
18190
- __pyx_r = PyArray_DIMS(__pyx_v_self);
18256
+ __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
18191
18257
  goto __pyx_L0;
18192
18258
 
18193
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":263
18194
- *
18259
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":307
18260
+ * # this field via the inline helper method PyDataType_SHAPE.
18195
18261
  * @property
18196
- * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
18197
- * """Returns a pointer to the dimensions/shape of the array.
18198
- * The number of elements matches the number of dimensions of the array (ndim).
18262
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
18263
+ * return PyDataType_SUBARRAY(self)
18264
+ *
18199
18265
  */
18200
18266
 
18201
18267
  /* function exit code */
@@ -18203,33 +18269,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec
18203
18269
  return __pyx_r;
18204
18270
  }
18205
18271
 
18206
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":271
18272
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":311
18207
18273
  *
18208
18274
  * @property
18209
- * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
18210
- * """Returns a pointer to the strides of the array.
18211
- * The number of elements matches the number of dimensions of the array (ndim).
18275
+ * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
18276
+ * """The data types flags."""
18277
+ * return PyDataType_FLAGS(self)
18212
18278
  */
18213
18279
 
18214
- static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
18215
- npy_intp *__pyx_r;
18280
+ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self) {
18281
+ npy_uint64 __pyx_r;
18216
18282
 
18217
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":275
18218
- * The number of elements matches the number of dimensions of the array (ndim).
18219
- * """
18220
- * return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
18283
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":313
18284
+ * cdef inline npy_uint64 flags(self) noexcept nogil:
18285
+ * """The data types flags."""
18286
+ * return PyDataType_FLAGS(self) # <<<<<<<<<<<<<<
18287
+ *
18221
18288
  *
18222
- * @property
18223
18289
  */
18224
- __pyx_r = PyArray_STRIDES(__pyx_v_self);
18290
+ __pyx_r = PyDataType_FLAGS(__pyx_v_self);
18225
18291
  goto __pyx_L0;
18226
18292
 
18227
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":271
18293
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":311
18228
18294
  *
18229
18295
  * @property
18230
- * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
18231
- * """Returns a pointer to the strides of the array.
18232
- * The number of elements matches the number of dimensions of the array (ndim).
18296
+ * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
18297
+ * """The data types flags."""
18298
+ * return PyDataType_FLAGS(self)
18233
18299
  */
18234
18300
 
18235
18301
  /* function exit code */
@@ -18237,33 +18303,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
18237
18303
  return __pyx_r;
18238
18304
  }
18239
18305
 
18240
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":278
18306
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":323
18241
18307
  *
18242
18308
  * @property
18243
- * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
18244
- * """Returns the total size (in number of elements) of the array.
18245
- * """
18309
+ * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
18310
+ * """The number of arrays that need to be broadcast to the same shape."""
18311
+ * return PyArray_MultiIter_NUMITER(self)
18246
18312
  */
18247
18313
 
18248
- static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
18249
- npy_intp __pyx_r;
18314
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self) {
18315
+ int __pyx_r;
18250
18316
 
18251
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":281
18252
- * """Returns the total size (in number of elements) of the array.
18253
- * """
18254
- * return PyArray_SIZE(self) # <<<<<<<<<<<<<<
18317
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":325
18318
+ * cdef inline int numiter(self) noexcept nogil:
18319
+ * """The number of arrays that need to be broadcast to the same shape."""
18320
+ * return PyArray_MultiIter_NUMITER(self) # <<<<<<<<<<<<<<
18255
18321
  *
18256
18322
  * @property
18257
18323
  */
18258
- __pyx_r = PyArray_SIZE(__pyx_v_self);
18324
+ __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
18259
18325
  goto __pyx_L0;
18260
18326
 
18261
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":278
18327
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":323
18262
18328
  *
18263
18329
  * @property
18264
- * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
18265
- * """Returns the total size (in number of elements) of the array.
18266
- * """
18330
+ * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
18331
+ * """The number of arrays that need to be broadcast to the same shape."""
18332
+ * return PyArray_MultiIter_NUMITER(self)
18267
18333
  */
18268
18334
 
18269
18335
  /* function exit code */
@@ -18271,33 +18337,33 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
18271
18337
  return __pyx_r;
18272
18338
  }
18273
18339
 
18274
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":284
18340
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":328
18275
18341
  *
18276
18342
  * @property
18277
- * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
18278
- * """The pointer to the data buffer as a char*.
18279
- * This is provided for legacy reasons to avoid direct struct field access.
18343
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18344
+ * """The total broadcasted size."""
18345
+ * return PyArray_MultiIter_SIZE(self)
18280
18346
  */
18281
18347
 
18282
- static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
18283
- char *__pyx_r;
18348
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self) {
18349
+ npy_intp __pyx_r;
18284
18350
 
18285
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":290
18286
- * of `PyArray_DATA()` instead, which returns a 'void*'.
18287
- * """
18288
- * return PyArray_BYTES(self) # <<<<<<<<<<<<<<
18351
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":330
18352
+ * cdef inline npy_intp size(self) noexcept nogil:
18353
+ * """The total broadcasted size."""
18354
+ * return PyArray_MultiIter_SIZE(self) # <<<<<<<<<<<<<<
18289
18355
  *
18290
- * ctypedef unsigned char npy_bool
18356
+ * @property
18291
18357
  */
18292
- __pyx_r = PyArray_BYTES(__pyx_v_self);
18358
+ __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
18293
18359
  goto __pyx_L0;
18294
18360
 
18295
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":284
18361
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":328
18296
18362
  *
18297
18363
  * @property
18298
- * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
18299
- * """The pointer to the data buffer as a char*.
18300
- * This is provided for legacy reasons to avoid direct struct field access.
18364
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18365
+ * """The total broadcasted size."""
18366
+ * return PyArray_MultiIter_SIZE(self)
18301
18367
  */
18302
18368
 
18303
18369
  /* function exit code */
@@ -18305,111 +18371,493 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
18305
18371
  return __pyx_r;
18306
18372
  }
18307
18373
 
18308
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":773
18309
- * ctypedef npy_cdouble complex_t
18310
- *
18311
- * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18312
- * return PyArray_MultiIterNew(1, <void*>a)
18374
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":333
18313
18375
  *
18376
+ * @property
18377
+ * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
18378
+ * """The current (1-d) index into the broadcasted result."""
18379
+ * return PyArray_MultiIter_INDEX(self)
18314
18380
  */
18315
18381
 
18316
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
18317
- PyObject *__pyx_r = NULL;
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);
18382
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self) {
18383
+ npy_intp __pyx_r;
18324
18384
 
18325
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":774
18326
- *
18327
- * cdef inline object PyArray_MultiIterNew1(a):
18328
- * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
18385
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":335
18386
+ * cdef inline npy_intp index(self) noexcept nogil:
18387
+ * """The current (1-d) index into the broadcasted result."""
18388
+ * return PyArray_MultiIter_INDEX(self) # <<<<<<<<<<<<<<
18329
18389
  *
18330
- * cdef inline object PyArray_MultiIterNew2(a, b):
18390
+ * @property
18331
18391
  */
18332
- __Pyx_XDECREF(__pyx_r);
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;
18392
+ __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
18337
18393
  goto __pyx_L0;
18338
18394
 
18339
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":773
18340
- * ctypedef npy_cdouble complex_t
18341
- *
18342
- * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18343
- * return PyArray_MultiIterNew(1, <void*>a)
18395
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":333
18344
18396
  *
18397
+ * @property
18398
+ * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
18399
+ * """The current (1-d) index into the broadcasted result."""
18400
+ * return PyArray_MultiIter_INDEX(self)
18345
18401
  */
18346
18402
 
18347
18403
  /* 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
18404
  __pyx_L0:;
18353
- __Pyx_XGIVEREF(__pyx_r);
18354
- __Pyx_RefNannyFinishContext();
18355
18405
  return __pyx_r;
18356
18406
  }
18357
18407
 
18358
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":776
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)
18408
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":338
18363
18409
  *
18410
+ * @property
18411
+ * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
18412
+ * """The number of dimensions in the broadcasted result."""
18413
+ * return PyArray_MultiIter_NDIM(self)
18364
18414
  */
18365
18415
 
18366
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
18367
- PyObject *__pyx_r = NULL;
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);
18416
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self) {
18417
+ int __pyx_r;
18374
18418
 
18375
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":777
18376
- *
18377
- * cdef inline object PyArray_MultiIterNew2(a, b):
18378
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
18419
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":340
18420
+ * cdef inline int nd(self) noexcept nogil:
18421
+ * """The number of dimensions in the broadcasted result."""
18422
+ * return PyArray_MultiIter_NDIM(self) # <<<<<<<<<<<<<<
18379
18423
  *
18380
- * cdef inline object PyArray_MultiIterNew3(a, b, c):
18424
+ * @property
18381
18425
  */
18382
- __Pyx_XDECREF(__pyx_r);
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;
18426
+ __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
18387
18427
  goto __pyx_L0;
18388
18428
 
18389
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":776
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)
18429
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":338
18394
18430
  *
18431
+ * @property
18432
+ * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
18433
+ * """The number of dimensions in the broadcasted result."""
18434
+ * return PyArray_MultiIter_NDIM(self)
18395
18435
  */
18396
18436
 
18397
18437
  /* 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
18438
  __pyx_L0:;
18403
- __Pyx_XGIVEREF(__pyx_r);
18404
- __Pyx_RefNannyFinishContext();
18405
18439
  return __pyx_r;
18406
18440
  }
18407
18441
 
18408
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":779
18409
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18410
- *
18411
- * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
18412
- * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18442
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":343
18443
+ *
18444
+ * @property
18445
+ * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
18446
+ * """The shape of the broadcasted result."""
18447
+ * return PyArray_MultiIter_DIMS(self)
18448
+ */
18449
+
18450
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self) {
18451
+ npy_intp *__pyx_r;
18452
+
18453
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":345
18454
+ * cdef inline npy_intp* dimensions(self) noexcept nogil:
18455
+ * """The shape of the broadcasted result."""
18456
+ * return PyArray_MultiIter_DIMS(self) # <<<<<<<<<<<<<<
18457
+ *
18458
+ * @property
18459
+ */
18460
+ __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
18461
+ goto __pyx_L0;
18462
+
18463
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":343
18464
+ *
18465
+ * @property
18466
+ * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
18467
+ * """The shape of the broadcasted result."""
18468
+ * return PyArray_MultiIter_DIMS(self)
18469
+ */
18470
+
18471
+ /* function exit code */
18472
+ __pyx_L0:;
18473
+ return __pyx_r;
18474
+ }
18475
+
18476
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":348
18477
+ *
18478
+ * @property
18479
+ * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
18480
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18481
+ * On return, the iterators are adjusted for broadcasting."""
18482
+ */
18483
+
18484
+ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self) {
18485
+ void **__pyx_r;
18486
+
18487
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":351
18488
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18489
+ * On return, the iterators are adjusted for broadcasting."""
18490
+ * return PyArray_MultiIter_ITERS(self) # <<<<<<<<<<<<<<
18491
+ *
18492
+ *
18493
+ */
18494
+ __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
18495
+ goto __pyx_L0;
18496
+
18497
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":348
18498
+ *
18499
+ * @property
18500
+ * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
18501
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18502
+ * On return, the iterators are adjusted for broadcasting."""
18503
+ */
18504
+
18505
+ /* function exit code */
18506
+ __pyx_L0:;
18507
+ return __pyx_r;
18508
+ }
18509
+
18510
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":366
18511
+ *
18512
+ * @property
18513
+ * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
18514
+ * """Returns a borrowed reference to the object owning the data/memory.
18515
+ * """
18516
+ */
18517
+
18518
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
18519
+ PyObject *__pyx_r;
18520
+
18521
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":369
18522
+ * """Returns a borrowed reference to the object owning the data/memory.
18523
+ * """
18524
+ * return PyArray_BASE(self) # <<<<<<<<<<<<<<
18525
+ *
18526
+ * @property
18527
+ */
18528
+ __pyx_r = PyArray_BASE(__pyx_v_self);
18529
+ goto __pyx_L0;
18530
+
18531
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":366
18532
+ *
18533
+ * @property
18534
+ * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
18535
+ * """Returns a borrowed reference to the object owning the data/memory.
18536
+ * """
18537
+ */
18538
+
18539
+ /* function exit code */
18540
+ __pyx_L0:;
18541
+ return __pyx_r;
18542
+ }
18543
+
18544
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":372
18545
+ *
18546
+ * @property
18547
+ * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18548
+ * """Returns an owned reference to the dtype of the array.
18549
+ * """
18550
+ */
18551
+
18552
+ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
18553
+ PyArray_Descr *__pyx_r = NULL;
18554
+ __Pyx_RefNannyDeclarations
18555
+ PyArray_Descr *__pyx_t_1;
18556
+ __Pyx_RefNannySetupContext("descr", 1);
18557
+
18558
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":375
18559
+ * """Returns an owned reference to the dtype of the array.
18560
+ * """
18561
+ * return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
18562
+ *
18563
+ * @property
18564
+ */
18565
+ __Pyx_XDECREF((PyObject *)__pyx_r);
18566
+ __pyx_t_1 = PyArray_DESCR(__pyx_v_self);
18567
+ __Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
18568
+ __pyx_r = ((PyArray_Descr *)__pyx_t_1);
18569
+ goto __pyx_L0;
18570
+
18571
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":372
18572
+ *
18573
+ * @property
18574
+ * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18575
+ * """Returns an owned reference to the dtype of the array.
18576
+ * """
18577
+ */
18578
+
18579
+ /* function exit code */
18580
+ __pyx_L0:;
18581
+ __Pyx_XGIVEREF((PyObject *)__pyx_r);
18582
+ __Pyx_RefNannyFinishContext();
18583
+ return __pyx_r;
18584
+ }
18585
+
18586
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":378
18587
+ *
18588
+ * @property
18589
+ * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
18590
+ * """Returns the number of dimensions in the array.
18591
+ * """
18592
+ */
18593
+
18594
+ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
18595
+ int __pyx_r;
18596
+
18597
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":381
18598
+ * """Returns the number of dimensions in the array.
18599
+ * """
18600
+ * return PyArray_NDIM(self) # <<<<<<<<<<<<<<
18601
+ *
18602
+ * @property
18603
+ */
18604
+ __pyx_r = PyArray_NDIM(__pyx_v_self);
18605
+ goto __pyx_L0;
18606
+
18607
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":378
18608
+ *
18609
+ * @property
18610
+ * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
18611
+ * """Returns the number of dimensions in the array.
18612
+ * """
18613
+ */
18614
+
18615
+ /* function exit code */
18616
+ __pyx_L0:;
18617
+ return __pyx_r;
18618
+ }
18619
+
18620
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":384
18621
+ *
18622
+ * @property
18623
+ * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
18624
+ * """Returns a pointer to the dimensions/shape of the array.
18625
+ * The number of elements matches the number of dimensions of the array (ndim).
18626
+ */
18627
+
18628
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
18629
+ npy_intp *__pyx_r;
18630
+
18631
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":389
18632
+ * Can return NULL for 0-dimensional arrays.
18633
+ * """
18634
+ * return PyArray_DIMS(self) # <<<<<<<<<<<<<<
18635
+ *
18636
+ * @property
18637
+ */
18638
+ __pyx_r = PyArray_DIMS(__pyx_v_self);
18639
+ goto __pyx_L0;
18640
+
18641
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":384
18642
+ *
18643
+ * @property
18644
+ * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
18645
+ * """Returns a pointer to the dimensions/shape of the array.
18646
+ * The number of elements matches the number of dimensions of the array (ndim).
18647
+ */
18648
+
18649
+ /* function exit code */
18650
+ __pyx_L0:;
18651
+ return __pyx_r;
18652
+ }
18653
+
18654
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":392
18655
+ *
18656
+ * @property
18657
+ * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
18658
+ * """Returns a pointer to the strides of the array.
18659
+ * The number of elements matches the number of dimensions of the array (ndim).
18660
+ */
18661
+
18662
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
18663
+ npy_intp *__pyx_r;
18664
+
18665
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":396
18666
+ * The number of elements matches the number of dimensions of the array (ndim).
18667
+ * """
18668
+ * return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
18669
+ *
18670
+ * @property
18671
+ */
18672
+ __pyx_r = PyArray_STRIDES(__pyx_v_self);
18673
+ goto __pyx_L0;
18674
+
18675
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":392
18676
+ *
18677
+ * @property
18678
+ * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
18679
+ * """Returns a pointer to the strides of the array.
18680
+ * The number of elements matches the number of dimensions of the array (ndim).
18681
+ */
18682
+
18683
+ /* function exit code */
18684
+ __pyx_L0:;
18685
+ return __pyx_r;
18686
+ }
18687
+
18688
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":399
18689
+ *
18690
+ * @property
18691
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18692
+ * """Returns the total size (in number of elements) of the array.
18693
+ * """
18694
+ */
18695
+
18696
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
18697
+ npy_intp __pyx_r;
18698
+
18699
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":402
18700
+ * """Returns the total size (in number of elements) of the array.
18701
+ * """
18702
+ * return PyArray_SIZE(self) # <<<<<<<<<<<<<<
18703
+ *
18704
+ * @property
18705
+ */
18706
+ __pyx_r = PyArray_SIZE(__pyx_v_self);
18707
+ goto __pyx_L0;
18708
+
18709
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":399
18710
+ *
18711
+ * @property
18712
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18713
+ * """Returns the total size (in number of elements) of the array.
18714
+ * """
18715
+ */
18716
+
18717
+ /* function exit code */
18718
+ __pyx_L0:;
18719
+ return __pyx_r;
18720
+ }
18721
+
18722
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":405
18723
+ *
18724
+ * @property
18725
+ * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
18726
+ * """The pointer to the data buffer as a char*.
18727
+ * This is provided for legacy reasons to avoid direct struct field access.
18728
+ */
18729
+
18730
+ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
18731
+ char *__pyx_r;
18732
+
18733
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":411
18734
+ * of `PyArray_DATA()` instead, which returns a 'void*'.
18735
+ * """
18736
+ * return PyArray_BYTES(self) # <<<<<<<<<<<<<<
18737
+ *
18738
+ *
18739
+ */
18740
+ __pyx_r = PyArray_BYTES(__pyx_v_self);
18741
+ goto __pyx_L0;
18742
+
18743
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":405
18744
+ *
18745
+ * @property
18746
+ * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
18747
+ * """The pointer to the data buffer as a char*.
18748
+ * This is provided for legacy reasons to avoid direct struct field access.
18749
+ */
18750
+
18751
+ /* function exit code */
18752
+ __pyx_L0:;
18753
+ return __pyx_r;
18754
+ }
18755
+
18756
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":807
18757
+ * ctypedef long double complex clongdouble_t
18758
+ *
18759
+ * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18760
+ * return PyArray_MultiIterNew(1, <void*>a)
18761
+ *
18762
+ */
18763
+
18764
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
18765
+ PyObject *__pyx_r = NULL;
18766
+ __Pyx_RefNannyDeclarations
18767
+ PyObject *__pyx_t_1 = NULL;
18768
+ int __pyx_lineno = 0;
18769
+ const char *__pyx_filename = NULL;
18770
+ int __pyx_clineno = 0;
18771
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
18772
+
18773
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":808
18774
+ *
18775
+ * cdef inline object PyArray_MultiIterNew1(a):
18776
+ * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
18777
+ *
18778
+ * cdef inline object PyArray_MultiIterNew2(a, b):
18779
+ */
18780
+ __Pyx_XDECREF(__pyx_r);
18781
+ __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 808, __pyx_L1_error)
18782
+ __Pyx_GOTREF(__pyx_t_1);
18783
+ __pyx_r = __pyx_t_1;
18784
+ __pyx_t_1 = 0;
18785
+ goto __pyx_L0;
18786
+
18787
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":807
18788
+ * ctypedef long double complex clongdouble_t
18789
+ *
18790
+ * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18791
+ * return PyArray_MultiIterNew(1, <void*>a)
18792
+ *
18793
+ */
18794
+
18795
+ /* function exit code */
18796
+ __pyx_L1_error:;
18797
+ __Pyx_XDECREF(__pyx_t_1);
18798
+ __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
18799
+ __pyx_r = 0;
18800
+ __pyx_L0:;
18801
+ __Pyx_XGIVEREF(__pyx_r);
18802
+ __Pyx_RefNannyFinishContext();
18803
+ return __pyx_r;
18804
+ }
18805
+
18806
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
18807
+ * return PyArray_MultiIterNew(1, <void*>a)
18808
+ *
18809
+ * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18810
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18811
+ *
18812
+ */
18813
+
18814
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
18815
+ PyObject *__pyx_r = NULL;
18816
+ __Pyx_RefNannyDeclarations
18817
+ PyObject *__pyx_t_1 = NULL;
18818
+ int __pyx_lineno = 0;
18819
+ const char *__pyx_filename = NULL;
18820
+ int __pyx_clineno = 0;
18821
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
18822
+
18823
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":811
18824
+ *
18825
+ * cdef inline object PyArray_MultiIterNew2(a, b):
18826
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
18827
+ *
18828
+ * cdef inline object PyArray_MultiIterNew3(a, b, c):
18829
+ */
18830
+ __Pyx_XDECREF(__pyx_r);
18831
+ __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 811, __pyx_L1_error)
18832
+ __Pyx_GOTREF(__pyx_t_1);
18833
+ __pyx_r = __pyx_t_1;
18834
+ __pyx_t_1 = 0;
18835
+ goto __pyx_L0;
18836
+
18837
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
18838
+ * return PyArray_MultiIterNew(1, <void*>a)
18839
+ *
18840
+ * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18841
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18842
+ *
18843
+ */
18844
+
18845
+ /* function exit code */
18846
+ __pyx_L1_error:;
18847
+ __Pyx_XDECREF(__pyx_t_1);
18848
+ __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
18849
+ __pyx_r = 0;
18850
+ __pyx_L0:;
18851
+ __Pyx_XGIVEREF(__pyx_r);
18852
+ __Pyx_RefNannyFinishContext();
18853
+ return __pyx_r;
18854
+ }
18855
+
18856
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
18857
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18858
+ *
18859
+ * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
18860
+ * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18413
18861
  *
18414
18862
  */
18415
18863
 
@@ -18422,7 +18870,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18422
18870
  int __pyx_clineno = 0;
18423
18871
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);
18424
18872
 
18425
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":780
18873
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":814
18426
18874
  *
18427
18875
  * cdef inline object PyArray_MultiIterNew3(a, b, c):
18428
18876
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
@@ -18430,13 +18878,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18430
18878
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
18431
18879
  */
18432
18880
  __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, 780, __pyx_L1_error)
18881
+ __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, 814, __pyx_L1_error)
18434
18882
  __Pyx_GOTREF(__pyx_t_1);
18435
18883
  __pyx_r = __pyx_t_1;
18436
18884
  __pyx_t_1 = 0;
18437
18885
  goto __pyx_L0;
18438
18886
 
18439
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":779
18887
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
18440
18888
  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18441
18889
  *
18442
18890
  * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
@@ -18455,7 +18903,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18455
18903
  return __pyx_r;
18456
18904
  }
18457
18905
 
18458
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":782
18906
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
18459
18907
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18460
18908
  *
18461
18909
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -18472,7 +18920,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18472
18920
  int __pyx_clineno = 0;
18473
18921
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);
18474
18922
 
18475
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":783
18923
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":817
18476
18924
  *
18477
18925
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
18478
18926
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
@@ -18480,13 +18928,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18480
18928
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
18481
18929
  */
18482
18930
  __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, 783, __pyx_L1_error)
18931
+ __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, 817, __pyx_L1_error)
18484
18932
  __Pyx_GOTREF(__pyx_t_1);
18485
18933
  __pyx_r = __pyx_t_1;
18486
18934
  __pyx_t_1 = 0;
18487
18935
  goto __pyx_L0;
18488
18936
 
18489
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":782
18937
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
18490
18938
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18491
18939
  *
18492
18940
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -18505,7 +18953,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18505
18953
  return __pyx_r;
18506
18954
  }
18507
18955
 
18508
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":785
18956
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":819
18509
18957
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
18510
18958
  *
18511
18959
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -18522,7 +18970,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18522
18970
  int __pyx_clineno = 0;
18523
18971
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);
18524
18972
 
18525
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":786
18973
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":820
18526
18974
  *
18527
18975
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
18528
18976
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
@@ -18530,13 +18978,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18530
18978
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18531
18979
  */
18532
18980
  __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, 786, __pyx_L1_error)
18981
+ __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, 820, __pyx_L1_error)
18534
18982
  __Pyx_GOTREF(__pyx_t_1);
18535
18983
  __pyx_r = __pyx_t_1;
18536
18984
  __pyx_t_1 = 0;
18537
18985
  goto __pyx_L0;
18538
18986
 
18539
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":785
18987
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":819
18540
18988
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
18541
18989
  *
18542
18990
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -18555,7 +19003,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18555
19003
  return __pyx_r;
18556
19004
  }
18557
19005
 
18558
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":788
19006
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":822
18559
19007
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
18560
19008
  *
18561
19009
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -18567,9 +19015,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18567
19015
  PyObject *__pyx_r = NULL;
18568
19016
  __Pyx_RefNannyDeclarations
18569
19017
  int __pyx_t_1;
19018
+ PyObject *__pyx_t_2;
18570
19019
  __Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);
18571
19020
 
18572
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":789
19021
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":823
18573
19022
  *
18574
19023
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18575
19024
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -18579,7 +19028,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18579
19028
  __pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
18580
19029
  if (__pyx_t_1) {
18581
19030
 
18582
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":790
19031
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
18583
19032
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18584
19033
  * if PyDataType_HASSUBARRAY(d):
18585
19034
  * return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
@@ -18587,11 +19036,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18587
19036
  * return ()
18588
19037
  */
18589
19038
  __Pyx_XDECREF(__pyx_r);
18590
- __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
18591
- __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
19039
+ __pyx_t_2 = __pyx_f_5numpy_5dtype_8subarray_subarray(__pyx_v_d)->shape;
19040
+ __Pyx_INCREF(((PyObject*)__pyx_t_2));
19041
+ __pyx_r = ((PyObject*)__pyx_t_2);
18592
19042
  goto __pyx_L0;
18593
19043
 
18594
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":789
19044
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":823
18595
19045
  *
18596
19046
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18597
19047
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -18600,7 +19050,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18600
19050
  */
18601
19051
  }
18602
19052
 
18603
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":792
19053
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":826
18604
19054
  * return <tuple>d.subarray.shape
18605
19055
  * else:
18606
19056
  * return () # <<<<<<<<<<<<<<
@@ -18614,7 +19064,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18614
19064
  goto __pyx_L0;
18615
19065
  }
18616
19066
 
18617
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":788
19067
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":822
18618
19068
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
18619
19069
  *
18620
19070
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -18629,10 +19079,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18629
19079
  return __pyx_r;
18630
19080
  }
18631
19081
 
18632
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":968
19082
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1010
18633
19083
  * int _import_umath() except -1
18634
19084
  *
18635
- * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
19085
+ * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
18636
19086
  * Py_INCREF(base) # important to do this before stealing the reference below!
18637
19087
  * PyArray_SetBaseObject(arr, base)
18638
19088
  */
@@ -18643,28 +19093,28 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
18643
19093
  const char *__pyx_filename = NULL;
18644
19094
  int __pyx_clineno = 0;
18645
19095
 
18646
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":969
19096
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1011
18647
19097
  *
18648
- * cdef inline void set_array_base(ndarray arr, object base):
19098
+ * cdef inline void set_array_base(ndarray arr, object base) except *:
18649
19099
  * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
18650
19100
  * PyArray_SetBaseObject(arr, base)
18651
19101
  *
18652
19102
  */
18653
19103
  Py_INCREF(__pyx_v_base);
18654
19104
 
18655
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":970
18656
- * cdef inline void set_array_base(ndarray arr, object base):
19105
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1012
19106
+ * cdef inline void set_array_base(ndarray arr, object base) except *:
18657
19107
  * Py_INCREF(base) # important to do this before stealing the reference below!
18658
19108
  * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
18659
19109
  *
18660
19110
  * cdef inline object get_array_base(ndarray arr):
18661
19111
  */
18662
- __pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 970, __pyx_L1_error)
19112
+ __pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 1012, __pyx_L1_error)
18663
19113
 
18664
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":968
19114
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1010
18665
19115
  * int _import_umath() except -1
18666
19116
  *
18667
- * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
19117
+ * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
18668
19118
  * Py_INCREF(base) # important to do this before stealing the reference below!
18669
19119
  * PyArray_SetBaseObject(arr, base)
18670
19120
  */
@@ -18676,7 +19126,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
18676
19126
  __pyx_L0:;
18677
19127
  }
18678
19128
 
18679
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":972
19129
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
18680
19130
  * PyArray_SetBaseObject(arr, base)
18681
19131
  *
18682
19132
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -18691,7 +19141,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18691
19141
  int __pyx_t_1;
18692
19142
  __Pyx_RefNannySetupContext("get_array_base", 1);
18693
19143
 
18694
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":973
19144
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1015
18695
19145
  *
18696
19146
  * cdef inline object get_array_base(ndarray arr):
18697
19147
  * base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
@@ -18700,7 +19150,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18700
19150
  */
18701
19151
  __pyx_v_base = PyArray_BASE(__pyx_v_arr);
18702
19152
 
18703
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":974
19153
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1016
18704
19154
  * cdef inline object get_array_base(ndarray arr):
18705
19155
  * base = PyArray_BASE(arr)
18706
19156
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -18710,7 +19160,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18710
19160
  __pyx_t_1 = (__pyx_v_base == NULL);
18711
19161
  if (__pyx_t_1) {
18712
19162
 
18713
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":975
19163
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1017
18714
19164
  * base = PyArray_BASE(arr)
18715
19165
  * if base is NULL:
18716
19166
  * return None # <<<<<<<<<<<<<<
@@ -18721,7 +19171,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18721
19171
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18722
19172
  goto __pyx_L0;
18723
19173
 
18724
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":974
19174
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1016
18725
19175
  * cdef inline object get_array_base(ndarray arr):
18726
19176
  * base = PyArray_BASE(arr)
18727
19177
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -18730,7 +19180,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18730
19180
  */
18731
19181
  }
18732
19182
 
18733
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":976
19183
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1018
18734
19184
  * if base is NULL:
18735
19185
  * return None
18736
19186
  * return <object>base # <<<<<<<<<<<<<<
@@ -18742,7 +19192,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18742
19192
  __pyx_r = ((PyObject *)__pyx_v_base);
18743
19193
  goto __pyx_L0;
18744
19194
 
18745
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":972
19195
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
18746
19196
  * PyArray_SetBaseObject(arr, base)
18747
19197
  *
18748
19198
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -18757,7 +19207,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18757
19207
  return __pyx_r;
18758
19208
  }
18759
19209
 
18760
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":980
19210
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1022
18761
19211
  * # Versions of the import_* functions which are more suitable for
18762
19212
  * # Cython code.
18763
19213
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -18781,7 +19231,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18781
19231
  int __pyx_clineno = 0;
18782
19232
  __Pyx_RefNannySetupContext("import_array", 1);
18783
19233
 
18784
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":981
19234
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
18785
19235
  * # Cython code.
18786
19236
  * cdef inline int import_array() except -1:
18787
19237
  * try: # <<<<<<<<<<<<<<
@@ -18797,16 +19247,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18797
19247
  __Pyx_XGOTREF(__pyx_t_3);
18798
19248
  /*try:*/ {
18799
19249
 
18800
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":982
19250
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1024
18801
19251
  * cdef inline int import_array() except -1:
18802
19252
  * try:
18803
19253
  * __pyx_import_array() # <<<<<<<<<<<<<<
18804
19254
  * except Exception:
18805
- * raise ImportError("numpy.core.multiarray failed to import")
19255
+ * raise ImportError("numpy._core.multiarray failed to import")
18806
19256
  */
18807
- __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 982, __pyx_L3_error)
19257
+ __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1024, __pyx_L3_error)
18808
19258
 
18809
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":981
19259
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
18810
19260
  * # Cython code.
18811
19261
  * cdef inline int import_array() except -1:
18812
19262
  * try: # <<<<<<<<<<<<<<
@@ -18820,37 +19270,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18820
19270
  goto __pyx_L8_try_end;
18821
19271
  __pyx_L3_error:;
18822
19272
 
18823
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":983
19273
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1025
18824
19274
  * try:
18825
19275
  * __pyx_import_array()
18826
19276
  * except Exception: # <<<<<<<<<<<<<<
18827
- * raise ImportError("numpy.core.multiarray failed to import")
19277
+ * raise ImportError("numpy._core.multiarray failed to import")
18828
19278
  *
18829
19279
  */
18830
19280
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
18831
19281
  if (__pyx_t_4) {
18832
19282
  __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, 983, __pyx_L5_except_error)
19283
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1025, __pyx_L5_except_error)
18834
19284
  __Pyx_XGOTREF(__pyx_t_5);
18835
19285
  __Pyx_XGOTREF(__pyx_t_6);
18836
19286
  __Pyx_XGOTREF(__pyx_t_7);
18837
19287
 
18838
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":984
19288
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
18839
19289
  * __pyx_import_array()
18840
19290
  * except Exception:
18841
- * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
19291
+ * raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
18842
19292
  *
18843
19293
  * cdef inline int import_umath() except -1:
18844
19294
  */
18845
- __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 984, __pyx_L5_except_error)
19295
+ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1026, __pyx_L5_except_error)
18846
19296
  __Pyx_GOTREF(__pyx_t_8);
18847
19297
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
18848
19298
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
18849
- __PYX_ERR(2, 984, __pyx_L5_except_error)
19299
+ __PYX_ERR(2, 1026, __pyx_L5_except_error)
18850
19300
  }
18851
19301
  goto __pyx_L5_except_error;
18852
19302
 
18853
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":981
19303
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
18854
19304
  * # Cython code.
18855
19305
  * cdef inline int import_array() except -1:
18856
19306
  * try: # <<<<<<<<<<<<<<
@@ -18866,7 +19316,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18866
19316
  __pyx_L8_try_end:;
18867
19317
  }
18868
19318
 
18869
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":980
19319
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1022
18870
19320
  * # Versions of the import_* functions which are more suitable for
18871
19321
  * # Cython code.
18872
19322
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -18889,8 +19339,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18889
19339
  return __pyx_r;
18890
19340
  }
18891
19341
 
18892
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":986
18893
- * raise ImportError("numpy.core.multiarray failed to import")
19342
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1028
19343
+ * raise ImportError("numpy._core.multiarray failed to import")
18894
19344
  *
18895
19345
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
18896
19346
  * try:
@@ -18913,7 +19363,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
18913
19363
  int __pyx_clineno = 0;
18914
19364
  __Pyx_RefNannySetupContext("import_umath", 1);
18915
19365
 
18916
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":987
19366
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
18917
19367
  *
18918
19368
  * cdef inline int import_umath() except -1:
18919
19369
  * try: # <<<<<<<<<<<<<<
@@ -18929,16 +19379,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
18929
19379
  __Pyx_XGOTREF(__pyx_t_3);
18930
19380
  /*try:*/ {
18931
19381
 
18932
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":988
19382
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1030
18933
19383
  * cdef inline int import_umath() except -1:
18934
19384
  * try:
18935
19385
  * _import_umath() # <<<<<<<<<<<<<<
18936
19386
  * except Exception:
18937
- * raise ImportError("numpy.core.umath failed to import")
19387
+ * raise ImportError("numpy._core.umath failed to import")
18938
19388
  */
18939
- __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 988, __pyx_L3_error)
19389
+ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1030, __pyx_L3_error)
18940
19390
 
18941
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":987
19391
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
18942
19392
  *
18943
19393
  * cdef inline int import_umath() except -1:
18944
19394
  * try: # <<<<<<<<<<<<<<
@@ -18952,37 +19402,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
18952
19402
  goto __pyx_L8_try_end;
18953
19403
  __pyx_L3_error:;
18954
19404
 
18955
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":989
19405
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1031
18956
19406
  * try:
18957
19407
  * _import_umath()
18958
19408
  * except Exception: # <<<<<<<<<<<<<<
18959
- * raise ImportError("numpy.core.umath failed to import")
19409
+ * raise ImportError("numpy._core.umath failed to import")
18960
19410
  *
18961
19411
  */
18962
19412
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
18963
19413
  if (__pyx_t_4) {
18964
19414
  __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, 989, __pyx_L5_except_error)
19415
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1031, __pyx_L5_except_error)
18966
19416
  __Pyx_XGOTREF(__pyx_t_5);
18967
19417
  __Pyx_XGOTREF(__pyx_t_6);
18968
19418
  __Pyx_XGOTREF(__pyx_t_7);
18969
19419
 
18970
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":990
19420
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1032
18971
19421
  * _import_umath()
18972
19422
  * except Exception:
18973
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
19423
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
18974
19424
  *
18975
19425
  * cdef inline int import_ufunc() except -1:
18976
19426
  */
18977
- __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 990, __pyx_L5_except_error)
19427
+ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1032, __pyx_L5_except_error)
18978
19428
  __Pyx_GOTREF(__pyx_t_8);
18979
19429
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
18980
19430
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
18981
- __PYX_ERR(2, 990, __pyx_L5_except_error)
19431
+ __PYX_ERR(2, 1032, __pyx_L5_except_error)
18982
19432
  }
18983
19433
  goto __pyx_L5_except_error;
18984
19434
 
18985
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":987
19435
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
18986
19436
  *
18987
19437
  * cdef inline int import_umath() except -1:
18988
19438
  * try: # <<<<<<<<<<<<<<
@@ -18998,8 +19448,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
18998
19448
  __pyx_L8_try_end:;
18999
19449
  }
19000
19450
 
19001
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":986
19002
- * raise ImportError("numpy.core.multiarray failed to import")
19451
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1028
19452
+ * raise ImportError("numpy._core.multiarray failed to import")
19003
19453
  *
19004
19454
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
19005
19455
  * try:
@@ -19021,8 +19471,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19021
19471
  return __pyx_r;
19022
19472
  }
19023
19473
 
19024
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":992
19025
- * raise ImportError("numpy.core.umath failed to import")
19474
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1034
19475
+ * raise ImportError("numpy._core.umath failed to import")
19026
19476
  *
19027
19477
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
19028
19478
  * try:
@@ -19045,7 +19495,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19045
19495
  int __pyx_clineno = 0;
19046
19496
  __Pyx_RefNannySetupContext("import_ufunc", 1);
19047
19497
 
19048
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":993
19498
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
19049
19499
  *
19050
19500
  * cdef inline int import_ufunc() except -1:
19051
19501
  * try: # <<<<<<<<<<<<<<
@@ -19061,16 +19511,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19061
19511
  __Pyx_XGOTREF(__pyx_t_3);
19062
19512
  /*try:*/ {
19063
19513
 
19064
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":994
19514
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
19065
19515
  * cdef inline int import_ufunc() except -1:
19066
19516
  * try:
19067
19517
  * _import_umath() # <<<<<<<<<<<<<<
19068
19518
  * except Exception:
19069
- * raise ImportError("numpy.core.umath failed to import")
19519
+ * raise ImportError("numpy._core.umath failed to import")
19070
19520
  */
19071
- __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 994, __pyx_L3_error)
19521
+ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1036, __pyx_L3_error)
19072
19522
 
19073
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":993
19523
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
19074
19524
  *
19075
19525
  * cdef inline int import_ufunc() except -1:
19076
19526
  * try: # <<<<<<<<<<<<<<
@@ -19084,37 +19534,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19084
19534
  goto __pyx_L8_try_end;
19085
19535
  __pyx_L3_error:;
19086
19536
 
19087
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":995
19537
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1037
19088
19538
  * try:
19089
19539
  * _import_umath()
19090
19540
  * except Exception: # <<<<<<<<<<<<<<
19091
- * raise ImportError("numpy.core.umath failed to import")
19541
+ * raise ImportError("numpy._core.umath failed to import")
19092
19542
  *
19093
19543
  */
19094
19544
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
19095
19545
  if (__pyx_t_4) {
19096
19546
  __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, 995, __pyx_L5_except_error)
19547
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1037, __pyx_L5_except_error)
19098
19548
  __Pyx_XGOTREF(__pyx_t_5);
19099
19549
  __Pyx_XGOTREF(__pyx_t_6);
19100
19550
  __Pyx_XGOTREF(__pyx_t_7);
19101
19551
 
19102
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":996
19552
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1038
19103
19553
  * _import_umath()
19104
19554
  * except Exception:
19105
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
19555
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
19106
19556
  *
19107
19557
  *
19108
19558
  */
19109
- __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 996, __pyx_L5_except_error)
19559
+ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1038, __pyx_L5_except_error)
19110
19560
  __Pyx_GOTREF(__pyx_t_8);
19111
19561
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
19112
19562
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
19113
- __PYX_ERR(2, 996, __pyx_L5_except_error)
19563
+ __PYX_ERR(2, 1038, __pyx_L5_except_error)
19114
19564
  }
19115
19565
  goto __pyx_L5_except_error;
19116
19566
 
19117
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":993
19567
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
19118
19568
  *
19119
19569
  * cdef inline int import_ufunc() except -1:
19120
19570
  * try: # <<<<<<<<<<<<<<
@@ -19130,8 +19580,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19130
19580
  __pyx_L8_try_end:;
19131
19581
  }
19132
19582
 
19133
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":992
19134
- * raise ImportError("numpy.core.umath failed to import")
19583
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1034
19584
+ * raise ImportError("numpy._core.umath failed to import")
19135
19585
  *
19136
19586
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
19137
19587
  * try:
@@ -19153,10 +19603,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19153
19603
  return __pyx_r;
19154
19604
  }
19155
19605
 
19156
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":999
19606
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
19157
19607
  *
19158
19608
  *
19159
- * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
19609
+ * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19160
19610
  * """
19161
19611
  * Cython equivalent of `isinstance(obj, np.timedelta64)`
19162
19612
  */
@@ -19164,7 +19614,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19164
19614
  static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
19165
19615
  int __pyx_r;
19166
19616
 
19167
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1011
19617
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
19168
19618
  * bool
19169
19619
  * """
19170
19620
  * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
@@ -19174,10 +19624,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19174
19624
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
19175
19625
  goto __pyx_L0;
19176
19626
 
19177
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":999
19627
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
19178
19628
  *
19179
19629
  *
19180
- * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
19630
+ * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19181
19631
  * """
19182
19632
  * Cython equivalent of `isinstance(obj, np.timedelta64)`
19183
19633
  */
@@ -19187,10 +19637,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19187
19637
  return __pyx_r;
19188
19638
  }
19189
19639
 
19190
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1014
19640
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
19191
19641
  *
19192
19642
  *
19193
- * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
19643
+ * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19194
19644
  * """
19195
19645
  * Cython equivalent of `isinstance(obj, np.datetime64)`
19196
19646
  */
@@ -19198,7 +19648,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19198
19648
  static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
19199
19649
  int __pyx_r;
19200
19650
 
19201
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1026
19651
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1068
19202
19652
  * bool
19203
19653
  * """
19204
19654
  * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
@@ -19208,10 +19658,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19208
19658
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
19209
19659
  goto __pyx_L0;
19210
19660
 
19211
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1014
19661
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
19212
19662
  *
19213
19663
  *
19214
- * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
19664
+ * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19215
19665
  * """
19216
19666
  * Cython equivalent of `isinstance(obj, np.datetime64)`
19217
19667
  */
@@ -19221,10 +19671,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19221
19671
  return __pyx_r;
19222
19672
  }
19223
19673
 
19224
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1029
19674
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1071
19225
19675
  *
19226
19676
  *
19227
- * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
19677
+ * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19228
19678
  * """
19229
19679
  * returns the int64 value underlying scalar numpy datetime64 object
19230
19680
  */
@@ -19232,7 +19682,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19232
19682
  static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
19233
19683
  npy_datetime __pyx_r;
19234
19684
 
19235
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1036
19685
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1078
19236
19686
  * also needed. That can be found using `get_datetime64_unit`.
19237
19687
  * """
19238
19688
  * return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -19242,10 +19692,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19242
19692
  __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
19243
19693
  goto __pyx_L0;
19244
19694
 
19245
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1029
19695
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1071
19246
19696
  *
19247
19697
  *
19248
- * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
19698
+ * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19249
19699
  * """
19250
19700
  * returns the int64 value underlying scalar numpy datetime64 object
19251
19701
  */
@@ -19255,10 +19705,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19255
19705
  return __pyx_r;
19256
19706
  }
19257
19707
 
19258
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1039
19708
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
19259
19709
  *
19260
19710
  *
19261
- * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
19711
+ * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19262
19712
  * """
19263
19713
  * returns the int64 value underlying scalar numpy timedelta64 object
19264
19714
  */
@@ -19266,7 +19716,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19266
19716
  static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
19267
19717
  npy_timedelta __pyx_r;
19268
19718
 
19269
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1043
19719
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1085
19270
19720
  * returns the int64 value underlying scalar numpy timedelta64 object
19271
19721
  * """
19272
19722
  * return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -19276,10 +19726,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19276
19726
  __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
19277
19727
  goto __pyx_L0;
19278
19728
 
19279
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1039
19729
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
19280
19730
  *
19281
19731
  *
19282
- * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
19732
+ * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19283
19733
  * """
19284
19734
  * returns the int64 value underlying scalar numpy timedelta64 object
19285
19735
  */
@@ -19289,10 +19739,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19289
19739
  return __pyx_r;
19290
19740
  }
19291
19741
 
19292
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1046
19742
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1088
19293
19743
  *
19294
19744
  *
19295
- * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
19745
+ * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19296
19746
  * """
19297
19747
  * returns the unit part of the dtype for a numpy datetime64 object.
19298
19748
  */
@@ -19300,18 +19750,20 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19300
19750
  static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
19301
19751
  NPY_DATETIMEUNIT __pyx_r;
19302
19752
 
19303
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1050
19753
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1092
19304
19754
  * returns the unit part of the dtype for a numpy datetime64 object.
19305
19755
  * """
19306
19756
  * return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
19757
+ *
19758
+ *
19307
19759
  */
19308
19760
  __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
19309
19761
  goto __pyx_L0;
19310
19762
 
19311
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":1046
19763
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1088
19312
19764
  *
19313
19765
  *
19314
- * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
19766
+ * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19315
19767
  * """
19316
19768
  * returns the unit part of the dtype for a numpy datetime64 object.
19317
19769
  */
@@ -19601,14 +20053,15 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
19601
20053
  int __pyx_t_16;
19602
20054
  __pyx_t_5numpy_int32_t __pyx_t_17;
19603
20055
  Py_ssize_t __pyx_t_18;
19604
- __Pyx_memviewslice __pyx_t_19 = { 0, 0, { 0 }, { 0 }, { 0 } };
19605
- Py_ssize_t __pyx_t_20;
20056
+ unsigned int __pyx_t_19;
20057
+ __Pyx_memviewslice __pyx_t_20 = { 0, 0, { 0 }, { 0 }, { 0 } };
19606
20058
  Py_ssize_t __pyx_t_21;
19607
20059
  Py_ssize_t __pyx_t_22;
19608
- PyArrayObject *__pyx_t_23 = NULL;
19609
- int __pyx_t_24;
19610
- __pyx_t_5numpy_float32_t __pyx_t_25;
19611
- float __pyx_t_26;
20060
+ Py_ssize_t __pyx_t_23;
20061
+ PyArrayObject *__pyx_t_24 = NULL;
20062
+ int __pyx_t_25;
20063
+ __pyx_t_5numpy_float32_t __pyx_t_26;
20064
+ float __pyx_t_27;
19612
20065
  int __pyx_lineno = 0;
19613
20066
  const char *__pyx_filename = NULL;
19614
20067
  int __pyx_clineno = 0;
@@ -19967,7 +20420,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
19967
20420
  __pyx_t_3 = PyNumber_Negative(((PyObject *)__pyx_v_residuals)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 49, __pyx_L1_error)
19968
20421
  __Pyx_GOTREF(__pyx_t_3);
19969
20422
  __pyx_t_4 = NULL;
19970
- __pyx_t_12 = 0;
20423
+ __pyx_t_19 = 0;
19971
20424
  #if CYTHON_UNPACK_METHODS
19972
20425
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
19973
20426
  __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
@@ -19976,13 +20429,13 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
19976
20429
  __Pyx_INCREF(__pyx_t_4);
19977
20430
  __Pyx_INCREF(function);
19978
20431
  __Pyx_DECREF_SET(__pyx_t_2, function);
19979
- __pyx_t_12 = 1;
20432
+ __pyx_t_19 = 1;
19980
20433
  }
19981
20434
  }
19982
20435
  #endif
19983
20436
  {
19984
20437
  PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3};
19985
- __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_12, 1+__pyx_t_12);
20438
+ __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_19, 1+__pyx_t_19);
19986
20439
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
19987
20440
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19988
20441
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error)
@@ -19998,7 +20451,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
19998
20451
  __Pyx_GOTREF(__pyx_t_3);
19999
20452
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20000
20453
  __pyx_t_1 = NULL;
20001
- __pyx_t_12 = 0;
20454
+ __pyx_t_19 = 0;
20002
20455
  #if CYTHON_UNPACK_METHODS
20003
20456
  if (likely(PyMethod_Check(__pyx_t_2))) {
20004
20457
  __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
@@ -20007,24 +20460,24 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20007
20460
  __Pyx_INCREF(__pyx_t_1);
20008
20461
  __Pyx_INCREF(function);
20009
20462
  __Pyx_DECREF_SET(__pyx_t_2, function);
20010
- __pyx_t_12 = 1;
20463
+ __pyx_t_19 = 1;
20011
20464
  }
20012
20465
  }
20013
20466
  #endif
20014
20467
  {
20015
20468
  PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_3};
20016
- __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_12, 1+__pyx_t_12);
20469
+ __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_19, 1+__pyx_t_19);
20017
20470
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
20018
20471
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20019
20472
  if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 49, __pyx_L1_error)
20020
20473
  __Pyx_GOTREF(__pyx_t_5);
20021
20474
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20022
20475
  }
20023
- __pyx_t_19 = __Pyx_PyObject_to_MemoryviewSlice_ds_int(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_19.memview)) __PYX_ERR(0, 49, __pyx_L1_error)
20476
+ __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
20477
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20025
- __pyx_v_indexes = __pyx_t_19;
20026
- __pyx_t_19.memview = NULL;
20027
- __pyx_t_19.data = NULL;
20478
+ __pyx_v_indexes = __pyx_t_20;
20479
+ __pyx_t_20.memview = NULL;
20480
+ __pyx_t_20.data = NULL;
20028
20481
 
20029
20482
  /* "sknetwork/linalg/push.pyx":50
20030
20483
  * # node with high residual value will be processed first
@@ -20038,12 +20491,12 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20038
20491
  __PYX_ERR(0, 50, __pyx_L1_error)
20039
20492
  }
20040
20493
  __PYX_INC_MEMVIEW(&__pyx_v_indexes, 1);
20041
- __pyx_t_19 = __pyx_v_indexes;
20042
- __pyx_t_20 = __Pyx_MemoryView_Len(__pyx_t_19);
20043
- for (__pyx_t_22 = 0; __pyx_t_22 < __pyx_t_20; __pyx_t_22++) {
20044
- __pyx_t_21 = __pyx_t_22;
20045
- __pyx_t_13 = __pyx_t_21;
20046
- __pyx_v_index = (*((int *) ( /* dim=0 */ (__pyx_t_19.data + __pyx_t_13 * __pyx_t_19.strides[0]) )));
20494
+ __pyx_t_20 = __pyx_v_indexes;
20495
+ __pyx_t_21 = __Pyx_MemoryView_Len(__pyx_t_20);
20496
+ for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_21; __pyx_t_23++) {
20497
+ __pyx_t_22 = __pyx_t_23;
20498
+ __pyx_t_13 = __pyx_t_22;
20499
+ __pyx_v_index = (*((int *) ( /* dim=0 */ (__pyx_t_20.data + __pyx_t_13 * __pyx_t_20.strides[0]) )));
20047
20500
 
20048
20501
  /* "sknetwork/linalg/push.pyx":51
20049
20502
  * indexes = np.argsort(-residuals).astype(np.int32)
@@ -20054,8 +20507,8 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20054
20507
  */
20055
20508
  __pyx_v_worklist.push(__pyx_v_index);
20056
20509
  }
20057
- __PYX_XCLEAR_MEMVIEW(&__pyx_t_19, 1);
20058
- __pyx_t_19.memview = NULL; __pyx_t_19.data = NULL;
20510
+ __PYX_XCLEAR_MEMVIEW(&__pyx_t_20, 1);
20511
+ __pyx_t_20.memview = NULL; __pyx_t_20.data = NULL;
20059
20512
 
20060
20513
  /* "sknetwork/linalg/push.pyx":52
20061
20514
  * for index in indexes:
@@ -20096,11 +20549,11 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20096
20549
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20097
20550
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20098
20551
  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
- __pyx_t_23 = ((PyArrayObject *)__pyx_t_4);
20552
+ __pyx_t_24 = ((PyArrayObject *)__pyx_t_4);
20100
20553
  {
20101
20554
  __Pyx_BufFmt_StackElem __pyx_stack[1];
20102
20555
  __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_scores.rcbuffer->pybuffer);
20103
- __pyx_t_12 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)__pyx_t_23, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack);
20556
+ __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
20557
  if (unlikely(__pyx_t_12 < 0)) {
20105
20558
  PyErr_Fetch(&__pyx_t_10, &__pyx_t_9, &__pyx_t_8);
20106
20559
  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 +20567,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20114
20567
  __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
20568
  if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 52, __pyx_L1_error)
20116
20569
  }
20117
- __pyx_t_23 = 0;
20570
+ __pyx_t_24 = 0;
20118
20571
  __pyx_v_scores = ((PyArrayObject *)__pyx_t_4);
20119
20572
  __pyx_t_4 = 0;
20120
20573
 
@@ -20126,8 +20579,8 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20126
20579
  * worklist.pop()
20127
20580
  */
20128
20581
  while (1) {
20129
- __pyx_t_24 = (!__pyx_v_worklist.empty());
20130
- if (!__pyx_t_24) break;
20582
+ __pyx_t_25 = (!__pyx_v_worklist.empty());
20583
+ if (!__pyx_t_25) break;
20131
20584
 
20132
20585
  /* "sknetwork/linalg/push.pyx":55
20133
20586
  *
@@ -20213,7 +20666,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20213
20666
  if (__pyx_t_14 > 0)
20214
20667
  {
20215
20668
  #ifdef _OPENMP
20216
- #pragma omp parallel private(__pyx_t_13, __pyx_t_17, __pyx_t_24, __pyx_t_25) private(__pyx_filename, __pyx_lineno, __pyx_clineno) shared(__pyx_parallel_why, __pyx_parallel_exc_type, __pyx_parallel_exc_value, __pyx_parallel_exc_tb)
20669
+ #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
20670
  #endif /* _OPENMP */
20218
20671
  {
20219
20672
  #ifdef _OPENMP
@@ -20269,7 +20722,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20269
20722
  * if residuals[neighbor] > tol > tmp:
20270
20723
  * worklist.push(neighbor)
20271
20724
  */
20272
- __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)) * (1.0 - __pyx_v_damping_factor));
20725
+ __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
20726
  __pyx_t_13 = __pyx_v_vertex;
20274
20727
  __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
20728
  if (unlikely(__pyx_t_17 == 0)) {
@@ -20291,7 +20744,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20291
20744
  * if residuals[neighbor] > tol > tmp:
20292
20745
  */
20293
20746
  __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) += (__pyx_t_25 / ((__pyx_t_5numpy_float32_t)__pyx_t_17));
20747
+ *__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
20748
 
20296
20749
  /* "sknetwork/linalg/push.pyx":67
20297
20750
  * residuals[neighbor] += residuals[vertex] * \
@@ -20301,11 +20754,11 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20301
20754
  * norm = np.linalg.norm(scores, 1)
20302
20755
  */
20303
20756
  __pyx_t_13 = __pyx_v_neighbor;
20304
- __pyx_t_24 = ((*__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);
20305
- if (__pyx_t_24) {
20306
- __pyx_t_24 = (__pyx_v_tol > __pyx_v_tmp);
20757
+ __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);
20758
+ if (__pyx_t_25) {
20759
+ __pyx_t_25 = (__pyx_v_tol > __pyx_v_tmp);
20307
20760
  }
20308
- if (__pyx_t_24) {
20761
+ if (__pyx_t_25) {
20309
20762
 
20310
20763
  /* "sknetwork/linalg/push.pyx":68
20311
20764
  * (1 - damping_factor) / degrees[vertex]
@@ -20452,7 +20905,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20452
20905
  __Pyx_GOTREF(__pyx_t_3);
20453
20906
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20454
20907
  __pyx_t_1 = NULL;
20455
- __pyx_t_14 = 0;
20908
+ __pyx_t_19 = 0;
20456
20909
  #if CYTHON_UNPACK_METHODS
20457
20910
  if (likely(PyMethod_Check(__pyx_t_3))) {
20458
20911
  __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
@@ -20461,21 +20914,21 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20461
20914
  __Pyx_INCREF(__pyx_t_1);
20462
20915
  __Pyx_INCREF(function);
20463
20916
  __Pyx_DECREF_SET(__pyx_t_3, function);
20464
- __pyx_t_14 = 1;
20917
+ __pyx_t_19 = 1;
20465
20918
  }
20466
20919
  }
20467
20920
  #endif
20468
20921
  {
20469
20922
  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-__pyx_t_14, 2+__pyx_t_14);
20923
+ __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_19, 2+__pyx_t_19);
20471
20924
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
20472
20925
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L1_error)
20473
20926
  __Pyx_GOTREF(__pyx_t_4);
20474
20927
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20475
20928
  }
20476
- __pyx_t_26 = __pyx_PyFloat_AsFloat(__pyx_t_4); if (unlikely((__pyx_t_26 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 69, __pyx_L1_error)
20929
+ __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
20930
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20478
- __pyx_v_norm = __pyx_t_26;
20931
+ __pyx_v_norm = __pyx_t_27;
20479
20932
 
20480
20933
  /* "sknetwork/linalg/push.pyx":70
20481
20934
  * worklist.push(neighbor)
@@ -20489,11 +20942,11 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20489
20942
  __Pyx_GOTREF(__pyx_t_3);
20490
20943
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20491
20944
  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
- __pyx_t_23 = ((PyArrayObject *)__pyx_t_3);
20945
+ __pyx_t_24 = ((PyArrayObject *)__pyx_t_3);
20493
20946
  {
20494
20947
  __Pyx_BufFmt_StackElem __pyx_stack[1];
20495
20948
  __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_scores.rcbuffer->pybuffer);
20496
- __pyx_t_14 = __Pyx_GetBufferAndValidate(&__pyx_pybuffernd_scores.rcbuffer->pybuffer, (PyObject*)__pyx_t_23, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack);
20949
+ __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
20950
  if (unlikely(__pyx_t_14 < 0)) {
20498
20951
  PyErr_Fetch(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
20499
20952
  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 +20960,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20507
20960
  __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
20961
  if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(0, 70, __pyx_L1_error)
20509
20962
  }
20510
- __pyx_t_23 = 0;
20963
+ __pyx_t_24 = 0;
20511
20964
  __Pyx_DECREF_SET(__pyx_v_scores, ((PyArrayObject *)__pyx_t_3));
20512
20965
  __pyx_t_3 = 0;
20513
20966
 
@@ -20536,7 +20989,7 @@ static PyObject *__pyx_pf_9sknetwork_6linalg_4push_push_pagerank(CYTHON_UNUSED P
20536
20989
  __Pyx_XDECREF(__pyx_t_3);
20537
20990
  __Pyx_XDECREF(__pyx_t_4);
20538
20991
  __Pyx_XDECREF(__pyx_t_5);
20539
- __PYX_XCLEAR_MEMVIEW(&__pyx_t_19, 1);
20992
+ __PYX_XCLEAR_MEMVIEW(&__pyx_t_20, 1);
20540
20993
  { PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
20541
20994
  __Pyx_PyThreadState_declare
20542
20995
  __Pyx_PyThreadState_assign
@@ -20820,6 +21273,9 @@ static PyTypeObject __pyx_type___pyx_array = {
20820
21273
  #if PY_VERSION_HEX >= 0x030C0000
20821
21274
  0, /*tp_watched*/
20822
21275
  #endif
21276
+ #if PY_VERSION_HEX >= 0x030d00A4
21277
+ 0, /*tp_versions_used*/
21278
+ #endif
20823
21279
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
20824
21280
  0, /*tp_pypy_flags*/
20825
21281
  #endif
@@ -20990,6 +21446,9 @@ static PyTypeObject __pyx_type___pyx_MemviewEnum = {
20990
21446
  #if PY_VERSION_HEX >= 0x030C0000
20991
21447
  0, /*tp_watched*/
20992
21448
  #endif
21449
+ #if PY_VERSION_HEX >= 0x030d00A4
21450
+ 0, /*tp_versions_used*/
21451
+ #endif
20993
21452
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
20994
21453
  0, /*tp_pypy_flags*/
20995
21454
  #endif
@@ -21333,6 +21792,9 @@ static PyTypeObject __pyx_type___pyx_memoryview = {
21333
21792
  #if PY_VERSION_HEX >= 0x030C0000
21334
21793
  0, /*tp_watched*/
21335
21794
  #endif
21795
+ #if PY_VERSION_HEX >= 0x030d00A4
21796
+ 0, /*tp_versions_used*/
21797
+ #endif
21336
21798
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
21337
21799
  0, /*tp_pypy_flags*/
21338
21800
  #endif
@@ -21505,6 +21967,9 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = {
21505
21967
  #if PY_VERSION_HEX >= 0x030C0000
21506
21968
  0, /*tp_watched*/
21507
21969
  #endif
21970
+ #if PY_VERSION_HEX >= 0x030d00A4
21971
+ 0, /*tp_versions_used*/
21972
+ #endif
21508
21973
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
21509
21974
  0, /*tp_pypy_flags*/
21510
21975
  #endif
@@ -21630,8 +22095,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
21630
22095
  {&__pyx_n_s_norm, __pyx_k_norm, sizeof(__pyx_k_norm), 0, 0, 1, 1},
21631
22096
  {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
21632
22097
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
21633
- {&__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},
21634
- {&__pyx_kp_u_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor, sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 1, 0, 0},
22098
+ {&__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},
22099
+ {&__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
22100
  {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
21636
22101
  {&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1},
21637
22102
  {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
@@ -21697,7 +22162,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
21697
22162
  __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 408, __pyx_L1_error)
21698
22163
  __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 618, __pyx_L1_error)
21699
22164
  __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, 984, __pyx_L1_error)
22165
+ __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1026, __pyx_L1_error)
21701
22166
  return 0;
21702
22167
  __pyx_L1_error:;
21703
22168
  return -1;
@@ -21744,25 +22209,25 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
21744
22209
  __Pyx_GOTREF(__pyx_tuple__8);
21745
22210
  __Pyx_GIVEREF(__pyx_tuple__8);
21746
22211
 
21747
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":984
22212
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
21748
22213
  * __pyx_import_array()
21749
22214
  * except Exception:
21750
- * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
22215
+ * raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
21751
22216
  *
21752
22217
  * cdef inline int import_umath() except -1:
21753
22218
  */
21754
- __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 984, __pyx_L1_error)
22219
+ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_multiarray_failed_to); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 1026, __pyx_L1_error)
21755
22220
  __Pyx_GOTREF(__pyx_tuple__9);
21756
22221
  __Pyx_GIVEREF(__pyx_tuple__9);
21757
22222
 
21758
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":990
22223
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1032
21759
22224
  * _import_umath()
21760
22225
  * except Exception:
21761
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
22226
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
21762
22227
  *
21763
22228
  * cdef inline int import_ufunc() except -1:
21764
22229
  */
21765
- __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 990, __pyx_L1_error)
22230
+ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_umath_failed_to_impo); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 1032, __pyx_L1_error)
21766
22231
  __Pyx_GOTREF(__pyx_tuple__10);
21767
22232
  __Pyx_GIVEREF(__pyx_tuple__10);
21768
22233
 
@@ -22143,33 +22608,33 @@ static int __Pyx_modinit_type_import_code(void) {
22143
22608
  /*--- Type import code ---*/
22144
22609
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
22145
22610
  __Pyx_GOTREF(__pyx_t_1);
22146
- __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
22611
+ __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
22147
22612
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
22148
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
22613
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
22149
22614
  #elif CYTHON_COMPILING_IN_LIMITED_API
22150
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
22615
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
22151
22616
  #else
22152
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyHeapTypeObject),
22617
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject),
22153
22618
  #endif
22154
- __Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
22619
+ __Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
22155
22620
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22156
- __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 202, __pyx_L1_error)
22621
+ __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 271, __pyx_L1_error)
22157
22622
  __Pyx_GOTREF(__pyx_t_1);
22158
- __pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 202, __pyx_L1_error)
22159
- __pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 225, __pyx_L1_error)
22160
- __pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 229, __pyx_L1_error)
22161
- __pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 238, __pyx_L1_error)
22162
- __pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 809, __pyx_L1_error)
22163
- __pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 811, __pyx_L1_error)
22164
- __pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 813, __pyx_L1_error)
22165
- __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 815, __pyx_L1_error)
22166
- __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 817, __pyx_L1_error)
22167
- __pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 819, __pyx_L1_error)
22168
- __pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 821, __pyx_L1_error)
22169
- __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 823, __pyx_L1_error)
22170
- __pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 825, __pyx_L1_error)
22171
- __pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 827, __pyx_L1_error)
22172
- __pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 866, __pyx_L1_error)
22623
+ __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, 271, __pyx_L1_error)
22624
+ __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, 316, __pyx_L1_error)
22625
+ __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, 320, __pyx_L1_error)
22626
+ __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, 359, __pyx_L1_error)
22627
+ __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, 848, __pyx_L1_error)
22628
+ __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, 850, __pyx_L1_error)
22629
+ __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, 852, __pyx_L1_error)
22630
+ __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, 854, __pyx_L1_error)
22631
+ __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, 856, __pyx_L1_error)
22632
+ __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, 858, __pyx_L1_error)
22633
+ __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, 860, __pyx_L1_error)
22634
+ __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, 862, __pyx_L1_error)
22635
+ __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, 864, __pyx_L1_error)
22636
+ __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, 866, __pyx_L1_error)
22637
+ __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, 930, __pyx_L1_error)
22173
22638
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22174
22639
  __Pyx_RefNannyFinishContext();
22175
22640
  return 0;
@@ -25493,7 +25958,6 @@ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
25493
25958
  }
25494
25959
 
25495
25960
  /* HasAttr */
25496
- #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
25497
25961
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
25498
25962
  PyObject *r;
25499
25963
  if (unlikely(!__Pyx_PyBaseString_Check(n))) {
@@ -25510,7 +25974,6 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
25510
25974
  return 1;
25511
25975
  }
25512
25976
  }
25513
- #endif
25514
25977
 
25515
25978
  /* IsLittleEndian */
25516
25979
  static CYTHON_INLINE int __Pyx_Is_Little_Endian(void)
@@ -26704,10 +27167,10 @@ __PYX_GOOD:
26704
27167
  #endif
26705
27168
 
26706
27169
  /* TypeImport */
26707
- #ifndef __PYX_HAVE_RT_ImportType_3_0_10
26708
- #define __PYX_HAVE_RT_ImportType_3_0_10
26709
- static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *module_name, const char *class_name,
26710
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size)
27170
+ #ifndef __PYX_HAVE_RT_ImportType_3_0_12
27171
+ #define __PYX_HAVE_RT_ImportType_3_0_12
27172
+ static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name,
27173
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size)
26711
27174
  {
26712
27175
  PyObject *result = 0;
26713
27176
  char warning[200];
@@ -26761,7 +27224,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
26761
27224
  module_name, class_name, size, basicsize+itemsize);
26762
27225
  goto bad;
26763
27226
  }
26764
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_10 &&
27227
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_12 &&
26765
27228
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
26766
27229
  PyErr_Format(PyExc_ValueError,
26767
27230
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -26769,7 +27232,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
26769
27232
  module_name, class_name, size, basicsize, basicsize+itemsize);
26770
27233
  goto bad;
26771
27234
  }
26772
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_10 && (size_t)basicsize > size) {
27235
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_12 && (size_t)basicsize > size) {
26773
27236
  PyOS_snprintf(warning, sizeof(warning),
26774
27237
  "%s.%s size changed, may indicate binary incompatibility. "
26775
27238
  "Expected %zd from C header, got %zd from PyObject",
@@ -27904,6 +28367,9 @@ static PyTypeObject __pyx_CyFunctionType_type = {
27904
28367
  #if PY_VERSION_HEX >= 0x030C0000
27905
28368
  0,
27906
28369
  #endif
28370
+ #if PY_VERSION_HEX >= 0x030d00A4
28371
+ 0,
28372
+ #endif
27907
28373
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
27908
28374
  0,
27909
28375
  #endif
@@ -28089,7 +28555,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
28089
28555
  #include "compile.h"
28090
28556
  #include "frameobject.h"
28091
28557
  #include "traceback.h"
28092
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
28558
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
28093
28559
  #ifndef Py_BUILD_CORE
28094
28560
  #define Py_BUILD_CORE 1
28095
28561
  #endif
@@ -28950,6 +29416,160 @@ static CYTHON_INLINE int __pyx_memview_set_int(const char *itemp, PyObject *obj)
28950
29416
  #endif
28951
29417
  #endif
28952
29418
 
29419
+ /* Declarations */
29420
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
29421
+ #ifdef __cplusplus
29422
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
29423
+ return ::std::complex< long double >(x, y);
29424
+ }
29425
+ #else
29426
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
29427
+ return x + y*(__pyx_t_long_double_complex)_Complex_I;
29428
+ }
29429
+ #endif
29430
+ #else
29431
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
29432
+ __pyx_t_long_double_complex z;
29433
+ z.real = x;
29434
+ z.imag = y;
29435
+ return z;
29436
+ }
29437
+ #endif
29438
+
29439
+ /* Arithmetic */
29440
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
29441
+ #else
29442
+ static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
29443
+ return (a.real == b.real) && (a.imag == b.imag);
29444
+ }
29445
+ 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) {
29446
+ __pyx_t_long_double_complex z;
29447
+ z.real = a.real + b.real;
29448
+ z.imag = a.imag + b.imag;
29449
+ return z;
29450
+ }
29451
+ 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) {
29452
+ __pyx_t_long_double_complex z;
29453
+ z.real = a.real - b.real;
29454
+ z.imag = a.imag - b.imag;
29455
+ return z;
29456
+ }
29457
+ 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) {
29458
+ __pyx_t_long_double_complex z;
29459
+ z.real = a.real * b.real - a.imag * b.imag;
29460
+ z.imag = a.real * b.imag + a.imag * b.real;
29461
+ return z;
29462
+ }
29463
+ #if 1
29464
+ 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) {
29465
+ if (b.imag == 0) {
29466
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
29467
+ } else if (fabsl(b.real) >= fabsl(b.imag)) {
29468
+ if (b.real == 0 && b.imag == 0) {
29469
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
29470
+ } else {
29471
+ long double r = b.imag / b.real;
29472
+ long double s = (long double)(1.0) / (b.real + b.imag * r);
29473
+ return __pyx_t_long_double_complex_from_parts(
29474
+ (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
29475
+ }
29476
+ } else {
29477
+ long double r = b.real / b.imag;
29478
+ long double s = (long double)(1.0) / (b.imag + b.real * r);
29479
+ return __pyx_t_long_double_complex_from_parts(
29480
+ (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
29481
+ }
29482
+ }
29483
+ #else
29484
+ 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) {
29485
+ if (b.imag == 0) {
29486
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
29487
+ } else {
29488
+ long double denom = b.real * b.real + b.imag * b.imag;
29489
+ return __pyx_t_long_double_complex_from_parts(
29490
+ (a.real * b.real + a.imag * b.imag) / denom,
29491
+ (a.imag * b.real - a.real * b.imag) / denom);
29492
+ }
29493
+ }
29494
+ #endif
29495
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex a) {
29496
+ __pyx_t_long_double_complex z;
29497
+ z.real = -a.real;
29498
+ z.imag = -a.imag;
29499
+ return z;
29500
+ }
29501
+ static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex a) {
29502
+ return (a.real == 0) && (a.imag == 0);
29503
+ }
29504
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex a) {
29505
+ __pyx_t_long_double_complex z;
29506
+ z.real = a.real;
29507
+ z.imag = -a.imag;
29508
+ return z;
29509
+ }
29510
+ #if 1
29511
+ static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex z) {
29512
+ #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
29513
+ return sqrtl(z.real*z.real + z.imag*z.imag);
29514
+ #else
29515
+ return hypotl(z.real, z.imag);
29516
+ #endif
29517
+ }
29518
+ 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) {
29519
+ __pyx_t_long_double_complex z;
29520
+ long double r, lnr, theta, z_r, z_theta;
29521
+ if (b.imag == 0 && b.real == (int)b.real) {
29522
+ if (b.real < 0) {
29523
+ long double denom = a.real * a.real + a.imag * a.imag;
29524
+ a.real = a.real / denom;
29525
+ a.imag = -a.imag / denom;
29526
+ b.real = -b.real;
29527
+ }
29528
+ switch ((int)b.real) {
29529
+ case 0:
29530
+ z.real = 1;
29531
+ z.imag = 0;
29532
+ return z;
29533
+ case 1:
29534
+ return a;
29535
+ case 2:
29536
+ return __Pyx_c_prod_long__double(a, a);
29537
+ case 3:
29538
+ z = __Pyx_c_prod_long__double(a, a);
29539
+ return __Pyx_c_prod_long__double(z, a);
29540
+ case 4:
29541
+ z = __Pyx_c_prod_long__double(a, a);
29542
+ return __Pyx_c_prod_long__double(z, z);
29543
+ }
29544
+ }
29545
+ if (a.imag == 0) {
29546
+ if (a.real == 0) {
29547
+ return a;
29548
+ } else if ((b.imag == 0) && (a.real >= 0)) {
29549
+ z.real = powl(a.real, b.real);
29550
+ z.imag = 0;
29551
+ return z;
29552
+ } else if (a.real > 0) {
29553
+ r = a.real;
29554
+ theta = 0;
29555
+ } else {
29556
+ r = -a.real;
29557
+ theta = atan2l(0.0, -1.0);
29558
+ }
29559
+ } else {
29560
+ r = __Pyx_c_abs_long__double(a);
29561
+ theta = atan2l(a.imag, a.real);
29562
+ }
29563
+ lnr = logl(r);
29564
+ z_r = expl(lnr * b.real - theta * b.imag);
29565
+ z_theta = theta * b.real + lnr * b.imag;
29566
+ z.real = z_r * cosl(z_theta);
29567
+ z.imag = z_r * sinl(z_theta);
29568
+ return z;
29569
+ }
29570
+ #endif
29571
+ #endif
29572
+
28953
29573
  /* MemviewSliceCopyTemplate */
28954
29574
  static __Pyx_memviewslice
28955
29575
  __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
@@ -29174,245 +29794,239 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
29174
29794
  }
29175
29795
  return (int) val;
29176
29796
  }
29177
- } else
29797
+ }
29178
29798
  #endif
29179
- if (likely(PyLong_Check(x))) {
29180
- if (is_unsigned) {
29799
+ if (unlikely(!PyLong_Check(x))) {
29800
+ int val;
29801
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29802
+ if (!tmp) return (int) -1;
29803
+ val = __Pyx_PyInt_As_int(tmp);
29804
+ Py_DECREF(tmp);
29805
+ return val;
29806
+ }
29807
+ if (is_unsigned) {
29181
29808
  #if CYTHON_USE_PYLONG_INTERNALS
29182
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29183
- goto raise_neg_overflow;
29184
- } else if (__Pyx_PyLong_IsCompact(x)) {
29185
- __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29186
- } else {
29187
- const digit* digits = __Pyx_PyLong_Digits(x);
29188
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29189
- switch (__Pyx_PyLong_DigitCount(x)) {
29190
- case 2:
29191
- if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
29192
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29193
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29194
- } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
29195
- return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
29196
- }
29809
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29810
+ goto raise_neg_overflow;
29811
+ } else if (__Pyx_PyLong_IsCompact(x)) {
29812
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29813
+ } else {
29814
+ const digit* digits = __Pyx_PyLong_Digits(x);
29815
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
29816
+ switch (__Pyx_PyLong_DigitCount(x)) {
29817
+ case 2:
29818
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
29819
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29820
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29821
+ } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
29822
+ return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
29197
29823
  }
29198
- break;
29199
- case 3:
29200
- if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
29201
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29202
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29203
- } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
29204
- return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
29205
- }
29824
+ }
29825
+ break;
29826
+ case 3:
29827
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
29828
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29829
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29830
+ } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
29831
+ return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
29206
29832
  }
29207
- break;
29208
- case 4:
29209
- if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
29210
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29211
- __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])))
29212
- } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
29213
- return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
29214
- }
29833
+ }
29834
+ break;
29835
+ case 4:
29836
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
29837
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29838
+ __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])))
29839
+ } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
29840
+ return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
29215
29841
  }
29216
- break;
29217
- }
29842
+ }
29843
+ break;
29218
29844
  }
29845
+ }
29219
29846
  #endif
29220
29847
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
29221
- if (unlikely(Py_SIZE(x) < 0)) {
29222
- goto raise_neg_overflow;
29223
- }
29848
+ if (unlikely(Py_SIZE(x) < 0)) {
29849
+ goto raise_neg_overflow;
29850
+ }
29224
29851
  #else
29225
- {
29226
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29227
- if (unlikely(result < 0))
29228
- return (int) -1;
29229
- if (unlikely(result == 1))
29230
- goto raise_neg_overflow;
29231
- }
29852
+ {
29853
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29854
+ if (unlikely(result < 0))
29855
+ return (int) -1;
29856
+ if (unlikely(result == 1))
29857
+ goto raise_neg_overflow;
29858
+ }
29232
29859
  #endif
29233
- if ((sizeof(int) <= sizeof(unsigned long))) {
29234
- __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
29860
+ if ((sizeof(int) <= sizeof(unsigned long))) {
29861
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
29235
29862
  #ifdef HAVE_LONG_LONG
29236
- } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
29237
- __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29863
+ } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
29864
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29238
29865
  #endif
29239
- }
29240
- } else {
29866
+ }
29867
+ } else {
29241
29868
  #if CYTHON_USE_PYLONG_INTERNALS
29242
- if (__Pyx_PyLong_IsCompact(x)) {
29243
- __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29244
- } else {
29245
- const digit* digits = __Pyx_PyLong_Digits(x);
29246
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29247
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
29248
- case -2:
29249
- if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
29250
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29251
- __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29252
- } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29253
- return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29254
- }
29869
+ if (__Pyx_PyLong_IsCompact(x)) {
29870
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29871
+ } else {
29872
+ const digit* digits = __Pyx_PyLong_Digits(x);
29873
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
29874
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
29875
+ case -2:
29876
+ if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
29877
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29878
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29879
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29880
+ return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29255
29881
  }
29256
- break;
29257
- case 2:
29258
- if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
29259
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29260
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29261
- } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29262
- return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29263
- }
29882
+ }
29883
+ break;
29884
+ case 2:
29885
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
29886
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29887
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29888
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29889
+ return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29264
29890
  }
29265
- break;
29266
- case -3:
29267
- if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29268
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29269
- __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29270
- } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29271
- return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29272
- }
29891
+ }
29892
+ break;
29893
+ case -3:
29894
+ if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29895
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29896
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29897
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29898
+ return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29273
29899
  }
29274
- break;
29275
- case 3:
29276
- if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
29277
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29278
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29279
- } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29280
- return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29281
- }
29900
+ }
29901
+ break;
29902
+ case 3:
29903
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
29904
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29905
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29906
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29907
+ return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29282
29908
  }
29283
- break;
29284
- case -4:
29285
- if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29286
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29287
- __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])))
29288
- } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
29289
- return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29290
- }
29909
+ }
29910
+ break;
29911
+ case -4:
29912
+ if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29913
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29914
+ __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])))
29915
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
29916
+ return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29291
29917
  }
29292
- break;
29293
- case 4:
29294
- if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
29295
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29296
- __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])))
29297
- } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
29298
- return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29299
- }
29918
+ }
29919
+ break;
29920
+ case 4:
29921
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
29922
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29923
+ __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])))
29924
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
29925
+ return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
29300
29926
  }
29301
- break;
29302
- }
29303
- }
29304
- #endif
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
- }
29927
+ }
29928
+ break;
29929
+ }
29930
+ }
29354
29931
  #endif
29355
- if (is_unsigned && unlikely(is_negative)) {
29356
- goto raise_neg_overflow;
29357
- } else if (is_negative) {
29358
- stepval = PyNumber_Invert(v);
29359
- if (unlikely(!stepval))
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);
29932
+ if ((sizeof(int) <= sizeof(long))) {
29933
+ __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
29934
+ #ifdef HAVE_LONG_LONG
29935
+ } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
29936
+ __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
29403
29937
  #endif
29938
+ }
29939
+ }
29940
+ {
29941
+ int val;
29942
+ int ret = -1;
29943
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
29944
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
29945
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
29946
+ if (unlikely(bytes_copied == -1)) {
29947
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
29948
+ goto raise_overflow;
29949
+ } else {
29950
+ ret = 0;
29951
+ }
29952
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
29953
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
29954
+ unsigned char *bytes = (unsigned char *)&val;
29955
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
29956
+ bytes, sizeof(val),
29957
+ is_little, !is_unsigned);
29958
+ #else
29959
+ PyObject *v;
29960
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
29961
+ int bits, remaining_bits, is_negative = 0;
29962
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
29963
+ if (likely(PyLong_CheckExact(x))) {
29964
+ v = __Pyx_NewRef(x);
29965
+ } else {
29966
+ v = PyNumber_Long(x);
29967
+ if (unlikely(!v)) return (int) -1;
29968
+ assert(PyLong_CheckExact(v));
29969
+ }
29970
+ {
29971
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
29972
+ if (unlikely(result < 0)) {
29404
29973
  Py_DECREF(v);
29405
- if (likely(!ret))
29406
- return val;
29974
+ return (int) -1;
29407
29975
  }
29408
- return (int) -1;
29976
+ is_negative = result == 1;
29409
29977
  }
29410
- } else {
29411
- int val;
29412
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29413
- if (!tmp) return (int) -1;
29414
- val = __Pyx_PyInt_As_int(tmp);
29415
- Py_DECREF(tmp);
29978
+ if (is_unsigned && unlikely(is_negative)) {
29979
+ Py_DECREF(v);
29980
+ goto raise_neg_overflow;
29981
+ } else if (is_negative) {
29982
+ stepval = PyNumber_Invert(v);
29983
+ Py_DECREF(v);
29984
+ if (unlikely(!stepval))
29985
+ return (int) -1;
29986
+ } else {
29987
+ stepval = v;
29988
+ }
29989
+ v = NULL;
29990
+ val = (int) 0;
29991
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
29992
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
29993
+ for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
29994
+ PyObject *tmp, *digit;
29995
+ long idigit;
29996
+ digit = PyNumber_And(stepval, mask);
29997
+ if (unlikely(!digit)) goto done;
29998
+ idigit = PyLong_AsLong(digit);
29999
+ Py_DECREF(digit);
30000
+ if (unlikely(idigit < 0)) goto done;
30001
+ val |= ((int) idigit) << bits;
30002
+ tmp = PyNumber_Rshift(stepval, shift);
30003
+ if (unlikely(!tmp)) goto done;
30004
+ Py_DECREF(stepval); stepval = tmp;
30005
+ }
30006
+ Py_DECREF(shift); shift = NULL;
30007
+ Py_DECREF(mask); mask = NULL;
30008
+ {
30009
+ long idigit = PyLong_AsLong(stepval);
30010
+ if (unlikely(idigit < 0)) goto done;
30011
+ remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
30012
+ if (unlikely(idigit >= (1L << remaining_bits)))
30013
+ goto raise_overflow;
30014
+ val |= ((int) idigit) << bits;
30015
+ }
30016
+ if (!is_unsigned) {
30017
+ if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
30018
+ goto raise_overflow;
30019
+ if (is_negative)
30020
+ val = ~val;
30021
+ }
30022
+ ret = 0;
30023
+ done:
30024
+ Py_XDECREF(shift);
30025
+ Py_XDECREF(mask);
30026
+ Py_XDECREF(stepval);
30027
+ #endif
30028
+ if (unlikely(ret))
30029
+ return (int) -1;
29416
30030
  return val;
29417
30031
  }
29418
30032
  raise_overflow:
@@ -29456,12 +30070,19 @@ raise_neg_overflow:
29456
30070
  }
29457
30071
  }
29458
30072
  {
29459
- int one = 1; int little = (int)*(unsigned char *)&one;
29460
30073
  unsigned char *bytes = (unsigned char *)&value;
29461
- #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
30074
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
30075
+ if (is_unsigned) {
30076
+ return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
30077
+ } else {
30078
+ return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
30079
+ }
30080
+ #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
30081
+ int one = 1; int little = (int)*(unsigned char *)&one;
29462
30082
  return _PyLong_FromByteArray(bytes, sizeof(int),
29463
30083
  little, !is_unsigned);
29464
30084
  #else
30085
+ int one = 1; int little = (int)*(unsigned char *)&one;
29465
30086
  PyObject *from_bytes, *result = NULL;
29466
30087
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
29467
30088
  from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
@@ -29511,245 +30132,239 @@ raise_neg_overflow:
29511
30132
  }
29512
30133
  return (long) val;
29513
30134
  }
29514
- } else
30135
+ }
29515
30136
  #endif
29516
- if (likely(PyLong_Check(x))) {
29517
- if (is_unsigned) {
30137
+ if (unlikely(!PyLong_Check(x))) {
30138
+ long val;
30139
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
30140
+ if (!tmp) return (long) -1;
30141
+ val = __Pyx_PyInt_As_long(tmp);
30142
+ Py_DECREF(tmp);
30143
+ return val;
30144
+ }
30145
+ if (is_unsigned) {
29518
30146
  #if CYTHON_USE_PYLONG_INTERNALS
29519
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29520
- goto raise_neg_overflow;
29521
- } else if (__Pyx_PyLong_IsCompact(x)) {
29522
- __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29523
- } else {
29524
- const digit* digits = __Pyx_PyLong_Digits(x);
29525
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29526
- switch (__Pyx_PyLong_DigitCount(x)) {
29527
- case 2:
29528
- if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
29529
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29530
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29531
- } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
29532
- return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29533
- }
30147
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
30148
+ goto raise_neg_overflow;
30149
+ } else if (__Pyx_PyLong_IsCompact(x)) {
30150
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
30151
+ } else {
30152
+ const digit* digits = __Pyx_PyLong_Digits(x);
30153
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
30154
+ switch (__Pyx_PyLong_DigitCount(x)) {
30155
+ case 2:
30156
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
30157
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30158
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30159
+ } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
30160
+ return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29534
30161
  }
29535
- break;
29536
- case 3:
29537
- if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
29538
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29539
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29540
- } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
29541
- return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29542
- }
30162
+ }
30163
+ break;
30164
+ case 3:
30165
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
30166
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30167
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30168
+ } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
30169
+ return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29543
30170
  }
29544
- break;
29545
- case 4:
29546
- if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
29547
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29548
- __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])))
29549
- } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
29550
- return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29551
- }
30171
+ }
30172
+ break;
30173
+ case 4:
30174
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
30175
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30176
+ __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])))
30177
+ } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
30178
+ return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29552
30179
  }
29553
- break;
29554
- }
30180
+ }
30181
+ break;
29555
30182
  }
30183
+ }
29556
30184
  #endif
29557
30185
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
29558
- if (unlikely(Py_SIZE(x) < 0)) {
29559
- goto raise_neg_overflow;
29560
- }
30186
+ if (unlikely(Py_SIZE(x) < 0)) {
30187
+ goto raise_neg_overflow;
30188
+ }
29561
30189
  #else
29562
- {
29563
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29564
- if (unlikely(result < 0))
29565
- return (long) -1;
29566
- if (unlikely(result == 1))
29567
- goto raise_neg_overflow;
29568
- }
30190
+ {
30191
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
30192
+ if (unlikely(result < 0))
30193
+ return (long) -1;
30194
+ if (unlikely(result == 1))
30195
+ goto raise_neg_overflow;
30196
+ }
29569
30197
  #endif
29570
- if ((sizeof(long) <= sizeof(unsigned long))) {
29571
- __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
30198
+ if ((sizeof(long) <= sizeof(unsigned long))) {
30199
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
29572
30200
  #ifdef HAVE_LONG_LONG
29573
- } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
29574
- __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
30201
+ } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
30202
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29575
30203
  #endif
29576
- }
29577
- } else {
30204
+ }
30205
+ } else {
29578
30206
  #if CYTHON_USE_PYLONG_INTERNALS
29579
- if (__Pyx_PyLong_IsCompact(x)) {
29580
- __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29581
- } else {
29582
- const digit* digits = __Pyx_PyLong_Digits(x);
29583
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29584
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
29585
- case -2:
29586
- if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
29587
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29588
- __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29589
- } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29590
- return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29591
- }
30207
+ if (__Pyx_PyLong_IsCompact(x)) {
30208
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
30209
+ } else {
30210
+ const digit* digits = __Pyx_PyLong_Digits(x);
30211
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
30212
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
30213
+ case -2:
30214
+ if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
30215
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30216
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30217
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
30218
+ return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29592
30219
  }
29593
- break;
29594
- case 2:
29595
- if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
29596
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29597
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29598
- } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29599
- return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29600
- }
30220
+ }
30221
+ break;
30222
+ case 2:
30223
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
30224
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30225
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30226
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
30227
+ return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29601
30228
  }
29602
- break;
29603
- case -3:
29604
- if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29605
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29606
- __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29607
- } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29608
- return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29609
- }
30229
+ }
30230
+ break;
30231
+ case -3:
30232
+ if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
30233
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30234
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30235
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
30236
+ return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29610
30237
  }
29611
- break;
29612
- case 3:
29613
- if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
29614
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29615
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29616
- } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29617
- return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29618
- }
30238
+ }
30239
+ break;
30240
+ case 3:
30241
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
30242
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30243
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30244
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
30245
+ return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29619
30246
  }
29620
- break;
29621
- case -4:
29622
- if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29623
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29624
- __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])))
29625
- } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
29626
- return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29627
- }
30247
+ }
30248
+ break;
30249
+ case -4:
30250
+ if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
30251
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30252
+ __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])))
30253
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
30254
+ return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29628
30255
  }
29629
- break;
29630
- case 4:
29631
- if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
29632
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29633
- __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])))
29634
- } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
29635
- return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29636
- }
30256
+ }
30257
+ break;
30258
+ case 4:
30259
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
30260
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30261
+ __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])))
30262
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
30263
+ return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29637
30264
  }
29638
- break;
29639
- }
30265
+ }
30266
+ break;
29640
30267
  }
30268
+ }
29641
30269
  #endif
29642
- if ((sizeof(long) <= sizeof(long))) {
29643
- __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
30270
+ if ((sizeof(long) <= sizeof(long))) {
30271
+ __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
29644
30272
  #ifdef HAVE_LONG_LONG
29645
- } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
29646
- __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
30273
+ } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
30274
+ __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
29647
30275
  #endif
29648
- }
30276
+ }
30277
+ }
30278
+ {
30279
+ long val;
30280
+ int ret = -1;
30281
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
30282
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
30283
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
30284
+ if (unlikely(bytes_copied == -1)) {
30285
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
30286
+ goto raise_overflow;
30287
+ } else {
30288
+ ret = 0;
30289
+ }
30290
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
30291
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
30292
+ unsigned char *bytes = (unsigned char *)&val;
30293
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
30294
+ bytes, sizeof(val),
30295
+ is_little, !is_unsigned);
30296
+ #else
30297
+ PyObject *v;
30298
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
30299
+ int bits, remaining_bits, is_negative = 0;
30300
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
30301
+ if (likely(PyLong_CheckExact(x))) {
30302
+ v = __Pyx_NewRef(x);
30303
+ } else {
30304
+ v = PyNumber_Long(x);
30305
+ if (unlikely(!v)) return (long) -1;
30306
+ assert(PyLong_CheckExact(v));
29649
30307
  }
29650
30308
  {
29651
- long val;
29652
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
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
30309
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
30310
+ if (unlikely(result < 0)) {
29741
30311
  Py_DECREF(v);
29742
- if (likely(!ret))
29743
- return val;
30312
+ return (long) -1;
29744
30313
  }
29745
- return (long) -1;
30314
+ is_negative = result == 1;
29746
30315
  }
29747
- } else {
29748
- long val;
29749
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29750
- if (!tmp) return (long) -1;
29751
- val = __Pyx_PyInt_As_long(tmp);
29752
- Py_DECREF(tmp);
30316
+ if (is_unsigned && unlikely(is_negative)) {
30317
+ Py_DECREF(v);
30318
+ goto raise_neg_overflow;
30319
+ } else if (is_negative) {
30320
+ stepval = PyNumber_Invert(v);
30321
+ Py_DECREF(v);
30322
+ if (unlikely(!stepval))
30323
+ return (long) -1;
30324
+ } else {
30325
+ stepval = v;
30326
+ }
30327
+ v = NULL;
30328
+ val = (long) 0;
30329
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
30330
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
30331
+ for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
30332
+ PyObject *tmp, *digit;
30333
+ long idigit;
30334
+ digit = PyNumber_And(stepval, mask);
30335
+ if (unlikely(!digit)) goto done;
30336
+ idigit = PyLong_AsLong(digit);
30337
+ Py_DECREF(digit);
30338
+ if (unlikely(idigit < 0)) goto done;
30339
+ val |= ((long) idigit) << bits;
30340
+ tmp = PyNumber_Rshift(stepval, shift);
30341
+ if (unlikely(!tmp)) goto done;
30342
+ Py_DECREF(stepval); stepval = tmp;
30343
+ }
30344
+ Py_DECREF(shift); shift = NULL;
30345
+ Py_DECREF(mask); mask = NULL;
30346
+ {
30347
+ long idigit = PyLong_AsLong(stepval);
30348
+ if (unlikely(idigit < 0)) goto done;
30349
+ remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
30350
+ if (unlikely(idigit >= (1L << remaining_bits)))
30351
+ goto raise_overflow;
30352
+ val |= ((long) idigit) << bits;
30353
+ }
30354
+ if (!is_unsigned) {
30355
+ if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
30356
+ goto raise_overflow;
30357
+ if (is_negative)
30358
+ val = ~val;
30359
+ }
30360
+ ret = 0;
30361
+ done:
30362
+ Py_XDECREF(shift);
30363
+ Py_XDECREF(mask);
30364
+ Py_XDECREF(stepval);
30365
+ #endif
30366
+ if (unlikely(ret))
30367
+ return (long) -1;
29753
30368
  return val;
29754
30369
  }
29755
30370
  raise_overflow:
@@ -29793,12 +30408,19 @@ raise_neg_overflow:
29793
30408
  }
29794
30409
  }
29795
30410
  {
29796
- int one = 1; int little = (int)*(unsigned char *)&one;
29797
30411
  unsigned char *bytes = (unsigned char *)&value;
29798
- #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
30412
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
30413
+ if (is_unsigned) {
30414
+ return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
30415
+ } else {
30416
+ return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
30417
+ }
30418
+ #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
30419
+ int one = 1; int little = (int)*(unsigned char *)&one;
29799
30420
  return _PyLong_FromByteArray(bytes, sizeof(long),
29800
30421
  little, !is_unsigned);
29801
30422
  #else
30423
+ int one = 1; int little = (int)*(unsigned char *)&one;
29802
30424
  PyObject *from_bytes, *result = NULL;
29803
30425
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
29804
30426
  from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
@@ -29848,245 +30470,239 @@ raise_neg_overflow:
29848
30470
  }
29849
30471
  return (char) val;
29850
30472
  }
29851
- } else
30473
+ }
29852
30474
  #endif
29853
- if (likely(PyLong_Check(x))) {
29854
- if (is_unsigned) {
30475
+ if (unlikely(!PyLong_Check(x))) {
30476
+ char val;
30477
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
30478
+ if (!tmp) return (char) -1;
30479
+ val = __Pyx_PyInt_As_char(tmp);
30480
+ Py_DECREF(tmp);
30481
+ return val;
30482
+ }
30483
+ if (is_unsigned) {
29855
30484
  #if CYTHON_USE_PYLONG_INTERNALS
29856
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29857
- goto raise_neg_overflow;
29858
- } else if (__Pyx_PyLong_IsCompact(x)) {
29859
- __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29860
- } else {
29861
- const digit* digits = __Pyx_PyLong_Digits(x);
29862
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29863
- switch (__Pyx_PyLong_DigitCount(x)) {
29864
- case 2:
29865
- if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
29866
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29867
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29868
- } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
29869
- return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29870
- }
30485
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
30486
+ goto raise_neg_overflow;
30487
+ } else if (__Pyx_PyLong_IsCompact(x)) {
30488
+ __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
30489
+ } else {
30490
+ const digit* digits = __Pyx_PyLong_Digits(x);
30491
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
30492
+ switch (__Pyx_PyLong_DigitCount(x)) {
30493
+ case 2:
30494
+ if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
30495
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30496
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30497
+ } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
30498
+ return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29871
30499
  }
29872
- break;
29873
- case 3:
29874
- if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
29875
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29876
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29877
- } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
29878
- return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29879
- }
30500
+ }
30501
+ break;
30502
+ case 3:
30503
+ if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
30504
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30505
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30506
+ } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
30507
+ return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29880
30508
  }
29881
- break;
29882
- case 4:
29883
- if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
29884
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29885
- __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])))
29886
- } else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
29887
- return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29888
- }
30509
+ }
30510
+ break;
30511
+ case 4:
30512
+ if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
30513
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30514
+ __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])))
30515
+ } else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
30516
+ return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29889
30517
  }
29890
- break;
29891
- }
30518
+ }
30519
+ break;
29892
30520
  }
30521
+ }
29893
30522
  #endif
29894
30523
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
29895
- if (unlikely(Py_SIZE(x) < 0)) {
29896
- goto raise_neg_overflow;
29897
- }
30524
+ if (unlikely(Py_SIZE(x) < 0)) {
30525
+ goto raise_neg_overflow;
30526
+ }
29898
30527
  #else
29899
- {
29900
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29901
- if (unlikely(result < 0))
29902
- return (char) -1;
29903
- if (unlikely(result == 1))
29904
- goto raise_neg_overflow;
29905
- }
30528
+ {
30529
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
30530
+ if (unlikely(result < 0))
30531
+ return (char) -1;
30532
+ if (unlikely(result == 1))
30533
+ goto raise_neg_overflow;
30534
+ }
29906
30535
  #endif
29907
- if ((sizeof(char) <= sizeof(unsigned long))) {
29908
- __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
30536
+ if ((sizeof(char) <= sizeof(unsigned long))) {
30537
+ __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
29909
30538
  #ifdef HAVE_LONG_LONG
29910
- } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
29911
- __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
30539
+ } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
30540
+ __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29912
30541
  #endif
29913
- }
29914
- } else {
30542
+ }
30543
+ } else {
29915
30544
  #if CYTHON_USE_PYLONG_INTERNALS
29916
- if (__Pyx_PyLong_IsCompact(x)) {
29917
- __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29918
- } else {
29919
- const digit* digits = __Pyx_PyLong_Digits(x);
29920
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29921
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
29922
- case -2:
29923
- if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
29924
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29925
- __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29926
- } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
29927
- return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29928
- }
30545
+ if (__Pyx_PyLong_IsCompact(x)) {
30546
+ __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
30547
+ } else {
30548
+ const digit* digits = __Pyx_PyLong_Digits(x);
30549
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
30550
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
30551
+ case -2:
30552
+ if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
30553
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30554
+ __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30555
+ } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
30556
+ return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29929
30557
  }
29930
- break;
29931
- case 2:
29932
- if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
29933
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29934
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29935
- } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
29936
- return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29937
- }
30558
+ }
30559
+ break;
30560
+ case 2:
30561
+ if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
30562
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30563
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30564
+ } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
30565
+ return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29938
30566
  }
29939
- break;
29940
- case -3:
29941
- if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
29942
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29943
- __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29944
- } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
29945
- return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29946
- }
30567
+ }
30568
+ break;
30569
+ case -3:
30570
+ if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
30571
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30572
+ __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30573
+ } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
30574
+ return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29947
30575
  }
29948
- break;
29949
- case 3:
29950
- if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
29951
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29952
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29953
- } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
29954
- return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29955
- }
30576
+ }
30577
+ break;
30578
+ case 3:
30579
+ if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
30580
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30581
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30582
+ } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
30583
+ return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29956
30584
  }
29957
- break;
29958
- case -4:
29959
- if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
29960
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29961
- __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])))
29962
- } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
29963
- return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29964
- }
30585
+ }
30586
+ break;
30587
+ case -4:
30588
+ if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
30589
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30590
+ __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])))
30591
+ } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
30592
+ return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29965
30593
  }
29966
- break;
29967
- case 4:
29968
- if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
29969
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29970
- __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])))
29971
- } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
29972
- return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29973
- }
30594
+ }
30595
+ break;
30596
+ case 4:
30597
+ if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
30598
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30599
+ __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])))
30600
+ } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
30601
+ return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29974
30602
  }
29975
- break;
29976
- }
30603
+ }
30604
+ break;
29977
30605
  }
30606
+ }
29978
30607
  #endif
29979
- if ((sizeof(char) <= sizeof(long))) {
29980
- __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
30608
+ if ((sizeof(char) <= sizeof(long))) {
30609
+ __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
29981
30610
  #ifdef HAVE_LONG_LONG
29982
- } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
29983
- __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
30611
+ } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
30612
+ __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
29984
30613
  #endif
29985
- }
30614
+ }
30615
+ }
30616
+ {
30617
+ char val;
30618
+ int ret = -1;
30619
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
30620
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
30621
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
30622
+ if (unlikely(bytes_copied == -1)) {
30623
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
30624
+ goto raise_overflow;
30625
+ } else {
30626
+ ret = 0;
30627
+ }
30628
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
30629
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
30630
+ unsigned char *bytes = (unsigned char *)&val;
30631
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
30632
+ bytes, sizeof(val),
30633
+ is_little, !is_unsigned);
30634
+ #else
30635
+ PyObject *v;
30636
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
30637
+ int bits, remaining_bits, is_negative = 0;
30638
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
30639
+ if (likely(PyLong_CheckExact(x))) {
30640
+ v = __Pyx_NewRef(x);
30641
+ } else {
30642
+ v = PyNumber_Long(x);
30643
+ if (unlikely(!v)) return (char) -1;
30644
+ assert(PyLong_CheckExact(v));
29986
30645
  }
29987
30646
  {
29988
- char val;
29989
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
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
30647
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
30648
+ if (unlikely(result < 0)) {
30078
30649
  Py_DECREF(v);
30079
- if (likely(!ret))
30080
- return val;
30650
+ return (char) -1;
30081
30651
  }
30082
- return (char) -1;
30652
+ is_negative = result == 1;
30083
30653
  }
30084
- } else {
30085
- char val;
30086
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
30087
- if (!tmp) return (char) -1;
30088
- val = __Pyx_PyInt_As_char(tmp);
30089
- Py_DECREF(tmp);
30654
+ if (is_unsigned && unlikely(is_negative)) {
30655
+ Py_DECREF(v);
30656
+ goto raise_neg_overflow;
30657
+ } else if (is_negative) {
30658
+ stepval = PyNumber_Invert(v);
30659
+ Py_DECREF(v);
30660
+ if (unlikely(!stepval))
30661
+ return (char) -1;
30662
+ } else {
30663
+ stepval = v;
30664
+ }
30665
+ v = NULL;
30666
+ val = (char) 0;
30667
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
30668
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
30669
+ for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
30670
+ PyObject *tmp, *digit;
30671
+ long idigit;
30672
+ digit = PyNumber_And(stepval, mask);
30673
+ if (unlikely(!digit)) goto done;
30674
+ idigit = PyLong_AsLong(digit);
30675
+ Py_DECREF(digit);
30676
+ if (unlikely(idigit < 0)) goto done;
30677
+ val |= ((char) idigit) << bits;
30678
+ tmp = PyNumber_Rshift(stepval, shift);
30679
+ if (unlikely(!tmp)) goto done;
30680
+ Py_DECREF(stepval); stepval = tmp;
30681
+ }
30682
+ Py_DECREF(shift); shift = NULL;
30683
+ Py_DECREF(mask); mask = NULL;
30684
+ {
30685
+ long idigit = PyLong_AsLong(stepval);
30686
+ if (unlikely(idigit < 0)) goto done;
30687
+ remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
30688
+ if (unlikely(idigit >= (1L << remaining_bits)))
30689
+ goto raise_overflow;
30690
+ val |= ((char) idigit) << bits;
30691
+ }
30692
+ if (!is_unsigned) {
30693
+ if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
30694
+ goto raise_overflow;
30695
+ if (is_negative)
30696
+ val = ~val;
30697
+ }
30698
+ ret = 0;
30699
+ done:
30700
+ Py_XDECREF(shift);
30701
+ Py_XDECREF(mask);
30702
+ Py_XDECREF(stepval);
30703
+ #endif
30704
+ if (unlikely(ret))
30705
+ return (char) -1;
30090
30706
  return val;
30091
30707
  }
30092
30708
  raise_overflow: