File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 1
1
cimport numpy as cnp
2
- from numpy cimport ndarray
3
2
4
3
from pandas._libs.tslibs.util cimport *
5
4
6
5
7
- cdef extern from " numpy/ndarraytypes.h" :
8
- void PyArray_CLEARFLAGS(ndarray arr, int flags) nogil
9
-
10
-
11
- cdef extern from " numpy/arrayobject.h" :
12
- enum :
13
- NPY_ARRAY_C_CONTIGUOUS
14
- NPY_ARRAY_F_CONTIGUOUS
15
-
16
-
17
6
cdef extern from " src/headers/stdint.h" :
18
7
enum : UINT8_MAX
19
8
enum : UINT16_MAX
@@ -42,10 +31,3 @@ ctypedef fused numeric:
42
31
43
32
cnp.float32_t
44
33
cnp.float64_t
45
-
46
-
47
- cdef inline void set_array_not_contiguous(ndarray ao) nogil:
48
- # Numpy>=1.8-compliant equivalent to:
49
- # ao->flags &= ~(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS);
50
- PyArray_CLEARFLAGS(ao,
51
- (NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS))
You can’t perform that action at this time.
0 commit comments