Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
552e356f
Commit
552e356f
authored
Aug 01, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Readability improvements in "numpy.pxd".
parent
c3318bea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Cython/Includes/numpy/__init__.pxd
Cython/Includes/numpy/__init__.pxd
+8
-3
No files found.
Cython/Includes/numpy/__init__.pxd
View file @
552e356f
...
...
@@ -393,8 +393,8 @@ cdef extern from "numpy/arrayobject.h":
npy_intp
PyArray_STRIDE
(
ndarray
,
size_t
)
nogil
PyObject
*
PyArray_BASE
(
ndarray
)
nogil
# returns borrowed reference!
PyArray_Descr
*
PyArray_DESCR
(
ndarray
)
nogil
# returns borrowed reference to dtype!
PyArray_Descr
*
PyArray_DTYPE
(
ndarray
)
nogil
# returns borrowed reference to dtype! NP 1.7+ alias for descr.
PyArray_Descr
*
PyArray_DESCR
(
ndarray
)
nogil
# returns borrowed reference to dtype!
PyArray_Descr
*
PyArray_DTYPE
(
ndarray
)
nogil
# returns borrowed reference to dtype! NP 1.7+ alias for descr.
int
PyArray_FLAGS
(
ndarray
)
nogil
void
PyArray_CLEARFLAGS
(
ndarray
,
int
flags
)
nogil
# Added in NumPy 1.7
void
PyArray_ENABLEFLAGS
(
ndarray
,
int
flags
)
nogil
# Added in NumPy 1.7
...
...
@@ -642,7 +642,7 @@ cdef extern from "numpy/arrayobject.h":
object
PyArray_Choose
(
ndarray
,
object
,
ndarray
,
NPY_CLIPMODE
)
int
PyArray_Sort
(
ndarray
,
int
,
NPY_SORTKIND
)
object
PyArray_ArgSort
(
ndarray
,
int
,
NPY_SORTKIND
)
object
PyArray_SearchSorted
(
ndarray
,
object
,
NPY_SEARCHSIDE
,
PyObject
*
)
object
PyArray_SearchSorted
(
ndarray
,
object
,
NPY_SEARCHSIDE
,
PyObject
*
)
object
PyArray_ArgMax
(
ndarray
,
int
,
ndarray
)
object
PyArray_ArgMin
(
ndarray
,
int
,
ndarray
)
object
PyArray_Reshape
(
ndarray
,
object
)
...
...
@@ -1049,9 +1049,11 @@ cdef inline int import_ufunc() except -1:
cdef
inline
bint
is_timedelta64_object
(
object
obj
):
"""
Cython equivalent of `isinstance(obj, np.timedelta64)`
Parameters
----------
obj : object
Returns
-------
bool
...
...
@@ -1062,9 +1064,11 @@ cdef inline bint is_timedelta64_object(object obj):
cdef
inline
bint
is_datetime64_object
(
object
obj
):
"""
Cython equivalent of `isinstance(obj, np.datetime64)`
Parameters
----------
obj : object
Returns
-------
bool
...
...
@@ -1075,6 +1079,7 @@ cdef inline bint is_datetime64_object(object obj):
cdef
inline
npy_datetime
get_datetime64_value
(
object
obj
)
nogil
:
"""
returns the int64 value underlying scalar numpy datetime64 object
Note that to interpret this as a datetime, the corresponding unit is
also needed. That can be found using `get_datetime64_unit`.
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment