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.cliques",
@@ -50,10 +50,10 @@ END: Cython Metadata */
50
50
  #else
51
51
  #define __PYX_EXTRA_ABI_MODULE_NAME ""
52
52
  #endif
53
- #define CYTHON_ABI "3_0_10" __PYX_EXTRA_ABI_MODULE_NAME
53
+ #define CYTHON_ABI "3_0_12" __PYX_EXTRA_ABI_MODULE_NAME
54
54
  #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
55
55
  #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
56
- #define CYTHON_HEX_VERSION 0x03000AF0
56
+ #define CYTHON_HEX_VERSION 0x03000CF0
57
57
  #define CYTHON_FUTURE_DIVISION 1
58
58
  #include <stddef.h>
59
59
  #ifndef offsetof
@@ -1693,7 +1693,7 @@ typedef struct {
1693
1693
 
1694
1694
  /* #### Code section: numeric_typedefs ### */
1695
1695
 
1696
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":730
1696
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":787
1697
1697
  * # in Cython to enable them only on the right systems.
1698
1698
  *
1699
1699
  * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
@@ -1702,7 +1702,7 @@ typedef struct {
1702
1702
  */
1703
1703
  typedef npy_int8 __pyx_t_5numpy_int8_t;
1704
1704
 
1705
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":731
1705
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":788
1706
1706
  *
1707
1707
  * ctypedef npy_int8 int8_t
1708
1708
  * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
@@ -1711,7 +1711,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t;
1711
1711
  */
1712
1712
  typedef npy_int16 __pyx_t_5numpy_int16_t;
1713
1713
 
1714
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":732
1714
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":789
1715
1715
  * ctypedef npy_int8 int8_t
1716
1716
  * ctypedef npy_int16 int16_t
1717
1717
  * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
@@ -1720,7 +1720,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t;
1720
1720
  */
1721
1721
  typedef npy_int32 __pyx_t_5numpy_int32_t;
1722
1722
 
1723
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":733
1723
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":790
1724
1724
  * ctypedef npy_int16 int16_t
1725
1725
  * ctypedef npy_int32 int32_t
1726
1726
  * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
@@ -1729,7 +1729,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t;
1729
1729
  */
1730
1730
  typedef npy_int64 __pyx_t_5numpy_int64_t;
1731
1731
 
1732
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":737
1732
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":794
1733
1733
  * #ctypedef npy_int128 int128_t
1734
1734
  *
1735
1735
  * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
@@ -1738,7 +1738,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t;
1738
1738
  */
1739
1739
  typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1740
1740
 
1741
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":738
1741
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":795
1742
1742
  *
1743
1743
  * ctypedef npy_uint8 uint8_t
1744
1744
  * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
@@ -1747,7 +1747,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1747
1747
  */
1748
1748
  typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1749
1749
 
1750
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":739
1750
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":796
1751
1751
  * ctypedef npy_uint8 uint8_t
1752
1752
  * ctypedef npy_uint16 uint16_t
1753
1753
  * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
@@ -1756,7 +1756,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1756
1756
  */
1757
1757
  typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1758
1758
 
1759
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":740
1759
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":797
1760
1760
  * ctypedef npy_uint16 uint16_t
1761
1761
  * ctypedef npy_uint32 uint32_t
1762
1762
  * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
@@ -1765,7 +1765,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1765
1765
  */
1766
1766
  typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1767
1767
 
1768
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":744
1768
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":801
1769
1769
  * #ctypedef npy_uint128 uint128_t
1770
1770
  *
1771
1771
  * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
@@ -1774,7 +1774,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1774
1774
  */
1775
1775
  typedef npy_float32 __pyx_t_5numpy_float32_t;
1776
1776
 
1777
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":745
1777
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":802
1778
1778
  *
1779
1779
  * ctypedef npy_float32 float32_t
1780
1780
  * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
@@ -1783,43 +1783,25 @@ typedef npy_float32 __pyx_t_5numpy_float32_t;
1783
1783
  */
1784
1784
  typedef npy_float64 __pyx_t_5numpy_float64_t;
1785
1785
 
1786
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":754
1787
- * # The int types are mapped a bit surprising --
1788
- * # numpy.int corresponds to 'l' and numpy.long to 'q'
1789
- * ctypedef npy_long int_t # <<<<<<<<<<<<<<
1790
- * ctypedef npy_longlong longlong_t
1786
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":809
1787
+ * ctypedef double complex complex128_t
1791
1788
  *
1792
- */
1793
- typedef npy_long __pyx_t_5numpy_int_t;
1794
-
1795
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":755
1796
- * # numpy.int corresponds to 'l' and numpy.long to 'q'
1797
- * ctypedef npy_long int_t
1798
1789
  * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
1799
- *
1800
- * ctypedef npy_ulong uint_t
1801
- */
1802
- typedef npy_longlong __pyx_t_5numpy_longlong_t;
1803
-
1804
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":757
1805
- * ctypedef npy_longlong longlong_t
1806
- *
1807
- * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
1808
1790
  * ctypedef npy_ulonglong ulonglong_t
1809
1791
  *
1810
1792
  */
1811
- typedef npy_ulong __pyx_t_5numpy_uint_t;
1793
+ typedef npy_longlong __pyx_t_5numpy_longlong_t;
1812
1794
 
1813
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":758
1795
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
1814
1796
  *
1815
- * ctypedef npy_ulong uint_t
1797
+ * ctypedef npy_longlong longlong_t
1816
1798
  * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
1817
1799
  *
1818
1800
  * ctypedef npy_intp intp_t
1819
1801
  */
1820
1802
  typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1821
1803
 
1822
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":760
1804
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":812
1823
1805
  * ctypedef npy_ulonglong ulonglong_t
1824
1806
  *
1825
1807
  * ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
@@ -1828,7 +1810,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1828
1810
  */
1829
1811
  typedef npy_intp __pyx_t_5numpy_intp_t;
1830
1812
 
1831
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":761
1813
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
1832
1814
  *
1833
1815
  * ctypedef npy_intp intp_t
1834
1816
  * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
@@ -1837,7 +1819,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t;
1837
1819
  */
1838
1820
  typedef npy_uintp __pyx_t_5numpy_uintp_t;
1839
1821
 
1840
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":763
1822
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":815
1841
1823
  * ctypedef npy_uintp uintp_t
1842
1824
  *
1843
1825
  * ctypedef npy_double float_t # <<<<<<<<<<<<<<
@@ -1846,7 +1828,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t;
1846
1828
  */
1847
1829
  typedef npy_double __pyx_t_5numpy_float_t;
1848
1830
 
1849
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":764
1831
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
1850
1832
  *
1851
1833
  * ctypedef npy_double float_t
1852
1834
  * ctypedef npy_double double_t # <<<<<<<<<<<<<<
@@ -1855,12 +1837,12 @@ typedef npy_double __pyx_t_5numpy_float_t;
1855
1837
  */
1856
1838
  typedef npy_double __pyx_t_5numpy_double_t;
1857
1839
 
1858
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":765
1840
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":817
1859
1841
  * ctypedef npy_double float_t
1860
1842
  * ctypedef npy_double double_t
1861
1843
  * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
1862
1844
  *
1863
- * ctypedef npy_cfloat cfloat_t
1845
+ * ctypedef float complex cfloat_t
1864
1846
  */
1865
1847
  typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1866
1848
  /* #### Code section: complex_type_declarations ### */
@@ -1888,6 +1870,18 @@ static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(floa
1888
1870
  #endif
1889
1871
  static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);
1890
1872
 
1873
+ /* Declarations.proto */
1874
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
1875
+ #ifdef __cplusplus
1876
+ typedef ::std::complex< long double > __pyx_t_long_double_complex;
1877
+ #else
1878
+ typedef long double _Complex __pyx_t_long_double_complex;
1879
+ #endif
1880
+ #else
1881
+ typedef struct { long double real, imag; } __pyx_t_long_double_complex;
1882
+ #endif
1883
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double, long double);
1884
+
1891
1885
  /* #### Code section: type_declarations ### */
1892
1886
 
1893
1887
  /*--- Type declarations ---*/
@@ -1896,42 +1890,6 @@ struct __pyx_array_obj;
1896
1890
  struct __pyx_MemviewEnum_obj;
1897
1891
  struct __pyx_memoryview_obj;
1898
1892
  struct __pyx_memoryviewslice_obj;
1899
-
1900
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":767
1901
- * ctypedef npy_longdouble longdouble_t
1902
- *
1903
- * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
1904
- * ctypedef npy_cdouble cdouble_t
1905
- * ctypedef npy_clongdouble clongdouble_t
1906
- */
1907
- typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1908
-
1909
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":768
1910
- *
1911
- * ctypedef npy_cfloat cfloat_t
1912
- * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
1913
- * ctypedef npy_clongdouble clongdouble_t
1914
- *
1915
- */
1916
- typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1917
-
1918
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":769
1919
- * ctypedef npy_cfloat cfloat_t
1920
- * ctypedef npy_cdouble cdouble_t
1921
- * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
1922
- *
1923
- * ctypedef npy_cdouble complex_t
1924
- */
1925
- typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1926
-
1927
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":771
1928
- * ctypedef npy_clongdouble clongdouble_t
1929
- *
1930
- * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
1931
- *
1932
- * cdef inline object PyArray_MultiIterNew1(a):
1933
- */
1934
- typedef npy_cdouble __pyx_t_5numpy_complex_t;
1935
1893
  struct __pyx_defaults;
1936
1894
  typedef struct __pyx_defaults __pyx_defaults;
1937
1895
  struct __pyx_defaults {
@@ -2325,7 +2283,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
2325
2283
  #if !CYTHON_VECTORCALL
2326
2284
  #if PY_VERSION_HEX >= 0x03080000
2327
2285
  #include "frameobject.h"
2328
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
2286
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
2329
2287
  #ifndef Py_BUILD_CORE
2330
2288
  #define Py_BUILD_CORE 1
2331
2289
  #endif
@@ -2662,11 +2620,7 @@ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* s
2662
2620
  static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
2663
2621
 
2664
2622
  /* HasAttr.proto */
2665
- #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
2666
- #define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n)
2667
- #else
2668
2623
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
2669
- #endif
2670
2624
 
2671
2625
  /* MoveIfSupported.proto */
2672
2626
  #if CYTHON_USE_CPP_STD_MOVE
@@ -2765,22 +2719,22 @@ static int __Pyx_MergeVtables(PyTypeObject *type);
2765
2719
  #endif
2766
2720
 
2767
2721
  /* TypeImport.proto */
2768
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_10
2769
- #define __PYX_HAVE_RT_ImportType_proto_3_0_10
2722
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12
2723
+ #define __PYX_HAVE_RT_ImportType_proto_3_0_12
2770
2724
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2771
2725
  #include <stdalign.h>
2772
2726
  #endif
2773
2727
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2774
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) alignof(s)
2728
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s)
2775
2729
  #else
2776
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) sizeof(void*)
2730
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*)
2777
2731
  #endif
2778
- enum __Pyx_ImportType_CheckSize_3_0_10 {
2779
- __Pyx_ImportType_CheckSize_Error_3_0_10 = 0,
2780
- __Pyx_ImportType_CheckSize_Warn_3_0_10 = 1,
2781
- __Pyx_ImportType_CheckSize_Ignore_3_0_10 = 2
2732
+ enum __Pyx_ImportType_CheckSize_3_0_12 {
2733
+ __Pyx_ImportType_CheckSize_Error_3_0_12 = 0,
2734
+ __Pyx_ImportType_CheckSize_Warn_3_0_12 = 1,
2735
+ __Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2
2782
2736
  };
2783
- 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);
2737
+ 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);
2784
2738
  #endif
2785
2739
 
2786
2740
  /* FetchSharedCythonModule.proto */
@@ -3100,6 +3054,44 @@ static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_sho
3100
3054
  #endif
3101
3055
  #endif
3102
3056
 
3057
+ /* Arithmetic.proto */
3058
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
3059
+ #define __Pyx_c_eq_long__double(a, b) ((a)==(b))
3060
+ #define __Pyx_c_sum_long__double(a, b) ((a)+(b))
3061
+ #define __Pyx_c_diff_long__double(a, b) ((a)-(b))
3062
+ #define __Pyx_c_prod_long__double(a, b) ((a)*(b))
3063
+ #define __Pyx_c_quot_long__double(a, b) ((a)/(b))
3064
+ #define __Pyx_c_neg_long__double(a) (-(a))
3065
+ #ifdef __cplusplus
3066
+ #define __Pyx_c_is_zero_long__double(z) ((z)==(long double)0)
3067
+ #define __Pyx_c_conj_long__double(z) (::std::conj(z))
3068
+ #if 1
3069
+ #define __Pyx_c_abs_long__double(z) (::std::abs(z))
3070
+ #define __Pyx_c_pow_long__double(a, b) (::std::pow(a, b))
3071
+ #endif
3072
+ #else
3073
+ #define __Pyx_c_is_zero_long__double(z) ((z)==0)
3074
+ #define __Pyx_c_conj_long__double(z) (conjl(z))
3075
+ #if 1
3076
+ #define __Pyx_c_abs_long__double(z) (cabsl(z))
3077
+ #define __Pyx_c_pow_long__double(a, b) (cpowl(a, b))
3078
+ #endif
3079
+ #endif
3080
+ #else
3081
+ static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3082
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3083
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3084
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3085
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3086
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex);
3087
+ static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex);
3088
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex);
3089
+ #if 1
3090
+ static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex);
3091
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
3092
+ #endif
3093
+ #endif
3094
+
3103
3095
  /* MemviewSliceCopyTemplate.proto */
3104
3096
  static __Pyx_memviewslice
3105
3097
  __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
@@ -3225,6 +3217,18 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v
3225
3217
  static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
3226
3218
  static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/
3227
3219
  static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto*/
3220
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self); /* proto*/
3221
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self); /* proto*/
3222
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self); /* proto*/
3223
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self); /* proto*/
3224
+ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self); /* proto*/
3225
+ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self); /* proto*/
3226
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3227
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3228
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3229
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3230
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3231
+ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
3228
3232
  static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self); /* proto*/
3229
3233
  static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self); /* proto*/
3230
3234
  static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self); /* proto*/
@@ -3466,7 +3470,6 @@ static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate
3466
3470
  static const char __pyx_k_sknetwork_topology_cliques_pyx[] = "sknetwork\\topology\\cliques.pyx";
3467
3471
  static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
3468
3472
  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";
3469
- static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
3470
3473
  static const char __pyx_k_All_dimensions_preceding_dimensi[] = "All dimensions preceding dimension %d must be indexed and not sliced";
3471
3474
  static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
3472
3475
  static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
@@ -3483,7 +3486,8 @@ static const char __pyx_k_The_clique_size_must_be_at_least[] = "The clique size
3483
3486
  static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object";
3484
3487
  static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension ";
3485
3488
  static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
3486
- static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import";
3489
+ static const char __pyx_k_numpy__core_multiarray_failed_to[] = "numpy._core.multiarray failed to import";
3490
+ static const char __pyx_k_numpy__core_umath_failed_to_impo[] = "numpy._core.umath failed to import";
3487
3491
  static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
3488
3492
  /* #### Code section: decls ### */
3489
3493
  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 */
@@ -3727,8 +3731,8 @@ typedef struct {
3727
3731
  PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
3728
3732
  PyObject *__pyx_n_s_np;
3729
3733
  PyObject *__pyx_n_s_numpy;
3730
- PyObject *__pyx_kp_u_numpy_core_multiarray_failed_to;
3731
- PyObject *__pyx_kp_u_numpy_core_umath_failed_to_impor;
3734
+ PyObject *__pyx_kp_u_numpy__core_multiarray_failed_to;
3735
+ PyObject *__pyx_kp_u_numpy__core_umath_failed_to_impo;
3732
3736
  PyObject *__pyx_n_s_obj;
3733
3737
  PyObject *__pyx_n_s_object;
3734
3738
  PyObject *__pyx_n_s_order;
@@ -3985,8 +3989,8 @@ static int __pyx_m_clear(PyObject *m) {
3985
3989
  Py_CLEAR(clear_module_state->__pyx_kp_s_no_default___reduce___due_to_non);
3986
3990
  Py_CLEAR(clear_module_state->__pyx_n_s_np);
3987
3991
  Py_CLEAR(clear_module_state->__pyx_n_s_numpy);
3988
- Py_CLEAR(clear_module_state->__pyx_kp_u_numpy_core_multiarray_failed_to);
3989
- Py_CLEAR(clear_module_state->__pyx_kp_u_numpy_core_umath_failed_to_impor);
3992
+ Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
3993
+ Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
3990
3994
  Py_CLEAR(clear_module_state->__pyx_n_s_obj);
3991
3995
  Py_CLEAR(clear_module_state->__pyx_n_s_object);
3992
3996
  Py_CLEAR(clear_module_state->__pyx_n_s_order);
@@ -4221,8 +4225,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4221
4225
  Py_VISIT(traverse_module_state->__pyx_kp_s_no_default___reduce___due_to_non);
4222
4226
  Py_VISIT(traverse_module_state->__pyx_n_s_np);
4223
4227
  Py_VISIT(traverse_module_state->__pyx_n_s_numpy);
4224
- Py_VISIT(traverse_module_state->__pyx_kp_u_numpy_core_multiarray_failed_to);
4225
- Py_VISIT(traverse_module_state->__pyx_kp_u_numpy_core_umath_failed_to_impor);
4228
+ Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
4229
+ Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
4226
4230
  Py_VISIT(traverse_module_state->__pyx_n_s_obj);
4227
4231
  Py_VISIT(traverse_module_state->__pyx_n_s_object);
4228
4232
  Py_VISIT(traverse_module_state->__pyx_n_s_order);
@@ -4493,8 +4497,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4493
4497
  #define __pyx_kp_s_no_default___reduce___due_to_non __pyx_mstate_global->__pyx_kp_s_no_default___reduce___due_to_non
4494
4498
  #define __pyx_n_s_np __pyx_mstate_global->__pyx_n_s_np
4495
4499
  #define __pyx_n_s_numpy __pyx_mstate_global->__pyx_n_s_numpy
4496
- #define __pyx_kp_u_numpy_core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy_core_multiarray_failed_to
4497
- #define __pyx_kp_u_numpy_core_umath_failed_to_impor __pyx_mstate_global->__pyx_kp_u_numpy_core_umath_failed_to_impor
4500
+ #define __pyx_kp_u_numpy__core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy__core_multiarray_failed_to
4501
+ #define __pyx_kp_u_numpy__core_umath_failed_to_impo __pyx_mstate_global->__pyx_kp_u_numpy__core_umath_failed_to_impo
4498
4502
  #define __pyx_n_s_obj __pyx_mstate_global->__pyx_n_s_obj
4499
4503
  #define __pyx_n_s_object __pyx_mstate_global->__pyx_n_s_object
4500
4504
  #define __pyx_n_s_order __pyx_mstate_global->__pyx_n_s_order
@@ -4902,10 +4906,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
4902
4906
  PyObject *__pyx_t_4 = NULL;
4903
4907
  PyObject *__pyx_t_5 = NULL;
4904
4908
  PyObject *__pyx_t_6 = NULL;
4905
- int __pyx_t_7;
4909
+ unsigned int __pyx_t_7;
4906
4910
  char *__pyx_t_8;
4907
- Py_ssize_t __pyx_t_9;
4908
- Py_UCS4 __pyx_t_10;
4911
+ int __pyx_t_9;
4912
+ Py_ssize_t __pyx_t_10;
4913
+ Py_UCS4 __pyx_t_11;
4909
4914
  int __pyx_lineno = 0;
4910
4915
  const char *__pyx_filename = NULL;
4911
4916
  int __pyx_clineno = 0;
@@ -5131,7 +5136,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
5131
5136
  * if dim <= 0:
5132
5137
  * raise ValueError, f"Invalid shape in axis {idx}: {dim}."
5133
5138
  */
5134
- __pyx_t_7 = 0;
5139
+ __pyx_t_9 = 0;
5135
5140
  __pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4);
5136
5141
  __pyx_t_1 = 0;
5137
5142
  for (;;) {
@@ -5148,11 +5153,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
5148
5153
  __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)
5149
5154
  __Pyx_GOTREF(__pyx_t_5);
5150
5155
  #endif
5151
- __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)
5156
+ __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)
5152
5157
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5153
- __pyx_v_dim = __pyx_t_9;
5154
- __pyx_v_idx = __pyx_t_7;
5155
- __pyx_t_7 = (__pyx_t_7 + 1);
5158
+ __pyx_v_dim = __pyx_t_10;
5159
+ __pyx_v_idx = __pyx_t_9;
5160
+ __pyx_t_9 = (__pyx_t_9 + 1);
5156
5161
 
5157
5162
  /* "View.MemoryView":160
5158
5163
  *
@@ -5173,33 +5178,33 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
5173
5178
  */
5174
5179
  __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 161, __pyx_L1_error)
5175
5180
  __Pyx_GOTREF(__pyx_t_5);
5176
- __pyx_t_9 = 0;
5177
- __pyx_t_10 = 127;
5181
+ __pyx_t_10 = 0;
5182
+ __pyx_t_11 = 127;
5178
5183
  __Pyx_INCREF(__pyx_kp_u_Invalid_shape_in_axis);
5179
- __pyx_t_9 += 22;
5184
+ __pyx_t_10 += 22;
5180
5185
  __Pyx_GIVEREF(__pyx_kp_u_Invalid_shape_in_axis);
5181
5186
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Invalid_shape_in_axis);
5182
5187
  __pyx_t_6 = __Pyx_PyUnicode_From_int(__pyx_v_idx, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
5183
5188
  __Pyx_GOTREF(__pyx_t_6);
5184
- __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
5189
+ __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
5185
5190
  __Pyx_GIVEREF(__pyx_t_6);
5186
5191
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
5187
5192
  __pyx_t_6 = 0;
5188
5193
  __Pyx_INCREF(__pyx_kp_u_);
5189
- __pyx_t_9 += 2;
5194
+ __pyx_t_10 += 2;
5190
5195
  __Pyx_GIVEREF(__pyx_kp_u_);
5191
5196
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_);
5192
5197
  __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)
5193
5198
  __Pyx_GOTREF(__pyx_t_6);
5194
- __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
5199
+ __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
5195
5200
  __Pyx_GIVEREF(__pyx_t_6);
5196
5201
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_6);
5197
5202
  __pyx_t_6 = 0;
5198
5203
  __Pyx_INCREF(__pyx_kp_u__2);
5199
- __pyx_t_9 += 1;
5204
+ __pyx_t_10 += 1;
5200
5205
  __Pyx_GIVEREF(__pyx_kp_u__2);
5201
5206
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__2);
5202
- __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)
5207
+ __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)
5203
5208
  __Pyx_GOTREF(__pyx_t_6);
5204
5209
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5205
5210
  __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_6, 0, 0);
@@ -5383,7 +5388,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
5383
5388
  *
5384
5389
  * @cname('getbuffer')
5385
5390
  */
5386
- __pyx_t_7 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 180, __pyx_L1_error)
5391
+ __pyx_t_9 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 180, __pyx_L1_error)
5387
5392
 
5388
5393
  /* "View.MemoryView":179
5389
5394
  * self.dtype_is_object = format == b'O'
@@ -8538,7 +8543,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8538
8543
  *
8539
8544
  * if have_slices: # <<<<<<<<<<<<<<
8540
8545
  * obj = self.is_slice(value)
8541
- * if obj:
8546
+ * if obj is not None:
8542
8547
  */
8543
8548
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 426, __pyx_L1_error)
8544
8549
  if (__pyx_t_4) {
@@ -8547,7 +8552,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8547
8552
  *
8548
8553
  * if have_slices:
8549
8554
  * obj = self.is_slice(value) # <<<<<<<<<<<<<<
8550
- * if obj:
8555
+ * if obj is not None:
8551
8556
  * self.setitem_slice_assignment(self[index], obj)
8552
8557
  */
8553
8558
  __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)
@@ -8558,16 +8563,16 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8558
8563
  /* "View.MemoryView":428
8559
8564
  * if have_slices:
8560
8565
  * obj = self.is_slice(value)
8561
- * if obj: # <<<<<<<<<<<<<<
8566
+ * if obj is not None: # <<<<<<<<<<<<<<
8562
8567
  * self.setitem_slice_assignment(self[index], obj)
8563
8568
  * else:
8564
8569
  */
8565
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_obj); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 428, __pyx_L1_error)
8570
+ __pyx_t_4 = (__pyx_v_obj != Py_None);
8566
8571
  if (__pyx_t_4) {
8567
8572
 
8568
8573
  /* "View.MemoryView":429
8569
8574
  * obj = self.is_slice(value)
8570
- * if obj:
8575
+ * if obj is not None:
8571
8576
  * self.setitem_slice_assignment(self[index], obj) # <<<<<<<<<<<<<<
8572
8577
  * else:
8573
8578
  * self.setitem_slice_assign_scalar(self[index], value)
@@ -8582,7 +8587,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8582
8587
  /* "View.MemoryView":428
8583
8588
  * if have_slices:
8584
8589
  * obj = self.is_slice(value)
8585
- * if obj: # <<<<<<<<<<<<<<
8590
+ * if obj is not None: # <<<<<<<<<<<<<<
8586
8591
  * self.setitem_slice_assignment(self[index], obj)
8587
8592
  * else:
8588
8593
  */
@@ -8612,7 +8617,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
8612
8617
  *
8613
8618
  * if have_slices: # <<<<<<<<<<<<<<
8614
8619
  * obj = self.is_slice(value)
8615
- * if obj:
8620
+ * if obj is not None:
8616
8621
  */
8617
8622
  goto __pyx_L4;
8618
8623
  }
@@ -9320,9 +9325,10 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
9320
9325
  PyObject *__pyx_t_5 = NULL;
9321
9326
  PyObject *__pyx_t_6 = NULL;
9322
9327
  PyObject *__pyx_t_7 = NULL;
9323
- int __pyx_t_8;
9328
+ unsigned int __pyx_t_8;
9324
9329
  Py_ssize_t __pyx_t_9;
9325
9330
  int __pyx_t_10;
9331
+ int __pyx_t_11;
9326
9332
  int __pyx_lineno = 0;
9327
9333
  const char *__pyx_filename = NULL;
9328
9334
  int __pyx_clineno = 0;
@@ -9477,11 +9483,11 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
9477
9483
  __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_6);
9478
9484
  __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)
9479
9485
  __Pyx_GOTREF(__pyx_t_7);
9480
- __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
9486
+ __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
9481
9487
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9482
9488
  __Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_6);
9483
9489
  __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
9484
- if (__pyx_t_8) {
9490
+ if (__pyx_t_11) {
9485
9491
  __Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
9486
9492
  if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 498, __pyx_L5_except_error)
9487
9493
  __Pyx_XGOTREF(__pyx_t_6);
@@ -9566,7 +9572,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
9566
9572
  PyObject *__pyx_t_3 = NULL;
9567
9573
  PyObject *__pyx_t_4 = NULL;
9568
9574
  PyObject *__pyx_t_5 = NULL;
9569
- int __pyx_t_6;
9575
+ unsigned int __pyx_t_6;
9570
9576
  Py_ssize_t __pyx_t_7;
9571
9577
  PyObject *__pyx_t_8 = NULL;
9572
9578
  char *__pyx_t_9;
@@ -18040,7 +18046,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
18040
18046
  int __pyx_t_2;
18041
18047
  PyObject *__pyx_t_3 = NULL;
18042
18048
  PyObject *__pyx_t_4 = NULL;
18043
- int __pyx_t_5;
18049
+ unsigned int __pyx_t_5;
18044
18050
  int __pyx_lineno = 0;
18045
18051
  const char *__pyx_filename = NULL;
18046
18052
  int __pyx_clineno = 0;
@@ -18222,7 +18228,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
18222
18228
  PyObject *__pyx_t_5 = NULL;
18223
18229
  PyObject *__pyx_t_6 = NULL;
18224
18230
  PyObject *__pyx_t_7 = NULL;
18225
- int __pyx_t_8;
18231
+ unsigned int __pyx_t_8;
18226
18232
  int __pyx_lineno = 0;
18227
18233
  const char *__pyx_filename = NULL;
18228
18234
  int __pyx_clineno = 0;
@@ -18342,33 +18348,33 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
18342
18348
  return __pyx_r;
18343
18349
  }
18344
18350
 
18345
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":245
18351
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
18346
18352
  *
18347
18353
  * @property
18348
- * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
18349
- * """Returns a borrowed reference to the object owning the data/memory.
18350
- * """
18354
+ * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
18355
+ * return PyDataType_ELSIZE(self)
18356
+ *
18351
18357
  */
18352
18358
 
18353
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
18354
- PyObject *__pyx_r;
18359
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) {
18360
+ npy_intp __pyx_r;
18355
18361
 
18356
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":248
18357
- * """Returns a borrowed reference to the object owning the data/memory.
18358
- * """
18359
- * return PyArray_BASE(self) # <<<<<<<<<<<<<<
18362
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":288
18363
+ * @property
18364
+ * cdef inline npy_intp itemsize(self) noexcept nogil:
18365
+ * return PyDataType_ELSIZE(self) # <<<<<<<<<<<<<<
18360
18366
  *
18361
18367
  * @property
18362
18368
  */
18363
- __pyx_r = PyArray_BASE(__pyx_v_self);
18369
+ __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
18364
18370
  goto __pyx_L0;
18365
18371
 
18366
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":245
18372
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
18367
18373
  *
18368
18374
  * @property
18369
- * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
18370
- * """Returns a borrowed reference to the object owning the data/memory.
18371
- * """
18375
+ * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
18376
+ * return PyDataType_ELSIZE(self)
18377
+ *
18372
18378
  */
18373
18379
 
18374
18380
  /* function exit code */
@@ -18376,143 +18382,151 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
18376
18382
  return __pyx_r;
18377
18383
  }
18378
18384
 
18379
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":251
18385
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
18380
18386
  *
18381
18387
  * @property
18382
- * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18383
- * """Returns an owned reference to the dtype of the array.
18384
- * """
18388
+ * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
18389
+ * return PyDataType_ALIGNMENT(self)
18390
+ *
18385
18391
  */
18386
18392
 
18387
- static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
18388
- PyArray_Descr *__pyx_r = NULL;
18389
- __Pyx_RefNannyDeclarations
18390
- PyArray_Descr *__pyx_t_1;
18391
- __Pyx_RefNannySetupContext("descr", 1);
18393
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) {
18394
+ npy_intp __pyx_r;
18392
18395
 
18393
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":254
18394
- * """Returns an owned reference to the dtype of the array.
18395
- * """
18396
- * return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
18397
- *
18396
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":292
18398
18397
  * @property
18398
+ * cdef inline npy_intp alignment(self) noexcept nogil:
18399
+ * return PyDataType_ALIGNMENT(self) # <<<<<<<<<<<<<<
18400
+ *
18401
+ * # Use fields/names with care as they may be NULL. You must check
18399
18402
  */
18400
- __Pyx_XDECREF((PyObject *)__pyx_r);
18401
- __pyx_t_1 = PyArray_DESCR(__pyx_v_self);
18402
- __Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
18403
- __pyx_r = ((PyArray_Descr *)__pyx_t_1);
18403
+ __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
18404
18404
  goto __pyx_L0;
18405
18405
 
18406
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":251
18406
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
18407
18407
  *
18408
18408
  * @property
18409
- * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18410
- * """Returns an owned reference to the dtype of the array.
18411
- * """
18409
+ * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
18410
+ * return PyDataType_ALIGNMENT(self)
18411
+ *
18412
18412
  */
18413
18413
 
18414
18414
  /* function exit code */
18415
18415
  __pyx_L0:;
18416
- __Pyx_XGIVEREF((PyObject *)__pyx_r);
18417
- __Pyx_RefNannyFinishContext();
18418
18416
  return __pyx_r;
18419
18417
  }
18420
18418
 
18421
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":257
18422
- *
18419
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
18420
+ * # for this using PyDataType_HASFIELDS.
18423
18421
  * @property
18424
- * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
18425
- * """Returns the number of dimensions in the array.
18426
- * """
18422
+ * cdef inline object fields(self): # <<<<<<<<<<<<<<
18423
+ * return <object>PyDataType_FIELDS(self)
18424
+ *
18427
18425
  */
18428
18426
 
18429
- static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
18430
- int __pyx_r;
18427
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) {
18428
+ PyObject *__pyx_r = NULL;
18429
+ __Pyx_RefNannyDeclarations
18430
+ PyObject *__pyx_t_1;
18431
+ __Pyx_RefNannySetupContext("fields", 1);
18431
18432
 
18432
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":260
18433
- * """Returns the number of dimensions in the array.
18434
- * """
18435
- * return PyArray_NDIM(self) # <<<<<<<<<<<<<<
18433
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":298
18434
+ * @property
18435
+ * cdef inline object fields(self):
18436
+ * return <object>PyDataType_FIELDS(self) # <<<<<<<<<<<<<<
18436
18437
  *
18437
18438
  * @property
18438
18439
  */
18439
- __pyx_r = PyArray_NDIM(__pyx_v_self);
18440
+ __Pyx_XDECREF(__pyx_r);
18441
+ __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
18442
+ __Pyx_INCREF(((PyObject *)__pyx_t_1));
18443
+ __pyx_r = ((PyObject *)__pyx_t_1);
18440
18444
  goto __pyx_L0;
18441
18445
 
18442
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":257
18443
- *
18446
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
18447
+ * # for this using PyDataType_HASFIELDS.
18444
18448
  * @property
18445
- * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
18446
- * """Returns the number of dimensions in the array.
18447
- * """
18449
+ * cdef inline object fields(self): # <<<<<<<<<<<<<<
18450
+ * return <object>PyDataType_FIELDS(self)
18451
+ *
18448
18452
  */
18449
18453
 
18450
18454
  /* function exit code */
18451
18455
  __pyx_L0:;
18456
+ __Pyx_XGIVEREF(__pyx_r);
18457
+ __Pyx_RefNannyFinishContext();
18452
18458
  return __pyx_r;
18453
18459
  }
18454
18460
 
18455
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":263
18461
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
18456
18462
  *
18457
18463
  * @property
18458
- * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
18459
- * """Returns a pointer to the dimensions/shape of the array.
18460
- * The number of elements matches the number of dimensions of the array (ndim).
18464
+ * cdef inline tuple names(self): # <<<<<<<<<<<<<<
18465
+ * return <tuple>PyDataType_NAMES(self)
18466
+ *
18461
18467
  */
18462
18468
 
18463
- static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
18464
- npy_intp *__pyx_r;
18469
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) {
18470
+ PyObject *__pyx_r = NULL;
18471
+ __Pyx_RefNannyDeclarations
18472
+ PyObject *__pyx_t_1;
18473
+ __Pyx_RefNannySetupContext("names", 1);
18465
18474
 
18466
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":268
18467
- * Can return NULL for 0-dimensional arrays.
18468
- * """
18469
- * return PyArray_DIMS(self) # <<<<<<<<<<<<<<
18470
- *
18475
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":302
18471
18476
  * @property
18477
+ * cdef inline tuple names(self):
18478
+ * return <tuple>PyDataType_NAMES(self) # <<<<<<<<<<<<<<
18479
+ *
18480
+ * # Use PyDataType_HASSUBARRAY to test whether this field is
18472
18481
  */
18473
- __pyx_r = PyArray_DIMS(__pyx_v_self);
18482
+ __Pyx_XDECREF(__pyx_r);
18483
+ __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
18484
+ __Pyx_INCREF(((PyObject*)__pyx_t_1));
18485
+ __pyx_r = ((PyObject*)__pyx_t_1);
18474
18486
  goto __pyx_L0;
18475
18487
 
18476
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":263
18488
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
18477
18489
  *
18478
18490
  * @property
18479
- * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
18480
- * """Returns a pointer to the dimensions/shape of the array.
18481
- * The number of elements matches the number of dimensions of the array (ndim).
18491
+ * cdef inline tuple names(self): # <<<<<<<<<<<<<<
18492
+ * return <tuple>PyDataType_NAMES(self)
18493
+ *
18482
18494
  */
18483
18495
 
18484
18496
  /* function exit code */
18485
18497
  __pyx_L0:;
18498
+ __Pyx_XGIVEREF(__pyx_r);
18499
+ __Pyx_RefNannyFinishContext();
18486
18500
  return __pyx_r;
18487
18501
  }
18488
18502
 
18489
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":271
18490
- *
18503
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
18504
+ * # this field via the inline helper method PyDataType_SHAPE.
18491
18505
  * @property
18492
- * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
18493
- * """Returns a pointer to the strides of the array.
18494
- * The number of elements matches the number of dimensions of the array (ndim).
18506
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
18507
+ * return PyDataType_SUBARRAY(self)
18508
+ *
18495
18509
  */
18496
18510
 
18497
- static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
18498
- npy_intp *__pyx_r;
18511
+ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) {
18512
+ PyArray_ArrayDescr *__pyx_r;
18499
18513
 
18500
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":275
18501
- * The number of elements matches the number of dimensions of the array (ndim).
18502
- * """
18503
- * return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
18514
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":309
18515
+ * @property
18516
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:
18517
+ * return PyDataType_SUBARRAY(self) # <<<<<<<<<<<<<<
18504
18518
  *
18505
18519
  * @property
18506
18520
  */
18507
- __pyx_r = PyArray_STRIDES(__pyx_v_self);
18521
+ __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
18508
18522
  goto __pyx_L0;
18509
18523
 
18510
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":271
18511
- *
18524
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
18525
+ * # this field via the inline helper method PyDataType_SHAPE.
18512
18526
  * @property
18513
- * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
18514
- * """Returns a pointer to the strides of the array.
18515
- * The number of elements matches the number of dimensions of the array (ndim).
18527
+ * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
18528
+ * return PyDataType_SUBARRAY(self)
18529
+ *
18516
18530
  */
18517
18531
 
18518
18532
  /* function exit code */
@@ -18520,33 +18534,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
18520
18534
  return __pyx_r;
18521
18535
  }
18522
18536
 
18523
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":278
18537
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":312
18524
18538
  *
18525
18539
  * @property
18526
- * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
18527
- * """Returns the total size (in number of elements) of the array.
18528
- * """
18540
+ * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
18541
+ * """The data types flags."""
18542
+ * return PyDataType_FLAGS(self)
18529
18543
  */
18530
18544
 
18531
- static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
18532
- npy_intp __pyx_r;
18545
+ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self) {
18546
+ npy_uint64 __pyx_r;
18533
18547
 
18534
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":281
18535
- * """Returns the total size (in number of elements) of the array.
18536
- * """
18537
- * return PyArray_SIZE(self) # <<<<<<<<<<<<<<
18548
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":314
18549
+ * cdef inline npy_uint64 flags(self) noexcept nogil:
18550
+ * """The data types flags."""
18551
+ * return PyDataType_FLAGS(self) # <<<<<<<<<<<<<<
18552
+ *
18538
18553
  *
18539
- * @property
18540
18554
  */
18541
- __pyx_r = PyArray_SIZE(__pyx_v_self);
18555
+ __pyx_r = PyDataType_FLAGS(__pyx_v_self);
18542
18556
  goto __pyx_L0;
18543
18557
 
18544
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":278
18558
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":312
18545
18559
  *
18546
18560
  * @property
18547
- * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
18548
- * """Returns the total size (in number of elements) of the array.
18549
- * """
18561
+ * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
18562
+ * """The data types flags."""
18563
+ * return PyDataType_FLAGS(self)
18550
18564
  */
18551
18565
 
18552
18566
  /* function exit code */
@@ -18554,33 +18568,33 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
18554
18568
  return __pyx_r;
18555
18569
  }
18556
18570
 
18557
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":284
18571
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":324
18558
18572
  *
18559
18573
  * @property
18560
- * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
18561
- * """The pointer to the data buffer as a char*.
18562
- * This is provided for legacy reasons to avoid direct struct field access.
18574
+ * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
18575
+ * """The number of arrays that need to be broadcast to the same shape."""
18576
+ * return PyArray_MultiIter_NUMITER(self)
18563
18577
  */
18564
18578
 
18565
- static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
18566
- char *__pyx_r;
18579
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self) {
18580
+ int __pyx_r;
18567
18581
 
18568
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":290
18569
- * of `PyArray_DATA()` instead, which returns a 'void*'.
18570
- * """
18571
- * return PyArray_BYTES(self) # <<<<<<<<<<<<<<
18582
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":326
18583
+ * cdef inline int numiter(self) noexcept nogil:
18584
+ * """The number of arrays that need to be broadcast to the same shape."""
18585
+ * return PyArray_MultiIter_NUMITER(self) # <<<<<<<<<<<<<<
18572
18586
  *
18573
- * ctypedef unsigned char npy_bool
18587
+ * @property
18574
18588
  */
18575
- __pyx_r = PyArray_BYTES(__pyx_v_self);
18589
+ __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
18576
18590
  goto __pyx_L0;
18577
18591
 
18578
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":284
18592
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":324
18579
18593
  *
18580
18594
  * @property
18581
- * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
18582
- * """The pointer to the data buffer as a char*.
18583
- * This is provided for legacy reasons to avoid direct struct field access.
18595
+ * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
18596
+ * """The number of arrays that need to be broadcast to the same shape."""
18597
+ * return PyArray_MultiIter_NUMITER(self)
18584
18598
  */
18585
18599
 
18586
18600
  /* function exit code */
@@ -18588,111 +18602,527 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
18588
18602
  return __pyx_r;
18589
18603
  }
18590
18604
 
18591
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":773
18592
- * ctypedef npy_cdouble complex_t
18593
- *
18594
- * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18595
- * return PyArray_MultiIterNew(1, <void*>a)
18605
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":329
18596
18606
  *
18607
+ * @property
18608
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18609
+ * """The total broadcasted size."""
18610
+ * return PyArray_MultiIter_SIZE(self)
18597
18611
  */
18598
18612
 
18599
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
18600
- PyObject *__pyx_r = NULL;
18601
- __Pyx_RefNannyDeclarations
18602
- PyObject *__pyx_t_1 = NULL;
18603
- int __pyx_lineno = 0;
18604
- const char *__pyx_filename = NULL;
18605
- int __pyx_clineno = 0;
18606
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
18613
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self) {
18614
+ npy_intp __pyx_r;
18607
18615
 
18608
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":774
18609
- *
18610
- * cdef inline object PyArray_MultiIterNew1(a):
18611
- * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
18616
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":331
18617
+ * cdef inline npy_intp size(self) noexcept nogil:
18618
+ * """The total broadcasted size."""
18619
+ * return PyArray_MultiIter_SIZE(self) # <<<<<<<<<<<<<<
18612
18620
  *
18613
- * cdef inline object PyArray_MultiIterNew2(a, b):
18621
+ * @property
18614
18622
  */
18615
- __Pyx_XDECREF(__pyx_r);
18616
- __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 774, __pyx_L1_error)
18617
- __Pyx_GOTREF(__pyx_t_1);
18618
- __pyx_r = __pyx_t_1;
18619
- __pyx_t_1 = 0;
18623
+ __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
18620
18624
  goto __pyx_L0;
18621
18625
 
18622
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":773
18623
- * ctypedef npy_cdouble complex_t
18624
- *
18625
- * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
18626
- * return PyArray_MultiIterNew(1, <void*>a)
18626
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":329
18627
18627
  *
18628
+ * @property
18629
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18630
+ * """The total broadcasted size."""
18631
+ * return PyArray_MultiIter_SIZE(self)
18628
18632
  */
18629
18633
 
18630
18634
  /* function exit code */
18631
- __pyx_L1_error:;
18632
- __Pyx_XDECREF(__pyx_t_1);
18633
- __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
18634
- __pyx_r = 0;
18635
18635
  __pyx_L0:;
18636
- __Pyx_XGIVEREF(__pyx_r);
18637
- __Pyx_RefNannyFinishContext();
18638
18636
  return __pyx_r;
18639
18637
  }
18640
18638
 
18641
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":776
18642
- * return PyArray_MultiIterNew(1, <void*>a)
18643
- *
18644
- * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18645
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18639
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":334
18646
18640
  *
18641
+ * @property
18642
+ * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
18643
+ * """The current (1-d) index into the broadcasted result."""
18644
+ * return PyArray_MultiIter_INDEX(self)
18647
18645
  */
18648
18646
 
18649
- static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
18650
- PyObject *__pyx_r = NULL;
18651
- __Pyx_RefNannyDeclarations
18652
- PyObject *__pyx_t_1 = NULL;
18653
- int __pyx_lineno = 0;
18654
- const char *__pyx_filename = NULL;
18655
- int __pyx_clineno = 0;
18656
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
18647
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self) {
18648
+ npy_intp __pyx_r;
18657
18649
 
18658
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":777
18659
- *
18660
- * cdef inline object PyArray_MultiIterNew2(a, b):
18661
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
18650
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":336
18651
+ * cdef inline npy_intp index(self) noexcept nogil:
18652
+ * """The current (1-d) index into the broadcasted result."""
18653
+ * return PyArray_MultiIter_INDEX(self) # <<<<<<<<<<<<<<
18662
18654
  *
18663
- * cdef inline object PyArray_MultiIterNew3(a, b, c):
18655
+ * @property
18664
18656
  */
18665
- __Pyx_XDECREF(__pyx_r);
18666
- __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)
18667
- __Pyx_GOTREF(__pyx_t_1);
18668
- __pyx_r = __pyx_t_1;
18669
- __pyx_t_1 = 0;
18657
+ __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
18670
18658
  goto __pyx_L0;
18671
18659
 
18672
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":776
18673
- * return PyArray_MultiIterNew(1, <void*>a)
18674
- *
18675
- * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
18676
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18660
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":334
18677
18661
  *
18662
+ * @property
18663
+ * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
18664
+ * """The current (1-d) index into the broadcasted result."""
18665
+ * return PyArray_MultiIter_INDEX(self)
18678
18666
  */
18679
18667
 
18680
18668
  /* function exit code */
18681
- __pyx_L1_error:;
18682
- __Pyx_XDECREF(__pyx_t_1);
18683
- __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
18684
- __pyx_r = 0;
18685
18669
  __pyx_L0:;
18686
- __Pyx_XGIVEREF(__pyx_r);
18687
- __Pyx_RefNannyFinishContext();
18688
18670
  return __pyx_r;
18689
18671
  }
18690
18672
 
18691
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":779
18692
- * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18673
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":339
18693
18674
  *
18694
- * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
18695
- * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18675
+ * @property
18676
+ * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
18677
+ * """The number of dimensions in the broadcasted result."""
18678
+ * return PyArray_MultiIter_NDIM(self)
18679
+ */
18680
+
18681
+ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self) {
18682
+ int __pyx_r;
18683
+
18684
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":341
18685
+ * cdef inline int nd(self) noexcept nogil:
18686
+ * """The number of dimensions in the broadcasted result."""
18687
+ * return PyArray_MultiIter_NDIM(self) # <<<<<<<<<<<<<<
18688
+ *
18689
+ * @property
18690
+ */
18691
+ __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
18692
+ goto __pyx_L0;
18693
+
18694
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":339
18695
+ *
18696
+ * @property
18697
+ * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
18698
+ * """The number of dimensions in the broadcasted result."""
18699
+ * return PyArray_MultiIter_NDIM(self)
18700
+ */
18701
+
18702
+ /* function exit code */
18703
+ __pyx_L0:;
18704
+ return __pyx_r;
18705
+ }
18706
+
18707
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":344
18708
+ *
18709
+ * @property
18710
+ * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
18711
+ * """The shape of the broadcasted result."""
18712
+ * return PyArray_MultiIter_DIMS(self)
18713
+ */
18714
+
18715
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self) {
18716
+ npy_intp *__pyx_r;
18717
+
18718
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":346
18719
+ * cdef inline npy_intp* dimensions(self) noexcept nogil:
18720
+ * """The shape of the broadcasted result."""
18721
+ * return PyArray_MultiIter_DIMS(self) # <<<<<<<<<<<<<<
18722
+ *
18723
+ * @property
18724
+ */
18725
+ __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
18726
+ goto __pyx_L0;
18727
+
18728
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":344
18729
+ *
18730
+ * @property
18731
+ * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
18732
+ * """The shape of the broadcasted result."""
18733
+ * return PyArray_MultiIter_DIMS(self)
18734
+ */
18735
+
18736
+ /* function exit code */
18737
+ __pyx_L0:;
18738
+ return __pyx_r;
18739
+ }
18740
+
18741
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":349
18742
+ *
18743
+ * @property
18744
+ * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
18745
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18746
+ * On return, the iterators are adjusted for broadcasting."""
18747
+ */
18748
+
18749
+ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self) {
18750
+ void **__pyx_r;
18751
+
18752
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":352
18753
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18754
+ * On return, the iterators are adjusted for broadcasting."""
18755
+ * return PyArray_MultiIter_ITERS(self) # <<<<<<<<<<<<<<
18756
+ *
18757
+ *
18758
+ */
18759
+ __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
18760
+ goto __pyx_L0;
18761
+
18762
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":349
18763
+ *
18764
+ * @property
18765
+ * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
18766
+ * """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
18767
+ * On return, the iterators are adjusted for broadcasting."""
18768
+ */
18769
+
18770
+ /* function exit code */
18771
+ __pyx_L0:;
18772
+ return __pyx_r;
18773
+ }
18774
+
18775
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":367
18776
+ *
18777
+ * @property
18778
+ * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
18779
+ * """Returns a borrowed reference to the object owning the data/memory.
18780
+ * """
18781
+ */
18782
+
18783
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
18784
+ PyObject *__pyx_r;
18785
+
18786
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":370
18787
+ * """Returns a borrowed reference to the object owning the data/memory.
18788
+ * """
18789
+ * return PyArray_BASE(self) # <<<<<<<<<<<<<<
18790
+ *
18791
+ * @property
18792
+ */
18793
+ __pyx_r = PyArray_BASE(__pyx_v_self);
18794
+ goto __pyx_L0;
18795
+
18796
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":367
18797
+ *
18798
+ * @property
18799
+ * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
18800
+ * """Returns a borrowed reference to the object owning the data/memory.
18801
+ * """
18802
+ */
18803
+
18804
+ /* function exit code */
18805
+ __pyx_L0:;
18806
+ return __pyx_r;
18807
+ }
18808
+
18809
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":373
18810
+ *
18811
+ * @property
18812
+ * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18813
+ * """Returns an owned reference to the dtype of the array.
18814
+ * """
18815
+ */
18816
+
18817
+ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
18818
+ PyArray_Descr *__pyx_r = NULL;
18819
+ __Pyx_RefNannyDeclarations
18820
+ PyArray_Descr *__pyx_t_1;
18821
+ __Pyx_RefNannySetupContext("descr", 1);
18822
+
18823
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":376
18824
+ * """Returns an owned reference to the dtype of the array.
18825
+ * """
18826
+ * return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
18827
+ *
18828
+ * @property
18829
+ */
18830
+ __Pyx_XDECREF((PyObject *)__pyx_r);
18831
+ __pyx_t_1 = PyArray_DESCR(__pyx_v_self);
18832
+ __Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
18833
+ __pyx_r = ((PyArray_Descr *)__pyx_t_1);
18834
+ goto __pyx_L0;
18835
+
18836
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":373
18837
+ *
18838
+ * @property
18839
+ * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
18840
+ * """Returns an owned reference to the dtype of the array.
18841
+ * """
18842
+ */
18843
+
18844
+ /* function exit code */
18845
+ __pyx_L0:;
18846
+ __Pyx_XGIVEREF((PyObject *)__pyx_r);
18847
+ __Pyx_RefNannyFinishContext();
18848
+ return __pyx_r;
18849
+ }
18850
+
18851
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":379
18852
+ *
18853
+ * @property
18854
+ * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
18855
+ * """Returns the number of dimensions in the array.
18856
+ * """
18857
+ */
18858
+
18859
+ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
18860
+ int __pyx_r;
18861
+
18862
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":382
18863
+ * """Returns the number of dimensions in the array.
18864
+ * """
18865
+ * return PyArray_NDIM(self) # <<<<<<<<<<<<<<
18866
+ *
18867
+ * @property
18868
+ */
18869
+ __pyx_r = PyArray_NDIM(__pyx_v_self);
18870
+ goto __pyx_L0;
18871
+
18872
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":379
18873
+ *
18874
+ * @property
18875
+ * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
18876
+ * """Returns the number of dimensions in the array.
18877
+ * """
18878
+ */
18879
+
18880
+ /* function exit code */
18881
+ __pyx_L0:;
18882
+ return __pyx_r;
18883
+ }
18884
+
18885
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":385
18886
+ *
18887
+ * @property
18888
+ * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
18889
+ * """Returns a pointer to the dimensions/shape of the array.
18890
+ * The number of elements matches the number of dimensions of the array (ndim).
18891
+ */
18892
+
18893
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
18894
+ npy_intp *__pyx_r;
18895
+
18896
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":390
18897
+ * Can return NULL for 0-dimensional arrays.
18898
+ * """
18899
+ * return PyArray_DIMS(self) # <<<<<<<<<<<<<<
18900
+ *
18901
+ * @property
18902
+ */
18903
+ __pyx_r = PyArray_DIMS(__pyx_v_self);
18904
+ goto __pyx_L0;
18905
+
18906
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":385
18907
+ *
18908
+ * @property
18909
+ * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
18910
+ * """Returns a pointer to the dimensions/shape of the array.
18911
+ * The number of elements matches the number of dimensions of the array (ndim).
18912
+ */
18913
+
18914
+ /* function exit code */
18915
+ __pyx_L0:;
18916
+ return __pyx_r;
18917
+ }
18918
+
18919
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":393
18920
+ *
18921
+ * @property
18922
+ * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
18923
+ * """Returns a pointer to the strides of the array.
18924
+ * The number of elements matches the number of dimensions of the array (ndim).
18925
+ */
18926
+
18927
+ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
18928
+ npy_intp *__pyx_r;
18929
+
18930
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":397
18931
+ * The number of elements matches the number of dimensions of the array (ndim).
18932
+ * """
18933
+ * return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
18934
+ *
18935
+ * @property
18936
+ */
18937
+ __pyx_r = PyArray_STRIDES(__pyx_v_self);
18938
+ goto __pyx_L0;
18939
+
18940
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":393
18941
+ *
18942
+ * @property
18943
+ * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
18944
+ * """Returns a pointer to the strides of the array.
18945
+ * The number of elements matches the number of dimensions of the array (ndim).
18946
+ */
18947
+
18948
+ /* function exit code */
18949
+ __pyx_L0:;
18950
+ return __pyx_r;
18951
+ }
18952
+
18953
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":400
18954
+ *
18955
+ * @property
18956
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18957
+ * """Returns the total size (in number of elements) of the array.
18958
+ * """
18959
+ */
18960
+
18961
+ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
18962
+ npy_intp __pyx_r;
18963
+
18964
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":403
18965
+ * """Returns the total size (in number of elements) of the array.
18966
+ * """
18967
+ * return PyArray_SIZE(self) # <<<<<<<<<<<<<<
18968
+ *
18969
+ * @property
18970
+ */
18971
+ __pyx_r = PyArray_SIZE(__pyx_v_self);
18972
+ goto __pyx_L0;
18973
+
18974
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":400
18975
+ *
18976
+ * @property
18977
+ * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
18978
+ * """Returns the total size (in number of elements) of the array.
18979
+ * """
18980
+ */
18981
+
18982
+ /* function exit code */
18983
+ __pyx_L0:;
18984
+ return __pyx_r;
18985
+ }
18986
+
18987
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":406
18988
+ *
18989
+ * @property
18990
+ * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
18991
+ * """The pointer to the data buffer as a char*.
18992
+ * This is provided for legacy reasons to avoid direct struct field access.
18993
+ */
18994
+
18995
+ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
18996
+ char *__pyx_r;
18997
+
18998
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":412
18999
+ * of `PyArray_DATA()` instead, which returns a 'void*'.
19000
+ * """
19001
+ * return PyArray_BYTES(self) # <<<<<<<<<<<<<<
19002
+ *
19003
+ *
19004
+ */
19005
+ __pyx_r = PyArray_BYTES(__pyx_v_self);
19006
+ goto __pyx_L0;
19007
+
19008
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":406
19009
+ *
19010
+ * @property
19011
+ * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
19012
+ * """The pointer to the data buffer as a char*.
19013
+ * This is provided for legacy reasons to avoid direct struct field access.
19014
+ */
19015
+
19016
+ /* function exit code */
19017
+ __pyx_L0:;
19018
+ return __pyx_r;
19019
+ }
19020
+
19021
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
19022
+ * ctypedef long double complex clongdouble_t
19023
+ *
19024
+ * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
19025
+ * return PyArray_MultiIterNew(1, <void*>a)
19026
+ *
19027
+ */
19028
+
19029
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
19030
+ PyObject *__pyx_r = NULL;
19031
+ __Pyx_RefNannyDeclarations
19032
+ PyObject *__pyx_t_1 = NULL;
19033
+ int __pyx_lineno = 0;
19034
+ const char *__pyx_filename = NULL;
19035
+ int __pyx_clineno = 0;
19036
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
19037
+
19038
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":825
19039
+ *
19040
+ * cdef inline object PyArray_MultiIterNew1(a):
19041
+ * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
19042
+ *
19043
+ * cdef inline object PyArray_MultiIterNew2(a, b):
19044
+ */
19045
+ __Pyx_XDECREF(__pyx_r);
19046
+ __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 825, __pyx_L1_error)
19047
+ __Pyx_GOTREF(__pyx_t_1);
19048
+ __pyx_r = __pyx_t_1;
19049
+ __pyx_t_1 = 0;
19050
+ goto __pyx_L0;
19051
+
19052
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
19053
+ * ctypedef long double complex clongdouble_t
19054
+ *
19055
+ * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
19056
+ * return PyArray_MultiIterNew(1, <void*>a)
19057
+ *
19058
+ */
19059
+
19060
+ /* function exit code */
19061
+ __pyx_L1_error:;
19062
+ __Pyx_XDECREF(__pyx_t_1);
19063
+ __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
19064
+ __pyx_r = 0;
19065
+ __pyx_L0:;
19066
+ __Pyx_XGIVEREF(__pyx_r);
19067
+ __Pyx_RefNannyFinishContext();
19068
+ return __pyx_r;
19069
+ }
19070
+
19071
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":827
19072
+ * return PyArray_MultiIterNew(1, <void*>a)
19073
+ *
19074
+ * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
19075
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
19076
+ *
19077
+ */
19078
+
19079
+ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
19080
+ PyObject *__pyx_r = NULL;
19081
+ __Pyx_RefNannyDeclarations
19082
+ PyObject *__pyx_t_1 = NULL;
19083
+ int __pyx_lineno = 0;
19084
+ const char *__pyx_filename = NULL;
19085
+ int __pyx_clineno = 0;
19086
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
19087
+
19088
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":828
19089
+ *
19090
+ * cdef inline object PyArray_MultiIterNew2(a, b):
19091
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
19092
+ *
19093
+ * cdef inline object PyArray_MultiIterNew3(a, b, c):
19094
+ */
19095
+ __Pyx_XDECREF(__pyx_r);
19096
+ __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)
19097
+ __Pyx_GOTREF(__pyx_t_1);
19098
+ __pyx_r = __pyx_t_1;
19099
+ __pyx_t_1 = 0;
19100
+ goto __pyx_L0;
19101
+
19102
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":827
19103
+ * return PyArray_MultiIterNew(1, <void*>a)
19104
+ *
19105
+ * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
19106
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
19107
+ *
19108
+ */
19109
+
19110
+ /* function exit code */
19111
+ __pyx_L1_error:;
19112
+ __Pyx_XDECREF(__pyx_t_1);
19113
+ __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
19114
+ __pyx_r = 0;
19115
+ __pyx_L0:;
19116
+ __Pyx_XGIVEREF(__pyx_r);
19117
+ __Pyx_RefNannyFinishContext();
19118
+ return __pyx_r;
19119
+ }
19120
+
19121
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":830
19122
+ * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
19123
+ *
19124
+ * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
19125
+ * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18696
19126
  *
18697
19127
  */
18698
19128
 
@@ -18705,7 +19135,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18705
19135
  int __pyx_clineno = 0;
18706
19136
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);
18707
19137
 
18708
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":780
19138
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":831
18709
19139
  *
18710
19140
  * cdef inline object PyArray_MultiIterNew3(a, b, c):
18711
19141
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
@@ -18713,13 +19143,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18713
19143
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
18714
19144
  */
18715
19145
  __Pyx_XDECREF(__pyx_r);
18716
- __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)
19146
+ __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)
18717
19147
  __Pyx_GOTREF(__pyx_t_1);
18718
19148
  __pyx_r = __pyx_t_1;
18719
19149
  __pyx_t_1 = 0;
18720
19150
  goto __pyx_L0;
18721
19151
 
18722
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":779
19152
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":830
18723
19153
  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
18724
19154
  *
18725
19155
  * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
@@ -18738,7 +19168,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
18738
19168
  return __pyx_r;
18739
19169
  }
18740
19170
 
18741
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":782
19171
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":833
18742
19172
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18743
19173
  *
18744
19174
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -18755,7 +19185,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18755
19185
  int __pyx_clineno = 0;
18756
19186
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);
18757
19187
 
18758
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":783
19188
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":834
18759
19189
  *
18760
19190
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
18761
19191
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
@@ -18763,13 +19193,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18763
19193
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
18764
19194
  */
18765
19195
  __Pyx_XDECREF(__pyx_r);
18766
- __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)
19196
+ __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)
18767
19197
  __Pyx_GOTREF(__pyx_t_1);
18768
19198
  __pyx_r = __pyx_t_1;
18769
19199
  __pyx_t_1 = 0;
18770
19200
  goto __pyx_L0;
18771
19201
 
18772
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":782
19202
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":833
18773
19203
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
18774
19204
  *
18775
19205
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -18788,7 +19218,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
18788
19218
  return __pyx_r;
18789
19219
  }
18790
19220
 
18791
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":785
19221
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":836
18792
19222
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
18793
19223
  *
18794
19224
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -18805,7 +19235,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18805
19235
  int __pyx_clineno = 0;
18806
19236
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);
18807
19237
 
18808
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":786
19238
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":837
18809
19239
  *
18810
19240
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
18811
19241
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
@@ -18813,13 +19243,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18813
19243
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18814
19244
  */
18815
19245
  __Pyx_XDECREF(__pyx_r);
18816
- __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)
19246
+ __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)
18817
19247
  __Pyx_GOTREF(__pyx_t_1);
18818
19248
  __pyx_r = __pyx_t_1;
18819
19249
  __pyx_t_1 = 0;
18820
19250
  goto __pyx_L0;
18821
19251
 
18822
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":785
19252
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":836
18823
19253
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
18824
19254
  *
18825
19255
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -18838,7 +19268,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
18838
19268
  return __pyx_r;
18839
19269
  }
18840
19270
 
18841
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":788
19271
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":839
18842
19272
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
18843
19273
  *
18844
19274
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -18850,9 +19280,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18850
19280
  PyObject *__pyx_r = NULL;
18851
19281
  __Pyx_RefNannyDeclarations
18852
19282
  int __pyx_t_1;
19283
+ PyObject *__pyx_t_2;
18853
19284
  __Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);
18854
19285
 
18855
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":789
19286
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":840
18856
19287
  *
18857
19288
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18858
19289
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -18862,7 +19293,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18862
19293
  __pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
18863
19294
  if (__pyx_t_1) {
18864
19295
 
18865
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":790
19296
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":841
18866
19297
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18867
19298
  * if PyDataType_HASSUBARRAY(d):
18868
19299
  * return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
@@ -18870,11 +19301,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18870
19301
  * return ()
18871
19302
  */
18872
19303
  __Pyx_XDECREF(__pyx_r);
18873
- __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
18874
- __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
19304
+ __pyx_t_2 = __pyx_f_5numpy_5dtype_8subarray_subarray(__pyx_v_d)->shape;
19305
+ __Pyx_INCREF(((PyObject*)__pyx_t_2));
19306
+ __pyx_r = ((PyObject*)__pyx_t_2);
18875
19307
  goto __pyx_L0;
18876
19308
 
18877
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":789
19309
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":840
18878
19310
  *
18879
19311
  * cdef inline tuple PyDataType_SHAPE(dtype d):
18880
19312
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -18883,7 +19315,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18883
19315
  */
18884
19316
  }
18885
19317
 
18886
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":792
19318
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":843
18887
19319
  * return <tuple>d.subarray.shape
18888
19320
  * else:
18889
19321
  * return () # <<<<<<<<<<<<<<
@@ -18897,7 +19329,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18897
19329
  goto __pyx_L0;
18898
19330
  }
18899
19331
 
18900
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":788
19332
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":839
18901
19333
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
18902
19334
  *
18903
19335
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -18912,10 +19344,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
18912
19344
  return __pyx_r;
18913
19345
  }
18914
19346
 
18915
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":968
19347
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
18916
19348
  * int _import_umath() except -1
18917
19349
  *
18918
- * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
19350
+ * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
18919
19351
  * Py_INCREF(base) # important to do this before stealing the reference below!
18920
19352
  * PyArray_SetBaseObject(arr, base)
18921
19353
  */
@@ -18926,28 +19358,28 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
18926
19358
  const char *__pyx_filename = NULL;
18927
19359
  int __pyx_clineno = 0;
18928
19360
 
18929
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":969
19361
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
18930
19362
  *
18931
- * cdef inline void set_array_base(ndarray arr, object base):
19363
+ * cdef inline void set_array_base(ndarray arr, object base) except *:
18932
19364
  * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
18933
19365
  * PyArray_SetBaseObject(arr, base)
18934
19366
  *
18935
19367
  */
18936
19368
  Py_INCREF(__pyx_v_base);
18937
19369
 
18938
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":970
18939
- * cdef inline void set_array_base(ndarray arr, object base):
19370
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1037
19371
+ * cdef inline void set_array_base(ndarray arr, object base) except *:
18940
19372
  * Py_INCREF(base) # important to do this before stealing the reference below!
18941
19373
  * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
18942
19374
  *
18943
19375
  * cdef inline object get_array_base(ndarray arr):
18944
19376
  */
18945
- __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)
19377
+ __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)
18946
19378
 
18947
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":968
19379
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
18948
19380
  * int _import_umath() except -1
18949
19381
  *
18950
- * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
19382
+ * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
18951
19383
  * Py_INCREF(base) # important to do this before stealing the reference below!
18952
19384
  * PyArray_SetBaseObject(arr, base)
18953
19385
  */
@@ -18959,7 +19391,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
18959
19391
  __pyx_L0:;
18960
19392
  }
18961
19393
 
18962
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":972
19394
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
18963
19395
  * PyArray_SetBaseObject(arr, base)
18964
19396
  *
18965
19397
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -18974,7 +19406,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18974
19406
  int __pyx_t_1;
18975
19407
  __Pyx_RefNannySetupContext("get_array_base", 1);
18976
19408
 
18977
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":973
19409
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1040
18978
19410
  *
18979
19411
  * cdef inline object get_array_base(ndarray arr):
18980
19412
  * base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
@@ -18983,7 +19415,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18983
19415
  */
18984
19416
  __pyx_v_base = PyArray_BASE(__pyx_v_arr);
18985
19417
 
18986
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":974
19418
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
18987
19419
  * cdef inline object get_array_base(ndarray arr):
18988
19420
  * base = PyArray_BASE(arr)
18989
19421
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -18993,7 +19425,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
18993
19425
  __pyx_t_1 = (__pyx_v_base == NULL);
18994
19426
  if (__pyx_t_1) {
18995
19427
 
18996
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":975
19428
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1042
18997
19429
  * base = PyArray_BASE(arr)
18998
19430
  * if base is NULL:
18999
19431
  * return None # <<<<<<<<<<<<<<
@@ -19004,7 +19436,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19004
19436
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19005
19437
  goto __pyx_L0;
19006
19438
 
19007
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":974
19439
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
19008
19440
  * cdef inline object get_array_base(ndarray arr):
19009
19441
  * base = PyArray_BASE(arr)
19010
19442
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -19013,7 +19445,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19013
19445
  */
19014
19446
  }
19015
19447
 
19016
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":976
19448
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1043
19017
19449
  * if base is NULL:
19018
19450
  * return None
19019
19451
  * return <object>base # <<<<<<<<<<<<<<
@@ -19025,7 +19457,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19025
19457
  __pyx_r = ((PyObject *)__pyx_v_base);
19026
19458
  goto __pyx_L0;
19027
19459
 
19028
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":972
19460
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
19029
19461
  * PyArray_SetBaseObject(arr, base)
19030
19462
  *
19031
19463
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -19040,7 +19472,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19040
19472
  return __pyx_r;
19041
19473
  }
19042
19474
 
19043
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":980
19475
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1047
19044
19476
  * # Versions of the import_* functions which are more suitable for
19045
19477
  * # Cython code.
19046
19478
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -19064,7 +19496,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19064
19496
  int __pyx_clineno = 0;
19065
19497
  __Pyx_RefNannySetupContext("import_array", 1);
19066
19498
 
19067
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":981
19499
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
19068
19500
  * # Cython code.
19069
19501
  * cdef inline int import_array() except -1:
19070
19502
  * try: # <<<<<<<<<<<<<<
@@ -19080,16 +19512,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19080
19512
  __Pyx_XGOTREF(__pyx_t_3);
19081
19513
  /*try:*/ {
19082
19514
 
19083
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":982
19515
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1049
19084
19516
  * cdef inline int import_array() except -1:
19085
19517
  * try:
19086
19518
  * __pyx_import_array() # <<<<<<<<<<<<<<
19087
19519
  * except Exception:
19088
- * raise ImportError("numpy.core.multiarray failed to import")
19520
+ * raise ImportError("numpy._core.multiarray failed to import")
19089
19521
  */
19090
- __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 982, __pyx_L3_error)
19522
+ __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1049, __pyx_L3_error)
19091
19523
 
19092
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":981
19524
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
19093
19525
  * # Cython code.
19094
19526
  * cdef inline int import_array() except -1:
19095
19527
  * try: # <<<<<<<<<<<<<<
@@ -19103,37 +19535,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19103
19535
  goto __pyx_L8_try_end;
19104
19536
  __pyx_L3_error:;
19105
19537
 
19106
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":983
19538
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1050
19107
19539
  * try:
19108
19540
  * __pyx_import_array()
19109
19541
  * except Exception: # <<<<<<<<<<<<<<
19110
- * raise ImportError("numpy.core.multiarray failed to import")
19542
+ * raise ImportError("numpy._core.multiarray failed to import")
19111
19543
  *
19112
19544
  */
19113
19545
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
19114
19546
  if (__pyx_t_4) {
19115
19547
  __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
19116
- if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 983, __pyx_L5_except_error)
19548
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1050, __pyx_L5_except_error)
19117
19549
  __Pyx_XGOTREF(__pyx_t_5);
19118
19550
  __Pyx_XGOTREF(__pyx_t_6);
19119
19551
  __Pyx_XGOTREF(__pyx_t_7);
19120
19552
 
19121
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":984
19553
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1051
19122
19554
  * __pyx_import_array()
19123
19555
  * except Exception:
19124
- * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
19556
+ * raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
19125
19557
  *
19126
19558
  * cdef inline int import_umath() except -1:
19127
19559
  */
19128
- __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)
19560
+ __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)
19129
19561
  __Pyx_GOTREF(__pyx_t_8);
19130
19562
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
19131
19563
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
19132
- __PYX_ERR(2, 984, __pyx_L5_except_error)
19564
+ __PYX_ERR(2, 1051, __pyx_L5_except_error)
19133
19565
  }
19134
19566
  goto __pyx_L5_except_error;
19135
19567
 
19136
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":981
19568
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1048
19137
19569
  * # Cython code.
19138
19570
  * cdef inline int import_array() except -1:
19139
19571
  * try: # <<<<<<<<<<<<<<
@@ -19149,7 +19581,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19149
19581
  __pyx_L8_try_end:;
19150
19582
  }
19151
19583
 
19152
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":980
19584
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1047
19153
19585
  * # Versions of the import_* functions which are more suitable for
19154
19586
  * # Cython code.
19155
19587
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -19172,8 +19604,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19172
19604
  return __pyx_r;
19173
19605
  }
19174
19606
 
19175
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":986
19176
- * raise ImportError("numpy.core.multiarray failed to import")
19607
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
19608
+ * raise ImportError("numpy._core.multiarray failed to import")
19177
19609
  *
19178
19610
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
19179
19611
  * try:
@@ -19196,7 +19628,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19196
19628
  int __pyx_clineno = 0;
19197
19629
  __Pyx_RefNannySetupContext("import_umath", 1);
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":987
19631
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
19200
19632
  *
19201
19633
  * cdef inline int import_umath() except -1:
19202
19634
  * try: # <<<<<<<<<<<<<<
@@ -19212,16 +19644,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19212
19644
  __Pyx_XGOTREF(__pyx_t_3);
19213
19645
  /*try:*/ {
19214
19646
 
19215
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":988
19647
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1055
19216
19648
  * cdef inline int import_umath() except -1:
19217
19649
  * try:
19218
19650
  * _import_umath() # <<<<<<<<<<<<<<
19219
19651
  * except Exception:
19220
- * raise ImportError("numpy.core.umath failed to import")
19652
+ * raise ImportError("numpy._core.umath failed to import")
19221
19653
  */
19222
- __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 988, __pyx_L3_error)
19654
+ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1055, __pyx_L3_error)
19223
19655
 
19224
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":987
19656
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
19225
19657
  *
19226
19658
  * cdef inline int import_umath() except -1:
19227
19659
  * try: # <<<<<<<<<<<<<<
@@ -19235,37 +19667,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19235
19667
  goto __pyx_L8_try_end;
19236
19668
  __pyx_L3_error:;
19237
19669
 
19238
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":989
19670
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
19239
19671
  * try:
19240
19672
  * _import_umath()
19241
19673
  * except Exception: # <<<<<<<<<<<<<<
19242
- * raise ImportError("numpy.core.umath failed to import")
19674
+ * raise ImportError("numpy._core.umath failed to import")
19243
19675
  *
19244
19676
  */
19245
19677
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
19246
19678
  if (__pyx_t_4) {
19247
19679
  __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
19248
- if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 989, __pyx_L5_except_error)
19680
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1056, __pyx_L5_except_error)
19249
19681
  __Pyx_XGOTREF(__pyx_t_5);
19250
19682
  __Pyx_XGOTREF(__pyx_t_6);
19251
19683
  __Pyx_XGOTREF(__pyx_t_7);
19252
19684
 
19253
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":990
19685
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1057
19254
19686
  * _import_umath()
19255
19687
  * except Exception:
19256
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
19688
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
19257
19689
  *
19258
19690
  * cdef inline int import_ufunc() except -1:
19259
19691
  */
19260
- __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)
19692
+ __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)
19261
19693
  __Pyx_GOTREF(__pyx_t_8);
19262
19694
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
19263
19695
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
19264
- __PYX_ERR(2, 990, __pyx_L5_except_error)
19696
+ __PYX_ERR(2, 1057, __pyx_L5_except_error)
19265
19697
  }
19266
19698
  goto __pyx_L5_except_error;
19267
19699
 
19268
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":987
19700
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1054
19269
19701
  *
19270
19702
  * cdef inline int import_umath() except -1:
19271
19703
  * try: # <<<<<<<<<<<<<<
@@ -19281,8 +19713,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19281
19713
  __pyx_L8_try_end:;
19282
19714
  }
19283
19715
 
19284
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":986
19285
- * raise ImportError("numpy.core.multiarray failed to import")
19716
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
19717
+ * raise ImportError("numpy._core.multiarray failed to import")
19286
19718
  *
19287
19719
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
19288
19720
  * try:
@@ -19304,8 +19736,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19304
19736
  return __pyx_r;
19305
19737
  }
19306
19738
 
19307
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":992
19308
- * raise ImportError("numpy.core.umath failed to import")
19739
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1059
19740
+ * raise ImportError("numpy._core.umath failed to import")
19309
19741
  *
19310
19742
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
19311
19743
  * try:
@@ -19328,7 +19760,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19328
19760
  int __pyx_clineno = 0;
19329
19761
  __Pyx_RefNannySetupContext("import_ufunc", 1);
19330
19762
 
19331
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":993
19763
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
19332
19764
  *
19333
19765
  * cdef inline int import_ufunc() except -1:
19334
19766
  * try: # <<<<<<<<<<<<<<
@@ -19344,16 +19776,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19344
19776
  __Pyx_XGOTREF(__pyx_t_3);
19345
19777
  /*try:*/ {
19346
19778
 
19347
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":994
19779
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1061
19348
19780
  * cdef inline int import_ufunc() except -1:
19349
19781
  * try:
19350
19782
  * _import_umath() # <<<<<<<<<<<<<<
19351
19783
  * except Exception:
19352
- * raise ImportError("numpy.core.umath failed to import")
19784
+ * raise ImportError("numpy._core.umath failed to import")
19353
19785
  */
19354
- __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 994, __pyx_L3_error)
19786
+ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1061, __pyx_L3_error)
19355
19787
 
19356
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":993
19788
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
19357
19789
  *
19358
19790
  * cdef inline int import_ufunc() except -1:
19359
19791
  * try: # <<<<<<<<<<<<<<
@@ -19367,37 +19799,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19367
19799
  goto __pyx_L8_try_end;
19368
19800
  __pyx_L3_error:;
19369
19801
 
19370
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":995
19802
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1062
19371
19803
  * try:
19372
19804
  * _import_umath()
19373
19805
  * except Exception: # <<<<<<<<<<<<<<
19374
- * raise ImportError("numpy.core.umath failed to import")
19806
+ * raise ImportError("numpy._core.umath failed to import")
19375
19807
  *
19376
19808
  */
19377
19809
  __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
19378
19810
  if (__pyx_t_4) {
19379
19811
  __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
19380
- if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 995, __pyx_L5_except_error)
19812
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1062, __pyx_L5_except_error)
19381
19813
  __Pyx_XGOTREF(__pyx_t_5);
19382
19814
  __Pyx_XGOTREF(__pyx_t_6);
19383
19815
  __Pyx_XGOTREF(__pyx_t_7);
19384
19816
 
19385
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":996
19817
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1063
19386
19818
  * _import_umath()
19387
19819
  * except Exception:
19388
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
19820
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
19389
19821
  *
19390
19822
  *
19391
19823
  */
19392
- __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)
19824
+ __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)
19393
19825
  __Pyx_GOTREF(__pyx_t_8);
19394
19826
  __Pyx_Raise(__pyx_t_8, 0, 0, 0);
19395
19827
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
19396
- __PYX_ERR(2, 996, __pyx_L5_except_error)
19828
+ __PYX_ERR(2, 1063, __pyx_L5_except_error)
19397
19829
  }
19398
19830
  goto __pyx_L5_except_error;
19399
19831
 
19400
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":993
19832
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1060
19401
19833
  *
19402
19834
  * cdef inline int import_ufunc() except -1:
19403
19835
  * try: # <<<<<<<<<<<<<<
@@ -19413,8 +19845,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19413
19845
  __pyx_L8_try_end:;
19414
19846
  }
19415
19847
 
19416
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":992
19417
- * raise ImportError("numpy.core.umath failed to import")
19848
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1059
19849
+ * raise ImportError("numpy._core.umath failed to import")
19418
19850
  *
19419
19851
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
19420
19852
  * try:
@@ -19436,10 +19868,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19436
19868
  return __pyx_r;
19437
19869
  }
19438
19870
 
19439
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":999
19871
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1066
19440
19872
  *
19441
19873
  *
19442
- * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
19874
+ * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19443
19875
  * """
19444
19876
  * Cython equivalent of `isinstance(obj, np.timedelta64)`
19445
19877
  */
@@ -19447,7 +19879,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19447
19879
  static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
19448
19880
  int __pyx_r;
19449
19881
 
19450
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1011
19882
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1078
19451
19883
  * bool
19452
19884
  * """
19453
19885
  * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
@@ -19457,10 +19889,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19457
19889
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
19458
19890
  goto __pyx_L0;
19459
19891
 
19460
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":999
19892
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1066
19461
19893
  *
19462
19894
  *
19463
- * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
19895
+ * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19464
19896
  * """
19465
19897
  * Cython equivalent of `isinstance(obj, np.timedelta64)`
19466
19898
  */
@@ -19470,10 +19902,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19470
19902
  return __pyx_r;
19471
19903
  }
19472
19904
 
19473
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
19905
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
19474
19906
  *
19475
19907
  *
19476
- * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
19908
+ * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19477
19909
  * """
19478
19910
  * Cython equivalent of `isinstance(obj, np.datetime64)`
19479
19911
  */
@@ -19481,7 +19913,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
19481
19913
  static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
19482
19914
  int __pyx_r;
19483
19915
 
19484
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
19916
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1093
19485
19917
  * bool
19486
19918
  * """
19487
19919
  * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
@@ -19491,10 +19923,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19491
19923
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
19492
19924
  goto __pyx_L0;
19493
19925
 
19494
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
19926
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
19495
19927
  *
19496
19928
  *
19497
- * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
19929
+ * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
19498
19930
  * """
19499
19931
  * Cython equivalent of `isinstance(obj, np.datetime64)`
19500
19932
  */
@@ -19504,10 +19936,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19504
19936
  return __pyx_r;
19505
19937
  }
19506
19938
 
19507
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
19939
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
19508
19940
  *
19509
19941
  *
19510
- * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
19942
+ * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19511
19943
  * """
19512
19944
  * returns the int64 value underlying scalar numpy datetime64 object
19513
19945
  */
@@ -19515,7 +19947,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
19515
19947
  static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
19516
19948
  npy_datetime __pyx_r;
19517
19949
 
19518
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
19950
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1103
19519
19951
  * also needed. That can be found using `get_datetime64_unit`.
19520
19952
  * """
19521
19953
  * return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -19525,10 +19957,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19525
19957
  __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
19526
19958
  goto __pyx_L0;
19527
19959
 
19528
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
19960
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
19529
19961
  *
19530
19962
  *
19531
- * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
19963
+ * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19532
19964
  * """
19533
19965
  * returns the int64 value underlying scalar numpy datetime64 object
19534
19966
  */
@@ -19538,10 +19970,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19538
19970
  return __pyx_r;
19539
19971
  }
19540
19972
 
19541
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
19973
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1106
19542
19974
  *
19543
19975
  *
19544
- * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
19976
+ * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19545
19977
  * """
19546
19978
  * returns the int64 value underlying scalar numpy timedelta64 object
19547
19979
  */
@@ -19549,7 +19981,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
19549
19981
  static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
19550
19982
  npy_timedelta __pyx_r;
19551
19983
 
19552
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1043
19984
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1110
19553
19985
  * returns the int64 value underlying scalar numpy timedelta64 object
19554
19986
  * """
19555
19987
  * return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -19559,10 +19991,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19559
19991
  __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
19560
19992
  goto __pyx_L0;
19561
19993
 
19562
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1039
19994
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1106
19563
19995
  *
19564
19996
  *
19565
- * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
19997
+ * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19566
19998
  * """
19567
19999
  * returns the int64 value underlying scalar numpy timedelta64 object
19568
20000
  */
@@ -19572,10 +20004,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19572
20004
  return __pyx_r;
19573
20005
  }
19574
20006
 
19575
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1046
20007
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1113
19576
20008
  *
19577
20009
  *
19578
- * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
20010
+ * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19579
20011
  * """
19580
20012
  * returns the unit part of the dtype for a numpy datetime64 object.
19581
20013
  */
@@ -19583,18 +20015,20 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
19583
20015
  static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
19584
20016
  NPY_DATETIMEUNIT __pyx_r;
19585
20017
 
19586
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1050
20018
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1117
19587
20019
  * returns the unit part of the dtype for a numpy datetime64 object.
19588
20020
  * """
19589
20021
  * return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
20022
+ *
20023
+ *
19590
20024
  */
19591
20025
  __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
19592
20026
  goto __pyx_L0;
19593
20027
 
19594
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":1046
20028
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1113
19595
20029
  *
19596
20030
  *
19597
- * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
20031
+ * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
19598
20032
  * """
19599
20033
  * returns the unit part of the dtype for a numpy datetime64 object.
19600
20034
  */
@@ -21346,13 +21780,14 @@ static PyObject *__pyx_pf_9sknetwork_8topology_7cliques_count_cliques(CYTHON_UNU
21346
21780
  int __pyx_t_2;
21347
21781
  PyObject *__pyx_t_3 = NULL;
21348
21782
  PyObject *__pyx_t_4 = NULL;
21349
- int __pyx_t_5;
21783
+ unsigned int __pyx_t_5;
21350
21784
  PyObject *__pyx_t_6 = NULL;
21351
21785
  PyObject *__pyx_t_7 = NULL;
21352
21786
  PyObject *__pyx_t_8 = NULL;
21353
21787
  std::vector<int> __pyx_t_9;
21354
21788
  std::vector<int> __pyx_t_10;
21355
- long __pyx_t_11;
21789
+ int __pyx_t_11;
21790
+ long __pyx_t_12;
21356
21791
  int __pyx_lineno = 0;
21357
21792
  const char *__pyx_filename = NULL;
21358
21793
  int __pyx_clineno = 0;
@@ -21532,10 +21967,10 @@ static PyObject *__pyx_pf_9sknetwork_8topology_7cliques_count_cliques(CYTHON_UNU
21532
21967
  */
21533
21968
  __pyx_t_9 = __pyx_convert_vector_from_py_int(__pyx_v_indptr); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
21534
21969
  __pyx_t_10 = __pyx_convert_vector_from_py_int(__pyx_v_indices); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
21535
- __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_clique_size); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
21970
+ __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_clique_size); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
21536
21971
  if (!(likely(((__pyx_v_box) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_box, __pyx_ptype_9sknetwork_8topology_7cliques_ListingBox))))) __PYX_ERR(0, 148, __pyx_L1_error)
21537
- __pyx_t_11 = __pyx_f_9sknetwork_8topology_7cliques_count_cliques_from_dag(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_9), __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_10), __pyx_t_5, ((struct __pyx_obj_9sknetwork_8topology_7cliques_ListingBox *)__pyx_v_box)); if (unlikely(__pyx_t_11 == ((long)-1) && PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
21538
- __pyx_v_n_cliques = __pyx_t_11;
21972
+ __pyx_t_12 = __pyx_f_9sknetwork_8topology_7cliques_count_cliques_from_dag(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_9), __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_10), __pyx_t_11, ((struct __pyx_obj_9sknetwork_8topology_7cliques_ListingBox *)__pyx_v_box)); if (unlikely(__pyx_t_12 == ((long)-1) && PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
21973
+ __pyx_v_n_cliques = __pyx_t_12;
21539
21974
 
21540
21975
  /* "sknetwork/topology/cliques.pyx":149
21541
21976
  * box = ListingBox.__new__(ListingBox, indptr, clique_size)
@@ -21756,6 +22191,9 @@ static PyTypeObject __pyx_type_9sknetwork_8topology_7cliques_ListingBox = {
21756
22191
  #if PY_VERSION_HEX >= 0x030C0000
21757
22192
  0, /*tp_watched*/
21758
22193
  #endif
22194
+ #if PY_VERSION_HEX >= 0x030d00A4
22195
+ 0, /*tp_versions_used*/
22196
+ #endif
21759
22197
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
21760
22198
  0, /*tp_pypy_flags*/
21761
22199
  #endif
@@ -22019,6 +22457,9 @@ static PyTypeObject __pyx_type___pyx_array = {
22019
22457
  #if PY_VERSION_HEX >= 0x030C0000
22020
22458
  0, /*tp_watched*/
22021
22459
  #endif
22460
+ #if PY_VERSION_HEX >= 0x030d00A4
22461
+ 0, /*tp_versions_used*/
22462
+ #endif
22022
22463
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
22023
22464
  0, /*tp_pypy_flags*/
22024
22465
  #endif
@@ -22189,6 +22630,9 @@ static PyTypeObject __pyx_type___pyx_MemviewEnum = {
22189
22630
  #if PY_VERSION_HEX >= 0x030C0000
22190
22631
  0, /*tp_watched*/
22191
22632
  #endif
22633
+ #if PY_VERSION_HEX >= 0x030d00A4
22634
+ 0, /*tp_versions_used*/
22635
+ #endif
22192
22636
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
22193
22637
  0, /*tp_pypy_flags*/
22194
22638
  #endif
@@ -22532,6 +22976,9 @@ static PyTypeObject __pyx_type___pyx_memoryview = {
22532
22976
  #if PY_VERSION_HEX >= 0x030C0000
22533
22977
  0, /*tp_watched*/
22534
22978
  #endif
22979
+ #if PY_VERSION_HEX >= 0x030d00A4
22980
+ 0, /*tp_versions_used*/
22981
+ #endif
22535
22982
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
22536
22983
  0, /*tp_pypy_flags*/
22537
22984
  #endif
@@ -22704,6 +23151,9 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = {
22704
23151
  #if PY_VERSION_HEX >= 0x030C0000
22705
23152
  0, /*tp_watched*/
22706
23153
  #endif
23154
+ #if PY_VERSION_HEX >= 0x030d00A4
23155
+ 0, /*tp_versions_used*/
23156
+ #endif
22707
23157
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
22708
23158
  0, /*tp_pypy_flags*/
22709
23159
  #endif
@@ -22835,8 +23285,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
22835
23285
  {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
22836
23286
  {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
22837
23287
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
22838
- {&__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},
22839
- {&__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},
23288
+ {&__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},
23289
+ {&__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},
22840
23290
  {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
22841
23291
  {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1},
22842
23292
  {&__pyx_n_s_order, __pyx_k_order, sizeof(__pyx_k_order), 0, 0, 1, 1},
@@ -22902,7 +23352,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
22902
23352
  __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 408, __pyx_L1_error)
22903
23353
  __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 618, __pyx_L1_error)
22904
23354
  __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(1, 914, __pyx_L1_error)
22905
- __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 984, __pyx_L1_error)
23355
+ __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1051, __pyx_L1_error)
22906
23356
  return 0;
22907
23357
  __pyx_L1_error:;
22908
23358
  return -1;
@@ -22949,25 +23399,25 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
22949
23399
  __Pyx_GOTREF(__pyx_tuple__8);
22950
23400
  __Pyx_GIVEREF(__pyx_tuple__8);
22951
23401
 
22952
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":984
23402
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1051
22953
23403
  * __pyx_import_array()
22954
23404
  * except Exception:
22955
- * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
23405
+ * raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
22956
23406
  *
22957
23407
  * cdef inline int import_umath() except -1:
22958
23408
  */
22959
- __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)
23409
+ __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)
22960
23410
  __Pyx_GOTREF(__pyx_tuple__9);
22961
23411
  __Pyx_GIVEREF(__pyx_tuple__9);
22962
23412
 
22963
- /* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp311-win_amd64/build/venv/Lib/site-packages/numpy/__init__.cython-30.pxd":990
23413
+ /* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-um3f_m6n/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1057
22964
23414
  * _import_umath()
22965
23415
  * except Exception:
22966
- * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
23416
+ * raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
22967
23417
  *
22968
23418
  * cdef inline int import_ufunc() except -1:
22969
23419
  */
22970
- __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)
23420
+ __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)
22971
23421
  __Pyx_GOTREF(__pyx_tuple__10);
22972
23422
  __Pyx_GIVEREF(__pyx_tuple__10);
22973
23423
 
@@ -23391,33 +23841,33 @@ static int __Pyx_modinit_type_import_code(void) {
23391
23841
  /*--- Type import code ---*/
23392
23842
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
23393
23843
  __Pyx_GOTREF(__pyx_t_1);
23394
- __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
23844
+ __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
23395
23845
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
23396
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
23846
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
23397
23847
  #elif CYTHON_COMPILING_IN_LIMITED_API
23398
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
23848
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
23399
23849
  #else
23400
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyHeapTypeObject),
23850
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject),
23401
23851
  #endif
23402
- __Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
23852
+ __Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
23403
23853
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23404
- __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 202, __pyx_L1_error)
23854
+ __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 272, __pyx_L1_error)
23405
23855
  __Pyx_GOTREF(__pyx_t_1);
23406
- __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)
23407
- __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)
23408
- __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)
23409
- __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)
23410
- __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)
23411
- __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)
23412
- __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)
23413
- __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)
23414
- __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)
23415
- __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)
23416
- __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)
23417
- __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)
23418
- __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)
23419
- __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)
23420
- __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)
23856
+ __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)
23857
+ __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)
23858
+ __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)
23859
+ __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)
23860
+ __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)
23861
+ __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)
23862
+ __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)
23863
+ __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)
23864
+ __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)
23865
+ __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)
23866
+ __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)
23867
+ __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)
23868
+ __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)
23869
+ __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)
23870
+ __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)
23421
23871
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23422
23872
  __Pyx_RefNannyFinishContext();
23423
23873
  return 0;
@@ -26839,7 +27289,6 @@ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
26839
27289
  }
26840
27290
 
26841
27291
  /* HasAttr */
26842
- #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
26843
27292
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
26844
27293
  PyObject *r;
26845
27294
  if (unlikely(!__Pyx_PyBaseString_Check(n))) {
@@ -26856,7 +27305,6 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
26856
27305
  return 1;
26857
27306
  }
26858
27307
  }
26859
- #endif
26860
27308
 
26861
27309
  /* IsLittleEndian */
26862
27310
  static CYTHON_INLINE int __Pyx_Is_Little_Endian(void)
@@ -28183,10 +28631,10 @@ bad:
28183
28631
  #endif
28184
28632
 
28185
28633
  /* TypeImport */
28186
- #ifndef __PYX_HAVE_RT_ImportType_3_0_10
28187
- #define __PYX_HAVE_RT_ImportType_3_0_10
28188
- static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *module_name, const char *class_name,
28189
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size)
28634
+ #ifndef __PYX_HAVE_RT_ImportType_3_0_12
28635
+ #define __PYX_HAVE_RT_ImportType_3_0_12
28636
+ static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name,
28637
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size)
28190
28638
  {
28191
28639
  PyObject *result = 0;
28192
28640
  char warning[200];
@@ -28240,7 +28688,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
28240
28688
  module_name, class_name, size, basicsize+itemsize);
28241
28689
  goto bad;
28242
28690
  }
28243
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_10 &&
28691
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_12 &&
28244
28692
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
28245
28693
  PyErr_Format(PyExc_ValueError,
28246
28694
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -28248,7 +28696,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
28248
28696
  module_name, class_name, size, basicsize, basicsize+itemsize);
28249
28697
  goto bad;
28250
28698
  }
28251
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_10 && (size_t)basicsize > size) {
28699
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_12 && (size_t)basicsize > size) {
28252
28700
  PyOS_snprintf(warning, sizeof(warning),
28253
28701
  "%s.%s size changed, may indicate binary incompatibility. "
28254
28702
  "Expected %zd from C header, got %zd from PyObject",
@@ -29383,6 +29831,9 @@ static PyTypeObject __pyx_CyFunctionType_type = {
29383
29831
  #if PY_VERSION_HEX >= 0x030C0000
29384
29832
  0,
29385
29833
  #endif
29834
+ #if PY_VERSION_HEX >= 0x030d00A4
29835
+ 0,
29836
+ #endif
29386
29837
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
29387
29838
  0,
29388
29839
  #endif
@@ -29568,7 +30019,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
29568
30019
  #include "compile.h"
29569
30020
  #include "frameobject.h"
29570
30021
  #include "traceback.h"
29571
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
30022
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
29572
30023
  #ifndef Py_BUILD_CORE
29573
30024
  #define Py_BUILD_CORE 1
29574
30025
  #endif
@@ -30440,6 +30891,160 @@ __pyx_fail:
30440
30891
  #endif
30441
30892
  #endif
30442
30893
 
30894
+ /* Declarations */
30895
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
30896
+ #ifdef __cplusplus
30897
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
30898
+ return ::std::complex< long double >(x, y);
30899
+ }
30900
+ #else
30901
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
30902
+ return x + y*(__pyx_t_long_double_complex)_Complex_I;
30903
+ }
30904
+ #endif
30905
+ #else
30906
+ static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
30907
+ __pyx_t_long_double_complex z;
30908
+ z.real = x;
30909
+ z.imag = y;
30910
+ return z;
30911
+ }
30912
+ #endif
30913
+
30914
+ /* Arithmetic */
30915
+ #if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
30916
+ #else
30917
+ static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
30918
+ return (a.real == b.real) && (a.imag == b.imag);
30919
+ }
30920
+ 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) {
30921
+ __pyx_t_long_double_complex z;
30922
+ z.real = a.real + b.real;
30923
+ z.imag = a.imag + b.imag;
30924
+ return z;
30925
+ }
30926
+ 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) {
30927
+ __pyx_t_long_double_complex z;
30928
+ z.real = a.real - b.real;
30929
+ z.imag = a.imag - b.imag;
30930
+ return z;
30931
+ }
30932
+ 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) {
30933
+ __pyx_t_long_double_complex z;
30934
+ z.real = a.real * b.real - a.imag * b.imag;
30935
+ z.imag = a.real * b.imag + a.imag * b.real;
30936
+ return z;
30937
+ }
30938
+ #if 1
30939
+ 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) {
30940
+ if (b.imag == 0) {
30941
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
30942
+ } else if (fabsl(b.real) >= fabsl(b.imag)) {
30943
+ if (b.real == 0 && b.imag == 0) {
30944
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
30945
+ } else {
30946
+ long double r = b.imag / b.real;
30947
+ long double s = (long double)(1.0) / (b.real + b.imag * r);
30948
+ return __pyx_t_long_double_complex_from_parts(
30949
+ (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
30950
+ }
30951
+ } else {
30952
+ long double r = b.real / b.imag;
30953
+ long double s = (long double)(1.0) / (b.imag + b.real * r);
30954
+ return __pyx_t_long_double_complex_from_parts(
30955
+ (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
30956
+ }
30957
+ }
30958
+ #else
30959
+ 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) {
30960
+ if (b.imag == 0) {
30961
+ return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
30962
+ } else {
30963
+ long double denom = b.real * b.real + b.imag * b.imag;
30964
+ return __pyx_t_long_double_complex_from_parts(
30965
+ (a.real * b.real + a.imag * b.imag) / denom,
30966
+ (a.imag * b.real - a.real * b.imag) / denom);
30967
+ }
30968
+ }
30969
+ #endif
30970
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex a) {
30971
+ __pyx_t_long_double_complex z;
30972
+ z.real = -a.real;
30973
+ z.imag = -a.imag;
30974
+ return z;
30975
+ }
30976
+ static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex a) {
30977
+ return (a.real == 0) && (a.imag == 0);
30978
+ }
30979
+ static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex a) {
30980
+ __pyx_t_long_double_complex z;
30981
+ z.real = a.real;
30982
+ z.imag = -a.imag;
30983
+ return z;
30984
+ }
30985
+ #if 1
30986
+ static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex z) {
30987
+ #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
30988
+ return sqrtl(z.real*z.real + z.imag*z.imag);
30989
+ #else
30990
+ return hypotl(z.real, z.imag);
30991
+ #endif
30992
+ }
30993
+ 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) {
30994
+ __pyx_t_long_double_complex z;
30995
+ long double r, lnr, theta, z_r, z_theta;
30996
+ if (b.imag == 0 && b.real == (int)b.real) {
30997
+ if (b.real < 0) {
30998
+ long double denom = a.real * a.real + a.imag * a.imag;
30999
+ a.real = a.real / denom;
31000
+ a.imag = -a.imag / denom;
31001
+ b.real = -b.real;
31002
+ }
31003
+ switch ((int)b.real) {
31004
+ case 0:
31005
+ z.real = 1;
31006
+ z.imag = 0;
31007
+ return z;
31008
+ case 1:
31009
+ return a;
31010
+ case 2:
31011
+ return __Pyx_c_prod_long__double(a, a);
31012
+ case 3:
31013
+ z = __Pyx_c_prod_long__double(a, a);
31014
+ return __Pyx_c_prod_long__double(z, a);
31015
+ case 4:
31016
+ z = __Pyx_c_prod_long__double(a, a);
31017
+ return __Pyx_c_prod_long__double(z, z);
31018
+ }
31019
+ }
31020
+ if (a.imag == 0) {
31021
+ if (a.real == 0) {
31022
+ return a;
31023
+ } else if ((b.imag == 0) && (a.real >= 0)) {
31024
+ z.real = powl(a.real, b.real);
31025
+ z.imag = 0;
31026
+ return z;
31027
+ } else if (a.real > 0) {
31028
+ r = a.real;
31029
+ theta = 0;
31030
+ } else {
31031
+ r = -a.real;
31032
+ theta = atan2l(0.0, -1.0);
31033
+ }
31034
+ } else {
31035
+ r = __Pyx_c_abs_long__double(a);
31036
+ theta = atan2l(a.imag, a.real);
31037
+ }
31038
+ lnr = logl(r);
31039
+ z_r = expl(lnr * b.real - theta * b.imag);
31040
+ z_theta = theta * b.real + lnr * b.imag;
31041
+ z.real = z_r * cosl(z_theta);
31042
+ z.imag = z_r * sinl(z_theta);
31043
+ return z;
31044
+ }
31045
+ #endif
31046
+ #endif
31047
+
30443
31048
  /* MemviewSliceCopyTemplate */
30444
31049
  static __Pyx_memviewslice
30445
31050
  __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
@@ -30664,245 +31269,239 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
30664
31269
  }
30665
31270
  return (int) val;
30666
31271
  }
30667
- } else
31272
+ }
30668
31273
  #endif
30669
- if (likely(PyLong_Check(x))) {
30670
- if (is_unsigned) {
31274
+ if (unlikely(!PyLong_Check(x))) {
31275
+ int val;
31276
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
31277
+ if (!tmp) return (int) -1;
31278
+ val = __Pyx_PyInt_As_int(tmp);
31279
+ Py_DECREF(tmp);
31280
+ return val;
31281
+ }
31282
+ if (is_unsigned) {
30671
31283
  #if CYTHON_USE_PYLONG_INTERNALS
30672
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
30673
- goto raise_neg_overflow;
30674
- } else if (__Pyx_PyLong_IsCompact(x)) {
30675
- __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
30676
- } else {
30677
- const digit* digits = __Pyx_PyLong_Digits(x);
30678
- assert(__Pyx_PyLong_DigitCount(x) > 1);
30679
- switch (__Pyx_PyLong_DigitCount(x)) {
30680
- case 2:
30681
- if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
30682
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30683
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30684
- } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
30685
- return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
30686
- }
31284
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
31285
+ goto raise_neg_overflow;
31286
+ } else if (__Pyx_PyLong_IsCompact(x)) {
31287
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
31288
+ } else {
31289
+ const digit* digits = __Pyx_PyLong_Digits(x);
31290
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
31291
+ switch (__Pyx_PyLong_DigitCount(x)) {
31292
+ case 2:
31293
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
31294
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31295
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31296
+ } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
31297
+ return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
30687
31298
  }
30688
- break;
30689
- case 3:
30690
- if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
30691
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30692
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30693
- } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
30694
- return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
30695
- }
31299
+ }
31300
+ break;
31301
+ case 3:
31302
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
31303
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31304
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31305
+ } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
31306
+ return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
30696
31307
  }
30697
- break;
30698
- case 4:
30699
- if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
30700
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30701
- __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])))
30702
- } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
30703
- return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
30704
- }
31308
+ }
31309
+ break;
31310
+ case 4:
31311
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
31312
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31313
+ __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])))
31314
+ } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
31315
+ return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
30705
31316
  }
30706
- break;
30707
- }
31317
+ }
31318
+ break;
30708
31319
  }
31320
+ }
30709
31321
  #endif
30710
31322
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
30711
- if (unlikely(Py_SIZE(x) < 0)) {
30712
- goto raise_neg_overflow;
30713
- }
31323
+ if (unlikely(Py_SIZE(x) < 0)) {
31324
+ goto raise_neg_overflow;
31325
+ }
30714
31326
  #else
30715
- {
30716
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
30717
- if (unlikely(result < 0))
30718
- return (int) -1;
30719
- if (unlikely(result == 1))
30720
- goto raise_neg_overflow;
30721
- }
31327
+ {
31328
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
31329
+ if (unlikely(result < 0))
31330
+ return (int) -1;
31331
+ if (unlikely(result == 1))
31332
+ goto raise_neg_overflow;
31333
+ }
30722
31334
  #endif
30723
- if ((sizeof(int) <= sizeof(unsigned long))) {
30724
- __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
31335
+ if ((sizeof(int) <= sizeof(unsigned long))) {
31336
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
30725
31337
  #ifdef HAVE_LONG_LONG
30726
- } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
30727
- __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
31338
+ } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
31339
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
30728
31340
  #endif
30729
- }
30730
- } else {
31341
+ }
31342
+ } else {
30731
31343
  #if CYTHON_USE_PYLONG_INTERNALS
30732
- if (__Pyx_PyLong_IsCompact(x)) {
30733
- __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
30734
- } else {
30735
- const digit* digits = __Pyx_PyLong_Digits(x);
30736
- assert(__Pyx_PyLong_DigitCount(x) > 1);
30737
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
30738
- case -2:
30739
- if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
30740
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30741
- __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30742
- } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
30743
- return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30744
- }
31344
+ if (__Pyx_PyLong_IsCompact(x)) {
31345
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
31346
+ } else {
31347
+ const digit* digits = __Pyx_PyLong_Digits(x);
31348
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
31349
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
31350
+ case -2:
31351
+ if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
31352
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31353
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31354
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
31355
+ return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30745
31356
  }
30746
- break;
30747
- case 2:
30748
- if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
30749
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
30750
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30751
- } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
30752
- return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30753
- }
31357
+ }
31358
+ break;
31359
+ case 2:
31360
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
31361
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31362
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31363
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
31364
+ return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30754
31365
  }
30755
- break;
30756
- case -3:
30757
- if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
30758
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30759
- __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30760
- } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
30761
- return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30762
- }
31366
+ }
31367
+ break;
31368
+ case -3:
31369
+ if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
31370
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31371
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31372
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
31373
+ return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30763
31374
  }
30764
- break;
30765
- case 3:
30766
- if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
30767
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
30768
- __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
30769
- } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
30770
- return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30771
- }
31375
+ }
31376
+ break;
31377
+ case 3:
31378
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
31379
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31380
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31381
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
31382
+ return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30772
31383
  }
30773
- break;
30774
- case -4:
30775
- if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
30776
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30777
- __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])))
30778
- } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
30779
- return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30780
- }
31384
+ }
31385
+ break;
31386
+ case -4:
31387
+ if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
31388
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31389
+ __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])))
31390
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
31391
+ return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30781
31392
  }
30782
- break;
30783
- case 4:
30784
- if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
30785
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
30786
- __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])))
30787
- } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
30788
- return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30789
- }
31393
+ }
31394
+ break;
31395
+ case 4:
31396
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
31397
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31398
+ __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])))
31399
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
31400
+ return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
30790
31401
  }
30791
- break;
30792
- }
31402
+ }
31403
+ break;
30793
31404
  }
31405
+ }
30794
31406
  #endif
30795
- if ((sizeof(int) <= sizeof(long))) {
30796
- __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
31407
+ if ((sizeof(int) <= sizeof(long))) {
31408
+ __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
30797
31409
  #ifdef HAVE_LONG_LONG
30798
- } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
30799
- __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
31410
+ } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
31411
+ __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
30800
31412
  #endif
30801
- }
30802
31413
  }
30803
- {
30804
- int val;
30805
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
30806
- #if PY_MAJOR_VERSION < 3
30807
- if (likely(v) && !PyLong_Check(v)) {
30808
- PyObject *tmp = v;
30809
- v = PyNumber_Long(tmp);
30810
- Py_DECREF(tmp);
30811
- }
30812
- #endif
30813
- if (likely(v)) {
30814
- int ret = -1;
30815
- #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
30816
- int one = 1; int is_little = (int)*(unsigned char *)&one;
30817
- unsigned char *bytes = (unsigned char *)&val;
30818
- ret = _PyLong_AsByteArray((PyLongObject *)v,
30819
- bytes, sizeof(val),
30820
- is_little, !is_unsigned);
30821
- #else
30822
- PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
30823
- int bits, remaining_bits, is_negative = 0;
30824
- long idigit;
30825
- int chunk_size = (sizeof(long) < 8) ? 30 : 62;
30826
- if (unlikely(!PyLong_CheckExact(v))) {
30827
- PyObject *tmp = v;
30828
- v = PyNumber_Long(v);
30829
- assert(PyLong_CheckExact(v));
30830
- Py_DECREF(tmp);
30831
- if (unlikely(!v)) return (int) -1;
30832
- }
30833
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
30834
- if (Py_SIZE(x) == 0)
30835
- return (int) 0;
30836
- is_negative = Py_SIZE(x) < 0;
30837
- #else
30838
- {
30839
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
30840
- if (unlikely(result < 0))
30841
- return (int) -1;
30842
- is_negative = result == 1;
30843
- }
30844
- #endif
30845
- if (is_unsigned && unlikely(is_negative)) {
30846
- goto raise_neg_overflow;
30847
- } else if (is_negative) {
30848
- stepval = PyNumber_Invert(v);
30849
- if (unlikely(!stepval))
30850
- return (int) -1;
30851
- } else {
30852
- stepval = __Pyx_NewRef(v);
30853
- }
30854
- val = (int) 0;
30855
- mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
30856
- shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
30857
- for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
30858
- PyObject *tmp, *digit;
30859
- digit = PyNumber_And(stepval, mask);
30860
- if (unlikely(!digit)) goto done;
30861
- idigit = PyLong_AsLong(digit);
30862
- Py_DECREF(digit);
30863
- if (unlikely(idigit < 0)) goto done;
30864
- tmp = PyNumber_Rshift(stepval, shift);
30865
- if (unlikely(!tmp)) goto done;
30866
- Py_DECREF(stepval); stepval = tmp;
30867
- val |= ((int) idigit) << bits;
30868
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
30869
- if (Py_SIZE(stepval) == 0)
30870
- goto unpacking_done;
30871
- #endif
30872
- }
30873
- idigit = PyLong_AsLong(stepval);
30874
- if (unlikely(idigit < 0)) goto done;
30875
- remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
30876
- if (unlikely(idigit >= (1L << remaining_bits)))
30877
- goto raise_overflow;
30878
- val |= ((int) idigit) << bits;
30879
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
30880
- unpacking_done:
30881
- #endif
30882
- if (!is_unsigned) {
30883
- if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
30884
- goto raise_overflow;
30885
- if (is_negative)
30886
- val = ~val;
30887
- }
30888
- ret = 0;
30889
- done:
30890
- Py_XDECREF(shift);
30891
- Py_XDECREF(mask);
30892
- Py_XDECREF(stepval);
30893
- #endif
31414
+ }
31415
+ {
31416
+ int val;
31417
+ int ret = -1;
31418
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
31419
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
31420
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
31421
+ if (unlikely(bytes_copied == -1)) {
31422
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
31423
+ goto raise_overflow;
31424
+ } else {
31425
+ ret = 0;
31426
+ }
31427
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
31428
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
31429
+ unsigned char *bytes = (unsigned char *)&val;
31430
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
31431
+ bytes, sizeof(val),
31432
+ is_little, !is_unsigned);
31433
+ #else
31434
+ PyObject *v;
31435
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
31436
+ int bits, remaining_bits, is_negative = 0;
31437
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
31438
+ if (likely(PyLong_CheckExact(x))) {
31439
+ v = __Pyx_NewRef(x);
31440
+ } else {
31441
+ v = PyNumber_Long(x);
31442
+ if (unlikely(!v)) return (int) -1;
31443
+ assert(PyLong_CheckExact(v));
31444
+ }
31445
+ {
31446
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
31447
+ if (unlikely(result < 0)) {
30894
31448
  Py_DECREF(v);
30895
- if (likely(!ret))
30896
- return val;
31449
+ return (int) -1;
30897
31450
  }
30898
- return (int) -1;
31451
+ is_negative = result == 1;
30899
31452
  }
30900
- } else {
30901
- int val;
30902
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
30903
- if (!tmp) return (int) -1;
30904
- val = __Pyx_PyInt_As_int(tmp);
30905
- Py_DECREF(tmp);
31453
+ if (is_unsigned && unlikely(is_negative)) {
31454
+ Py_DECREF(v);
31455
+ goto raise_neg_overflow;
31456
+ } else if (is_negative) {
31457
+ stepval = PyNumber_Invert(v);
31458
+ Py_DECREF(v);
31459
+ if (unlikely(!stepval))
31460
+ return (int) -1;
31461
+ } else {
31462
+ stepval = v;
31463
+ }
31464
+ v = NULL;
31465
+ val = (int) 0;
31466
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
31467
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
31468
+ for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
31469
+ PyObject *tmp, *digit;
31470
+ long idigit;
31471
+ digit = PyNumber_And(stepval, mask);
31472
+ if (unlikely(!digit)) goto done;
31473
+ idigit = PyLong_AsLong(digit);
31474
+ Py_DECREF(digit);
31475
+ if (unlikely(idigit < 0)) goto done;
31476
+ val |= ((int) idigit) << bits;
31477
+ tmp = PyNumber_Rshift(stepval, shift);
31478
+ if (unlikely(!tmp)) goto done;
31479
+ Py_DECREF(stepval); stepval = tmp;
31480
+ }
31481
+ Py_DECREF(shift); shift = NULL;
31482
+ Py_DECREF(mask); mask = NULL;
31483
+ {
31484
+ long idigit = PyLong_AsLong(stepval);
31485
+ if (unlikely(idigit < 0)) goto done;
31486
+ remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
31487
+ if (unlikely(idigit >= (1L << remaining_bits)))
31488
+ goto raise_overflow;
31489
+ val |= ((int) idigit) << bits;
31490
+ }
31491
+ if (!is_unsigned) {
31492
+ if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
31493
+ goto raise_overflow;
31494
+ if (is_negative)
31495
+ val = ~val;
31496
+ }
31497
+ ret = 0;
31498
+ done:
31499
+ Py_XDECREF(shift);
31500
+ Py_XDECREF(mask);
31501
+ Py_XDECREF(stepval);
31502
+ #endif
31503
+ if (unlikely(ret))
31504
+ return (int) -1;
30906
31505
  return val;
30907
31506
  }
30908
31507
  raise_overflow:
@@ -30946,12 +31545,19 @@ raise_neg_overflow:
30946
31545
  }
30947
31546
  }
30948
31547
  {
30949
- int one = 1; int little = (int)*(unsigned char *)&one;
30950
31548
  unsigned char *bytes = (unsigned char *)&value;
30951
- #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
31549
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
31550
+ if (is_unsigned) {
31551
+ return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
31552
+ } else {
31553
+ return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
31554
+ }
31555
+ #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
31556
+ int one = 1; int little = (int)*(unsigned char *)&one;
30952
31557
  return _PyLong_FromByteArray(bytes, sizeof(long),
30953
31558
  little, !is_unsigned);
30954
31559
  #else
31560
+ int one = 1; int little = (int)*(unsigned char *)&one;
30955
31561
  PyObject *from_bytes, *result = NULL;
30956
31562
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
30957
31563
  from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
@@ -31010,12 +31616,19 @@ raise_neg_overflow:
31010
31616
  }
31011
31617
  }
31012
31618
  {
31013
- int one = 1; int little = (int)*(unsigned char *)&one;
31014
31619
  unsigned char *bytes = (unsigned char *)&value;
31015
- #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
31620
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
31621
+ if (is_unsigned) {
31622
+ return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
31623
+ } else {
31624
+ return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
31625
+ }
31626
+ #elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
31627
+ int one = 1; int little = (int)*(unsigned char *)&one;
31016
31628
  return _PyLong_FromByteArray(bytes, sizeof(int),
31017
31629
  little, !is_unsigned);
31018
31630
  #else
31631
+ int one = 1; int little = (int)*(unsigned char *)&one;
31019
31632
  PyObject *from_bytes, *result = NULL;
31020
31633
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
31021
31634
  from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
@@ -31065,245 +31678,239 @@ raise_neg_overflow:
31065
31678
  }
31066
31679
  return (long) val;
31067
31680
  }
31068
- } else
31681
+ }
31069
31682
  #endif
31070
- if (likely(PyLong_Check(x))) {
31071
- if (is_unsigned) {
31683
+ if (unlikely(!PyLong_Check(x))) {
31684
+ long val;
31685
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
31686
+ if (!tmp) return (long) -1;
31687
+ val = __Pyx_PyInt_As_long(tmp);
31688
+ Py_DECREF(tmp);
31689
+ return val;
31690
+ }
31691
+ if (is_unsigned) {
31072
31692
  #if CYTHON_USE_PYLONG_INTERNALS
31073
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
31074
- goto raise_neg_overflow;
31075
- } else if (__Pyx_PyLong_IsCompact(x)) {
31076
- __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
31077
- } else {
31078
- const digit* digits = __Pyx_PyLong_Digits(x);
31079
- assert(__Pyx_PyLong_DigitCount(x) > 1);
31080
- switch (__Pyx_PyLong_DigitCount(x)) {
31081
- case 2:
31082
- if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
31083
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31084
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31085
- } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
31086
- return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
31087
- }
31693
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
31694
+ goto raise_neg_overflow;
31695
+ } else if (__Pyx_PyLong_IsCompact(x)) {
31696
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
31697
+ } else {
31698
+ const digit* digits = __Pyx_PyLong_Digits(x);
31699
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
31700
+ switch (__Pyx_PyLong_DigitCount(x)) {
31701
+ case 2:
31702
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
31703
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31704
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31705
+ } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
31706
+ return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
31088
31707
  }
31089
- break;
31090
- case 3:
31091
- if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
31092
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31093
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31094
- } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
31095
- return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
31096
- }
31708
+ }
31709
+ break;
31710
+ case 3:
31711
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
31712
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31713
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31714
+ } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
31715
+ return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
31097
31716
  }
31098
- break;
31099
- case 4:
31100
- if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
31101
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31102
- __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])))
31103
- } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
31104
- return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
31105
- }
31717
+ }
31718
+ break;
31719
+ case 4:
31720
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
31721
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31722
+ __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])))
31723
+ } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
31724
+ return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
31106
31725
  }
31107
- break;
31108
- }
31726
+ }
31727
+ break;
31109
31728
  }
31729
+ }
31110
31730
  #endif
31111
31731
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
31112
- if (unlikely(Py_SIZE(x) < 0)) {
31113
- goto raise_neg_overflow;
31114
- }
31732
+ if (unlikely(Py_SIZE(x) < 0)) {
31733
+ goto raise_neg_overflow;
31734
+ }
31115
31735
  #else
31116
- {
31117
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
31118
- if (unlikely(result < 0))
31119
- return (long) -1;
31120
- if (unlikely(result == 1))
31121
- goto raise_neg_overflow;
31122
- }
31736
+ {
31737
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
31738
+ if (unlikely(result < 0))
31739
+ return (long) -1;
31740
+ if (unlikely(result == 1))
31741
+ goto raise_neg_overflow;
31742
+ }
31123
31743
  #endif
31124
- if ((sizeof(long) <= sizeof(unsigned long))) {
31125
- __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
31744
+ if ((sizeof(long) <= sizeof(unsigned long))) {
31745
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
31126
31746
  #ifdef HAVE_LONG_LONG
31127
- } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
31128
- __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
31747
+ } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
31748
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
31129
31749
  #endif
31130
- }
31131
- } else {
31750
+ }
31751
+ } else {
31132
31752
  #if CYTHON_USE_PYLONG_INTERNALS
31133
- if (__Pyx_PyLong_IsCompact(x)) {
31134
- __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
31135
- } else {
31136
- const digit* digits = __Pyx_PyLong_Digits(x);
31137
- assert(__Pyx_PyLong_DigitCount(x) > 1);
31138
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
31139
- case -2:
31140
- if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
31141
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31142
- __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31143
- } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
31144
- return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31145
- }
31753
+ if (__Pyx_PyLong_IsCompact(x)) {
31754
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
31755
+ } else {
31756
+ const digit* digits = __Pyx_PyLong_Digits(x);
31757
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
31758
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
31759
+ case -2:
31760
+ if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
31761
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31762
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31763
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
31764
+ return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31146
31765
  }
31147
- break;
31148
- case 2:
31149
- if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
31150
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31151
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31152
- } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
31153
- return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31154
- }
31766
+ }
31767
+ break;
31768
+ case 2:
31769
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
31770
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31771
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31772
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
31773
+ return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31155
31774
  }
31156
- break;
31157
- case -3:
31158
- if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
31159
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31160
- __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31161
- } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
31162
- return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31163
- }
31775
+ }
31776
+ break;
31777
+ case -3:
31778
+ if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
31779
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31780
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31781
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
31782
+ return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31164
31783
  }
31165
- break;
31166
- case 3:
31167
- if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
31168
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31169
- __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31170
- } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
31171
- return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31172
- }
31784
+ }
31785
+ break;
31786
+ case 3:
31787
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
31788
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31789
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31790
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
31791
+ return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31173
31792
  }
31174
- break;
31175
- case -4:
31176
- if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
31177
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31178
- __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])))
31179
- } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
31180
- return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31181
- }
31793
+ }
31794
+ break;
31795
+ case -4:
31796
+ if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
31797
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31798
+ __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])))
31799
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
31800
+ return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31182
31801
  }
31183
- break;
31184
- case 4:
31185
- if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
31186
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31187
- __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])))
31188
- } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
31189
- return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31190
- }
31802
+ }
31803
+ break;
31804
+ case 4:
31805
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
31806
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31807
+ __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])))
31808
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
31809
+ return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
31191
31810
  }
31192
- break;
31193
- }
31811
+ }
31812
+ break;
31194
31813
  }
31814
+ }
31195
31815
  #endif
31196
- if ((sizeof(long) <= sizeof(long))) {
31197
- __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
31816
+ if ((sizeof(long) <= sizeof(long))) {
31817
+ __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
31198
31818
  #ifdef HAVE_LONG_LONG
31199
- } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
31200
- __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
31819
+ } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
31820
+ __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
31201
31821
  #endif
31202
- }
31822
+ }
31823
+ }
31824
+ {
31825
+ long val;
31826
+ int ret = -1;
31827
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
31828
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
31829
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
31830
+ if (unlikely(bytes_copied == -1)) {
31831
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
31832
+ goto raise_overflow;
31833
+ } else {
31834
+ ret = 0;
31835
+ }
31836
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
31837
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
31838
+ unsigned char *bytes = (unsigned char *)&val;
31839
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
31840
+ bytes, sizeof(val),
31841
+ is_little, !is_unsigned);
31842
+ #else
31843
+ PyObject *v;
31844
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
31845
+ int bits, remaining_bits, is_negative = 0;
31846
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
31847
+ if (likely(PyLong_CheckExact(x))) {
31848
+ v = __Pyx_NewRef(x);
31849
+ } else {
31850
+ v = PyNumber_Long(x);
31851
+ if (unlikely(!v)) return (long) -1;
31852
+ assert(PyLong_CheckExact(v));
31203
31853
  }
31204
31854
  {
31205
- long val;
31206
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
31207
- #if PY_MAJOR_VERSION < 3
31208
- if (likely(v) && !PyLong_Check(v)) {
31209
- PyObject *tmp = v;
31210
- v = PyNumber_Long(tmp);
31211
- Py_DECREF(tmp);
31212
- }
31213
- #endif
31214
- if (likely(v)) {
31215
- int ret = -1;
31216
- #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
31217
- int one = 1; int is_little = (int)*(unsigned char *)&one;
31218
- unsigned char *bytes = (unsigned char *)&val;
31219
- ret = _PyLong_AsByteArray((PyLongObject *)v,
31220
- bytes, sizeof(val),
31221
- is_little, !is_unsigned);
31222
- #else
31223
- PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
31224
- int bits, remaining_bits, is_negative = 0;
31225
- long idigit;
31226
- int chunk_size = (sizeof(long) < 8) ? 30 : 62;
31227
- if (unlikely(!PyLong_CheckExact(v))) {
31228
- PyObject *tmp = v;
31229
- v = PyNumber_Long(v);
31230
- assert(PyLong_CheckExact(v));
31231
- Py_DECREF(tmp);
31232
- if (unlikely(!v)) return (long) -1;
31233
- }
31234
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
31235
- if (Py_SIZE(x) == 0)
31236
- return (long) 0;
31237
- is_negative = Py_SIZE(x) < 0;
31238
- #else
31239
- {
31240
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
31241
- if (unlikely(result < 0))
31242
- return (long) -1;
31243
- is_negative = result == 1;
31244
- }
31245
- #endif
31246
- if (is_unsigned && unlikely(is_negative)) {
31247
- goto raise_neg_overflow;
31248
- } else if (is_negative) {
31249
- stepval = PyNumber_Invert(v);
31250
- if (unlikely(!stepval))
31251
- return (long) -1;
31252
- } else {
31253
- stepval = __Pyx_NewRef(v);
31254
- }
31255
- val = (long) 0;
31256
- mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
31257
- shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
31258
- for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
31259
- PyObject *tmp, *digit;
31260
- digit = PyNumber_And(stepval, mask);
31261
- if (unlikely(!digit)) goto done;
31262
- idigit = PyLong_AsLong(digit);
31263
- Py_DECREF(digit);
31264
- if (unlikely(idigit < 0)) goto done;
31265
- tmp = PyNumber_Rshift(stepval, shift);
31266
- if (unlikely(!tmp)) goto done;
31267
- Py_DECREF(stepval); stepval = tmp;
31268
- val |= ((long) idigit) << bits;
31269
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
31270
- if (Py_SIZE(stepval) == 0)
31271
- goto unpacking_done;
31272
- #endif
31273
- }
31274
- idigit = PyLong_AsLong(stepval);
31275
- if (unlikely(idigit < 0)) goto done;
31276
- remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
31277
- if (unlikely(idigit >= (1L << remaining_bits)))
31278
- goto raise_overflow;
31279
- val |= ((long) idigit) << bits;
31280
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
31281
- unpacking_done:
31282
- #endif
31283
- if (!is_unsigned) {
31284
- if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
31285
- goto raise_overflow;
31286
- if (is_negative)
31287
- val = ~val;
31288
- }
31289
- ret = 0;
31290
- done:
31291
- Py_XDECREF(shift);
31292
- Py_XDECREF(mask);
31293
- Py_XDECREF(stepval);
31294
- #endif
31855
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
31856
+ if (unlikely(result < 0)) {
31295
31857
  Py_DECREF(v);
31296
- if (likely(!ret))
31297
- return val;
31858
+ return (long) -1;
31298
31859
  }
31299
- return (long) -1;
31860
+ is_negative = result == 1;
31300
31861
  }
31301
- } else {
31302
- long val;
31303
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
31304
- if (!tmp) return (long) -1;
31305
- val = __Pyx_PyInt_As_long(tmp);
31306
- Py_DECREF(tmp);
31862
+ if (is_unsigned && unlikely(is_negative)) {
31863
+ Py_DECREF(v);
31864
+ goto raise_neg_overflow;
31865
+ } else if (is_negative) {
31866
+ stepval = PyNumber_Invert(v);
31867
+ Py_DECREF(v);
31868
+ if (unlikely(!stepval))
31869
+ return (long) -1;
31870
+ } else {
31871
+ stepval = v;
31872
+ }
31873
+ v = NULL;
31874
+ val = (long) 0;
31875
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
31876
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
31877
+ for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
31878
+ PyObject *tmp, *digit;
31879
+ long idigit;
31880
+ digit = PyNumber_And(stepval, mask);
31881
+ if (unlikely(!digit)) goto done;
31882
+ idigit = PyLong_AsLong(digit);
31883
+ Py_DECREF(digit);
31884
+ if (unlikely(idigit < 0)) goto done;
31885
+ val |= ((long) idigit) << bits;
31886
+ tmp = PyNumber_Rshift(stepval, shift);
31887
+ if (unlikely(!tmp)) goto done;
31888
+ Py_DECREF(stepval); stepval = tmp;
31889
+ }
31890
+ Py_DECREF(shift); shift = NULL;
31891
+ Py_DECREF(mask); mask = NULL;
31892
+ {
31893
+ long idigit = PyLong_AsLong(stepval);
31894
+ if (unlikely(idigit < 0)) goto done;
31895
+ remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
31896
+ if (unlikely(idigit >= (1L << remaining_bits)))
31897
+ goto raise_overflow;
31898
+ val |= ((long) idigit) << bits;
31899
+ }
31900
+ if (!is_unsigned) {
31901
+ if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
31902
+ goto raise_overflow;
31903
+ if (is_negative)
31904
+ val = ~val;
31905
+ }
31906
+ ret = 0;
31907
+ done:
31908
+ Py_XDECREF(shift);
31909
+ Py_XDECREF(mask);
31910
+ Py_XDECREF(stepval);
31911
+ #endif
31912
+ if (unlikely(ret))
31913
+ return (long) -1;
31307
31914
  return val;
31308
31915
  }
31309
31916
  raise_overflow:
@@ -31338,245 +31945,239 @@ raise_neg_overflow:
31338
31945
  }
31339
31946
  return (char) val;
31340
31947
  }
31341
- } else
31948
+ }
31342
31949
  #endif
31343
- if (likely(PyLong_Check(x))) {
31344
- if (is_unsigned) {
31950
+ if (unlikely(!PyLong_Check(x))) {
31951
+ char val;
31952
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
31953
+ if (!tmp) return (char) -1;
31954
+ val = __Pyx_PyInt_As_char(tmp);
31955
+ Py_DECREF(tmp);
31956
+ return val;
31957
+ }
31958
+ if (is_unsigned) {
31345
31959
  #if CYTHON_USE_PYLONG_INTERNALS
31346
- if (unlikely(__Pyx_PyLong_IsNeg(x))) {
31347
- goto raise_neg_overflow;
31348
- } else if (__Pyx_PyLong_IsCompact(x)) {
31349
- __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
31350
- } else {
31351
- const digit* digits = __Pyx_PyLong_Digits(x);
31352
- assert(__Pyx_PyLong_DigitCount(x) > 1);
31353
- switch (__Pyx_PyLong_DigitCount(x)) {
31354
- case 2:
31355
- if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
31356
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31357
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31358
- } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
31359
- return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
31360
- }
31960
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
31961
+ goto raise_neg_overflow;
31962
+ } else if (__Pyx_PyLong_IsCompact(x)) {
31963
+ __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
31964
+ } else {
31965
+ const digit* digits = __Pyx_PyLong_Digits(x);
31966
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
31967
+ switch (__Pyx_PyLong_DigitCount(x)) {
31968
+ case 2:
31969
+ if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
31970
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31971
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31972
+ } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
31973
+ return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
31361
31974
  }
31362
- break;
31363
- case 3:
31364
- if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
31365
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31366
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31367
- } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
31368
- return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
31369
- }
31975
+ }
31976
+ break;
31977
+ case 3:
31978
+ if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
31979
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31980
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31981
+ } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
31982
+ return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
31370
31983
  }
31371
- break;
31372
- case 4:
31373
- if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
31374
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31375
- __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])))
31376
- } else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
31377
- return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
31378
- }
31984
+ }
31985
+ break;
31986
+ case 4:
31987
+ if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
31988
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31989
+ __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])))
31990
+ } else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
31991
+ return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
31379
31992
  }
31380
- break;
31381
- }
31993
+ }
31994
+ break;
31382
31995
  }
31996
+ }
31383
31997
  #endif
31384
31998
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
31385
- if (unlikely(Py_SIZE(x) < 0)) {
31386
- goto raise_neg_overflow;
31387
- }
31999
+ if (unlikely(Py_SIZE(x) < 0)) {
32000
+ goto raise_neg_overflow;
32001
+ }
31388
32002
  #else
31389
- {
31390
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
31391
- if (unlikely(result < 0))
31392
- return (char) -1;
31393
- if (unlikely(result == 1))
31394
- goto raise_neg_overflow;
31395
- }
32003
+ {
32004
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
32005
+ if (unlikely(result < 0))
32006
+ return (char) -1;
32007
+ if (unlikely(result == 1))
32008
+ goto raise_neg_overflow;
32009
+ }
31396
32010
  #endif
31397
- if ((sizeof(char) <= sizeof(unsigned long))) {
31398
- __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
32011
+ if ((sizeof(char) <= sizeof(unsigned long))) {
32012
+ __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
31399
32013
  #ifdef HAVE_LONG_LONG
31400
- } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
31401
- __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
32014
+ } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
32015
+ __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
31402
32016
  #endif
31403
- }
31404
- } else {
32017
+ }
32018
+ } else {
31405
32019
  #if CYTHON_USE_PYLONG_INTERNALS
31406
- if (__Pyx_PyLong_IsCompact(x)) {
31407
- __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
31408
- } else {
31409
- const digit* digits = __Pyx_PyLong_Digits(x);
31410
- assert(__Pyx_PyLong_DigitCount(x) > 1);
31411
- switch (__Pyx_PyLong_SignedDigitCount(x)) {
31412
- case -2:
31413
- if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
31414
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31415
- __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31416
- } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
31417
- return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31418
- }
32020
+ if (__Pyx_PyLong_IsCompact(x)) {
32021
+ __PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
32022
+ } else {
32023
+ const digit* digits = __Pyx_PyLong_Digits(x);
32024
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
32025
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
32026
+ case -2:
32027
+ if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
32028
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
32029
+ __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
32030
+ } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
32031
+ return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31419
32032
  }
31420
- break;
31421
- case 2:
31422
- if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
31423
- if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
31424
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31425
- } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
31426
- return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31427
- }
32033
+ }
32034
+ break;
32035
+ case 2:
32036
+ if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
32037
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
32038
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
32039
+ } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
32040
+ return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31428
32041
  }
31429
- break;
31430
- case -3:
31431
- if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
31432
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31433
- __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31434
- } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
31435
- return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31436
- }
32042
+ }
32043
+ break;
32044
+ case -3:
32045
+ if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
32046
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
32047
+ __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
32048
+ } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
32049
+ return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31437
32050
  }
31438
- break;
31439
- case 3:
31440
- if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
31441
- if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
31442
- __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
31443
- } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
31444
- return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31445
- }
32051
+ }
32052
+ break;
32053
+ case 3:
32054
+ if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
32055
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
32056
+ __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
32057
+ } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
32058
+ return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31446
32059
  }
31447
- break;
31448
- case -4:
31449
- if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
31450
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31451
- __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])))
31452
- } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
31453
- return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31454
- }
32060
+ }
32061
+ break;
32062
+ case -4:
32063
+ if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
32064
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
32065
+ __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])))
32066
+ } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
32067
+ return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31455
32068
  }
31456
- break;
31457
- case 4:
31458
- if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
31459
- if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
31460
- __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])))
31461
- } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
31462
- return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31463
- }
32069
+ }
32070
+ break;
32071
+ case 4:
32072
+ if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
32073
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
32074
+ __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])))
32075
+ } else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
32076
+ return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
31464
32077
  }
31465
- break;
31466
- }
32078
+ }
32079
+ break;
31467
32080
  }
32081
+ }
31468
32082
  #endif
31469
- if ((sizeof(char) <= sizeof(long))) {
31470
- __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
32083
+ if ((sizeof(char) <= sizeof(long))) {
32084
+ __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
31471
32085
  #ifdef HAVE_LONG_LONG
31472
- } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
31473
- __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
32086
+ } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
32087
+ __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
31474
32088
  #endif
31475
- }
32089
+ }
32090
+ }
32091
+ {
32092
+ char val;
32093
+ int ret = -1;
32094
+ #if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
32095
+ Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
32096
+ x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
32097
+ if (unlikely(bytes_copied == -1)) {
32098
+ } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
32099
+ goto raise_overflow;
32100
+ } else {
32101
+ ret = 0;
32102
+ }
32103
+ #elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
32104
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
32105
+ unsigned char *bytes = (unsigned char *)&val;
32106
+ ret = _PyLong_AsByteArray((PyLongObject *)x,
32107
+ bytes, sizeof(val),
32108
+ is_little, !is_unsigned);
32109
+ #else
32110
+ PyObject *v;
32111
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
32112
+ int bits, remaining_bits, is_negative = 0;
32113
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
32114
+ if (likely(PyLong_CheckExact(x))) {
32115
+ v = __Pyx_NewRef(x);
32116
+ } else {
32117
+ v = PyNumber_Long(x);
32118
+ if (unlikely(!v)) return (char) -1;
32119
+ assert(PyLong_CheckExact(v));
31476
32120
  }
31477
32121
  {
31478
- char val;
31479
- PyObject *v = __Pyx_PyNumber_IntOrLong(x);
31480
- #if PY_MAJOR_VERSION < 3
31481
- if (likely(v) && !PyLong_Check(v)) {
31482
- PyObject *tmp = v;
31483
- v = PyNumber_Long(tmp);
31484
- Py_DECREF(tmp);
31485
- }
31486
- #endif
31487
- if (likely(v)) {
31488
- int ret = -1;
31489
- #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
31490
- int one = 1; int is_little = (int)*(unsigned char *)&one;
31491
- unsigned char *bytes = (unsigned char *)&val;
31492
- ret = _PyLong_AsByteArray((PyLongObject *)v,
31493
- bytes, sizeof(val),
31494
- is_little, !is_unsigned);
31495
- #else
31496
- PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
31497
- int bits, remaining_bits, is_negative = 0;
31498
- long idigit;
31499
- int chunk_size = (sizeof(long) < 8) ? 30 : 62;
31500
- if (unlikely(!PyLong_CheckExact(v))) {
31501
- PyObject *tmp = v;
31502
- v = PyNumber_Long(v);
31503
- assert(PyLong_CheckExact(v));
31504
- Py_DECREF(tmp);
31505
- if (unlikely(!v)) return (char) -1;
31506
- }
31507
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
31508
- if (Py_SIZE(x) == 0)
31509
- return (char) 0;
31510
- is_negative = Py_SIZE(x) < 0;
31511
- #else
31512
- {
31513
- int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
31514
- if (unlikely(result < 0))
31515
- return (char) -1;
31516
- is_negative = result == 1;
31517
- }
31518
- #endif
31519
- if (is_unsigned && unlikely(is_negative)) {
31520
- goto raise_neg_overflow;
31521
- } else if (is_negative) {
31522
- stepval = PyNumber_Invert(v);
31523
- if (unlikely(!stepval))
31524
- return (char) -1;
31525
- } else {
31526
- stepval = __Pyx_NewRef(v);
31527
- }
31528
- val = (char) 0;
31529
- mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
31530
- shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
31531
- for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
31532
- PyObject *tmp, *digit;
31533
- digit = PyNumber_And(stepval, mask);
31534
- if (unlikely(!digit)) goto done;
31535
- idigit = PyLong_AsLong(digit);
31536
- Py_DECREF(digit);
31537
- if (unlikely(idigit < 0)) goto done;
31538
- tmp = PyNumber_Rshift(stepval, shift);
31539
- if (unlikely(!tmp)) goto done;
31540
- Py_DECREF(stepval); stepval = tmp;
31541
- val |= ((char) idigit) << bits;
31542
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
31543
- if (Py_SIZE(stepval) == 0)
31544
- goto unpacking_done;
31545
- #endif
31546
- }
31547
- idigit = PyLong_AsLong(stepval);
31548
- if (unlikely(idigit < 0)) goto done;
31549
- remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
31550
- if (unlikely(idigit >= (1L << remaining_bits)))
31551
- goto raise_overflow;
31552
- val |= ((char) idigit) << bits;
31553
- #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
31554
- unpacking_done:
31555
- #endif
31556
- if (!is_unsigned) {
31557
- if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
31558
- goto raise_overflow;
31559
- if (is_negative)
31560
- val = ~val;
31561
- }
31562
- ret = 0;
31563
- done:
31564
- Py_XDECREF(shift);
31565
- Py_XDECREF(mask);
31566
- Py_XDECREF(stepval);
31567
- #endif
32122
+ int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
32123
+ if (unlikely(result < 0)) {
31568
32124
  Py_DECREF(v);
31569
- if (likely(!ret))
31570
- return val;
32125
+ return (char) -1;
31571
32126
  }
31572
- return (char) -1;
32127
+ is_negative = result == 1;
31573
32128
  }
31574
- } else {
31575
- char val;
31576
- PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
31577
- if (!tmp) return (char) -1;
31578
- val = __Pyx_PyInt_As_char(tmp);
31579
- Py_DECREF(tmp);
32129
+ if (is_unsigned && unlikely(is_negative)) {
32130
+ Py_DECREF(v);
32131
+ goto raise_neg_overflow;
32132
+ } else if (is_negative) {
32133
+ stepval = PyNumber_Invert(v);
32134
+ Py_DECREF(v);
32135
+ if (unlikely(!stepval))
32136
+ return (char) -1;
32137
+ } else {
32138
+ stepval = v;
32139
+ }
32140
+ v = NULL;
32141
+ val = (char) 0;
32142
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
32143
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
32144
+ for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
32145
+ PyObject *tmp, *digit;
32146
+ long idigit;
32147
+ digit = PyNumber_And(stepval, mask);
32148
+ if (unlikely(!digit)) goto done;
32149
+ idigit = PyLong_AsLong(digit);
32150
+ Py_DECREF(digit);
32151
+ if (unlikely(idigit < 0)) goto done;
32152
+ val |= ((char) idigit) << bits;
32153
+ tmp = PyNumber_Rshift(stepval, shift);
32154
+ if (unlikely(!tmp)) goto done;
32155
+ Py_DECREF(stepval); stepval = tmp;
32156
+ }
32157
+ Py_DECREF(shift); shift = NULL;
32158
+ Py_DECREF(mask); mask = NULL;
32159
+ {
32160
+ long idigit = PyLong_AsLong(stepval);
32161
+ if (unlikely(idigit < 0)) goto done;
32162
+ remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
32163
+ if (unlikely(idigit >= (1L << remaining_bits)))
32164
+ goto raise_overflow;
32165
+ val |= ((char) idigit) << bits;
32166
+ }
32167
+ if (!is_unsigned) {
32168
+ if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
32169
+ goto raise_overflow;
32170
+ if (is_negative)
32171
+ val = ~val;
32172
+ }
32173
+ ret = 0;
32174
+ done:
32175
+ Py_XDECREF(shift);
32176
+ Py_XDECREF(mask);
32177
+ Py_XDECREF(stepval);
32178
+ #endif
32179
+ if (unlikely(ret))
32180
+ return (char) -1;
31580
32181
  return val;
31581
32182
  }
31582
32183
  raise_overflow: