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/core.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.core",
|
|
@@ -50,10 +50,10 @@ END: Cython Metadata */
|
|
|
50
50
|
#else
|
|
51
51
|
#define __PYX_EXTRA_ABI_MODULE_NAME ""
|
|
52
52
|
#endif
|
|
53
|
-
#define CYTHON_ABI "
|
|
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
|
|
@@ -1694,7 +1694,7 @@ typedef struct {
|
|
|
1694
1694
|
|
|
1695
1695
|
/* #### Code section: numeric_typedefs ### */
|
|
1696
1696
|
|
|
1697
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1697
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":770
|
|
1698
1698
|
* # in Cython to enable them only on the right systems.
|
|
1699
1699
|
*
|
|
1700
1700
|
* ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
|
|
@@ -1703,7 +1703,7 @@ typedef struct {
|
|
|
1703
1703
|
*/
|
|
1704
1704
|
typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
1705
1705
|
|
|
1706
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1706
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":771
|
|
1707
1707
|
*
|
|
1708
1708
|
* ctypedef npy_int8 int8_t
|
|
1709
1709
|
* ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
|
|
@@ -1712,7 +1712,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
|
1712
1712
|
*/
|
|
1713
1713
|
typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
1714
1714
|
|
|
1715
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1715
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":772
|
|
1716
1716
|
* ctypedef npy_int8 int8_t
|
|
1717
1717
|
* ctypedef npy_int16 int16_t
|
|
1718
1718
|
* ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
|
|
@@ -1721,7 +1721,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
|
1721
1721
|
*/
|
|
1722
1722
|
typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
1723
1723
|
|
|
1724
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1724
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":773
|
|
1725
1725
|
* ctypedef npy_int16 int16_t
|
|
1726
1726
|
* ctypedef npy_int32 int32_t
|
|
1727
1727
|
* ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
|
|
@@ -1730,7 +1730,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
|
1730
1730
|
*/
|
|
1731
1731
|
typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
1732
1732
|
|
|
1733
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1733
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":777
|
|
1734
1734
|
* #ctypedef npy_int128 int128_t
|
|
1735
1735
|
*
|
|
1736
1736
|
* ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
|
|
@@ -1739,7 +1739,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
|
1739
1739
|
*/
|
|
1740
1740
|
typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
1741
1741
|
|
|
1742
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1742
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":778
|
|
1743
1743
|
*
|
|
1744
1744
|
* ctypedef npy_uint8 uint8_t
|
|
1745
1745
|
* ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
|
|
@@ -1748,7 +1748,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
|
1748
1748
|
*/
|
|
1749
1749
|
typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
1750
1750
|
|
|
1751
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1751
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":779
|
|
1752
1752
|
* ctypedef npy_uint8 uint8_t
|
|
1753
1753
|
* ctypedef npy_uint16 uint16_t
|
|
1754
1754
|
* ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
|
|
@@ -1757,7 +1757,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
|
1757
1757
|
*/
|
|
1758
1758
|
typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
1759
1759
|
|
|
1760
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1760
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":780
|
|
1761
1761
|
* ctypedef npy_uint16 uint16_t
|
|
1762
1762
|
* ctypedef npy_uint32 uint32_t
|
|
1763
1763
|
* ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
|
|
@@ -1766,7 +1766,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
|
1766
1766
|
*/
|
|
1767
1767
|
typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
1768
1768
|
|
|
1769
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1769
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":784
|
|
1770
1770
|
* #ctypedef npy_uint128 uint128_t
|
|
1771
1771
|
*
|
|
1772
1772
|
* ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
|
|
@@ -1775,7 +1775,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
|
1775
1775
|
*/
|
|
1776
1776
|
typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
1777
1777
|
|
|
1778
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1778
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":785
|
|
1779
1779
|
*
|
|
1780
1780
|
* ctypedef npy_float32 float32_t
|
|
1781
1781
|
* ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
|
|
@@ -1784,43 +1784,25 @@ typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
|
1784
1784
|
*/
|
|
1785
1785
|
typedef npy_float64 __pyx_t_5numpy_float64_t;
|
|
1786
1786
|
|
|
1787
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1788
|
-
*
|
|
1789
|
-
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
1790
|
-
* ctypedef npy_long int_t # <<<<<<<<<<<<<<
|
|
1791
|
-
* ctypedef npy_longlong longlong_t
|
|
1787
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":792
|
|
1788
|
+
* ctypedef double complex complex128_t
|
|
1792
1789
|
*
|
|
1793
|
-
*/
|
|
1794
|
-
typedef npy_long __pyx_t_5numpy_int_t;
|
|
1795
|
-
|
|
1796
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":755
|
|
1797
|
-
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
1798
|
-
* ctypedef npy_long int_t
|
|
1799
1790
|
* ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
|
|
1800
|
-
*
|
|
1801
|
-
* ctypedef npy_ulong uint_t
|
|
1802
|
-
*/
|
|
1803
|
-
typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
1804
|
-
|
|
1805
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":757
|
|
1806
|
-
* ctypedef npy_longlong longlong_t
|
|
1807
|
-
*
|
|
1808
|
-
* ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
|
|
1809
1791
|
* ctypedef npy_ulonglong ulonglong_t
|
|
1810
1792
|
*
|
|
1811
1793
|
*/
|
|
1812
|
-
typedef
|
|
1794
|
+
typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
1813
1795
|
|
|
1814
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1796
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":793
|
|
1815
1797
|
*
|
|
1816
|
-
* ctypedef
|
|
1798
|
+
* ctypedef npy_longlong longlong_t
|
|
1817
1799
|
* ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
|
|
1818
1800
|
*
|
|
1819
1801
|
* ctypedef npy_intp intp_t
|
|
1820
1802
|
*/
|
|
1821
1803
|
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
1822
1804
|
|
|
1823
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1805
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":795
|
|
1824
1806
|
* ctypedef npy_ulonglong ulonglong_t
|
|
1825
1807
|
*
|
|
1826
1808
|
* ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
|
|
@@ -1829,7 +1811,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
|
1829
1811
|
*/
|
|
1830
1812
|
typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
1831
1813
|
|
|
1832
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1814
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":796
|
|
1833
1815
|
*
|
|
1834
1816
|
* ctypedef npy_intp intp_t
|
|
1835
1817
|
* ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
|
|
@@ -1838,7 +1820,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
|
1838
1820
|
*/
|
|
1839
1821
|
typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
1840
1822
|
|
|
1841
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1823
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":798
|
|
1842
1824
|
* ctypedef npy_uintp uintp_t
|
|
1843
1825
|
*
|
|
1844
1826
|
* ctypedef npy_double float_t # <<<<<<<<<<<<<<
|
|
@@ -1847,7 +1829,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
|
1847
1829
|
*/
|
|
1848
1830
|
typedef npy_double __pyx_t_5numpy_float_t;
|
|
1849
1831
|
|
|
1850
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1832
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":799
|
|
1851
1833
|
*
|
|
1852
1834
|
* ctypedef npy_double float_t
|
|
1853
1835
|
* ctypedef npy_double double_t # <<<<<<<<<<<<<<
|
|
@@ -1856,12 +1838,12 @@ typedef npy_double __pyx_t_5numpy_float_t;
|
|
|
1856
1838
|
*/
|
|
1857
1839
|
typedef npy_double __pyx_t_5numpy_double_t;
|
|
1858
1840
|
|
|
1859
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1841
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":800
|
|
1860
1842
|
* ctypedef npy_double float_t
|
|
1861
1843
|
* ctypedef npy_double double_t
|
|
1862
1844
|
* ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
|
|
1863
1845
|
*
|
|
1864
|
-
* ctypedef
|
|
1846
|
+
* ctypedef float complex cfloat_t
|
|
1865
1847
|
*/
|
|
1866
1848
|
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
|
|
1867
1849
|
/* #### Code section: complex_type_declarations ### */
|
|
@@ -1889,6 +1871,18 @@ static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(floa
|
|
|
1889
1871
|
#endif
|
|
1890
1872
|
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);
|
|
1891
1873
|
|
|
1874
|
+
/* Declarations.proto */
|
|
1875
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
1876
|
+
#ifdef __cplusplus
|
|
1877
|
+
typedef ::std::complex< long double > __pyx_t_long_double_complex;
|
|
1878
|
+
#else
|
|
1879
|
+
typedef long double _Complex __pyx_t_long_double_complex;
|
|
1880
|
+
#endif
|
|
1881
|
+
#else
|
|
1882
|
+
typedef struct { long double real, imag; } __pyx_t_long_double_complex;
|
|
1883
|
+
#endif
|
|
1884
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double, long double);
|
|
1885
|
+
|
|
1892
1886
|
/* #### Code section: type_declarations ### */
|
|
1893
1887
|
|
|
1894
1888
|
/*--- Type declarations ---*/
|
|
@@ -1898,41 +1892,23 @@ struct __pyx_MemviewEnum_obj;
|
|
|
1898
1892
|
struct __pyx_memoryview_obj;
|
|
1899
1893
|
struct __pyx_memoryviewslice_obj;
|
|
1900
1894
|
|
|
1901
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1902
|
-
* ctypedef npy_longdouble longdouble_t
|
|
1903
|
-
*
|
|
1904
|
-
* ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
|
|
1905
|
-
* ctypedef npy_cdouble cdouble_t
|
|
1906
|
-
* ctypedef npy_clongdouble clongdouble_t
|
|
1907
|
-
*/
|
|
1908
|
-
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
|
|
1909
|
-
|
|
1910
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":768
|
|
1911
|
-
*
|
|
1912
|
-
* ctypedef npy_cfloat cfloat_t
|
|
1913
|
-
* ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
|
|
1914
|
-
* ctypedef npy_clongdouble clongdouble_t
|
|
1895
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1096
|
|
1915
1896
|
*
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/cibw-run-2jqincfh/cp39-win_amd64/build/venv/lib/site-packages/numpy/__init__.cython-30.pxd":769
|
|
1920
|
-
* ctypedef npy_cfloat cfloat_t
|
|
1921
|
-
* ctypedef npy_cdouble cdouble_t
|
|
1922
|
-
* ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
|
|
1897
|
+
* # Iterator API added in v1.6
|
|
1898
|
+
* ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil # <<<<<<<<<<<<<<
|
|
1899
|
+
* ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil
|
|
1923
1900
|
*
|
|
1924
|
-
* ctypedef npy_cdouble complex_t
|
|
1925
1901
|
*/
|
|
1926
|
-
typedef
|
|
1902
|
+
typedef int (*__pyx_t_5numpy_NpyIter_IterNextFunc)(NpyIter *);
|
|
1927
1903
|
|
|
1928
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
1929
|
-
*
|
|
1904
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1097
|
|
1905
|
+
* # Iterator API added in v1.6
|
|
1906
|
+
* ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil
|
|
1907
|
+
* ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil # <<<<<<<<<<<<<<
|
|
1930
1908
|
*
|
|
1931
|
-
*
|
|
1932
|
-
*
|
|
1933
|
-
* cdef inline object PyArray_MultiIterNew1(a):
|
|
1909
|
+
* cdef extern from "numpy/arrayobject.h":
|
|
1934
1910
|
*/
|
|
1935
|
-
typedef
|
|
1911
|
+
typedef void (*__pyx_t_5numpy_NpyIter_GetMultiIndexFunc)(NpyIter *, npy_intp *);
|
|
1936
1912
|
|
|
1937
1913
|
/* "sknetwork/topology/minheap.pxd":10
|
|
1938
1914
|
* from libcpp.vector cimport vector
|
|
@@ -2340,7 +2316,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
|
|
|
2340
2316
|
#if !CYTHON_VECTORCALL
|
|
2341
2317
|
#if PY_VERSION_HEX >= 0x03080000
|
|
2342
2318
|
#include "frameobject.h"
|
|
2343
|
-
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
2319
|
+
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
|
|
2344
2320
|
#ifndef Py_BUILD_CORE
|
|
2345
2321
|
#define Py_BUILD_CORE 1
|
|
2346
2322
|
#endif
|
|
@@ -2677,11 +2653,7 @@ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* s
|
|
|
2677
2653
|
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
|
|
2678
2654
|
|
|
2679
2655
|
/* HasAttr.proto */
|
|
2680
|
-
#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
|
|
2681
|
-
#define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n)
|
|
2682
|
-
#else
|
|
2683
2656
|
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
|
|
2684
|
-
#endif
|
|
2685
2657
|
|
|
2686
2658
|
/* SliceObject.proto */
|
|
2687
2659
|
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
|
|
@@ -2773,22 +2745,22 @@ static int __Pyx_setup_reduce(PyObject* type_obj);
|
|
|
2773
2745
|
#endif
|
|
2774
2746
|
|
|
2775
2747
|
/* TypeImport.proto */
|
|
2776
|
-
#ifndef
|
|
2777
|
-
#define
|
|
2748
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2749
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2778
2750
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2779
2751
|
#include <stdalign.h>
|
|
2780
2752
|
#endif
|
|
2781
2753
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2782
|
-
#define
|
|
2754
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s)
|
|
2783
2755
|
#else
|
|
2784
|
-
#define
|
|
2756
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*)
|
|
2785
2757
|
#endif
|
|
2786
|
-
enum
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2758
|
+
enum __Pyx_ImportType_CheckSize_3_0_12 {
|
|
2759
|
+
__Pyx_ImportType_CheckSize_Error_3_0_12 = 0,
|
|
2760
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12 = 1,
|
|
2761
|
+
__Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2
|
|
2790
2762
|
};
|
|
2791
|
-
static PyTypeObject *
|
|
2763
|
+
static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size);
|
|
2792
2764
|
#endif
|
|
2793
2765
|
|
|
2794
2766
|
/* FetchSharedCythonModule.proto */
|
|
@@ -3109,6 +3081,44 @@ static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_int
|
|
|
3109
3081
|
#endif
|
|
3110
3082
|
#endif
|
|
3111
3083
|
|
|
3084
|
+
/* Arithmetic.proto */
|
|
3085
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
3086
|
+
#define __Pyx_c_eq_long__double(a, b) ((a)==(b))
|
|
3087
|
+
#define __Pyx_c_sum_long__double(a, b) ((a)+(b))
|
|
3088
|
+
#define __Pyx_c_diff_long__double(a, b) ((a)-(b))
|
|
3089
|
+
#define __Pyx_c_prod_long__double(a, b) ((a)*(b))
|
|
3090
|
+
#define __Pyx_c_quot_long__double(a, b) ((a)/(b))
|
|
3091
|
+
#define __Pyx_c_neg_long__double(a) (-(a))
|
|
3092
|
+
#ifdef __cplusplus
|
|
3093
|
+
#define __Pyx_c_is_zero_long__double(z) ((z)==(long double)0)
|
|
3094
|
+
#define __Pyx_c_conj_long__double(z) (::std::conj(z))
|
|
3095
|
+
#if 1
|
|
3096
|
+
#define __Pyx_c_abs_long__double(z) (::std::abs(z))
|
|
3097
|
+
#define __Pyx_c_pow_long__double(a, b) (::std::pow(a, b))
|
|
3098
|
+
#endif
|
|
3099
|
+
#else
|
|
3100
|
+
#define __Pyx_c_is_zero_long__double(z) ((z)==0)
|
|
3101
|
+
#define __Pyx_c_conj_long__double(z) (conjl(z))
|
|
3102
|
+
#if 1
|
|
3103
|
+
#define __Pyx_c_abs_long__double(z) (cabsl(z))
|
|
3104
|
+
#define __Pyx_c_pow_long__double(a, b) (cpowl(a, b))
|
|
3105
|
+
#endif
|
|
3106
|
+
#endif
|
|
3107
|
+
#else
|
|
3108
|
+
static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3109
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_sum_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3110
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_diff_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3111
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_prod_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3112
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_quot_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3113
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex);
|
|
3114
|
+
static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex);
|
|
3115
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex);
|
|
3116
|
+
#if 1
|
|
3117
|
+
static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex);
|
|
3118
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_pow_long__double(__pyx_t_long_double_complex, __pyx_t_long_double_complex);
|
|
3119
|
+
#endif
|
|
3120
|
+
#endif
|
|
3121
|
+
|
|
3112
3122
|
/* None.proto */
|
|
3113
3123
|
#include <new>
|
|
3114
3124
|
|
|
@@ -3192,6 +3202,18 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v
|
|
|
3192
3202
|
static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
|
|
3193
3203
|
static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/
|
|
3194
3204
|
static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto*/
|
|
3205
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3206
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3207
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3208
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3209
|
+
static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3210
|
+
static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self); /* proto*/
|
|
3211
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3212
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3213
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3214
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3215
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3216
|
+
static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self); /* proto*/
|
|
3195
3217
|
static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self); /* proto*/
|
|
3196
3218
|
static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self); /* proto*/
|
|
3197
3219
|
static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self); /* proto*/
|
|
@@ -3418,7 +3440,6 @@ static const char __pyx_k_get_core_decomposition_line_66[] = "get_core_decomposi
|
|
|
3418
3440
|
static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
|
|
3419
3441
|
static const char __pyx_k_Created_in_June_2020_author_Jul[] = "\nCreated in June 2020\n@author: Julien Simonnet <julien.simonnet@etu.upmc.fr>\n@author: Yohann Robert <yohann.robert@etu.upmc.fr>\n";
|
|
3420
3442
|
static const char __pyx_k_Get_the_k_core_decomposition_of[] = "Get the k-core decomposition of a graph.\n\n Parameters\n ----------\n adjacency :\n Adjacency matrix of the graph.\n\n Returns\n -------\n core_values :\n Core value of each node.\n\n Example\n -------\n >>> from sknetwork.data import karate_club\n >>> adjacency = karate_club()\n >>> core_values = get_core_decomposition(adjacency)\n >>> len(core_values)\n 34\n ";
|
|
3421
|
-
static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
|
|
3422
3443
|
static const char __pyx_k_All_dimensions_preceding_dimensi[] = "All dimensions preceding dimension %d must be indexed and not sliced";
|
|
3423
3444
|
static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
|
|
3424
3445
|
static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
|
|
@@ -3434,7 +3455,8 @@ static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to conver
|
|
|
3434
3455
|
static const char __pyx_k_Union_np_ndarray_sparse_csr_matr[] = "Union[np.ndarray, sparse.csr_matrix]";
|
|
3435
3456
|
static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension ";
|
|
3436
3457
|
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
|
|
3437
|
-
static const char
|
|
3458
|
+
static const char __pyx_k_numpy__core_multiarray_failed_to[] = "numpy._core.multiarray failed to import";
|
|
3459
|
+
static const char __pyx_k_numpy__core_umath_failed_to_impo[] = "numpy._core.umath failed to import";
|
|
3438
3460
|
static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
|
|
3439
3461
|
/* #### Code section: decls ### */
|
|
3440
3462
|
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode, int __pyx_v_allocate_buffer); /* proto */
|
|
@@ -3665,8 +3687,8 @@ typedef struct {
|
|
|
3665
3687
|
PyObject *__pyx_n_s_np;
|
|
3666
3688
|
PyObject *__pyx_kp_s_np_ndarray;
|
|
3667
3689
|
PyObject *__pyx_n_s_numpy;
|
|
3668
|
-
PyObject *
|
|
3669
|
-
PyObject *
|
|
3690
|
+
PyObject *__pyx_kp_u_numpy__core_multiarray_failed_to;
|
|
3691
|
+
PyObject *__pyx_kp_u_numpy__core_umath_failed_to_impo;
|
|
3670
3692
|
PyObject *__pyx_n_s_obj;
|
|
3671
3693
|
PyObject *__pyx_n_s_pack;
|
|
3672
3694
|
PyObject *__pyx_n_s_pickle;
|
|
@@ -3902,8 +3924,8 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3902
3924
|
Py_CLEAR(clear_module_state->__pyx_n_s_np);
|
|
3903
3925
|
Py_CLEAR(clear_module_state->__pyx_kp_s_np_ndarray);
|
|
3904
3926
|
Py_CLEAR(clear_module_state->__pyx_n_s_numpy);
|
|
3905
|
-
Py_CLEAR(clear_module_state->
|
|
3906
|
-
Py_CLEAR(clear_module_state->
|
|
3927
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
|
|
3928
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
|
|
3907
3929
|
Py_CLEAR(clear_module_state->__pyx_n_s_obj);
|
|
3908
3930
|
Py_CLEAR(clear_module_state->__pyx_n_s_pack);
|
|
3909
3931
|
Py_CLEAR(clear_module_state->__pyx_n_s_pickle);
|
|
@@ -4117,8 +4139,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4117
4139
|
Py_VISIT(traverse_module_state->__pyx_n_s_np);
|
|
4118
4140
|
Py_VISIT(traverse_module_state->__pyx_kp_s_np_ndarray);
|
|
4119
4141
|
Py_VISIT(traverse_module_state->__pyx_n_s_numpy);
|
|
4120
|
-
Py_VISIT(traverse_module_state->
|
|
4121
|
-
Py_VISIT(traverse_module_state->
|
|
4142
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_multiarray_failed_to);
|
|
4143
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_numpy__core_umath_failed_to_impo);
|
|
4122
4144
|
Py_VISIT(traverse_module_state->__pyx_n_s_obj);
|
|
4123
4145
|
Py_VISIT(traverse_module_state->__pyx_n_s_pack);
|
|
4124
4146
|
Py_VISIT(traverse_module_state->__pyx_n_s_pickle);
|
|
@@ -4370,8 +4392,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
4370
4392
|
#define __pyx_n_s_np __pyx_mstate_global->__pyx_n_s_np
|
|
4371
4393
|
#define __pyx_kp_s_np_ndarray __pyx_mstate_global->__pyx_kp_s_np_ndarray
|
|
4372
4394
|
#define __pyx_n_s_numpy __pyx_mstate_global->__pyx_n_s_numpy
|
|
4373
|
-
#define
|
|
4374
|
-
#define
|
|
4395
|
+
#define __pyx_kp_u_numpy__core_multiarray_failed_to __pyx_mstate_global->__pyx_kp_u_numpy__core_multiarray_failed_to
|
|
4396
|
+
#define __pyx_kp_u_numpy__core_umath_failed_to_impo __pyx_mstate_global->__pyx_kp_u_numpy__core_umath_failed_to_impo
|
|
4375
4397
|
#define __pyx_n_s_obj __pyx_mstate_global->__pyx_n_s_obj
|
|
4376
4398
|
#define __pyx_n_s_pack __pyx_mstate_global->__pyx_n_s_pack
|
|
4377
4399
|
#define __pyx_n_s_pickle __pyx_mstate_global->__pyx_n_s_pickle
|
|
@@ -4628,10 +4650,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4628
4650
|
PyObject *__pyx_t_4 = NULL;
|
|
4629
4651
|
PyObject *__pyx_t_5 = NULL;
|
|
4630
4652
|
PyObject *__pyx_t_6 = NULL;
|
|
4631
|
-
int __pyx_t_7;
|
|
4653
|
+
unsigned int __pyx_t_7;
|
|
4632
4654
|
char *__pyx_t_8;
|
|
4633
|
-
|
|
4634
|
-
|
|
4655
|
+
int __pyx_t_9;
|
|
4656
|
+
Py_ssize_t __pyx_t_10;
|
|
4657
|
+
Py_UCS4 __pyx_t_11;
|
|
4635
4658
|
int __pyx_lineno = 0;
|
|
4636
4659
|
const char *__pyx_filename = NULL;
|
|
4637
4660
|
int __pyx_clineno = 0;
|
|
@@ -4857,7 +4880,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4857
4880
|
* if dim <= 0:
|
|
4858
4881
|
* raise ValueError, f"Invalid shape in axis {idx}: {dim}."
|
|
4859
4882
|
*/
|
|
4860
|
-
|
|
4883
|
+
__pyx_t_9 = 0;
|
|
4861
4884
|
__pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4);
|
|
4862
4885
|
__pyx_t_1 = 0;
|
|
4863
4886
|
for (;;) {
|
|
@@ -4874,11 +4897,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4874
4897
|
__pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 159, __pyx_L1_error)
|
|
4875
4898
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4876
4899
|
#endif
|
|
4877
|
-
|
|
4900
|
+
__pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 159, __pyx_L1_error)
|
|
4878
4901
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4879
|
-
__pyx_v_dim =
|
|
4880
|
-
__pyx_v_idx =
|
|
4881
|
-
|
|
4902
|
+
__pyx_v_dim = __pyx_t_10;
|
|
4903
|
+
__pyx_v_idx = __pyx_t_9;
|
|
4904
|
+
__pyx_t_9 = (__pyx_t_9 + 1);
|
|
4882
4905
|
|
|
4883
4906
|
/* "View.MemoryView":160
|
|
4884
4907
|
*
|
|
@@ -4899,33 +4922,33 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
4899
4922
|
*/
|
|
4900
4923
|
__pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4901
4924
|
__Pyx_GOTREF(__pyx_t_5);
|
|
4902
|
-
|
|
4903
|
-
|
|
4925
|
+
__pyx_t_10 = 0;
|
|
4926
|
+
__pyx_t_11 = 127;
|
|
4904
4927
|
__Pyx_INCREF(__pyx_kp_u_Invalid_shape_in_axis);
|
|
4905
|
-
|
|
4928
|
+
__pyx_t_10 += 22;
|
|
4906
4929
|
__Pyx_GIVEREF(__pyx_kp_u_Invalid_shape_in_axis);
|
|
4907
4930
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Invalid_shape_in_axis);
|
|
4908
4931
|
__pyx_t_6 = __Pyx_PyUnicode_From_int(__pyx_v_idx, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4909
4932
|
__Pyx_GOTREF(__pyx_t_6);
|
|
4910
|
-
|
|
4933
|
+
__pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
|
|
4911
4934
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
4912
4935
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
|
|
4913
4936
|
__pyx_t_6 = 0;
|
|
4914
4937
|
__Pyx_INCREF(__pyx_kp_u_);
|
|
4915
|
-
|
|
4938
|
+
__pyx_t_10 += 2;
|
|
4916
4939
|
__Pyx_GIVEREF(__pyx_kp_u_);
|
|
4917
4940
|
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_);
|
|
4918
4941
|
__pyx_t_6 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_v_dim, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4919
4942
|
__Pyx_GOTREF(__pyx_t_6);
|
|
4920
|
-
|
|
4943
|
+
__pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
|
|
4921
4944
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
4922
4945
|
PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_6);
|
|
4923
4946
|
__pyx_t_6 = 0;
|
|
4924
4947
|
__Pyx_INCREF(__pyx_kp_u__2);
|
|
4925
|
-
|
|
4948
|
+
__pyx_t_10 += 1;
|
|
4926
4949
|
__Pyx_GIVEREF(__pyx_kp_u__2);
|
|
4927
4950
|
PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__2);
|
|
4928
|
-
__pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 5,
|
|
4951
|
+
__pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 161, __pyx_L1_error)
|
|
4929
4952
|
__Pyx_GOTREF(__pyx_t_6);
|
|
4930
4953
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
4931
4954
|
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_6, 0, 0);
|
|
@@ -5109,7 +5132,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
|
|
|
5109
5132
|
*
|
|
5110
5133
|
* @cname('getbuffer')
|
|
5111
5134
|
*/
|
|
5112
|
-
|
|
5135
|
+
__pyx_t_9 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 180, __pyx_L1_error)
|
|
5113
5136
|
|
|
5114
5137
|
/* "View.MemoryView":179
|
|
5115
5138
|
* self.dtype_is_object = format == b'O'
|
|
@@ -8264,7 +8287,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8264
8287
|
*
|
|
8265
8288
|
* if have_slices: # <<<<<<<<<<<<<<
|
|
8266
8289
|
* obj = self.is_slice(value)
|
|
8267
|
-
* if obj:
|
|
8290
|
+
* if obj is not None:
|
|
8268
8291
|
*/
|
|
8269
8292
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 426, __pyx_L1_error)
|
|
8270
8293
|
if (__pyx_t_4) {
|
|
@@ -8273,7 +8296,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8273
8296
|
*
|
|
8274
8297
|
* if have_slices:
|
|
8275
8298
|
* obj = self.is_slice(value) # <<<<<<<<<<<<<<
|
|
8276
|
-
* if obj:
|
|
8299
|
+
* if obj is not None:
|
|
8277
8300
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8278
8301
|
*/
|
|
8279
8302
|
__pyx_t_1 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->is_slice(__pyx_v_self, __pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 427, __pyx_L1_error)
|
|
@@ -8284,16 +8307,16 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8284
8307
|
/* "View.MemoryView":428
|
|
8285
8308
|
* if have_slices:
|
|
8286
8309
|
* obj = self.is_slice(value)
|
|
8287
|
-
* if obj: # <<<<<<<<<<<<<<
|
|
8310
|
+
* if obj is not None: # <<<<<<<<<<<<<<
|
|
8288
8311
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8289
8312
|
* else:
|
|
8290
8313
|
*/
|
|
8291
|
-
__pyx_t_4 =
|
|
8314
|
+
__pyx_t_4 = (__pyx_v_obj != Py_None);
|
|
8292
8315
|
if (__pyx_t_4) {
|
|
8293
8316
|
|
|
8294
8317
|
/* "View.MemoryView":429
|
|
8295
8318
|
* obj = self.is_slice(value)
|
|
8296
|
-
* if obj:
|
|
8319
|
+
* if obj is not None:
|
|
8297
8320
|
* self.setitem_slice_assignment(self[index], obj) # <<<<<<<<<<<<<<
|
|
8298
8321
|
* else:
|
|
8299
8322
|
* self.setitem_slice_assign_scalar(self[index], value)
|
|
@@ -8308,7 +8331,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8308
8331
|
/* "View.MemoryView":428
|
|
8309
8332
|
* if have_slices:
|
|
8310
8333
|
* obj = self.is_slice(value)
|
|
8311
|
-
* if obj: # <<<<<<<<<<<<<<
|
|
8334
|
+
* if obj is not None: # <<<<<<<<<<<<<<
|
|
8312
8335
|
* self.setitem_slice_assignment(self[index], obj)
|
|
8313
8336
|
* else:
|
|
8314
8337
|
*/
|
|
@@ -8338,7 +8361,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit
|
|
|
8338
8361
|
*
|
|
8339
8362
|
* if have_slices: # <<<<<<<<<<<<<<
|
|
8340
8363
|
* obj = self.is_slice(value)
|
|
8341
|
-
* if obj:
|
|
8364
|
+
* if obj is not None:
|
|
8342
8365
|
*/
|
|
8343
8366
|
goto __pyx_L4;
|
|
8344
8367
|
}
|
|
@@ -9046,9 +9069,10 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
|
|
|
9046
9069
|
PyObject *__pyx_t_5 = NULL;
|
|
9047
9070
|
PyObject *__pyx_t_6 = NULL;
|
|
9048
9071
|
PyObject *__pyx_t_7 = NULL;
|
|
9049
|
-
int __pyx_t_8;
|
|
9072
|
+
unsigned int __pyx_t_8;
|
|
9050
9073
|
Py_ssize_t __pyx_t_9;
|
|
9051
9074
|
int __pyx_t_10;
|
|
9075
|
+
int __pyx_t_11;
|
|
9052
9076
|
int __pyx_lineno = 0;
|
|
9053
9077
|
const char *__pyx_filename = NULL;
|
|
9054
9078
|
int __pyx_clineno = 0;
|
|
@@ -9203,11 +9227,11 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
|
|
|
9203
9227
|
__Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_6);
|
|
9204
9228
|
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 498, __pyx_L5_except_error)
|
|
9205
9229
|
__Pyx_GOTREF(__pyx_t_7);
|
|
9206
|
-
|
|
9230
|
+
__pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_7);
|
|
9207
9231
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
9208
9232
|
__Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_6);
|
|
9209
9233
|
__pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
|
|
9210
|
-
if (
|
|
9234
|
+
if (__pyx_t_11) {
|
|
9211
9235
|
__Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
9212
9236
|
if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 498, __pyx_L5_except_error)
|
|
9213
9237
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
@@ -9292,7 +9316,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
|
|
|
9292
9316
|
PyObject *__pyx_t_3 = NULL;
|
|
9293
9317
|
PyObject *__pyx_t_4 = NULL;
|
|
9294
9318
|
PyObject *__pyx_t_5 = NULL;
|
|
9295
|
-
int __pyx_t_6;
|
|
9319
|
+
unsigned int __pyx_t_6;
|
|
9296
9320
|
Py_ssize_t __pyx_t_7;
|
|
9297
9321
|
PyObject *__pyx_t_8 = NULL;
|
|
9298
9322
|
char *__pyx_t_9;
|
|
@@ -17766,7 +17790,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
|
|
|
17766
17790
|
int __pyx_t_2;
|
|
17767
17791
|
PyObject *__pyx_t_3 = NULL;
|
|
17768
17792
|
PyObject *__pyx_t_4 = NULL;
|
|
17769
|
-
int __pyx_t_5;
|
|
17793
|
+
unsigned int __pyx_t_5;
|
|
17770
17794
|
int __pyx_lineno = 0;
|
|
17771
17795
|
const char *__pyx_filename = NULL;
|
|
17772
17796
|
int __pyx_clineno = 0;
|
|
@@ -17948,7 +17972,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
|
|
|
17948
17972
|
PyObject *__pyx_t_5 = NULL;
|
|
17949
17973
|
PyObject *__pyx_t_6 = NULL;
|
|
17950
17974
|
PyObject *__pyx_t_7 = NULL;
|
|
17951
|
-
int __pyx_t_8;
|
|
17975
|
+
unsigned int __pyx_t_8;
|
|
17952
17976
|
int __pyx_lineno = 0;
|
|
17953
17977
|
const char *__pyx_filename = NULL;
|
|
17954
17978
|
int __pyx_clineno = 0;
|
|
@@ -18068,33 +18092,33 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
|
|
|
18068
18092
|
return __pyx_r;
|
|
18069
18093
|
}
|
|
18070
18094
|
|
|
18071
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18095
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":286
|
|
18072
18096
|
*
|
|
18073
18097
|
* @property
|
|
18074
|
-
* cdef inline
|
|
18075
|
-
*
|
|
18076
|
-
*
|
|
18098
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18099
|
+
* return PyDataType_ELSIZE(self)
|
|
18100
|
+
*
|
|
18077
18101
|
*/
|
|
18078
18102
|
|
|
18079
|
-
static CYTHON_INLINE
|
|
18080
|
-
|
|
18103
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) {
|
|
18104
|
+
npy_intp __pyx_r;
|
|
18081
18105
|
|
|
18082
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18083
|
-
*
|
|
18084
|
-
*
|
|
18085
|
-
* return
|
|
18106
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":287
|
|
18107
|
+
* @property
|
|
18108
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil:
|
|
18109
|
+
* return PyDataType_ELSIZE(self) # <<<<<<<<<<<<<<
|
|
18086
18110
|
*
|
|
18087
18111
|
* @property
|
|
18088
18112
|
*/
|
|
18089
|
-
__pyx_r =
|
|
18113
|
+
__pyx_r = PyDataType_ELSIZE(__pyx_v_self);
|
|
18090
18114
|
goto __pyx_L0;
|
|
18091
18115
|
|
|
18092
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18116
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":286
|
|
18093
18117
|
*
|
|
18094
18118
|
* @property
|
|
18095
|
-
* cdef inline
|
|
18096
|
-
*
|
|
18097
|
-
*
|
|
18119
|
+
* cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18120
|
+
* return PyDataType_ELSIZE(self)
|
|
18121
|
+
*
|
|
18098
18122
|
*/
|
|
18099
18123
|
|
|
18100
18124
|
/* function exit code */
|
|
@@ -18102,109 +18126,151 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
|
|
|
18102
18126
|
return __pyx_r;
|
|
18103
18127
|
}
|
|
18104
18128
|
|
|
18105
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18129
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":290
|
|
18106
18130
|
*
|
|
18107
18131
|
* @property
|
|
18108
|
-
* cdef inline
|
|
18109
|
-
*
|
|
18110
|
-
*
|
|
18132
|
+
* cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18133
|
+
* return PyDataType_ALIGNMENT(self)
|
|
18134
|
+
*
|
|
18111
18135
|
*/
|
|
18112
18136
|
|
|
18113
|
-
static CYTHON_INLINE
|
|
18114
|
-
|
|
18137
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) {
|
|
18138
|
+
npy_intp __pyx_r;
|
|
18139
|
+
|
|
18140
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":291
|
|
18141
|
+
* @property
|
|
18142
|
+
* cdef inline npy_intp alignment(self) noexcept nogil:
|
|
18143
|
+
* return PyDataType_ALIGNMENT(self) # <<<<<<<<<<<<<<
|
|
18144
|
+
*
|
|
18145
|
+
* # Use fields/names with care as they may be NULL. You must check
|
|
18146
|
+
*/
|
|
18147
|
+
__pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
|
|
18148
|
+
goto __pyx_L0;
|
|
18149
|
+
|
|
18150
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":290
|
|
18151
|
+
*
|
|
18152
|
+
* @property
|
|
18153
|
+
* cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18154
|
+
* return PyDataType_ALIGNMENT(self)
|
|
18155
|
+
*
|
|
18156
|
+
*/
|
|
18157
|
+
|
|
18158
|
+
/* function exit code */
|
|
18159
|
+
__pyx_L0:;
|
|
18160
|
+
return __pyx_r;
|
|
18161
|
+
}
|
|
18162
|
+
|
|
18163
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":296
|
|
18164
|
+
* # for this using PyDataType_HASFIELDS.
|
|
18165
|
+
* @property
|
|
18166
|
+
* cdef inline object fields(self): # <<<<<<<<<<<<<<
|
|
18167
|
+
* return <object>PyDataType_FIELDS(self)
|
|
18168
|
+
*
|
|
18169
|
+
*/
|
|
18170
|
+
|
|
18171
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) {
|
|
18172
|
+
PyObject *__pyx_r = NULL;
|
|
18115
18173
|
__Pyx_RefNannyDeclarations
|
|
18116
|
-
|
|
18117
|
-
__Pyx_RefNannySetupContext("
|
|
18174
|
+
PyObject *__pyx_t_1;
|
|
18175
|
+
__Pyx_RefNannySetupContext("fields", 1);
|
|
18118
18176
|
|
|
18119
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18120
|
-
*
|
|
18121
|
-
*
|
|
18122
|
-
* return <
|
|
18177
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":297
|
|
18178
|
+
* @property
|
|
18179
|
+
* cdef inline object fields(self):
|
|
18180
|
+
* return <object>PyDataType_FIELDS(self) # <<<<<<<<<<<<<<
|
|
18123
18181
|
*
|
|
18124
18182
|
* @property
|
|
18125
18183
|
*/
|
|
18126
|
-
__Pyx_XDECREF(
|
|
18127
|
-
__pyx_t_1 =
|
|
18128
|
-
__Pyx_INCREF((PyObject *)
|
|
18129
|
-
__pyx_r = ((
|
|
18184
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18185
|
+
__pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
|
|
18186
|
+
__Pyx_INCREF(((PyObject *)__pyx_t_1));
|
|
18187
|
+
__pyx_r = ((PyObject *)__pyx_t_1);
|
|
18130
18188
|
goto __pyx_L0;
|
|
18131
18189
|
|
|
18132
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18133
|
-
*
|
|
18190
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":296
|
|
18191
|
+
* # for this using PyDataType_HASFIELDS.
|
|
18134
18192
|
* @property
|
|
18135
|
-
* cdef inline
|
|
18136
|
-
*
|
|
18137
|
-
*
|
|
18193
|
+
* cdef inline object fields(self): # <<<<<<<<<<<<<<
|
|
18194
|
+
* return <object>PyDataType_FIELDS(self)
|
|
18195
|
+
*
|
|
18138
18196
|
*/
|
|
18139
18197
|
|
|
18140
18198
|
/* function exit code */
|
|
18141
18199
|
__pyx_L0:;
|
|
18142
|
-
__Pyx_XGIVEREF(
|
|
18200
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18143
18201
|
__Pyx_RefNannyFinishContext();
|
|
18144
18202
|
return __pyx_r;
|
|
18145
18203
|
}
|
|
18146
18204
|
|
|
18147
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18205
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":300
|
|
18148
18206
|
*
|
|
18149
18207
|
* @property
|
|
18150
|
-
* cdef inline
|
|
18151
|
-
*
|
|
18152
|
-
*
|
|
18208
|
+
* cdef inline tuple names(self): # <<<<<<<<<<<<<<
|
|
18209
|
+
* return <tuple>PyDataType_NAMES(self)
|
|
18210
|
+
*
|
|
18153
18211
|
*/
|
|
18154
18212
|
|
|
18155
|
-
static CYTHON_INLINE
|
|
18156
|
-
|
|
18213
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) {
|
|
18214
|
+
PyObject *__pyx_r = NULL;
|
|
18215
|
+
__Pyx_RefNannyDeclarations
|
|
18216
|
+
PyObject *__pyx_t_1;
|
|
18217
|
+
__Pyx_RefNannySetupContext("names", 1);
|
|
18157
18218
|
|
|
18158
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18159
|
-
* """Returns the number of dimensions in the array.
|
|
18160
|
-
* """
|
|
18161
|
-
* return PyArray_NDIM(self) # <<<<<<<<<<<<<<
|
|
18162
|
-
*
|
|
18219
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":301
|
|
18163
18220
|
* @property
|
|
18221
|
+
* cdef inline tuple names(self):
|
|
18222
|
+
* return <tuple>PyDataType_NAMES(self) # <<<<<<<<<<<<<<
|
|
18223
|
+
*
|
|
18224
|
+
* # Use PyDataType_HASSUBARRAY to test whether this field is
|
|
18164
18225
|
*/
|
|
18165
|
-
__pyx_r
|
|
18226
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18227
|
+
__pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
|
|
18228
|
+
__Pyx_INCREF(((PyObject*)__pyx_t_1));
|
|
18229
|
+
__pyx_r = ((PyObject*)__pyx_t_1);
|
|
18166
18230
|
goto __pyx_L0;
|
|
18167
18231
|
|
|
18168
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18232
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":300
|
|
18169
18233
|
*
|
|
18170
18234
|
* @property
|
|
18171
|
-
* cdef inline
|
|
18172
|
-
*
|
|
18173
|
-
*
|
|
18235
|
+
* cdef inline tuple names(self): # <<<<<<<<<<<<<<
|
|
18236
|
+
* return <tuple>PyDataType_NAMES(self)
|
|
18237
|
+
*
|
|
18174
18238
|
*/
|
|
18175
18239
|
|
|
18176
18240
|
/* function exit code */
|
|
18177
18241
|
__pyx_L0:;
|
|
18242
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18243
|
+
__Pyx_RefNannyFinishContext();
|
|
18178
18244
|
return __pyx_r;
|
|
18179
18245
|
}
|
|
18180
18246
|
|
|
18181
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18182
|
-
*
|
|
18247
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":307
|
|
18248
|
+
* # this field via the inline helper method PyDataType_SHAPE.
|
|
18183
18249
|
* @property
|
|
18184
|
-
* cdef inline
|
|
18185
|
-
*
|
|
18186
|
-
*
|
|
18250
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18251
|
+
* return PyDataType_SUBARRAY(self)
|
|
18252
|
+
*
|
|
18187
18253
|
*/
|
|
18188
18254
|
|
|
18189
|
-
static CYTHON_INLINE
|
|
18190
|
-
|
|
18255
|
+
static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) {
|
|
18256
|
+
PyArray_ArrayDescr *__pyx_r;
|
|
18191
18257
|
|
|
18192
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18193
|
-
*
|
|
18194
|
-
*
|
|
18195
|
-
* return
|
|
18258
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":308
|
|
18259
|
+
* @property
|
|
18260
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil:
|
|
18261
|
+
* return PyDataType_SUBARRAY(self) # <<<<<<<<<<<<<<
|
|
18196
18262
|
*
|
|
18197
18263
|
* @property
|
|
18198
18264
|
*/
|
|
18199
|
-
__pyx_r =
|
|
18265
|
+
__pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
|
|
18200
18266
|
goto __pyx_L0;
|
|
18201
18267
|
|
|
18202
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18203
|
-
*
|
|
18268
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":307
|
|
18269
|
+
* # this field via the inline helper method PyDataType_SHAPE.
|
|
18204
18270
|
* @property
|
|
18205
|
-
* cdef inline
|
|
18206
|
-
*
|
|
18207
|
-
*
|
|
18271
|
+
* cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18272
|
+
* return PyDataType_SUBARRAY(self)
|
|
18273
|
+
*
|
|
18208
18274
|
*/
|
|
18209
18275
|
|
|
18210
18276
|
/* function exit code */
|
|
@@ -18212,33 +18278,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec
|
|
|
18212
18278
|
return __pyx_r;
|
|
18213
18279
|
}
|
|
18214
18280
|
|
|
18215
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18281
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":311
|
|
18216
18282
|
*
|
|
18217
18283
|
* @property
|
|
18218
|
-
* cdef inline
|
|
18219
|
-
* """
|
|
18220
|
-
*
|
|
18284
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18285
|
+
* """The data types flags."""
|
|
18286
|
+
* return PyDataType_FLAGS(self)
|
|
18221
18287
|
*/
|
|
18222
18288
|
|
|
18223
|
-
static CYTHON_INLINE
|
|
18224
|
-
|
|
18289
|
+
static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr *__pyx_v_self) {
|
|
18290
|
+
npy_uint64 __pyx_r;
|
|
18225
18291
|
|
|
18226
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18227
|
-
*
|
|
18228
|
-
* """
|
|
18229
|
-
* return
|
|
18292
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":313
|
|
18293
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil:
|
|
18294
|
+
* """The data types flags."""
|
|
18295
|
+
* return PyDataType_FLAGS(self) # <<<<<<<<<<<<<<
|
|
18296
|
+
*
|
|
18230
18297
|
*
|
|
18231
|
-
* @property
|
|
18232
18298
|
*/
|
|
18233
|
-
__pyx_r =
|
|
18299
|
+
__pyx_r = PyDataType_FLAGS(__pyx_v_self);
|
|
18234
18300
|
goto __pyx_L0;
|
|
18235
18301
|
|
|
18236
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18302
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":311
|
|
18237
18303
|
*
|
|
18238
18304
|
* @property
|
|
18239
|
-
* cdef inline
|
|
18240
|
-
* """
|
|
18241
|
-
*
|
|
18305
|
+
* cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18306
|
+
* """The data types flags."""
|
|
18307
|
+
* return PyDataType_FLAGS(self)
|
|
18242
18308
|
*/
|
|
18243
18309
|
|
|
18244
18310
|
/* function exit code */
|
|
@@ -18246,33 +18312,33 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
|
|
|
18246
18312
|
return __pyx_r;
|
|
18247
18313
|
}
|
|
18248
18314
|
|
|
18249
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18315
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":323
|
|
18250
18316
|
*
|
|
18251
18317
|
* @property
|
|
18252
|
-
* cdef inline
|
|
18253
|
-
* """
|
|
18254
|
-
*
|
|
18318
|
+
* cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18319
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18320
|
+
* return PyArray_MultiIter_NUMITER(self)
|
|
18255
18321
|
*/
|
|
18256
18322
|
|
|
18257
|
-
static CYTHON_INLINE
|
|
18258
|
-
|
|
18323
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18324
|
+
int __pyx_r;
|
|
18259
18325
|
|
|
18260
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18261
|
-
*
|
|
18262
|
-
* """
|
|
18263
|
-
* return
|
|
18326
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":325
|
|
18327
|
+
* cdef inline int numiter(self) noexcept nogil:
|
|
18328
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18329
|
+
* return PyArray_MultiIter_NUMITER(self) # <<<<<<<<<<<<<<
|
|
18264
18330
|
*
|
|
18265
18331
|
* @property
|
|
18266
18332
|
*/
|
|
18267
|
-
__pyx_r =
|
|
18333
|
+
__pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
|
|
18268
18334
|
goto __pyx_L0;
|
|
18269
18335
|
|
|
18270
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18336
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":323
|
|
18271
18337
|
*
|
|
18272
18338
|
* @property
|
|
18273
|
-
* cdef inline
|
|
18274
|
-
* """
|
|
18275
|
-
*
|
|
18339
|
+
* cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18340
|
+
* """The number of arrays that need to be broadcast to the same shape."""
|
|
18341
|
+
* return PyArray_MultiIter_NUMITER(self)
|
|
18276
18342
|
*/
|
|
18277
18343
|
|
|
18278
18344
|
/* function exit code */
|
|
@@ -18280,33 +18346,33 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
|
|
|
18280
18346
|
return __pyx_r;
|
|
18281
18347
|
}
|
|
18282
18348
|
|
|
18283
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18349
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":328
|
|
18284
18350
|
*
|
|
18285
18351
|
* @property
|
|
18286
|
-
* cdef inline
|
|
18287
|
-
* """The
|
|
18288
|
-
*
|
|
18352
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18353
|
+
* """The total broadcasted size."""
|
|
18354
|
+
* return PyArray_MultiIter_SIZE(self)
|
|
18289
18355
|
*/
|
|
18290
18356
|
|
|
18291
|
-
static CYTHON_INLINE
|
|
18292
|
-
|
|
18357
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18358
|
+
npy_intp __pyx_r;
|
|
18293
18359
|
|
|
18294
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18295
|
-
*
|
|
18296
|
-
* """
|
|
18297
|
-
* return
|
|
18360
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":330
|
|
18361
|
+
* cdef inline npy_intp size(self) noexcept nogil:
|
|
18362
|
+
* """The total broadcasted size."""
|
|
18363
|
+
* return PyArray_MultiIter_SIZE(self) # <<<<<<<<<<<<<<
|
|
18298
18364
|
*
|
|
18299
|
-
*
|
|
18365
|
+
* @property
|
|
18300
18366
|
*/
|
|
18301
|
-
__pyx_r =
|
|
18367
|
+
__pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
|
|
18302
18368
|
goto __pyx_L0;
|
|
18303
18369
|
|
|
18304
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18370
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":328
|
|
18305
18371
|
*
|
|
18306
18372
|
* @property
|
|
18307
|
-
* cdef inline
|
|
18308
|
-
* """The
|
|
18309
|
-
*
|
|
18373
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18374
|
+
* """The total broadcasted size."""
|
|
18375
|
+
* return PyArray_MultiIter_SIZE(self)
|
|
18310
18376
|
*/
|
|
18311
18377
|
|
|
18312
18378
|
/* function exit code */
|
|
@@ -18314,111 +18380,493 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
|
|
|
18314
18380
|
return __pyx_r;
|
|
18315
18381
|
}
|
|
18316
18382
|
|
|
18317
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18318
|
-
* ctypedef npy_cdouble complex_t
|
|
18319
|
-
*
|
|
18320
|
-
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18321
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18383
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":333
|
|
18322
18384
|
*
|
|
18385
|
+
* @property
|
|
18386
|
+
* cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18387
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18388
|
+
* return PyArray_MultiIter_INDEX(self)
|
|
18323
18389
|
*/
|
|
18324
18390
|
|
|
18325
|
-
static CYTHON_INLINE
|
|
18326
|
-
|
|
18327
|
-
__Pyx_RefNannyDeclarations
|
|
18328
|
-
PyObject *__pyx_t_1 = NULL;
|
|
18329
|
-
int __pyx_lineno = 0;
|
|
18330
|
-
const char *__pyx_filename = NULL;
|
|
18331
|
-
int __pyx_clineno = 0;
|
|
18332
|
-
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
|
|
18391
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18392
|
+
npy_intp __pyx_r;
|
|
18333
18393
|
|
|
18334
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18335
|
-
*
|
|
18336
|
-
*
|
|
18337
|
-
*
|
|
18394
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":335
|
|
18395
|
+
* cdef inline npy_intp index(self) noexcept nogil:
|
|
18396
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18397
|
+
* return PyArray_MultiIter_INDEX(self) # <<<<<<<<<<<<<<
|
|
18338
18398
|
*
|
|
18339
|
-
*
|
|
18399
|
+
* @property
|
|
18340
18400
|
*/
|
|
18341
|
-
|
|
18342
|
-
__pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 774, __pyx_L1_error)
|
|
18343
|
-
__Pyx_GOTREF(__pyx_t_1);
|
|
18344
|
-
__pyx_r = __pyx_t_1;
|
|
18345
|
-
__pyx_t_1 = 0;
|
|
18401
|
+
__pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
|
|
18346
18402
|
goto __pyx_L0;
|
|
18347
18403
|
|
|
18348
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18349
|
-
* ctypedef npy_cdouble complex_t
|
|
18350
|
-
*
|
|
18351
|
-
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18352
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18404
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":333
|
|
18353
18405
|
*
|
|
18406
|
+
* @property
|
|
18407
|
+
* cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18408
|
+
* """The current (1-d) index into the broadcasted result."""
|
|
18409
|
+
* return PyArray_MultiIter_INDEX(self)
|
|
18354
18410
|
*/
|
|
18355
18411
|
|
|
18356
18412
|
/* function exit code */
|
|
18357
|
-
__pyx_L1_error:;
|
|
18358
|
-
__Pyx_XDECREF(__pyx_t_1);
|
|
18359
|
-
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18360
|
-
__pyx_r = 0;
|
|
18361
18413
|
__pyx_L0:;
|
|
18362
|
-
__Pyx_XGIVEREF(__pyx_r);
|
|
18363
|
-
__Pyx_RefNannyFinishContext();
|
|
18364
18414
|
return __pyx_r;
|
|
18365
18415
|
}
|
|
18366
18416
|
|
|
18367
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18368
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18369
|
-
*
|
|
18370
|
-
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18371
|
-
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18417
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":338
|
|
18372
18418
|
*
|
|
18419
|
+
* @property
|
|
18420
|
+
* cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18421
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18422
|
+
* return PyArray_MultiIter_NDIM(self)
|
|
18373
18423
|
*/
|
|
18374
18424
|
|
|
18375
|
-
static CYTHON_INLINE
|
|
18376
|
-
|
|
18377
|
-
__Pyx_RefNannyDeclarations
|
|
18378
|
-
PyObject *__pyx_t_1 = NULL;
|
|
18379
|
-
int __pyx_lineno = 0;
|
|
18380
|
-
const char *__pyx_filename = NULL;
|
|
18381
|
-
int __pyx_clineno = 0;
|
|
18382
|
-
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
|
|
18425
|
+
static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18426
|
+
int __pyx_r;
|
|
18383
18427
|
|
|
18384
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18385
|
-
*
|
|
18386
|
-
*
|
|
18387
|
-
*
|
|
18428
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":340
|
|
18429
|
+
* cdef inline int nd(self) noexcept nogil:
|
|
18430
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18431
|
+
* return PyArray_MultiIter_NDIM(self) # <<<<<<<<<<<<<<
|
|
18388
18432
|
*
|
|
18389
|
-
*
|
|
18433
|
+
* @property
|
|
18390
18434
|
*/
|
|
18391
|
-
|
|
18392
|
-
__pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 777, __pyx_L1_error)
|
|
18393
|
-
__Pyx_GOTREF(__pyx_t_1);
|
|
18394
|
-
__pyx_r = __pyx_t_1;
|
|
18395
|
-
__pyx_t_1 = 0;
|
|
18435
|
+
__pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
|
|
18396
18436
|
goto __pyx_L0;
|
|
18397
18437
|
|
|
18398
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18399
|
-
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18400
|
-
*
|
|
18401
|
-
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18402
|
-
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18438
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":338
|
|
18403
18439
|
*
|
|
18440
|
+
* @property
|
|
18441
|
+
* cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18442
|
+
* """The number of dimensions in the broadcasted result."""
|
|
18443
|
+
* return PyArray_MultiIter_NDIM(self)
|
|
18404
18444
|
*/
|
|
18405
18445
|
|
|
18406
18446
|
/* function exit code */
|
|
18407
|
-
__pyx_L1_error:;
|
|
18408
|
-
__Pyx_XDECREF(__pyx_t_1);
|
|
18409
|
-
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18410
|
-
__pyx_r = 0;
|
|
18411
18447
|
__pyx_L0:;
|
|
18412
|
-
__Pyx_XGIVEREF(__pyx_r);
|
|
18413
|
-
__Pyx_RefNannyFinishContext();
|
|
18414
18448
|
return __pyx_r;
|
|
18415
18449
|
}
|
|
18416
18450
|
|
|
18417
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18418
|
-
*
|
|
18419
|
-
*
|
|
18420
|
-
*
|
|
18421
|
-
*
|
|
18451
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":343
|
|
18452
|
+
*
|
|
18453
|
+
* @property
|
|
18454
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18455
|
+
* """The shape of the broadcasted result."""
|
|
18456
|
+
* return PyArray_MultiIter_DIMS(self)
|
|
18457
|
+
*/
|
|
18458
|
+
|
|
18459
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18460
|
+
npy_intp *__pyx_r;
|
|
18461
|
+
|
|
18462
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":345
|
|
18463
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil:
|
|
18464
|
+
* """The shape of the broadcasted result."""
|
|
18465
|
+
* return PyArray_MultiIter_DIMS(self) # <<<<<<<<<<<<<<
|
|
18466
|
+
*
|
|
18467
|
+
* @property
|
|
18468
|
+
*/
|
|
18469
|
+
__pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
|
|
18470
|
+
goto __pyx_L0;
|
|
18471
|
+
|
|
18472
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":343
|
|
18473
|
+
*
|
|
18474
|
+
* @property
|
|
18475
|
+
* cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18476
|
+
* """The shape of the broadcasted result."""
|
|
18477
|
+
* return PyArray_MultiIter_DIMS(self)
|
|
18478
|
+
*/
|
|
18479
|
+
|
|
18480
|
+
/* function exit code */
|
|
18481
|
+
__pyx_L0:;
|
|
18482
|
+
return __pyx_r;
|
|
18483
|
+
}
|
|
18484
|
+
|
|
18485
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":348
|
|
18486
|
+
*
|
|
18487
|
+
* @property
|
|
18488
|
+
* cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18489
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18490
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18491
|
+
*/
|
|
18492
|
+
|
|
18493
|
+
static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject *__pyx_v_self) {
|
|
18494
|
+
void **__pyx_r;
|
|
18495
|
+
|
|
18496
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":351
|
|
18497
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18498
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18499
|
+
* return PyArray_MultiIter_ITERS(self) # <<<<<<<<<<<<<<
|
|
18500
|
+
*
|
|
18501
|
+
*
|
|
18502
|
+
*/
|
|
18503
|
+
__pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
|
|
18504
|
+
goto __pyx_L0;
|
|
18505
|
+
|
|
18506
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":348
|
|
18507
|
+
*
|
|
18508
|
+
* @property
|
|
18509
|
+
* cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18510
|
+
* """An array of iterator objects that holds the iterators for the arrays to be broadcast together.
|
|
18511
|
+
* On return, the iterators are adjusted for broadcasting."""
|
|
18512
|
+
*/
|
|
18513
|
+
|
|
18514
|
+
/* function exit code */
|
|
18515
|
+
__pyx_L0:;
|
|
18516
|
+
return __pyx_r;
|
|
18517
|
+
}
|
|
18518
|
+
|
|
18519
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":366
|
|
18520
|
+
*
|
|
18521
|
+
* @property
|
|
18522
|
+
* cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18523
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18524
|
+
* """
|
|
18525
|
+
*/
|
|
18526
|
+
|
|
18527
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
|
|
18528
|
+
PyObject *__pyx_r;
|
|
18529
|
+
|
|
18530
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":369
|
|
18531
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18532
|
+
* """
|
|
18533
|
+
* return PyArray_BASE(self) # <<<<<<<<<<<<<<
|
|
18534
|
+
*
|
|
18535
|
+
* @property
|
|
18536
|
+
*/
|
|
18537
|
+
__pyx_r = PyArray_BASE(__pyx_v_self);
|
|
18538
|
+
goto __pyx_L0;
|
|
18539
|
+
|
|
18540
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":366
|
|
18541
|
+
*
|
|
18542
|
+
* @property
|
|
18543
|
+
* cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18544
|
+
* """Returns a borrowed reference to the object owning the data/memory.
|
|
18545
|
+
* """
|
|
18546
|
+
*/
|
|
18547
|
+
|
|
18548
|
+
/* function exit code */
|
|
18549
|
+
__pyx_L0:;
|
|
18550
|
+
return __pyx_r;
|
|
18551
|
+
}
|
|
18552
|
+
|
|
18553
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":372
|
|
18554
|
+
*
|
|
18555
|
+
* @property
|
|
18556
|
+
* cdef inline dtype descr(self): # <<<<<<<<<<<<<<
|
|
18557
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18558
|
+
* """
|
|
18559
|
+
*/
|
|
18560
|
+
|
|
18561
|
+
static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArrayObject *__pyx_v_self) {
|
|
18562
|
+
PyArray_Descr *__pyx_r = NULL;
|
|
18563
|
+
__Pyx_RefNannyDeclarations
|
|
18564
|
+
PyArray_Descr *__pyx_t_1;
|
|
18565
|
+
__Pyx_RefNannySetupContext("descr", 1);
|
|
18566
|
+
|
|
18567
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":375
|
|
18568
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18569
|
+
* """
|
|
18570
|
+
* return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
|
|
18571
|
+
*
|
|
18572
|
+
* @property
|
|
18573
|
+
*/
|
|
18574
|
+
__Pyx_XDECREF((PyObject *)__pyx_r);
|
|
18575
|
+
__pyx_t_1 = PyArray_DESCR(__pyx_v_self);
|
|
18576
|
+
__Pyx_INCREF((PyObject *)((PyArray_Descr *)__pyx_t_1));
|
|
18577
|
+
__pyx_r = ((PyArray_Descr *)__pyx_t_1);
|
|
18578
|
+
goto __pyx_L0;
|
|
18579
|
+
|
|
18580
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":372
|
|
18581
|
+
*
|
|
18582
|
+
* @property
|
|
18583
|
+
* cdef inline dtype descr(self): # <<<<<<<<<<<<<<
|
|
18584
|
+
* """Returns an owned reference to the dtype of the array.
|
|
18585
|
+
* """
|
|
18586
|
+
*/
|
|
18587
|
+
|
|
18588
|
+
/* function exit code */
|
|
18589
|
+
__pyx_L0:;
|
|
18590
|
+
__Pyx_XGIVEREF((PyObject *)__pyx_r);
|
|
18591
|
+
__Pyx_RefNannyFinishContext();
|
|
18592
|
+
return __pyx_r;
|
|
18593
|
+
}
|
|
18594
|
+
|
|
18595
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":378
|
|
18596
|
+
*
|
|
18597
|
+
* @property
|
|
18598
|
+
* cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18599
|
+
* """Returns the number of dimensions in the array.
|
|
18600
|
+
* """
|
|
18601
|
+
*/
|
|
18602
|
+
|
|
18603
|
+
static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
|
|
18604
|
+
int __pyx_r;
|
|
18605
|
+
|
|
18606
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":381
|
|
18607
|
+
* """Returns the number of dimensions in the array.
|
|
18608
|
+
* """
|
|
18609
|
+
* return PyArray_NDIM(self) # <<<<<<<<<<<<<<
|
|
18610
|
+
*
|
|
18611
|
+
* @property
|
|
18612
|
+
*/
|
|
18613
|
+
__pyx_r = PyArray_NDIM(__pyx_v_self);
|
|
18614
|
+
goto __pyx_L0;
|
|
18615
|
+
|
|
18616
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":378
|
|
18617
|
+
*
|
|
18618
|
+
* @property
|
|
18619
|
+
* cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18620
|
+
* """Returns the number of dimensions in the array.
|
|
18621
|
+
* """
|
|
18622
|
+
*/
|
|
18623
|
+
|
|
18624
|
+
/* function exit code */
|
|
18625
|
+
__pyx_L0:;
|
|
18626
|
+
return __pyx_r;
|
|
18627
|
+
}
|
|
18628
|
+
|
|
18629
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":384
|
|
18630
|
+
*
|
|
18631
|
+
* @property
|
|
18632
|
+
* cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18633
|
+
* """Returns a pointer to the dimensions/shape of the array.
|
|
18634
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18635
|
+
*/
|
|
18636
|
+
|
|
18637
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
|
|
18638
|
+
npy_intp *__pyx_r;
|
|
18639
|
+
|
|
18640
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":389
|
|
18641
|
+
* Can return NULL for 0-dimensional arrays.
|
|
18642
|
+
* """
|
|
18643
|
+
* return PyArray_DIMS(self) # <<<<<<<<<<<<<<
|
|
18644
|
+
*
|
|
18645
|
+
* @property
|
|
18646
|
+
*/
|
|
18647
|
+
__pyx_r = PyArray_DIMS(__pyx_v_self);
|
|
18648
|
+
goto __pyx_L0;
|
|
18649
|
+
|
|
18650
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":384
|
|
18651
|
+
*
|
|
18652
|
+
* @property
|
|
18653
|
+
* cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18654
|
+
* """Returns a pointer to the dimensions/shape of the array.
|
|
18655
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18656
|
+
*/
|
|
18657
|
+
|
|
18658
|
+
/* function exit code */
|
|
18659
|
+
__pyx_L0:;
|
|
18660
|
+
return __pyx_r;
|
|
18661
|
+
}
|
|
18662
|
+
|
|
18663
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":392
|
|
18664
|
+
*
|
|
18665
|
+
* @property
|
|
18666
|
+
* cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18667
|
+
* """Returns a pointer to the strides of the array.
|
|
18668
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18669
|
+
*/
|
|
18670
|
+
|
|
18671
|
+
static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
|
|
18672
|
+
npy_intp *__pyx_r;
|
|
18673
|
+
|
|
18674
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":396
|
|
18675
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18676
|
+
* """
|
|
18677
|
+
* return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
|
|
18678
|
+
*
|
|
18679
|
+
* @property
|
|
18680
|
+
*/
|
|
18681
|
+
__pyx_r = PyArray_STRIDES(__pyx_v_self);
|
|
18682
|
+
goto __pyx_L0;
|
|
18683
|
+
|
|
18684
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":392
|
|
18685
|
+
*
|
|
18686
|
+
* @property
|
|
18687
|
+
* cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18688
|
+
* """Returns a pointer to the strides of the array.
|
|
18689
|
+
* The number of elements matches the number of dimensions of the array (ndim).
|
|
18690
|
+
*/
|
|
18691
|
+
|
|
18692
|
+
/* function exit code */
|
|
18693
|
+
__pyx_L0:;
|
|
18694
|
+
return __pyx_r;
|
|
18695
|
+
}
|
|
18696
|
+
|
|
18697
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":399
|
|
18698
|
+
*
|
|
18699
|
+
* @property
|
|
18700
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18701
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18702
|
+
* """
|
|
18703
|
+
*/
|
|
18704
|
+
|
|
18705
|
+
static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
|
|
18706
|
+
npy_intp __pyx_r;
|
|
18707
|
+
|
|
18708
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":402
|
|
18709
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18710
|
+
* """
|
|
18711
|
+
* return PyArray_SIZE(self) # <<<<<<<<<<<<<<
|
|
18712
|
+
*
|
|
18713
|
+
* @property
|
|
18714
|
+
*/
|
|
18715
|
+
__pyx_r = PyArray_SIZE(__pyx_v_self);
|
|
18716
|
+
goto __pyx_L0;
|
|
18717
|
+
|
|
18718
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":399
|
|
18719
|
+
*
|
|
18720
|
+
* @property
|
|
18721
|
+
* cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18722
|
+
* """Returns the total size (in number of elements) of the array.
|
|
18723
|
+
* """
|
|
18724
|
+
*/
|
|
18725
|
+
|
|
18726
|
+
/* function exit code */
|
|
18727
|
+
__pyx_L0:;
|
|
18728
|
+
return __pyx_r;
|
|
18729
|
+
}
|
|
18730
|
+
|
|
18731
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":405
|
|
18732
|
+
*
|
|
18733
|
+
* @property
|
|
18734
|
+
* cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18735
|
+
* """The pointer to the data buffer as a char*.
|
|
18736
|
+
* This is provided for legacy reasons to avoid direct struct field access.
|
|
18737
|
+
*/
|
|
18738
|
+
|
|
18739
|
+
static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
|
|
18740
|
+
char *__pyx_r;
|
|
18741
|
+
|
|
18742
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":411
|
|
18743
|
+
* of `PyArray_DATA()` instead, which returns a 'void*'.
|
|
18744
|
+
* """
|
|
18745
|
+
* return PyArray_BYTES(self) # <<<<<<<<<<<<<<
|
|
18746
|
+
*
|
|
18747
|
+
*
|
|
18748
|
+
*/
|
|
18749
|
+
__pyx_r = PyArray_BYTES(__pyx_v_self);
|
|
18750
|
+
goto __pyx_L0;
|
|
18751
|
+
|
|
18752
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":405
|
|
18753
|
+
*
|
|
18754
|
+
* @property
|
|
18755
|
+
* cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<<
|
|
18756
|
+
* """The pointer to the data buffer as a char*.
|
|
18757
|
+
* This is provided for legacy reasons to avoid direct struct field access.
|
|
18758
|
+
*/
|
|
18759
|
+
|
|
18760
|
+
/* function exit code */
|
|
18761
|
+
__pyx_L0:;
|
|
18762
|
+
return __pyx_r;
|
|
18763
|
+
}
|
|
18764
|
+
|
|
18765
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":807
|
|
18766
|
+
* ctypedef long double complex clongdouble_t
|
|
18767
|
+
*
|
|
18768
|
+
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18769
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18770
|
+
*
|
|
18771
|
+
*/
|
|
18772
|
+
|
|
18773
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
|
|
18774
|
+
PyObject *__pyx_r = NULL;
|
|
18775
|
+
__Pyx_RefNannyDeclarations
|
|
18776
|
+
PyObject *__pyx_t_1 = NULL;
|
|
18777
|
+
int __pyx_lineno = 0;
|
|
18778
|
+
const char *__pyx_filename = NULL;
|
|
18779
|
+
int __pyx_clineno = 0;
|
|
18780
|
+
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
|
|
18781
|
+
|
|
18782
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":808
|
|
18783
|
+
*
|
|
18784
|
+
* cdef inline object PyArray_MultiIterNew1(a):
|
|
18785
|
+
* return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
|
|
18786
|
+
*
|
|
18787
|
+
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
18788
|
+
*/
|
|
18789
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18790
|
+
__pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 808, __pyx_L1_error)
|
|
18791
|
+
__Pyx_GOTREF(__pyx_t_1);
|
|
18792
|
+
__pyx_r = __pyx_t_1;
|
|
18793
|
+
__pyx_t_1 = 0;
|
|
18794
|
+
goto __pyx_L0;
|
|
18795
|
+
|
|
18796
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":807
|
|
18797
|
+
* ctypedef long double complex clongdouble_t
|
|
18798
|
+
*
|
|
18799
|
+
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
18800
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18801
|
+
*
|
|
18802
|
+
*/
|
|
18803
|
+
|
|
18804
|
+
/* function exit code */
|
|
18805
|
+
__pyx_L1_error:;
|
|
18806
|
+
__Pyx_XDECREF(__pyx_t_1);
|
|
18807
|
+
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18808
|
+
__pyx_r = 0;
|
|
18809
|
+
__pyx_L0:;
|
|
18810
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18811
|
+
__Pyx_RefNannyFinishContext();
|
|
18812
|
+
return __pyx_r;
|
|
18813
|
+
}
|
|
18814
|
+
|
|
18815
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
|
|
18816
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18817
|
+
*
|
|
18818
|
+
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18819
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18820
|
+
*
|
|
18821
|
+
*/
|
|
18822
|
+
|
|
18823
|
+
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
|
|
18824
|
+
PyObject *__pyx_r = NULL;
|
|
18825
|
+
__Pyx_RefNannyDeclarations
|
|
18826
|
+
PyObject *__pyx_t_1 = NULL;
|
|
18827
|
+
int __pyx_lineno = 0;
|
|
18828
|
+
const char *__pyx_filename = NULL;
|
|
18829
|
+
int __pyx_clineno = 0;
|
|
18830
|
+
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
|
|
18831
|
+
|
|
18832
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":811
|
|
18833
|
+
*
|
|
18834
|
+
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
18835
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
|
|
18836
|
+
*
|
|
18837
|
+
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
18838
|
+
*/
|
|
18839
|
+
__Pyx_XDECREF(__pyx_r);
|
|
18840
|
+
__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)
|
|
18841
|
+
__Pyx_GOTREF(__pyx_t_1);
|
|
18842
|
+
__pyx_r = __pyx_t_1;
|
|
18843
|
+
__pyx_t_1 = 0;
|
|
18844
|
+
goto __pyx_L0;
|
|
18845
|
+
|
|
18846
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":810
|
|
18847
|
+
* return PyArray_MultiIterNew(1, <void*>a)
|
|
18848
|
+
*
|
|
18849
|
+
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
18850
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18851
|
+
*
|
|
18852
|
+
*/
|
|
18853
|
+
|
|
18854
|
+
/* function exit code */
|
|
18855
|
+
__pyx_L1_error:;
|
|
18856
|
+
__Pyx_XDECREF(__pyx_t_1);
|
|
18857
|
+
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18858
|
+
__pyx_r = 0;
|
|
18859
|
+
__pyx_L0:;
|
|
18860
|
+
__Pyx_XGIVEREF(__pyx_r);
|
|
18861
|
+
__Pyx_RefNannyFinishContext();
|
|
18862
|
+
return __pyx_r;
|
|
18863
|
+
}
|
|
18864
|
+
|
|
18865
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
|
|
18866
|
+
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18867
|
+
*
|
|
18868
|
+
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
18869
|
+
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18422
18870
|
*
|
|
18423
18871
|
*/
|
|
18424
18872
|
|
|
@@ -18431,7 +18879,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18431
18879
|
int __pyx_clineno = 0;
|
|
18432
18880
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);
|
|
18433
18881
|
|
|
18434
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18882
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":814
|
|
18435
18883
|
*
|
|
18436
18884
|
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
18437
18885
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
|
|
@@ -18439,13 +18887,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18439
18887
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
18440
18888
|
*/
|
|
18441
18889
|
__Pyx_XDECREF(__pyx_r);
|
|
18442
|
-
__pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2,
|
|
18890
|
+
__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)
|
|
18443
18891
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18444
18892
|
__pyx_r = __pyx_t_1;
|
|
18445
18893
|
__pyx_t_1 = 0;
|
|
18446
18894
|
goto __pyx_L0;
|
|
18447
18895
|
|
|
18448
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18896
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":813
|
|
18449
18897
|
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
18450
18898
|
*
|
|
18451
18899
|
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
@@ -18464,7 +18912,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
18464
18912
|
return __pyx_r;
|
|
18465
18913
|
}
|
|
18466
18914
|
|
|
18467
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18915
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
|
|
18468
18916
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18469
18917
|
*
|
|
18470
18918
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -18481,7 +18929,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18481
18929
|
int __pyx_clineno = 0;
|
|
18482
18930
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);
|
|
18483
18931
|
|
|
18484
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18932
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":817
|
|
18485
18933
|
*
|
|
18486
18934
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
18487
18935
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
|
|
@@ -18489,13 +18937,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18489
18937
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
18490
18938
|
*/
|
|
18491
18939
|
__Pyx_XDECREF(__pyx_r);
|
|
18492
|
-
__pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2,
|
|
18940
|
+
__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)
|
|
18493
18941
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18494
18942
|
__pyx_r = __pyx_t_1;
|
|
18495
18943
|
__pyx_t_1 = 0;
|
|
18496
18944
|
goto __pyx_L0;
|
|
18497
18945
|
|
|
18498
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18946
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":816
|
|
18499
18947
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
18500
18948
|
*
|
|
18501
18949
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -18514,7 +18962,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
18514
18962
|
return __pyx_r;
|
|
18515
18963
|
}
|
|
18516
18964
|
|
|
18517
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18965
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":819
|
|
18518
18966
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
18519
18967
|
*
|
|
18520
18968
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -18531,7 +18979,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18531
18979
|
int __pyx_clineno = 0;
|
|
18532
18980
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);
|
|
18533
18981
|
|
|
18534
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18982
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":820
|
|
18535
18983
|
*
|
|
18536
18984
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
18537
18985
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
|
|
@@ -18539,13 +18987,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18539
18987
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18540
18988
|
*/
|
|
18541
18989
|
__Pyx_XDECREF(__pyx_r);
|
|
18542
|
-
__pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2,
|
|
18990
|
+
__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)
|
|
18543
18991
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18544
18992
|
__pyx_r = __pyx_t_1;
|
|
18545
18993
|
__pyx_t_1 = 0;
|
|
18546
18994
|
goto __pyx_L0;
|
|
18547
18995
|
|
|
18548
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18996
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":819
|
|
18549
18997
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
18550
18998
|
*
|
|
18551
18999
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -18564,7 +19012,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
18564
19012
|
return __pyx_r;
|
|
18565
19013
|
}
|
|
18566
19014
|
|
|
18567
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19015
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":822
|
|
18568
19016
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
18569
19017
|
*
|
|
18570
19018
|
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
|
|
@@ -18576,9 +19024,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18576
19024
|
PyObject *__pyx_r = NULL;
|
|
18577
19025
|
__Pyx_RefNannyDeclarations
|
|
18578
19026
|
int __pyx_t_1;
|
|
19027
|
+
PyObject *__pyx_t_2;
|
|
18579
19028
|
__Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);
|
|
18580
19029
|
|
|
18581
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19030
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":823
|
|
18582
19031
|
*
|
|
18583
19032
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18584
19033
|
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
|
|
@@ -18588,7 +19037,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18588
19037
|
__pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
|
|
18589
19038
|
if (__pyx_t_1) {
|
|
18590
19039
|
|
|
18591
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19040
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":824
|
|
18592
19041
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18593
19042
|
* if PyDataType_HASSUBARRAY(d):
|
|
18594
19043
|
* return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
|
|
@@ -18596,11 +19045,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18596
19045
|
* return ()
|
|
18597
19046
|
*/
|
|
18598
19047
|
__Pyx_XDECREF(__pyx_r);
|
|
18599
|
-
|
|
18600
|
-
|
|
19048
|
+
__pyx_t_2 = __pyx_f_5numpy_5dtype_8subarray_subarray(__pyx_v_d)->shape;
|
|
19049
|
+
__Pyx_INCREF(((PyObject*)__pyx_t_2));
|
|
19050
|
+
__pyx_r = ((PyObject*)__pyx_t_2);
|
|
18601
19051
|
goto __pyx_L0;
|
|
18602
19052
|
|
|
18603
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19053
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":823
|
|
18604
19054
|
*
|
|
18605
19055
|
* cdef inline tuple PyDataType_SHAPE(dtype d):
|
|
18606
19056
|
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
|
|
@@ -18609,7 +19059,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18609
19059
|
*/
|
|
18610
19060
|
}
|
|
18611
19061
|
|
|
18612
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19062
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":826
|
|
18613
19063
|
* return <tuple>d.subarray.shape
|
|
18614
19064
|
* else:
|
|
18615
19065
|
* return () # <<<<<<<<<<<<<<
|
|
@@ -18623,7 +19073,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18623
19073
|
goto __pyx_L0;
|
|
18624
19074
|
}
|
|
18625
19075
|
|
|
18626
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19076
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":822
|
|
18627
19077
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
18628
19078
|
*
|
|
18629
19079
|
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
|
|
@@ -18638,10 +19088,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
|
|
|
18638
19088
|
return __pyx_r;
|
|
18639
19089
|
}
|
|
18640
19090
|
|
|
18641
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19091
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1010
|
|
18642
19092
|
* int _import_umath() except -1
|
|
18643
19093
|
*
|
|
18644
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19094
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
|
|
18645
19095
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18646
19096
|
* PyArray_SetBaseObject(arr, base)
|
|
18647
19097
|
*/
|
|
@@ -18652,28 +19102,28 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
18652
19102
|
const char *__pyx_filename = NULL;
|
|
18653
19103
|
int __pyx_clineno = 0;
|
|
18654
19104
|
|
|
18655
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19105
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1011
|
|
18656
19106
|
*
|
|
18657
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19107
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *:
|
|
18658
19108
|
* Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
|
|
18659
19109
|
* PyArray_SetBaseObject(arr, base)
|
|
18660
19110
|
*
|
|
18661
19111
|
*/
|
|
18662
19112
|
Py_INCREF(__pyx_v_base);
|
|
18663
19113
|
|
|
18664
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18665
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19114
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1012
|
|
19115
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *:
|
|
18666
19116
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18667
19117
|
* PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
|
|
18668
19118
|
*
|
|
18669
19119
|
* cdef inline object get_array_base(ndarray arr):
|
|
18670
19120
|
*/
|
|
18671
|
-
__pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2,
|
|
19121
|
+
__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)
|
|
18672
19122
|
|
|
18673
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19123
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1010
|
|
18674
19124
|
* int _import_umath() except -1
|
|
18675
19125
|
*
|
|
18676
|
-
* cdef inline void set_array_base(ndarray arr, object base)
|
|
19126
|
+
* cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<<
|
|
18677
19127
|
* Py_INCREF(base) # important to do this before stealing the reference below!
|
|
18678
19128
|
* PyArray_SetBaseObject(arr, base)
|
|
18679
19129
|
*/
|
|
@@ -18685,7 +19135,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
18685
19135
|
__pyx_L0:;
|
|
18686
19136
|
}
|
|
18687
19137
|
|
|
18688
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19138
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
|
|
18689
19139
|
* PyArray_SetBaseObject(arr, base)
|
|
18690
19140
|
*
|
|
18691
19141
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -18700,7 +19150,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18700
19150
|
int __pyx_t_1;
|
|
18701
19151
|
__Pyx_RefNannySetupContext("get_array_base", 1);
|
|
18702
19152
|
|
|
18703
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19153
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1015
|
|
18704
19154
|
*
|
|
18705
19155
|
* cdef inline object get_array_base(ndarray arr):
|
|
18706
19156
|
* base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
|
|
@@ -18709,7 +19159,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18709
19159
|
*/
|
|
18710
19160
|
__pyx_v_base = PyArray_BASE(__pyx_v_arr);
|
|
18711
19161
|
|
|
18712
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19162
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1016
|
|
18713
19163
|
* cdef inline object get_array_base(ndarray arr):
|
|
18714
19164
|
* base = PyArray_BASE(arr)
|
|
18715
19165
|
* if base is NULL: # <<<<<<<<<<<<<<
|
|
@@ -18719,7 +19169,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18719
19169
|
__pyx_t_1 = (__pyx_v_base == NULL);
|
|
18720
19170
|
if (__pyx_t_1) {
|
|
18721
19171
|
|
|
18722
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19172
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1017
|
|
18723
19173
|
* base = PyArray_BASE(arr)
|
|
18724
19174
|
* if base is NULL:
|
|
18725
19175
|
* return None # <<<<<<<<<<<<<<
|
|
@@ -18730,7 +19180,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18730
19180
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
18731
19181
|
goto __pyx_L0;
|
|
18732
19182
|
|
|
18733
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19183
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1016
|
|
18734
19184
|
* cdef inline object get_array_base(ndarray arr):
|
|
18735
19185
|
* base = PyArray_BASE(arr)
|
|
18736
19186
|
* if base is NULL: # <<<<<<<<<<<<<<
|
|
@@ -18739,7 +19189,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18739
19189
|
*/
|
|
18740
19190
|
}
|
|
18741
19191
|
|
|
18742
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19192
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1018
|
|
18743
19193
|
* if base is NULL:
|
|
18744
19194
|
* return None
|
|
18745
19195
|
* return <object>base # <<<<<<<<<<<<<<
|
|
@@ -18751,7 +19201,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18751
19201
|
__pyx_r = ((PyObject *)__pyx_v_base);
|
|
18752
19202
|
goto __pyx_L0;
|
|
18753
19203
|
|
|
18754
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19204
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1014
|
|
18755
19205
|
* PyArray_SetBaseObject(arr, base)
|
|
18756
19206
|
*
|
|
18757
19207
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -18766,7 +19216,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
18766
19216
|
return __pyx_r;
|
|
18767
19217
|
}
|
|
18768
19218
|
|
|
18769
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19219
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1022
|
|
18770
19220
|
* # Versions of the import_* functions which are more suitable for
|
|
18771
19221
|
* # Cython code.
|
|
18772
19222
|
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
|
|
@@ -18790,7 +19240,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18790
19240
|
int __pyx_clineno = 0;
|
|
18791
19241
|
__Pyx_RefNannySetupContext("import_array", 1);
|
|
18792
19242
|
|
|
18793
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19243
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
|
|
18794
19244
|
* # Cython code.
|
|
18795
19245
|
* cdef inline int import_array() except -1:
|
|
18796
19246
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18806,16 +19256,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18806
19256
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
18807
19257
|
/*try:*/ {
|
|
18808
19258
|
|
|
18809
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19259
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1024
|
|
18810
19260
|
* cdef inline int import_array() except -1:
|
|
18811
19261
|
* try:
|
|
18812
19262
|
* __pyx_import_array() # <<<<<<<<<<<<<<
|
|
18813
19263
|
* except Exception:
|
|
18814
|
-
* raise ImportError("numpy.
|
|
19264
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
18815
19265
|
*/
|
|
18816
|
-
__pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19266
|
+
__pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1024, __pyx_L3_error)
|
|
18817
19267
|
|
|
18818
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19268
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
|
|
18819
19269
|
* # Cython code.
|
|
18820
19270
|
* cdef inline int import_array() except -1:
|
|
18821
19271
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18829,37 +19279,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18829
19279
|
goto __pyx_L8_try_end;
|
|
18830
19280
|
__pyx_L3_error:;
|
|
18831
19281
|
|
|
18832
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19282
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1025
|
|
18833
19283
|
* try:
|
|
18834
19284
|
* __pyx_import_array()
|
|
18835
19285
|
* except Exception: # <<<<<<<<<<<<<<
|
|
18836
|
-
* raise ImportError("numpy.
|
|
19286
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
18837
19287
|
*
|
|
18838
19288
|
*/
|
|
18839
19289
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
18840
19290
|
if (__pyx_t_4) {
|
|
18841
19291
|
__Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18842
|
-
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2,
|
|
19292
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1025, __pyx_L5_except_error)
|
|
18843
19293
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
18844
19294
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
18845
19295
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
18846
19296
|
|
|
18847
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19297
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
|
|
18848
19298
|
* __pyx_import_array()
|
|
18849
19299
|
* except Exception:
|
|
18850
|
-
* raise ImportError("numpy.
|
|
19300
|
+
* raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
|
|
18851
19301
|
*
|
|
18852
19302
|
* cdef inline int import_umath() except -1:
|
|
18853
19303
|
*/
|
|
18854
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19304
|
+
__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)
|
|
18855
19305
|
__Pyx_GOTREF(__pyx_t_8);
|
|
18856
19306
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
18857
19307
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
18858
|
-
__PYX_ERR(2,
|
|
19308
|
+
__PYX_ERR(2, 1026, __pyx_L5_except_error)
|
|
18859
19309
|
}
|
|
18860
19310
|
goto __pyx_L5_except_error;
|
|
18861
19311
|
|
|
18862
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19312
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1023
|
|
18863
19313
|
* # Cython code.
|
|
18864
19314
|
* cdef inline int import_array() except -1:
|
|
18865
19315
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18875,7 +19325,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18875
19325
|
__pyx_L8_try_end:;
|
|
18876
19326
|
}
|
|
18877
19327
|
|
|
18878
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19328
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1022
|
|
18879
19329
|
* # Versions of the import_* functions which are more suitable for
|
|
18880
19330
|
* # Cython code.
|
|
18881
19331
|
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
|
|
@@ -18898,8 +19348,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
|
|
|
18898
19348
|
return __pyx_r;
|
|
18899
19349
|
}
|
|
18900
19350
|
|
|
18901
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
18902
|
-
* raise ImportError("numpy.
|
|
19351
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1028
|
|
19352
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
18903
19353
|
*
|
|
18904
19354
|
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
|
|
18905
19355
|
* try:
|
|
@@ -18922,7 +19372,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
18922
19372
|
int __pyx_clineno = 0;
|
|
18923
19373
|
__Pyx_RefNannySetupContext("import_umath", 1);
|
|
18924
19374
|
|
|
18925
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19375
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
|
|
18926
19376
|
*
|
|
18927
19377
|
* cdef inline int import_umath() except -1:
|
|
18928
19378
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18938,16 +19388,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
18938
19388
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
18939
19389
|
/*try:*/ {
|
|
18940
19390
|
|
|
18941
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19391
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1030
|
|
18942
19392
|
* cdef inline int import_umath() except -1:
|
|
18943
19393
|
* try:
|
|
18944
19394
|
* _import_umath() # <<<<<<<<<<<<<<
|
|
18945
19395
|
* except Exception:
|
|
18946
|
-
* raise ImportError("numpy.
|
|
19396
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
18947
19397
|
*/
|
|
18948
|
-
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19398
|
+
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1030, __pyx_L3_error)
|
|
18949
19399
|
|
|
18950
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19400
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
|
|
18951
19401
|
*
|
|
18952
19402
|
* cdef inline int import_umath() except -1:
|
|
18953
19403
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -18961,37 +19411,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
18961
19411
|
goto __pyx_L8_try_end;
|
|
18962
19412
|
__pyx_L3_error:;
|
|
18963
19413
|
|
|
18964
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19414
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1031
|
|
18965
19415
|
* try:
|
|
18966
19416
|
* _import_umath()
|
|
18967
19417
|
* except Exception: # <<<<<<<<<<<<<<
|
|
18968
|
-
* raise ImportError("numpy.
|
|
19418
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
18969
19419
|
*
|
|
18970
19420
|
*/
|
|
18971
19421
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
18972
19422
|
if (__pyx_t_4) {
|
|
18973
19423
|
__Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
18974
|
-
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2,
|
|
19424
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1031, __pyx_L5_except_error)
|
|
18975
19425
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
18976
19426
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
18977
19427
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
18978
19428
|
|
|
18979
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19429
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1032
|
|
18980
19430
|
* _import_umath()
|
|
18981
19431
|
* except Exception:
|
|
18982
|
-
* raise ImportError("numpy.
|
|
19432
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
18983
19433
|
*
|
|
18984
19434
|
* cdef inline int import_ufunc() except -1:
|
|
18985
19435
|
*/
|
|
18986
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19436
|
+
__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)
|
|
18987
19437
|
__Pyx_GOTREF(__pyx_t_8);
|
|
18988
19438
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
18989
19439
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
18990
|
-
__PYX_ERR(2,
|
|
19440
|
+
__PYX_ERR(2, 1032, __pyx_L5_except_error)
|
|
18991
19441
|
}
|
|
18992
19442
|
goto __pyx_L5_except_error;
|
|
18993
19443
|
|
|
18994
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19444
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1029
|
|
18995
19445
|
*
|
|
18996
19446
|
* cdef inline int import_umath() except -1:
|
|
18997
19447
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19007,8 +19457,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19007
19457
|
__pyx_L8_try_end:;
|
|
19008
19458
|
}
|
|
19009
19459
|
|
|
19010
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19011
|
-
* raise ImportError("numpy.
|
|
19460
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1028
|
|
19461
|
+
* raise ImportError("numpy._core.multiarray failed to import")
|
|
19012
19462
|
*
|
|
19013
19463
|
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
|
|
19014
19464
|
* try:
|
|
@@ -19030,8 +19480,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
|
|
|
19030
19480
|
return __pyx_r;
|
|
19031
19481
|
}
|
|
19032
19482
|
|
|
19033
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19034
|
-
* raise ImportError("numpy.
|
|
19483
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1034
|
|
19484
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19035
19485
|
*
|
|
19036
19486
|
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
|
|
19037
19487
|
* try:
|
|
@@ -19054,7 +19504,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19054
19504
|
int __pyx_clineno = 0;
|
|
19055
19505
|
__Pyx_RefNannySetupContext("import_ufunc", 1);
|
|
19056
19506
|
|
|
19057
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19507
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
19058
19508
|
*
|
|
19059
19509
|
* cdef inline int import_ufunc() except -1:
|
|
19060
19510
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19070,16 +19520,16 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19070
19520
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
19071
19521
|
/*try:*/ {
|
|
19072
19522
|
|
|
19073
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19523
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1036
|
|
19074
19524
|
* cdef inline int import_ufunc() except -1:
|
|
19075
19525
|
* try:
|
|
19076
19526
|
* _import_umath() # <<<<<<<<<<<<<<
|
|
19077
19527
|
* except Exception:
|
|
19078
|
-
* raise ImportError("numpy.
|
|
19528
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19079
19529
|
*/
|
|
19080
|
-
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2,
|
|
19530
|
+
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1036, __pyx_L3_error)
|
|
19081
19531
|
|
|
19082
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19532
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
19083
19533
|
*
|
|
19084
19534
|
* cdef inline int import_ufunc() except -1:
|
|
19085
19535
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19093,37 +19543,37 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19093
19543
|
goto __pyx_L8_try_end;
|
|
19094
19544
|
__pyx_L3_error:;
|
|
19095
19545
|
|
|
19096
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19546
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1037
|
|
19097
19547
|
* try:
|
|
19098
19548
|
* _import_umath()
|
|
19099
19549
|
* except Exception: # <<<<<<<<<<<<<<
|
|
19100
|
-
* raise ImportError("numpy.
|
|
19550
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19101
19551
|
*
|
|
19102
19552
|
*/
|
|
19103
19553
|
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
19104
19554
|
if (__pyx_t_4) {
|
|
19105
19555
|
__Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
19106
|
-
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2,
|
|
19556
|
+
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1037, __pyx_L5_except_error)
|
|
19107
19557
|
__Pyx_XGOTREF(__pyx_t_5);
|
|
19108
19558
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
19109
19559
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
19110
19560
|
|
|
19111
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19561
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1038
|
|
19112
19562
|
* _import_umath()
|
|
19113
19563
|
* except Exception:
|
|
19114
|
-
* raise ImportError("numpy.
|
|
19564
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
19115
19565
|
*
|
|
19116
19566
|
*
|
|
19117
19567
|
*/
|
|
19118
|
-
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2,
|
|
19568
|
+
__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)
|
|
19119
19569
|
__Pyx_GOTREF(__pyx_t_8);
|
|
19120
19570
|
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
19121
19571
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
19122
|
-
__PYX_ERR(2,
|
|
19572
|
+
__PYX_ERR(2, 1038, __pyx_L5_except_error)
|
|
19123
19573
|
}
|
|
19124
19574
|
goto __pyx_L5_except_error;
|
|
19125
19575
|
|
|
19126
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19576
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1035
|
|
19127
19577
|
*
|
|
19128
19578
|
* cdef inline int import_ufunc() except -1:
|
|
19129
19579
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -19139,8 +19589,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19139
19589
|
__pyx_L8_try_end:;
|
|
19140
19590
|
}
|
|
19141
19591
|
|
|
19142
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19143
|
-
* raise ImportError("numpy.
|
|
19592
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1034
|
|
19593
|
+
* raise ImportError("numpy._core.umath failed to import")
|
|
19144
19594
|
*
|
|
19145
19595
|
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
|
|
19146
19596
|
* try:
|
|
@@ -19162,10 +19612,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19162
19612
|
return __pyx_r;
|
|
19163
19613
|
}
|
|
19164
19614
|
|
|
19165
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19615
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
|
|
19166
19616
|
*
|
|
19167
19617
|
*
|
|
19168
|
-
* cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
|
|
19618
|
+
* cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19169
19619
|
* """
|
|
19170
19620
|
* Cython equivalent of `isinstance(obj, np.timedelta64)`
|
|
19171
19621
|
*/
|
|
@@ -19173,7 +19623,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
|
|
|
19173
19623
|
static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
|
|
19174
19624
|
int __pyx_r;
|
|
19175
19625
|
|
|
19176
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19626
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1053
|
|
19177
19627
|
* bool
|
|
19178
19628
|
* """
|
|
19179
19629
|
* return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
|
|
@@ -19183,10 +19633,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19183
19633
|
__pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
|
|
19184
19634
|
goto __pyx_L0;
|
|
19185
19635
|
|
|
19186
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19636
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1041
|
|
19187
19637
|
*
|
|
19188
19638
|
*
|
|
19189
|
-
* cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
|
|
19639
|
+
* cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19190
19640
|
* """
|
|
19191
19641
|
* Cython equivalent of `isinstance(obj, np.timedelta64)`
|
|
19192
19642
|
*/
|
|
@@ -19196,10 +19646,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19196
19646
|
return __pyx_r;
|
|
19197
19647
|
}
|
|
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":1056
|
|
19200
19650
|
*
|
|
19201
19651
|
*
|
|
19202
|
-
* cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
|
|
19652
|
+
* cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19203
19653
|
* """
|
|
19204
19654
|
* Cython equivalent of `isinstance(obj, np.datetime64)`
|
|
19205
19655
|
*/
|
|
@@ -19207,7 +19657,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
|
|
|
19207
19657
|
static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
|
|
19208
19658
|
int __pyx_r;
|
|
19209
19659
|
|
|
19210
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19660
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1068
|
|
19211
19661
|
* bool
|
|
19212
19662
|
* """
|
|
19213
19663
|
* return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
|
|
@@ -19217,10 +19667,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19217
19667
|
__pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
|
|
19218
19668
|
goto __pyx_L0;
|
|
19219
19669
|
|
|
19220
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19670
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1056
|
|
19221
19671
|
*
|
|
19222
19672
|
*
|
|
19223
|
-
* cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
|
|
19673
|
+
* cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<<
|
|
19224
19674
|
* """
|
|
19225
19675
|
* Cython equivalent of `isinstance(obj, np.datetime64)`
|
|
19226
19676
|
*/
|
|
@@ -19230,10 +19680,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19230
19680
|
return __pyx_r;
|
|
19231
19681
|
}
|
|
19232
19682
|
|
|
19233
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19683
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1071
|
|
19234
19684
|
*
|
|
19235
19685
|
*
|
|
19236
|
-
* cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19686
|
+
* cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19237
19687
|
* """
|
|
19238
19688
|
* returns the int64 value underlying scalar numpy datetime64 object
|
|
19239
19689
|
*/
|
|
@@ -19241,7 +19691,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
|
|
|
19241
19691
|
static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
|
|
19242
19692
|
npy_datetime __pyx_r;
|
|
19243
19693
|
|
|
19244
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19694
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1078
|
|
19245
19695
|
* also needed. That can be found using `get_datetime64_unit`.
|
|
19246
19696
|
* """
|
|
19247
19697
|
* return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
|
|
@@ -19251,10 +19701,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19251
19701
|
__pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
|
|
19252
19702
|
goto __pyx_L0;
|
|
19253
19703
|
|
|
19254
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19704
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1071
|
|
19255
19705
|
*
|
|
19256
19706
|
*
|
|
19257
|
-
* cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19707
|
+
* cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19258
19708
|
* """
|
|
19259
19709
|
* returns the int64 value underlying scalar numpy datetime64 object
|
|
19260
19710
|
*/
|
|
@@ -19264,10 +19714,10 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19264
19714
|
return __pyx_r;
|
|
19265
19715
|
}
|
|
19266
19716
|
|
|
19267
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19717
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
|
|
19268
19718
|
*
|
|
19269
19719
|
*
|
|
19270
|
-
* cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19720
|
+
* cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19271
19721
|
* """
|
|
19272
19722
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19273
19723
|
*/
|
|
@@ -19275,7 +19725,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
|
|
|
19275
19725
|
static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
|
|
19276
19726
|
npy_timedelta __pyx_r;
|
|
19277
19727
|
|
|
19278
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19728
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1085
|
|
19279
19729
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19280
19730
|
* """
|
|
19281
19731
|
* return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
|
|
@@ -19285,10 +19735,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19285
19735
|
__pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
|
|
19286
19736
|
goto __pyx_L0;
|
|
19287
19737
|
|
|
19288
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19738
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1081
|
|
19289
19739
|
*
|
|
19290
19740
|
*
|
|
19291
|
-
* cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19741
|
+
* cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19292
19742
|
* """
|
|
19293
19743
|
* returns the int64 value underlying scalar numpy timedelta64 object
|
|
19294
19744
|
*/
|
|
@@ -19298,10 +19748,10 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19298
19748
|
return __pyx_r;
|
|
19299
19749
|
}
|
|
19300
19750
|
|
|
19301
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19751
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1088
|
|
19302
19752
|
*
|
|
19303
19753
|
*
|
|
19304
|
-
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19754
|
+
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19305
19755
|
* """
|
|
19306
19756
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19307
19757
|
*/
|
|
@@ -19309,18 +19759,20 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
|
|
|
19309
19759
|
static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
|
|
19310
19760
|
NPY_DATETIMEUNIT __pyx_r;
|
|
19311
19761
|
|
|
19312
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19762
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1092
|
|
19313
19763
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19314
19764
|
* """
|
|
19315
19765
|
* return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
|
|
19766
|
+
*
|
|
19767
|
+
*
|
|
19316
19768
|
*/
|
|
19317
19769
|
__pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
|
|
19318
19770
|
goto __pyx_L0;
|
|
19319
19771
|
|
|
19320
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
19772
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1088
|
|
19321
19773
|
*
|
|
19322
19774
|
*
|
|
19323
|
-
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
|
|
19775
|
+
* cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<<
|
|
19324
19776
|
* """
|
|
19325
19777
|
* returns the unit part of the dtype for a numpy datetime64 object.
|
|
19326
19778
|
*/
|
|
@@ -19356,7 +19808,7 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19356
19808
|
PyObject *__pyx_t_2 = NULL;
|
|
19357
19809
|
PyObject *__pyx_t_3 = NULL;
|
|
19358
19810
|
PyObject *__pyx_t_4 = NULL;
|
|
19359
|
-
int __pyx_t_5;
|
|
19811
|
+
unsigned int __pyx_t_5;
|
|
19360
19812
|
PyObject *__pyx_t_6 = NULL;
|
|
19361
19813
|
__Pyx_memviewslice __pyx_t_7 = { 0, 0, { 0 }, { 0 }, { 0 } };
|
|
19362
19814
|
PyArrayObject *__pyx_t_8 = NULL;
|
|
@@ -19364,8 +19816,9 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19364
19816
|
int __pyx_t_10;
|
|
19365
19817
|
int __pyx_t_11;
|
|
19366
19818
|
int __pyx_t_12;
|
|
19367
|
-
|
|
19819
|
+
int __pyx_t_13;
|
|
19368
19820
|
Py_ssize_t __pyx_t_14;
|
|
19821
|
+
Py_ssize_t __pyx_t_15;
|
|
19369
19822
|
int __pyx_lineno = 0;
|
|
19370
19823
|
const char *__pyx_filename = NULL;
|
|
19371
19824
|
int __pyx_clineno = 0;
|
|
@@ -19556,10 +20009,10 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19556
20009
|
* mh.insert_key(i, degrees)
|
|
19557
20010
|
*
|
|
19558
20011
|
*/
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
for (
|
|
19562
|
-
__pyx_v_i =
|
|
20012
|
+
__pyx_t_9 = __pyx_v_n;
|
|
20013
|
+
__pyx_t_10 = __pyx_t_9;
|
|
20014
|
+
for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
|
|
20015
|
+
__pyx_v_i = __pyx_t_11;
|
|
19563
20016
|
|
|
19564
20017
|
/* "sknetwork/topology/core.pyx":47
|
|
19565
20018
|
* # insert all nodes in the heap
|
|
@@ -19588,9 +20041,9 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19588
20041
|
* core_value = max(core_value, degrees[min_node])
|
|
19589
20042
|
*/
|
|
19590
20043
|
while (1) {
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
if (!
|
|
20044
|
+
__pyx_t_12 = ((struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap *)__pyx_v_mh->__pyx_vtab)->empty(__pyx_v_mh); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
20045
|
+
__pyx_t_13 = (!__pyx_t_12);
|
|
20046
|
+
if (!__pyx_t_13) break;
|
|
19594
20047
|
|
|
19595
20048
|
/* "sknetwork/topology/core.pyx":51
|
|
19596
20049
|
* i = n - 1
|
|
@@ -19599,8 +20052,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19599
20052
|
* core_value = max(core_value, degrees[min_node])
|
|
19600
20053
|
*
|
|
19601
20054
|
*/
|
|
19602
|
-
|
|
19603
|
-
__pyx_v_min_node =
|
|
20055
|
+
__pyx_t_9 = ((struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap *)__pyx_v_mh->__pyx_vtab)->pop_min(__pyx_v_mh, __pyx_v_degrees); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 51, __pyx_L1_error)
|
|
20056
|
+
__pyx_v_min_node = __pyx_t_9;
|
|
19604
20057
|
|
|
19605
20058
|
/* "sknetwork/topology/core.pyx":52
|
|
19606
20059
|
* while not mh.empty():
|
|
@@ -19609,16 +20062,16 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19609
20062
|
*
|
|
19610
20063
|
* # decrease the degree of each neighbor of min_node
|
|
19611
20064
|
*/
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19615
|
-
|
|
19616
|
-
if (
|
|
19617
|
-
|
|
20065
|
+
__pyx_t_14 = __pyx_v_min_node;
|
|
20066
|
+
__pyx_t_9 = (*((int *) ( /* dim=0 */ (__pyx_v_degrees.data + __pyx_t_14 * __pyx_v_degrees.strides[0]) )));
|
|
20067
|
+
__pyx_t_10 = __pyx_v_core_value;
|
|
20068
|
+
__pyx_t_13 = (__pyx_t_9 > __pyx_t_10);
|
|
20069
|
+
if (__pyx_t_13) {
|
|
20070
|
+
__pyx_t_11 = __pyx_t_9;
|
|
19618
20071
|
} else {
|
|
19619
|
-
|
|
20072
|
+
__pyx_t_11 = __pyx_t_10;
|
|
19620
20073
|
}
|
|
19621
|
-
__pyx_v_core_value =
|
|
20074
|
+
__pyx_v_core_value = __pyx_t_11;
|
|
19622
20075
|
|
|
19623
20076
|
/* "sknetwork/topology/core.pyx":55
|
|
19624
20077
|
*
|
|
@@ -19627,12 +20080,12 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19627
20080
|
* j = indices[k]
|
|
19628
20081
|
* degrees[j] -= 1
|
|
19629
20082
|
*/
|
|
19630
|
-
|
|
19631
|
-
|
|
19632
|
-
|
|
19633
|
-
|
|
19634
|
-
for (
|
|
19635
|
-
__pyx_v_k =
|
|
20083
|
+
__pyx_t_14 = (__pyx_v_min_node + 1);
|
|
20084
|
+
__pyx_t_11 = (*((int *) ( /* dim=0 */ (__pyx_v_indptr.data + __pyx_t_14 * __pyx_v_indptr.strides[0]) )));
|
|
20085
|
+
__pyx_t_14 = __pyx_v_min_node;
|
|
20086
|
+
__pyx_t_9 = __pyx_t_11;
|
|
20087
|
+
for (__pyx_t_10 = (*((int *) ( /* dim=0 */ (__pyx_v_indptr.data + __pyx_t_14 * __pyx_v_indptr.strides[0]) ))); __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
|
|
20088
|
+
__pyx_v_k = __pyx_t_10;
|
|
19636
20089
|
|
|
19637
20090
|
/* "sknetwork/topology/core.pyx":56
|
|
19638
20091
|
* # decrease the degree of each neighbor of min_node
|
|
@@ -19641,8 +20094,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19641
20094
|
* degrees[j] -= 1
|
|
19642
20095
|
* mh.decrease_key(j, degrees) # update the heap to take the new degree into account
|
|
19643
20096
|
*/
|
|
19644
|
-
|
|
19645
|
-
__pyx_v_j = (*((int *) ( /* dim=0 */ (__pyx_v_indices.data +
|
|
20097
|
+
__pyx_t_15 = __pyx_v_k;
|
|
20098
|
+
__pyx_v_j = (*((int *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) )));
|
|
19646
20099
|
|
|
19647
20100
|
/* "sknetwork/topology/core.pyx":57
|
|
19648
20101
|
* for k in range(indptr[min_node], indptr[min_node+1]):
|
|
@@ -19651,8 +20104,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19651
20104
|
* mh.decrease_key(j, degrees) # update the heap to take the new degree into account
|
|
19652
20105
|
*
|
|
19653
20106
|
*/
|
|
19654
|
-
|
|
19655
|
-
*((int *) ( /* dim=0 */ (__pyx_v_degrees.data +
|
|
20107
|
+
__pyx_t_15 = __pyx_v_j;
|
|
20108
|
+
*((int *) ( /* dim=0 */ (__pyx_v_degrees.data + __pyx_t_15 * __pyx_v_degrees.strides[0]) )) -= 1;
|
|
19656
20109
|
|
|
19657
20110
|
/* "sknetwork/topology/core.pyx":58
|
|
19658
20111
|
* j = indices[k]
|
|
@@ -19671,8 +20124,8 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19671
20124
|
* i -= 1
|
|
19672
20125
|
*
|
|
19673
20126
|
*/
|
|
19674
|
-
|
|
19675
|
-
*__Pyx_BufPtrStrided1d(int *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf,
|
|
20127
|
+
__pyx_t_14 = __pyx_v_min_node;
|
|
20128
|
+
*__Pyx_BufPtrStrided1d(int *, __pyx_pybuffernd_labels.rcbuffer->pybuffer.buf, __pyx_t_14, __pyx_pybuffernd_labels.diminfo[0].strides) = __pyx_v_core_value;
|
|
19676
20129
|
|
|
19677
20130
|
/* "sknetwork/topology/core.pyx":61
|
|
19678
20131
|
*
|
|
@@ -19698,7 +20151,7 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19698
20151
|
__Pyx_GOTREF(__pyx_t_1);
|
|
19699
20152
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
19700
20153
|
__pyx_t_3 = NULL;
|
|
19701
|
-
|
|
20154
|
+
__pyx_t_5 = 0;
|
|
19702
20155
|
#if CYTHON_UNPACK_METHODS
|
|
19703
20156
|
if (unlikely(PyMethod_Check(__pyx_t_1))) {
|
|
19704
20157
|
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
|
|
@@ -19707,13 +20160,13 @@ static PyObject *__pyx_f_9sknetwork_8topology_4core_compute_core(__Pyx_memviewsl
|
|
|
19707
20160
|
__Pyx_INCREF(__pyx_t_3);
|
|
19708
20161
|
__Pyx_INCREF(function);
|
|
19709
20162
|
__Pyx_DECREF_SET(__pyx_t_1, function);
|
|
19710
|
-
|
|
20163
|
+
__pyx_t_5 = 1;
|
|
19711
20164
|
}
|
|
19712
20165
|
}
|
|
19713
20166
|
#endif
|
|
19714
20167
|
{
|
|
19715
20168
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, ((PyObject *)__pyx_v_labels)};
|
|
19716
|
-
__pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-
|
|
20169
|
+
__pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
|
|
19717
20170
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
19718
20171
|
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 63, __pyx_L1_error)
|
|
19719
20172
|
__Pyx_GOTREF(__pyx_t_6);
|
|
@@ -20232,6 +20685,9 @@ static PyTypeObject __pyx_type___pyx_array = {
|
|
|
20232
20685
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
20233
20686
|
0, /*tp_watched*/
|
|
20234
20687
|
#endif
|
|
20688
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
20689
|
+
0, /*tp_versions_used*/
|
|
20690
|
+
#endif
|
|
20235
20691
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
20236
20692
|
0, /*tp_pypy_flags*/
|
|
20237
20693
|
#endif
|
|
@@ -20402,6 +20858,9 @@ static PyTypeObject __pyx_type___pyx_MemviewEnum = {
|
|
|
20402
20858
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
20403
20859
|
0, /*tp_watched*/
|
|
20404
20860
|
#endif
|
|
20861
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
20862
|
+
0, /*tp_versions_used*/
|
|
20863
|
+
#endif
|
|
20405
20864
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
20406
20865
|
0, /*tp_pypy_flags*/
|
|
20407
20866
|
#endif
|
|
@@ -20745,6 +21204,9 @@ static PyTypeObject __pyx_type___pyx_memoryview = {
|
|
|
20745
21204
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
20746
21205
|
0, /*tp_watched*/
|
|
20747
21206
|
#endif
|
|
21207
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
21208
|
+
0, /*tp_versions_used*/
|
|
21209
|
+
#endif
|
|
20748
21210
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
20749
21211
|
0, /*tp_pypy_flags*/
|
|
20750
21212
|
#endif
|
|
@@ -20917,6 +21379,9 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = {
|
|
|
20917
21379
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
20918
21380
|
0, /*tp_watched*/
|
|
20919
21381
|
#endif
|
|
21382
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
21383
|
+
0, /*tp_versions_used*/
|
|
21384
|
+
#endif
|
|
20920
21385
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
20921
21386
|
0, /*tp_pypy_flags*/
|
|
20922
21387
|
#endif
|
|
@@ -21039,8 +21504,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
21039
21504
|
{&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
|
|
21040
21505
|
{&__pyx_kp_s_np_ndarray, __pyx_k_np_ndarray, sizeof(__pyx_k_np_ndarray), 0, 0, 1, 0},
|
|
21041
21506
|
{&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
|
|
21042
|
-
{&
|
|
21043
|
-
{&
|
|
21507
|
+
{&__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},
|
|
21508
|
+
{&__pyx_kp_u_numpy__core_umath_failed_to_impo, __pyx_k_numpy__core_umath_failed_to_impo, sizeof(__pyx_k_numpy__core_umath_failed_to_impo), 0, 1, 0, 0},
|
|
21044
21509
|
{&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
|
|
21045
21510
|
{&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1},
|
|
21046
21511
|
{&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
|
|
@@ -21099,7 +21564,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
|
|
|
21099
21564
|
__pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 408, __pyx_L1_error)
|
|
21100
21565
|
__pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 618, __pyx_L1_error)
|
|
21101
21566
|
__pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(1, 914, __pyx_L1_error)
|
|
21102
|
-
__pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2,
|
|
21567
|
+
__pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1026, __pyx_L1_error)
|
|
21103
21568
|
return 0;
|
|
21104
21569
|
__pyx_L1_error:;
|
|
21105
21570
|
return -1;
|
|
@@ -21146,25 +21611,25 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
21146
21611
|
__Pyx_GOTREF(__pyx_tuple__8);
|
|
21147
21612
|
__Pyx_GIVEREF(__pyx_tuple__8);
|
|
21148
21613
|
|
|
21149
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
21614
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1026
|
|
21150
21615
|
* __pyx_import_array()
|
|
21151
21616
|
* except Exception:
|
|
21152
|
-
* raise ImportError("numpy.
|
|
21617
|
+
* raise ImportError("numpy._core.multiarray failed to import") # <<<<<<<<<<<<<<
|
|
21153
21618
|
*
|
|
21154
21619
|
* cdef inline int import_umath() except -1:
|
|
21155
21620
|
*/
|
|
21156
|
-
__pyx_tuple__9 = PyTuple_Pack(1,
|
|
21621
|
+
__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)
|
|
21157
21622
|
__Pyx_GOTREF(__pyx_tuple__9);
|
|
21158
21623
|
__Pyx_GIVEREF(__pyx_tuple__9);
|
|
21159
21624
|
|
|
21160
|
-
/* "C:/Users/runneradmin/AppData/Local/Temp/
|
|
21625
|
+
/* "C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-ji5gyl3u/overlay/Lib/site-packages/numpy/__init__.cython-30.pxd":1032
|
|
21161
21626
|
* _import_umath()
|
|
21162
21627
|
* except Exception:
|
|
21163
|
-
* raise ImportError("numpy.
|
|
21628
|
+
* raise ImportError("numpy._core.umath failed to import") # <<<<<<<<<<<<<<
|
|
21164
21629
|
*
|
|
21165
21630
|
* cdef inline int import_ufunc() except -1:
|
|
21166
21631
|
*/
|
|
21167
|
-
__pyx_tuple__10 = PyTuple_Pack(1,
|
|
21632
|
+
__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)
|
|
21168
21633
|
__Pyx_GOTREF(__pyx_tuple__10);
|
|
21169
21634
|
__Pyx_GIVEREF(__pyx_tuple__10);
|
|
21170
21635
|
|
|
@@ -21549,37 +22014,37 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
21549
22014
|
/*--- Type import code ---*/
|
|
21550
22015
|
__pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
|
|
21551
22016
|
__Pyx_GOTREF(__pyx_t_1);
|
|
21552
|
-
__pyx_ptype_7cpython_4type_type =
|
|
22017
|
+
__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
|
|
21553
22018
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
21554
|
-
sizeof(PyTypeObject),
|
|
22019
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
21555
22020
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
21556
|
-
sizeof(PyTypeObject),
|
|
22021
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
21557
22022
|
#else
|
|
21558
|
-
sizeof(PyHeapTypeObject),
|
|
22023
|
+
sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject),
|
|
21559
22024
|
#endif
|
|
21560
|
-
|
|
22025
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
|
|
21561
22026
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
21562
|
-
__pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2,
|
|
22027
|
+
__pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 271, __pyx_L1_error)
|
|
21563
22028
|
__Pyx_GOTREF(__pyx_t_1);
|
|
21564
|
-
__pyx_ptype_5numpy_dtype =
|
|
21565
|
-
__pyx_ptype_5numpy_flatiter =
|
|
21566
|
-
__pyx_ptype_5numpy_broadcast =
|
|
21567
|
-
__pyx_ptype_5numpy_ndarray =
|
|
21568
|
-
__pyx_ptype_5numpy_generic =
|
|
21569
|
-
__pyx_ptype_5numpy_number =
|
|
21570
|
-
__pyx_ptype_5numpy_integer =
|
|
21571
|
-
__pyx_ptype_5numpy_signedinteger =
|
|
21572
|
-
__pyx_ptype_5numpy_unsignedinteger =
|
|
21573
|
-
__pyx_ptype_5numpy_inexact =
|
|
21574
|
-
__pyx_ptype_5numpy_floating =
|
|
21575
|
-
__pyx_ptype_5numpy_complexfloating =
|
|
21576
|
-
__pyx_ptype_5numpy_flexible =
|
|
21577
|
-
__pyx_ptype_5numpy_character =
|
|
21578
|
-
__pyx_ptype_5numpy_ufunc =
|
|
22029
|
+
__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)
|
|
22030
|
+
__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)
|
|
22031
|
+
__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)
|
|
22032
|
+
__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)
|
|
22033
|
+
__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)
|
|
22034
|
+
__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)
|
|
22035
|
+
__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)
|
|
22036
|
+
__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)
|
|
22037
|
+
__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)
|
|
22038
|
+
__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)
|
|
22039
|
+
__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)
|
|
22040
|
+
__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)
|
|
22041
|
+
__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)
|
|
22042
|
+
__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)
|
|
22043
|
+
__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)
|
|
21579
22044
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
21580
22045
|
__pyx_t_1 = PyImport_ImportModule("sknetwork.topology.minheap"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 10, __pyx_L1_error)
|
|
21581
22046
|
__Pyx_GOTREF(__pyx_t_1);
|
|
21582
|
-
__pyx_ptype_9sknetwork_8topology_7minheap_MinHeap =
|
|
22047
|
+
__pyx_ptype_9sknetwork_8topology_7minheap_MinHeap = __Pyx_ImportType_3_0_12(__pyx_t_1, "sknetwork.topology.minheap", "MinHeap", sizeof(struct __pyx_obj_9sknetwork_8topology_7minheap_MinHeap), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_9sknetwork_8topology_7minheap_MinHeap),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_9sknetwork_8topology_7minheap_MinHeap) __PYX_ERR(4, 10, __pyx_L1_error)
|
|
21583
22048
|
__pyx_vtabptr_9sknetwork_8topology_7minheap_MinHeap = (struct __pyx_vtabstruct_9sknetwork_8topology_7minheap_MinHeap*)__Pyx_GetVtable(__pyx_ptype_9sknetwork_8topology_7minheap_MinHeap); if (unlikely(!__pyx_vtabptr_9sknetwork_8topology_7minheap_MinHeap)) __PYX_ERR(4, 10, __pyx_L1_error)
|
|
21584
22049
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
21585
22050
|
__Pyx_RefNannyFinishContext();
|
|
@@ -24974,7 +25439,6 @@ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
|
|
|
24974
25439
|
}
|
|
24975
25440
|
|
|
24976
25441
|
/* HasAttr */
|
|
24977
|
-
#if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
|
|
24978
25442
|
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
24979
25443
|
PyObject *r;
|
|
24980
25444
|
if (unlikely(!__Pyx_PyBaseString_Check(n))) {
|
|
@@ -24991,7 +25455,6 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
|
24991
25455
|
return 1;
|
|
24992
25456
|
}
|
|
24993
25457
|
}
|
|
24994
|
-
#endif
|
|
24995
25458
|
|
|
24996
25459
|
/* SliceObject */
|
|
24997
25460
|
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
|
|
@@ -26283,10 +26746,10 @@ __PYX_GOOD:
|
|
|
26283
26746
|
#endif
|
|
26284
26747
|
|
|
26285
26748
|
/* TypeImport */
|
|
26286
|
-
#ifndef
|
|
26287
|
-
#define
|
|
26288
|
-
static PyTypeObject *
|
|
26289
|
-
size_t size, size_t alignment, enum
|
|
26749
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_0_12
|
|
26750
|
+
#define __PYX_HAVE_RT_ImportType_3_0_12
|
|
26751
|
+
static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name,
|
|
26752
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size)
|
|
26290
26753
|
{
|
|
26291
26754
|
PyObject *result = 0;
|
|
26292
26755
|
char warning[200];
|
|
@@ -26340,7 +26803,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
|
|
|
26340
26803
|
module_name, class_name, size, basicsize+itemsize);
|
|
26341
26804
|
goto bad;
|
|
26342
26805
|
}
|
|
26343
|
-
if (check_size ==
|
|
26806
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_12 &&
|
|
26344
26807
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
26345
26808
|
PyErr_Format(PyExc_ValueError,
|
|
26346
26809
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -26348,7 +26811,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *modul
|
|
|
26348
26811
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
26349
26812
|
goto bad;
|
|
26350
26813
|
}
|
|
26351
|
-
else if (check_size ==
|
|
26814
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_12 && (size_t)basicsize > size) {
|
|
26352
26815
|
PyOS_snprintf(warning, sizeof(warning),
|
|
26353
26816
|
"%s.%s size changed, may indicate binary incompatibility. "
|
|
26354
26817
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -27483,6 +27946,9 @@ static PyTypeObject __pyx_CyFunctionType_type = {
|
|
|
27483
27946
|
#if PY_VERSION_HEX >= 0x030C0000
|
|
27484
27947
|
0,
|
|
27485
27948
|
#endif
|
|
27949
|
+
#if PY_VERSION_HEX >= 0x030d00A4
|
|
27950
|
+
0,
|
|
27951
|
+
#endif
|
|
27486
27952
|
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
|
|
27487
27953
|
0,
|
|
27488
27954
|
#endif
|
|
@@ -27668,7 +28134,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
|
|
|
27668
28134
|
#include "compile.h"
|
|
27669
28135
|
#include "frameobject.h"
|
|
27670
28136
|
#include "traceback.h"
|
|
27671
|
-
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
28137
|
+
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
|
|
27672
28138
|
#ifndef Py_BUILD_CORE
|
|
27673
28139
|
#define Py_BUILD_CORE 1
|
|
27674
28140
|
#endif
|
|
@@ -28529,6 +28995,160 @@ __pyx_fail:
|
|
|
28529
28995
|
#endif
|
|
28530
28996
|
#endif
|
|
28531
28997
|
|
|
28998
|
+
/* Declarations */
|
|
28999
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
29000
|
+
#ifdef __cplusplus
|
|
29001
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
29002
|
+
return ::std::complex< long double >(x, y);
|
|
29003
|
+
}
|
|
29004
|
+
#else
|
|
29005
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
29006
|
+
return x + y*(__pyx_t_long_double_complex)_Complex_I;
|
|
29007
|
+
}
|
|
29008
|
+
#endif
|
|
29009
|
+
#else
|
|
29010
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __pyx_t_long_double_complex_from_parts(long double x, long double y) {
|
|
29011
|
+
__pyx_t_long_double_complex z;
|
|
29012
|
+
z.real = x;
|
|
29013
|
+
z.imag = y;
|
|
29014
|
+
return z;
|
|
29015
|
+
}
|
|
29016
|
+
#endif
|
|
29017
|
+
|
|
29018
|
+
/* Arithmetic */
|
|
29019
|
+
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
|
|
29020
|
+
#else
|
|
29021
|
+
static CYTHON_INLINE int __Pyx_c_eq_long__double(__pyx_t_long_double_complex a, __pyx_t_long_double_complex b) {
|
|
29022
|
+
return (a.real == b.real) && (a.imag == b.imag);
|
|
29023
|
+
}
|
|
29024
|
+
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) {
|
|
29025
|
+
__pyx_t_long_double_complex z;
|
|
29026
|
+
z.real = a.real + b.real;
|
|
29027
|
+
z.imag = a.imag + b.imag;
|
|
29028
|
+
return z;
|
|
29029
|
+
}
|
|
29030
|
+
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) {
|
|
29031
|
+
__pyx_t_long_double_complex z;
|
|
29032
|
+
z.real = a.real - b.real;
|
|
29033
|
+
z.imag = a.imag - b.imag;
|
|
29034
|
+
return z;
|
|
29035
|
+
}
|
|
29036
|
+
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) {
|
|
29037
|
+
__pyx_t_long_double_complex z;
|
|
29038
|
+
z.real = a.real * b.real - a.imag * b.imag;
|
|
29039
|
+
z.imag = a.real * b.imag + a.imag * b.real;
|
|
29040
|
+
return z;
|
|
29041
|
+
}
|
|
29042
|
+
#if 1
|
|
29043
|
+
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) {
|
|
29044
|
+
if (b.imag == 0) {
|
|
29045
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
|
|
29046
|
+
} else if (fabsl(b.real) >= fabsl(b.imag)) {
|
|
29047
|
+
if (b.real == 0 && b.imag == 0) {
|
|
29048
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
|
|
29049
|
+
} else {
|
|
29050
|
+
long double r = b.imag / b.real;
|
|
29051
|
+
long double s = (long double)(1.0) / (b.real + b.imag * r);
|
|
29052
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
29053
|
+
(a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
|
|
29054
|
+
}
|
|
29055
|
+
} else {
|
|
29056
|
+
long double r = b.real / b.imag;
|
|
29057
|
+
long double s = (long double)(1.0) / (b.imag + b.real * r);
|
|
29058
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
29059
|
+
(a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
|
|
29060
|
+
}
|
|
29061
|
+
}
|
|
29062
|
+
#else
|
|
29063
|
+
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) {
|
|
29064
|
+
if (b.imag == 0) {
|
|
29065
|
+
return __pyx_t_long_double_complex_from_parts(a.real / b.real, a.imag / b.real);
|
|
29066
|
+
} else {
|
|
29067
|
+
long double denom = b.real * b.real + b.imag * b.imag;
|
|
29068
|
+
return __pyx_t_long_double_complex_from_parts(
|
|
29069
|
+
(a.real * b.real + a.imag * b.imag) / denom,
|
|
29070
|
+
(a.imag * b.real - a.real * b.imag) / denom);
|
|
29071
|
+
}
|
|
29072
|
+
}
|
|
29073
|
+
#endif
|
|
29074
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_neg_long__double(__pyx_t_long_double_complex a) {
|
|
29075
|
+
__pyx_t_long_double_complex z;
|
|
29076
|
+
z.real = -a.real;
|
|
29077
|
+
z.imag = -a.imag;
|
|
29078
|
+
return z;
|
|
29079
|
+
}
|
|
29080
|
+
static CYTHON_INLINE int __Pyx_c_is_zero_long__double(__pyx_t_long_double_complex a) {
|
|
29081
|
+
return (a.real == 0) && (a.imag == 0);
|
|
29082
|
+
}
|
|
29083
|
+
static CYTHON_INLINE __pyx_t_long_double_complex __Pyx_c_conj_long__double(__pyx_t_long_double_complex a) {
|
|
29084
|
+
__pyx_t_long_double_complex z;
|
|
29085
|
+
z.real = a.real;
|
|
29086
|
+
z.imag = -a.imag;
|
|
29087
|
+
return z;
|
|
29088
|
+
}
|
|
29089
|
+
#if 1
|
|
29090
|
+
static CYTHON_INLINE long double __Pyx_c_abs_long__double(__pyx_t_long_double_complex z) {
|
|
29091
|
+
#if !defined(HAVE_HYPOT) || defined(_MSC_VER)
|
|
29092
|
+
return sqrtl(z.real*z.real + z.imag*z.imag);
|
|
29093
|
+
#else
|
|
29094
|
+
return hypotl(z.real, z.imag);
|
|
29095
|
+
#endif
|
|
29096
|
+
}
|
|
29097
|
+
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) {
|
|
29098
|
+
__pyx_t_long_double_complex z;
|
|
29099
|
+
long double r, lnr, theta, z_r, z_theta;
|
|
29100
|
+
if (b.imag == 0 && b.real == (int)b.real) {
|
|
29101
|
+
if (b.real < 0) {
|
|
29102
|
+
long double denom = a.real * a.real + a.imag * a.imag;
|
|
29103
|
+
a.real = a.real / denom;
|
|
29104
|
+
a.imag = -a.imag / denom;
|
|
29105
|
+
b.real = -b.real;
|
|
29106
|
+
}
|
|
29107
|
+
switch ((int)b.real) {
|
|
29108
|
+
case 0:
|
|
29109
|
+
z.real = 1;
|
|
29110
|
+
z.imag = 0;
|
|
29111
|
+
return z;
|
|
29112
|
+
case 1:
|
|
29113
|
+
return a;
|
|
29114
|
+
case 2:
|
|
29115
|
+
return __Pyx_c_prod_long__double(a, a);
|
|
29116
|
+
case 3:
|
|
29117
|
+
z = __Pyx_c_prod_long__double(a, a);
|
|
29118
|
+
return __Pyx_c_prod_long__double(z, a);
|
|
29119
|
+
case 4:
|
|
29120
|
+
z = __Pyx_c_prod_long__double(a, a);
|
|
29121
|
+
return __Pyx_c_prod_long__double(z, z);
|
|
29122
|
+
}
|
|
29123
|
+
}
|
|
29124
|
+
if (a.imag == 0) {
|
|
29125
|
+
if (a.real == 0) {
|
|
29126
|
+
return a;
|
|
29127
|
+
} else if ((b.imag == 0) && (a.real >= 0)) {
|
|
29128
|
+
z.real = powl(a.real, b.real);
|
|
29129
|
+
z.imag = 0;
|
|
29130
|
+
return z;
|
|
29131
|
+
} else if (a.real > 0) {
|
|
29132
|
+
r = a.real;
|
|
29133
|
+
theta = 0;
|
|
29134
|
+
} else {
|
|
29135
|
+
r = -a.real;
|
|
29136
|
+
theta = atan2l(0.0, -1.0);
|
|
29137
|
+
}
|
|
29138
|
+
} else {
|
|
29139
|
+
r = __Pyx_c_abs_long__double(a);
|
|
29140
|
+
theta = atan2l(a.imag, a.real);
|
|
29141
|
+
}
|
|
29142
|
+
lnr = logl(r);
|
|
29143
|
+
z_r = expl(lnr * b.real - theta * b.imag);
|
|
29144
|
+
z_theta = theta * b.real + lnr * b.imag;
|
|
29145
|
+
z.real = z_r * cosl(z_theta);
|
|
29146
|
+
z.imag = z_r * sinl(z_theta);
|
|
29147
|
+
return z;
|
|
29148
|
+
}
|
|
29149
|
+
#endif
|
|
29150
|
+
#endif
|
|
29151
|
+
|
|
28532
29152
|
/* MemviewSliceCopyTemplate */
|
|
28533
29153
|
static __Pyx_memviewslice
|
|
28534
29154
|
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
|
|
@@ -28762,12 +29382,19 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
|
|
|
28762
29382
|
}
|
|
28763
29383
|
}
|
|
28764
29384
|
{
|
|
28765
|
-
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
28766
29385
|
unsigned char *bytes = (unsigned char *)&value;
|
|
28767
|
-
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX
|
|
29386
|
+
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
|
|
29387
|
+
if (is_unsigned) {
|
|
29388
|
+
return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
|
|
29389
|
+
} else {
|
|
29390
|
+
return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
|
|
29391
|
+
}
|
|
29392
|
+
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
|
|
29393
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
28768
29394
|
return _PyLong_FromByteArray(bytes, sizeof(int),
|
|
28769
29395
|
little, !is_unsigned);
|
|
28770
29396
|
#else
|
|
29397
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
28771
29398
|
PyObject *from_bytes, *result = NULL;
|
|
28772
29399
|
PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
|
|
28773
29400
|
from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
|
|
@@ -28817,245 +29444,239 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
|
|
|
28817
29444
|
}
|
|
28818
29445
|
return (int) val;
|
|
28819
29446
|
}
|
|
28820
|
-
}
|
|
29447
|
+
}
|
|
28821
29448
|
#endif
|
|
28822
|
-
if (
|
|
28823
|
-
|
|
29449
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
29450
|
+
int val;
|
|
29451
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
29452
|
+
if (!tmp) return (int) -1;
|
|
29453
|
+
val = __Pyx_PyInt_As_int(tmp);
|
|
29454
|
+
Py_DECREF(tmp);
|
|
29455
|
+
return val;
|
|
29456
|
+
}
|
|
29457
|
+
if (is_unsigned) {
|
|
28824
29458
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
28825
|
-
|
|
28826
|
-
|
|
28827
|
-
|
|
28828
|
-
|
|
28829
|
-
|
|
28830
|
-
|
|
28831
|
-
|
|
28832
|
-
|
|
28833
|
-
|
|
28834
|
-
|
|
28835
|
-
|
|
28836
|
-
|
|
28837
|
-
|
|
28838
|
-
|
|
28839
|
-
}
|
|
29459
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
29460
|
+
goto raise_neg_overflow;
|
|
29461
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
29462
|
+
__PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
29463
|
+
} else {
|
|
29464
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
29465
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
29466
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
29467
|
+
case 2:
|
|
29468
|
+
if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
|
|
29469
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29470
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29471
|
+
} else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
|
|
29472
|
+
return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
28840
29473
|
}
|
|
28841
|
-
|
|
28842
|
-
|
|
28843
|
-
|
|
28844
|
-
|
|
28845
|
-
|
|
28846
|
-
|
|
28847
|
-
|
|
28848
|
-
|
|
29474
|
+
}
|
|
29475
|
+
break;
|
|
29476
|
+
case 3:
|
|
29477
|
+
if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
|
|
29478
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29479
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29480
|
+
} else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
|
|
29481
|
+
return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
28849
29482
|
}
|
|
28850
|
-
|
|
28851
|
-
|
|
28852
|
-
|
|
28853
|
-
|
|
28854
|
-
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
|
|
29483
|
+
}
|
|
29484
|
+
break;
|
|
29485
|
+
case 4:
|
|
29486
|
+
if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
|
|
29487
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29488
|
+
__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])))
|
|
29489
|
+
} else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
|
|
29490
|
+
return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
|
|
28858
29491
|
}
|
|
28859
|
-
|
|
28860
|
-
|
|
29492
|
+
}
|
|
29493
|
+
break;
|
|
28861
29494
|
}
|
|
29495
|
+
}
|
|
28862
29496
|
#endif
|
|
28863
29497
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
28864
|
-
|
|
28865
|
-
|
|
28866
|
-
|
|
29498
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
29499
|
+
goto raise_neg_overflow;
|
|
29500
|
+
}
|
|
28867
29501
|
#else
|
|
28868
|
-
|
|
28869
|
-
|
|
28870
|
-
|
|
28871
|
-
|
|
28872
|
-
|
|
28873
|
-
|
|
28874
|
-
|
|
29502
|
+
{
|
|
29503
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
29504
|
+
if (unlikely(result < 0))
|
|
29505
|
+
return (int) -1;
|
|
29506
|
+
if (unlikely(result == 1))
|
|
29507
|
+
goto raise_neg_overflow;
|
|
29508
|
+
}
|
|
28875
29509
|
#endif
|
|
28876
|
-
|
|
28877
|
-
|
|
29510
|
+
if ((sizeof(int) <= sizeof(unsigned long))) {
|
|
29511
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
|
|
28878
29512
|
#ifdef HAVE_LONG_LONG
|
|
28879
|
-
|
|
28880
|
-
|
|
29513
|
+
} else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
29514
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
28881
29515
|
#endif
|
|
28882
|
-
|
|
28883
|
-
|
|
29516
|
+
}
|
|
29517
|
+
} else {
|
|
28884
29518
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
28885
|
-
|
|
28886
|
-
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
|
|
28890
|
-
|
|
28891
|
-
|
|
28892
|
-
|
|
28893
|
-
|
|
28894
|
-
|
|
28895
|
-
|
|
28896
|
-
|
|
28897
|
-
}
|
|
29519
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
29520
|
+
__PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
29521
|
+
} else {
|
|
29522
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
29523
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
29524
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
29525
|
+
case -2:
|
|
29526
|
+
if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
|
|
29527
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29528
|
+
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29529
|
+
} else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
29530
|
+
return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
28898
29531
|
}
|
|
28899
|
-
|
|
28900
|
-
|
|
28901
|
-
|
|
28902
|
-
|
|
28903
|
-
|
|
28904
|
-
|
|
28905
|
-
|
|
28906
|
-
|
|
29532
|
+
}
|
|
29533
|
+
break;
|
|
29534
|
+
case 2:
|
|
29535
|
+
if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
|
|
29536
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29537
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29538
|
+
} else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
29539
|
+
return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
28907
29540
|
}
|
|
28908
|
-
|
|
28909
|
-
|
|
28910
|
-
|
|
28911
|
-
|
|
28912
|
-
|
|
28913
|
-
|
|
28914
|
-
|
|
28915
|
-
|
|
29541
|
+
}
|
|
29542
|
+
break;
|
|
29543
|
+
case -3:
|
|
29544
|
+
if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
|
|
29545
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29546
|
+
__PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29547
|
+
} else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
29548
|
+
return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
28916
29549
|
}
|
|
28917
|
-
|
|
28918
|
-
|
|
28919
|
-
|
|
28920
|
-
|
|
28921
|
-
|
|
28922
|
-
|
|
28923
|
-
|
|
28924
|
-
|
|
29550
|
+
}
|
|
29551
|
+
break;
|
|
29552
|
+
case 3:
|
|
29553
|
+
if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
|
|
29554
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29555
|
+
__PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29556
|
+
} else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
29557
|
+
return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
28925
29558
|
}
|
|
28926
|
-
|
|
28927
|
-
|
|
28928
|
-
|
|
28929
|
-
|
|
28930
|
-
|
|
28931
|
-
|
|
28932
|
-
|
|
28933
|
-
|
|
29559
|
+
}
|
|
29560
|
+
break;
|
|
29561
|
+
case -4:
|
|
29562
|
+
if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
|
|
29563
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29564
|
+
__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])))
|
|
29565
|
+
} else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
|
|
29566
|
+
return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
28934
29567
|
}
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
|
|
28939
|
-
|
|
28940
|
-
|
|
28941
|
-
|
|
28942
|
-
|
|
29568
|
+
}
|
|
29569
|
+
break;
|
|
29570
|
+
case 4:
|
|
29571
|
+
if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
|
|
29572
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29573
|
+
__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])))
|
|
29574
|
+
} else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
|
|
29575
|
+
return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
|
|
28943
29576
|
}
|
|
28944
|
-
|
|
28945
|
-
|
|
29577
|
+
}
|
|
29578
|
+
break;
|
|
28946
29579
|
}
|
|
29580
|
+
}
|
|
28947
29581
|
#endif
|
|
28948
|
-
|
|
28949
|
-
|
|
29582
|
+
if ((sizeof(int) <= sizeof(long))) {
|
|
29583
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
|
|
28950
29584
|
#ifdef HAVE_LONG_LONG
|
|
28951
|
-
|
|
28952
|
-
|
|
29585
|
+
} else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
|
|
29586
|
+
__PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
28953
29587
|
#endif
|
|
28954
|
-
|
|
29588
|
+
}
|
|
29589
|
+
}
|
|
29590
|
+
{
|
|
29591
|
+
int val;
|
|
29592
|
+
int ret = -1;
|
|
29593
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
29594
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
29595
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
29596
|
+
if (unlikely(bytes_copied == -1)) {
|
|
29597
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
29598
|
+
goto raise_overflow;
|
|
29599
|
+
} else {
|
|
29600
|
+
ret = 0;
|
|
29601
|
+
}
|
|
29602
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
29603
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
29604
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
29605
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
29606
|
+
bytes, sizeof(val),
|
|
29607
|
+
is_little, !is_unsigned);
|
|
29608
|
+
#else
|
|
29609
|
+
PyObject *v;
|
|
29610
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
29611
|
+
int bits, remaining_bits, is_negative = 0;
|
|
29612
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
29613
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
29614
|
+
v = __Pyx_NewRef(x);
|
|
29615
|
+
} else {
|
|
29616
|
+
v = PyNumber_Long(x);
|
|
29617
|
+
if (unlikely(!v)) return (int) -1;
|
|
29618
|
+
assert(PyLong_CheckExact(v));
|
|
28955
29619
|
}
|
|
28956
29620
|
{
|
|
28957
|
-
int
|
|
28958
|
-
|
|
28959
|
-
#if PY_MAJOR_VERSION < 3
|
|
28960
|
-
if (likely(v) && !PyLong_Check(v)) {
|
|
28961
|
-
PyObject *tmp = v;
|
|
28962
|
-
v = PyNumber_Long(tmp);
|
|
28963
|
-
Py_DECREF(tmp);
|
|
28964
|
-
}
|
|
28965
|
-
#endif
|
|
28966
|
-
if (likely(v)) {
|
|
28967
|
-
int ret = -1;
|
|
28968
|
-
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
28969
|
-
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
28970
|
-
unsigned char *bytes = (unsigned char *)&val;
|
|
28971
|
-
ret = _PyLong_AsByteArray((PyLongObject *)v,
|
|
28972
|
-
bytes, sizeof(val),
|
|
28973
|
-
is_little, !is_unsigned);
|
|
28974
|
-
#else
|
|
28975
|
-
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
28976
|
-
int bits, remaining_bits, is_negative = 0;
|
|
28977
|
-
long idigit;
|
|
28978
|
-
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
28979
|
-
if (unlikely(!PyLong_CheckExact(v))) {
|
|
28980
|
-
PyObject *tmp = v;
|
|
28981
|
-
v = PyNumber_Long(v);
|
|
28982
|
-
assert(PyLong_CheckExact(v));
|
|
28983
|
-
Py_DECREF(tmp);
|
|
28984
|
-
if (unlikely(!v)) return (int) -1;
|
|
28985
|
-
}
|
|
28986
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
28987
|
-
if (Py_SIZE(x) == 0)
|
|
28988
|
-
return (int) 0;
|
|
28989
|
-
is_negative = Py_SIZE(x) < 0;
|
|
28990
|
-
#else
|
|
28991
|
-
{
|
|
28992
|
-
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
28993
|
-
if (unlikely(result < 0))
|
|
28994
|
-
return (int) -1;
|
|
28995
|
-
is_negative = result == 1;
|
|
28996
|
-
}
|
|
28997
|
-
#endif
|
|
28998
|
-
if (is_unsigned && unlikely(is_negative)) {
|
|
28999
|
-
goto raise_neg_overflow;
|
|
29000
|
-
} else if (is_negative) {
|
|
29001
|
-
stepval = PyNumber_Invert(v);
|
|
29002
|
-
if (unlikely(!stepval))
|
|
29003
|
-
return (int) -1;
|
|
29004
|
-
} else {
|
|
29005
|
-
stepval = __Pyx_NewRef(v);
|
|
29006
|
-
}
|
|
29007
|
-
val = (int) 0;
|
|
29008
|
-
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29009
|
-
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29010
|
-
for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
|
|
29011
|
-
PyObject *tmp, *digit;
|
|
29012
|
-
digit = PyNumber_And(stepval, mask);
|
|
29013
|
-
if (unlikely(!digit)) goto done;
|
|
29014
|
-
idigit = PyLong_AsLong(digit);
|
|
29015
|
-
Py_DECREF(digit);
|
|
29016
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29017
|
-
tmp = PyNumber_Rshift(stepval, shift);
|
|
29018
|
-
if (unlikely(!tmp)) goto done;
|
|
29019
|
-
Py_DECREF(stepval); stepval = tmp;
|
|
29020
|
-
val |= ((int) idigit) << bits;
|
|
29021
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29022
|
-
if (Py_SIZE(stepval) == 0)
|
|
29023
|
-
goto unpacking_done;
|
|
29024
|
-
#endif
|
|
29025
|
-
}
|
|
29026
|
-
idigit = PyLong_AsLong(stepval);
|
|
29027
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29028
|
-
remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29029
|
-
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29030
|
-
goto raise_overflow;
|
|
29031
|
-
val |= ((int) idigit) << bits;
|
|
29032
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29033
|
-
unpacking_done:
|
|
29034
|
-
#endif
|
|
29035
|
-
if (!is_unsigned) {
|
|
29036
|
-
if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
|
|
29037
|
-
goto raise_overflow;
|
|
29038
|
-
if (is_negative)
|
|
29039
|
-
val = ~val;
|
|
29040
|
-
}
|
|
29041
|
-
ret = 0;
|
|
29042
|
-
done:
|
|
29043
|
-
Py_XDECREF(shift);
|
|
29044
|
-
Py_XDECREF(mask);
|
|
29045
|
-
Py_XDECREF(stepval);
|
|
29046
|
-
#endif
|
|
29621
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
29622
|
+
if (unlikely(result < 0)) {
|
|
29047
29623
|
Py_DECREF(v);
|
|
29048
|
-
|
|
29049
|
-
return val;
|
|
29624
|
+
return (int) -1;
|
|
29050
29625
|
}
|
|
29051
|
-
|
|
29626
|
+
is_negative = result == 1;
|
|
29052
29627
|
}
|
|
29053
|
-
|
|
29054
|
-
|
|
29055
|
-
|
|
29056
|
-
|
|
29057
|
-
|
|
29058
|
-
|
|
29628
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
29629
|
+
Py_DECREF(v);
|
|
29630
|
+
goto raise_neg_overflow;
|
|
29631
|
+
} else if (is_negative) {
|
|
29632
|
+
stepval = PyNumber_Invert(v);
|
|
29633
|
+
Py_DECREF(v);
|
|
29634
|
+
if (unlikely(!stepval))
|
|
29635
|
+
return (int) -1;
|
|
29636
|
+
} else {
|
|
29637
|
+
stepval = v;
|
|
29638
|
+
}
|
|
29639
|
+
v = NULL;
|
|
29640
|
+
val = (int) 0;
|
|
29641
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29642
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29643
|
+
for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
|
|
29644
|
+
PyObject *tmp, *digit;
|
|
29645
|
+
long idigit;
|
|
29646
|
+
digit = PyNumber_And(stepval, mask);
|
|
29647
|
+
if (unlikely(!digit)) goto done;
|
|
29648
|
+
idigit = PyLong_AsLong(digit);
|
|
29649
|
+
Py_DECREF(digit);
|
|
29650
|
+
if (unlikely(idigit < 0)) goto done;
|
|
29651
|
+
val |= ((int) idigit) << bits;
|
|
29652
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
29653
|
+
if (unlikely(!tmp)) goto done;
|
|
29654
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
29655
|
+
}
|
|
29656
|
+
Py_DECREF(shift); shift = NULL;
|
|
29657
|
+
Py_DECREF(mask); mask = NULL;
|
|
29658
|
+
{
|
|
29659
|
+
long idigit = PyLong_AsLong(stepval);
|
|
29660
|
+
if (unlikely(idigit < 0)) goto done;
|
|
29661
|
+
remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29662
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29663
|
+
goto raise_overflow;
|
|
29664
|
+
val |= ((int) idigit) << bits;
|
|
29665
|
+
}
|
|
29666
|
+
if (!is_unsigned) {
|
|
29667
|
+
if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
|
|
29668
|
+
goto raise_overflow;
|
|
29669
|
+
if (is_negative)
|
|
29670
|
+
val = ~val;
|
|
29671
|
+
}
|
|
29672
|
+
ret = 0;
|
|
29673
|
+
done:
|
|
29674
|
+
Py_XDECREF(shift);
|
|
29675
|
+
Py_XDECREF(mask);
|
|
29676
|
+
Py_XDECREF(stepval);
|
|
29677
|
+
#endif
|
|
29678
|
+
if (unlikely(ret))
|
|
29679
|
+
return (int) -1;
|
|
29059
29680
|
return val;
|
|
29060
29681
|
}
|
|
29061
29682
|
raise_overflow:
|
|
@@ -29090,245 +29711,239 @@ raise_neg_overflow:
|
|
|
29090
29711
|
}
|
|
29091
29712
|
return (long) val;
|
|
29092
29713
|
}
|
|
29093
|
-
}
|
|
29714
|
+
}
|
|
29094
29715
|
#endif
|
|
29095
|
-
if (
|
|
29096
|
-
|
|
29716
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
29717
|
+
long val;
|
|
29718
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
29719
|
+
if (!tmp) return (long) -1;
|
|
29720
|
+
val = __Pyx_PyInt_As_long(tmp);
|
|
29721
|
+
Py_DECREF(tmp);
|
|
29722
|
+
return val;
|
|
29723
|
+
}
|
|
29724
|
+
if (is_unsigned) {
|
|
29097
29725
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
|
|
29101
|
-
|
|
29102
|
-
|
|
29103
|
-
|
|
29104
|
-
|
|
29105
|
-
|
|
29106
|
-
|
|
29107
|
-
|
|
29108
|
-
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
}
|
|
29726
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
29727
|
+
goto raise_neg_overflow;
|
|
29728
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
29729
|
+
__PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
29730
|
+
} else {
|
|
29731
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
29732
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
29733
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
29734
|
+
case 2:
|
|
29735
|
+
if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
|
|
29736
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29737
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29738
|
+
} else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
|
|
29739
|
+
return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
29113
29740
|
}
|
|
29114
|
-
|
|
29115
|
-
|
|
29116
|
-
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29120
|
-
|
|
29121
|
-
|
|
29741
|
+
}
|
|
29742
|
+
break;
|
|
29743
|
+
case 3:
|
|
29744
|
+
if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
|
|
29745
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29746
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29747
|
+
} else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
|
|
29748
|
+
return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
29122
29749
|
}
|
|
29123
|
-
|
|
29124
|
-
|
|
29125
|
-
|
|
29126
|
-
|
|
29127
|
-
|
|
29128
|
-
|
|
29129
|
-
|
|
29130
|
-
|
|
29750
|
+
}
|
|
29751
|
+
break;
|
|
29752
|
+
case 4:
|
|
29753
|
+
if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
|
|
29754
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29755
|
+
__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])))
|
|
29756
|
+
} else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
|
|
29757
|
+
return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
|
|
29131
29758
|
}
|
|
29132
|
-
|
|
29133
|
-
|
|
29759
|
+
}
|
|
29760
|
+
break;
|
|
29134
29761
|
}
|
|
29762
|
+
}
|
|
29135
29763
|
#endif
|
|
29136
29764
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
29137
|
-
|
|
29138
|
-
|
|
29139
|
-
|
|
29765
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
29766
|
+
goto raise_neg_overflow;
|
|
29767
|
+
}
|
|
29140
29768
|
#else
|
|
29141
|
-
|
|
29142
|
-
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
|
|
29769
|
+
{
|
|
29770
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
29771
|
+
if (unlikely(result < 0))
|
|
29772
|
+
return (long) -1;
|
|
29773
|
+
if (unlikely(result == 1))
|
|
29774
|
+
goto raise_neg_overflow;
|
|
29775
|
+
}
|
|
29148
29776
|
#endif
|
|
29149
|
-
|
|
29150
|
-
|
|
29777
|
+
if ((sizeof(long) <= sizeof(unsigned long))) {
|
|
29778
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
|
|
29151
29779
|
#ifdef HAVE_LONG_LONG
|
|
29152
|
-
|
|
29153
|
-
|
|
29780
|
+
} else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
29781
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
29154
29782
|
#endif
|
|
29155
|
-
|
|
29156
|
-
|
|
29783
|
+
}
|
|
29784
|
+
} else {
|
|
29157
29785
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29158
|
-
|
|
29159
|
-
|
|
29160
|
-
|
|
29161
|
-
|
|
29162
|
-
|
|
29163
|
-
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29170
|
-
}
|
|
29786
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
29787
|
+
__PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
29788
|
+
} else {
|
|
29789
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
29790
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
29791
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
29792
|
+
case -2:
|
|
29793
|
+
if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
|
|
29794
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29795
|
+
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29796
|
+
} else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
29797
|
+
return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29171
29798
|
}
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29799
|
+
}
|
|
29800
|
+
break;
|
|
29801
|
+
case 2:
|
|
29802
|
+
if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
|
|
29803
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
29804
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29805
|
+
} else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
29806
|
+
return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29180
29807
|
}
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29808
|
+
}
|
|
29809
|
+
break;
|
|
29810
|
+
case -3:
|
|
29811
|
+
if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
|
|
29812
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29813
|
+
__PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29814
|
+
} else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
29815
|
+
return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29189
29816
|
}
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
|
|
29197
|
-
|
|
29817
|
+
}
|
|
29818
|
+
break;
|
|
29819
|
+
case 3:
|
|
29820
|
+
if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
|
|
29821
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
29822
|
+
__PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
29823
|
+
} else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
29824
|
+
return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29198
29825
|
}
|
|
29199
|
-
|
|
29200
|
-
|
|
29201
|
-
|
|
29202
|
-
|
|
29203
|
-
|
|
29204
|
-
|
|
29205
|
-
|
|
29206
|
-
|
|
29826
|
+
}
|
|
29827
|
+
break;
|
|
29828
|
+
case -4:
|
|
29829
|
+
if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
|
|
29830
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29831
|
+
__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])))
|
|
29832
|
+
} else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
|
|
29833
|
+
return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29207
29834
|
}
|
|
29208
|
-
|
|
29209
|
-
|
|
29210
|
-
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
|
|
29214
|
-
|
|
29215
|
-
|
|
29835
|
+
}
|
|
29836
|
+
break;
|
|
29837
|
+
case 4:
|
|
29838
|
+
if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
|
|
29839
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
29840
|
+
__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])))
|
|
29841
|
+
} else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
|
|
29842
|
+
return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
|
|
29216
29843
|
}
|
|
29217
|
-
|
|
29218
|
-
|
|
29844
|
+
}
|
|
29845
|
+
break;
|
|
29219
29846
|
}
|
|
29847
|
+
}
|
|
29220
29848
|
#endif
|
|
29221
|
-
|
|
29222
|
-
|
|
29849
|
+
if ((sizeof(long) <= sizeof(long))) {
|
|
29850
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
|
|
29223
29851
|
#ifdef HAVE_LONG_LONG
|
|
29224
|
-
|
|
29225
|
-
|
|
29852
|
+
} else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
|
|
29853
|
+
__PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
29226
29854
|
#endif
|
|
29227
|
-
|
|
29855
|
+
}
|
|
29856
|
+
}
|
|
29857
|
+
{
|
|
29858
|
+
long val;
|
|
29859
|
+
int ret = -1;
|
|
29860
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
29861
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
29862
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
29863
|
+
if (unlikely(bytes_copied == -1)) {
|
|
29864
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
29865
|
+
goto raise_overflow;
|
|
29866
|
+
} else {
|
|
29867
|
+
ret = 0;
|
|
29868
|
+
}
|
|
29869
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
29870
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
29871
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
29872
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
29873
|
+
bytes, sizeof(val),
|
|
29874
|
+
is_little, !is_unsigned);
|
|
29875
|
+
#else
|
|
29876
|
+
PyObject *v;
|
|
29877
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
29878
|
+
int bits, remaining_bits, is_negative = 0;
|
|
29879
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
29880
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
29881
|
+
v = __Pyx_NewRef(x);
|
|
29882
|
+
} else {
|
|
29883
|
+
v = PyNumber_Long(x);
|
|
29884
|
+
if (unlikely(!v)) return (long) -1;
|
|
29885
|
+
assert(PyLong_CheckExact(v));
|
|
29228
29886
|
}
|
|
29229
29887
|
{
|
|
29230
|
-
|
|
29231
|
-
|
|
29232
|
-
#if PY_MAJOR_VERSION < 3
|
|
29233
|
-
if (likely(v) && !PyLong_Check(v)) {
|
|
29234
|
-
PyObject *tmp = v;
|
|
29235
|
-
v = PyNumber_Long(tmp);
|
|
29236
|
-
Py_DECREF(tmp);
|
|
29237
|
-
}
|
|
29238
|
-
#endif
|
|
29239
|
-
if (likely(v)) {
|
|
29240
|
-
int ret = -1;
|
|
29241
|
-
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
29242
|
-
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
29243
|
-
unsigned char *bytes = (unsigned char *)&val;
|
|
29244
|
-
ret = _PyLong_AsByteArray((PyLongObject *)v,
|
|
29245
|
-
bytes, sizeof(val),
|
|
29246
|
-
is_little, !is_unsigned);
|
|
29247
|
-
#else
|
|
29248
|
-
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
29249
|
-
int bits, remaining_bits, is_negative = 0;
|
|
29250
|
-
long idigit;
|
|
29251
|
-
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
29252
|
-
if (unlikely(!PyLong_CheckExact(v))) {
|
|
29253
|
-
PyObject *tmp = v;
|
|
29254
|
-
v = PyNumber_Long(v);
|
|
29255
|
-
assert(PyLong_CheckExact(v));
|
|
29256
|
-
Py_DECREF(tmp);
|
|
29257
|
-
if (unlikely(!v)) return (long) -1;
|
|
29258
|
-
}
|
|
29259
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29260
|
-
if (Py_SIZE(x) == 0)
|
|
29261
|
-
return (long) 0;
|
|
29262
|
-
is_negative = Py_SIZE(x) < 0;
|
|
29263
|
-
#else
|
|
29264
|
-
{
|
|
29265
|
-
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
29266
|
-
if (unlikely(result < 0))
|
|
29267
|
-
return (long) -1;
|
|
29268
|
-
is_negative = result == 1;
|
|
29269
|
-
}
|
|
29270
|
-
#endif
|
|
29271
|
-
if (is_unsigned && unlikely(is_negative)) {
|
|
29272
|
-
goto raise_neg_overflow;
|
|
29273
|
-
} else if (is_negative) {
|
|
29274
|
-
stepval = PyNumber_Invert(v);
|
|
29275
|
-
if (unlikely(!stepval))
|
|
29276
|
-
return (long) -1;
|
|
29277
|
-
} else {
|
|
29278
|
-
stepval = __Pyx_NewRef(v);
|
|
29279
|
-
}
|
|
29280
|
-
val = (long) 0;
|
|
29281
|
-
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29282
|
-
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29283
|
-
for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
|
|
29284
|
-
PyObject *tmp, *digit;
|
|
29285
|
-
digit = PyNumber_And(stepval, mask);
|
|
29286
|
-
if (unlikely(!digit)) goto done;
|
|
29287
|
-
idigit = PyLong_AsLong(digit);
|
|
29288
|
-
Py_DECREF(digit);
|
|
29289
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29290
|
-
tmp = PyNumber_Rshift(stepval, shift);
|
|
29291
|
-
if (unlikely(!tmp)) goto done;
|
|
29292
|
-
Py_DECREF(stepval); stepval = tmp;
|
|
29293
|
-
val |= ((long) idigit) << bits;
|
|
29294
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29295
|
-
if (Py_SIZE(stepval) == 0)
|
|
29296
|
-
goto unpacking_done;
|
|
29297
|
-
#endif
|
|
29298
|
-
}
|
|
29299
|
-
idigit = PyLong_AsLong(stepval);
|
|
29300
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29301
|
-
remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29302
|
-
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29303
|
-
goto raise_overflow;
|
|
29304
|
-
val |= ((long) idigit) << bits;
|
|
29305
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29306
|
-
unpacking_done:
|
|
29307
|
-
#endif
|
|
29308
|
-
if (!is_unsigned) {
|
|
29309
|
-
if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
|
|
29310
|
-
goto raise_overflow;
|
|
29311
|
-
if (is_negative)
|
|
29312
|
-
val = ~val;
|
|
29313
|
-
}
|
|
29314
|
-
ret = 0;
|
|
29315
|
-
done:
|
|
29316
|
-
Py_XDECREF(shift);
|
|
29317
|
-
Py_XDECREF(mask);
|
|
29318
|
-
Py_XDECREF(stepval);
|
|
29319
|
-
#endif
|
|
29888
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
29889
|
+
if (unlikely(result < 0)) {
|
|
29320
29890
|
Py_DECREF(v);
|
|
29321
|
-
|
|
29322
|
-
return val;
|
|
29891
|
+
return (long) -1;
|
|
29323
29892
|
}
|
|
29324
|
-
|
|
29893
|
+
is_negative = result == 1;
|
|
29325
29894
|
}
|
|
29326
|
-
|
|
29327
|
-
|
|
29328
|
-
|
|
29329
|
-
|
|
29330
|
-
|
|
29331
|
-
|
|
29895
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
29896
|
+
Py_DECREF(v);
|
|
29897
|
+
goto raise_neg_overflow;
|
|
29898
|
+
} else if (is_negative) {
|
|
29899
|
+
stepval = PyNumber_Invert(v);
|
|
29900
|
+
Py_DECREF(v);
|
|
29901
|
+
if (unlikely(!stepval))
|
|
29902
|
+
return (long) -1;
|
|
29903
|
+
} else {
|
|
29904
|
+
stepval = v;
|
|
29905
|
+
}
|
|
29906
|
+
v = NULL;
|
|
29907
|
+
val = (long) 0;
|
|
29908
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29909
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29910
|
+
for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
|
|
29911
|
+
PyObject *tmp, *digit;
|
|
29912
|
+
long idigit;
|
|
29913
|
+
digit = PyNumber_And(stepval, mask);
|
|
29914
|
+
if (unlikely(!digit)) goto done;
|
|
29915
|
+
idigit = PyLong_AsLong(digit);
|
|
29916
|
+
Py_DECREF(digit);
|
|
29917
|
+
if (unlikely(idigit < 0)) goto done;
|
|
29918
|
+
val |= ((long) idigit) << bits;
|
|
29919
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
29920
|
+
if (unlikely(!tmp)) goto done;
|
|
29921
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
29922
|
+
}
|
|
29923
|
+
Py_DECREF(shift); shift = NULL;
|
|
29924
|
+
Py_DECREF(mask); mask = NULL;
|
|
29925
|
+
{
|
|
29926
|
+
long idigit = PyLong_AsLong(stepval);
|
|
29927
|
+
if (unlikely(idigit < 0)) goto done;
|
|
29928
|
+
remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29929
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29930
|
+
goto raise_overflow;
|
|
29931
|
+
val |= ((long) idigit) << bits;
|
|
29932
|
+
}
|
|
29933
|
+
if (!is_unsigned) {
|
|
29934
|
+
if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
|
|
29935
|
+
goto raise_overflow;
|
|
29936
|
+
if (is_negative)
|
|
29937
|
+
val = ~val;
|
|
29938
|
+
}
|
|
29939
|
+
ret = 0;
|
|
29940
|
+
done:
|
|
29941
|
+
Py_XDECREF(shift);
|
|
29942
|
+
Py_XDECREF(mask);
|
|
29943
|
+
Py_XDECREF(stepval);
|
|
29944
|
+
#endif
|
|
29945
|
+
if (unlikely(ret))
|
|
29946
|
+
return (long) -1;
|
|
29332
29947
|
return val;
|
|
29333
29948
|
}
|
|
29334
29949
|
raise_overflow:
|
|
@@ -29372,12 +29987,19 @@ raise_neg_overflow:
|
|
|
29372
29987
|
}
|
|
29373
29988
|
}
|
|
29374
29989
|
{
|
|
29375
|
-
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29376
29990
|
unsigned char *bytes = (unsigned char *)&value;
|
|
29377
|
-
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX
|
|
29991
|
+
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
|
|
29992
|
+
if (is_unsigned) {
|
|
29993
|
+
return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
|
|
29994
|
+
} else {
|
|
29995
|
+
return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
|
|
29996
|
+
}
|
|
29997
|
+
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
|
|
29998
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29378
29999
|
return _PyLong_FromByteArray(bytes, sizeof(long),
|
|
29379
30000
|
little, !is_unsigned);
|
|
29380
30001
|
#else
|
|
30002
|
+
int one = 1; int little = (int)*(unsigned char *)&one;
|
|
29381
30003
|
PyObject *from_bytes, *result = NULL;
|
|
29382
30004
|
PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
|
|
29383
30005
|
from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
|
|
@@ -29427,245 +30049,239 @@ raise_neg_overflow:
|
|
|
29427
30049
|
}
|
|
29428
30050
|
return (char) val;
|
|
29429
30051
|
}
|
|
29430
|
-
}
|
|
30052
|
+
}
|
|
29431
30053
|
#endif
|
|
29432
|
-
if (
|
|
29433
|
-
|
|
30054
|
+
if (unlikely(!PyLong_Check(x))) {
|
|
30055
|
+
char val;
|
|
30056
|
+
PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
|
|
30057
|
+
if (!tmp) return (char) -1;
|
|
30058
|
+
val = __Pyx_PyInt_As_char(tmp);
|
|
30059
|
+
Py_DECREF(tmp);
|
|
30060
|
+
return val;
|
|
30061
|
+
}
|
|
30062
|
+
if (is_unsigned) {
|
|
29434
30063
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29435
|
-
|
|
29436
|
-
|
|
29437
|
-
|
|
29438
|
-
|
|
29439
|
-
|
|
29440
|
-
|
|
29441
|
-
|
|
29442
|
-
|
|
29443
|
-
|
|
29444
|
-
|
|
29445
|
-
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
}
|
|
30064
|
+
if (unlikely(__Pyx_PyLong_IsNeg(x))) {
|
|
30065
|
+
goto raise_neg_overflow;
|
|
30066
|
+
} else if (__Pyx_PyLong_IsCompact(x)) {
|
|
30067
|
+
__PYX_VERIFY_RETURN_INT(char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
|
|
30068
|
+
} else {
|
|
30069
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
30070
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
30071
|
+
switch (__Pyx_PyLong_DigitCount(x)) {
|
|
30072
|
+
case 2:
|
|
30073
|
+
if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
|
|
30074
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30075
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30076
|
+
} else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
|
|
30077
|
+
return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
29450
30078
|
}
|
|
29451
|
-
|
|
29452
|
-
|
|
29453
|
-
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
30079
|
+
}
|
|
30080
|
+
break;
|
|
30081
|
+
case 3:
|
|
30082
|
+
if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
|
|
30083
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30084
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30085
|
+
} else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
|
|
30086
|
+
return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
29459
30087
|
}
|
|
29460
|
-
|
|
29461
|
-
|
|
29462
|
-
|
|
29463
|
-
|
|
29464
|
-
|
|
29465
|
-
|
|
29466
|
-
|
|
29467
|
-
|
|
30088
|
+
}
|
|
30089
|
+
break;
|
|
30090
|
+
case 4:
|
|
30091
|
+
if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
|
|
30092
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30093
|
+
__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])))
|
|
30094
|
+
} else if ((8 * sizeof(char) >= 4 * PyLong_SHIFT)) {
|
|
30095
|
+
return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
|
|
29468
30096
|
}
|
|
29469
|
-
|
|
29470
|
-
|
|
30097
|
+
}
|
|
30098
|
+
break;
|
|
29471
30099
|
}
|
|
30100
|
+
}
|
|
29472
30101
|
#endif
|
|
29473
30102
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
|
|
29474
|
-
|
|
29475
|
-
|
|
29476
|
-
|
|
30103
|
+
if (unlikely(Py_SIZE(x) < 0)) {
|
|
30104
|
+
goto raise_neg_overflow;
|
|
30105
|
+
}
|
|
29477
30106
|
#else
|
|
29478
|
-
|
|
29479
|
-
|
|
29480
|
-
|
|
29481
|
-
|
|
29482
|
-
|
|
29483
|
-
|
|
29484
|
-
|
|
30107
|
+
{
|
|
30108
|
+
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
30109
|
+
if (unlikely(result < 0))
|
|
30110
|
+
return (char) -1;
|
|
30111
|
+
if (unlikely(result == 1))
|
|
30112
|
+
goto raise_neg_overflow;
|
|
30113
|
+
}
|
|
29485
30114
|
#endif
|
|
29486
|
-
|
|
29487
|
-
|
|
30115
|
+
if ((sizeof(char) <= sizeof(unsigned long))) {
|
|
30116
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
|
|
29488
30117
|
#ifdef HAVE_LONG_LONG
|
|
29489
|
-
|
|
29490
|
-
|
|
30118
|
+
} else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
|
|
30119
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
|
|
29491
30120
|
#endif
|
|
29492
|
-
|
|
29493
|
-
|
|
30121
|
+
}
|
|
30122
|
+
} else {
|
|
29494
30123
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
29495
|
-
|
|
29496
|
-
|
|
29497
|
-
|
|
29498
|
-
|
|
29499
|
-
|
|
29500
|
-
|
|
29501
|
-
|
|
29502
|
-
|
|
29503
|
-
|
|
29504
|
-
|
|
29505
|
-
|
|
29506
|
-
|
|
29507
|
-
}
|
|
30124
|
+
if (__Pyx_PyLong_IsCompact(x)) {
|
|
30125
|
+
__PYX_VERIFY_RETURN_INT(char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
|
|
30126
|
+
} else {
|
|
30127
|
+
const digit* digits = __Pyx_PyLong_Digits(x);
|
|
30128
|
+
assert(__Pyx_PyLong_DigitCount(x) > 1);
|
|
30129
|
+
switch (__Pyx_PyLong_SignedDigitCount(x)) {
|
|
30130
|
+
case -2:
|
|
30131
|
+
if ((8 * sizeof(char) - 1 > 1 * PyLong_SHIFT)) {
|
|
30132
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30133
|
+
__PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30134
|
+
} else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
30135
|
+
return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29508
30136
|
}
|
|
29509
|
-
|
|
29510
|
-
|
|
29511
|
-
|
|
29512
|
-
|
|
29513
|
-
|
|
29514
|
-
|
|
29515
|
-
|
|
29516
|
-
|
|
30137
|
+
}
|
|
30138
|
+
break;
|
|
30139
|
+
case 2:
|
|
30140
|
+
if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
|
|
30141
|
+
if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
|
|
30142
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30143
|
+
} else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
30144
|
+
return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29517
30145
|
}
|
|
29518
|
-
|
|
29519
|
-
|
|
29520
|
-
|
|
29521
|
-
|
|
29522
|
-
|
|
29523
|
-
|
|
29524
|
-
|
|
29525
|
-
|
|
30146
|
+
}
|
|
30147
|
+
break;
|
|
30148
|
+
case -3:
|
|
30149
|
+
if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
|
|
30150
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30151
|
+
__PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30152
|
+
} else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
30153
|
+
return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29526
30154
|
}
|
|
29527
|
-
|
|
29528
|
-
|
|
29529
|
-
|
|
29530
|
-
|
|
29531
|
-
|
|
29532
|
-
|
|
29533
|
-
|
|
29534
|
-
|
|
30155
|
+
}
|
|
30156
|
+
break;
|
|
30157
|
+
case 3:
|
|
30158
|
+
if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
|
|
30159
|
+
if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
|
|
30160
|
+
__PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
|
|
30161
|
+
} else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
30162
|
+
return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29535
30163
|
}
|
|
29536
|
-
|
|
29537
|
-
|
|
29538
|
-
|
|
29539
|
-
|
|
29540
|
-
|
|
29541
|
-
|
|
29542
|
-
|
|
29543
|
-
|
|
30164
|
+
}
|
|
30165
|
+
break;
|
|
30166
|
+
case -4:
|
|
30167
|
+
if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
|
|
30168
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30169
|
+
__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])))
|
|
30170
|
+
} else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
|
|
30171
|
+
return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29544
30172
|
}
|
|
29545
|
-
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
|
|
29550
|
-
|
|
29551
|
-
|
|
29552
|
-
|
|
30173
|
+
}
|
|
30174
|
+
break;
|
|
30175
|
+
case 4:
|
|
30176
|
+
if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
|
|
30177
|
+
if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
|
|
30178
|
+
__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])))
|
|
30179
|
+
} else if ((8 * sizeof(char) - 1 > 4 * PyLong_SHIFT)) {
|
|
30180
|
+
return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
|
|
29553
30181
|
}
|
|
29554
|
-
|
|
29555
|
-
|
|
30182
|
+
}
|
|
30183
|
+
break;
|
|
29556
30184
|
}
|
|
30185
|
+
}
|
|
29557
30186
|
#endif
|
|
29558
|
-
|
|
29559
|
-
|
|
30187
|
+
if ((sizeof(char) <= sizeof(long))) {
|
|
30188
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
|
|
29560
30189
|
#ifdef HAVE_LONG_LONG
|
|
29561
|
-
|
|
29562
|
-
|
|
30190
|
+
} else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
|
|
30191
|
+
__PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
|
|
29563
30192
|
#endif
|
|
29564
|
-
|
|
30193
|
+
}
|
|
30194
|
+
}
|
|
30195
|
+
{
|
|
30196
|
+
char val;
|
|
30197
|
+
int ret = -1;
|
|
30198
|
+
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
|
|
30199
|
+
Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
|
|
30200
|
+
x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
|
|
30201
|
+
if (unlikely(bytes_copied == -1)) {
|
|
30202
|
+
} else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
|
|
30203
|
+
goto raise_overflow;
|
|
30204
|
+
} else {
|
|
30205
|
+
ret = 0;
|
|
30206
|
+
}
|
|
30207
|
+
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
30208
|
+
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
30209
|
+
unsigned char *bytes = (unsigned char *)&val;
|
|
30210
|
+
ret = _PyLong_AsByteArray((PyLongObject *)x,
|
|
30211
|
+
bytes, sizeof(val),
|
|
30212
|
+
is_little, !is_unsigned);
|
|
30213
|
+
#else
|
|
30214
|
+
PyObject *v;
|
|
30215
|
+
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
30216
|
+
int bits, remaining_bits, is_negative = 0;
|
|
30217
|
+
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
30218
|
+
if (likely(PyLong_CheckExact(x))) {
|
|
30219
|
+
v = __Pyx_NewRef(x);
|
|
30220
|
+
} else {
|
|
30221
|
+
v = PyNumber_Long(x);
|
|
30222
|
+
if (unlikely(!v)) return (char) -1;
|
|
30223
|
+
assert(PyLong_CheckExact(v));
|
|
29565
30224
|
}
|
|
29566
30225
|
{
|
|
29567
|
-
|
|
29568
|
-
|
|
29569
|
-
#if PY_MAJOR_VERSION < 3
|
|
29570
|
-
if (likely(v) && !PyLong_Check(v)) {
|
|
29571
|
-
PyObject *tmp = v;
|
|
29572
|
-
v = PyNumber_Long(tmp);
|
|
29573
|
-
Py_DECREF(tmp);
|
|
29574
|
-
}
|
|
29575
|
-
#endif
|
|
29576
|
-
if (likely(v)) {
|
|
29577
|
-
int ret = -1;
|
|
29578
|
-
#if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
|
|
29579
|
-
int one = 1; int is_little = (int)*(unsigned char *)&one;
|
|
29580
|
-
unsigned char *bytes = (unsigned char *)&val;
|
|
29581
|
-
ret = _PyLong_AsByteArray((PyLongObject *)v,
|
|
29582
|
-
bytes, sizeof(val),
|
|
29583
|
-
is_little, !is_unsigned);
|
|
29584
|
-
#else
|
|
29585
|
-
PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
|
|
29586
|
-
int bits, remaining_bits, is_negative = 0;
|
|
29587
|
-
long idigit;
|
|
29588
|
-
int chunk_size = (sizeof(long) < 8) ? 30 : 62;
|
|
29589
|
-
if (unlikely(!PyLong_CheckExact(v))) {
|
|
29590
|
-
PyObject *tmp = v;
|
|
29591
|
-
v = PyNumber_Long(v);
|
|
29592
|
-
assert(PyLong_CheckExact(v));
|
|
29593
|
-
Py_DECREF(tmp);
|
|
29594
|
-
if (unlikely(!v)) return (char) -1;
|
|
29595
|
-
}
|
|
29596
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29597
|
-
if (Py_SIZE(x) == 0)
|
|
29598
|
-
return (char) 0;
|
|
29599
|
-
is_negative = Py_SIZE(x) < 0;
|
|
29600
|
-
#else
|
|
29601
|
-
{
|
|
29602
|
-
int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
|
|
29603
|
-
if (unlikely(result < 0))
|
|
29604
|
-
return (char) -1;
|
|
29605
|
-
is_negative = result == 1;
|
|
29606
|
-
}
|
|
29607
|
-
#endif
|
|
29608
|
-
if (is_unsigned && unlikely(is_negative)) {
|
|
29609
|
-
goto raise_neg_overflow;
|
|
29610
|
-
} else if (is_negative) {
|
|
29611
|
-
stepval = PyNumber_Invert(v);
|
|
29612
|
-
if (unlikely(!stepval))
|
|
29613
|
-
return (char) -1;
|
|
29614
|
-
} else {
|
|
29615
|
-
stepval = __Pyx_NewRef(v);
|
|
29616
|
-
}
|
|
29617
|
-
val = (char) 0;
|
|
29618
|
-
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
29619
|
-
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
29620
|
-
for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
|
|
29621
|
-
PyObject *tmp, *digit;
|
|
29622
|
-
digit = PyNumber_And(stepval, mask);
|
|
29623
|
-
if (unlikely(!digit)) goto done;
|
|
29624
|
-
idigit = PyLong_AsLong(digit);
|
|
29625
|
-
Py_DECREF(digit);
|
|
29626
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29627
|
-
tmp = PyNumber_Rshift(stepval, shift);
|
|
29628
|
-
if (unlikely(!tmp)) goto done;
|
|
29629
|
-
Py_DECREF(stepval); stepval = tmp;
|
|
29630
|
-
val |= ((char) idigit) << bits;
|
|
29631
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29632
|
-
if (Py_SIZE(stepval) == 0)
|
|
29633
|
-
goto unpacking_done;
|
|
29634
|
-
#endif
|
|
29635
|
-
}
|
|
29636
|
-
idigit = PyLong_AsLong(stepval);
|
|
29637
|
-
if (unlikely(idigit < 0)) goto done;
|
|
29638
|
-
remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
29639
|
-
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
29640
|
-
goto raise_overflow;
|
|
29641
|
-
val |= ((char) idigit) << bits;
|
|
29642
|
-
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
|
|
29643
|
-
unpacking_done:
|
|
29644
|
-
#endif
|
|
29645
|
-
if (!is_unsigned) {
|
|
29646
|
-
if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
|
|
29647
|
-
goto raise_overflow;
|
|
29648
|
-
if (is_negative)
|
|
29649
|
-
val = ~val;
|
|
29650
|
-
}
|
|
29651
|
-
ret = 0;
|
|
29652
|
-
done:
|
|
29653
|
-
Py_XDECREF(shift);
|
|
29654
|
-
Py_XDECREF(mask);
|
|
29655
|
-
Py_XDECREF(stepval);
|
|
29656
|
-
#endif
|
|
30226
|
+
int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
|
|
30227
|
+
if (unlikely(result < 0)) {
|
|
29657
30228
|
Py_DECREF(v);
|
|
29658
|
-
|
|
29659
|
-
return val;
|
|
30229
|
+
return (char) -1;
|
|
29660
30230
|
}
|
|
29661
|
-
|
|
30231
|
+
is_negative = result == 1;
|
|
29662
30232
|
}
|
|
29663
|
-
|
|
29664
|
-
|
|
29665
|
-
|
|
29666
|
-
|
|
29667
|
-
|
|
29668
|
-
|
|
30233
|
+
if (is_unsigned && unlikely(is_negative)) {
|
|
30234
|
+
Py_DECREF(v);
|
|
30235
|
+
goto raise_neg_overflow;
|
|
30236
|
+
} else if (is_negative) {
|
|
30237
|
+
stepval = PyNumber_Invert(v);
|
|
30238
|
+
Py_DECREF(v);
|
|
30239
|
+
if (unlikely(!stepval))
|
|
30240
|
+
return (char) -1;
|
|
30241
|
+
} else {
|
|
30242
|
+
stepval = v;
|
|
30243
|
+
}
|
|
30244
|
+
v = NULL;
|
|
30245
|
+
val = (char) 0;
|
|
30246
|
+
mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
|
|
30247
|
+
shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
|
|
30248
|
+
for (bits = 0; bits < (int) sizeof(char) * 8 - chunk_size; bits += chunk_size) {
|
|
30249
|
+
PyObject *tmp, *digit;
|
|
30250
|
+
long idigit;
|
|
30251
|
+
digit = PyNumber_And(stepval, mask);
|
|
30252
|
+
if (unlikely(!digit)) goto done;
|
|
30253
|
+
idigit = PyLong_AsLong(digit);
|
|
30254
|
+
Py_DECREF(digit);
|
|
30255
|
+
if (unlikely(idigit < 0)) goto done;
|
|
30256
|
+
val |= ((char) idigit) << bits;
|
|
30257
|
+
tmp = PyNumber_Rshift(stepval, shift);
|
|
30258
|
+
if (unlikely(!tmp)) goto done;
|
|
30259
|
+
Py_DECREF(stepval); stepval = tmp;
|
|
30260
|
+
}
|
|
30261
|
+
Py_DECREF(shift); shift = NULL;
|
|
30262
|
+
Py_DECREF(mask); mask = NULL;
|
|
30263
|
+
{
|
|
30264
|
+
long idigit = PyLong_AsLong(stepval);
|
|
30265
|
+
if (unlikely(idigit < 0)) goto done;
|
|
30266
|
+
remaining_bits = ((int) sizeof(char) * 8) - bits - (is_unsigned ? 0 : 1);
|
|
30267
|
+
if (unlikely(idigit >= (1L << remaining_bits)))
|
|
30268
|
+
goto raise_overflow;
|
|
30269
|
+
val |= ((char) idigit) << bits;
|
|
30270
|
+
}
|
|
30271
|
+
if (!is_unsigned) {
|
|
30272
|
+
if (unlikely(val & (((char) 1) << (sizeof(char) * 8 - 1))))
|
|
30273
|
+
goto raise_overflow;
|
|
30274
|
+
if (is_negative)
|
|
30275
|
+
val = ~val;
|
|
30276
|
+
}
|
|
30277
|
+
ret = 0;
|
|
30278
|
+
done:
|
|
30279
|
+
Py_XDECREF(shift);
|
|
30280
|
+
Py_XDECREF(mask);
|
|
30281
|
+
Py_XDECREF(stepval);
|
|
30282
|
+
#endif
|
|
30283
|
+
if (unlikely(ret))
|
|
30284
|
+
return (char) -1;
|
|
29669
30285
|
return val;
|
|
29670
30286
|
}
|
|
29671
30287
|
raise_overflow:
|