We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8519d26 commit 625ec6bCopy full SHA for 625ec6b
pandas/_libs/util.pxd
@@ -1,19 +1,8 @@
1
cimport numpy as cnp
2
-from numpy cimport ndarray
3
4
from pandas._libs.tslibs.util cimport *
5
6
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
cdef extern from "src/headers/stdint.h":
18
enum: UINT8_MAX
19
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))
0 commit comments