scikit-network 0.33.0__cp311-cp311-win_amd64.whl → 0.33.2__cp311-cp311-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of scikit-network might be problematic. Click here for more details.

Files changed (45) hide show
  1. scikit_network-0.33.2.dist-info/METADATA +122 -0
  2. {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info}/RECORD +44 -44
  3. {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.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.cp311-win_amd64.pyd +0 -0
  10. sknetwork/classification/vote.cpp +686 -679
  11. sknetwork/clustering/leiden_core.cp311-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.cp311-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.cp311-win_amd64.pyd +0 -0
  22. sknetwork/hierarchy/paris.cpp +1766 -1162
  23. sknetwork/linalg/diteration.cp311-win_amd64.pyd +0 -0
  24. sknetwork/linalg/diteration.cpp +686 -679
  25. sknetwork/linalg/push.cp311-win_amd64.pyd +0 -0
  26. sknetwork/linalg/push.cpp +1763 -1165
  27. sknetwork/linalg/sparse_lowrank.py +1 -1
  28. sknetwork/ranking/betweenness.cp311-win_amd64.pyd +0 -0
  29. sknetwork/ranking/betweenness.cpp +565 -559
  30. sknetwork/topology/cliques.cp311-win_amd64.pyd +0 -0
  31. sknetwork/topology/cliques.cpp +1723 -1122
  32. sknetwork/topology/core.cp311-win_amd64.pyd +0 -0
  33. sknetwork/topology/core.cpp +1749 -1151
  34. sknetwork/topology/cycles.py +2 -2
  35. sknetwork/topology/minheap.cp311-win_amd64.pyd +0 -0
  36. sknetwork/topology/minheap.cpp +689 -679
  37. sknetwork/topology/triangles.cp311-win_amd64.pyd +0 -0
  38. sknetwork/topology/triangles.cpp +439 -434
  39. sknetwork/topology/weisfeiler_lehman_core.cp311-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.2.dist-info/licenses}/AUTHORS.rst +0 -0
  44. {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info/licenses}/LICENSE +0 -0
  45. {scikit_network-0.33.0.dist-info → scikit_network-0.33.2.dist-info}/top_level.txt +0 -0
@@ -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\\cp311-win_amd64\\build\\venv\\Lib\\site-packages\\numpy\\core\\include\\numpy\\arrayobject.h",
8
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp311-win_amd64\\build\\venv\\Lib\\site-packages\\numpy\\core\\include\\numpy\\arrayscalars.h",
9
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp311-win_amd64\\build\\venv\\Lib\\site-packages\\numpy\\core\\include\\numpy\\ndarrayobject.h",
10
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp311-win_amd64\\build\\venv\\Lib\\site-packages\\numpy\\core\\include\\numpy\\ndarraytypes.h",
11
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp311-win_amd64\\build\\venv\\Lib\\site-packages\\numpy\\core\\include\\numpy\\ufuncobject.h"
7
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayobject.h",
8
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayscalars.h",
9
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarrayobject.h",
10
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarraytypes.h",
11
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ufuncobject.h"
12
12
  ],
13
13
  "extra_compile_args": [
14
14
  "/d2FH4-"
15
15
  ],
16
16
  "include_dirs": [
17
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-2jqincfh\\cp311-win_amd64\\build\\venv\\Lib\\site-packages\\numpy\\core\\include"
17
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-um3f_m6n\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
18
18
  ],
19
19
  "language": "c++",
20
20
  "name": "sknetwork.topology.core",
@@ -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
@@ -1694,7 +1694,7 @@ typedef struct {
1694
1694
 
1695
1695
  /* #### Code section: numeric_typedefs ### */
1696
1696
 
1697
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":730
1697
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":787
1698
1698
  * # in Cython to enable them only on the right systems.
1699
1699
  *
1700
1700
  * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
@@ -1703,7 +1703,7 @@ typedef struct {
1703
1703
  */
1704
1704
  typedef npy_int8 __pyx_t_5numpy_int8_t;
1705
1705
 
1706
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":731
1706
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":788
1707
1707
  *
1708
1708
  * ctypedef npy_int8 int8_t
1709
1709
  * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
@@ -1712,7 +1712,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t;
1712
1712
  */
1713
1713
  typedef npy_int16 __pyx_t_5numpy_int16_t;
1714
1714
 
1715
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":732
1715
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":789
1716
1716
  * ctypedef npy_int8 int8_t
1717
1717
  * ctypedef npy_int16 int16_t
1718
1718
  * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
@@ -1721,7 +1721,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t;
1721
1721
  */
1722
1722
  typedef npy_int32 __pyx_t_5numpy_int32_t;
1723
1723
 
1724
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":733
1724
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":790
1725
1725
  * ctypedef npy_int16 int16_t
1726
1726
  * ctypedef npy_int32 int32_t
1727
1727
  * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
@@ -1730,7 +1730,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t;
1730
1730
  */
1731
1731
  typedef npy_int64 __pyx_t_5numpy_int64_t;
1732
1732
 
1733
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":737
1733
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":794
1734
1734
  * #ctypedef npy_int128 int128_t
1735
1735
  *
1736
1736
  * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
@@ -1739,7 +1739,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t;
1739
1739
  */
1740
1740
  typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1741
1741
 
1742
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":738
1742
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":795
1743
1743
  *
1744
1744
  * ctypedef npy_uint8 uint8_t
1745
1745
  * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
@@ -1748,7 +1748,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1748
1748
  */
1749
1749
  typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1750
1750
 
1751
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":739
1751
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":796
1752
1752
  * ctypedef npy_uint8 uint8_t
1753
1753
  * ctypedef npy_uint16 uint16_t
1754
1754
  * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
@@ -1757,7 +1757,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1757
1757
  */
1758
1758
  typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1759
1759
 
1760
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":740
1760
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":797
1761
1761
  * ctypedef npy_uint16 uint16_t
1762
1762
  * ctypedef npy_uint32 uint32_t
1763
1763
  * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
@@ -1766,7 +1766,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1766
1766
  */
1767
1767
  typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1768
1768
 
1769
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":744
1769
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":801
1770
1770
  * #ctypedef npy_uint128 uint128_t
1771
1771
  *
1772
1772
  * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
@@ -1775,7 +1775,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1775
1775
  */
1776
1776
  typedef npy_float32 __pyx_t_5numpy_float32_t;
1777
1777
 
1778
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":745
1778
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":802
1779
1779
  *
1780
1780
  * ctypedef npy_float32 float32_t
1781
1781
  * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
@@ -1784,43 +1784,25 @@ typedef npy_float32 __pyx_t_5numpy_float32_t;
1784
1784
  */
1785
1785
  typedef npy_float64 __pyx_t_5numpy_float64_t;
1786
1786
 
1787
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":754
1788
- * # The int types are mapped a bit surprising --
1789
- * # numpy.int corresponds to 'l' and numpy.long to 'q'
1790
- * ctypedef npy_long int_t # <<<<<<<<<<<<<<
1791
- * ctypedef npy_longlong longlong_t
1787
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":809
1788
+ * ctypedef double complex complex128_t
1792
1789
  *
1793
- */
1794
- typedef npy_long __pyx_t_5numpy_int_t;
1795
-
1796
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":755
1797
- * # numpy.int corresponds to 'l' and numpy.long to 'q'
1798
- * ctypedef npy_long int_t
1799
1790
  * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
1800
- *
1801
- * ctypedef npy_ulong uint_t
1802
- */
1803
- typedef npy_longlong __pyx_t_5numpy_longlong_t;
1804
-
1805
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":757
1806
- * ctypedef npy_longlong longlong_t
1807
- *
1808
- * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
1809
1791
  * ctypedef npy_ulonglong ulonglong_t
1810
1792
  *
1811
1793
  */
1812
- typedef npy_ulong __pyx_t_5numpy_uint_t;
1794
+ typedef npy_longlong __pyx_t_5numpy_longlong_t;
1813
1795
 
1814
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":758
1796
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
1815
1797
  *
1816
- * ctypedef npy_ulong uint_t
1798
+ * ctypedef npy_longlong longlong_t
1817
1799
  * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
1818
1800
  *
1819
1801
  * ctypedef npy_intp intp_t
1820
1802
  */
1821
1803
  typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1822
1804
 
1823
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":760
1805
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":812
1824
1806
  * ctypedef npy_ulonglong ulonglong_t
1825
1807
  *
1826
1808
  * ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
@@ -1829,7 +1811,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1829
1811
  */
1830
1812
  typedef npy_intp __pyx_t_5numpy_intp_t;
1831
1813
 
1832
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":761
1814
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
1833
1815
  *
1834
1816
  * ctypedef npy_intp intp_t
1835
1817
  * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
@@ -1838,7 +1820,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t;
1838
1820
  */
1839
1821
  typedef npy_uintp __pyx_t_5numpy_uintp_t;
1840
1822
 
1841
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":763
1823
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":815
1842
1824
  * ctypedef npy_uintp uintp_t
1843
1825
  *
1844
1826
  * ctypedef npy_double float_t # <<<<<<<<<<<<<<
@@ -1847,7 +1829,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t;
1847
1829
  */
1848
1830
  typedef npy_double __pyx_t_5numpy_float_t;
1849
1831
 
1850
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":764
1832
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
1851
1833
  *
1852
1834
  * ctypedef npy_double float_t
1853
1835
  * ctypedef npy_double double_t # <<<<<<<<<<<<<<
@@ -1856,12 +1838,12 @@ typedef npy_double __pyx_t_5numpy_float_t;
1856
1838
  */
1857
1839
  typedef npy_double __pyx_t_5numpy_double_t;
1858
1840
 
1859
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":765
1841
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":817
1860
1842
  * ctypedef npy_double float_t
1861
1843
  * ctypedef npy_double double_t
1862
1844
  * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
1863
1845
  *
1864
- * ctypedef npy_cfloat cfloat_t
1846
+ * ctypedef float complex cfloat_t
1865
1847
  */
1866
1848
  typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1867
1849
  /* #### Code section: complex_type_declarations ### */
@@ -1889,6 +1871,18 @@ static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(floa
1889
1871
  #endif
1890
1872
  static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);
1891
1873
 
1874
+ /* Declarations.proto */
1875
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
1876
+ #ifdef __cplusplus
1877
+ typedef ::std::complex< long double > __pyx_t_long_double_complex;
1878
+ #else
1879
+ typedef long double _Complex __pyx_t_long_double_complex;
1880
+ #endif
1881
+ #else
1882
+ typedef struct { long double real, imag; } __pyx_t_long_double_complex;
1883
+ #endif
1884
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double, long double);
1885
+
1892
1886
  /* #### Code section: type_declarations ### */
1893
1887
 
1894
1888
  /*--- Type declarations ---*/
@@ -1898,42 +1892,6 @@ struct __pyx_MemviewEnum_obj;
1898
1892
  struct __pyx_memoryview_obj;
1899
1893
  struct __pyx_memoryviewslice_obj;
1900
1894
 
1901
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":767
1902
- * ctypedef npy_longdouble longdouble_t
1903
- *
1904
- * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
1905
- * ctypedef npy_cdouble cdouble_t
1906
- * ctypedef npy_clongdouble clongdouble_t
1907
- */
1908
- typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1909
-
1910
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":768
1911
- *
1912
- * ctypedef npy_cfloat cfloat_t
1913
- * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
1914
- * ctypedef npy_clongdouble clongdouble_t
1915
- *
1916
- */
1917
- typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1918
-
1919
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":769
1920
- * ctypedef npy_cfloat cfloat_t
1921
- * ctypedef npy_cdouble cdouble_t
1922
- * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
1923
- *
1924
- * ctypedef npy_cdouble complex_t
1925
- */
1926
- typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1927
-
1928
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":771
1929
- * ctypedef npy_clongdouble clongdouble_t
1930
- *
1931
- * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
1932
- *
1933
- * cdef inline object PyArray_MultiIterNew1(a):
1934
- */
1935
- typedef npy_cdouble __pyx_t_5numpy_complex_t;
1936
-
1937
1895
  /* "sknetwork/topology/minheap.pxd":10
1938
1896
  * from libcpp.vector cimport vector
1939
1897
  *
@@ -2340,7 +2298,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
2340
2298
  #if !CYTHON_VECTORCALL
2341
2299
  #if PY_VERSION_HEX >= 0x03080000
2342
2300
  #include "frameobject.h"
2343
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
2301
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
2344
2302
  #ifndef Py_BUILD_CORE
2345
2303
  #define Py_BUILD_CORE 1
2346
2304
  #endif
@@ -2677,11 +2635,7 @@ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* s
2677
2635
  static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
2678
2636
 
2679
2637
  /* HasAttr.proto */
2680
- #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
2681
- #define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n)
2682
- #else
2683
2638
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
2684
- #endif
2685
2639
 
2686
2640
  /* SliceObject.proto */
2687
2641
  static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
@@ -2773,22 +2727,22 @@ static int __Pyx_setup_reduce(PyObject* type_obj);
2773
2727
  #endif
2774
2728
 
2775
2729
  /* TypeImport.proto */
2776
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_10
2777
- #define __PYX_HAVE_RT_ImportType_proto_3_0_10
2730
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12
2731
+ #define __PYX_HAVE_RT_ImportType_proto_3_0_12
2778
2732
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2779
2733
  #include <stdalign.h>
2780
2734
  #endif
2781
2735
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2782
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) alignof(s)
2736
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s)
2783
2737
  #else
2784
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) sizeof(void*)
2738
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*)
2785
2739
  #endif
2786
- enum __Pyx_ImportType_CheckSize_3_0_10 {
2787
- __Pyx_ImportType_CheckSize_Error_3_0_10 = 0,
2788
- __Pyx_ImportType_CheckSize_Warn_3_0_10 = 1,
2789
- __Pyx_ImportType_CheckSize_Ignore_3_0_10 = 2
2740
+ enum __Pyx_ImportType_CheckSize_3_0_12 {
2741
+ __Pyx_ImportType_CheckSize_Error_3_0_12 = 0,
2742
+ __Pyx_ImportType_CheckSize_Warn_3_0_12 = 1,
2743
+ __Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2
2790
2744
  };
2791
- 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);
2745
+ 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);
2792
2746
  #endif
2793
2747
 
2794
2748
  /* FetchSharedCythonModule.proto */
@@ -3109,6 +3063,44 @@ static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_int
3109
3063
  #endif
3110
3064
  #endif
3111
3065
 
3066
+ /* Arithmetic.proto */
3067
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
3068
+ #define __Pyx_c_eq_long__double(a, b) ((a)==(b))
3069
+ #define __Pyx_c_sum_long__double(a, b) ((a)+(b))
3070
+ #define __Pyx_c_diff_long__double(a, b) ((a)-(b))
3071
+ #define __Pyx_c_prod_long__double(a, b) ((a)*(b))
3072
+ #define __Pyx_c_quot_long__double(a, b) ((a)/(b))
3073
+ #define __Pyx_c_neg_long__double(a) (-(a))
3074
+ #ifdef __cplusplus
3075
+ #define __Pyx_c_is_zero_long__double(z) ((z)==(long double)0)
3076
+ #define __Pyx_c_conj_long__double(z) (::std::conj(z))
3077
+ #if 1
3078
+ #define __Pyx_c_abs_long__double(z) (::std::abs(z))
3079
+ #define __Pyx_c_pow_long__double(a, b) (::std::pow(a, b))
3080
+ #endif
3081
+ #else
3082
+ #define __Pyx_c_is_zero_long__double(z) ((z)==0)
3083
+ #define __Pyx_c_conj_long__double(z) (conjl(z))
3084
+ #if 1
3085
+ #define __Pyx_c_abs_long__double(z) (cabsl(z))
3086
+ #define __Pyx_c_pow_long__double(a, b) (cpowl(a, b))
3087
+ #endif
3088
+ #endif
3089
+ #else
3090
+ static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3091
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3092
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3093
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3094
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3095
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex);
3096
+ static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex);
3097
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex);
3098
+ #if 1
3099
+ static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex);
3100
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3101
+ #endif
3102
+ #endif
3103
+
3112
3104
  /* None.proto */
3113
3105
  #include <new>
3114
3106
 
@@ -3192,6 +3184,18 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v
3192
3184
  static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
3193
3185
  static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/
3194
3186
  static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto*/
3187
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self); /* proto*/
3188
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self); /* proto*/
3189
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self); /* proto*/
3190
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self); /* proto*/
3191
+ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self); /* proto*/
3192
+ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self); /* proto*/
3193
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3194
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3195
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3196
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3197
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3198
+ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3195
3199
  static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self); /* proto*/
3196
3200
  static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self); /* proto*/
3197
3201
  static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self); /* proto*/
@@ -3418,7 +3422,6 @@ static const char __pyx_k_get_core_decomposition_line_66[] = "get_core_decomposi
3418
3422
  static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
3419
3423
  static const char __pyx_k_Created_in_June_2020_author_Jul[] = "\nCreated in June 2020\n@author: Julien Simonnet <julien.simonnet@etu.upmc.fr>\n@author: Yohann Robert <yohann.robert@etu.upmc.fr>\n";
3420
3424
  static const char __pyx_k_Get_the_k_core_decomposition_of[] = "Get the k-core decomposition of a graph.\n\n Parameters\n ----------\n adjacency :\n Adjacency matrix of the graph.\n\n Returns\n -------\n core_values :\n Core value of each node.\n\n Example\n -------\n >>> from sknetwork.data import karate_club\n >>> adjacency = karate_club()\n >>> core_values = get_core_decomposition(adjacency)\n >>> len(core_values)\n 34\n ";
3421
- static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
3422
3425
  static const char __pyx_k_All_dimensions_preceding_dimensi[] = "All dimensions preceding dimension %d must be indexed and not sliced";
3423
3426
  static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
3424
3427
  static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
@@ -3434,7 +3437,8 @@ static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to conver
3434
3437
  static const char __pyx_k_Union_np_ndarray_sparse_csr_matr[] = "Union[np.ndarray, sparse.csr_matrix]";
3435
3438
  static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension ";
3436
3439
  static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
3437
- static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import";
3440
+ static const char __pyx_k_numpy__core_multiarray_failed_to[] = "numpy._core.multiarray failed to import";
3441
+ static const char __pyx_k_numpy__core_umath_failed_to_impo[] = "numpy._core.umath failed to import";
3438
3442
  static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
3439
3443
  /* #### Code section: decls ### */
3440
3444
  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 */
@@ -3665,8 +3669,8 @@ typedef struct {
3665
3669
  PyObject *__pyx_n_s_np;
3666
3670
  PyObject *__pyx_kp_s_np_ndarray;
3667
3671
  PyObject *__pyx_n_s_numpy;
3668
- PyObject *__pyx_kp_u_numpy_core_multiarray_failed_to;
3669
- PyObject *__pyx_kp_u_numpy_core_umath_failed_to_impor;
3672
+ PyObject *__pyx_kp_u_numpy__core_multiarray_failed_to;
3673
+ PyObject *__pyx_kp_u_numpy__core_umath_failed_to_impo;
3670
3674
  PyObject *__pyx_n_s_obj;
3671
3675
  PyObject *__pyx_n_s_pack;
3672
3676
  PyObject *__pyx_n_s_pickle;
@@ -3902,8 +3906,8 @@ static int __pyx_m_clear(PyObject *m) {
3902
3906
  Py_CLEAR(clear_module_state->__pyx_n_s_np);
3903
3907
  Py_CLEAR(clear_module_state->__pyx_kp_s_np_ndarray);
3904
3908
  Py_CLEAR(clear_module_state->__pyx_n_s_numpy);
3905
- Py_CLEAR(clear_module_state->__pyx_kp_u_numpy_core_multiarray_failed_to);
3906
- Py_CLEAR(clear_module_state->__pyx_kp_u_numpy_core_umath_failed_to_impor);
3909
+ Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
3910
+ Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
3907
3911
  Py_CLEAR(clear_module_state->__pyx_n_s_obj);
3908
3912
  Py_CLEAR(clear_module_state->__pyx_n_s_pack);
3909
3913
  Py_CLEAR(clear_module_state->__pyx_n_s_pickle);
@@ -4117,8 +4121,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4117
4121
  Py_VISIT(traverse_module_state->__pyx_n_s_np);
4118
4122
  Py_VISIT(traverse_module_state->__pyx_kp_s_np_ndarray);
4119
4123
  Py_VISIT(traverse_module_state->__pyx_n_s_numpy);
4120
- Py_VISIT(traverse_module_state->__pyx_kp_u_numpy_core_multiarray_failed_to);
4121
- Py_VISIT(traverse_module_state->__pyx_kp_u_numpy_core_umath_failed_to_impor);
4124
+ Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
4125
+ Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
4122
4126
  Py_VISIT(traverse_module_state->__pyx_n_s_obj);
4123
4127
  Py_VISIT(traverse_module_state->__pyx_n_s_pack);
4124
4128
  Py_VISIT(traverse_module_state->__pyx_n_s_pickle);
@@ -4370,8 +4374,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4370
4374
  #define __pyx_n_s_np __pyx_mstate_global->__pyx_n_s_np
4371
4375
  #define __pyx_kp_s_np_ndarray __pyx_mstate_global->__pyx_kp_s_np_ndarray
4372
4376
  #define __pyx_n_s_numpy __pyx_mstate_global->__pyx_n_s_numpy
4373
- #define __pyx_kp_u_numpy_core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy_core_multiarray_failed_to
4374
- #define __pyx_kp_u_numpy_core_umath_failed_to_impor __pyx_mstate_global->__pyx_kp_u_numpy_core_umath_failed_to_impor
4377
+ #define __pyx_kp_u_numpy__core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy__core_multiarray_failed_to
4378
+ #define __pyx_kp_u_numpy__core_umath_failed_to_impo __pyx_mstate_global->__pyx_kp_u_numpy__core_umath_failed_to_impo
4375
4379
  #define __pyx_n_s_obj __pyx_mstate_global->__pyx_n_s_obj
4376
4380
  #define __pyx_n_s_pack __pyx_mstate_global->__pyx_n_s_pack
4377
4381
  #define __pyx_n_s_pickle __pyx_mstate_global->__pyx_n_s_pickle
@@ -4628,10 +4632,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4628
4632
  PyObject *__pyx_t_4 = NULL;
4629
4633
  PyObject *__pyx_t_5 = NULL;
4630
4634
  PyObject *__pyx_t_6 = NULL;
4631
- int __pyx_t_7;
4635
+ unsigned int __pyx_t_7;
4632
4636
  char *__pyx_t_8;
4633
- Py_ssize_t __pyx_t_9;
4634
- Py_UCS4 __pyx_t_10;
4637
+ int __pyx_t_9;
4638
+ Py_ssize_t __pyx_t_10;
4639
+ Py_UCS4 __pyx_t_11;
4635
4640
  int __pyx_lineno = 0;
4636
4641
  const char *__pyx_filename = NULL;
4637
4642
  int __pyx_clineno = 0;
@@ -4857,7 +4862,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4857
4862
  * if dim <= 0:
4858
4863
  * raise ValueError, f"Invalid shape in axis {idx}: {dim}."
4859
4864
  */
4860
- __pyx_t_7 = 0;
4865
+ __pyx_t_9 = 0;
4861
4866
  __pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4);
4862
4867
  __pyx_t_1 = 0;
4863
4868
  for (;;) {
@@ -4874,11 +4879,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4874
4879
  __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)
4875
4880
  __Pyx_GOTREF(__pyx_t_5);
4876
4881
  #endif
4877
- __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)
4882
+ __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)
4878
4883
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4879
- __pyx_v_dim = __pyx_t_9;
4880
- __pyx_v_idx = __pyx_t_7;
4881
- __pyx_t_7 = (__pyx_t_7 + 1);
4884
+ __pyx_v_dim = __pyx_t_10;
4885
+ __pyx_v_idx = __pyx_t_9;
4886
+ __pyx_t_9 = (__pyx_t_9 + 1);
4882
4887
 
4883
4888
  /* "View.MemoryView":160
4884
4889
  *
@@ -4899,33 +4904,33 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4899
4904
  */
4900
4905
  __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 161, __pyx_L1_error)
4901
4906
  __Pyx_GOTREF(__pyx_t_5);
4902
- __pyx_t_9 = 0;
4903
- __pyx_t_10 = 127;
4907
+ __pyx_t_10 = 0;
4908
+ __pyx_t_11 = 127;
4904
4909
  __Pyx_INCREF(__pyx_kp_u_Invalid_shape_in_axis);
4905
- __pyx_t_9 += 22;
4910
+ __pyx_t_10 += 22;
4906
4911
  __Pyx_GIVEREF(__pyx_kp_u_Invalid_shape_in_axis);
4907
4912
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Invalid_shape_in_axis);
4908
4913
  __pyx_t_6 = __Pyx_PyUnicode_From_int(__pyx_v_idx, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
4909
4914
  __Pyx_GOTREF(__pyx_t_6);
4910
- __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4915
+ __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4911
4916
  __Pyx_GIVEREF(__pyx_t_6);
4912
4917
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
4913
4918
  __pyx_t_6 = 0;
4914
4919
  __Pyx_INCREF(__pyx_kp_u_);
4915
- __pyx_t_9 += 2;
4920
+ __pyx_t_10 += 2;
4916
4921
  __Pyx_GIVEREF(__pyx_kp_u_);
4917
4922
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_);
4918
4923
  __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)
4919
4924
  __Pyx_GOTREF(__pyx_t_6);
4920
- __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4925
+ __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
4921
4926
  __Pyx_GIVEREF(__pyx_t_6);
4922
4927
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_6);
4923
4928
  __pyx_t_6 = 0;
4924
4929
  __Pyx_INCREF(__pyx_kp_u__2);
4925
- __pyx_t_9 += 1;
4930
+ __pyx_t_10 += 1;
4926
4931
  __Pyx_GIVEREF(__pyx_kp_u__2);
4927
4932
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__2);
4928
- __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)
4933
+ __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)
4929
4934
  __Pyx_GOTREF(__pyx_t_6);
4930
4935
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4931
4936
  __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_6, 0, 0);
@@ -5109,7 +5114,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
5109
5114
  *
5110
5115
  * @cname('getbuffer')
5111
5116
  */
5112
- __pyx_t_7 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 180, __pyx_L1_error)
5117
+ __pyx_t_9 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 180, __pyx_L1_error)
5113
5118
 
5114
5119
  /* "View.MemoryView":179
5115
5120
  * self.dtype_is_object = format == b'O'
@@ -8264,7 +8269,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8264
8269
  *
8265
8270
  * if have_slices: # <<<<<<<<<<<<<<
8266
8271
  * obj = self.is_slice(value)
8267
- * if obj:
8272
+ * if obj is not None:
8268
8273
  */
8269
8274
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 426, __pyx_L1_error)
8270
8275
  if (__pyx_t_4) {
@@ -8273,7 +8278,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8273
8278
  *
8274
8279
  * if have_slices:
8275
8280
  * obj = self.is_slice(value) # <<<<<<<<<<<<<<
8276
- * if obj:
8281
+ * if obj is not None:
8277
8282
  * self.setitem_slice_assignment(self[index], obj)
8278
8283
  */
8279
8284
  __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)
@@ -8284,16 +8289,16 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8284
8289
  /* "View.MemoryView":428
8285
8290
  * if have_slices:
8286
8291
  * obj = self.is_slice(value)
8287
- * if obj: # <<<<<<<<<<<<<<
8292
+ * if obj is not None: # <<<<<<<<<<<<<<
8288
8293
  * self.setitem_slice_assignment(self[index], obj)
8289
8294
  * else:
8290
8295
  */
8291
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_obj); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 428, __pyx_L1_error)
8296
+ __pyx_t_4 = (__pyx_v_obj != Py_None);
8292
8297
  if (__pyx_t_4) {
8293
8298
 
8294
8299
  /* "View.MemoryView":429
8295
8300
  * obj = self.is_slice(value)
8296
- * if obj:
8301
+ * if obj is not None:
8297
8302
  * self.setitem_slice_assignment(self[index], obj) # <<<<<<<<<<<<<<
8298
8303
  * else:
8299
8304
  * self.setitem_slice_assign_scalar(self[index], value)
@@ -8308,7 +8313,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8308
8313
  /* "View.MemoryView":428
8309
8314
  * if have_slices:
8310
8315
  * obj = self.is_slice(value)
8311
- * if obj: # <<<<<<<<<<<<<<
8316
+ * if obj is not None: # <<<<<<<<<<<<<<
8312
8317
  * self.setitem_slice_assignment(self[index], obj)
8313
8318
  * else:
8314
8319
  */
@@ -8338,7 +8343,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8338
8343
  *
8339
8344
  * if have_slices: # <<<<<<<<<<<<<<
8340
8345
  * obj = self.is_slice(value)
8341
- * if obj:
8346
+ * if obj is not None:
8342
8347
  */
8343
8348
  goto __pyx_L4;
8344
8349
  }
@@ -9046,9 +9051,10 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
9046
9051
  PyObject *__pyx_t_5 = NULL;
9047
9052
  PyObject *__pyx_t_6 = NULL;
9048
9053
  PyObject *__pyx_t_7 = NULL;
9049
- int __pyx_t_8;
9054
+ unsigned int __pyx_t_8;
9050
9055
  Py_ssize_t __pyx_t_9;
9051
9056
  int __pyx_t_10;
9057
+ int __pyx_t_11;
9052
9058
  int __pyx_lineno = 0;
9053
9059
  const char *__pyx_filename = NULL;
9054
9060
  int __pyx_clineno = 0;
@@ -9203,11 +9209,11 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
9203
9209
  __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_6);
9204
9210
  __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)
9205
9211
  __Pyx_GOTREF(__pyx_t_7);
9206
- __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
9212
+ __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
9207
9213
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9208
9214
  __Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_6);
9209
9215
  __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
9210
- if (__pyx_t_8) {
9216
+ if (__pyx_t_11) {
9211
9217
  __Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
9212
9218
  if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 498, __pyx_L5_except_error)
9213
9219
  __Pyx_XGOTREF(__pyx_t_6);
@@ -9292,7 +9298,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
9292
9298
  PyObject *__pyx_t_3 = NULL;
9293
9299
  PyObject *__pyx_t_4 = NULL;
9294
9300
  PyObject *__pyx_t_5 = NULL;
9295
- int __pyx_t_6;
9301
+ unsigned int __pyx_t_6;
9296
9302
  Py_ssize_t __pyx_t_7;
9297
9303
  PyObject *__pyx_t_8 = NULL;
9298
9304
  char *__pyx_t_9;
@@ -17766,7 +17772,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
17766
17772
  int __pyx_t_2;
17767
17773
  PyObject *__pyx_t_3 = NULL;
17768
17774
  PyObject *__pyx_t_4 = NULL;
17769
- int __pyx_t_5;
17775
+ unsigned int __pyx_t_5;
17770
17776
  int __pyx_lineno = 0;
17771
17777
  const char *__pyx_filename = NULL;
17772
17778
  int __pyx_clineno = 0;
@@ -17948,7 +17954,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
17948
17954
  PyObject *__pyx_t_5 = NULL;
17949
17955
  PyObject *__pyx_t_6 = NULL;
17950
17956
  PyObject *__pyx_t_7 = NULL;
17951
- int __pyx_t_8;
17957
+ unsigned int __pyx_t_8;
17952
17958
  int __pyx_lineno = 0;
17953
17959
  const char *__pyx_filename = NULL;
17954
17960
  int __pyx_clineno = 0;
@@ -18068,33 +18074,33 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
18068
18074
  return __pyx_r;
18069
18075
  }
18070
18076
 
18071
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":245
18077
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
18072
18078
  *
18073
18079
  * @property
18074
- * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
18075
- * """Returns a borrowed reference to the object owning the data/memory.
18076
- * """
18080
+ * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
18081
+ * return PyDataType_ELSIZE(self)
18082
+ *
18077
18083
  */
18078
18084
 
18079
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
18080
- PyObject *__pyx_r;
18085
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) {
18086
+ npy_intp __pyx_r;
18081
18087
 
18082
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":248
18083
- * """Returns a borrowed reference to the object owning the data/memory.
18084
- * """
18085
- * return PyArray_BASE(self) # <<<<<<<<<<<<<<
18088
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":288
18089
+ * @property
18090
+ * cdef inline npy_intp itemsize(self) noexcept nogil:
18091
+ * return PyDataType_ELSIZE(self) # <<<<<<<<<<<<<<
18086
18092
  *
18087
18093
  * @property
18088
18094
  */
18089
- __pyx_r = PyArray_BASE(__pyx_v_self);
18095
+ __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
18090
18096
  goto __pyx_L0;
18091
18097
 
18092
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":245
18098
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
18093
18099
  *
18094
18100
  * @property
18095
- * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
18096
- * """Returns a borrowed reference to the object owning the data/memory.
18097
- * """
18101
+ * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
18102
+ * return PyDataType_ELSIZE(self)
18103
+ *
18098
18104
  */
18099
18105
 
18100
18106
  /* function exit code */
@@ -18102,143 +18108,151 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
18102
18108
  return __pyx_r;
18103
18109
  }
18104
18110
 
18105
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":251
18111
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
18106
18112
  *
18107
18113
  * @property
18108
- * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18109
- * """Returns an owned reference to the dtype of the array.
18110
- * """
18114
+ * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
18115
+ * return PyDataType_ALIGNMENT(self)
18116
+ *
18111
18117
  */
18112
18118
 
18113
- static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
18114
- PyArray_Descr *__pyx_r = NULL;
18115
- __Pyx_RefNannyDeclarations
18116
- PyArray_Descr *__pyx_t_1;
18117
- __Pyx_RefNannySetupContext("descr", 1);
18119
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) {
18120
+ npy_intp __pyx_r;
18118
18121
 
18119
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":254
18120
- * """Returns an owned reference to the dtype of the array.
18121
- * """
18122
- * return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
18123
- *
18122
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":292
18124
18123
  * @property
18124
+ * cdef inline npy_intp alignment(self) noexcept nogil:
18125
+ * return PyDataType_ALIGNMENT(self) # <<<<<<<<<<<<<<
18126
+ *
18127
+ * # Use fields/names with care as they may be NULL. You must check
18125
18128
  */
18126
- __Pyx_XDECREF((PyObject *)__pyx_r);
18127
- __pyx_t_1 = PyArray_DESCR(__pyx_v_self);
18128
- __Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
18129
- __pyx_r = ((PyArray_Descr *)__pyx_t_1);
18129
+ __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
18130
18130
  goto __pyx_L0;
18131
18131
 
18132
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":251
18132
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
18133
18133
  *
18134
18134
  * @property
18135
- * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18136
- * """Returns an owned reference to the dtype of the array.
18137
- * """
18135
+ * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
18136
+ * return PyDataType_ALIGNMENT(self)
18137
+ *
18138
18138
  */
18139
18139
 
18140
18140
  /* function exit code */
18141
18141
  __pyx_L0:;
18142
- __Pyx_XGIVEREF((PyObject *)__pyx_r);
18143
- __Pyx_RefNannyFinishContext();
18144
18142
  return __pyx_r;
18145
18143
  }
18146
18144
 
18147
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":257
18148
- *
18145
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
18146
+ * # for this using PyDataType_HASFIELDS.
18149
18147
  * @property
18150
- * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
18151
- * """Returns the number of dimensions in the array.
18152
- * """
18148
+ * cdef inline object fields(self): # <<<<<<<<<<<<<<
18149
+ * return <object>PyDataType_FIELDS(self)
18150
+ *
18153
18151
  */
18154
18152
 
18155
- static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
18156
- int __pyx_r;
18153
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) {
18154
+ PyObject *__pyx_r = NULL;
18155
+ __Pyx_RefNannyDeclarations
18156
+ PyObject *__pyx_t_1;
18157
+ __Pyx_RefNannySetupContext("fields", 1);
18157
18158
 
18158
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":260
18159
- * """Returns the number of dimensions in the array.
18160
- * """
18161
- * return PyArray_NDIM(self) # <<<<<<<<<<<<<<
18159
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":298
18160
+ * @property
18161
+ * cdef inline object fields(self):
18162
+ * return <object>PyDataType_FIELDS(self) # <<<<<<<<<<<<<<
18162
18163
  *
18163
18164
  * @property
18164
18165
  */
18165
- __pyx_r = PyArray_NDIM(__pyx_v_self);
18166
+ __Pyx_XDECREF(__pyx_r);
18167
+ __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
18168
+ __Pyx_INCREF(((PyObject *)__pyx_t_1));
18169
+ __pyx_r = ((PyObject *)__pyx_t_1);
18166
18170
  goto __pyx_L0;
18167
18171
 
18168
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":257
18169
- *
18172
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
18173
+ * # for this using PyDataType_HASFIELDS.
18170
18174
  * @property
18171
- * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
18172
- * """Returns the number of dimensions in the array.
18173
- * """
18175
+ * cdef inline object fields(self): # <<<<<<<<<<<<<<
18176
+ * return <object>PyDataType_FIELDS(self)
18177
+ *
18174
18178
  */
18175
18179
 
18176
18180
  /* function exit code */
18177
18181
  __pyx_L0:;
18182
+ __Pyx_XGIVEREF(__pyx_r);
18183
+ __Pyx_RefNannyFinishContext();
18178
18184
  return __pyx_r;
18179
18185
  }
18180
18186
 
18181
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":263
18187
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
18182
18188
  *
18183
18189
  * @property
18184
- * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
18185
- * """Returns a pointer to the dimensions/shape of the array.
18186
- * The number of elements matches the number of dimensions of the array (ndim).
18190
+ * cdef inline tuple names(self): # <<<<<<<<<<<<<<
18191
+ * return <tuple>PyDataType_NAMES(self)
18192
+ *
18187
18193
  */
18188
18194
 
18189
- static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
18190
- npy_intp *__pyx_r;
18195
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) {
18196
+ PyObject *__pyx_r = NULL;
18197
+ __Pyx_RefNannyDeclarations
18198
+ PyObject *__pyx_t_1;
18199
+ __Pyx_RefNannySetupContext("names", 1);
18191
18200
 
18192
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":268
18193
- * Can return NULL for 0-dimensional arrays.
18194
- * """
18195
- * return PyArray_DIMS(self) # <<<<<<<<<<<<<<
18196
- *
18201
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":302
18197
18202
  * @property
18203
+ * cdef inline tuple names(self):
18204
+ * return <tuple>PyDataType_NAMES(self) # <<<<<<<<<<<<<<
18205
+ *
18206
+ * # Use PyDataType_HASSUBARRAY to test whether this field is
18198
18207
  */
18199
- __pyx_r = PyArray_DIMS(__pyx_v_self);
18208
+ __Pyx_XDECREF(__pyx_r);
18209
+ __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
18210
+ __Pyx_INCREF(((PyObject*)__pyx_t_1));
18211
+ __pyx_r = ((PyObject*)__pyx_t_1);
18200
18212
  goto __pyx_L0;
18201
18213
 
18202
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":263
18214
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
18203
18215
  *
18204
18216
  * @property
18205
- * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
18206
- * """Returns a pointer to the dimensions/shape of the array.
18207
- * The number of elements matches the number of dimensions of the array (ndim).
18217
+ * cdef inline tuple names(self): # <<<<<<<<<<<<<<
18218
+ * return <tuple>PyDataType_NAMES(self)
18219
+ *
18208
18220
  */
18209
18221
 
18210
18222
  /* function exit code */
18211
18223
  __pyx_L0:;
18224
+ __Pyx_XGIVEREF(__pyx_r);
18225
+ __Pyx_RefNannyFinishContext();
18212
18226
  return __pyx_r;
18213
18227
  }
18214
18228
 
18215
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":271
18216
- *
18229
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
18230
+ * # this field via the inline helper method PyDataType_SHAPE.
18217
18231
  * @property
18218
- * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
18219
- * """Returns a pointer to the strides of the array.
18220
- * The number of elements matches the number of dimensions of the array (ndim).
18232
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
18233
+ * return PyDataType_SUBARRAY(self)
18234
+ *
18221
18235
  */
18222
18236
 
18223
- static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
18224
- npy_intp *__pyx_r;
18237
+ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) {
18238
+ PyArray_ArrayDescr *__pyx_r;
18225
18239
 
18226
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":275
18227
- * The number of elements matches the number of dimensions of the array (ndim).
18228
- * """
18229
- * return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
18240
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":309
18241
+ * @property
18242
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:
18243
+ * return PyDataType_SUBARRAY(self) # <<<<<<<<<<<<<<
18230
18244
  *
18231
18245
  * @property
18232
18246
  */
18233
- __pyx_r = PyArray_STRIDES(__pyx_v_self);
18247
+ __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
18234
18248
  goto __pyx_L0;
18235
18249
 
18236
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":271
18237
- *
18250
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
18251
+ * # this field via the inline helper method PyDataType_SHAPE.
18238
18252
  * @property
18239
- * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
18240
- * """Returns a pointer to the strides of the array.
18241
- * The number of elements matches the number of dimensions of the array (ndim).
18253
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
18254
+ * return PyDataType_SUBARRAY(self)
18255
+ *
18242
18256
  */
18243
18257
 
18244
18258
  /* function exit code */
@@ -18246,33 +18260,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
18246
18260
  return __pyx_r;
18247
18261
  }
18248
18262
 
18249
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":278
18263
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":312
18250
18264
  *
18251
18265
  * @property
18252
- * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
18253
- * """Returns the total size (in number of elements) of the array.
18254
- * """
18266
+ * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
18267
+ * """The data types flags."""
18268
+ * return PyDataType_FLAGS(self)
18255
18269
  */
18256
18270
 
18257
- static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
18258
- npy_intp __pyx_r;
18271
+ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self) {
18272
+ npy_uint64 __pyx_r;
18259
18273
 
18260
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":281
18261
- * """Returns the total size (in number of elements) of the array.
18262
- * """
18263
- * return PyArray_SIZE(self) # <<<<<<<<<<<<<<
18274
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":314
18275
+ * cdef inline npy_uint64 flags(self) noexcept nogil:
18276
+ * """The data types flags."""
18277
+ * return PyDataType_FLAGS(self) # <<<<<<<<<<<<<<
18278
+ *
18264
18279
  *
18265
- * @property
18266
18280
  */
18267
- __pyx_r = PyArray_SIZE(__pyx_v_self);
18281
+ __pyx_r = PyDataType_FLAGS(__pyx_v_self);
18268
18282
  goto __pyx_L0;
18269
18283
 
18270
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":278
18284
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":312
18271
18285
  *
18272
18286
  * @property
18273
- * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
18274
- * """Returns the total size (in number of elements) of the array.
18275
- * """
18287
+ * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
18288
+ * """The data types flags."""
18289
+ * return PyDataType_FLAGS(self)
18276
18290
  */
18277
18291
 
18278
18292
  /* function exit code */
@@ -18280,33 +18294,33 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
18280
18294
  return __pyx_r;
18281
18295
  }
18282
18296
 
18283
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":284
18297
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":324
18284
18298
  *
18285
18299
  * @property
18286
- * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
18287
- * """The pointer to the data buffer as a char*.
18288
- * This is provided for legacy reasons to avoid direct struct field access.
18300
+ * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
18301
+ * """The number of arrays that need to be broadcast to the same shape."""
18302
+ * return PyArray_MultiIter_NUMITER(self)
18289
18303
  */
18290
18304
 
18291
- static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
18292
- char *__pyx_r;
18305
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self) {
18306
+ int __pyx_r;
18293
18307
 
18294
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":290
18295
- * of `PyArray_DATA()` instead, which returns a 'void*'.
18296
- * """
18297
- * return PyArray_BYTES(self) # <<<<<<<<<<<<<<
18308
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":326
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) # <<<<<<<<<<<<<<
18298
18312
  *
18299
- * ctypedef unsigned char npy_bool
18313
+ * @property
18300
18314
  */
18301
- __pyx_r = PyArray_BYTES(__pyx_v_self);
18315
+ __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
18302
18316
  goto __pyx_L0;
18303
18317
 
18304
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":284
18318
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":324
18305
18319
  *
18306
18320
  * @property
18307
- * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
18308
- * """The pointer to the data buffer as a char*.
18309
- * This is provided for legacy reasons to avoid direct struct field access.
18321
+ * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
18322
+ * """The number of arrays that need to be broadcast to the same shape."""
18323
+ * return PyArray_MultiIter_NUMITER(self)
18310
18324
  */
18311
18325
 
18312
18326
  /* function exit code */
@@ -18314,111 +18328,527 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
18314
18328
  return __pyx_r;
18315
18329
  }
18316
18330
 
18317
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":773
18318
- * ctypedef npy_cdouble complex_t
18319
- *
18320
- * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18321
- * return PyArray_MultiIterNew(1, <void*>a)
18331
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":329
18322
18332
  *
18333
+ * @property
18334
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18335
+ * """The total broadcasted size."""
18336
+ * return PyArray_MultiIter_SIZE(self)
18323
18337
  */
18324
18338
 
18325
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
18326
- PyObject *__pyx_r = NULL;
18327
- __Pyx_RefNannyDeclarations
18328
- PyObject *__pyx_t_1 = NULL;
18329
- int __pyx_lineno = 0;
18330
- const char *__pyx_filename = NULL;
18331
- int __pyx_clineno = 0;
18332
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
18339
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self) {
18340
+ npy_intp __pyx_r;
18333
18341
 
18334
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":774
18335
- *
18336
- * cdef inline object PyArray_MultiIterNew1(a):
18337
- * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
18342
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":331
18343
+ * cdef inline npy_intp size(self) noexcept nogil:
18344
+ * """The total broadcasted size."""
18345
+ * return PyArray_MultiIter_SIZE(self) # <<<<<<<<<<<<<<
18338
18346
  *
18339
- * cdef inline object PyArray_MultiIterNew2(a, b):
18347
+ * @property
18340
18348
  */
18341
- __Pyx_XDECREF(__pyx_r);
18342
- __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 774, __pyx_L1_error)
18343
- __Pyx_GOTREF(__pyx_t_1);
18344
- __pyx_r = __pyx_t_1;
18345
- __pyx_t_1 = 0;
18349
+ __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
18346
18350
  goto __pyx_L0;
18347
18351
 
18348
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":773
18349
- * ctypedef npy_cdouble complex_t
18350
- *
18351
- * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18352
- * return PyArray_MultiIterNew(1, <void*>a)
18352
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":329
18353
18353
  *
18354
+ * @property
18355
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18356
+ * """The total broadcasted size."""
18357
+ * return PyArray_MultiIter_SIZE(self)
18354
18358
  */
18355
18359
 
18356
18360
  /* function exit code */
18357
- __pyx_L1_error:;
18358
- __Pyx_XDECREF(__pyx_t_1);
18359
- __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
18360
- __pyx_r = 0;
18361
18361
  __pyx_L0:;
18362
- __Pyx_XGIVEREF(__pyx_r);
18363
- __Pyx_RefNannyFinishContext();
18364
18362
  return __pyx_r;
18365
18363
  }
18366
18364
 
18367
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":776
18368
- * return PyArray_MultiIterNew(1, <void*>a)
18369
- *
18370
- * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18371
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18365
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":334
18372
18366
  *
18367
+ * @property
18368
+ * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
18369
+ * """The current (1-d) index into the broadcasted result."""
18370
+ * return PyArray_MultiIter_INDEX(self)
18373
18371
  */
18374
18372
 
18375
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
18376
- PyObject *__pyx_r = NULL;
18377
- __Pyx_RefNannyDeclarations
18378
- PyObject *__pyx_t_1 = NULL;
18379
- int __pyx_lineno = 0;
18380
- const char *__pyx_filename = NULL;
18381
- int __pyx_clineno = 0;
18382
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
18373
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self) {
18374
+ npy_intp __pyx_r;
18383
18375
 
18384
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":777
18385
- *
18386
- * cdef inline object PyArray_MultiIterNew2(a, b):
18387
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
18376
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":336
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) # <<<<<<<<<<<<<<
18388
18380
  *
18389
- * cdef inline object PyArray_MultiIterNew3(a, b, c):
18381
+ * @property
18390
18382
  */
18391
- __Pyx_XDECREF(__pyx_r);
18392
- __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)
18393
- __Pyx_GOTREF(__pyx_t_1);
18394
- __pyx_r = __pyx_t_1;
18395
- __pyx_t_1 = 0;
18383
+ __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
18396
18384
  goto __pyx_L0;
18397
18385
 
18398
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":776
18399
- * return PyArray_MultiIterNew(1, <void*>a)
18400
- *
18401
- * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18402
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18386
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":334
18403
18387
  *
18388
+ * @property
18389
+ * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
18390
+ * """The current (1-d) index into the broadcasted result."""
18391
+ * return PyArray_MultiIter_INDEX(self)
18404
18392
  */
18405
18393
 
18406
18394
  /* function exit code */
18407
- __pyx_L1_error:;
18408
- __Pyx_XDECREF(__pyx_t_1);
18409
- __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
18410
- __pyx_r = 0;
18411
18395
  __pyx_L0:;
18412
- __Pyx_XGIVEREF(__pyx_r);
18413
- __Pyx_RefNannyFinishContext();
18414
18396
  return __pyx_r;
18415
18397
  }
18416
18398
 
18417
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":779
18418
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18399
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":339
18419
18400
  *
18420
- * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
18421
- * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18401
+ * @property
18402
+ * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
18403
+ * """The number of dimensions in the broadcasted result."""
18404
+ * return PyArray_MultiIter_NDIM(self)
18405
+ */
18406
+
18407
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self) {
18408
+ int __pyx_r;
18409
+
18410
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":341
18411
+ * cdef inline int nd(self) noexcept nogil:
18412
+ * """The number of dimensions in the broadcasted result."""
18413
+ * return PyArray_MultiIter_NDIM(self) # <<<<<<<<<<<<<<
18414
+ *
18415
+ * @property
18416
+ */
18417
+ __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
18418
+ goto __pyx_L0;
18419
+
18420
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":339
18421
+ *
18422
+ * @property
18423
+ * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
18424
+ * """The number of dimensions in the broadcasted result."""
18425
+ * return PyArray_MultiIter_NDIM(self)
18426
+ */
18427
+
18428
+ /* function exit code */
18429
+ __pyx_L0:;
18430
+ return __pyx_r;
18431
+ }
18432
+
18433
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":344
18434
+ *
18435
+ * @property
18436
+ * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
18437
+ * """The shape of the broadcasted result."""
18438
+ * return PyArray_MultiIter_DIMS(self)
18439
+ */
18440
+
18441
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self) {
18442
+ npy_intp *__pyx_r;
18443
+
18444
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":346
18445
+ * cdef inline npy_intp* dimensions(self) noexcept nogil:
18446
+ * """The shape of the broadcasted result."""
18447
+ * return PyArray_MultiIter_DIMS(self) # <<<<<<<<<<<<<<
18448
+ *
18449
+ * @property
18450
+ */
18451
+ __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
18452
+ goto __pyx_L0;
18453
+
18454
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":344
18455
+ *
18456
+ * @property
18457
+ * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
18458
+ * """The shape of the broadcasted result."""
18459
+ * return PyArray_MultiIter_DIMS(self)
18460
+ */
18461
+
18462
+ /* function exit code */
18463
+ __pyx_L0:;
18464
+ return __pyx_r;
18465
+ }
18466
+
18467
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":349
18468
+ *
18469
+ * @property
18470
+ * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
18471
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18472
+ * On return, the iterators are adjusted for broadcasting."""
18473
+ */
18474
+
18475
+ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self) {
18476
+ void **__pyx_r;
18477
+
18478
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":352
18479
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18480
+ * On return, the iterators are adjusted for broadcasting."""
18481
+ * return PyArray_MultiIter_ITERS(self) # <<<<<<<<<<<<<<
18482
+ *
18483
+ *
18484
+ */
18485
+ __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
18486
+ goto __pyx_L0;
18487
+
18488
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":349
18489
+ *
18490
+ * @property
18491
+ * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
18492
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18493
+ * On return, the iterators are adjusted for broadcasting."""
18494
+ */
18495
+
18496
+ /* function exit code */
18497
+ __pyx_L0:;
18498
+ return __pyx_r;
18499
+ }
18500
+
18501
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":367
18502
+ *
18503
+ * @property
18504
+ * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
18505
+ * """Returns a borrowed reference to the object owning the data/memory.
18506
+ * """
18507
+ */
18508
+
18509
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
18510
+ PyObject *__pyx_r;
18511
+
18512
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":370
18513
+ * """Returns a borrowed reference to the object owning the data/memory.
18514
+ * """
18515
+ * return PyArray_BASE(self) # <<<<<<<<<<<<<<
18516
+ *
18517
+ * @property
18518
+ */
18519
+ __pyx_r = PyArray_BASE(__pyx_v_self);
18520
+ goto __pyx_L0;
18521
+
18522
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":367
18523
+ *
18524
+ * @property
18525
+ * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
18526
+ * """Returns a borrowed reference to the object owning the data/memory.
18527
+ * """
18528
+ */
18529
+
18530
+ /* function exit code */
18531
+ __pyx_L0:;
18532
+ return __pyx_r;
18533
+ }
18534
+
18535
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":373
18536
+ *
18537
+ * @property
18538
+ * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18539
+ * """Returns an owned reference to the dtype of the array.
18540
+ * """
18541
+ */
18542
+
18543
+ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
18544
+ PyArray_Descr *__pyx_r = NULL;
18545
+ __Pyx_RefNannyDeclarations
18546
+ PyArray_Descr *__pyx_t_1;
18547
+ __Pyx_RefNannySetupContext("descr", 1);
18548
+
18549
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":376
18550
+ * """Returns an owned reference to the dtype of the array.
18551
+ * """
18552
+ * return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
18553
+ *
18554
+ * @property
18555
+ */
18556
+ __Pyx_XDECREF((PyObject *)__pyx_r);
18557
+ __pyx_t_1 = PyArray_DESCR(__pyx_v_self);
18558
+ __Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
18559
+ __pyx_r = ((PyArray_Descr *)__pyx_t_1);
18560
+ goto __pyx_L0;
18561
+
18562
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":373
18563
+ *
18564
+ * @property
18565
+ * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18566
+ * """Returns an owned reference to the dtype of the array.
18567
+ * """
18568
+ */
18569
+
18570
+ /* function exit code */
18571
+ __pyx_L0:;
18572
+ __Pyx_XGIVEREF((PyObject *)__pyx_r);
18573
+ __Pyx_RefNannyFinishContext();
18574
+ return __pyx_r;
18575
+ }
18576
+
18577
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":379
18578
+ *
18579
+ * @property
18580
+ * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
18581
+ * """Returns the number of dimensions in the array.
18582
+ * """
18583
+ */
18584
+
18585
+ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
18586
+ int __pyx_r;
18587
+
18588
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":382
18589
+ * """Returns the number of dimensions in the array.
18590
+ * """
18591
+ * return PyArray_NDIM(self) # <<<<<<<<<<<<<<
18592
+ *
18593
+ * @property
18594
+ */
18595
+ __pyx_r = PyArray_NDIM(__pyx_v_self);
18596
+ goto __pyx_L0;
18597
+
18598
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":379
18599
+ *
18600
+ * @property
18601
+ * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
18602
+ * """Returns the number of dimensions in the array.
18603
+ * """
18604
+ */
18605
+
18606
+ /* function exit code */
18607
+ __pyx_L0:;
18608
+ return __pyx_r;
18609
+ }
18610
+
18611
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":385
18612
+ *
18613
+ * @property
18614
+ * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
18615
+ * """Returns a pointer to the dimensions/shape of the array.
18616
+ * The number of elements matches the number of dimensions of the array (ndim).
18617
+ */
18618
+
18619
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
18620
+ npy_intp *__pyx_r;
18621
+
18622
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":390
18623
+ * Can return NULL for 0-dimensional arrays.
18624
+ * """
18625
+ * return PyArray_DIMS(self) # <<<<<<<<<<<<<<
18626
+ *
18627
+ * @property
18628
+ */
18629
+ __pyx_r = PyArray_DIMS(__pyx_v_self);
18630
+ goto __pyx_L0;
18631
+
18632
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":385
18633
+ *
18634
+ * @property
18635
+ * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
18636
+ * """Returns a pointer to the dimensions/shape of the array.
18637
+ * The number of elements matches the number of dimensions of the array (ndim).
18638
+ */
18639
+
18640
+ /* function exit code */
18641
+ __pyx_L0:;
18642
+ return __pyx_r;
18643
+ }
18644
+
18645
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":393
18646
+ *
18647
+ * @property
18648
+ * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
18649
+ * """Returns a pointer to the strides of the array.
18650
+ * The number of elements matches the number of dimensions of the array (ndim).
18651
+ */
18652
+
18653
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
18654
+ npy_intp *__pyx_r;
18655
+
18656
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":397
18657
+ * The number of elements matches the number of dimensions of the array (ndim).
18658
+ * """
18659
+ * return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
18660
+ *
18661
+ * @property
18662
+ */
18663
+ __pyx_r = PyArray_STRIDES(__pyx_v_self);
18664
+ goto __pyx_L0;
18665
+
18666
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":393
18667
+ *
18668
+ * @property
18669
+ * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
18670
+ * """Returns a pointer to the strides of the array.
18671
+ * The number of elements matches the number of dimensions of the array (ndim).
18672
+ */
18673
+
18674
+ /* function exit code */
18675
+ __pyx_L0:;
18676
+ return __pyx_r;
18677
+ }
18678
+
18679
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":400
18680
+ *
18681
+ * @property
18682
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18683
+ * """Returns the total size (in number of elements) of the array.
18684
+ * """
18685
+ */
18686
+
18687
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
18688
+ npy_intp __pyx_r;
18689
+
18690
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":403
18691
+ * """Returns the total size (in number of elements) of the array.
18692
+ * """
18693
+ * return PyArray_SIZE(self) # <<<<<<<<<<<<<<
18694
+ *
18695
+ * @property
18696
+ */
18697
+ __pyx_r = PyArray_SIZE(__pyx_v_self);
18698
+ goto __pyx_L0;
18699
+
18700
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":400
18701
+ *
18702
+ * @property
18703
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18704
+ * """Returns the total size (in number of elements) of the array.
18705
+ * """
18706
+ */
18707
+
18708
+ /* function exit code */
18709
+ __pyx_L0:;
18710
+ return __pyx_r;
18711
+ }
18712
+
18713
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":406
18714
+ *
18715
+ * @property
18716
+ * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
18717
+ * """The pointer to the data buffer as a char*.
18718
+ * This is provided for legacy reasons to avoid direct struct field access.
18719
+ */
18720
+
18721
+ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
18722
+ char *__pyx_r;
18723
+
18724
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":412
18725
+ * of `PyArray_DATA()` instead, which returns a 'void*'.
18726
+ * """
18727
+ * return PyArray_BYTES(self) # <<<<<<<<<<<<<<
18728
+ *
18729
+ *
18730
+ */
18731
+ __pyx_r = PyArray_BYTES(__pyx_v_self);
18732
+ goto __pyx_L0;
18733
+
18734
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":406
18735
+ *
18736
+ * @property
18737
+ * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
18738
+ * """The pointer to the data buffer as a char*.
18739
+ * This is provided for legacy reasons to avoid direct struct field access.
18740
+ */
18741
+
18742
+ /* function exit code */
18743
+ __pyx_L0:;
18744
+ return __pyx_r;
18745
+ }
18746
+
18747
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
18748
+ * ctypedef long double complex clongdouble_t
18749
+ *
18750
+ * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18751
+ * return PyArray_MultiIterNew(1, <void*>a)
18752
+ *
18753
+ */
18754
+
18755
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
18756
+ PyObject *__pyx_r = NULL;
18757
+ __Pyx_RefNannyDeclarations
18758
+ PyObject *__pyx_t_1 = NULL;
18759
+ int __pyx_lineno = 0;
18760
+ const char *__pyx_filename = NULL;
18761
+ int __pyx_clineno = 0;
18762
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
18763
+
18764
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":825
18765
+ *
18766
+ * cdef inline object PyArray_MultiIterNew1(a):
18767
+ * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
18768
+ *
18769
+ * cdef inline object PyArray_MultiIterNew2(a, b):
18770
+ */
18771
+ __Pyx_XDECREF(__pyx_r);
18772
+ __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 825, __pyx_L1_error)
18773
+ __Pyx_GOTREF(__pyx_t_1);
18774
+ __pyx_r = __pyx_t_1;
18775
+ __pyx_t_1 = 0;
18776
+ goto __pyx_L0;
18777
+
18778
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
18779
+ * ctypedef long double complex clongdouble_t
18780
+ *
18781
+ * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18782
+ * return PyArray_MultiIterNew(1, <void*>a)
18783
+ *
18784
+ */
18785
+
18786
+ /* function exit code */
18787
+ __pyx_L1_error:;
18788
+ __Pyx_XDECREF(__pyx_t_1);
18789
+ __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
18790
+ __pyx_r = 0;
18791
+ __pyx_L0:;
18792
+ __Pyx_XGIVEREF(__pyx_r);
18793
+ __Pyx_RefNannyFinishContext();
18794
+ return __pyx_r;
18795
+ }
18796
+
18797
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":827
18798
+ * return PyArray_MultiIterNew(1, <void*>a)
18799
+ *
18800
+ * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18801
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18802
+ *
18803
+ */
18804
+
18805
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
18806
+ PyObject *__pyx_r = NULL;
18807
+ __Pyx_RefNannyDeclarations
18808
+ PyObject *__pyx_t_1 = NULL;
18809
+ int __pyx_lineno = 0;
18810
+ const char *__pyx_filename = NULL;
18811
+ int __pyx_clineno = 0;
18812
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
18813
+
18814
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":828
18815
+ *
18816
+ * cdef inline object PyArray_MultiIterNew2(a, b):
18817
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
18818
+ *
18819
+ * cdef inline object PyArray_MultiIterNew3(a, b, c):
18820
+ */
18821
+ __Pyx_XDECREF(__pyx_r);
18822
+ __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 828, __pyx_L1_error)
18823
+ __Pyx_GOTREF(__pyx_t_1);
18824
+ __pyx_r = __pyx_t_1;
18825
+ __pyx_t_1 = 0;
18826
+ goto __pyx_L0;
18827
+
18828
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":827
18829
+ * return PyArray_MultiIterNew(1, <void*>a)
18830
+ *
18831
+ * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18832
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18833
+ *
18834
+ */
18835
+
18836
+ /* function exit code */
18837
+ __pyx_L1_error:;
18838
+ __Pyx_XDECREF(__pyx_t_1);
18839
+ __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
18840
+ __pyx_r = 0;
18841
+ __pyx_L0:;
18842
+ __Pyx_XGIVEREF(__pyx_r);
18843
+ __Pyx_RefNannyFinishContext();
18844
+ return __pyx_r;
18845
+ }
18846
+
18847
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":830
18848
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18849
+ *
18850
+ * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
18851
+ * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18422
18852
  *
18423
18853
  */
18424
18854
 
@@ -18431,7 +18861,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18431
18861
  int __pyx_clineno = 0;
18432
18862
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);
18433
18863
 
18434
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":780
18864
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":831
18435
18865
  *
18436
18866
  * cdef inline object PyArray_MultiIterNew3(a, b, c):
18437
18867
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
@@ -18439,13 +18869,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18439
18869
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
18440
18870
  */
18441
18871
  __Pyx_XDECREF(__pyx_r);
18442
- __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)
18872
+ __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 831, __pyx_L1_error)
18443
18873
  __Pyx_GOTREF(__pyx_t_1);
18444
18874
  __pyx_r = __pyx_t_1;
18445
18875
  __pyx_t_1 = 0;
18446
18876
  goto __pyx_L0;
18447
18877
 
18448
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":779
18878
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":830
18449
18879
  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18450
18880
  *
18451
18881
  * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
@@ -18464,7 +18894,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18464
18894
  return __pyx_r;
18465
18895
  }
18466
18896
 
18467
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":782
18897
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":833
18468
18898
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18469
18899
  *
18470
18900
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -18481,7 +18911,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18481
18911
  int __pyx_clineno = 0;
18482
18912
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);
18483
18913
 
18484
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":783
18914
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":834
18485
18915
  *
18486
18916
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
18487
18917
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
@@ -18489,13 +18919,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18489
18919
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
18490
18920
  */
18491
18921
  __Pyx_XDECREF(__pyx_r);
18492
- __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)
18922
+ __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 834, __pyx_L1_error)
18493
18923
  __Pyx_GOTREF(__pyx_t_1);
18494
18924
  __pyx_r = __pyx_t_1;
18495
18925
  __pyx_t_1 = 0;
18496
18926
  goto __pyx_L0;
18497
18927
 
18498
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":782
18928
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":833
18499
18929
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18500
18930
  *
18501
18931
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -18514,7 +18944,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18514
18944
  return __pyx_r;
18515
18945
  }
18516
18946
 
18517
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":785
18947
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":836
18518
18948
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
18519
18949
  *
18520
18950
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -18531,7 +18961,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18531
18961
  int __pyx_clineno = 0;
18532
18962
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);
18533
18963
 
18534
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":786
18964
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":837
18535
18965
  *
18536
18966
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
18537
18967
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
@@ -18539,13 +18969,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18539
18969
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18540
18970
  */
18541
18971
  __Pyx_XDECREF(__pyx_r);
18542
- __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)
18972
+ __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 837, __pyx_L1_error)
18543
18973
  __Pyx_GOTREF(__pyx_t_1);
18544
18974
  __pyx_r = __pyx_t_1;
18545
18975
  __pyx_t_1 = 0;
18546
18976
  goto __pyx_L0;
18547
18977
 
18548
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":785
18978
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":836
18549
18979
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
18550
18980
  *
18551
18981
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -18564,7 +18994,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18564
18994
  return __pyx_r;
18565
18995
  }
18566
18996
 
18567
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":788
18997
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":839
18568
18998
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
18569
18999
  *
18570
19000
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -18576,9 +19006,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18576
19006
  PyObject *__pyx_r = NULL;
18577
19007
  __Pyx_RefNannyDeclarations
18578
19008
  int __pyx_t_1;
19009
+ PyObject *__pyx_t_2;
18579
19010
  __Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);
18580
19011
 
18581
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":789
19012
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":840
18582
19013
  *
18583
19014
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18584
19015
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -18588,7 +19019,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18588
19019
  __pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
18589
19020
  if (__pyx_t_1) {
18590
19021
 
18591
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":790
19022
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":841
18592
19023
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18593
19024
  * if PyDataType_HASSUBARRAY(d):
18594
19025
  * return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
@@ -18596,11 +19027,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18596
19027
  * return ()
18597
19028
  */
18598
19029
  __Pyx_XDECREF(__pyx_r);
18599
- __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
18600
- __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
19030
+ __pyx_t_2 = __pyx_f_5numpy_5dtype_8subarray_subarray(__pyx_v_d)->shape;
19031
+ __Pyx_INCREF(((PyObject*)__pyx_t_2));
19032
+ __pyx_r = ((PyObject*)__pyx_t_2);
18601
19033
  goto __pyx_L0;
18602
19034
 
18603
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":789
19035
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":840
18604
19036
  *
18605
19037
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18606
19038
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -18609,7 +19041,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18609
19041
  */
18610
19042
  }
18611
19043
 
18612
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":792
19044
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":843
18613
19045
  * return <tuple>d.subarray.shape
18614
19046
  * else:
18615
19047
  * return () # <<<<<<<<<<<<<<
@@ -18623,7 +19055,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18623
19055
  goto __pyx_L0;
18624
19056
  }
18625
19057
 
18626
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":788
19058
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":839
18627
19059
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
18628
19060
  *
18629
19061
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -18638,10 +19070,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18638
19070
  return __pyx_r;
18639
19071
  }
18640
19072
 
18641
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":968
19073
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
18642
19074
  * int _import_umath() except -1
18643
19075
  *
18644
- * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
19076
+ * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
18645
19077
  * Py_INCREF(base) # important to do this before stealing the reference below!
18646
19078
  * PyArray_SetBaseObject(arr, base)
18647
19079
  */
@@ -18652,28 +19084,28 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
18652
19084
  const char *__pyx_filename = NULL;
18653
19085
  int __pyx_clineno = 0;
18654
19086
 
18655
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":969
19087
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
18656
19088
  *
18657
- * cdef inline void set_array_base(ndarray arr, object base):
19089
+ * cdef inline void set_array_base(ndarray arr, object base) except *:
18658
19090
  * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
18659
19091
  * PyArray_SetBaseObject(arr, base)
18660
19092
  *
18661
19093
  */
18662
19094
  Py_INCREF(__pyx_v_base);
18663
19095
 
18664
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":970
18665
- * cdef inline void set_array_base(ndarray arr, object base):
19096
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1037
19097
+ * cdef inline void set_array_base(ndarray arr, object base) except *:
18666
19098
  * Py_INCREF(base) # important to do this before stealing the reference below!
18667
19099
  * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
18668
19100
  *
18669
19101
  * cdef inline object get_array_base(ndarray arr):
18670
19102
  */
18671
- __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)
19103
+ __pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 1037, __pyx_L1_error)
18672
19104
 
18673
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":968
19105
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
18674
19106
  * int _import_umath() except -1
18675
19107
  *
18676
- * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
19108
+ * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
18677
19109
  * Py_INCREF(base) # important to do this before stealing the reference below!
18678
19110
  * PyArray_SetBaseObject(arr, base)
18679
19111
  */
@@ -18685,7 +19117,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
18685
19117
  __pyx_L0:;
18686
19118
  }
18687
19119
 
18688
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":972
19120
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
18689
19121
  * PyArray_SetBaseObject(arr, base)
18690
19122
  *
18691
19123
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -18700,7 +19132,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18700
19132
  int __pyx_t_1;
18701
19133
  __Pyx_RefNannySetupContext("get_array_base", 1);
18702
19134
 
18703
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":973
19135
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1040
18704
19136
  *
18705
19137
  * cdef inline object get_array_base(ndarray arr):
18706
19138
  * base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
@@ -18709,7 +19141,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18709
19141
  */
18710
19142
  __pyx_v_base = PyArray_BASE(__pyx_v_arr);
18711
19143
 
18712
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":974
19144
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
18713
19145
  * cdef inline object get_array_base(ndarray arr):
18714
19146
  * base = PyArray_BASE(arr)
18715
19147
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -18719,7 +19151,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18719
19151
  __pyx_t_1 = (__pyx_v_base == NULL);
18720
19152
  if (__pyx_t_1) {
18721
19153
 
18722
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":975
19154
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1042
18723
19155
  * base = PyArray_BASE(arr)
18724
19156
  * if base is NULL:
18725
19157
  * return None # <<<<<<<<<<<<<<
@@ -18730,7 +19162,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18730
19162
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18731
19163
  goto __pyx_L0;
18732
19164
 
18733
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":974
19165
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
18734
19166
  * cdef inline object get_array_base(ndarray arr):
18735
19167
  * base = PyArray_BASE(arr)
18736
19168
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -18739,7 +19171,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18739
19171
  */
18740
19172
  }
18741
19173
 
18742
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":976
19174
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1043
18743
19175
  * if base is NULL:
18744
19176
  * return None
18745
19177
  * return <object>base # <<<<<<<<<<<<<<
@@ -18751,7 +19183,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18751
19183
  __pyx_r = ((PyObject *)__pyx_v_base);
18752
19184
  goto __pyx_L0;
18753
19185
 
18754
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":972
19186
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
18755
19187
  * PyArray_SetBaseObject(arr, base)
18756
19188
  *
18757
19189
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -18766,7 +19198,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18766
19198
  return __pyx_r;
18767
19199
  }
18768
19200
 
18769
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":980
19201
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1047
18770
19202
  * # Versions of the import_* functions which are more suitable for
18771
19203
  * # Cython code.
18772
19204
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -18790,7 +19222,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18790
19222
  int __pyx_clineno = 0;
18791
19223
  __Pyx_RefNannySetupContext("import_array", 1);
18792
19224
 
18793
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":981
19225
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
18794
19226
  * # Cython code.
18795
19227
  * cdef inline int import_array() except -1:
18796
19228
  * try: # <<<<<<<<<<<<<<
@@ -18806,16 +19238,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18806
19238
  __Pyx_XGOTREF(__pyx_t_3);
18807
19239
  /*try:*/ {
18808
19240
 
18809
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":982
19241
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1049
18810
19242
  * cdef inline int import_array() except -1:
18811
19243
  * try:
18812
19244
  * __pyx_import_array() # <<<<<<<<<<<<<<
18813
19245
  * except Exception:
18814
- * raise ImportError("numpy.core.multiarray failed to import")
19246
+ * raise ImportError("numpy._core.multiarray failed to import")
18815
19247
  */
18816
- __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 982, __pyx_L3_error)
19248
+ __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1049, __pyx_L3_error)
18817
19249
 
18818
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":981
19250
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
18819
19251
  * # Cython code.
18820
19252
  * cdef inline int import_array() except -1:
18821
19253
  * try: # <<<<<<<<<<<<<<
@@ -18829,37 +19261,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18829
19261
  goto __pyx_L8_try_end;
18830
19262
  __pyx_L3_error:;
18831
19263
 
18832
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":983
19264
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1050
18833
19265
  * try:
18834
19266
  * __pyx_import_array()
18835
19267
  * except Exception: # <<<<<<<<<<<<<<
18836
- * raise ImportError("numpy.core.multiarray failed to import")
19268
+ * raise ImportError("numpy._core.multiarray failed to import")
18837
19269
  *
18838
19270
  */
18839
19271
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
18840
19272
  if (__pyx_t_4) {
18841
19273
  __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
18842
- if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 983, __pyx_L5_except_error)
19274
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1050, __pyx_L5_except_error)
18843
19275
  __Pyx_XGOTREF(__pyx_t_5);
18844
19276
  __Pyx_XGOTREF(__pyx_t_6);
18845
19277
  __Pyx_XGOTREF(__pyx_t_7);
18846
19278
 
18847
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":984
19279
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1051
18848
19280
  * __pyx_import_array()
18849
19281
  * except Exception:
18850
- * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
19282
+ * raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
18851
19283
  *
18852
19284
  * cdef inline int import_umath() except -1:
18853
19285
  */
18854
- __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)
19286
+ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1051, __pyx_L5_except_error)
18855
19287
  __Pyx_GOTREF(__pyx_t_8);
18856
19288
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
18857
19289
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
18858
- __PYX_ERR(2, 984, __pyx_L5_except_error)
19290
+ __PYX_ERR(2, 1051, __pyx_L5_except_error)
18859
19291
  }
18860
19292
  goto __pyx_L5_except_error;
18861
19293
 
18862
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":981
19294
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
18863
19295
  * # Cython code.
18864
19296
  * cdef inline int import_array() except -1:
18865
19297
  * try: # <<<<<<<<<<<<<<
@@ -18875,7 +19307,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18875
19307
  __pyx_L8_try_end:;
18876
19308
  }
18877
19309
 
18878
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":980
19310
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1047
18879
19311
  * # Versions of the import_* functions which are more suitable for
18880
19312
  * # Cython code.
18881
19313
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -18898,8 +19330,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
18898
19330
  return __pyx_r;
18899
19331
  }
18900
19332
 
18901
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":986
18902
- * raise ImportError("numpy.core.multiarray failed to import")
19333
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
19334
+ * raise ImportError("numpy._core.multiarray failed to import")
18903
19335
  *
18904
19336
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
18905
19337
  * try:
@@ -18922,7 +19354,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
18922
19354
  int __pyx_clineno = 0;
18923
19355
  __Pyx_RefNannySetupContext("import_umath", 1);
18924
19356
 
18925
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":987
19357
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
18926
19358
  *
18927
19359
  * cdef inline int import_umath() except -1:
18928
19360
  * try: # <<<<<<<<<<<<<<
@@ -18938,16 +19370,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
18938
19370
  __Pyx_XGOTREF(__pyx_t_3);
18939
19371
  /*try:*/ {
18940
19372
 
18941
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":988
19373
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1055
18942
19374
  * cdef inline int import_umath() except -1:
18943
19375
  * try:
18944
19376
  * _import_umath() # <<<<<<<<<<<<<<
18945
19377
  * except Exception:
18946
- * raise ImportError("numpy.core.umath failed to import")
19378
+ * raise ImportError("numpy._core.umath failed to import")
18947
19379
  */
18948
- __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 988, __pyx_L3_error)
19380
+ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1055, __pyx_L3_error)
18949
19381
 
18950
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":987
19382
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
18951
19383
  *
18952
19384
  * cdef inline int import_umath() except -1:
18953
19385
  * try: # <<<<<<<<<<<<<<
@@ -18961,37 +19393,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
18961
19393
  goto __pyx_L8_try_end;
18962
19394
  __pyx_L3_error:;
18963
19395
 
18964
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":989
19396
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
18965
19397
  * try:
18966
19398
  * _import_umath()
18967
19399
  * except Exception: # <<<<<<<<<<<<<<
18968
- * raise ImportError("numpy.core.umath failed to import")
19400
+ * raise ImportError("numpy._core.umath failed to import")
18969
19401
  *
18970
19402
  */
18971
19403
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
18972
19404
  if (__pyx_t_4) {
18973
19405
  __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
18974
- if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 989, __pyx_L5_except_error)
19406
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1056, __pyx_L5_except_error)
18975
19407
  __Pyx_XGOTREF(__pyx_t_5);
18976
19408
  __Pyx_XGOTREF(__pyx_t_6);
18977
19409
  __Pyx_XGOTREF(__pyx_t_7);
18978
19410
 
18979
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":990
19411
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1057
18980
19412
  * _import_umath()
18981
19413
  * except Exception:
18982
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
19414
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
18983
19415
  *
18984
19416
  * cdef inline int import_ufunc() except -1:
18985
19417
  */
18986
- __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)
19418
+ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1057, __pyx_L5_except_error)
18987
19419
  __Pyx_GOTREF(__pyx_t_8);
18988
19420
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
18989
19421
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
18990
- __PYX_ERR(2, 990, __pyx_L5_except_error)
19422
+ __PYX_ERR(2, 1057, __pyx_L5_except_error)
18991
19423
  }
18992
19424
  goto __pyx_L5_except_error;
18993
19425
 
18994
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":987
19426
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
18995
19427
  *
18996
19428
  * cdef inline int import_umath() except -1:
18997
19429
  * try: # <<<<<<<<<<<<<<
@@ -19007,8 +19439,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19007
19439
  __pyx_L8_try_end:;
19008
19440
  }
19009
19441
 
19010
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":986
19011
- * raise ImportError("numpy.core.multiarray failed to import")
19442
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
19443
+ * raise ImportError("numpy._core.multiarray failed to import")
19012
19444
  *
19013
19445
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
19014
19446
  * try:
@@ -19030,8 +19462,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19030
19462
  return __pyx_r;
19031
19463
  }
19032
19464
 
19033
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":992
19034
- * raise ImportError("numpy.core.umath failed to import")
19465
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1059
19466
+ * raise ImportError("numpy._core.umath failed to import")
19035
19467
  *
19036
19468
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
19037
19469
  * try:
@@ -19054,7 +19486,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19054
19486
  int __pyx_clineno = 0;
19055
19487
  __Pyx_RefNannySetupContext("import_ufunc", 1);
19056
19488
 
19057
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":993
19489
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
19058
19490
  *
19059
19491
  * cdef inline int import_ufunc() except -1:
19060
19492
  * try: # <<<<<<<<<<<<<<
@@ -19070,16 +19502,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19070
19502
  __Pyx_XGOTREF(__pyx_t_3);
19071
19503
  /*try:*/ {
19072
19504
 
19073
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":994
19505
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1061
19074
19506
  * cdef inline int import_ufunc() except -1:
19075
19507
  * try:
19076
19508
  * _import_umath() # <<<<<<<<<<<<<<
19077
19509
  * except Exception:
19078
- * raise ImportError("numpy.core.umath failed to import")
19510
+ * raise ImportError("numpy._core.umath failed to import")
19079
19511
  */
19080
- __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 994, __pyx_L3_error)
19512
+ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1061, __pyx_L3_error)
19081
19513
 
19082
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":993
19514
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
19083
19515
  *
19084
19516
  * cdef inline int import_ufunc() except -1:
19085
19517
  * try: # <<<<<<<<<<<<<<
@@ -19093,37 +19525,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19093
19525
  goto __pyx_L8_try_end;
19094
19526
  __pyx_L3_error:;
19095
19527
 
19096
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":995
19528
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1062
19097
19529
  * try:
19098
19530
  * _import_umath()
19099
19531
  * except Exception: # <<<<<<<<<<<<<<
19100
- * raise ImportError("numpy.core.umath failed to import")
19532
+ * raise ImportError("numpy._core.umath failed to import")
19101
19533
  *
19102
19534
  */
19103
19535
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
19104
19536
  if (__pyx_t_4) {
19105
19537
  __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
19106
- if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 995, __pyx_L5_except_error)
19538
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1062, __pyx_L5_except_error)
19107
19539
  __Pyx_XGOTREF(__pyx_t_5);
19108
19540
  __Pyx_XGOTREF(__pyx_t_6);
19109
19541
  __Pyx_XGOTREF(__pyx_t_7);
19110
19542
 
19111
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":996
19543
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1063
19112
19544
  * _import_umath()
19113
19545
  * except Exception:
19114
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
19546
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
19115
19547
  *
19116
19548
  *
19117
19549
  */
19118
- __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)
19550
+ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1063, __pyx_L5_except_error)
19119
19551
  __Pyx_GOTREF(__pyx_t_8);
19120
19552
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
19121
19553
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
19122
- __PYX_ERR(2, 996, __pyx_L5_except_error)
19554
+ __PYX_ERR(2, 1063, __pyx_L5_except_error)
19123
19555
  }
19124
19556
  goto __pyx_L5_except_error;
19125
19557
 
19126
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":993
19558
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
19127
19559
  *
19128
19560
  * cdef inline int import_ufunc() except -1:
19129
19561
  * try: # <<<<<<<<<<<<<<
@@ -19139,8 +19571,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19139
19571
  __pyx_L8_try_end:;
19140
19572
  }
19141
19573
 
19142
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":992
19143
- * raise ImportError("numpy.core.umath failed to import")
19574
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1059
19575
+ * raise ImportError("numpy._core.umath failed to import")
19144
19576
  *
19145
19577
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
19146
19578
  * try:
@@ -19162,10 +19594,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19162
19594
  return __pyx_r;
19163
19595
  }
19164
19596
 
19165
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":999
19597
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1066
19166
19598
  *
19167
19599
  *
19168
- * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
19600
+ * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19169
19601
  * """
19170
19602
  * Cython equivalent of `isinstance(obj, np.timedelta64)`
19171
19603
  */
@@ -19173,7 +19605,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19173
19605
  static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
19174
19606
  int __pyx_r;
19175
19607
 
19176
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1011
19608
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1078
19177
19609
  * bool
19178
19610
  * """
19179
19611
  * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
@@ -19183,10 +19615,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19183
19615
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
19184
19616
  goto __pyx_L0;
19185
19617
 
19186
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":999
19618
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1066
19187
19619
  *
19188
19620
  *
19189
- * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
19621
+ * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19190
19622
  * """
19191
19623
  * Cython equivalent of `isinstance(obj, np.timedelta64)`
19192
19624
  */
@@ -19196,10 +19628,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19196
19628
  return __pyx_r;
19197
19629
  }
19198
19630
 
19199
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
19631
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
19200
19632
  *
19201
19633
  *
19202
- * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
19634
+ * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19203
19635
  * """
19204
19636
  * Cython equivalent of `isinstance(obj, np.datetime64)`
19205
19637
  */
@@ -19207,7 +19639,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19207
19639
  static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
19208
19640
  int __pyx_r;
19209
19641
 
19210
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
19642
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1093
19211
19643
  * bool
19212
19644
  * """
19213
19645
  * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
@@ -19217,10 +19649,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19217
19649
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
19218
19650
  goto __pyx_L0;
19219
19651
 
19220
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
19652
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
19221
19653
  *
19222
19654
  *
19223
- * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
19655
+ * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19224
19656
  * """
19225
19657
  * Cython equivalent of `isinstance(obj, np.datetime64)`
19226
19658
  */
@@ -19230,10 +19662,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19230
19662
  return __pyx_r;
19231
19663
  }
19232
19664
 
19233
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
19665
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
19234
19666
  *
19235
19667
  *
19236
- * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
19668
+ * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19237
19669
  * """
19238
19670
  * returns the int64 value underlying scalar numpy datetime64 object
19239
19671
  */
@@ -19241,7 +19673,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19241
19673
  static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
19242
19674
  npy_datetime __pyx_r;
19243
19675
 
19244
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
19676
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1103
19245
19677
  * also needed. That can be found using `get_datetime64_unit`.
19246
19678
  * """
19247
19679
  * return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -19251,10 +19683,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19251
19683
  __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
19252
19684
  goto __pyx_L0;
19253
19685
 
19254
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
19686
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
19255
19687
  *
19256
19688
  *
19257
- * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
19689
+ * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19258
19690
  * """
19259
19691
  * returns the int64 value underlying scalar numpy datetime64 object
19260
19692
  */
@@ -19264,10 +19696,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19264
19696
  return __pyx_r;
19265
19697
  }
19266
19698
 
19267
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
19699
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1106
19268
19700
  *
19269
19701
  *
19270
- * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
19702
+ * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19271
19703
  * """
19272
19704
  * returns the int64 value underlying scalar numpy timedelta64 object
19273
19705
  */
@@ -19275,7 +19707,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19275
19707
  static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
19276
19708
  npy_timedelta __pyx_r;
19277
19709
 
19278
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1043
19710
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1110
19279
19711
  * returns the int64 value underlying scalar numpy timedelta64 object
19280
19712
  * """
19281
19713
  * return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -19285,10 +19717,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19285
19717
  __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
19286
19718
  goto __pyx_L0;
19287
19719
 
19288
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
19720
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1106
19289
19721
  *
19290
19722
  *
19291
- * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
19723
+ * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19292
19724
  * """
19293
19725
  * returns the int64 value underlying scalar numpy timedelta64 object
19294
19726
  */
@@ -19298,10 +19730,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19298
19730
  return __pyx_r;
19299
19731
  }
19300
19732
 
19301
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1046
19733
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1113
19302
19734
  *
19303
19735
  *
19304
- * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
19736
+ * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19305
19737
  * """
19306
19738
  * returns the unit part of the dtype for a numpy datetime64 object.
19307
19739
  */
@@ -19309,18 +19741,20 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19309
19741
  static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
19310
19742
  NPY_DATETIMEUNIT __pyx_r;
19311
19743
 
19312
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1050
19744
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1117
19313
19745
  * returns the unit part of the dtype for a numpy datetime64 object.
19314
19746
  * """
19315
19747
  * return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
19748
+ *
19749
+ *
19316
19750
  */
19317
19751
  __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
19318
19752
  goto __pyx_L0;
19319
19753
 
19320
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1046
19754
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1113
19321
19755
  *
19322
19756
  *
19323
- * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
19757
+ * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19324
19758
  * """
19325
19759
  * returns the unit part of the dtype for a numpy datetime64 object.
19326
19760
  */
@@ -19356,7 +19790,7 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19356
19790
  PyObject *__pyx_t_2 = NULL;
19357
19791
  PyObject *__pyx_t_3 = NULL;
19358
19792
  PyObject *__pyx_t_4 = NULL;
19359
- int __pyx_t_5;
19793
+ unsigned int __pyx_t_5;
19360
19794
  PyObject *__pyx_t_6 = NULL;
19361
19795
  __Pyx_memviewslice __pyx_t_7 = { 0, 0, { 0 }, { 0 }, { 0 } };
19362
19796
  PyArrayObject *__pyx_t_8 = NULL;
@@ -19364,8 +19798,9 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19364
19798
  int __pyx_t_10;
19365
19799
  int __pyx_t_11;
19366
19800
  int __pyx_t_12;
19367
- Py_ssize_t __pyx_t_13;
19801
+ int __pyx_t_13;
19368
19802
  Py_ssize_t __pyx_t_14;
19803
+ Py_ssize_t __pyx_t_15;
19369
19804
  int __pyx_lineno = 0;
19370
19805
  const char *__pyx_filename = NULL;
19371
19806
  int __pyx_clineno = 0;
@@ -19556,10 +19991,10 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19556
19991
  * mh.insert_key(i, degrees)
19557
19992
  *
19558
19993
  */
19559
- __pyx_t_5 = __pyx_v_n;
19560
- __pyx_t_9 = __pyx_t_5;
19561
- for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
19562
- __pyx_v_i = __pyx_t_10;
19994
+ __pyx_t_9 = __pyx_v_n;
19995
+ __pyx_t_10 = __pyx_t_9;
19996
+ for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
19997
+ __pyx_v_i = __pyx_t_11;
19563
19998
 
19564
19999
  /* "sknetwork/topology/core.pyx":47
19565
20000
  * # insert all nodes in the heap
@@ -19588,9 +20023,9 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19588
20023
  * core_value = max(core_value, degrees[min_node])
19589
20024
  */
19590
20025
  while (1) {
19591
- __pyx_t_11 = ((struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap *)__pyx_v_mh->__pyx_vtab)->empty(__pyx_v_mh); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 50, __pyx_L1_error)
19592
- __pyx_t_12 = (!__pyx_t_11);
19593
- if (!__pyx_t_12) break;
20026
+ __pyx_t_12 = ((struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap *)__pyx_v_mh->__pyx_vtab)->empty(__pyx_v_mh); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 50, __pyx_L1_error)
20027
+ __pyx_t_13 = (!__pyx_t_12);
20028
+ if (!__pyx_t_13) break;
19594
20029
 
19595
20030
  /* "sknetwork/topology/core.pyx":51
19596
20031
  * i = n - 1
@@ -19599,8 +20034,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19599
20034
  * core_value = max(core_value, degrees[min_node])
19600
20035
  *
19601
20036
  */
19602
- __pyx_t_5 = ((struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap *)__pyx_v_mh->__pyx_vtab)->pop_min(__pyx_v_mh, __pyx_v_degrees); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 51, __pyx_L1_error)
19603
- __pyx_v_min_node = __pyx_t_5;
20037
+ __pyx_t_9 = ((struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap *)__pyx_v_mh->__pyx_vtab)->pop_min(__pyx_v_mh, __pyx_v_degrees); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 51, __pyx_L1_error)
20038
+ __pyx_v_min_node = __pyx_t_9;
19604
20039
 
19605
20040
  /* "sknetwork/topology/core.pyx":52
19606
20041
  * while not mh.empty():
@@ -19609,16 +20044,16 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19609
20044
  *
19610
20045
  * # decrease the degree of each neighbor of min_node
19611
20046
  */
19612
- __pyx_t_13 = __pyx_v_min_node;
19613
- __pyx_t_5 = (*((int *) ( /* dim=0 */ (__pyx_v_degrees.data + __pyx_t_13 * __pyx_v_degrees.strides[0]) )));
19614
- __pyx_t_9 = __pyx_v_core_value;
19615
- __pyx_t_12 = (__pyx_t_5 > __pyx_t_9);
19616
- if (__pyx_t_12) {
19617
- __pyx_t_10 = __pyx_t_5;
20047
+ __pyx_t_14 = __pyx_v_min_node;
20048
+ __pyx_t_9 = (*((int *) ( /* dim=0 */ (__pyx_v_degrees.data + __pyx_t_14 * __pyx_v_degrees.strides[0]) )));
20049
+ __pyx_t_10 = __pyx_v_core_value;
20050
+ __pyx_t_13 = (__pyx_t_9 > __pyx_t_10);
20051
+ if (__pyx_t_13) {
20052
+ __pyx_t_11 = __pyx_t_9;
19618
20053
  } else {
19619
- __pyx_t_10 = __pyx_t_9;
20054
+ __pyx_t_11 = __pyx_t_10;
19620
20055
  }
19621
- __pyx_v_core_value = __pyx_t_10;
20056
+ __pyx_v_core_value = __pyx_t_11;
19622
20057
 
19623
20058
  /* "sknetwork/topology/core.pyx":55
19624
20059
  *
@@ -19627,12 +20062,12 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19627
20062
  * j = indices[k]
19628
20063
  * degrees[j] -= 1
19629
20064
  */
19630
- __pyx_t_13 = (__pyx_v_min_node + 1);
19631
- __pyx_t_10 = (*((int *) ( /* dim=0 */ (__pyx_v_indptr.data + __pyx_t_13 * __pyx_v_indptr.strides[0]) )));
19632
- __pyx_t_13 = __pyx_v_min_node;
19633
- __pyx_t_5 = __pyx_t_10;
19634
- for (__pyx_t_9 = (*((int *) ( /* dim=0 */ (__pyx_v_indptr.data + __pyx_t_13 * __pyx_v_indptr.strides[0]) ))); __pyx_t_9 < __pyx_t_5; __pyx_t_9+=1) {
19635
- __pyx_v_k = __pyx_t_9;
20065
+ __pyx_t_14 = (__pyx_v_min_node + 1);
20066
+ __pyx_t_11 = (*((int *) ( /* dim=0 */ (__pyx_v_indptr.data + __pyx_t_14 * __pyx_v_indptr.strides[0]) )));
20067
+ __pyx_t_14 = __pyx_v_min_node;
20068
+ __pyx_t_9 = __pyx_t_11;
20069
+ for (__pyx_t_10 = (*((int *) ( /* dim=0 */ (__pyx_v_indptr.data + __pyx_t_14 * __pyx_v_indptr.strides[0]) ))); __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
20070
+ __pyx_v_k = __pyx_t_10;
19636
20071
 
19637
20072
  /* "sknetwork/topology/core.pyx":56
19638
20073
  * # decrease the degree of each neighbor of min_node
@@ -19641,8 +20076,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19641
20076
  * degrees[j] -= 1
19642
20077
  * mh.decrease_key(j, degrees) # update the heap to take the new degree into account
19643
20078
  */
19644
- __pyx_t_14 = __pyx_v_k;
19645
- __pyx_v_j = (*((int *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_14 * __pyx_v_indices.strides[0]) )));
20079
+ __pyx_t_15 = __pyx_v_k;
20080
+ __pyx_v_j = (*((int *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) )));
19646
20081
 
19647
20082
  /* "sknetwork/topology/core.pyx":57
19648
20083
  * for k in range(indptr[min_node], indptr[min_node+1]):
@@ -19651,8 +20086,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19651
20086
  * mh.decrease_key(j, degrees) # update the heap to take the new degree into account
19652
20087
  *
19653
20088
  */
19654
- __pyx_t_14 = __pyx_v_j;
19655
- *((int *) ( /* dim=0 */ (__pyx_v_degrees.data + __pyx_t_14 * __pyx_v_degrees.strides[0]) )) -= 1;
20089
+ __pyx_t_15 = __pyx_v_j;
20090
+ *((int *) ( /* dim=0 */ (__pyx_v_degrees.data + __pyx_t_15 * __pyx_v_degrees.strides[0]) )) -= 1;
19656
20091
 
19657
20092
  /* "sknetwork/topology/core.pyx":58
19658
20093
  * j = indices[k]
@@ -19671,8 +20106,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19671
20106
  * i -= 1
19672
20107
  *
19673
20108
  */
19674
- __pyx_t_13 = __pyx_v_min_node;
19675
- *__Pyx_BufPtrStrided1d(int *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf, __pyx_t_13, __pyx_pybuffernd_labels.diminfo[0].strides) = __pyx_v_core_value;
20109
+ __pyx_t_14 = __pyx_v_min_node;
20110
+ *__Pyx_BufPtrStrided1d(int *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf, __pyx_t_14, __pyx_pybuffernd_labels.diminfo[0].strides) = __pyx_v_core_value;
19676
20111
 
19677
20112
  /* "sknetwork/topology/core.pyx":61
19678
20113
  *
@@ -19698,7 +20133,7 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19698
20133
  __Pyx_GOTREF(__pyx_t_1);
19699
20134
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19700
20135
  __pyx_t_3 = NULL;
19701
- __pyx_t_10 = 0;
20136
+ __pyx_t_5 = 0;
19702
20137
  #if CYTHON_UNPACK_METHODS
19703
20138
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
19704
20139
  __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
@@ -19707,13 +20142,13 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
19707
20142
  __Pyx_INCREF(__pyx_t_3);
19708
20143
  __Pyx_INCREF(function);
19709
20144
  __Pyx_DECREF_SET(__pyx_t_1, function);
19710
- __pyx_t_10 = 1;
20145
+ __pyx_t_5 = 1;
19711
20146
  }
19712
20147
  }
19713
20148
  #endif
19714
20149
  {
19715
20150
  PyObject *__pyx_callargs[2] = {__pyx_t_3, ((PyObject *)__pyx_v_labels)};
19716
- __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10);
20151
+ __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
19717
20152
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
19718
20153
  if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 63, __pyx_L1_error)
19719
20154
  __Pyx_GOTREF(__pyx_t_6);
@@ -20232,6 +20667,9 @@ static PyTypeObject __pyx_type___pyx_array = {
20232
20667
  #if PY_VERSION_HEX >= 0x030C0000
20233
20668
  0, /*tp_watched*/
20234
20669
  #endif
20670
+ #if PY_VERSION_HEX >= 0x030d00A4
20671
+ 0, /*tp_versions_used*/
20672
+ #endif
20235
20673
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
20236
20674
  0, /*tp_pypy_flags*/
20237
20675
  #endif
@@ -20402,6 +20840,9 @@ static PyTypeObject __pyx_type___pyx_MemviewEnum = {
20402
20840
  #if PY_VERSION_HEX >= 0x030C0000
20403
20841
  0, /*tp_watched*/
20404
20842
  #endif
20843
+ #if PY_VERSION_HEX >= 0x030d00A4
20844
+ 0, /*tp_versions_used*/
20845
+ #endif
20405
20846
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
20406
20847
  0, /*tp_pypy_flags*/
20407
20848
  #endif
@@ -20745,6 +21186,9 @@ static PyTypeObject __pyx_type___pyx_memoryview = {
20745
21186
  #if PY_VERSION_HEX >= 0x030C0000
20746
21187
  0, /*tp_watched*/
20747
21188
  #endif
21189
+ #if PY_VERSION_HEX >= 0x030d00A4
21190
+ 0, /*tp_versions_used*/
21191
+ #endif
20748
21192
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
20749
21193
  0, /*tp_pypy_flags*/
20750
21194
  #endif
@@ -20917,6 +21361,9 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = {
20917
21361
  #if PY_VERSION_HEX >= 0x030C0000
20918
21362
  0, /*tp_watched*/
20919
21363
  #endif
21364
+ #if PY_VERSION_HEX >= 0x030d00A4
21365
+ 0, /*tp_versions_used*/
21366
+ #endif
20920
21367
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
20921
21368
  0, /*tp_pypy_flags*/
20922
21369
  #endif
@@ -21039,8 +21486,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
21039
21486
  {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
21040
21487
  {&__pyx_kp_s_np_ndarray, __pyx_k_np_ndarray, sizeof(__pyx_k_np_ndarray), 0, 0, 1, 0},
21041
21488
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
21042
- {&__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},
21043
- {&__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},
21489
+ {&__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},
21490
+ {&__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},
21044
21491
  {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
21045
21492
  {&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1},
21046
21493
  {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
@@ -21099,7 +21546,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
21099
21546
  __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 408, __pyx_L1_error)
21100
21547
  __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 618, __pyx_L1_error)
21101
21548
  __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(1, 914, __pyx_L1_error)
21102
- __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 984, __pyx_L1_error)
21549
+ __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1051, __pyx_L1_error)
21103
21550
  return 0;
21104
21551
  __pyx_L1_error:;
21105
21552
  return -1;
@@ -21146,25 +21593,25 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
21146
21593
  __Pyx_GOTREF(__pyx_tuple__8);
21147
21594
  __Pyx_GIVEREF(__pyx_tuple__8);
21148
21595
 
21149
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":984
21596
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1051
21150
21597
  * __pyx_import_array()
21151
21598
  * except Exception:
21152
- * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
21599
+ * raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
21153
21600
  *
21154
21601
  * cdef inline int import_umath() except -1:
21155
21602
  */
21156
- __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)
21603
+ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_multiarray_failed_to); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 1051, __pyx_L1_error)
21157
21604
  __Pyx_GOTREF(__pyx_tuple__9);
21158
21605
  __Pyx_GIVEREF(__pyx_tuple__9);
21159
21606
 
21160
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":990
21607
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1057
21161
21608
  * _import_umath()
21162
21609
  * except Exception:
21163
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
21610
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
21164
21611
  *
21165
21612
  * cdef inline int import_ufunc() except -1:
21166
21613
  */
21167
- __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)
21614
+ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_umath_failed_to_impo); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 1057, __pyx_L1_error)
21168
21615
  __Pyx_GOTREF(__pyx_tuple__10);
21169
21616
  __Pyx_GIVEREF(__pyx_tuple__10);
21170
21617
 
@@ -21549,37 +21996,37 @@ static int __Pyx_modinit_type_import_code(void) {
21549
21996
  /*--- Type import code ---*/
21550
21997
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
21551
21998
  __Pyx_GOTREF(__pyx_t_1);
21552
- __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
21999
+ __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
21553
22000
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
21554
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
22001
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
21555
22002
  #elif CYTHON_COMPILING_IN_LIMITED_API
21556
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
22003
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
21557
22004
  #else
21558
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyHeapTypeObject),
22005
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject),
21559
22006
  #endif
21560
- __Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
22007
+ __Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
21561
22008
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21562
- __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 202, __pyx_L1_error)
22009
+ __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 272, __pyx_L1_error)
21563
22010
  __Pyx_GOTREF(__pyx_t_1);
21564
- __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)
21565
- __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)
21566
- __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)
21567
- __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)
21568
- __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)
21569
- __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)
21570
- __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)
21571
- __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)
21572
- __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)
21573
- __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)
21574
- __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)
21575
- __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)
21576
- __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)
21577
- __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)
21578
- __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)
22011
+ __pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 272, __pyx_L1_error)
22012
+ __pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 317, __pyx_L1_error)
22013
+ __pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 321, __pyx_L1_error)
22014
+ __pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 360, __pyx_L1_error)
22015
+ __pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 873, __pyx_L1_error)
22016
+ __pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 875, __pyx_L1_error)
22017
+ __pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 877, __pyx_L1_error)
22018
+ __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 879, __pyx_L1_error)
22019
+ __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 881, __pyx_L1_error)
22020
+ __pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 883, __pyx_L1_error)
22021
+ __pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 885, __pyx_L1_error)
22022
+ __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 887, __pyx_L1_error)
22023
+ __pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 889, __pyx_L1_error)
22024
+ __pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 891, __pyx_L1_error)
22025
+ __pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 955, __pyx_L1_error)
21579
22026
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21580
22027
  __pyx_t_1 = PyImport_ImportModule("sknetwork.topology.minheap"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 10, __pyx_L1_error)
21581
22028
  __Pyx_GOTREF(__pyx_t_1);
21582
- __pyx_ptype_9sknetwork_8topology_7minheap_MinHeap = __Pyx_ImportType_3_0_10(__pyx_t_1, "sknetwork.topology.minheap", "MinHeap", sizeof(struct __pyx_obj_9sknetwork_8topology_7minheap_MinHeap), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_9sknetwork_8topology_7minheap_MinHeap),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_9sknetwork_8topology_7minheap_MinHeap) __PYX_ERR(4, 10, __pyx_L1_error)
22029
+ __pyx_ptype_9sknetwork_8topology_7minheap_MinHeap = __Pyx_ImportType_3_0_12(__pyx_t_1, "sknetwork.topology.minheap", "MinHeap", sizeof(struct __pyx_obj_9sknetwork_8topology_7minheap_MinHeap), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_9sknetwork_8topology_7minheap_MinHeap),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_9sknetwork_8topology_7minheap_MinHeap) __PYX_ERR(4, 10, __pyx_L1_error)
21583
22030
  __pyx_vtabptr_9sknetwork_8topology_7minheap_MinHeap = (struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap*)__Pyx_GetVtable(__pyx_ptype_9sknetwork_8topology_7minheap_MinHeap); if (unlikely(!__pyx_vtabptr_9sknetwork_8topology_7minheap_MinHeap)) __PYX_ERR(4, 10, __pyx_L1_error)
21584
22031
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21585
22032
  __Pyx_RefNannyFinishContext();
@@ -24974,7 +25421,6 @@ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
24974
25421
  }
24975
25422
 
24976
25423
  /* HasAttr */
24977
- #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
24978
25424
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
24979
25425
  PyObject *r;
24980
25426
  if (unlikely(!__Pyx_PyBaseString_Check(n))) {
@@ -24991,7 +25437,6 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
24991
25437
  return 1;
24992
25438
  }
24993
25439
  }
24994
- #endif
24995
25440
 
24996
25441
  /* SliceObject */
24997
25442
  static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
@@ -26283,10 +26728,10 @@ __PYX_GOOD:
26283
26728
  #endif
26284
26729
 
26285
26730
  /* TypeImport */
26286
- #ifndef __PYX_HAVE_RT_ImportType_3_0_10
26287
- #define __PYX_HAVE_RT_ImportType_3_0_10
26288
- static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *module_name, const char *class_name,
26289
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size)
26731
+ #ifndef __PYX_HAVE_RT_ImportType_3_0_12
26732
+ #define __PYX_HAVE_RT_ImportType_3_0_12
26733
+ static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name,
26734
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size)
26290
26735
  {
26291
26736
  PyObject *result = 0;
26292
26737
  char warning[200];
@@ -26340,7 +26785,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
26340
26785
  module_name, class_name, size, basicsize+itemsize);
26341
26786
  goto bad;
26342
26787
  }
26343
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_10 &&
26788
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_12 &&
26344
26789
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
26345
26790
  PyErr_Format(PyExc_ValueError,
26346
26791
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -26348,7 +26793,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
26348
26793
  module_name, class_name, size, basicsize, basicsize+itemsize);
26349
26794
  goto bad;
26350
26795
  }
26351
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_10 && (size_t)basicsize > size) {
26796
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_12 && (size_t)basicsize > size) {
26352
26797
  PyOS_snprintf(warning, sizeof(warning),
26353
26798
  "%s.%s size changed, may indicate binary incompatibility. "
26354
26799
  "Expected %zd from C header, got %zd from PyObject",
@@ -27483,6 +27928,9 @@ static PyTypeObject __pyx_CyFunctionType_type = {
27483
27928
  #if PY_VERSION_HEX >= 0x030C0000
27484
27929
  0,
27485
27930
  #endif
27931
+ #if PY_VERSION_HEX >= 0x030d00A4
27932
+ 0,
27933
+ #endif
27486
27934
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
27487
27935
  0,
27488
27936
  #endif
@@ -27668,7 +28116,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
27668
28116
  #include "compile.h"
27669
28117
  #include "frameobject.h"
27670
28118
  #include "traceback.h"
27671
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
28119
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
27672
28120
  #ifndef Py_BUILD_CORE
27673
28121
  #define Py_BUILD_CORE 1
27674
28122
  #endif
@@ -28529,6 +28977,160 @@ __pyx_fail:
28529
28977
  #endif
28530
28978
  #endif
28531
28979
 
28980
+ /* Declarations */
28981
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
28982
+ #ifdef __cplusplus
28983
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
28984
+ return ::std::complex< long double >(x, y);
28985
+ }
28986
+ #else
28987
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
28988
+ return x + y*(__pyx_t_long_double_complex)_Complex_I;
28989
+ }
28990
+ #endif
28991
+ #else
28992
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
28993
+ __pyx_t_long_double_complex z;
28994
+ z.real = x;
28995
+ z.imag = y;
28996
+ return z;
28997
+ }
28998
+ #endif
28999
+
29000
+ /* Arithmetic */
29001
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
29002
+ #else
29003
+ static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
29004
+ return (a.real == b.real) && (a.imag == b.imag);
29005
+ }
29006
+ 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) {
29007
+ __pyx_t_long_double_complex z;
29008
+ z.real = a.real + b.real;
29009
+ z.imag = a.imag + b.imag;
29010
+ return z;
29011
+ }
29012
+ 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) {
29013
+ __pyx_t_long_double_complex z;
29014
+ z.real = a.real - b.real;
29015
+ z.imag = a.imag - b.imag;
29016
+ return z;
29017
+ }
29018
+ 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) {
29019
+ __pyx_t_long_double_complex z;
29020
+ z.real = a.real * b.real - a.imag * b.imag;
29021
+ z.imag = a.real * b.imag + a.imag * b.real;
29022
+ return z;
29023
+ }
29024
+ #if 1
29025
+ 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) {
29026
+ if (b.imag == 0) {
29027
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
29028
+ } else if (fabsl(b.real) >= fabsl(b.imag)) {
29029
+ if (b.real == 0 && b.imag == 0) {
29030
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
29031
+ } else {
29032
+ long double r = b.imag / b.real;
29033
+ long double s = (long double)(1.0) / (b.real + b.imag * r);
29034
+ return __pyx_t_long_double_complex_from_parts(
29035
+ (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
29036
+ }
29037
+ } else {
29038
+ long double r = b.real / b.imag;
29039
+ long double s = (long double)(1.0) / (b.imag + b.real * r);
29040
+ return __pyx_t_long_double_complex_from_parts(
29041
+ (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
29042
+ }
29043
+ }
29044
+ #else
29045
+ 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) {
29046
+ if (b.imag == 0) {
29047
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
29048
+ } else {
29049
+ long double denom = b.real * b.real + b.imag * b.imag;
29050
+ return __pyx_t_long_double_complex_from_parts(
29051
+ (a.real * b.real + a.imag * b.imag) / denom,
29052
+ (a.imag * b.real - a.real * b.imag) / denom);
29053
+ }
29054
+ }
29055
+ #endif
29056
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex a) {
29057
+ __pyx_t_long_double_complex z;
29058
+ z.real = -a.real;
29059
+ z.imag = -a.imag;
29060
+ return z;
29061
+ }
29062
+ static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex a) {
29063
+ return (a.real == 0) && (a.imag == 0);
29064
+ }
29065
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex a) {
29066
+ __pyx_t_long_double_complex z;
29067
+ z.real = a.real;
29068
+ z.imag = -a.imag;
29069
+ return z;
29070
+ }
29071
+ #if 1
29072
+ static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex z) {
29073
+ #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
29074
+ return sqrtl(z.real*z.real + z.imag*z.imag);
29075
+ #else
29076
+ return hypotl(z.real, z.imag);
29077
+ #endif
29078
+ }
29079
+ 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) {
29080
+ __pyx_t_long_double_complex z;
29081
+ long double r, lnr, theta, z_r, z_theta;
29082
+ if (b.imag == 0 && b.real == (int)b.real) {
29083
+ if (b.real < 0) {
29084
+ long double denom = a.real * a.real + a.imag * a.imag;
29085
+ a.real = a.real / denom;
29086
+ a.imag = -a.imag / denom;
29087
+ b.real = -b.real;
29088
+ }
29089
+ switch ((int)b.real) {
29090
+ case 0:
29091
+ z.real = 1;
29092
+ z.imag = 0;
29093
+ return z;
29094
+ case 1:
29095
+ return a;
29096
+ case 2:
29097
+ return __Pyx_c_prod_long__double(a, a);
29098
+ case 3:
29099
+ z = __Pyx_c_prod_long__double(a, a);
29100
+ return __Pyx_c_prod_long__double(z, a);
29101
+ case 4:
29102
+ z = __Pyx_c_prod_long__double(a, a);
29103
+ return __Pyx_c_prod_long__double(z, z);
29104
+ }
29105
+ }
29106
+ if (a.imag == 0) {
29107
+ if (a.real == 0) {
29108
+ return a;
29109
+ } else if ((b.imag == 0) && (a.real >= 0)) {
29110
+ z.real = powl(a.real, b.real);
29111
+ z.imag = 0;
29112
+ return z;
29113
+ } else if (a.real > 0) {
29114
+ r = a.real;
29115
+ theta = 0;
29116
+ } else {
29117
+ r = -a.real;
29118
+ theta = atan2l(0.0, -1.0);
29119
+ }
29120
+ } else {
29121
+ r = __Pyx_c_abs_long__double(a);
29122
+ theta = atan2l(a.imag, a.real);
29123
+ }
29124
+ lnr = logl(r);
29125
+ z_r = expl(lnr * b.real - theta * b.imag);
29126
+ z_theta = theta * b.real + lnr * b.imag;
29127
+ z.real = z_r * cosl(z_theta);
29128
+ z.imag = z_r * sinl(z_theta);
29129
+ return z;
29130
+ }
29131
+ #endif
29132
+ #endif
29133
+
28532
29134
  /* MemviewSliceCopyTemplate */
28533
29135
  static __Pyx_memviewslice
28534
29136
  __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
@@ -28762,12 +29364,19 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
28762
29364
  }
28763
29365
  }
28764
29366
  {
28765
- int one = 1; int little = (int)*(unsigned char *)&one;
28766
29367
  unsigned char *bytes = (unsigned char *)&value;
28767
- #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
29368
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
29369
+ if (is_unsigned) {
29370
+ return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
29371
+ } else {
29372
+ return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
29373
+ }
29374
+ #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
29375
+ int one = 1; int little = (int)*(unsigned char *)&one;
28768
29376
  return _PyLong_FromByteArray(bytes, sizeof(int),
28769
29377
  little, !is_unsigned);
28770
29378
  #else
29379
+ int one = 1; int little = (int)*(unsigned char *)&one;
28771
29380
  PyObject *from_bytes, *result = NULL;
28772
29381
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
28773
29382
  from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
@@ -28817,245 +29426,239 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
28817
29426
  }
28818
29427
  return (int) val;
28819
29428
  }
28820
- } else
29429
+ }
28821
29430
  #endif
28822
- if (likely(PyLong_Check(x))) {
28823
- if (is_unsigned) {
29431
+ if (unlikely(!PyLong_Check(x))) {
29432
+ int val;
29433
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29434
+ if (!tmp) return (int) -1;
29435
+ val = __Pyx_PyInt_As_int(tmp);
29436
+ Py_DECREF(tmp);
29437
+ return val;
29438
+ }
29439
+ if (is_unsigned) {
28824
29440
  #if CYTHON_USE_PYLONG_INTERNALS
28825
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
28826
- goto raise_neg_overflow;
28827
- } else if (__Pyx_PyLong_IsCompact(x)) {
28828
- __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
28829
- } else {
28830
- const digit* digits = __Pyx_PyLong_Digits(x);
28831
- assert(__Pyx_PyLong_DigitCount(x) > 1);
28832
- switch (__Pyx_PyLong_DigitCount(x)) {
28833
- case 2:
28834
- if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
28835
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
28836
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
28837
- } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
28838
- return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
28839
- }
29441
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29442
+ goto raise_neg_overflow;
29443
+ } else if (__Pyx_PyLong_IsCompact(x)) {
29444
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29445
+ } else {
29446
+ const digit* digits = __Pyx_PyLong_Digits(x);
29447
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
29448
+ switch (__Pyx_PyLong_DigitCount(x)) {
29449
+ case 2:
29450
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
29451
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29452
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29453
+ } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
29454
+ return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
28840
29455
  }
28841
- break;
28842
- case 3:
28843
- if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
28844
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
28845
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
28846
- } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
28847
- return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
28848
- }
29456
+ }
29457
+ break;
29458
+ case 3:
29459
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
29460
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29461
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29462
+ } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
29463
+ return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
28849
29464
  }
28850
- break;
28851
- case 4:
28852
- if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
28853
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
28854
- __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])))
28855
- } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
28856
- return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
28857
- }
29465
+ }
29466
+ break;
29467
+ case 4:
29468
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
29469
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29470
+ __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])))
29471
+ } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
29472
+ return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
28858
29473
  }
28859
- break;
28860
- }
29474
+ }
29475
+ break;
28861
29476
  }
29477
+ }
28862
29478
  #endif
28863
29479
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
28864
- if (unlikely(Py_SIZE(x) < 0)) {
28865
- goto raise_neg_overflow;
28866
- }
29480
+ if (unlikely(Py_SIZE(x) < 0)) {
29481
+ goto raise_neg_overflow;
29482
+ }
28867
29483
  #else
28868
- {
28869
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
28870
- if (unlikely(result < 0))
28871
- return (int) -1;
28872
- if (unlikely(result == 1))
28873
- goto raise_neg_overflow;
28874
- }
29484
+ {
29485
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29486
+ if (unlikely(result < 0))
29487
+ return (int) -1;
29488
+ if (unlikely(result == 1))
29489
+ goto raise_neg_overflow;
29490
+ }
28875
29491
  #endif
28876
- if ((sizeof(int) <= sizeof(unsigned long))) {
28877
- __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
29492
+ if ((sizeof(int) <= sizeof(unsigned long))) {
29493
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
28878
29494
  #ifdef HAVE_LONG_LONG
28879
- } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
28880
- __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29495
+ } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
29496
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
28881
29497
  #endif
28882
- }
28883
- } else {
29498
+ }
29499
+ } else {
28884
29500
  #if CYTHON_USE_PYLONG_INTERNALS
28885
- if (__Pyx_PyLong_IsCompact(x)) {
28886
- __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
28887
- } else {
28888
- const digit* digits = __Pyx_PyLong_Digits(x);
28889
- assert(__Pyx_PyLong_DigitCount(x) > 1);
28890
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
28891
- case -2:
28892
- if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
28893
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
28894
- __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
28895
- } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
28896
- return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28897
- }
29501
+ if (__Pyx_PyLong_IsCompact(x)) {
29502
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29503
+ } else {
29504
+ const digit* digits = __Pyx_PyLong_Digits(x);
29505
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
29506
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
29507
+ case -2:
29508
+ if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
29509
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29510
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29511
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29512
+ return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28898
29513
  }
28899
- break;
28900
- case 2:
28901
- if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
28902
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
28903
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
28904
- } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
28905
- return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28906
- }
29514
+ }
29515
+ break;
29516
+ case 2:
29517
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
29518
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29519
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29520
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29521
+ return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28907
29522
  }
28908
- break;
28909
- case -3:
28910
- if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
28911
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
28912
- __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
28913
- } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
28914
- return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28915
- }
29523
+ }
29524
+ break;
29525
+ case -3:
29526
+ if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
29527
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29528
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29529
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29530
+ return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28916
29531
  }
28917
- break;
28918
- case 3:
28919
- if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
28920
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
28921
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
28922
- } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
28923
- return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28924
- }
29532
+ }
29533
+ break;
29534
+ case 3:
29535
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
29536
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29537
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29538
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29539
+ return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28925
29540
  }
28926
- break;
28927
- case -4:
28928
- if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
28929
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
28930
- __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])))
28931
- } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
28932
- return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28933
- }
29541
+ }
29542
+ break;
29543
+ case -4:
29544
+ if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
29545
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29546
+ __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])))
29547
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
29548
+ return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28934
29549
  }
28935
- break;
28936
- case 4:
28937
- if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
28938
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
28939
- __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])))
28940
- } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
28941
- return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28942
- }
29550
+ }
29551
+ break;
29552
+ case 4:
29553
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
29554
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29555
+ __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])))
29556
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
29557
+ return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
28943
29558
  }
28944
- break;
28945
- }
29559
+ }
29560
+ break;
28946
29561
  }
29562
+ }
28947
29563
  #endif
28948
- if ((sizeof(int) <= sizeof(long))) {
28949
- __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
29564
+ if ((sizeof(int) <= sizeof(long))) {
29565
+ __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
28950
29566
  #ifdef HAVE_LONG_LONG
28951
- } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
28952
- __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
29567
+ } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
29568
+ __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
28953
29569
  #endif
28954
- }
29570
+ }
29571
+ }
29572
+ {
29573
+ int val;
29574
+ int ret = -1;
29575
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
29576
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
29577
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
29578
+ if (unlikely(bytes_copied == -1)) {
29579
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
29580
+ goto raise_overflow;
29581
+ } else {
29582
+ ret = 0;
29583
+ }
29584
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
29585
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
29586
+ unsigned char *bytes = (unsigned char *)&val;
29587
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
29588
+ bytes, sizeof(val),
29589
+ is_little, !is_unsigned);
29590
+ #else
29591
+ PyObject *v;
29592
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
29593
+ int bits, remaining_bits, is_negative = 0;
29594
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
29595
+ if (likely(PyLong_CheckExact(x))) {
29596
+ v = __Pyx_NewRef(x);
29597
+ } else {
29598
+ v = PyNumber_Long(x);
29599
+ if (unlikely(!v)) return (int) -1;
29600
+ assert(PyLong_CheckExact(v));
28955
29601
  }
28956
29602
  {
28957
- int val;
28958
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
28959
- #if PY_MAJOR_VERSION < 3
28960
- if (likely(v) && !PyLong_Check(v)) {
28961
- PyObject *tmp = v;
28962
- v = PyNumber_Long(tmp);
28963
- Py_DECREF(tmp);
28964
- }
28965
- #endif
28966
- if (likely(v)) {
28967
- int ret = -1;
28968
- #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
28969
- int one = 1; int is_little = (int)*(unsigned char *)&one;
28970
- unsigned char *bytes = (unsigned char *)&val;
28971
- ret = _PyLong_AsByteArray((PyLongObject *)v,
28972
- bytes, sizeof(val),
28973
- is_little, !is_unsigned);
28974
- #else
28975
- PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
28976
- int bits, remaining_bits, is_negative = 0;
28977
- long idigit;
28978
- int chunk_size = (sizeof(long) < 8) ? 30 : 62;
28979
- if (unlikely(!PyLong_CheckExact(v))) {
28980
- PyObject *tmp = v;
28981
- v = PyNumber_Long(v);
28982
- assert(PyLong_CheckExact(v));
28983
- Py_DECREF(tmp);
28984
- if (unlikely(!v)) return (int) -1;
28985
- }
28986
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
28987
- if (Py_SIZE(x) == 0)
28988
- return (int) 0;
28989
- is_negative = Py_SIZE(x) < 0;
28990
- #else
28991
- {
28992
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
28993
- if (unlikely(result < 0))
28994
- return (int) -1;
28995
- is_negative = result == 1;
28996
- }
28997
- #endif
28998
- if (is_unsigned && unlikely(is_negative)) {
28999
- goto raise_neg_overflow;
29000
- } else if (is_negative) {
29001
- stepval = PyNumber_Invert(v);
29002
- if (unlikely(!stepval))
29003
- return (int) -1;
29004
- } else {
29005
- stepval = __Pyx_NewRef(v);
29006
- }
29007
- val = (int) 0;
29008
- mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
29009
- shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
29010
- for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
29011
- PyObject *tmp, *digit;
29012
- digit = PyNumber_And(stepval, mask);
29013
- if (unlikely(!digit)) goto done;
29014
- idigit = PyLong_AsLong(digit);
29015
- Py_DECREF(digit);
29016
- if (unlikely(idigit < 0)) goto done;
29017
- tmp = PyNumber_Rshift(stepval, shift);
29018
- if (unlikely(!tmp)) goto done;
29019
- Py_DECREF(stepval); stepval = tmp;
29020
- val |= ((int) idigit) << bits;
29021
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29022
- if (Py_SIZE(stepval) == 0)
29023
- goto unpacking_done;
29024
- #endif
29025
- }
29026
- idigit = PyLong_AsLong(stepval);
29027
- if (unlikely(idigit < 0)) goto done;
29028
- remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
29029
- if (unlikely(idigit >= (1L << remaining_bits)))
29030
- goto raise_overflow;
29031
- val |= ((int) idigit) << bits;
29032
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29033
- unpacking_done:
29034
- #endif
29035
- if (!is_unsigned) {
29036
- if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
29037
- goto raise_overflow;
29038
- if (is_negative)
29039
- val = ~val;
29040
- }
29041
- ret = 0;
29042
- done:
29043
- Py_XDECREF(shift);
29044
- Py_XDECREF(mask);
29045
- Py_XDECREF(stepval);
29046
- #endif
29603
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
29604
+ if (unlikely(result < 0)) {
29047
29605
  Py_DECREF(v);
29048
- if (likely(!ret))
29049
- return val;
29606
+ return (int) -1;
29050
29607
  }
29051
- return (int) -1;
29608
+ is_negative = result == 1;
29052
29609
  }
29053
- } else {
29054
- int val;
29055
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29056
- if (!tmp) return (int) -1;
29057
- val = __Pyx_PyInt_As_int(tmp);
29058
- Py_DECREF(tmp);
29610
+ if (is_unsigned && unlikely(is_negative)) {
29611
+ Py_DECREF(v);
29612
+ goto raise_neg_overflow;
29613
+ } else if (is_negative) {
29614
+ stepval = PyNumber_Invert(v);
29615
+ Py_DECREF(v);
29616
+ if (unlikely(!stepval))
29617
+ return (int) -1;
29618
+ } else {
29619
+ stepval = v;
29620
+ }
29621
+ v = NULL;
29622
+ val = (int) 0;
29623
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
29624
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
29625
+ for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
29626
+ PyObject *tmp, *digit;
29627
+ long idigit;
29628
+ digit = PyNumber_And(stepval, mask);
29629
+ if (unlikely(!digit)) goto done;
29630
+ idigit = PyLong_AsLong(digit);
29631
+ Py_DECREF(digit);
29632
+ if (unlikely(idigit < 0)) goto done;
29633
+ val |= ((int) idigit) << bits;
29634
+ tmp = PyNumber_Rshift(stepval, shift);
29635
+ if (unlikely(!tmp)) goto done;
29636
+ Py_DECREF(stepval); stepval = tmp;
29637
+ }
29638
+ Py_DECREF(shift); shift = NULL;
29639
+ Py_DECREF(mask); mask = NULL;
29640
+ {
29641
+ long idigit = PyLong_AsLong(stepval);
29642
+ if (unlikely(idigit < 0)) goto done;
29643
+ remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
29644
+ if (unlikely(idigit >= (1L << remaining_bits)))
29645
+ goto raise_overflow;
29646
+ val |= ((int) idigit) << bits;
29647
+ }
29648
+ if (!is_unsigned) {
29649
+ if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
29650
+ goto raise_overflow;
29651
+ if (is_negative)
29652
+ val = ~val;
29653
+ }
29654
+ ret = 0;
29655
+ done:
29656
+ Py_XDECREF(shift);
29657
+ Py_XDECREF(mask);
29658
+ Py_XDECREF(stepval);
29659
+ #endif
29660
+ if (unlikely(ret))
29661
+ return (int) -1;
29059
29662
  return val;
29060
29663
  }
29061
29664
  raise_overflow:
@@ -29090,245 +29693,239 @@ raise_neg_overflow:
29090
29693
  }
29091
29694
  return (long) val;
29092
29695
  }
29093
- } else
29696
+ }
29094
29697
  #endif
29095
- if (likely(PyLong_Check(x))) {
29096
- if (is_unsigned) {
29698
+ if (unlikely(!PyLong_Check(x))) {
29699
+ long val;
29700
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29701
+ if (!tmp) return (long) -1;
29702
+ val = __Pyx_PyInt_As_long(tmp);
29703
+ Py_DECREF(tmp);
29704
+ return val;
29705
+ }
29706
+ if (is_unsigned) {
29097
29707
  #if CYTHON_USE_PYLONG_INTERNALS
29098
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29099
- goto raise_neg_overflow;
29100
- } else if (__Pyx_PyLong_IsCompact(x)) {
29101
- __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29102
- } else {
29103
- const digit* digits = __Pyx_PyLong_Digits(x);
29104
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29105
- switch (__Pyx_PyLong_DigitCount(x)) {
29106
- case 2:
29107
- if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
29108
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29109
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29110
- } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
29111
- return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29112
- }
29708
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29709
+ goto raise_neg_overflow;
29710
+ } else if (__Pyx_PyLong_IsCompact(x)) {
29711
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29712
+ } else {
29713
+ const digit* digits = __Pyx_PyLong_Digits(x);
29714
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
29715
+ switch (__Pyx_PyLong_DigitCount(x)) {
29716
+ case 2:
29717
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
29718
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29719
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29720
+ } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
29721
+ return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29113
29722
  }
29114
- break;
29115
- case 3:
29116
- if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
29117
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29118
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29119
- } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
29120
- return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29121
- }
29723
+ }
29724
+ break;
29725
+ case 3:
29726
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
29727
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29728
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29729
+ } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
29730
+ return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29122
29731
  }
29123
- break;
29124
- case 4:
29125
- if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
29126
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29127
- __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])))
29128
- } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
29129
- return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29130
- }
29732
+ }
29733
+ break;
29734
+ case 4:
29735
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
29736
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29737
+ __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])))
29738
+ } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
29739
+ return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
29131
29740
  }
29132
- break;
29133
- }
29741
+ }
29742
+ break;
29134
29743
  }
29744
+ }
29135
29745
  #endif
29136
29746
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
29137
- if (unlikely(Py_SIZE(x) < 0)) {
29138
- goto raise_neg_overflow;
29139
- }
29747
+ if (unlikely(Py_SIZE(x) < 0)) {
29748
+ goto raise_neg_overflow;
29749
+ }
29140
29750
  #else
29141
- {
29142
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29143
- if (unlikely(result < 0))
29144
- return (long) -1;
29145
- if (unlikely(result == 1))
29146
- goto raise_neg_overflow;
29147
- }
29751
+ {
29752
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29753
+ if (unlikely(result < 0))
29754
+ return (long) -1;
29755
+ if (unlikely(result == 1))
29756
+ goto raise_neg_overflow;
29757
+ }
29148
29758
  #endif
29149
- if ((sizeof(long) <= sizeof(unsigned long))) {
29150
- __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
29759
+ if ((sizeof(long) <= sizeof(unsigned long))) {
29760
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
29151
29761
  #ifdef HAVE_LONG_LONG
29152
- } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
29153
- __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29762
+ } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
29763
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29154
29764
  #endif
29155
- }
29156
- } else {
29765
+ }
29766
+ } else {
29157
29767
  #if CYTHON_USE_PYLONG_INTERNALS
29158
- if (__Pyx_PyLong_IsCompact(x)) {
29159
- __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29160
- } else {
29161
- const digit* digits = __Pyx_PyLong_Digits(x);
29162
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29163
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
29164
- case -2:
29165
- if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
29166
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29167
- __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29168
- } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29169
- return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29170
- }
29768
+ if (__Pyx_PyLong_IsCompact(x)) {
29769
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29770
+ } else {
29771
+ const digit* digits = __Pyx_PyLong_Digits(x);
29772
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
29773
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
29774
+ case -2:
29775
+ if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
29776
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29777
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29778
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29779
+ return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29171
29780
  }
29172
- break;
29173
- case 2:
29174
- if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
29175
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29176
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29177
- } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29178
- return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29179
- }
29781
+ }
29782
+ break;
29783
+ case 2:
29784
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
29785
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29786
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29787
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29788
+ return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29180
29789
  }
29181
- break;
29182
- case -3:
29183
- if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29184
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29185
- __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29186
- } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29187
- return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29188
- }
29790
+ }
29791
+ break;
29792
+ case -3:
29793
+ if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
29794
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29795
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29796
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29797
+ return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29189
29798
  }
29190
- break;
29191
- case 3:
29192
- if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
29193
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29194
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29195
- } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29196
- return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29197
- }
29799
+ }
29800
+ break;
29801
+ case 3:
29802
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
29803
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29804
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29805
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29806
+ return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29198
29807
  }
29199
- break;
29200
- case -4:
29201
- if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29202
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29203
- __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])))
29204
- } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
29205
- return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29206
- }
29808
+ }
29809
+ break;
29810
+ case -4:
29811
+ if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
29812
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29813
+ __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])))
29814
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
29815
+ return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29207
29816
  }
29208
- break;
29209
- case 4:
29210
- if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
29211
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29212
- __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])))
29213
- } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
29214
- return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29215
- }
29817
+ }
29818
+ break;
29819
+ case 4:
29820
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
29821
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29822
+ __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])))
29823
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
29824
+ return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
29216
29825
  }
29217
- break;
29218
- }
29826
+ }
29827
+ break;
29219
29828
  }
29829
+ }
29220
29830
  #endif
29221
- if ((sizeof(long) <= sizeof(long))) {
29222
- __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
29831
+ if ((sizeof(long) <= sizeof(long))) {
29832
+ __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
29223
29833
  #ifdef HAVE_LONG_LONG
29224
- } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
29225
- __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
29834
+ } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
29835
+ __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
29226
29836
  #endif
29227
- }
29837
+ }
29838
+ }
29839
+ {
29840
+ long val;
29841
+ int ret = -1;
29842
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
29843
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
29844
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
29845
+ if (unlikely(bytes_copied == -1)) {
29846
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
29847
+ goto raise_overflow;
29848
+ } else {
29849
+ ret = 0;
29850
+ }
29851
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
29852
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
29853
+ unsigned char *bytes = (unsigned char *)&val;
29854
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
29855
+ bytes, sizeof(val),
29856
+ is_little, !is_unsigned);
29857
+ #else
29858
+ PyObject *v;
29859
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
29860
+ int bits, remaining_bits, is_negative = 0;
29861
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
29862
+ if (likely(PyLong_CheckExact(x))) {
29863
+ v = __Pyx_NewRef(x);
29864
+ } else {
29865
+ v = PyNumber_Long(x);
29866
+ if (unlikely(!v)) return (long) -1;
29867
+ assert(PyLong_CheckExact(v));
29228
29868
  }
29229
29869
  {
29230
- long val;
29231
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
29232
- #if PY_MAJOR_VERSION < 3
29233
- if (likely(v) && !PyLong_Check(v)) {
29234
- PyObject *tmp = v;
29235
- v = PyNumber_Long(tmp);
29236
- Py_DECREF(tmp);
29237
- }
29238
- #endif
29239
- if (likely(v)) {
29240
- int ret = -1;
29241
- #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
29242
- int one = 1; int is_little = (int)*(unsigned char *)&one;
29243
- unsigned char *bytes = (unsigned char *)&val;
29244
- ret = _PyLong_AsByteArray((PyLongObject *)v,
29245
- bytes, sizeof(val),
29246
- is_little, !is_unsigned);
29247
- #else
29248
- PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
29249
- int bits, remaining_bits, is_negative = 0;
29250
- long idigit;
29251
- int chunk_size = (sizeof(long) < 8) ? 30 : 62;
29252
- if (unlikely(!PyLong_CheckExact(v))) {
29253
- PyObject *tmp = v;
29254
- v = PyNumber_Long(v);
29255
- assert(PyLong_CheckExact(v));
29256
- Py_DECREF(tmp);
29257
- if (unlikely(!v)) return (long) -1;
29258
- }
29259
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29260
- if (Py_SIZE(x) == 0)
29261
- return (long) 0;
29262
- is_negative = Py_SIZE(x) < 0;
29263
- #else
29264
- {
29265
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29266
- if (unlikely(result < 0))
29267
- return (long) -1;
29268
- is_negative = result == 1;
29269
- }
29270
- #endif
29271
- if (is_unsigned && unlikely(is_negative)) {
29272
- goto raise_neg_overflow;
29273
- } else if (is_negative) {
29274
- stepval = PyNumber_Invert(v);
29275
- if (unlikely(!stepval))
29276
- return (long) -1;
29277
- } else {
29278
- stepval = __Pyx_NewRef(v);
29279
- }
29280
- val = (long) 0;
29281
- mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
29282
- shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
29283
- for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
29284
- PyObject *tmp, *digit;
29285
- digit = PyNumber_And(stepval, mask);
29286
- if (unlikely(!digit)) goto done;
29287
- idigit = PyLong_AsLong(digit);
29288
- Py_DECREF(digit);
29289
- if (unlikely(idigit < 0)) goto done;
29290
- tmp = PyNumber_Rshift(stepval, shift);
29291
- if (unlikely(!tmp)) goto done;
29292
- Py_DECREF(stepval); stepval = tmp;
29293
- val |= ((long) idigit) << bits;
29294
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29295
- if (Py_SIZE(stepval) == 0)
29296
- goto unpacking_done;
29297
- #endif
29298
- }
29299
- idigit = PyLong_AsLong(stepval);
29300
- if (unlikely(idigit < 0)) goto done;
29301
- remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
29302
- if (unlikely(idigit >= (1L << remaining_bits)))
29303
- goto raise_overflow;
29304
- val |= ((long) idigit) << bits;
29305
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29306
- unpacking_done:
29307
- #endif
29308
- if (!is_unsigned) {
29309
- if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
29310
- goto raise_overflow;
29311
- if (is_negative)
29312
- val = ~val;
29313
- }
29314
- ret = 0;
29315
- done:
29316
- Py_XDECREF(shift);
29317
- Py_XDECREF(mask);
29318
- Py_XDECREF(stepval);
29319
- #endif
29870
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
29871
+ if (unlikely(result < 0)) {
29320
29872
  Py_DECREF(v);
29321
- if (likely(!ret))
29322
- return val;
29873
+ return (long) -1;
29323
29874
  }
29324
- return (long) -1;
29875
+ is_negative = result == 1;
29325
29876
  }
29326
- } else {
29327
- long val;
29328
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29329
- if (!tmp) return (long) -1;
29330
- val = __Pyx_PyInt_As_long(tmp);
29331
- Py_DECREF(tmp);
29877
+ if (is_unsigned && unlikely(is_negative)) {
29878
+ Py_DECREF(v);
29879
+ goto raise_neg_overflow;
29880
+ } else if (is_negative) {
29881
+ stepval = PyNumber_Invert(v);
29882
+ Py_DECREF(v);
29883
+ if (unlikely(!stepval))
29884
+ return (long) -1;
29885
+ } else {
29886
+ stepval = v;
29887
+ }
29888
+ v = NULL;
29889
+ val = (long) 0;
29890
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
29891
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
29892
+ for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
29893
+ PyObject *tmp, *digit;
29894
+ long idigit;
29895
+ digit = PyNumber_And(stepval, mask);
29896
+ if (unlikely(!digit)) goto done;
29897
+ idigit = PyLong_AsLong(digit);
29898
+ Py_DECREF(digit);
29899
+ if (unlikely(idigit < 0)) goto done;
29900
+ val |= ((long) idigit) << bits;
29901
+ tmp = PyNumber_Rshift(stepval, shift);
29902
+ if (unlikely(!tmp)) goto done;
29903
+ Py_DECREF(stepval); stepval = tmp;
29904
+ }
29905
+ Py_DECREF(shift); shift = NULL;
29906
+ Py_DECREF(mask); mask = NULL;
29907
+ {
29908
+ long idigit = PyLong_AsLong(stepval);
29909
+ if (unlikely(idigit < 0)) goto done;
29910
+ remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
29911
+ if (unlikely(idigit >= (1L << remaining_bits)))
29912
+ goto raise_overflow;
29913
+ val |= ((long) idigit) << bits;
29914
+ }
29915
+ if (!is_unsigned) {
29916
+ if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
29917
+ goto raise_overflow;
29918
+ if (is_negative)
29919
+ val = ~val;
29920
+ }
29921
+ ret = 0;
29922
+ done:
29923
+ Py_XDECREF(shift);
29924
+ Py_XDECREF(mask);
29925
+ Py_XDECREF(stepval);
29926
+ #endif
29927
+ if (unlikely(ret))
29928
+ return (long) -1;
29332
29929
  return val;
29333
29930
  }
29334
29931
  raise_overflow:
@@ -29372,12 +29969,19 @@ raise_neg_overflow:
29372
29969
  }
29373
29970
  }
29374
29971
  {
29375
- int one = 1; int little = (int)*(unsigned char *)&one;
29376
29972
  unsigned char *bytes = (unsigned char *)&value;
29377
- #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
29973
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
29974
+ if (is_unsigned) {
29975
+ return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
29976
+ } else {
29977
+ return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
29978
+ }
29979
+ #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
29980
+ int one = 1; int little = (int)*(unsigned char *)&one;
29378
29981
  return _PyLong_FromByteArray(bytes, sizeof(long),
29379
29982
  little, !is_unsigned);
29380
29983
  #else
29984
+ int one = 1; int little = (int)*(unsigned char *)&one;
29381
29985
  PyObject *from_bytes, *result = NULL;
29382
29986
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
29383
29987
  from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
@@ -29427,245 +30031,239 @@ raise_neg_overflow:
29427
30031
  }
29428
30032
  return (char) val;
29429
30033
  }
29430
- } else
30034
+ }
29431
30035
  #endif
29432
- if (likely(PyLong_Check(x))) {
29433
- if (is_unsigned) {
30036
+ if (unlikely(!PyLong_Check(x))) {
30037
+ char val;
30038
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
30039
+ if (!tmp) return (char) -1;
30040
+ val = __Pyx_PyInt_As_char(tmp);
30041
+ Py_DECREF(tmp);
30042
+ return val;
30043
+ }
30044
+ if (is_unsigned) {
29434
30045
  #if CYTHON_USE_PYLONG_INTERNALS
29435
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
29436
- goto raise_neg_overflow;
29437
- } else if (__Pyx_PyLong_IsCompact(x)) {
29438
- __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
29439
- } else {
29440
- const digit* digits = __Pyx_PyLong_Digits(x);
29441
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29442
- switch (__Pyx_PyLong_DigitCount(x)) {
29443
- case 2:
29444
- if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
29445
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29446
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29447
- } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
29448
- return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29449
- }
30046
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
30047
+ goto raise_neg_overflow;
30048
+ } else if (__Pyx_PyLong_IsCompact(x)) {
30049
+ __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
30050
+ } else {
30051
+ const digit* digits = __Pyx_PyLong_Digits(x);
30052
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
30053
+ switch (__Pyx_PyLong_DigitCount(x)) {
30054
+ case 2:
30055
+ if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
30056
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30057
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30058
+ } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
30059
+ return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29450
30060
  }
29451
- break;
29452
- case 3:
29453
- if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
29454
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29455
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29456
- } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
29457
- return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29458
- }
30061
+ }
30062
+ break;
30063
+ case 3:
30064
+ if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
30065
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30066
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30067
+ } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
30068
+ return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29459
30069
  }
29460
- break;
29461
- case 4:
29462
- if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
29463
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29464
- __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])))
29465
- } else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
29466
- return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29467
- }
30070
+ }
30071
+ break;
30072
+ case 4:
30073
+ if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
30074
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30075
+ __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])))
30076
+ } else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
30077
+ return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
29468
30078
  }
29469
- break;
29470
- }
30079
+ }
30080
+ break;
29471
30081
  }
30082
+ }
29472
30083
  #endif
29473
30084
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
29474
- if (unlikely(Py_SIZE(x) < 0)) {
29475
- goto raise_neg_overflow;
29476
- }
30085
+ if (unlikely(Py_SIZE(x) < 0)) {
30086
+ goto raise_neg_overflow;
30087
+ }
29477
30088
  #else
29478
- {
29479
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29480
- if (unlikely(result < 0))
29481
- return (char) -1;
29482
- if (unlikely(result == 1))
29483
- goto raise_neg_overflow;
29484
- }
30089
+ {
30090
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
30091
+ if (unlikely(result < 0))
30092
+ return (char) -1;
30093
+ if (unlikely(result == 1))
30094
+ goto raise_neg_overflow;
30095
+ }
29485
30096
  #endif
29486
- if ((sizeof(char) <= sizeof(unsigned long))) {
29487
- __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
30097
+ if ((sizeof(char) <= sizeof(unsigned long))) {
30098
+ __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
29488
30099
  #ifdef HAVE_LONG_LONG
29489
- } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
29490
- __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
30100
+ } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
30101
+ __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
29491
30102
  #endif
29492
- }
29493
- } else {
30103
+ }
30104
+ } else {
29494
30105
  #if CYTHON_USE_PYLONG_INTERNALS
29495
- if (__Pyx_PyLong_IsCompact(x)) {
29496
- __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
29497
- } else {
29498
- const digit* digits = __Pyx_PyLong_Digits(x);
29499
- assert(__Pyx_PyLong_DigitCount(x) > 1);
29500
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
29501
- case -2:
29502
- if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
29503
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29504
- __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29505
- } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
29506
- return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29507
- }
30106
+ if (__Pyx_PyLong_IsCompact(x)) {
30107
+ __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
30108
+ } else {
30109
+ const digit* digits = __Pyx_PyLong_Digits(x);
30110
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
30111
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
30112
+ case -2:
30113
+ if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
30114
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30115
+ __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30116
+ } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
30117
+ return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29508
30118
  }
29509
- break;
29510
- case 2:
29511
- if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
29512
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
29513
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29514
- } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
29515
- return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29516
- }
30119
+ }
30120
+ break;
30121
+ case 2:
30122
+ if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
30123
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30124
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30125
+ } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
30126
+ return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29517
30127
  }
29518
- break;
29519
- case -3:
29520
- if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
29521
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29522
- __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29523
- } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
29524
- return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29525
- }
30128
+ }
30129
+ break;
30130
+ case -3:
30131
+ if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
30132
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30133
+ __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30134
+ } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
30135
+ return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29526
30136
  }
29527
- break;
29528
- case 3:
29529
- if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
29530
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
29531
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
29532
- } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
29533
- return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29534
- }
30137
+ }
30138
+ break;
30139
+ case 3:
30140
+ if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
30141
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30142
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30143
+ } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
30144
+ return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29535
30145
  }
29536
- break;
29537
- case -4:
29538
- if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
29539
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29540
- __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])))
29541
- } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
29542
- return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29543
- }
30146
+ }
30147
+ break;
30148
+ case -4:
30149
+ if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
30150
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30151
+ __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])))
30152
+ } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
30153
+ return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29544
30154
  }
29545
- break;
29546
- case 4:
29547
- if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
29548
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
29549
- __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])))
29550
- } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
29551
- return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29552
- }
30155
+ }
30156
+ break;
30157
+ case 4:
30158
+ if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
30159
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30160
+ __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])))
30161
+ } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
30162
+ return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
29553
30163
  }
29554
- break;
29555
- }
30164
+ }
30165
+ break;
29556
30166
  }
30167
+ }
29557
30168
  #endif
29558
- if ((sizeof(char) <= sizeof(long))) {
29559
- __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
30169
+ if ((sizeof(char) <= sizeof(long))) {
30170
+ __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
29560
30171
  #ifdef HAVE_LONG_LONG
29561
- } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
29562
- __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
30172
+ } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
30173
+ __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
29563
30174
  #endif
29564
- }
30175
+ }
30176
+ }
30177
+ {
30178
+ char val;
30179
+ int ret = -1;
30180
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
30181
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
30182
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
30183
+ if (unlikely(bytes_copied == -1)) {
30184
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
30185
+ goto raise_overflow;
30186
+ } else {
30187
+ ret = 0;
30188
+ }
30189
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
30190
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
30191
+ unsigned char *bytes = (unsigned char *)&val;
30192
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
30193
+ bytes, sizeof(val),
30194
+ is_little, !is_unsigned);
30195
+ #else
30196
+ PyObject *v;
30197
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
30198
+ int bits, remaining_bits, is_negative = 0;
30199
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
30200
+ if (likely(PyLong_CheckExact(x))) {
30201
+ v = __Pyx_NewRef(x);
30202
+ } else {
30203
+ v = PyNumber_Long(x);
30204
+ if (unlikely(!v)) return (char) -1;
30205
+ assert(PyLong_CheckExact(v));
29565
30206
  }
29566
30207
  {
29567
- char val;
29568
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
29569
- #if PY_MAJOR_VERSION < 3
29570
- if (likely(v) && !PyLong_Check(v)) {
29571
- PyObject *tmp = v;
29572
- v = PyNumber_Long(tmp);
29573
- Py_DECREF(tmp);
29574
- }
29575
- #endif
29576
- if (likely(v)) {
29577
- int ret = -1;
29578
- #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
29579
- int one = 1; int is_little = (int)*(unsigned char *)&one;
29580
- unsigned char *bytes = (unsigned char *)&val;
29581
- ret = _PyLong_AsByteArray((PyLongObject *)v,
29582
- bytes, sizeof(val),
29583
- is_little, !is_unsigned);
29584
- #else
29585
- PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
29586
- int bits, remaining_bits, is_negative = 0;
29587
- long idigit;
29588
- int chunk_size = (sizeof(long) < 8) ? 30 : 62;
29589
- if (unlikely(!PyLong_CheckExact(v))) {
29590
- PyObject *tmp = v;
29591
- v = PyNumber_Long(v);
29592
- assert(PyLong_CheckExact(v));
29593
- Py_DECREF(tmp);
29594
- if (unlikely(!v)) return (char) -1;
29595
- }
29596
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29597
- if (Py_SIZE(x) == 0)
29598
- return (char) 0;
29599
- is_negative = Py_SIZE(x) < 0;
29600
- #else
29601
- {
29602
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
29603
- if (unlikely(result < 0))
29604
- return (char) -1;
29605
- is_negative = result == 1;
29606
- }
29607
- #endif
29608
- if (is_unsigned && unlikely(is_negative)) {
29609
- goto raise_neg_overflow;
29610
- } else if (is_negative) {
29611
- stepval = PyNumber_Invert(v);
29612
- if (unlikely(!stepval))
29613
- return (char) -1;
29614
- } else {
29615
- stepval = __Pyx_NewRef(v);
29616
- }
29617
- val = (char) 0;
29618
- mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
29619
- shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
29620
- for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
29621
- PyObject *tmp, *digit;
29622
- digit = PyNumber_And(stepval, mask);
29623
- if (unlikely(!digit)) goto done;
29624
- idigit = PyLong_AsLong(digit);
29625
- Py_DECREF(digit);
29626
- if (unlikely(idigit < 0)) goto done;
29627
- tmp = PyNumber_Rshift(stepval, shift);
29628
- if (unlikely(!tmp)) goto done;
29629
- Py_DECREF(stepval); stepval = tmp;
29630
- val |= ((char) idigit) << bits;
29631
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29632
- if (Py_SIZE(stepval) == 0)
29633
- goto unpacking_done;
29634
- #endif
29635
- }
29636
- idigit = PyLong_AsLong(stepval);
29637
- if (unlikely(idigit < 0)) goto done;
29638
- remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
29639
- if (unlikely(idigit >= (1L << remaining_bits)))
29640
- goto raise_overflow;
29641
- val |= ((char) idigit) << bits;
29642
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
29643
- unpacking_done:
29644
- #endif
29645
- if (!is_unsigned) {
29646
- if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
29647
- goto raise_overflow;
29648
- if (is_negative)
29649
- val = ~val;
29650
- }
29651
- ret = 0;
29652
- done:
29653
- Py_XDECREF(shift);
29654
- Py_XDECREF(mask);
29655
- Py_XDECREF(stepval);
29656
- #endif
30208
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
30209
+ if (unlikely(result < 0)) {
29657
30210
  Py_DECREF(v);
29658
- if (likely(!ret))
29659
- return val;
30211
+ return (char) -1;
29660
30212
  }
29661
- return (char) -1;
30213
+ is_negative = result == 1;
29662
30214
  }
29663
- } else {
29664
- char val;
29665
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
29666
- if (!tmp) return (char) -1;
29667
- val = __Pyx_PyInt_As_char(tmp);
29668
- Py_DECREF(tmp);
30215
+ if (is_unsigned && unlikely(is_negative)) {
30216
+ Py_DECREF(v);
30217
+ goto raise_neg_overflow;
30218
+ } else if (is_negative) {
30219
+ stepval = PyNumber_Invert(v);
30220
+ Py_DECREF(v);
30221
+ if (unlikely(!stepval))
30222
+ return (char) -1;
30223
+ } else {
30224
+ stepval = v;
30225
+ }
30226
+ v = NULL;
30227
+ val = (char) 0;
30228
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
30229
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
30230
+ for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
30231
+ PyObject *tmp, *digit;
30232
+ long idigit;
30233
+ digit = PyNumber_And(stepval, mask);
30234
+ if (unlikely(!digit)) goto done;
30235
+ idigit = PyLong_AsLong(digit);
30236
+ Py_DECREF(digit);
30237
+ if (unlikely(idigit < 0)) goto done;
30238
+ val |= ((char) idigit) << bits;
30239
+ tmp = PyNumber_Rshift(stepval, shift);
30240
+ if (unlikely(!tmp)) goto done;
30241
+ Py_DECREF(stepval); stepval = tmp;
30242
+ }
30243
+ Py_DECREF(shift); shift = NULL;
30244
+ Py_DECREF(mask); mask = NULL;
30245
+ {
30246
+ long idigit = PyLong_AsLong(stepval);
30247
+ if (unlikely(idigit < 0)) goto done;
30248
+ remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
30249
+ if (unlikely(idigit >= (1L << remaining_bits)))
30250
+ goto raise_overflow;
30251
+ val |= ((char) idigit) << bits;
30252
+ }
30253
+ if (!is_unsigned) {
30254
+ if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
30255
+ goto raise_overflow;
30256
+ if (is_negative)
30257
+ val = ~val;
30258
+ }
30259
+ ret = 0;
30260
+ done:
30261
+ Py_XDECREF(shift);
30262
+ Py_XDECREF(mask);
30263
+ Py_XDECREF(stepval);
30264
+ #endif
30265
+ if (unlikely(ret))
30266
+ return (char) -1;
29669
30267
  return val;
29670
30268
  }
29671
30269
  raise_overflow: