scikit-network 0.33.0__cp39-cp39-win_amd64.whl → 0.33.3__cp39-cp39-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of scikit-network might be problematic. Click here for more details.
- scikit_network-0.33.3.dist-info/METADATA +122 -0
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info}/RECORD +44 -44
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info}/WHEEL +1 -1
- sknetwork/classification/diffusion.py +1 -1
- sknetwork/classification/knn.py +1 -1
- sknetwork/classification/metrics.py +3 -3
- sknetwork/classification/pagerank.py +1 -1
- sknetwork/classification/propagation.py +1 -1
- sknetwork/classification/vote.cp39-win_amd64.pyd +0 -0
- sknetwork/classification/vote.cpp +686 -679
- sknetwork/clustering/leiden_core.cp39-win_amd64.pyd +0 -0
- sknetwork/clustering/leiden_core.cpp +715 -704
- sknetwork/clustering/louvain.py +3 -3
- sknetwork/clustering/louvain_core.cp39-win_amd64.pyd +0 -0
- sknetwork/clustering/louvain_core.cpp +715 -704
- sknetwork/clustering/metrics.py +1 -1
- sknetwork/clustering/tests/test_louvain.py +6 -0
- sknetwork/gnn/base_activation.py +1 -0
- sknetwork/gnn/gnn_classifier.py +1 -1
- sknetwork/hierarchy/metrics.py +3 -3
- sknetwork/hierarchy/paris.cp39-win_amd64.pyd +0 -0
- sknetwork/hierarchy/paris.cpp +1777 -1155
- sknetwork/linalg/diteration.cp39-win_amd64.pyd +0 -0
- sknetwork/linalg/diteration.cpp +686 -679
- sknetwork/linalg/push.cp39-win_amd64.pyd +0 -0
- sknetwork/linalg/push.cpp +1771 -1155
- sknetwork/linalg/sparse_lowrank.py +1 -1
- sknetwork/ranking/betweenness.cp39-win_amd64.pyd +0 -0
- sknetwork/ranking/betweenness.cpp +565 -559
- sknetwork/topology/cliques.cp39-win_amd64.pyd +0 -0
- sknetwork/topology/cliques.cpp +1731 -1112
- sknetwork/topology/core.cp39-win_amd64.pyd +0 -0
- sknetwork/topology/core.cpp +1757 -1141
- sknetwork/topology/cycles.py +2 -2
- sknetwork/topology/minheap.cp39-win_amd64.pyd +0 -0
- sknetwork/topology/minheap.cpp +689 -679
- sknetwork/topology/triangles.cp39-win_amd64.pyd +0 -0
- sknetwork/topology/triangles.cpp +439 -434
- sknetwork/topology/weisfeiler_lehman_core.cp39-win_amd64.pyd +0 -0
- sknetwork/topology/weisfeiler_lehman_core.cpp +686 -679
- sknetwork/visualization/graphs.py +1 -1
- scikit_network-0.33.0.dist-info/METADATA +0 -517
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info/licenses}/AUTHORS.rst +0 -0
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info/licenses}/LICENSE +0 -0
- {scikit_network-0.33.0.dist-info → scikit_network-0.33.3.dist-info}/top_level.txt +0 -0
sknetwork/topology/cliques.cpp
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/* Generated by Cython 3.0.
|
|
1
|
+
/* Generated by Cython 3.0.12 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
5
5
|
"distutils": {
|
|
6
6
|
"depends": [
|
|
7
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
8
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
9
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
10
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
11
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
7
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayobject.h",
|
|
8
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\arrayscalars.h",
|
|
9
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarrayobject.h",
|
|
10
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ndarraytypes.h",
|
|
11
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include\\numpy\\ufuncobject.h"
|
|
12
12
|
],
|
|
13
13
|
"extra_compile_args": [
|
|
14
14
|
"/d2FH4-"
|
|
15
15
|
],
|
|
16
16
|
"include_dirs": [
|
|
17
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\
|
|
17
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-ji5gyl3u\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
|
|
18
18
|
],
|
|
19
19
|
"language": "c++",
|
|
20
20
|
"name": "sknetwork.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 "
|
|
53
|
+
#define CYTHON_ABI "3_0_12" __PYX_EXTRA_ABI_MODULE_NAME
|
|
54
54
|
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
|
|
55
55
|
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
|
|
56
|
-
#define CYTHON_HEX_VERSION
|
|
56
|
+
#define CYTHON_HEX_VERSION 0x03000CF0
|
|
57
57
|
#define CYTHON_FUTURE_DIVISION 1
|
|
58
58
|
#include <stddef.h>
|
|
59
59
|
#ifndef offsetof
|
|
@@ -1693,7 +1693,7 @@ typedef struct {
|
|
|
1693
1693
|
|
|
1694
1694
|
/* #### Code section: numeric_typedefs ### */
|
|
1695
1695
|
|
|
1696
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1696
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":770
|
|
1697
1697
|
* # in Cython to enable them only on the right systems.
|
|
1698
1698
|
*
|
|
1699
1699
|
* ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
|
|
@@ -1702,7 +1702,7 @@ typedef struct {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
1704
1704
|
|
|
1705
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1705
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":771
|
|
1706
1706
|
*
|
|
1707
1707
|
* ctypedef npy_int8 int8_t
|
|
1708
1708
|
* ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
|
|
@@ -1711,7 +1711,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
|
1711
1711
|
*/
|
|
1712
1712
|
typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
1713
1713
|
|
|
1714
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1714
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":772
|
|
1715
1715
|
* ctypedef npy_int8 int8_t
|
|
1716
1716
|
* ctypedef npy_int16 int16_t
|
|
1717
1717
|
* ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
|
|
@@ -1720,7 +1720,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
|
1720
1720
|
*/
|
|
1721
1721
|
typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
1722
1722
|
|
|
1723
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1723
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":773
|
|
1724
1724
|
* ctypedef npy_int16 int16_t
|
|
1725
1725
|
* ctypedef npy_int32 int32_t
|
|
1726
1726
|
* ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
|
|
@@ -1729,7 +1729,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
|
1729
1729
|
*/
|
|
1730
1730
|
typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
1731
1731
|
|
|
1732
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1732
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":777
|
|
1733
1733
|
* #ctypedef npy_int128 int128_t
|
|
1734
1734
|
*
|
|
1735
1735
|
* ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
|
|
@@ -1738,7 +1738,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
|
1738
1738
|
*/
|
|
1739
1739
|
typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
1740
1740
|
|
|
1741
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1741
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":778
|
|
1742
1742
|
*
|
|
1743
1743
|
* ctypedef npy_uint8 uint8_t
|
|
1744
1744
|
* ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
|
|
@@ -1747,7 +1747,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
|
1747
1747
|
*/
|
|
1748
1748
|
typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
1749
1749
|
|
|
1750
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1750
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":779
|
|
1751
1751
|
* ctypedef npy_uint8 uint8_t
|
|
1752
1752
|
* ctypedef npy_uint16 uint16_t
|
|
1753
1753
|
* ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
|
|
@@ -1756,7 +1756,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
|
1756
1756
|
*/
|
|
1757
1757
|
typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
1758
1758
|
|
|
1759
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1759
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":780
|
|
1760
1760
|
* ctypedef npy_uint16 uint16_t
|
|
1761
1761
|
* ctypedef npy_uint32 uint32_t
|
|
1762
1762
|
* ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
|
|
@@ -1765,7 +1765,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
|
1765
1765
|
*/
|
|
1766
1766
|
typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
1767
1767
|
|
|
1768
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1768
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":784
|
|
1769
1769
|
* #ctypedef npy_uint128 uint128_t
|
|
1770
1770
|
*
|
|
1771
1771
|
* ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
|
|
@@ -1774,7 +1774,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
|
1774
1774
|
*/
|
|
1775
1775
|
typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
1776
1776
|
|
|
1777
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1777
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":785
|
|
1778
1778
|
*
|
|
1779
1779
|
* ctypedef npy_float32 float32_t
|
|
1780
1780
|
* ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
|
|
@@ -1783,43 +1783,25 @@ typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
|
1783
1783
|
*/
|
|
1784
1784
|
typedef npy_float64 __pyx_t_5numpy_float64_t;
|
|
1785
1785
|
|
|
1786
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1787
|
-
*
|
|
1788
|
-
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
1789
|
-
* ctypedef npy_long int_t # <<<<<<<<<<<<<<
|
|
1790
|
-
* ctypedef npy_longlong longlong_t
|
|
1786
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":792
|
|
1787
|
+
* ctypedef double complex complex128_t
|
|
1791
1788
|
*
|
|
1792
|
-
*/
|
|
1793
|
-
typedef npy_long __pyx_t_5numpy_int_t;
|
|
1794
|
-
|
|
1795
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":755
|
|
1796
|
-
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
1797
|
-
* ctypedef npy_long int_t
|
|
1798
1789
|
* ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
|
|
1799
|
-
*
|
|
1800
|
-
* ctypedef npy_ulong uint_t
|
|
1801
|
-
*/
|
|
1802
|
-
typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
1803
|
-
|
|
1804
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":757
|
|
1805
|
-
* ctypedef npy_longlong longlong_t
|
|
1806
|
-
*
|
|
1807
|
-
* ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
|
|
1808
1790
|
* ctypedef npy_ulonglong ulonglong_t
|
|
1809
1791
|
*
|
|
1810
1792
|
*/
|
|
1811
|
-
typedef
|
|
1793
|
+
typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
1812
1794
|
|
|
1813
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1795
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":793
|
|
1814
1796
|
*
|
|
1815
|
-
* ctypedef
|
|
1797
|
+
* ctypedef npy_longlong longlong_t
|
|
1816
1798
|
* ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
|
|
1817
1799
|
*
|
|
1818
1800
|
* ctypedef npy_intp intp_t
|
|
1819
1801
|
*/
|
|
1820
1802
|
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
1821
1803
|
|
|
1822
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1804
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":795
|
|
1823
1805
|
* ctypedef npy_ulonglong ulonglong_t
|
|
1824
1806
|
*
|
|
1825
1807
|
* ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
|
|
@@ -1828,7 +1810,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
|
1828
1810
|
*/
|
|
1829
1811
|
typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
1830
1812
|
|
|
1831
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1813
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":796
|
|
1832
1814
|
*
|
|
1833
1815
|
* ctypedef npy_intp intp_t
|
|
1834
1816
|
* ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
|
|
@@ -1837,7 +1819,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
|
1837
1819
|
*/
|
|
1838
1820
|
typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
1839
1821
|
|
|
1840
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1822
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":798
|
|
1841
1823
|
* ctypedef npy_uintp uintp_t
|
|
1842
1824
|
*
|
|
1843
1825
|
* ctypedef npy_double float_t # <<<<<<<<<<<<<<
|
|
@@ -1846,7 +1828,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
|
1846
1828
|
*/
|
|
1847
1829
|
typedef npy_double __pyx_t_5numpy_float_t;
|
|
1848
1830
|
|
|
1849
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1831
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":799
|
|
1850
1832
|
*
|
|
1851
1833
|
* ctypedef npy_double float_t
|
|
1852
1834
|
* ctypedef npy_double double_t # <<<<<<<<<<<<<<
|
|
@@ -1855,12 +1837,12 @@ typedef npy_double __pyx_t_5numpy_float_t;
|
|
|
1855
1837
|
*/
|
|
1856
1838
|
typedef npy_double __pyx_t_5numpy_double_t;
|
|
1857
1839
|
|
|
1858
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1840
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":800
|
|
1859
1841
|
* ctypedef npy_double float_t
|
|
1860
1842
|
* ctypedef npy_double double_t
|
|
1861
1843
|
* ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
|
|
1862
1844
|
*
|
|
1863
|
-
* ctypedef
|
|
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 ---*/
|
|
@@ -1897,41 +1891,23 @@ struct __pyx_MemviewEnum_obj;
|
|
|
1897
1891
|
struct __pyx_memoryview_obj;
|
|
1898
1892
|
struct __pyx_memoryviewslice_obj;
|
|
1899
1893
|
|
|
1900
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
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/cp39-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
|
|
1894
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
|
|
1914
1895
|
*
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-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 # <<<<<<<<<<<<<<
|
|
1896
|
+
* # Iterator API added in v1.6
|
|
1897
|
+
* ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil # <<<<<<<<<<<<<<
|
|
1898
|
+
* ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil
|
|
1922
1899
|
*
|
|
1923
|
-
* ctypedef npy_cdouble complex_t
|
|
1924
1900
|
*/
|
|
1925
|
-
typedef
|
|
1901
|
+
typedef int (*__pyx_t_5numpy_NpyIter_IterNextFunc)(NpyIter *);
|
|
1926
1902
|
|
|
1927
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1928
|
-
*
|
|
1903
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1097
|
|
1904
|
+
* # Iterator API added in v1.6
|
|
1905
|
+
* ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil
|
|
1906
|
+
* ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil # <<<<<<<<<<<<<<
|
|
1929
1907
|
*
|
|
1930
|
-
*
|
|
1931
|
-
*
|
|
1932
|
-
* cdef inline object PyArray_MultiIterNew1(a):
|
|
1908
|
+
* cdef extern from "numpy/arrayobject.h":
|
|
1933
1909
|
*/
|
|
1934
|
-
typedef
|
|
1910
|
+
typedef void (*__pyx_t_5numpy_NpyIter_GetMultiIndexFunc)(NpyIter *, npy_intp *);
|
|
1935
1911
|
struct __pyx_defaults;
|
|
1936
1912
|
typedef struct __pyx_defaults __pyx_defaults;
|
|
1937
1913
|
struct __pyx_defaults {
|
|
@@ -2325,7 +2301,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
|
|
|
2325
2301
|
#if !CYTHON_VECTORCALL
|
|
2326
2302
|
#if PY_VERSION_HEX >= 0x03080000
|
|
2327
2303
|
#include "frameobject.h"
|
|
2328
|
-
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
2304
|
+
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
|
|
2329
2305
|
#ifndef Py_BUILD_CORE
|
|
2330
2306
|
#define Py_BUILD_CORE 1
|
|
2331
2307
|
#endif
|
|
@@ -2662,11 +2638,7 @@ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* s
|
|
|
2662
2638
|
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
|
|
2663
2639
|
|
|
2664
2640
|
/* HasAttr.proto */
|
|
2665
|
-
#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
|
|
2666
|
-
#define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n)
|
|
2667
|
-
#else
|
|
2668
2641
|
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
|
|
2669
|
-
#endif
|
|
2670
2642
|
|
|
2671
2643
|
/* MoveIfSupported.proto */
|
|
2672
2644
|
#if CYTHON_USE_CPP_STD_MOVE
|
|
@@ -2765,22 +2737,22 @@ static int __Pyx_MergeVtables(PyTypeObject *type);
|
|
|
2765
2737
|
#endif
|
|
2766
2738
|
|
|
2767
2739
|
/* TypeImport.proto */
|
|
2768
|
-
#ifndef
|
|
2769
|
-
#define
|
|
2740
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2741
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2770
2742
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2771
2743
|
#include <stdalign.h>
|
|
2772
2744
|
#endif
|
|
2773
2745
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2774
|
-
#define
|
|
2746
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s)
|
|
2775
2747
|
#else
|
|
2776
|
-
#define
|
|
2748
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*)
|
|
2777
2749
|
#endif
|
|
2778
|
-
enum
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2750
|
+
enum __Pyx_ImportType_CheckSize_3_0_12 {
|
|
2751
|
+
__Pyx_ImportType_CheckSize_Error_3_0_12 = 0,
|
|
2752
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12 = 1,
|
|
2753
|
+
__Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2
|
|
2782
2754
|
};
|
|
2783
|
-
static PyTypeObject *
|
|
2755
|
+
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
2756
|
#endif
|
|
2785
2757
|
|
|
2786
2758
|
/* FetchSharedCythonModule.proto */
|
|
@@ -3100,6 +3072,44 @@ static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_sho
|
|
|
3100
3072
|
#endif
|
|
3101
3073
|
#endif
|
|
3102
3074
|
|
|
3075
|
+
/* Arithmetic.proto */
|
|
3076
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
3077
|
+
#define __Pyx_c_eq_long__double(a, b) ((a)==(b))
|
|
3078
|
+
#define __Pyx_c_sum_long__double(a, b) ((a)+(b))
|
|
3079
|
+
#define __Pyx_c_diff_long__double(a, b) ((a)-(b))
|
|
3080
|
+
#define __Pyx_c_prod_long__double(a, b) ((a)*(b))
|
|
3081
|
+
#define __Pyx_c_quot_long__double(a, b) ((a)/(b))
|
|
3082
|
+
#define __Pyx_c_neg_long__double(a) (-(a))
|
|
3083
|
+
#ifdef __cplusplus
|
|
3084
|
+
#define __Pyx_c_is_zero_long__double(z) ((z)==(long double)0)
|
|
3085
|
+
#define __Pyx_c_conj_long__double(z) (::std::conj(z))
|
|
3086
|
+
#if 1
|
|
3087
|
+
#define __Pyx_c_abs_long__double(z) (::std::abs(z))
|
|
3088
|
+
#define __Pyx_c_pow_long__double(a, b) (::std::pow(a, b))
|
|
3089
|
+
#endif
|
|
3090
|
+
#else
|
|
3091
|
+
#define __Pyx_c_is_zero_long__double(z) ((z)==0)
|
|
3092
|
+
#define __Pyx_c_conj_long__double(z) (conjl(z))
|
|
3093
|
+
#if 1
|
|
3094
|
+
#define __Pyx_c_abs_long__double(z) (cabsl(z))
|
|
3095
|
+
#define __Pyx_c_pow_long__double(a, b) (cpowl(a, b))
|
|
3096
|
+
#endif
|
|
3097
|
+
#endif
|
|
3098
|
+
#else
|
|
3099
|
+
static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3100
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3101
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3102
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3103
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3104
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex);
|
|
3105
|
+
static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex);
|
|
3106
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex);
|
|
3107
|
+
#if 1
|
|
3108
|
+
static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex);
|
|
3109
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3110
|
+
#endif
|
|
3111
|
+
#endif
|
|
3112
|
+
|
|
3103
3113
|
/* MemviewSliceCopyTemplate.proto */
|
|
3104
3114
|
static __Pyx_memviewslice
|
|
3105
3115
|
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
|
|
@@ -3225,6 +3235,18 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v
|
|
|
3225
3235
|
static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
|
|
3226
3236
|
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
3237
|
static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto*/
|
|
3238
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3239
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3240
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3241
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3242
|
+
static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3243
|
+
static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3244
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3245
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3246
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3247
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3248
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3249
|
+
static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3228
3250
|
static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self); /* proto*/
|
|
3229
3251
|
static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self); /* proto*/
|
|
3230
3252
|
static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self); /* proto*/
|
|
@@ -3466,7 +3488,6 @@ static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate
|
|
|
3466
3488
|
static const char __pyx_k_sknetwork_topology_cliques_pyx[] = "sknetwork\\topology\\cliques.pyx";
|
|
3467
3489
|
static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
|
|
3468
3490
|
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
3491
|
static const char __pyx_k_All_dimensions_preceding_dimensi[] = "All dimensions preceding dimension %d must be indexed and not sliced";
|
|
3471
3492
|
static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
|
|
3472
3493
|
static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
|
|
@@ -3483,7 +3504,8 @@ static const char __pyx_k_The_clique_size_must_be_at_least[] = "The clique size
|
|
|
3483
3504
|
static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object";
|
|
3484
3505
|
static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension ";
|
|
3485
3506
|
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
|
|
3486
|
-
static const char
|
|
3507
|
+
static const char __pyx_k_numpy__core_multiarray_failed_to[] = "numpy._core.multiarray failed to import";
|
|
3508
|
+
static const char __pyx_k_numpy__core_umath_failed_to_impo[] = "numpy._core.umath failed to import";
|
|
3487
3509
|
static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
|
|
3488
3510
|
/* #### Code section: decls ### */
|
|
3489
3511
|
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 +3749,8 @@ typedef struct {
|
|
|
3727
3749
|
PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
|
|
3728
3750
|
PyObject *__pyx_n_s_np;
|
|
3729
3751
|
PyObject *__pyx_n_s_numpy;
|
|
3730
|
-
PyObject *
|
|
3731
|
-
PyObject *
|
|
3752
|
+
PyObject *__pyx_kp_u_numpy__core_multiarray_failed_to;
|
|
3753
|
+
PyObject *__pyx_kp_u_numpy__core_umath_failed_to_impo;
|
|
3732
3754
|
PyObject *__pyx_n_s_obj;
|
|
3733
3755
|
PyObject *__pyx_n_s_object;
|
|
3734
3756
|
PyObject *__pyx_n_s_order;
|
|
@@ -3985,8 +4007,8 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3985
4007
|
Py_CLEAR(clear_module_state->__pyx_kp_s_no_default___reduce___due_to_non);
|
|
3986
4008
|
Py_CLEAR(clear_module_state->__pyx_n_s_np);
|
|
3987
4009
|
Py_CLEAR(clear_module_state->__pyx_n_s_numpy);
|
|
3988
|
-
Py_CLEAR(clear_module_state->
|
|
3989
|
-
Py_CLEAR(clear_module_state->
|
|
4010
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
|
|
4011
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
|
|
3990
4012
|
Py_CLEAR(clear_module_state->__pyx_n_s_obj);
|
|
3991
4013
|
Py_CLEAR(clear_module_state->__pyx_n_s_object);
|
|
3992
4014
|
Py_CLEAR(clear_module_state->__pyx_n_s_order);
|
|
@@ -4221,8 +4243,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4221
4243
|
Py_VISIT(traverse_module_state->__pyx_kp_s_no_default___reduce___due_to_non);
|
|
4222
4244
|
Py_VISIT(traverse_module_state->__pyx_n_s_np);
|
|
4223
4245
|
Py_VISIT(traverse_module_state->__pyx_n_s_numpy);
|
|
4224
|
-
Py_VISIT(traverse_module_state->
|
|
4225
|
-
Py_VISIT(traverse_module_state->
|
|
4246
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
|
|
4247
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
|
|
4226
4248
|
Py_VISIT(traverse_module_state->__pyx_n_s_obj);
|
|
4227
4249
|
Py_VISIT(traverse_module_state->__pyx_n_s_object);
|
|
4228
4250
|
Py_VISIT(traverse_module_state->__pyx_n_s_order);
|
|
@@ -4493,8 +4515,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4493
4515
|
#define __pyx_kp_s_no_default___reduce___due_to_non __pyx_mstate_global->__pyx_kp_s_no_default___reduce___due_to_non
|
|
4494
4516
|
#define __pyx_n_s_np __pyx_mstate_global->__pyx_n_s_np
|
|
4495
4517
|
#define __pyx_n_s_numpy __pyx_mstate_global->__pyx_n_s_numpy
|
|
4496
|
-
#define
|
|
4497
|
-
#define
|
|
4518
|
+
#define __pyx_kp_u_numpy__core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy__core_multiarray_failed_to
|
|
4519
|
+
#define __pyx_kp_u_numpy__core_umath_failed_to_impo __pyx_mstate_global->__pyx_kp_u_numpy__core_umath_failed_to_impo
|
|
4498
4520
|
#define __pyx_n_s_obj __pyx_mstate_global->__pyx_n_s_obj
|
|
4499
4521
|
#define __pyx_n_s_object __pyx_mstate_global->__pyx_n_s_object
|
|
4500
4522
|
#define __pyx_n_s_order __pyx_mstate_global->__pyx_n_s_order
|
|
@@ -4902,10 +4924,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4902
4924
|
PyObject *__pyx_t_4 = NULL;
|
|
4903
4925
|
PyObject *__pyx_t_5 = NULL;
|
|
4904
4926
|
PyObject *__pyx_t_6 = NULL;
|
|
4905
|
-
int __pyx_t_7;
|
|
4927
|
+
unsigned int __pyx_t_7;
|
|
4906
4928
|
char *__pyx_t_8;
|
|
4907
|
-
|
|
4908
|
-
|
|
4929
|
+
int __pyx_t_9;
|
|
4930
|
+
Py_ssize_t __pyx_t_10;
|
|
4931
|
+
Py_UCS4 __pyx_t_11;
|
|
4909
4932
|
int __pyx_lineno = 0;
|
|
4910
4933
|
const char *__pyx_filename = NULL;
|
|
4911
4934
|
int __pyx_clineno = 0;
|
|
@@ -5131,7 +5154,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
5131
5154
|
* if dim <= 0:
|
|
5132
5155
|
* raise ValueError, f"Invalid shape in axis {idx}: {dim}."
|
|
5133
5156
|
*/
|
|
5134
|
-
|
|
5157
|
+
__pyx_t_9 = 0;
|
|
5135
5158
|
__pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4);
|
|
5136
5159
|
__pyx_t_1 = 0;
|
|
5137
5160
|
for (;;) {
|
|
@@ -5148,11 +5171,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
5148
5171
|
__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
5172
|
__Pyx_GOTREF(__pyx_t_5);
|
|
5150
5173
|
#endif
|
|
5151
|
-
|
|
5174
|
+
__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
5175
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
5153
|
-
__pyx_v_dim =
|
|
5154
|
-
__pyx_v_idx =
|
|
5155
|
-
|
|
5176
|
+
__pyx_v_dim = __pyx_t_10;
|
|
5177
|
+
__pyx_v_idx = __pyx_t_9;
|
|
5178
|
+
__pyx_t_9 = (__pyx_t_9 + 1);
|
|
5156
5179
|
|
|
5157
5180
|
/* "View.MemoryView":160
|
|
5158
5181
|
*
|
|
@@ -5173,33 +5196,33 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
5173
5196
|
*/
|
|
5174
5197
|
__pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
5175
5198
|
__Pyx_GOTREF(__pyx_t_5);
|
|
5176
|
-
|
|
5177
|
-
|
|
5199
|
+
__pyx_t_10 = 0;
|
|
5200
|
+
__pyx_t_11 = 127;
|
|
5178
5201
|
__Pyx_INCREF(__pyx_kp_u_Invalid_shape_in_axis);
|
|
5179
|
-
|
|
5202
|
+
__pyx_t_10 += 22;
|
|
5180
5203
|
__Pyx_GIVEREF(__pyx_kp_u_Invalid_shape_in_axis);
|
|
5181
5204
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Invalid_shape_in_axis);
|
|
5182
5205
|
__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
5206
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5184
|
-
|
|
5207
|
+
__pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
|
|
5185
5208
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
5186
5209
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
|
|
5187
5210
|
__pyx_t_6 = 0;
|
|
5188
5211
|
__Pyx_INCREF(__pyx_kp_u_);
|
|
5189
|
-
|
|
5212
|
+
__pyx_t_10 += 2;
|
|
5190
5213
|
__Pyx_GIVEREF(__pyx_kp_u_);
|
|
5191
5214
|
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_);
|
|
5192
5215
|
__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
5216
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5194
|
-
|
|
5217
|
+
__pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
|
|
5195
5218
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
5196
5219
|
PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_6);
|
|
5197
5220
|
__pyx_t_6 = 0;
|
|
5198
5221
|
__Pyx_INCREF(__pyx_kp_u__2);
|
|
5199
|
-
|
|
5222
|
+
__pyx_t_10 += 1;
|
|
5200
5223
|
__Pyx_GIVEREF(__pyx_kp_u__2);
|
|
5201
5224
|
PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__2);
|
|
5202
|
-
__pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 5,
|
|
5225
|
+
__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
5226
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5204
5227
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
5205
5228
|
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_6, 0, 0);
|
|
@@ -5383,7 +5406,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
5383
5406
|
*
|
|
5384
5407
|
* @cname('getbuffer')
|
|
5385
5408
|
*/
|
|
5386
|
-
|
|
5409
|
+
__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
5410
|
|
|
5388
5411
|
/* "View.MemoryView":179
|
|
5389
5412
|
* self.dtype_is_object = format == b'O'
|
|
@@ -8538,7 +8561,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8538
8561
|
*
|
|
8539
8562
|
* if have_slices: # <<<<<<<<<<<<<<
|
|
8540
8563
|
* obj = self.is_slice(value)
|
|
8541
|
-
* if obj:
|
|
8564
|
+
* if obj is not None:
|
|
8542
8565
|
*/
|
|
8543
8566
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 426, __pyx_L1_error)
|
|
8544
8567
|
if (__pyx_t_4) {
|
|
@@ -8547,7 +8570,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8547
8570
|
*
|
|
8548
8571
|
* if have_slices:
|
|
8549
8572
|
* obj = self.is_slice(value) # <<<<<<<<<<<<<<
|
|
8550
|
-
* if obj:
|
|
8573
|
+
* if obj is not None:
|
|
8551
8574
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8552
8575
|
*/
|
|
8553
8576
|
__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 +8581,16 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8558
8581
|
/* "View.MemoryView":428
|
|
8559
8582
|
* if have_slices:
|
|
8560
8583
|
* obj = self.is_slice(value)
|
|
8561
|
-
* if obj: # <<<<<<<<<<<<<<
|
|
8584
|
+
* if obj is not None: # <<<<<<<<<<<<<<
|
|
8562
8585
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8563
8586
|
* else:
|
|
8564
8587
|
*/
|
|
8565
|
-
__pyx_t_4 =
|
|
8588
|
+
__pyx_t_4 = (__pyx_v_obj != Py_None);
|
|
8566
8589
|
if (__pyx_t_4) {
|
|
8567
8590
|
|
|
8568
8591
|
/* "View.MemoryView":429
|
|
8569
8592
|
* obj = self.is_slice(value)
|
|
8570
|
-
* if obj:
|
|
8593
|
+
* if obj is not None:
|
|
8571
8594
|
* self.setitem_slice_assignment(self[index], obj) # <<<<<<<<<<<<<<
|
|
8572
8595
|
* else:
|
|
8573
8596
|
* self.setitem_slice_assign_scalar(self[index], value)
|
|
@@ -8582,7 +8605,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8582
8605
|
/* "View.MemoryView":428
|
|
8583
8606
|
* if have_slices:
|
|
8584
8607
|
* obj = self.is_slice(value)
|
|
8585
|
-
* if obj: # <<<<<<<<<<<<<<
|
|
8608
|
+
* if obj is not None: # <<<<<<<<<<<<<<
|
|
8586
8609
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8587
8610
|
* else:
|
|
8588
8611
|
*/
|
|
@@ -8612,7 +8635,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8612
8635
|
*
|
|
8613
8636
|
* if have_slices: # <<<<<<<<<<<<<<
|
|
8614
8637
|
* obj = self.is_slice(value)
|
|
8615
|
-
* if obj:
|
|
8638
|
+
* if obj is not None:
|
|
8616
8639
|
*/
|
|
8617
8640
|
goto __pyx_L4;
|
|
8618
8641
|
}
|
|
@@ -9320,9 +9343,10 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
|
|
|
9320
9343
|
PyObject *__pyx_t_5 = NULL;
|
|
9321
9344
|
PyObject *__pyx_t_6 = NULL;
|
|
9322
9345
|
PyObject *__pyx_t_7 = NULL;
|
|
9323
|
-
int __pyx_t_8;
|
|
9346
|
+
unsigned int __pyx_t_8;
|
|
9324
9347
|
Py_ssize_t __pyx_t_9;
|
|
9325
9348
|
int __pyx_t_10;
|
|
9349
|
+
int __pyx_t_11;
|
|
9326
9350
|
int __pyx_lineno = 0;
|
|
9327
9351
|
const char *__pyx_filename = NULL;
|
|
9328
9352
|
int __pyx_clineno = 0;
|
|
@@ -9477,11 +9501,11 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
|
|
|
9477
9501
|
__Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_6);
|
|
9478
9502
|
__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
9503
|
__Pyx_GOTREF(__pyx_t_7);
|
|
9480
|
-
|
|
9504
|
+
__pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
|
|
9481
9505
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
9482
9506
|
__Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_6);
|
|
9483
9507
|
__pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
|
|
9484
|
-
if (
|
|
9508
|
+
if (__pyx_t_11) {
|
|
9485
9509
|
__Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
9486
9510
|
if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 498, __pyx_L5_except_error)
|
|
9487
9511
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
@@ -9566,7 +9590,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
|
|
|
9566
9590
|
PyObject *__pyx_t_3 = NULL;
|
|
9567
9591
|
PyObject *__pyx_t_4 = NULL;
|
|
9568
9592
|
PyObject *__pyx_t_5 = NULL;
|
|
9569
|
-
int __pyx_t_6;
|
|
9593
|
+
unsigned int __pyx_t_6;
|
|
9570
9594
|
Py_ssize_t __pyx_t_7;
|
|
9571
9595
|
PyObject *__pyx_t_8 = NULL;
|
|
9572
9596
|
char *__pyx_t_9;
|
|
@@ -18040,7 +18064,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
|
|
|
18040
18064
|
int __pyx_t_2;
|
|
18041
18065
|
PyObject *__pyx_t_3 = NULL;
|
|
18042
18066
|
PyObject *__pyx_t_4 = NULL;
|
|
18043
|
-
int __pyx_t_5;
|
|
18067
|
+
unsigned int __pyx_t_5;
|
|
18044
18068
|
int __pyx_lineno = 0;
|
|
18045
18069
|
const char *__pyx_filename = NULL;
|
|
18046
18070
|
int __pyx_clineno = 0;
|
|
@@ -18222,7 +18246,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
|
|
|
18222
18246
|
PyObject *__pyx_t_5 = NULL;
|
|
18223
18247
|
PyObject *__pyx_t_6 = NULL;
|
|
18224
18248
|
PyObject *__pyx_t_7 = NULL;
|
|
18225
|
-
int __pyx_t_8;
|
|
18249
|
+
unsigned int __pyx_t_8;
|
|
18226
18250
|
int __pyx_lineno = 0;
|
|
18227
18251
|
const char *__pyx_filename = NULL;
|
|
18228
18252
|
int __pyx_clineno = 0;
|
|
@@ -18342,33 +18366,33 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
|
|
|
18342
18366
|
return __pyx_r;
|
|
18343
18367
|
}
|
|
18344
18368
|
|
|
18345
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18369
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":286
|
|
18346
18370
|
*
|
|
18347
18371
|
* @property
|
|
18348
|
-
* cdef inline
|
|
18349
|
-
*
|
|
18350
|
-
*
|
|
18372
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18373
|
+
* return PyDataType_ELSIZE(self)
|
|
18374
|
+
*
|
|
18351
18375
|
*/
|
|
18352
18376
|
|
|
18353
|
-
static CYTHON_INLINE
|
|
18354
|
-
|
|
18377
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) {
|
|
18378
|
+
npy_intp __pyx_r;
|
|
18355
18379
|
|
|
18356
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18357
|
-
*
|
|
18358
|
-
*
|
|
18359
|
-
* return
|
|
18380
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
|
|
18381
|
+
* @property
|
|
18382
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil:
|
|
18383
|
+
* return PyDataType_ELSIZE(self) # <<<<<<<<<<<<<<
|
|
18360
18384
|
*
|
|
18361
18385
|
* @property
|
|
18362
18386
|
*/
|
|
18363
|
-
__pyx_r =
|
|
18387
|
+
__pyx_r = PyDataType_ELSIZE(__pyx_v_self);
|
|
18364
18388
|
goto __pyx_L0;
|
|
18365
18389
|
|
|
18366
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18390
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":286
|
|
18367
18391
|
*
|
|
18368
18392
|
* @property
|
|
18369
|
-
* cdef inline
|
|
18370
|
-
*
|
|
18371
|
-
*
|
|
18393
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18394
|
+
* return PyDataType_ELSIZE(self)
|
|
18395
|
+
*
|
|
18372
18396
|
*/
|
|
18373
18397
|
|
|
18374
18398
|
/* function exit code */
|
|
@@ -18376,109 +18400,151 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
|
|
|
18376
18400
|
return __pyx_r;
|
|
18377
18401
|
}
|
|
18378
18402
|
|
|
18379
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18403
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":290
|
|
18380
18404
|
*
|
|
18381
18405
|
* @property
|
|
18382
|
-
* cdef inline
|
|
18383
|
-
*
|
|
18384
|
-
*
|
|
18406
|
+
* cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18407
|
+
* return PyDataType_ALIGNMENT(self)
|
|
18408
|
+
*
|
|
18385
18409
|
*/
|
|
18386
18410
|
|
|
18387
|
-
static CYTHON_INLINE
|
|
18388
|
-
|
|
18411
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) {
|
|
18412
|
+
npy_intp __pyx_r;
|
|
18413
|
+
|
|
18414
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
|
|
18415
|
+
* @property
|
|
18416
|
+
* cdef inline npy_intp alignment(self) noexcept nogil:
|
|
18417
|
+
* return PyDataType_ALIGNMENT(self) # <<<<<<<<<<<<<<
|
|
18418
|
+
*
|
|
18419
|
+
* # Use fields/names with care as they may be NULL. You must check
|
|
18420
|
+
*/
|
|
18421
|
+
__pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
|
|
18422
|
+
goto __pyx_L0;
|
|
18423
|
+
|
|
18424
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":290
|
|
18425
|
+
*
|
|
18426
|
+
* @property
|
|
18427
|
+
* cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18428
|
+
* return PyDataType_ALIGNMENT(self)
|
|
18429
|
+
*
|
|
18430
|
+
*/
|
|
18431
|
+
|
|
18432
|
+
/* function exit code */
|
|
18433
|
+
__pyx_L0:;
|
|
18434
|
+
return __pyx_r;
|
|
18435
|
+
}
|
|
18436
|
+
|
|
18437
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":296
|
|
18438
|
+
* # for this using PyDataType_HASFIELDS.
|
|
18439
|
+
* @property
|
|
18440
|
+
* cdef inline object fields(self): # <<<<<<<<<<<<<<
|
|
18441
|
+
* return <object>PyDataType_FIELDS(self)
|
|
18442
|
+
*
|
|
18443
|
+
*/
|
|
18444
|
+
|
|
18445
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) {
|
|
18446
|
+
PyObject *__pyx_r = NULL;
|
|
18389
18447
|
__Pyx_RefNannyDeclarations
|
|
18390
|
-
|
|
18391
|
-
__Pyx_RefNannySetupContext("
|
|
18448
|
+
PyObject *__pyx_t_1;
|
|
18449
|
+
__Pyx_RefNannySetupContext("fields", 1);
|
|
18392
18450
|
|
|
18393
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18394
|
-
*
|
|
18395
|
-
*
|
|
18396
|
-
* return <
|
|
18451
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
|
|
18452
|
+
* @property
|
|
18453
|
+
* cdef inline object fields(self):
|
|
18454
|
+
* return <object>PyDataType_FIELDS(self) # <<<<<<<<<<<<<<
|
|
18397
18455
|
*
|
|
18398
18456
|
* @property
|
|
18399
18457
|
*/
|
|
18400
|
-
__Pyx_XDECREF(
|
|
18401
|
-
__pyx_t_1 =
|
|
18402
|
-
__Pyx_INCREF((PyObject *)
|
|
18403
|
-
__pyx_r = ((
|
|
18458
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18459
|
+
__pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
|
|
18460
|
+
__Pyx_INCREF(((PyObject *)__pyx_t_1));
|
|
18461
|
+
__pyx_r = ((PyObject *)__pyx_t_1);
|
|
18404
18462
|
goto __pyx_L0;
|
|
18405
18463
|
|
|
18406
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18407
|
-
*
|
|
18464
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":296
|
|
18465
|
+
* # for this using PyDataType_HASFIELDS.
|
|
18408
18466
|
* @property
|
|
18409
|
-
* cdef inline
|
|
18410
|
-
*
|
|
18411
|
-
*
|
|
18467
|
+
* cdef inline object fields(self): # <<<<<<<<<<<<<<
|
|
18468
|
+
* return <object>PyDataType_FIELDS(self)
|
|
18469
|
+
*
|
|
18412
18470
|
*/
|
|
18413
18471
|
|
|
18414
18472
|
/* function exit code */
|
|
18415
18473
|
__pyx_L0:;
|
|
18416
|
-
__Pyx_XGIVEREF(
|
|
18474
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18417
18475
|
__Pyx_RefNannyFinishContext();
|
|
18418
18476
|
return __pyx_r;
|
|
18419
18477
|
}
|
|
18420
18478
|
|
|
18421
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18479
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":300
|
|
18422
18480
|
*
|
|
18423
18481
|
* @property
|
|
18424
|
-
* cdef inline
|
|
18425
|
-
*
|
|
18426
|
-
*
|
|
18482
|
+
* cdef inline tuple names(self): # <<<<<<<<<<<<<<
|
|
18483
|
+
* return <tuple>PyDataType_NAMES(self)
|
|
18484
|
+
*
|
|
18427
18485
|
*/
|
|
18428
18486
|
|
|
18429
|
-
static CYTHON_INLINE
|
|
18430
|
-
|
|
18487
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) {
|
|
18488
|
+
PyObject *__pyx_r = NULL;
|
|
18489
|
+
__Pyx_RefNannyDeclarations
|
|
18490
|
+
PyObject *__pyx_t_1;
|
|
18491
|
+
__Pyx_RefNannySetupContext("names", 1);
|
|
18431
18492
|
|
|
18432
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18433
|
-
* """Returns the number of dimensions in the array.
|
|
18434
|
-
* """
|
|
18435
|
-
* return PyArray_NDIM(self) # <<<<<<<<<<<<<<
|
|
18436
|
-
*
|
|
18493
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
|
|
18437
18494
|
* @property
|
|
18495
|
+
* cdef inline tuple names(self):
|
|
18496
|
+
* return <tuple>PyDataType_NAMES(self) # <<<<<<<<<<<<<<
|
|
18497
|
+
*
|
|
18498
|
+
* # Use PyDataType_HASSUBARRAY to test whether this field is
|
|
18438
18499
|
*/
|
|
18439
|
-
__pyx_r
|
|
18500
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18501
|
+
__pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
|
|
18502
|
+
__Pyx_INCREF(((PyObject*)__pyx_t_1));
|
|
18503
|
+
__pyx_r = ((PyObject*)__pyx_t_1);
|
|
18440
18504
|
goto __pyx_L0;
|
|
18441
18505
|
|
|
18442
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18506
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":300
|
|
18443
18507
|
*
|
|
18444
18508
|
* @property
|
|
18445
|
-
* cdef inline
|
|
18446
|
-
*
|
|
18447
|
-
*
|
|
18509
|
+
* cdef inline tuple names(self): # <<<<<<<<<<<<<<
|
|
18510
|
+
* return <tuple>PyDataType_NAMES(self)
|
|
18511
|
+
*
|
|
18448
18512
|
*/
|
|
18449
18513
|
|
|
18450
18514
|
/* function exit code */
|
|
18451
18515
|
__pyx_L0:;
|
|
18516
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18517
|
+
__Pyx_RefNannyFinishContext();
|
|
18452
18518
|
return __pyx_r;
|
|
18453
18519
|
}
|
|
18454
18520
|
|
|
18455
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18456
|
-
*
|
|
18521
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":307
|
|
18522
|
+
* # this field via the inline helper method PyDataType_SHAPE.
|
|
18457
18523
|
* @property
|
|
18458
|
-
* cdef inline
|
|
18459
|
-
*
|
|
18460
|
-
*
|
|
18524
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18525
|
+
* return PyDataType_SUBARRAY(self)
|
|
18526
|
+
*
|
|
18461
18527
|
*/
|
|
18462
18528
|
|
|
18463
|
-
static CYTHON_INLINE
|
|
18464
|
-
|
|
18529
|
+
static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) {
|
|
18530
|
+
PyArray_ArrayDescr *__pyx_r;
|
|
18465
18531
|
|
|
18466
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18467
|
-
*
|
|
18468
|
-
*
|
|
18469
|
-
* return
|
|
18532
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
|
|
18533
|
+
* @property
|
|
18534
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:
|
|
18535
|
+
* return PyDataType_SUBARRAY(self) # <<<<<<<<<<<<<<
|
|
18470
18536
|
*
|
|
18471
18537
|
* @property
|
|
18472
18538
|
*/
|
|
18473
|
-
__pyx_r =
|
|
18539
|
+
__pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
|
|
18474
18540
|
goto __pyx_L0;
|
|
18475
18541
|
|
|
18476
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18477
|
-
*
|
|
18542
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":307
|
|
18543
|
+
* # this field via the inline helper method PyDataType_SHAPE.
|
|
18478
18544
|
* @property
|
|
18479
|
-
* cdef inline
|
|
18480
|
-
*
|
|
18481
|
-
*
|
|
18545
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18546
|
+
* return PyDataType_SUBARRAY(self)
|
|
18547
|
+
*
|
|
18482
18548
|
*/
|
|
18483
18549
|
|
|
18484
18550
|
/* function exit code */
|
|
@@ -18486,33 +18552,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec
|
|
|
18486
18552
|
return __pyx_r;
|
|
18487
18553
|
}
|
|
18488
18554
|
|
|
18489
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18555
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":311
|
|
18490
18556
|
*
|
|
18491
18557
|
* @property
|
|
18492
|
-
* cdef inline
|
|
18493
|
-
* """
|
|
18494
|
-
*
|
|
18558
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18559
|
+
* """The data types flags."""
|
|
18560
|
+
* return PyDataType_FLAGS(self)
|
|
18495
18561
|
*/
|
|
18496
18562
|
|
|
18497
|
-
static CYTHON_INLINE
|
|
18498
|
-
|
|
18563
|
+
static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self) {
|
|
18564
|
+
npy_uint64 __pyx_r;
|
|
18499
18565
|
|
|
18500
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18501
|
-
*
|
|
18502
|
-
* """
|
|
18503
|
-
* return
|
|
18566
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":313
|
|
18567
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil:
|
|
18568
|
+
* """The data types flags."""
|
|
18569
|
+
* return PyDataType_FLAGS(self) # <<<<<<<<<<<<<<
|
|
18570
|
+
*
|
|
18504
18571
|
*
|
|
18505
|
-
* @property
|
|
18506
18572
|
*/
|
|
18507
|
-
__pyx_r =
|
|
18573
|
+
__pyx_r = PyDataType_FLAGS(__pyx_v_self);
|
|
18508
18574
|
goto __pyx_L0;
|
|
18509
18575
|
|
|
18510
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18576
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":311
|
|
18511
18577
|
*
|
|
18512
18578
|
* @property
|
|
18513
|
-
* cdef inline
|
|
18514
|
-
* """
|
|
18515
|
-
*
|
|
18579
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18580
|
+
* """The data types flags."""
|
|
18581
|
+
* return PyDataType_FLAGS(self)
|
|
18516
18582
|
*/
|
|
18517
18583
|
|
|
18518
18584
|
/* function exit code */
|
|
@@ -18520,33 +18586,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
|
|
|
18520
18586
|
return __pyx_r;
|
|
18521
18587
|
}
|
|
18522
18588
|
|
|
18523
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18589
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":323
|
|
18524
18590
|
*
|
|
18525
18591
|
* @property
|
|
18526
|
-
* cdef inline
|
|
18527
|
-
* """
|
|
18528
|
-
*
|
|
18592
|
+
* cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18593
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18594
|
+
* return PyArray_MultiIter_NUMITER(self)
|
|
18529
18595
|
*/
|
|
18530
18596
|
|
|
18531
|
-
static CYTHON_INLINE
|
|
18532
|
-
|
|
18597
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18598
|
+
int __pyx_r;
|
|
18533
18599
|
|
|
18534
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18535
|
-
*
|
|
18536
|
-
* """
|
|
18537
|
-
* return
|
|
18600
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":325
|
|
18601
|
+
* cdef inline int numiter(self) noexcept nogil:
|
|
18602
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18603
|
+
* return PyArray_MultiIter_NUMITER(self) # <<<<<<<<<<<<<<
|
|
18538
18604
|
*
|
|
18539
18605
|
* @property
|
|
18540
18606
|
*/
|
|
18541
|
-
__pyx_r =
|
|
18607
|
+
__pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
|
|
18542
18608
|
goto __pyx_L0;
|
|
18543
18609
|
|
|
18544
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18610
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":323
|
|
18545
18611
|
*
|
|
18546
18612
|
* @property
|
|
18547
|
-
* cdef inline
|
|
18548
|
-
* """
|
|
18549
|
-
*
|
|
18613
|
+
* cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18614
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18615
|
+
* return PyArray_MultiIter_NUMITER(self)
|
|
18550
18616
|
*/
|
|
18551
18617
|
|
|
18552
18618
|
/* function exit code */
|
|
@@ -18554,33 +18620,33 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
|
|
|
18554
18620
|
return __pyx_r;
|
|
18555
18621
|
}
|
|
18556
18622
|
|
|
18557
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18623
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":328
|
|
18558
18624
|
*
|
|
18559
18625
|
* @property
|
|
18560
|
-
* cdef inline
|
|
18561
|
-
* """The
|
|
18562
|
-
*
|
|
18626
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18627
|
+
* """The total broadcasted size."""
|
|
18628
|
+
* return PyArray_MultiIter_SIZE(self)
|
|
18563
18629
|
*/
|
|
18564
18630
|
|
|
18565
|
-
static CYTHON_INLINE
|
|
18566
|
-
|
|
18631
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18632
|
+
npy_intp __pyx_r;
|
|
18567
18633
|
|
|
18568
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18569
|
-
*
|
|
18570
|
-
* """
|
|
18571
|
-
* return
|
|
18634
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":330
|
|
18635
|
+
* cdef inline npy_intp size(self) noexcept nogil:
|
|
18636
|
+
* """The total broadcasted size."""
|
|
18637
|
+
* return PyArray_MultiIter_SIZE(self) # <<<<<<<<<<<<<<
|
|
18572
18638
|
*
|
|
18573
|
-
*
|
|
18639
|
+
* @property
|
|
18574
18640
|
*/
|
|
18575
|
-
__pyx_r =
|
|
18641
|
+
__pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
|
|
18576
18642
|
goto __pyx_L0;
|
|
18577
18643
|
|
|
18578
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18644
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":328
|
|
18579
18645
|
*
|
|
18580
18646
|
* @property
|
|
18581
|
-
* cdef inline
|
|
18582
|
-
* """The
|
|
18583
|
-
*
|
|
18647
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18648
|
+
* """The total broadcasted size."""
|
|
18649
|
+
* return PyArray_MultiIter_SIZE(self)
|
|
18584
18650
|
*/
|
|
18585
18651
|
|
|
18586
18652
|
/* function exit code */
|
|
@@ -18588,111 +18654,493 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
|
|
|
18588
18654
|
return __pyx_r;
|
|
18589
18655
|
}
|
|
18590
18656
|
|
|
18591
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18592
|
-
* ctypedef npy_cdouble complex_t
|
|
18593
|
-
*
|
|
18594
|
-
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18595
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18657
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":333
|
|
18596
18658
|
*
|
|
18659
|
+
* @property
|
|
18660
|
+
* cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18661
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18662
|
+
* return PyArray_MultiIter_INDEX(self)
|
|
18597
18663
|
*/
|
|
18598
18664
|
|
|
18599
|
-
static CYTHON_INLINE
|
|
18600
|
-
|
|
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);
|
|
18665
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18666
|
+
npy_intp __pyx_r;
|
|
18607
18667
|
|
|
18608
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18609
|
-
*
|
|
18610
|
-
*
|
|
18611
|
-
*
|
|
18668
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":335
|
|
18669
|
+
* cdef inline npy_intp index(self) noexcept nogil:
|
|
18670
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18671
|
+
* return PyArray_MultiIter_INDEX(self) # <<<<<<<<<<<<<<
|
|
18612
18672
|
*
|
|
18613
|
-
*
|
|
18673
|
+
* @property
|
|
18614
18674
|
*/
|
|
18615
|
-
|
|
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;
|
|
18675
|
+
__pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
|
|
18620
18676
|
goto __pyx_L0;
|
|
18621
18677
|
|
|
18622
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18623
|
-
* ctypedef npy_cdouble complex_t
|
|
18624
|
-
*
|
|
18625
|
-
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18626
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18678
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":333
|
|
18627
18679
|
*
|
|
18680
|
+
* @property
|
|
18681
|
+
* cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18682
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18683
|
+
* return PyArray_MultiIter_INDEX(self)
|
|
18628
18684
|
*/
|
|
18629
18685
|
|
|
18630
18686
|
/* 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
18687
|
__pyx_L0:;
|
|
18636
|
-
__Pyx_XGIVEREF(__pyx_r);
|
|
18637
|
-
__Pyx_RefNannyFinishContext();
|
|
18638
18688
|
return __pyx_r;
|
|
18639
18689
|
}
|
|
18640
18690
|
|
|
18641
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
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)
|
|
18691
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":338
|
|
18646
18692
|
*
|
|
18693
|
+
* @property
|
|
18694
|
+
* cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18695
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18696
|
+
* return PyArray_MultiIter_NDIM(self)
|
|
18647
18697
|
*/
|
|
18648
18698
|
|
|
18649
|
-
static CYTHON_INLINE
|
|
18650
|
-
|
|
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);
|
|
18699
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18700
|
+
int __pyx_r;
|
|
18657
18701
|
|
|
18658
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18659
|
-
*
|
|
18660
|
-
*
|
|
18661
|
-
*
|
|
18702
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":340
|
|
18703
|
+
* cdef inline int nd(self) noexcept nogil:
|
|
18704
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18705
|
+
* return PyArray_MultiIter_NDIM(self) # <<<<<<<<<<<<<<
|
|
18662
18706
|
*
|
|
18663
|
-
*
|
|
18707
|
+
* @property
|
|
18664
18708
|
*/
|
|
18665
|
-
|
|
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;
|
|
18709
|
+
__pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
|
|
18670
18710
|
goto __pyx_L0;
|
|
18671
18711
|
|
|
18672
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
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)
|
|
18712
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":338
|
|
18677
18713
|
*
|
|
18714
|
+
* @property
|
|
18715
|
+
* cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18716
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18717
|
+
* return PyArray_MultiIter_NDIM(self)
|
|
18678
18718
|
*/
|
|
18679
18719
|
|
|
18680
18720
|
/* 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
18721
|
__pyx_L0:;
|
|
18686
|
-
__Pyx_XGIVEREF(__pyx_r);
|
|
18687
|
-
__Pyx_RefNannyFinishContext();
|
|
18688
18722
|
return __pyx_r;
|
|
18689
18723
|
}
|
|
18690
18724
|
|
|
18691
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18692
|
-
*
|
|
18693
|
-
*
|
|
18694
|
-
*
|
|
18695
|
-
*
|
|
18725
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":343
|
|
18726
|
+
*
|
|
18727
|
+
* @property
|
|
18728
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18729
|
+
* """The shape of the broadcasted result."""
|
|
18730
|
+
* return PyArray_MultiIter_DIMS(self)
|
|
18731
|
+
*/
|
|
18732
|
+
|
|
18733
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18734
|
+
npy_intp *__pyx_r;
|
|
18735
|
+
|
|
18736
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":345
|
|
18737
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil:
|
|
18738
|
+
* """The shape of the broadcasted result."""
|
|
18739
|
+
* return PyArray_MultiIter_DIMS(self) # <<<<<<<<<<<<<<
|
|
18740
|
+
*
|
|
18741
|
+
* @property
|
|
18742
|
+
*/
|
|
18743
|
+
__pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
|
|
18744
|
+
goto __pyx_L0;
|
|
18745
|
+
|
|
18746
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":343
|
|
18747
|
+
*
|
|
18748
|
+
* @property
|
|
18749
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18750
|
+
* """The shape of the broadcasted result."""
|
|
18751
|
+
* return PyArray_MultiIter_DIMS(self)
|
|
18752
|
+
*/
|
|
18753
|
+
|
|
18754
|
+
/* function exit code */
|
|
18755
|
+
__pyx_L0:;
|
|
18756
|
+
return __pyx_r;
|
|
18757
|
+
}
|
|
18758
|
+
|
|
18759
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":348
|
|
18760
|
+
*
|
|
18761
|
+
* @property
|
|
18762
|
+
* cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18763
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18764
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18765
|
+
*/
|
|
18766
|
+
|
|
18767
|
+
static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18768
|
+
void **__pyx_r;
|
|
18769
|
+
|
|
18770
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":351
|
|
18771
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18772
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18773
|
+
* return PyArray_MultiIter_ITERS(self) # <<<<<<<<<<<<<<
|
|
18774
|
+
*
|
|
18775
|
+
*
|
|
18776
|
+
*/
|
|
18777
|
+
__pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
|
|
18778
|
+
goto __pyx_L0;
|
|
18779
|
+
|
|
18780
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":348
|
|
18781
|
+
*
|
|
18782
|
+
* @property
|
|
18783
|
+
* cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18784
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18785
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18786
|
+
*/
|
|
18787
|
+
|
|
18788
|
+
/* function exit code */
|
|
18789
|
+
__pyx_L0:;
|
|
18790
|
+
return __pyx_r;
|
|
18791
|
+
}
|
|
18792
|
+
|
|
18793
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":366
|
|
18794
|
+
*
|
|
18795
|
+
* @property
|
|
18796
|
+
* cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18797
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18798
|
+
* """
|
|
18799
|
+
*/
|
|
18800
|
+
|
|
18801
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
|
|
18802
|
+
PyObject *__pyx_r;
|
|
18803
|
+
|
|
18804
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":369
|
|
18805
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18806
|
+
* """
|
|
18807
|
+
* return PyArray_BASE(self) # <<<<<<<<<<<<<<
|
|
18808
|
+
*
|
|
18809
|
+
* @property
|
|
18810
|
+
*/
|
|
18811
|
+
__pyx_r = PyArray_BASE(__pyx_v_self);
|
|
18812
|
+
goto __pyx_L0;
|
|
18813
|
+
|
|
18814
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":366
|
|
18815
|
+
*
|
|
18816
|
+
* @property
|
|
18817
|
+
* cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18818
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18819
|
+
* """
|
|
18820
|
+
*/
|
|
18821
|
+
|
|
18822
|
+
/* function exit code */
|
|
18823
|
+
__pyx_L0:;
|
|
18824
|
+
return __pyx_r;
|
|
18825
|
+
}
|
|
18826
|
+
|
|
18827
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":372
|
|
18828
|
+
*
|
|
18829
|
+
* @property
|
|
18830
|
+
* cdef inline dtype descr(self): # <<<<<<<<<<<<<<
|
|
18831
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18832
|
+
* """
|
|
18833
|
+
*/
|
|
18834
|
+
|
|
18835
|
+
static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
|
|
18836
|
+
PyArray_Descr *__pyx_r = NULL;
|
|
18837
|
+
__Pyx_RefNannyDeclarations
|
|
18838
|
+
PyArray_Descr *__pyx_t_1;
|
|
18839
|
+
__Pyx_RefNannySetupContext("descr", 1);
|
|
18840
|
+
|
|
18841
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":375
|
|
18842
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18843
|
+
* """
|
|
18844
|
+
* return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
|
|
18845
|
+
*
|
|
18846
|
+
* @property
|
|
18847
|
+
*/
|
|
18848
|
+
__Pyx_XDECREF((PyObject *)__pyx_r);
|
|
18849
|
+
__pyx_t_1 = PyArray_DESCR(__pyx_v_self);
|
|
18850
|
+
__Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
|
|
18851
|
+
__pyx_r = ((PyArray_Descr *)__pyx_t_1);
|
|
18852
|
+
goto __pyx_L0;
|
|
18853
|
+
|
|
18854
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":372
|
|
18855
|
+
*
|
|
18856
|
+
* @property
|
|
18857
|
+
* cdef inline dtype descr(self): # <<<<<<<<<<<<<<
|
|
18858
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18859
|
+
* """
|
|
18860
|
+
*/
|
|
18861
|
+
|
|
18862
|
+
/* function exit code */
|
|
18863
|
+
__pyx_L0:;
|
|
18864
|
+
__Pyx_XGIVEREF((PyObject *)__pyx_r);
|
|
18865
|
+
__Pyx_RefNannyFinishContext();
|
|
18866
|
+
return __pyx_r;
|
|
18867
|
+
}
|
|
18868
|
+
|
|
18869
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":378
|
|
18870
|
+
*
|
|
18871
|
+
* @property
|
|
18872
|
+
* cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18873
|
+
* """Returns the number of dimensions in the array.
|
|
18874
|
+
* """
|
|
18875
|
+
*/
|
|
18876
|
+
|
|
18877
|
+
static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
|
|
18878
|
+
int __pyx_r;
|
|
18879
|
+
|
|
18880
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":381
|
|
18881
|
+
* """Returns the number of dimensions in the array.
|
|
18882
|
+
* """
|
|
18883
|
+
* return PyArray_NDIM(self) # <<<<<<<<<<<<<<
|
|
18884
|
+
*
|
|
18885
|
+
* @property
|
|
18886
|
+
*/
|
|
18887
|
+
__pyx_r = PyArray_NDIM(__pyx_v_self);
|
|
18888
|
+
goto __pyx_L0;
|
|
18889
|
+
|
|
18890
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":378
|
|
18891
|
+
*
|
|
18892
|
+
* @property
|
|
18893
|
+
* cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18894
|
+
* """Returns the number of dimensions in the array.
|
|
18895
|
+
* """
|
|
18896
|
+
*/
|
|
18897
|
+
|
|
18898
|
+
/* function exit code */
|
|
18899
|
+
__pyx_L0:;
|
|
18900
|
+
return __pyx_r;
|
|
18901
|
+
}
|
|
18902
|
+
|
|
18903
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":384
|
|
18904
|
+
*
|
|
18905
|
+
* @property
|
|
18906
|
+
* cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18907
|
+
* """Returns a pointer to the dimensions/shape of the array.
|
|
18908
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18909
|
+
*/
|
|
18910
|
+
|
|
18911
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
|
|
18912
|
+
npy_intp *__pyx_r;
|
|
18913
|
+
|
|
18914
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":389
|
|
18915
|
+
* Can return NULL for 0-dimensional arrays.
|
|
18916
|
+
* """
|
|
18917
|
+
* return PyArray_DIMS(self) # <<<<<<<<<<<<<<
|
|
18918
|
+
*
|
|
18919
|
+
* @property
|
|
18920
|
+
*/
|
|
18921
|
+
__pyx_r = PyArray_DIMS(__pyx_v_self);
|
|
18922
|
+
goto __pyx_L0;
|
|
18923
|
+
|
|
18924
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":384
|
|
18925
|
+
*
|
|
18926
|
+
* @property
|
|
18927
|
+
* cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18928
|
+
* """Returns a pointer to the dimensions/shape of the array.
|
|
18929
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18930
|
+
*/
|
|
18931
|
+
|
|
18932
|
+
/* function exit code */
|
|
18933
|
+
__pyx_L0:;
|
|
18934
|
+
return __pyx_r;
|
|
18935
|
+
}
|
|
18936
|
+
|
|
18937
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":392
|
|
18938
|
+
*
|
|
18939
|
+
* @property
|
|
18940
|
+
* cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18941
|
+
* """Returns a pointer to the strides of the array.
|
|
18942
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18943
|
+
*/
|
|
18944
|
+
|
|
18945
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
|
|
18946
|
+
npy_intp *__pyx_r;
|
|
18947
|
+
|
|
18948
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":396
|
|
18949
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18950
|
+
* """
|
|
18951
|
+
* return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
|
|
18952
|
+
*
|
|
18953
|
+
* @property
|
|
18954
|
+
*/
|
|
18955
|
+
__pyx_r = PyArray_STRIDES(__pyx_v_self);
|
|
18956
|
+
goto __pyx_L0;
|
|
18957
|
+
|
|
18958
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":392
|
|
18959
|
+
*
|
|
18960
|
+
* @property
|
|
18961
|
+
* cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18962
|
+
* """Returns a pointer to the strides of the array.
|
|
18963
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18964
|
+
*/
|
|
18965
|
+
|
|
18966
|
+
/* function exit code */
|
|
18967
|
+
__pyx_L0:;
|
|
18968
|
+
return __pyx_r;
|
|
18969
|
+
}
|
|
18970
|
+
|
|
18971
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":399
|
|
18972
|
+
*
|
|
18973
|
+
* @property
|
|
18974
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18975
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18976
|
+
* """
|
|
18977
|
+
*/
|
|
18978
|
+
|
|
18979
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
|
|
18980
|
+
npy_intp __pyx_r;
|
|
18981
|
+
|
|
18982
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":402
|
|
18983
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18984
|
+
* """
|
|
18985
|
+
* return PyArray_SIZE(self) # <<<<<<<<<<<<<<
|
|
18986
|
+
*
|
|
18987
|
+
* @property
|
|
18988
|
+
*/
|
|
18989
|
+
__pyx_r = PyArray_SIZE(__pyx_v_self);
|
|
18990
|
+
goto __pyx_L0;
|
|
18991
|
+
|
|
18992
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":399
|
|
18993
|
+
*
|
|
18994
|
+
* @property
|
|
18995
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18996
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18997
|
+
* """
|
|
18998
|
+
*/
|
|
18999
|
+
|
|
19000
|
+
/* function exit code */
|
|
19001
|
+
__pyx_L0:;
|
|
19002
|
+
return __pyx_r;
|
|
19003
|
+
}
|
|
19004
|
+
|
|
19005
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":405
|
|
19006
|
+
*
|
|
19007
|
+
* @property
|
|
19008
|
+
* cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19009
|
+
* """The pointer to the data buffer as a char*.
|
|
19010
|
+
* This is provided for legacy reasons to avoid direct struct field access.
|
|
19011
|
+
*/
|
|
19012
|
+
|
|
19013
|
+
static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
|
|
19014
|
+
char *__pyx_r;
|
|
19015
|
+
|
|
19016
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":411
|
|
19017
|
+
* of `PyArray_DATA()` instead, which returns a 'void*'.
|
|
19018
|
+
* """
|
|
19019
|
+
* return PyArray_BYTES(self) # <<<<<<<<<<<<<<
|
|
19020
|
+
*
|
|
19021
|
+
*
|
|
19022
|
+
*/
|
|
19023
|
+
__pyx_r = PyArray_BYTES(__pyx_v_self);
|
|
19024
|
+
goto __pyx_L0;
|
|
19025
|
+
|
|
19026
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":405
|
|
19027
|
+
*
|
|
19028
|
+
* @property
|
|
19029
|
+
* cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19030
|
+
* """The pointer to the data buffer as a char*.
|
|
19031
|
+
* This is provided for legacy reasons to avoid direct struct field access.
|
|
19032
|
+
*/
|
|
19033
|
+
|
|
19034
|
+
/* function exit code */
|
|
19035
|
+
__pyx_L0:;
|
|
19036
|
+
return __pyx_r;
|
|
19037
|
+
}
|
|
19038
|
+
|
|
19039
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":807
|
|
19040
|
+
* ctypedef long double complex clongdouble_t
|
|
19041
|
+
*
|
|
19042
|
+
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
19043
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
19044
|
+
*
|
|
19045
|
+
*/
|
|
19046
|
+
|
|
19047
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
|
|
19048
|
+
PyObject *__pyx_r = NULL;
|
|
19049
|
+
__Pyx_RefNannyDeclarations
|
|
19050
|
+
PyObject *__pyx_t_1 = NULL;
|
|
19051
|
+
int __pyx_lineno = 0;
|
|
19052
|
+
const char *__pyx_filename = NULL;
|
|
19053
|
+
int __pyx_clineno = 0;
|
|
19054
|
+
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
|
|
19055
|
+
|
|
19056
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":808
|
|
19057
|
+
*
|
|
19058
|
+
* cdef inline object PyArray_MultiIterNew1(a):
|
|
19059
|
+
* return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
|
|
19060
|
+
*
|
|
19061
|
+
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
19062
|
+
*/
|
|
19063
|
+
__Pyx_XDECREF(__pyx_r);
|
|
19064
|
+
__pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 808, __pyx_L1_error)
|
|
19065
|
+
__Pyx_GOTREF(__pyx_t_1);
|
|
19066
|
+
__pyx_r = __pyx_t_1;
|
|
19067
|
+
__pyx_t_1 = 0;
|
|
19068
|
+
goto __pyx_L0;
|
|
19069
|
+
|
|
19070
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":807
|
|
19071
|
+
* ctypedef long double complex clongdouble_t
|
|
19072
|
+
*
|
|
19073
|
+
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
19074
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
19075
|
+
*
|
|
19076
|
+
*/
|
|
19077
|
+
|
|
19078
|
+
/* function exit code */
|
|
19079
|
+
__pyx_L1_error:;
|
|
19080
|
+
__Pyx_XDECREF(__pyx_t_1);
|
|
19081
|
+
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
19082
|
+
__pyx_r = 0;
|
|
19083
|
+
__pyx_L0:;
|
|
19084
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
19085
|
+
__Pyx_RefNannyFinishContext();
|
|
19086
|
+
return __pyx_r;
|
|
19087
|
+
}
|
|
19088
|
+
|
|
19089
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
|
|
19090
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
19091
|
+
*
|
|
19092
|
+
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
19093
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
19094
|
+
*
|
|
19095
|
+
*/
|
|
19096
|
+
|
|
19097
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
|
|
19098
|
+
PyObject *__pyx_r = NULL;
|
|
19099
|
+
__Pyx_RefNannyDeclarations
|
|
19100
|
+
PyObject *__pyx_t_1 = NULL;
|
|
19101
|
+
int __pyx_lineno = 0;
|
|
19102
|
+
const char *__pyx_filename = NULL;
|
|
19103
|
+
int __pyx_clineno = 0;
|
|
19104
|
+
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
|
|
19105
|
+
|
|
19106
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":811
|
|
19107
|
+
*
|
|
19108
|
+
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
19109
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
|
|
19110
|
+
*
|
|
19111
|
+
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
19112
|
+
*/
|
|
19113
|
+
__Pyx_XDECREF(__pyx_r);
|
|
19114
|
+
__pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 811, __pyx_L1_error)
|
|
19115
|
+
__Pyx_GOTREF(__pyx_t_1);
|
|
19116
|
+
__pyx_r = __pyx_t_1;
|
|
19117
|
+
__pyx_t_1 = 0;
|
|
19118
|
+
goto __pyx_L0;
|
|
19119
|
+
|
|
19120
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
|
|
19121
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
19122
|
+
*
|
|
19123
|
+
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
19124
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
19125
|
+
*
|
|
19126
|
+
*/
|
|
19127
|
+
|
|
19128
|
+
/* function exit code */
|
|
19129
|
+
__pyx_L1_error:;
|
|
19130
|
+
__Pyx_XDECREF(__pyx_t_1);
|
|
19131
|
+
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
19132
|
+
__pyx_r = 0;
|
|
19133
|
+
__pyx_L0:;
|
|
19134
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
19135
|
+
__Pyx_RefNannyFinishContext();
|
|
19136
|
+
return __pyx_r;
|
|
19137
|
+
}
|
|
19138
|
+
|
|
19139
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
|
|
19140
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
19141
|
+
*
|
|
19142
|
+
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
19143
|
+
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18696
19144
|
*
|
|
18697
19145
|
*/
|
|
18698
19146
|
|
|
@@ -18705,7 +19153,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18705
19153
|
int __pyx_clineno = 0;
|
|
18706
19154
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);
|
|
18707
19155
|
|
|
18708
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19156
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":814
|
|
18709
19157
|
*
|
|
18710
19158
|
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
18711
19159
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
|
|
@@ -18713,13 +19161,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18713
19161
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
18714
19162
|
*/
|
|
18715
19163
|
__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,
|
|
19164
|
+
__pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 814, __pyx_L1_error)
|
|
18717
19165
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18718
19166
|
__pyx_r = __pyx_t_1;
|
|
18719
19167
|
__pyx_t_1 = 0;
|
|
18720
19168
|
goto __pyx_L0;
|
|
18721
19169
|
|
|
18722
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19170
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
|
|
18723
19171
|
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18724
19172
|
*
|
|
18725
19173
|
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
@@ -18738,7 +19186,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18738
19186
|
return __pyx_r;
|
|
18739
19187
|
}
|
|
18740
19188
|
|
|
18741
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19189
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
|
|
18742
19190
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18743
19191
|
*
|
|
18744
19192
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -18755,7 +19203,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18755
19203
|
int __pyx_clineno = 0;
|
|
18756
19204
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);
|
|
18757
19205
|
|
|
18758
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19206
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":817
|
|
18759
19207
|
*
|
|
18760
19208
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
18761
19209
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
|
|
@@ -18763,13 +19211,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18763
19211
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
18764
19212
|
*/
|
|
18765
19213
|
__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,
|
|
19214
|
+
__pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 817, __pyx_L1_error)
|
|
18767
19215
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18768
19216
|
__pyx_r = __pyx_t_1;
|
|
18769
19217
|
__pyx_t_1 = 0;
|
|
18770
19218
|
goto __pyx_L0;
|
|
18771
19219
|
|
|
18772
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19220
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
|
|
18773
19221
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18774
19222
|
*
|
|
18775
19223
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -18788,7 +19236,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18788
19236
|
return __pyx_r;
|
|
18789
19237
|
}
|
|
18790
19238
|
|
|
18791
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19239
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":819
|
|
18792
19240
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
18793
19241
|
*
|
|
18794
19242
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -18805,7 +19253,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18805
19253
|
int __pyx_clineno = 0;
|
|
18806
19254
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);
|
|
18807
19255
|
|
|
18808
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19256
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":820
|
|
18809
19257
|
*
|
|
18810
19258
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
18811
19259
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
|
|
@@ -18813,13 +19261,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18813
19261
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18814
19262
|
*/
|
|
18815
19263
|
__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,
|
|
19264
|
+
__pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 820, __pyx_L1_error)
|
|
18817
19265
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18818
19266
|
__pyx_r = __pyx_t_1;
|
|
18819
19267
|
__pyx_t_1 = 0;
|
|
18820
19268
|
goto __pyx_L0;
|
|
18821
19269
|
|
|
18822
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19270
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":819
|
|
18823
19271
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
18824
19272
|
*
|
|
18825
19273
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -18838,7 +19286,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18838
19286
|
return __pyx_r;
|
|
18839
19287
|
}
|
|
18840
19288
|
|
|
18841
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19289
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":822
|
|
18842
19290
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
18843
19291
|
*
|
|
18844
19292
|
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
|
|
@@ -18850,9 +19298,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18850
19298
|
PyObject *__pyx_r = NULL;
|
|
18851
19299
|
__Pyx_RefNannyDeclarations
|
|
18852
19300
|
int __pyx_t_1;
|
|
19301
|
+
PyObject *__pyx_t_2;
|
|
18853
19302
|
__Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);
|
|
18854
19303
|
|
|
18855
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19304
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":823
|
|
18856
19305
|
*
|
|
18857
19306
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18858
19307
|
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
|
|
@@ -18862,7 +19311,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18862
19311
|
__pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
|
|
18863
19312
|
if (__pyx_t_1) {
|
|
18864
19313
|
|
|
18865
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19314
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
|
|
18866
19315
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18867
19316
|
* if PyDataType_HASSUBARRAY(d):
|
|
18868
19317
|
* return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
|
|
@@ -18870,11 +19319,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18870
19319
|
* return ()
|
|
18871
19320
|
*/
|
|
18872
19321
|
__Pyx_XDECREF(__pyx_r);
|
|
18873
|
-
|
|
18874
|
-
|
|
19322
|
+
__pyx_t_2 = __pyx_f_5numpy_5dtype_8subarray_subarray(__pyx_v_d)->shape;
|
|
19323
|
+
__Pyx_INCREF(((PyObject*)__pyx_t_2));
|
|
19324
|
+
__pyx_r = ((PyObject*)__pyx_t_2);
|
|
18875
19325
|
goto __pyx_L0;
|
|
18876
19326
|
|
|
18877
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19327
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":823
|
|
18878
19328
|
*
|
|
18879
19329
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18880
19330
|
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
|
|
@@ -18883,7 +19333,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18883
19333
|
*/
|
|
18884
19334
|
}
|
|
18885
19335
|
|
|
18886
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19336
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":826
|
|
18887
19337
|
* return <tuple>d.subarray.shape
|
|
18888
19338
|
* else:
|
|
18889
19339
|
* return () # <<<<<<<<<<<<<<
|
|
@@ -18897,7 +19347,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18897
19347
|
goto __pyx_L0;
|
|
18898
19348
|
}
|
|
18899
19349
|
|
|
18900
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19350
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":822
|
|
18901
19351
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
18902
19352
|
*
|
|
18903
19353
|
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
|
|
@@ -18912,10 +19362,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18912
19362
|
return __pyx_r;
|
|
18913
19363
|
}
|
|
18914
19364
|
|
|
18915
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19365
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1010
|
|
18916
19366
|
* int _import_umath() except -1
|
|
18917
19367
|
*
|
|
18918
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19368
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
|
|
18919
19369
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18920
19370
|
* PyArray_SetBaseObject(arr, base)
|
|
18921
19371
|
*/
|
|
@@ -18926,28 +19376,28 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
18926
19376
|
const char *__pyx_filename = NULL;
|
|
18927
19377
|
int __pyx_clineno = 0;
|
|
18928
19378
|
|
|
18929
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19379
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1011
|
|
18930
19380
|
*
|
|
18931
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19381
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *:
|
|
18932
19382
|
* Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
|
|
18933
19383
|
* PyArray_SetBaseObject(arr, base)
|
|
18934
19384
|
*
|
|
18935
19385
|
*/
|
|
18936
19386
|
Py_INCREF(__pyx_v_base);
|
|
18937
19387
|
|
|
18938
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18939
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19388
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1012
|
|
19389
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *:
|
|
18940
19390
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18941
19391
|
* PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
|
|
18942
19392
|
*
|
|
18943
19393
|
* cdef inline object get_array_base(ndarray arr):
|
|
18944
19394
|
*/
|
|
18945
|
-
__pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2,
|
|
19395
|
+
__pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 1012, __pyx_L1_error)
|
|
18946
19396
|
|
|
18947
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19397
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1010
|
|
18948
19398
|
* int _import_umath() except -1
|
|
18949
19399
|
*
|
|
18950
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19400
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
|
|
18951
19401
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18952
19402
|
* PyArray_SetBaseObject(arr, base)
|
|
18953
19403
|
*/
|
|
@@ -18959,7 +19409,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
18959
19409
|
__pyx_L0:;
|
|
18960
19410
|
}
|
|
18961
19411
|
|
|
18962
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19412
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
|
|
18963
19413
|
* PyArray_SetBaseObject(arr, base)
|
|
18964
19414
|
*
|
|
18965
19415
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -18974,7 +19424,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18974
19424
|
int __pyx_t_1;
|
|
18975
19425
|
__Pyx_RefNannySetupContext("get_array_base", 1);
|
|
18976
19426
|
|
|
18977
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19427
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1015
|
|
18978
19428
|
*
|
|
18979
19429
|
* cdef inline object get_array_base(ndarray arr):
|
|
18980
19430
|
* base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
|
|
@@ -18983,7 +19433,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18983
19433
|
*/
|
|
18984
19434
|
__pyx_v_base = PyArray_BASE(__pyx_v_arr);
|
|
18985
19435
|
|
|
18986
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19436
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1016
|
|
18987
19437
|
* cdef inline object get_array_base(ndarray arr):
|
|
18988
19438
|
* base = PyArray_BASE(arr)
|
|
18989
19439
|
* if base is NULL: # <<<<<<<<<<<<<<
|
|
@@ -18993,7 +19443,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18993
19443
|
__pyx_t_1 = (__pyx_v_base == NULL);
|
|
18994
19444
|
if (__pyx_t_1) {
|
|
18995
19445
|
|
|
18996
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19446
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1017
|
|
18997
19447
|
* base = PyArray_BASE(arr)
|
|
18998
19448
|
* if base is NULL:
|
|
18999
19449
|
* return None # <<<<<<<<<<<<<<
|
|
@@ -19004,7 +19454,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
19004
19454
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
19005
19455
|
goto __pyx_L0;
|
|
19006
19456
|
|
|
19007
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19457
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1016
|
|
19008
19458
|
* cdef inline object get_array_base(ndarray arr):
|
|
19009
19459
|
* base = PyArray_BASE(arr)
|
|
19010
19460
|
* if base is NULL: # <<<<<<<<<<<<<<
|
|
@@ -19013,7 +19463,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
19013
19463
|
*/
|
|
19014
19464
|
}
|
|
19015
19465
|
|
|
19016
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19466
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1018
|
|
19017
19467
|
* if base is NULL:
|
|
19018
19468
|
* return None
|
|
19019
19469
|
* return <object>base # <<<<<<<<<<<<<<
|
|
@@ -19025,7 +19475,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
19025
19475
|
__pyx_r = ((PyObject *)__pyx_v_base);
|
|
19026
19476
|
goto __pyx_L0;
|
|
19027
19477
|
|
|
19028
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19478
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
|
|
19029
19479
|
* PyArray_SetBaseObject(arr, base)
|
|
19030
19480
|
*
|
|
19031
19481
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -19040,7 +19490,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
19040
19490
|
return __pyx_r;
|
|
19041
19491
|
}
|
|
19042
19492
|
|
|
19043
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19493
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1022
|
|
19044
19494
|
* # Versions of the import_* functions which are more suitable for
|
|
19045
19495
|
* # Cython code.
|
|
19046
19496
|
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
|
|
@@ -19064,7 +19514,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
19064
19514
|
int __pyx_clineno = 0;
|
|
19065
19515
|
__Pyx_RefNannySetupContext("import_array", 1);
|
|
19066
19516
|
|
|
19067
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19517
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
|
|
19068
19518
|
* # Cython code.
|
|
19069
19519
|
* cdef inline int import_array() except -1:
|
|
19070
19520
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19080,16 +19530,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
19080
19530
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
19081
19531
|
/*try:*/ {
|
|
19082
19532
|
|
|
19083
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19533
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1024
|
|
19084
19534
|
* cdef inline int import_array() except -1:
|
|
19085
19535
|
* try:
|
|
19086
19536
|
* __pyx_import_array() # <<<<<<<<<<<<<<
|
|
19087
19537
|
* except Exception:
|
|
19088
|
-
* raise ImportError("numpy.
|
|
19538
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
19089
19539
|
*/
|
|
19090
|
-
__pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19540
|
+
__pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1024, __pyx_L3_error)
|
|
19091
19541
|
|
|
19092
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19542
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
|
|
19093
19543
|
* # Cython code.
|
|
19094
19544
|
* cdef inline int import_array() except -1:
|
|
19095
19545
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19103,37 +19553,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
19103
19553
|
goto __pyx_L8_try_end;
|
|
19104
19554
|
__pyx_L3_error:;
|
|
19105
19555
|
|
|
19106
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19556
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1025
|
|
19107
19557
|
* try:
|
|
19108
19558
|
* __pyx_import_array()
|
|
19109
19559
|
* except Exception: # <<<<<<<<<<<<<<
|
|
19110
|
-
* raise ImportError("numpy.
|
|
19560
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
19111
19561
|
*
|
|
19112
19562
|
*/
|
|
19113
19563
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
19114
19564
|
if (__pyx_t_4) {
|
|
19115
19565
|
__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,
|
|
19566
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1025, __pyx_L5_except_error)
|
|
19117
19567
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
19118
19568
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
19119
19569
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
19120
19570
|
|
|
19121
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19571
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
|
|
19122
19572
|
* __pyx_import_array()
|
|
19123
19573
|
* except Exception:
|
|
19124
|
-
* raise ImportError("numpy.
|
|
19574
|
+
* raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
|
|
19125
19575
|
*
|
|
19126
19576
|
* cdef inline int import_umath() except -1:
|
|
19127
19577
|
*/
|
|
19128
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19578
|
+
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1026, __pyx_L5_except_error)
|
|
19129
19579
|
__Pyx_GOTREF(__pyx_t_8);
|
|
19130
19580
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
19131
19581
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
19132
|
-
__PYX_ERR(2,
|
|
19582
|
+
__PYX_ERR(2, 1026, __pyx_L5_except_error)
|
|
19133
19583
|
}
|
|
19134
19584
|
goto __pyx_L5_except_error;
|
|
19135
19585
|
|
|
19136
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19586
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
|
|
19137
19587
|
* # Cython code.
|
|
19138
19588
|
* cdef inline int import_array() except -1:
|
|
19139
19589
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19149,7 +19599,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
19149
19599
|
__pyx_L8_try_end:;
|
|
19150
19600
|
}
|
|
19151
19601
|
|
|
19152
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19602
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1022
|
|
19153
19603
|
* # Versions of the import_* functions which are more suitable for
|
|
19154
19604
|
* # Cython code.
|
|
19155
19605
|
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
|
|
@@ -19172,8 +19622,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
19172
19622
|
return __pyx_r;
|
|
19173
19623
|
}
|
|
19174
19624
|
|
|
19175
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19176
|
-
* raise ImportError("numpy.
|
|
19625
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1028
|
|
19626
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
19177
19627
|
*
|
|
19178
19628
|
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
|
|
19179
19629
|
* try:
|
|
@@ -19196,7 +19646,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19196
19646
|
int __pyx_clineno = 0;
|
|
19197
19647
|
__Pyx_RefNannySetupContext("import_umath", 1);
|
|
19198
19648
|
|
|
19199
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19649
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
|
|
19200
19650
|
*
|
|
19201
19651
|
* cdef inline int import_umath() except -1:
|
|
19202
19652
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19212,16 +19662,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19212
19662
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
19213
19663
|
/*try:*/ {
|
|
19214
19664
|
|
|
19215
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19665
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1030
|
|
19216
19666
|
* cdef inline int import_umath() except -1:
|
|
19217
19667
|
* try:
|
|
19218
19668
|
* _import_umath() # <<<<<<<<<<<<<<
|
|
19219
19669
|
* except Exception:
|
|
19220
|
-
* raise ImportError("numpy.
|
|
19670
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19221
19671
|
*/
|
|
19222
|
-
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19672
|
+
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1030, __pyx_L3_error)
|
|
19223
19673
|
|
|
19224
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19674
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
|
|
19225
19675
|
*
|
|
19226
19676
|
* cdef inline int import_umath() except -1:
|
|
19227
19677
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19235,37 +19685,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19235
19685
|
goto __pyx_L8_try_end;
|
|
19236
19686
|
__pyx_L3_error:;
|
|
19237
19687
|
|
|
19238
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19688
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1031
|
|
19239
19689
|
* try:
|
|
19240
19690
|
* _import_umath()
|
|
19241
19691
|
* except Exception: # <<<<<<<<<<<<<<
|
|
19242
|
-
* raise ImportError("numpy.
|
|
19692
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19243
19693
|
*
|
|
19244
19694
|
*/
|
|
19245
19695
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
19246
19696
|
if (__pyx_t_4) {
|
|
19247
19697
|
__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,
|
|
19698
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1031, __pyx_L5_except_error)
|
|
19249
19699
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
19250
19700
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
19251
19701
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
19252
19702
|
|
|
19253
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19703
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1032
|
|
19254
19704
|
* _import_umath()
|
|
19255
19705
|
* except Exception:
|
|
19256
|
-
* raise ImportError("numpy.
|
|
19706
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
19257
19707
|
*
|
|
19258
19708
|
* cdef inline int import_ufunc() except -1:
|
|
19259
19709
|
*/
|
|
19260
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19710
|
+
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1032, __pyx_L5_except_error)
|
|
19261
19711
|
__Pyx_GOTREF(__pyx_t_8);
|
|
19262
19712
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
19263
19713
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
19264
|
-
__PYX_ERR(2,
|
|
19714
|
+
__PYX_ERR(2, 1032, __pyx_L5_except_error)
|
|
19265
19715
|
}
|
|
19266
19716
|
goto __pyx_L5_except_error;
|
|
19267
19717
|
|
|
19268
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19718
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
|
|
19269
19719
|
*
|
|
19270
19720
|
* cdef inline int import_umath() except -1:
|
|
19271
19721
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19281,8 +19731,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19281
19731
|
__pyx_L8_try_end:;
|
|
19282
19732
|
}
|
|
19283
19733
|
|
|
19284
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19285
|
-
* raise ImportError("numpy.
|
|
19734
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1028
|
|
19735
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
19286
19736
|
*
|
|
19287
19737
|
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
|
|
19288
19738
|
* try:
|
|
@@ -19304,8 +19754,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19304
19754
|
return __pyx_r;
|
|
19305
19755
|
}
|
|
19306
19756
|
|
|
19307
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19308
|
-
* raise ImportError("numpy.
|
|
19757
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1034
|
|
19758
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19309
19759
|
*
|
|
19310
19760
|
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
|
|
19311
19761
|
* try:
|
|
@@ -19328,7 +19778,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19328
19778
|
int __pyx_clineno = 0;
|
|
19329
19779
|
__Pyx_RefNannySetupContext("import_ufunc", 1);
|
|
19330
19780
|
|
|
19331
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19781
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
19332
19782
|
*
|
|
19333
19783
|
* cdef inline int import_ufunc() except -1:
|
|
19334
19784
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19344,16 +19794,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19344
19794
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
19345
19795
|
/*try:*/ {
|
|
19346
19796
|
|
|
19347
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19797
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
|
|
19348
19798
|
* cdef inline int import_ufunc() except -1:
|
|
19349
19799
|
* try:
|
|
19350
19800
|
* _import_umath() # <<<<<<<<<<<<<<
|
|
19351
19801
|
* except Exception:
|
|
19352
|
-
* raise ImportError("numpy.
|
|
19802
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19353
19803
|
*/
|
|
19354
|
-
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19804
|
+
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1036, __pyx_L3_error)
|
|
19355
19805
|
|
|
19356
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19806
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
19357
19807
|
*
|
|
19358
19808
|
* cdef inline int import_ufunc() except -1:
|
|
19359
19809
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19367,37 +19817,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19367
19817
|
goto __pyx_L8_try_end;
|
|
19368
19818
|
__pyx_L3_error:;
|
|
19369
19819
|
|
|
19370
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19820
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1037
|
|
19371
19821
|
* try:
|
|
19372
19822
|
* _import_umath()
|
|
19373
19823
|
* except Exception: # <<<<<<<<<<<<<<
|
|
19374
|
-
* raise ImportError("numpy.
|
|
19824
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19375
19825
|
*
|
|
19376
19826
|
*/
|
|
19377
19827
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
19378
19828
|
if (__pyx_t_4) {
|
|
19379
19829
|
__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,
|
|
19830
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1037, __pyx_L5_except_error)
|
|
19381
19831
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
19382
19832
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
19383
19833
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
19384
19834
|
|
|
19385
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19835
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1038
|
|
19386
19836
|
* _import_umath()
|
|
19387
19837
|
* except Exception:
|
|
19388
|
-
* raise ImportError("numpy.
|
|
19838
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
19389
19839
|
*
|
|
19390
19840
|
*
|
|
19391
19841
|
*/
|
|
19392
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19842
|
+
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1038, __pyx_L5_except_error)
|
|
19393
19843
|
__Pyx_GOTREF(__pyx_t_8);
|
|
19394
19844
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
19395
19845
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
19396
|
-
__PYX_ERR(2,
|
|
19846
|
+
__PYX_ERR(2, 1038, __pyx_L5_except_error)
|
|
19397
19847
|
}
|
|
19398
19848
|
goto __pyx_L5_except_error;
|
|
19399
19849
|
|
|
19400
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19850
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
19401
19851
|
*
|
|
19402
19852
|
* cdef inline int import_ufunc() except -1:
|
|
19403
19853
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19413,8 +19863,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19413
19863
|
__pyx_L8_try_end:;
|
|
19414
19864
|
}
|
|
19415
19865
|
|
|
19416
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19417
|
-
* raise ImportError("numpy.
|
|
19866
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1034
|
|
19867
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19418
19868
|
*
|
|
19419
19869
|
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
|
|
19420
19870
|
* try:
|
|
@@ -19436,10 +19886,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19436
19886
|
return __pyx_r;
|
|
19437
19887
|
}
|
|
19438
19888
|
|
|
19439
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19889
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
|
|
19440
19890
|
*
|
|
19441
19891
|
*
|
|
19442
|
-
* cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
|
|
19892
|
+
* cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19443
19893
|
* """
|
|
19444
19894
|
* Cython equivalent of `isinstance(obj, np.timedelta64)`
|
|
19445
19895
|
*/
|
|
@@ -19447,7 +19897,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19447
19897
|
static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
|
|
19448
19898
|
int __pyx_r;
|
|
19449
19899
|
|
|
19450
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19900
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
|
|
19451
19901
|
* bool
|
|
19452
19902
|
* """
|
|
19453
19903
|
* return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
|
|
@@ -19457,10 +19907,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19457
19907
|
__pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
|
|
19458
19908
|
goto __pyx_L0;
|
|
19459
19909
|
|
|
19460
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19910
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
|
|
19461
19911
|
*
|
|
19462
19912
|
*
|
|
19463
|
-
* cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
|
|
19913
|
+
* cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19464
19914
|
* """
|
|
19465
19915
|
* Cython equivalent of `isinstance(obj, np.timedelta64)`
|
|
19466
19916
|
*/
|
|
@@ -19470,10 +19920,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19470
19920
|
return __pyx_r;
|
|
19471
19921
|
}
|
|
19472
19922
|
|
|
19473
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19923
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
|
|
19474
19924
|
*
|
|
19475
19925
|
*
|
|
19476
|
-
* cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
|
|
19926
|
+
* cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19477
19927
|
* """
|
|
19478
19928
|
* Cython equivalent of `isinstance(obj, np.datetime64)`
|
|
19479
19929
|
*/
|
|
@@ -19481,7 +19931,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19481
19931
|
static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
|
|
19482
19932
|
int __pyx_r;
|
|
19483
19933
|
|
|
19484
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19934
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1068
|
|
19485
19935
|
* bool
|
|
19486
19936
|
* """
|
|
19487
19937
|
* return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
|
|
@@ -19491,10 +19941,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19491
19941
|
__pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
|
|
19492
19942
|
goto __pyx_L0;
|
|
19493
19943
|
|
|
19494
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19944
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
|
|
19495
19945
|
*
|
|
19496
19946
|
*
|
|
19497
|
-
* cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
|
|
19947
|
+
* cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19498
19948
|
* """
|
|
19499
19949
|
* Cython equivalent of `isinstance(obj, np.datetime64)`
|
|
19500
19950
|
*/
|
|
@@ -19504,10 +19954,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19504
19954
|
return __pyx_r;
|
|
19505
19955
|
}
|
|
19506
19956
|
|
|
19507
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19957
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1071
|
|
19508
19958
|
*
|
|
19509
19959
|
*
|
|
19510
|
-
* cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19960
|
+
* cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19511
19961
|
* """
|
|
19512
19962
|
* returns the int64 value underlying scalar numpy datetime64 object
|
|
19513
19963
|
*/
|
|
@@ -19515,7 +19965,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19515
19965
|
static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
|
|
19516
19966
|
npy_datetime __pyx_r;
|
|
19517
19967
|
|
|
19518
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19968
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1078
|
|
19519
19969
|
* also needed. That can be found using `get_datetime64_unit`.
|
|
19520
19970
|
* """
|
|
19521
19971
|
* return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
|
|
@@ -19525,10 +19975,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19525
19975
|
__pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
|
|
19526
19976
|
goto __pyx_L0;
|
|
19527
19977
|
|
|
19528
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19978
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1071
|
|
19529
19979
|
*
|
|
19530
19980
|
*
|
|
19531
|
-
* cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19981
|
+
* cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19532
19982
|
* """
|
|
19533
19983
|
* returns the int64 value underlying scalar numpy datetime64 object
|
|
19534
19984
|
*/
|
|
@@ -19538,10 +19988,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19538
19988
|
return __pyx_r;
|
|
19539
19989
|
}
|
|
19540
19990
|
|
|
19541
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19991
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
|
|
19542
19992
|
*
|
|
19543
19993
|
*
|
|
19544
|
-
* cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19994
|
+
* cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19545
19995
|
* """
|
|
19546
19996
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19547
19997
|
*/
|
|
@@ -19549,7 +19999,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19549
19999
|
static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
|
|
19550
20000
|
npy_timedelta __pyx_r;
|
|
19551
20001
|
|
|
19552
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
20002
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1085
|
|
19553
20003
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19554
20004
|
* """
|
|
19555
20005
|
* return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
|
|
@@ -19559,10 +20009,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19559
20009
|
__pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
|
|
19560
20010
|
goto __pyx_L0;
|
|
19561
20011
|
|
|
19562
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
20012
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
|
|
19563
20013
|
*
|
|
19564
20014
|
*
|
|
19565
|
-
* cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
20015
|
+
* cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19566
20016
|
* """
|
|
19567
20017
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19568
20018
|
*/
|
|
@@ -19572,10 +20022,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19572
20022
|
return __pyx_r;
|
|
19573
20023
|
}
|
|
19574
20024
|
|
|
19575
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
20025
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1088
|
|
19576
20026
|
*
|
|
19577
20027
|
*
|
|
19578
|
-
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
|
|
20028
|
+
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19579
20029
|
* """
|
|
19580
20030
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19581
20031
|
*/
|
|
@@ -19583,18 +20033,20 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19583
20033
|
static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
|
|
19584
20034
|
NPY_DATETIMEUNIT __pyx_r;
|
|
19585
20035
|
|
|
19586
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
20036
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1092
|
|
19587
20037
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19588
20038
|
* """
|
|
19589
20039
|
* return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
|
|
20040
|
+
*
|
|
20041
|
+
*
|
|
19590
20042
|
*/
|
|
19591
20043
|
__pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
|
|
19592
20044
|
goto __pyx_L0;
|
|
19593
20045
|
|
|
19594
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
20046
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1088
|
|
19595
20047
|
*
|
|
19596
20048
|
*
|
|
19597
|
-
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
|
|
20049
|
+
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19598
20050
|
* """
|
|
19599
20051
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19600
20052
|
*/
|
|
@@ -21346,13 +21798,14 @@ static PyObject *__pyx_pf_9sknetwork_8topology_7cliques_count_cliques(CYTHON_UNU
|
|
|
21346
21798
|
int __pyx_t_2;
|
|
21347
21799
|
PyObject *__pyx_t_3 = NULL;
|
|
21348
21800
|
PyObject *__pyx_t_4 = NULL;
|
|
21349
|
-
int __pyx_t_5;
|
|
21801
|
+
unsigned int __pyx_t_5;
|
|
21350
21802
|
PyObject *__pyx_t_6 = NULL;
|
|
21351
21803
|
PyObject *__pyx_t_7 = NULL;
|
|
21352
21804
|
PyObject *__pyx_t_8 = NULL;
|
|
21353
21805
|
std::vector<int> __pyx_t_9;
|
|
21354
21806
|
std::vector<int> __pyx_t_10;
|
|
21355
|
-
|
|
21807
|
+
int __pyx_t_11;
|
|
21808
|
+
long __pyx_t_12;
|
|
21356
21809
|
int __pyx_lineno = 0;
|
|
21357
21810
|
const char *__pyx_filename = NULL;
|
|
21358
21811
|
int __pyx_clineno = 0;
|
|
@@ -21532,10 +21985,10 @@ static PyObject *__pyx_pf_9sknetwork_8topology_7cliques_count_cliques(CYTHON_UNU
|
|
|
21532
21985
|
*/
|
|
21533
21986
|
__pyx_t_9 = __pyx_convert_vector_from_py_int(__pyx_v_indptr); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
|
|
21534
21987
|
__pyx_t_10 = __pyx_convert_vector_from_py_int(__pyx_v_indices); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L1_error)
|
|
21535
|
-
|
|
21988
|
+
__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
21989
|
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
|
-
|
|
21538
|
-
__pyx_v_n_cliques =
|
|
21990
|
+
__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)
|
|
21991
|
+
__pyx_v_n_cliques = __pyx_t_12;
|
|
21539
21992
|
|
|
21540
21993
|
/* "sknetwork/topology/cliques.pyx":149
|
|
21541
21994
|
* box = ListingBox.__new__(ListingBox, indptr, clique_size)
|
|
@@ -21756,6 +22209,9 @@ static PyTypeObject __pyx_type_9sknetwork_8topology_7cliques_ListingBox = {
|
|
|
21756
22209
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
21757
22210
|
0, /*tp_watched*/
|
|
21758
22211
|
#endif
|
|
22212
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
22213
|
+
0, /*tp_versions_used*/
|
|
22214
|
+
#endif
|
|
21759
22215
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
21760
22216
|
0, /*tp_pypy_flags*/
|
|
21761
22217
|
#endif
|
|
@@ -22019,6 +22475,9 @@ static PyTypeObject __pyx_type___pyx_array = {
|
|
|
22019
22475
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
22020
22476
|
0, /*tp_watched*/
|
|
22021
22477
|
#endif
|
|
22478
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
22479
|
+
0, /*tp_versions_used*/
|
|
22480
|
+
#endif
|
|
22022
22481
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
22023
22482
|
0, /*tp_pypy_flags*/
|
|
22024
22483
|
#endif
|
|
@@ -22189,6 +22648,9 @@ static PyTypeObject __pyx_type___pyx_MemviewEnum = {
|
|
|
22189
22648
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
22190
22649
|
0, /*tp_watched*/
|
|
22191
22650
|
#endif
|
|
22651
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
22652
|
+
0, /*tp_versions_used*/
|
|
22653
|
+
#endif
|
|
22192
22654
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
22193
22655
|
0, /*tp_pypy_flags*/
|
|
22194
22656
|
#endif
|
|
@@ -22532,6 +22994,9 @@ static PyTypeObject __pyx_type___pyx_memoryview = {
|
|
|
22532
22994
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
22533
22995
|
0, /*tp_watched*/
|
|
22534
22996
|
#endif
|
|
22997
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
22998
|
+
0, /*tp_versions_used*/
|
|
22999
|
+
#endif
|
|
22535
23000
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
22536
23001
|
0, /*tp_pypy_flags*/
|
|
22537
23002
|
#endif
|
|
@@ -22704,6 +23169,9 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = {
|
|
|
22704
23169
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
22705
23170
|
0, /*tp_watched*/
|
|
22706
23171
|
#endif
|
|
23172
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
23173
|
+
0, /*tp_versions_used*/
|
|
23174
|
+
#endif
|
|
22707
23175
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
22708
23176
|
0, /*tp_pypy_flags*/
|
|
22709
23177
|
#endif
|
|
@@ -22835,8 +23303,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
22835
23303
|
{&__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
23304
|
{&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
|
|
22837
23305
|
{&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
|
|
22838
|
-
{&
|
|
22839
|
-
{&
|
|
23306
|
+
{&__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},
|
|
23307
|
+
{&__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
23308
|
{&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
|
|
22841
23309
|
{&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1},
|
|
22842
23310
|
{&__pyx_n_s_order, __pyx_k_order, sizeof(__pyx_k_order), 0, 0, 1, 1},
|
|
@@ -22902,7 +23370,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
|
|
|
22902
23370
|
__pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 408, __pyx_L1_error)
|
|
22903
23371
|
__pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 618, __pyx_L1_error)
|
|
22904
23372
|
__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,
|
|
23373
|
+
__pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1026, __pyx_L1_error)
|
|
22906
23374
|
return 0;
|
|
22907
23375
|
__pyx_L1_error:;
|
|
22908
23376
|
return -1;
|
|
@@ -22949,25 +23417,25 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
22949
23417
|
__Pyx_GOTREF(__pyx_tuple__8);
|
|
22950
23418
|
__Pyx_GIVEREF(__pyx_tuple__8);
|
|
22951
23419
|
|
|
22952
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
23420
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
|
|
22953
23421
|
* __pyx_import_array()
|
|
22954
23422
|
* except Exception:
|
|
22955
|
-
* raise ImportError("numpy.
|
|
23423
|
+
* raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
|
|
22956
23424
|
*
|
|
22957
23425
|
* cdef inline int import_umath() except -1:
|
|
22958
23426
|
*/
|
|
22959
|
-
__pyx_tuple__9 = PyTuple_Pack(1,
|
|
23427
|
+
__pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_multiarray_failed_to); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 1026, __pyx_L1_error)
|
|
22960
23428
|
__Pyx_GOTREF(__pyx_tuple__9);
|
|
22961
23429
|
__Pyx_GIVEREF(__pyx_tuple__9);
|
|
22962
23430
|
|
|
22963
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
23431
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1032
|
|
22964
23432
|
* _import_umath()
|
|
22965
23433
|
* except Exception:
|
|
22966
|
-
* raise ImportError("numpy.
|
|
23434
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
22967
23435
|
*
|
|
22968
23436
|
* cdef inline int import_ufunc() except -1:
|
|
22969
23437
|
*/
|
|
22970
|
-
__pyx_tuple__10 = PyTuple_Pack(1,
|
|
23438
|
+
__pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_numpy__core_umath_failed_to_impo); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 1032, __pyx_L1_error)
|
|
22971
23439
|
__Pyx_GOTREF(__pyx_tuple__10);
|
|
22972
23440
|
__Pyx_GIVEREF(__pyx_tuple__10);
|
|
22973
23441
|
|
|
@@ -23391,33 +23859,33 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
23391
23859
|
/*--- Type import code ---*/
|
|
23392
23860
|
__pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
|
|
23393
23861
|
__Pyx_GOTREF(__pyx_t_1);
|
|
23394
|
-
__pyx_ptype_7cpython_4type_type =
|
|
23862
|
+
__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
|
|
23395
23863
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
23396
|
-
sizeof(PyTypeObject),
|
|
23864
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
23397
23865
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
23398
|
-
sizeof(PyTypeObject),
|
|
23866
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
23399
23867
|
#else
|
|
23400
|
-
sizeof(PyHeapTypeObject),
|
|
23868
|
+
sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject),
|
|
23401
23869
|
#endif
|
|
23402
|
-
|
|
23870
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
|
|
23403
23871
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
23404
|
-
__pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2,
|
|
23872
|
+
__pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 271, __pyx_L1_error)
|
|
23405
23873
|
__Pyx_GOTREF(__pyx_t_1);
|
|
23406
|
-
__pyx_ptype_5numpy_dtype =
|
|
23407
|
-
__pyx_ptype_5numpy_flatiter =
|
|
23408
|
-
__pyx_ptype_5numpy_broadcast =
|
|
23409
|
-
__pyx_ptype_5numpy_ndarray =
|
|
23410
|
-
__pyx_ptype_5numpy_generic =
|
|
23411
|
-
__pyx_ptype_5numpy_number =
|
|
23412
|
-
__pyx_ptype_5numpy_integer =
|
|
23413
|
-
__pyx_ptype_5numpy_signedinteger =
|
|
23414
|
-
__pyx_ptype_5numpy_unsignedinteger =
|
|
23415
|
-
__pyx_ptype_5numpy_inexact =
|
|
23416
|
-
__pyx_ptype_5numpy_floating =
|
|
23417
|
-
__pyx_ptype_5numpy_complexfloating =
|
|
23418
|
-
__pyx_ptype_5numpy_flexible =
|
|
23419
|
-
__pyx_ptype_5numpy_character =
|
|
23420
|
-
__pyx_ptype_5numpy_ufunc =
|
|
23874
|
+
__pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 271, __pyx_L1_error)
|
|
23875
|
+
__pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 316, __pyx_L1_error)
|
|
23876
|
+
__pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 320, __pyx_L1_error)
|
|
23877
|
+
__pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 359, __pyx_L1_error)
|
|
23878
|
+
__pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 848, __pyx_L1_error)
|
|
23879
|
+
__pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 850, __pyx_L1_error)
|
|
23880
|
+
__pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 852, __pyx_L1_error)
|
|
23881
|
+
__pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 854, __pyx_L1_error)
|
|
23882
|
+
__pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 856, __pyx_L1_error)
|
|
23883
|
+
__pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 858, __pyx_L1_error)
|
|
23884
|
+
__pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 860, __pyx_L1_error)
|
|
23885
|
+
__pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 862, __pyx_L1_error)
|
|
23886
|
+
__pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 864, __pyx_L1_error)
|
|
23887
|
+
__pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 866, __pyx_L1_error)
|
|
23888
|
+
__pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_12(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_12); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 930, __pyx_L1_error)
|
|
23421
23889
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
23422
23890
|
__Pyx_RefNannyFinishContext();
|
|
23423
23891
|
return 0;
|
|
@@ -26839,7 +27307,6 @@ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
|
|
|
26839
27307
|
}
|
|
26840
27308
|
|
|
26841
27309
|
/* HasAttr */
|
|
26842
|
-
#if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
|
|
26843
27310
|
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
26844
27311
|
PyObject *r;
|
|
26845
27312
|
if (unlikely(!__Pyx_PyBaseString_Check(n))) {
|
|
@@ -26856,7 +27323,6 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
|
26856
27323
|
return 1;
|
|
26857
27324
|
}
|
|
26858
27325
|
}
|
|
26859
|
-
#endif
|
|
26860
27326
|
|
|
26861
27327
|
/* IsLittleEndian */
|
|
26862
27328
|
static CYTHON_INLINE int __Pyx_Is_Little_Endian(void)
|
|
@@ -28183,10 +28649,10 @@ bad:
|
|
|
28183
28649
|
#endif
|
|
28184
28650
|
|
|
28185
28651
|
/* TypeImport */
|
|
28186
|
-
#ifndef
|
|
28187
|
-
#define
|
|
28188
|
-
static PyTypeObject *
|
|
28189
|
-
size_t size, size_t alignment, enum
|
|
28652
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_0_12
|
|
28653
|
+
#define __PYX_HAVE_RT_ImportType_3_0_12
|
|
28654
|
+
static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name,
|
|
28655
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size)
|
|
28190
28656
|
{
|
|
28191
28657
|
PyObject *result = 0;
|
|
28192
28658
|
char warning[200];
|
|
@@ -28240,7 +28706,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
|
|
|
28240
28706
|
module_name, class_name, size, basicsize+itemsize);
|
|
28241
28707
|
goto bad;
|
|
28242
28708
|
}
|
|
28243
|
-
if (check_size ==
|
|
28709
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_12 &&
|
|
28244
28710
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
28245
28711
|
PyErr_Format(PyExc_ValueError,
|
|
28246
28712
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -28248,7 +28714,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
|
|
|
28248
28714
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
28249
28715
|
goto bad;
|
|
28250
28716
|
}
|
|
28251
|
-
else if (check_size ==
|
|
28717
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_12 && (size_t)basicsize > size) {
|
|
28252
28718
|
PyOS_snprintf(warning, sizeof(warning),
|
|
28253
28719
|
"%s.%s size changed, may indicate binary incompatibility. "
|
|
28254
28720
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -29383,6 +29849,9 @@ static PyTypeObject __pyx_CyFunctionType_type = {
|
|
|
29383
29849
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
29384
29850
|
0,
|
|
29385
29851
|
#endif
|
|
29852
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
29853
|
+
0,
|
|
29854
|
+
#endif
|
|
29386
29855
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
29387
29856
|
0,
|
|
29388
29857
|
#endif
|
|
@@ -29568,7 +30037,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
|
|
|
29568
30037
|
#include "compile.h"
|
|
29569
30038
|
#include "frameobject.h"
|
|
29570
30039
|
#include "traceback.h"
|
|
29571
|
-
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
30040
|
+
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
|
|
29572
30041
|
#ifndef Py_BUILD_CORE
|
|
29573
30042
|
#define Py_BUILD_CORE 1
|
|
29574
30043
|
#endif
|
|
@@ -30440,6 +30909,160 @@ __pyx_fail:
|
|
|
30440
30909
|
#endif
|
|
30441
30910
|
#endif
|
|
30442
30911
|
|
|
30912
|
+
/* Declarations */
|
|
30913
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
30914
|
+
#ifdef __cplusplus
|
|
30915
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
30916
|
+
return ::std::complex< long double >(x, y);
|
|
30917
|
+
}
|
|
30918
|
+
#else
|
|
30919
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
30920
|
+
return x + y*(__pyx_t_long_double_complex)_Complex_I;
|
|
30921
|
+
}
|
|
30922
|
+
#endif
|
|
30923
|
+
#else
|
|
30924
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
30925
|
+
__pyx_t_long_double_complex z;
|
|
30926
|
+
z.real = x;
|
|
30927
|
+
z.imag = y;
|
|
30928
|
+
return z;
|
|
30929
|
+
}
|
|
30930
|
+
#endif
|
|
30931
|
+
|
|
30932
|
+
/* Arithmetic */
|
|
30933
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
30934
|
+
#else
|
|
30935
|
+
static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
30936
|
+
return (a.real == b.real) && (a.imag == b.imag);
|
|
30937
|
+
}
|
|
30938
|
+
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) {
|
|
30939
|
+
__pyx_t_long_double_complex z;
|
|
30940
|
+
z.real = a.real + b.real;
|
|
30941
|
+
z.imag = a.imag + b.imag;
|
|
30942
|
+
return z;
|
|
30943
|
+
}
|
|
30944
|
+
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) {
|
|
30945
|
+
__pyx_t_long_double_complex z;
|
|
30946
|
+
z.real = a.real - b.real;
|
|
30947
|
+
z.imag = a.imag - b.imag;
|
|
30948
|
+
return z;
|
|
30949
|
+
}
|
|
30950
|
+
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) {
|
|
30951
|
+
__pyx_t_long_double_complex z;
|
|
30952
|
+
z.real = a.real * b.real - a.imag * b.imag;
|
|
30953
|
+
z.imag = a.real * b.imag + a.imag * b.real;
|
|
30954
|
+
return z;
|
|
30955
|
+
}
|
|
30956
|
+
#if 1
|
|
30957
|
+
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) {
|
|
30958
|
+
if (b.imag == 0) {
|
|
30959
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
|
|
30960
|
+
} else if (fabsl(b.real) >= fabsl(b.imag)) {
|
|
30961
|
+
if (b.real == 0 && b.imag == 0) {
|
|
30962
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
|
|
30963
|
+
} else {
|
|
30964
|
+
long double r = b.imag / b.real;
|
|
30965
|
+
long double s = (long double)(1.0) / (b.real + b.imag * r);
|
|
30966
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
30967
|
+
(a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
|
|
30968
|
+
}
|
|
30969
|
+
} else {
|
|
30970
|
+
long double r = b.real / b.imag;
|
|
30971
|
+
long double s = (long double)(1.0) / (b.imag + b.real * r);
|
|
30972
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
30973
|
+
(a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
|
|
30974
|
+
}
|
|
30975
|
+
}
|
|
30976
|
+
#else
|
|
30977
|
+
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) {
|
|
30978
|
+
if (b.imag == 0) {
|
|
30979
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
|
|
30980
|
+
} else {
|
|
30981
|
+
long double denom = b.real * b.real + b.imag * b.imag;
|
|
30982
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
30983
|
+
(a.real * b.real + a.imag * b.imag) / denom,
|
|
30984
|
+
(a.imag * b.real - a.real * b.imag) / denom);
|
|
30985
|
+
}
|
|
30986
|
+
}
|
|
30987
|
+
#endif
|
|
30988
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex a) {
|
|
30989
|
+
__pyx_t_long_double_complex z;
|
|
30990
|
+
z.real = -a.real;
|
|
30991
|
+
z.imag = -a.imag;
|
|
30992
|
+
return z;
|
|
30993
|
+
}
|
|
30994
|
+
static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex a) {
|
|
30995
|
+
return (a.real == 0) && (a.imag == 0);
|
|
30996
|
+
}
|
|
30997
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex a) {
|
|
30998
|
+
__pyx_t_long_double_complex z;
|
|
30999
|
+
z.real = a.real;
|
|
31000
|
+
z.imag = -a.imag;
|
|
31001
|
+
return z;
|
|
31002
|
+
}
|
|
31003
|
+
#if 1
|
|
31004
|
+
static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex z) {
|
|
31005
|
+
#if !defined(HAVE_HYPOT) || defined(_MSC_VER)
|
|
31006
|
+
return sqrtl(z.real*z.real + z.imag*z.imag);
|
|
31007
|
+
#else
|
|
31008
|
+
return hypotl(z.real, z.imag);
|
|
31009
|
+
#endif
|
|
31010
|
+
}
|
|
31011
|
+
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) {
|
|
31012
|
+
__pyx_t_long_double_complex z;
|
|
31013
|
+
long double r, lnr, theta, z_r, z_theta;
|
|
31014
|
+
if (b.imag == 0 && b.real == (int)b.real) {
|
|
31015
|
+
if (b.real < 0) {
|
|
31016
|
+
long double denom = a.real * a.real + a.imag * a.imag;
|
|
31017
|
+
a.real = a.real / denom;
|
|
31018
|
+
a.imag = -a.imag / denom;
|
|
31019
|
+
b.real = -b.real;
|
|
31020
|
+
}
|
|
31021
|
+
switch ((int)b.real) {
|
|
31022
|
+
case 0:
|
|
31023
|
+
z.real = 1;
|
|
31024
|
+
z.imag = 0;
|
|
31025
|
+
return z;
|
|
31026
|
+
case 1:
|
|
31027
|
+
return a;
|
|
31028
|
+
case 2:
|
|
31029
|
+
return __Pyx_c_prod_long__double(a, a);
|
|
31030
|
+
case 3:
|
|
31031
|
+
z = __Pyx_c_prod_long__double(a, a);
|
|
31032
|
+
return __Pyx_c_prod_long__double(z, a);
|
|
31033
|
+
case 4:
|
|
31034
|
+
z = __Pyx_c_prod_long__double(a, a);
|
|
31035
|
+
return __Pyx_c_prod_long__double(z, z);
|
|
31036
|
+
}
|
|
31037
|
+
}
|
|
31038
|
+
if (a.imag == 0) {
|
|
31039
|
+
if (a.real == 0) {
|
|
31040
|
+
return a;
|
|
31041
|
+
} else if ((b.imag == 0) && (a.real >= 0)) {
|
|
31042
|
+
z.real = powl(a.real, b.real);
|
|
31043
|
+
z.imag = 0;
|
|
31044
|
+
return z;
|
|
31045
|
+
} else if (a.real > 0) {
|
|
31046
|
+
r = a.real;
|
|
31047
|
+
theta = 0;
|
|
31048
|
+
} else {
|
|
31049
|
+
r = -a.real;
|
|
31050
|
+
theta = atan2l(0.0, -1.0);
|
|
31051
|
+
}
|
|
31052
|
+
} else {
|
|
31053
|
+
r = __Pyx_c_abs_long__double(a);
|
|
31054
|
+
theta = atan2l(a.imag, a.real);
|
|
31055
|
+
}
|
|
31056
|
+
lnr = logl(r);
|
|
31057
|
+
z_r = expl(lnr * b.real - theta * b.imag);
|
|
31058
|
+
z_theta = theta * b.real + lnr * b.imag;
|
|
31059
|
+
z.real = z_r * cosl(z_theta);
|
|
31060
|
+
z.imag = z_r * sinl(z_theta);
|
|
31061
|
+
return z;
|
|
31062
|
+
}
|
|
31063
|
+
#endif
|
|
31064
|
+
#endif
|
|
31065
|
+
|
|
30443
31066
|
/* MemviewSliceCopyTemplate */
|
|
30444
31067
|
static __Pyx_memviewslice
|
|
30445
31068
|
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
|
|
@@ -30664,245 +31287,239 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
|
|
|
30664
31287
|
}
|
|
30665
31288
|
return (int) val;
|
|
30666
31289
|
}
|
|
30667
|
-
}
|
|
31290
|
+
}
|
|
30668
31291
|
#endif
|
|
30669
|
-
if (
|
|
30670
|
-
|
|
31292
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
31293
|
+
int val;
|
|
31294
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
31295
|
+
if (!tmp) return (int) -1;
|
|
31296
|
+
val = __Pyx_PyInt_As_int(tmp);
|
|
31297
|
+
Py_DECREF(tmp);
|
|
31298
|
+
return val;
|
|
31299
|
+
}
|
|
31300
|
+
if (is_unsigned) {
|
|
30671
31301
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
30672
|
-
|
|
30673
|
-
|
|
30674
|
-
|
|
30675
|
-
|
|
30676
|
-
|
|
30677
|
-
|
|
30678
|
-
|
|
30679
|
-
|
|
30680
|
-
|
|
30681
|
-
|
|
30682
|
-
|
|
30683
|
-
|
|
30684
|
-
|
|
30685
|
-
|
|
30686
|
-
}
|
|
31302
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
31303
|
+
goto raise_neg_overflow;
|
|
31304
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
31305
|
+
__PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
31306
|
+
} else {
|
|
31307
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
31308
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
31309
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
31310
|
+
case 2:
|
|
31311
|
+
if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
|
|
31312
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
31313
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31314
|
+
} else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
|
|
31315
|
+
return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
30687
31316
|
}
|
|
30688
|
-
|
|
30689
|
-
|
|
30690
|
-
|
|
30691
|
-
|
|
30692
|
-
|
|
30693
|
-
|
|
30694
|
-
|
|
30695
|
-
|
|
31317
|
+
}
|
|
31318
|
+
break;
|
|
31319
|
+
case 3:
|
|
31320
|
+
if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
|
|
31321
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
31322
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31323
|
+
} else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
|
|
31324
|
+
return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
30696
31325
|
}
|
|
30697
|
-
|
|
30698
|
-
|
|
30699
|
-
|
|
30700
|
-
|
|
30701
|
-
|
|
30702
|
-
|
|
30703
|
-
|
|
30704
|
-
|
|
31326
|
+
}
|
|
31327
|
+
break;
|
|
31328
|
+
case 4:
|
|
31329
|
+
if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
|
|
31330
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
31331
|
+
__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])))
|
|
31332
|
+
} else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
|
|
31333
|
+
return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
30705
31334
|
}
|
|
30706
|
-
|
|
30707
|
-
|
|
31335
|
+
}
|
|
31336
|
+
break;
|
|
30708
31337
|
}
|
|
31338
|
+
}
|
|
30709
31339
|
#endif
|
|
30710
31340
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
30711
|
-
|
|
30712
|
-
|
|
30713
|
-
|
|
31341
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
31342
|
+
goto raise_neg_overflow;
|
|
31343
|
+
}
|
|
30714
31344
|
#else
|
|
30715
|
-
|
|
30716
|
-
|
|
30717
|
-
|
|
30718
|
-
|
|
30719
|
-
|
|
30720
|
-
|
|
30721
|
-
|
|
31345
|
+
{
|
|
31346
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
31347
|
+
if (unlikely(result < 0))
|
|
31348
|
+
return (int) -1;
|
|
31349
|
+
if (unlikely(result == 1))
|
|
31350
|
+
goto raise_neg_overflow;
|
|
31351
|
+
}
|
|
30722
31352
|
#endif
|
|
30723
|
-
|
|
30724
|
-
|
|
31353
|
+
if ((sizeof(int) <= sizeof(unsigned long))) {
|
|
31354
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
|
|
30725
31355
|
#ifdef HAVE_LONG_LONG
|
|
30726
|
-
|
|
30727
|
-
|
|
31356
|
+
} else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
31357
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
30728
31358
|
#endif
|
|
30729
|
-
|
|
30730
|
-
|
|
31359
|
+
}
|
|
31360
|
+
} else {
|
|
30731
31361
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
30732
|
-
|
|
30733
|
-
|
|
30734
|
-
|
|
30735
|
-
|
|
30736
|
-
|
|
30737
|
-
|
|
30738
|
-
|
|
30739
|
-
|
|
30740
|
-
|
|
30741
|
-
|
|
30742
|
-
|
|
30743
|
-
|
|
30744
|
-
}
|
|
31362
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
31363
|
+
__PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
31364
|
+
} else {
|
|
31365
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
31366
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
31367
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
31368
|
+
case -2:
|
|
31369
|
+
if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
|
|
31370
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
31371
|
+
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31372
|
+
} else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
31373
|
+
return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
30745
31374
|
}
|
|
30746
|
-
|
|
30747
|
-
|
|
30748
|
-
|
|
30749
|
-
|
|
30750
|
-
|
|
30751
|
-
|
|
30752
|
-
|
|
30753
|
-
|
|
31375
|
+
}
|
|
31376
|
+
break;
|
|
31377
|
+
case 2:
|
|
31378
|
+
if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
|
|
31379
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
31380
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31381
|
+
} else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
31382
|
+
return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
30754
31383
|
}
|
|
30755
|
-
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
|
|
30759
|
-
|
|
30760
|
-
|
|
30761
|
-
|
|
30762
|
-
|
|
31384
|
+
}
|
|
31385
|
+
break;
|
|
31386
|
+
case -3:
|
|
31387
|
+
if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
31388
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
31389
|
+
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31390
|
+
} else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
31391
|
+
return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
30763
31392
|
}
|
|
30764
|
-
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
31393
|
+
}
|
|
31394
|
+
break;
|
|
31395
|
+
case 3:
|
|
31396
|
+
if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
|
|
31397
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
31398
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31399
|
+
} else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
31400
|
+
return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
30772
31401
|
}
|
|
30773
|
-
|
|
30774
|
-
|
|
30775
|
-
|
|
30776
|
-
|
|
30777
|
-
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
|
|
31402
|
+
}
|
|
31403
|
+
break;
|
|
31404
|
+
case -4:
|
|
31405
|
+
if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
31406
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
31407
|
+
__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])))
|
|
31408
|
+
} else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
|
|
31409
|
+
return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
30781
31410
|
}
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30786
|
-
|
|
30787
|
-
|
|
30788
|
-
|
|
30789
|
-
|
|
31411
|
+
}
|
|
31412
|
+
break;
|
|
31413
|
+
case 4:
|
|
31414
|
+
if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
|
|
31415
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
31416
|
+
__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])))
|
|
31417
|
+
} else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
|
|
31418
|
+
return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
30790
31419
|
}
|
|
30791
|
-
|
|
30792
|
-
|
|
31420
|
+
}
|
|
31421
|
+
break;
|
|
30793
31422
|
}
|
|
31423
|
+
}
|
|
30794
31424
|
#endif
|
|
30795
|
-
|
|
30796
|
-
|
|
31425
|
+
if ((sizeof(int) <= sizeof(long))) {
|
|
31426
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
|
|
30797
31427
|
#ifdef HAVE_LONG_LONG
|
|
30798
|
-
|
|
30799
|
-
|
|
31428
|
+
} else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
|
|
31429
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
30800
31430
|
#endif
|
|
30801
|
-
}
|
|
30802
31431
|
}
|
|
30803
|
-
|
|
30804
|
-
|
|
30805
|
-
|
|
30806
|
-
|
|
30807
|
-
|
|
30808
|
-
|
|
30809
|
-
|
|
30810
|
-
|
|
30811
|
-
|
|
30812
|
-
|
|
30813
|
-
|
|
30814
|
-
|
|
30815
|
-
|
|
30816
|
-
|
|
30817
|
-
|
|
30818
|
-
|
|
30819
|
-
|
|
30820
|
-
|
|
30821
|
-
|
|
30822
|
-
|
|
30823
|
-
|
|
30824
|
-
|
|
30825
|
-
|
|
30826
|
-
|
|
30827
|
-
|
|
30828
|
-
|
|
30829
|
-
|
|
30830
|
-
|
|
30831
|
-
|
|
30832
|
-
|
|
30833
|
-
|
|
30834
|
-
|
|
30835
|
-
|
|
30836
|
-
|
|
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
|
|
31432
|
+
}
|
|
31433
|
+
{
|
|
31434
|
+
int val;
|
|
31435
|
+
int ret = -1;
|
|
31436
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
31437
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
31438
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
31439
|
+
if (unlikely(bytes_copied == -1)) {
|
|
31440
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
31441
|
+
goto raise_overflow;
|
|
31442
|
+
} else {
|
|
31443
|
+
ret = 0;
|
|
31444
|
+
}
|
|
31445
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
31446
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
31447
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
31448
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
31449
|
+
bytes, sizeof(val),
|
|
31450
|
+
is_little, !is_unsigned);
|
|
31451
|
+
#else
|
|
31452
|
+
PyObject *v;
|
|
31453
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
31454
|
+
int bits, remaining_bits, is_negative = 0;
|
|
31455
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
31456
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
31457
|
+
v = __Pyx_NewRef(x);
|
|
31458
|
+
} else {
|
|
31459
|
+
v = PyNumber_Long(x);
|
|
31460
|
+
if (unlikely(!v)) return (int) -1;
|
|
31461
|
+
assert(PyLong_CheckExact(v));
|
|
31462
|
+
}
|
|
31463
|
+
{
|
|
31464
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
31465
|
+
if (unlikely(result < 0)) {
|
|
30894
31466
|
Py_DECREF(v);
|
|
30895
|
-
|
|
30896
|
-
return val;
|
|
31467
|
+
return (int) -1;
|
|
30897
31468
|
}
|
|
30898
|
-
|
|
31469
|
+
is_negative = result == 1;
|
|
30899
31470
|
}
|
|
30900
|
-
|
|
30901
|
-
|
|
30902
|
-
|
|
30903
|
-
|
|
30904
|
-
|
|
30905
|
-
|
|
31471
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
31472
|
+
Py_DECREF(v);
|
|
31473
|
+
goto raise_neg_overflow;
|
|
31474
|
+
} else if (is_negative) {
|
|
31475
|
+
stepval = PyNumber_Invert(v);
|
|
31476
|
+
Py_DECREF(v);
|
|
31477
|
+
if (unlikely(!stepval))
|
|
31478
|
+
return (int) -1;
|
|
31479
|
+
} else {
|
|
31480
|
+
stepval = v;
|
|
31481
|
+
}
|
|
31482
|
+
v = NULL;
|
|
31483
|
+
val = (int) 0;
|
|
31484
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
31485
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
31486
|
+
for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
|
|
31487
|
+
PyObject *tmp, *digit;
|
|
31488
|
+
long idigit;
|
|
31489
|
+
digit = PyNumber_And(stepval, mask);
|
|
31490
|
+
if (unlikely(!digit)) goto done;
|
|
31491
|
+
idigit = PyLong_AsLong(digit);
|
|
31492
|
+
Py_DECREF(digit);
|
|
31493
|
+
if (unlikely(idigit < 0)) goto done;
|
|
31494
|
+
val |= ((int) idigit) << bits;
|
|
31495
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
31496
|
+
if (unlikely(!tmp)) goto done;
|
|
31497
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
31498
|
+
}
|
|
31499
|
+
Py_DECREF(shift); shift = NULL;
|
|
31500
|
+
Py_DECREF(mask); mask = NULL;
|
|
31501
|
+
{
|
|
31502
|
+
long idigit = PyLong_AsLong(stepval);
|
|
31503
|
+
if (unlikely(idigit < 0)) goto done;
|
|
31504
|
+
remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
31505
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
31506
|
+
goto raise_overflow;
|
|
31507
|
+
val |= ((int) idigit) << bits;
|
|
31508
|
+
}
|
|
31509
|
+
if (!is_unsigned) {
|
|
31510
|
+
if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
|
|
31511
|
+
goto raise_overflow;
|
|
31512
|
+
if (is_negative)
|
|
31513
|
+
val = ~val;
|
|
31514
|
+
}
|
|
31515
|
+
ret = 0;
|
|
31516
|
+
done:
|
|
31517
|
+
Py_XDECREF(shift);
|
|
31518
|
+
Py_XDECREF(mask);
|
|
31519
|
+
Py_XDECREF(stepval);
|
|
31520
|
+
#endif
|
|
31521
|
+
if (unlikely(ret))
|
|
31522
|
+
return (int) -1;
|
|
30906
31523
|
return val;
|
|
30907
31524
|
}
|
|
30908
31525
|
raise_overflow:
|
|
@@ -30946,12 +31563,19 @@ raise_neg_overflow:
|
|
|
30946
31563
|
}
|
|
30947
31564
|
}
|
|
30948
31565
|
{
|
|
30949
|
-
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
30950
31566
|
unsigned char *bytes = (unsigned char *)&value;
|
|
30951
|
-
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX
|
|
31567
|
+
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
|
|
31568
|
+
if (is_unsigned) {
|
|
31569
|
+
return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
|
|
31570
|
+
} else {
|
|
31571
|
+
return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
|
|
31572
|
+
}
|
|
31573
|
+
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
|
|
31574
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
30952
31575
|
return _PyLong_FromByteArray(bytes, sizeof(long),
|
|
30953
31576
|
little, !is_unsigned);
|
|
30954
31577
|
#else
|
|
31578
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
30955
31579
|
PyObject *from_bytes, *result = NULL;
|
|
30956
31580
|
PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
|
|
30957
31581
|
from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
|
|
@@ -31010,12 +31634,19 @@ raise_neg_overflow:
|
|
|
31010
31634
|
}
|
|
31011
31635
|
}
|
|
31012
31636
|
{
|
|
31013
|
-
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
31014
31637
|
unsigned char *bytes = (unsigned char *)&value;
|
|
31015
|
-
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX
|
|
31638
|
+
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
|
|
31639
|
+
if (is_unsigned) {
|
|
31640
|
+
return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
|
|
31641
|
+
} else {
|
|
31642
|
+
return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
|
|
31643
|
+
}
|
|
31644
|
+
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
|
|
31645
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
31016
31646
|
return _PyLong_FromByteArray(bytes, sizeof(int),
|
|
31017
31647
|
little, !is_unsigned);
|
|
31018
31648
|
#else
|
|
31649
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
31019
31650
|
PyObject *from_bytes, *result = NULL;
|
|
31020
31651
|
PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
|
|
31021
31652
|
from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
|
|
@@ -31065,245 +31696,239 @@ raise_neg_overflow:
|
|
|
31065
31696
|
}
|
|
31066
31697
|
return (long) val;
|
|
31067
31698
|
}
|
|
31068
|
-
}
|
|
31699
|
+
}
|
|
31069
31700
|
#endif
|
|
31070
|
-
if (
|
|
31071
|
-
|
|
31701
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
31702
|
+
long val;
|
|
31703
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
31704
|
+
if (!tmp) return (long) -1;
|
|
31705
|
+
val = __Pyx_PyInt_As_long(tmp);
|
|
31706
|
+
Py_DECREF(tmp);
|
|
31707
|
+
return val;
|
|
31708
|
+
}
|
|
31709
|
+
if (is_unsigned) {
|
|
31072
31710
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
31082
|
-
|
|
31083
|
-
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
}
|
|
31711
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
31712
|
+
goto raise_neg_overflow;
|
|
31713
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
31714
|
+
__PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
31715
|
+
} else {
|
|
31716
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
31717
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
31718
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
31719
|
+
case 2:
|
|
31720
|
+
if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
|
|
31721
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
31722
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31723
|
+
} else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
|
|
31724
|
+
return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
31088
31725
|
}
|
|
31089
|
-
|
|
31090
|
-
|
|
31091
|
-
|
|
31092
|
-
|
|
31093
|
-
|
|
31094
|
-
|
|
31095
|
-
|
|
31096
|
-
|
|
31726
|
+
}
|
|
31727
|
+
break;
|
|
31728
|
+
case 3:
|
|
31729
|
+
if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
|
|
31730
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
31731
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31732
|
+
} else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
|
|
31733
|
+
return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
31097
31734
|
}
|
|
31098
|
-
|
|
31099
|
-
|
|
31100
|
-
|
|
31101
|
-
|
|
31102
|
-
|
|
31103
|
-
|
|
31104
|
-
|
|
31105
|
-
|
|
31735
|
+
}
|
|
31736
|
+
break;
|
|
31737
|
+
case 4:
|
|
31738
|
+
if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
|
|
31739
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
31740
|
+
__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])))
|
|
31741
|
+
} else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
|
|
31742
|
+
return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
31106
31743
|
}
|
|
31107
|
-
|
|
31108
|
-
|
|
31744
|
+
}
|
|
31745
|
+
break;
|
|
31109
31746
|
}
|
|
31747
|
+
}
|
|
31110
31748
|
#endif
|
|
31111
31749
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
31112
|
-
|
|
31113
|
-
|
|
31114
|
-
|
|
31750
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
31751
|
+
goto raise_neg_overflow;
|
|
31752
|
+
}
|
|
31115
31753
|
#else
|
|
31116
|
-
|
|
31117
|
-
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
|
|
31121
|
-
|
|
31122
|
-
|
|
31754
|
+
{
|
|
31755
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
31756
|
+
if (unlikely(result < 0))
|
|
31757
|
+
return (long) -1;
|
|
31758
|
+
if (unlikely(result == 1))
|
|
31759
|
+
goto raise_neg_overflow;
|
|
31760
|
+
}
|
|
31123
31761
|
#endif
|
|
31124
|
-
|
|
31125
|
-
|
|
31762
|
+
if ((sizeof(long) <= sizeof(unsigned long))) {
|
|
31763
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
|
|
31126
31764
|
#ifdef HAVE_LONG_LONG
|
|
31127
|
-
|
|
31128
|
-
|
|
31765
|
+
} else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
31766
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
31129
31767
|
#endif
|
|
31130
|
-
|
|
31131
|
-
|
|
31768
|
+
}
|
|
31769
|
+
} else {
|
|
31132
31770
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
31133
|
-
|
|
31134
|
-
|
|
31135
|
-
|
|
31136
|
-
|
|
31137
|
-
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
31141
|
-
|
|
31142
|
-
|
|
31143
|
-
|
|
31144
|
-
|
|
31145
|
-
}
|
|
31771
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
31772
|
+
__PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
31773
|
+
} else {
|
|
31774
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
31775
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
31776
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
31777
|
+
case -2:
|
|
31778
|
+
if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
|
|
31779
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
31780
|
+
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31781
|
+
} else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
31782
|
+
return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
31146
31783
|
}
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
|
|
31151
|
-
|
|
31152
|
-
|
|
31153
|
-
|
|
31154
|
-
|
|
31784
|
+
}
|
|
31785
|
+
break;
|
|
31786
|
+
case 2:
|
|
31787
|
+
if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
|
|
31788
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
31789
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31790
|
+
} else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
31791
|
+
return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
31155
31792
|
}
|
|
31156
|
-
|
|
31157
|
-
|
|
31158
|
-
|
|
31159
|
-
|
|
31160
|
-
|
|
31161
|
-
|
|
31162
|
-
|
|
31163
|
-
|
|
31793
|
+
}
|
|
31794
|
+
break;
|
|
31795
|
+
case -3:
|
|
31796
|
+
if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
31797
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
31798
|
+
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31799
|
+
} else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
31800
|
+
return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
31164
31801
|
}
|
|
31165
|
-
|
|
31166
|
-
|
|
31167
|
-
|
|
31168
|
-
|
|
31169
|
-
|
|
31170
|
-
|
|
31171
|
-
|
|
31172
|
-
|
|
31802
|
+
}
|
|
31803
|
+
break;
|
|
31804
|
+
case 3:
|
|
31805
|
+
if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
|
|
31806
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
31807
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31808
|
+
} else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
31809
|
+
return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
31173
31810
|
}
|
|
31174
|
-
|
|
31175
|
-
|
|
31176
|
-
|
|
31177
|
-
|
|
31178
|
-
|
|
31179
|
-
|
|
31180
|
-
|
|
31181
|
-
|
|
31811
|
+
}
|
|
31812
|
+
break;
|
|
31813
|
+
case -4:
|
|
31814
|
+
if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
31815
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
31816
|
+
__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])))
|
|
31817
|
+
} else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
|
|
31818
|
+
return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
31182
31819
|
}
|
|
31183
|
-
|
|
31184
|
-
|
|
31185
|
-
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31190
|
-
|
|
31820
|
+
}
|
|
31821
|
+
break;
|
|
31822
|
+
case 4:
|
|
31823
|
+
if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
|
|
31824
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
31825
|
+
__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])))
|
|
31826
|
+
} else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
|
|
31827
|
+
return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
31191
31828
|
}
|
|
31192
|
-
|
|
31193
|
-
|
|
31829
|
+
}
|
|
31830
|
+
break;
|
|
31194
31831
|
}
|
|
31832
|
+
}
|
|
31195
31833
|
#endif
|
|
31196
|
-
|
|
31197
|
-
|
|
31834
|
+
if ((sizeof(long) <= sizeof(long))) {
|
|
31835
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
|
|
31198
31836
|
#ifdef HAVE_LONG_LONG
|
|
31199
|
-
|
|
31200
|
-
|
|
31837
|
+
} else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
|
|
31838
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
31201
31839
|
#endif
|
|
31202
|
-
|
|
31840
|
+
}
|
|
31841
|
+
}
|
|
31842
|
+
{
|
|
31843
|
+
long val;
|
|
31844
|
+
int ret = -1;
|
|
31845
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
31846
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
31847
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
31848
|
+
if (unlikely(bytes_copied == -1)) {
|
|
31849
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
31850
|
+
goto raise_overflow;
|
|
31851
|
+
} else {
|
|
31852
|
+
ret = 0;
|
|
31853
|
+
}
|
|
31854
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
31855
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
31856
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
31857
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
31858
|
+
bytes, sizeof(val),
|
|
31859
|
+
is_little, !is_unsigned);
|
|
31860
|
+
#else
|
|
31861
|
+
PyObject *v;
|
|
31862
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
31863
|
+
int bits, remaining_bits, is_negative = 0;
|
|
31864
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
31865
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
31866
|
+
v = __Pyx_NewRef(x);
|
|
31867
|
+
} else {
|
|
31868
|
+
v = PyNumber_Long(x);
|
|
31869
|
+
if (unlikely(!v)) return (long) -1;
|
|
31870
|
+
assert(PyLong_CheckExact(v));
|
|
31203
31871
|
}
|
|
31204
31872
|
{
|
|
31205
|
-
|
|
31206
|
-
|
|
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
|
|
31873
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
31874
|
+
if (unlikely(result < 0)) {
|
|
31295
31875
|
Py_DECREF(v);
|
|
31296
|
-
|
|
31297
|
-
return val;
|
|
31876
|
+
return (long) -1;
|
|
31298
31877
|
}
|
|
31299
|
-
|
|
31878
|
+
is_negative = result == 1;
|
|
31300
31879
|
}
|
|
31301
|
-
|
|
31302
|
-
|
|
31303
|
-
|
|
31304
|
-
|
|
31305
|
-
|
|
31306
|
-
|
|
31880
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
31881
|
+
Py_DECREF(v);
|
|
31882
|
+
goto raise_neg_overflow;
|
|
31883
|
+
} else if (is_negative) {
|
|
31884
|
+
stepval = PyNumber_Invert(v);
|
|
31885
|
+
Py_DECREF(v);
|
|
31886
|
+
if (unlikely(!stepval))
|
|
31887
|
+
return (long) -1;
|
|
31888
|
+
} else {
|
|
31889
|
+
stepval = v;
|
|
31890
|
+
}
|
|
31891
|
+
v = NULL;
|
|
31892
|
+
val = (long) 0;
|
|
31893
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
31894
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
31895
|
+
for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
|
|
31896
|
+
PyObject *tmp, *digit;
|
|
31897
|
+
long idigit;
|
|
31898
|
+
digit = PyNumber_And(stepval, mask);
|
|
31899
|
+
if (unlikely(!digit)) goto done;
|
|
31900
|
+
idigit = PyLong_AsLong(digit);
|
|
31901
|
+
Py_DECREF(digit);
|
|
31902
|
+
if (unlikely(idigit < 0)) goto done;
|
|
31903
|
+
val |= ((long) idigit) << bits;
|
|
31904
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
31905
|
+
if (unlikely(!tmp)) goto done;
|
|
31906
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
31907
|
+
}
|
|
31908
|
+
Py_DECREF(shift); shift = NULL;
|
|
31909
|
+
Py_DECREF(mask); mask = NULL;
|
|
31910
|
+
{
|
|
31911
|
+
long idigit = PyLong_AsLong(stepval);
|
|
31912
|
+
if (unlikely(idigit < 0)) goto done;
|
|
31913
|
+
remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
31914
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
31915
|
+
goto raise_overflow;
|
|
31916
|
+
val |= ((long) idigit) << bits;
|
|
31917
|
+
}
|
|
31918
|
+
if (!is_unsigned) {
|
|
31919
|
+
if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
|
|
31920
|
+
goto raise_overflow;
|
|
31921
|
+
if (is_negative)
|
|
31922
|
+
val = ~val;
|
|
31923
|
+
}
|
|
31924
|
+
ret = 0;
|
|
31925
|
+
done:
|
|
31926
|
+
Py_XDECREF(shift);
|
|
31927
|
+
Py_XDECREF(mask);
|
|
31928
|
+
Py_XDECREF(stepval);
|
|
31929
|
+
#endif
|
|
31930
|
+
if (unlikely(ret))
|
|
31931
|
+
return (long) -1;
|
|
31307
31932
|
return val;
|
|
31308
31933
|
}
|
|
31309
31934
|
raise_overflow:
|
|
@@ -31338,245 +31963,239 @@ raise_neg_overflow:
|
|
|
31338
31963
|
}
|
|
31339
31964
|
return (char) val;
|
|
31340
31965
|
}
|
|
31341
|
-
}
|
|
31966
|
+
}
|
|
31342
31967
|
#endif
|
|
31343
|
-
if (
|
|
31344
|
-
|
|
31968
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
31969
|
+
char val;
|
|
31970
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
31971
|
+
if (!tmp) return (char) -1;
|
|
31972
|
+
val = __Pyx_PyInt_As_char(tmp);
|
|
31973
|
+
Py_DECREF(tmp);
|
|
31974
|
+
return val;
|
|
31975
|
+
}
|
|
31976
|
+
if (is_unsigned) {
|
|
31345
31977
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
31346
|
-
|
|
31347
|
-
|
|
31348
|
-
|
|
31349
|
-
|
|
31350
|
-
|
|
31351
|
-
|
|
31352
|
-
|
|
31353
|
-
|
|
31354
|
-
|
|
31355
|
-
|
|
31356
|
-
|
|
31357
|
-
|
|
31358
|
-
|
|
31359
|
-
|
|
31360
|
-
}
|
|
31978
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
31979
|
+
goto raise_neg_overflow;
|
|
31980
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
31981
|
+
__PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
31982
|
+
} else {
|
|
31983
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
31984
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
31985
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
31986
|
+
case 2:
|
|
31987
|
+
if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
|
|
31988
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
31989
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31990
|
+
} else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
|
|
31991
|
+
return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
31361
31992
|
}
|
|
31362
|
-
|
|
31363
|
-
|
|
31364
|
-
|
|
31365
|
-
|
|
31366
|
-
|
|
31367
|
-
|
|
31368
|
-
|
|
31369
|
-
|
|
31993
|
+
}
|
|
31994
|
+
break;
|
|
31995
|
+
case 3:
|
|
31996
|
+
if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
|
|
31997
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
31998
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
31999
|
+
} else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
|
|
32000
|
+
return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
31370
32001
|
}
|
|
31371
|
-
|
|
31372
|
-
|
|
31373
|
-
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
|
|
31378
|
-
|
|
32002
|
+
}
|
|
32003
|
+
break;
|
|
32004
|
+
case 4:
|
|
32005
|
+
if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
|
|
32006
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
32007
|
+
__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])))
|
|
32008
|
+
} else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
|
|
32009
|
+
return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
31379
32010
|
}
|
|
31380
|
-
|
|
31381
|
-
|
|
32011
|
+
}
|
|
32012
|
+
break;
|
|
31382
32013
|
}
|
|
32014
|
+
}
|
|
31383
32015
|
#endif
|
|
31384
32016
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
31385
|
-
|
|
31386
|
-
|
|
31387
|
-
|
|
32017
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
32018
|
+
goto raise_neg_overflow;
|
|
32019
|
+
}
|
|
31388
32020
|
#else
|
|
31389
|
-
|
|
31390
|
-
|
|
31391
|
-
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31395
|
-
|
|
32021
|
+
{
|
|
32022
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
32023
|
+
if (unlikely(result < 0))
|
|
32024
|
+
return (char) -1;
|
|
32025
|
+
if (unlikely(result == 1))
|
|
32026
|
+
goto raise_neg_overflow;
|
|
32027
|
+
}
|
|
31396
32028
|
#endif
|
|
31397
|
-
|
|
31398
|
-
|
|
32029
|
+
if ((sizeof(char) <= sizeof(unsigned long))) {
|
|
32030
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
|
|
31399
32031
|
#ifdef HAVE_LONG_LONG
|
|
31400
|
-
|
|
31401
|
-
|
|
32032
|
+
} else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
32033
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
31402
32034
|
#endif
|
|
31403
|
-
|
|
31404
|
-
|
|
32035
|
+
}
|
|
32036
|
+
} else {
|
|
31405
32037
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
31406
|
-
|
|
31407
|
-
|
|
31408
|
-
|
|
31409
|
-
|
|
31410
|
-
|
|
31411
|
-
|
|
31412
|
-
|
|
31413
|
-
|
|
31414
|
-
|
|
31415
|
-
|
|
31416
|
-
|
|
31417
|
-
|
|
31418
|
-
}
|
|
32038
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
32039
|
+
__PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
32040
|
+
} else {
|
|
32041
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
32042
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
32043
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
32044
|
+
case -2:
|
|
32045
|
+
if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
|
|
32046
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
32047
|
+
__PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
32048
|
+
} else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
32049
|
+
return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
31419
32050
|
}
|
|
31420
|
-
|
|
31421
|
-
|
|
31422
|
-
|
|
31423
|
-
|
|
31424
|
-
|
|
31425
|
-
|
|
31426
|
-
|
|
31427
|
-
|
|
32051
|
+
}
|
|
32052
|
+
break;
|
|
32053
|
+
case 2:
|
|
32054
|
+
if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
|
|
32055
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
32056
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
32057
|
+
} else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
32058
|
+
return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
31428
32059
|
}
|
|
31429
|
-
|
|
31430
|
-
|
|
31431
|
-
|
|
31432
|
-
|
|
31433
|
-
|
|
31434
|
-
|
|
31435
|
-
|
|
31436
|
-
|
|
32060
|
+
}
|
|
32061
|
+
break;
|
|
32062
|
+
case -3:
|
|
32063
|
+
if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
32064
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
32065
|
+
__PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
32066
|
+
} else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
32067
|
+
return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
31437
32068
|
}
|
|
31438
|
-
|
|
31439
|
-
|
|
31440
|
-
|
|
31441
|
-
|
|
31442
|
-
|
|
31443
|
-
|
|
31444
|
-
|
|
31445
|
-
|
|
32069
|
+
}
|
|
32070
|
+
break;
|
|
32071
|
+
case 3:
|
|
32072
|
+
if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
|
|
32073
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
32074
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
32075
|
+
} else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
32076
|
+
return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
31446
32077
|
}
|
|
31447
|
-
|
|
31448
|
-
|
|
31449
|
-
|
|
31450
|
-
|
|
31451
|
-
|
|
31452
|
-
|
|
31453
|
-
|
|
31454
|
-
|
|
32078
|
+
}
|
|
32079
|
+
break;
|
|
32080
|
+
case -4:
|
|
32081
|
+
if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
32082
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
32083
|
+
__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])))
|
|
32084
|
+
} else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
|
|
32085
|
+
return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
31455
32086
|
}
|
|
31456
|
-
|
|
31457
|
-
|
|
31458
|
-
|
|
31459
|
-
|
|
31460
|
-
|
|
31461
|
-
|
|
31462
|
-
|
|
31463
|
-
|
|
32087
|
+
}
|
|
32088
|
+
break;
|
|
32089
|
+
case 4:
|
|
32090
|
+
if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
|
|
32091
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
32092
|
+
__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])))
|
|
32093
|
+
} else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
|
|
32094
|
+
return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
31464
32095
|
}
|
|
31465
|
-
|
|
31466
|
-
|
|
32096
|
+
}
|
|
32097
|
+
break;
|
|
31467
32098
|
}
|
|
32099
|
+
}
|
|
31468
32100
|
#endif
|
|
31469
|
-
|
|
31470
|
-
|
|
32101
|
+
if ((sizeof(char) <= sizeof(long))) {
|
|
32102
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
|
|
31471
32103
|
#ifdef HAVE_LONG_LONG
|
|
31472
|
-
|
|
31473
|
-
|
|
32104
|
+
} else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
|
|
32105
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
31474
32106
|
#endif
|
|
31475
|
-
|
|
32107
|
+
}
|
|
32108
|
+
}
|
|
32109
|
+
{
|
|
32110
|
+
char val;
|
|
32111
|
+
int ret = -1;
|
|
32112
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
32113
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
32114
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
32115
|
+
if (unlikely(bytes_copied == -1)) {
|
|
32116
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
32117
|
+
goto raise_overflow;
|
|
32118
|
+
} else {
|
|
32119
|
+
ret = 0;
|
|
32120
|
+
}
|
|
32121
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
32122
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
32123
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
32124
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
32125
|
+
bytes, sizeof(val),
|
|
32126
|
+
is_little, !is_unsigned);
|
|
32127
|
+
#else
|
|
32128
|
+
PyObject *v;
|
|
32129
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
32130
|
+
int bits, remaining_bits, is_negative = 0;
|
|
32131
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
32132
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
32133
|
+
v = __Pyx_NewRef(x);
|
|
32134
|
+
} else {
|
|
32135
|
+
v = PyNumber_Long(x);
|
|
32136
|
+
if (unlikely(!v)) return (char) -1;
|
|
32137
|
+
assert(PyLong_CheckExact(v));
|
|
31476
32138
|
}
|
|
31477
32139
|
{
|
|
31478
|
-
|
|
31479
|
-
|
|
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
|
|
32140
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
32141
|
+
if (unlikely(result < 0)) {
|
|
31568
32142
|
Py_DECREF(v);
|
|
31569
|
-
|
|
31570
|
-
return val;
|
|
32143
|
+
return (char) -1;
|
|
31571
32144
|
}
|
|
31572
|
-
|
|
32145
|
+
is_negative = result == 1;
|
|
31573
32146
|
}
|
|
31574
|
-
|
|
31575
|
-
|
|
31576
|
-
|
|
31577
|
-
|
|
31578
|
-
|
|
31579
|
-
|
|
32147
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
32148
|
+
Py_DECREF(v);
|
|
32149
|
+
goto raise_neg_overflow;
|
|
32150
|
+
} else if (is_negative) {
|
|
32151
|
+
stepval = PyNumber_Invert(v);
|
|
32152
|
+
Py_DECREF(v);
|
|
32153
|
+
if (unlikely(!stepval))
|
|
32154
|
+
return (char) -1;
|
|
32155
|
+
} else {
|
|
32156
|
+
stepval = v;
|
|
32157
|
+
}
|
|
32158
|
+
v = NULL;
|
|
32159
|
+
val = (char) 0;
|
|
32160
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
32161
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
32162
|
+
for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
|
|
32163
|
+
PyObject *tmp, *digit;
|
|
32164
|
+
long idigit;
|
|
32165
|
+
digit = PyNumber_And(stepval, mask);
|
|
32166
|
+
if (unlikely(!digit)) goto done;
|
|
32167
|
+
idigit = PyLong_AsLong(digit);
|
|
32168
|
+
Py_DECREF(digit);
|
|
32169
|
+
if (unlikely(idigit < 0)) goto done;
|
|
32170
|
+
val |= ((char) idigit) << bits;
|
|
32171
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
32172
|
+
if (unlikely(!tmp)) goto done;
|
|
32173
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
32174
|
+
}
|
|
32175
|
+
Py_DECREF(shift); shift = NULL;
|
|
32176
|
+
Py_DECREF(mask); mask = NULL;
|
|
32177
|
+
{
|
|
32178
|
+
long idigit = PyLong_AsLong(stepval);
|
|
32179
|
+
if (unlikely(idigit < 0)) goto done;
|
|
32180
|
+
remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
32181
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
32182
|
+
goto raise_overflow;
|
|
32183
|
+
val |= ((char) idigit) << bits;
|
|
32184
|
+
}
|
|
32185
|
+
if (!is_unsigned) {
|
|
32186
|
+
if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
|
|
32187
|
+
goto raise_overflow;
|
|
32188
|
+
if (is_negative)
|
|
32189
|
+
val = ~val;
|
|
32190
|
+
}
|
|
32191
|
+
ret = 0;
|
|
32192
|
+
done:
|
|
32193
|
+
Py_XDECREF(shift);
|
|
32194
|
+
Py_XDECREF(mask);
|
|
32195
|
+
Py_XDECREF(stepval);
|
|
32196
|
+
#endif
|
|
32197
|
+
if (unlikely(ret))
|
|
32198
|
+
return (char) -1;
|
|
31580
32199
|
return val;
|
|
31581
32200
|
}
|
|
31582
32201
|
raise_overflow:
|