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
Gwenaël Samain
cython
Commits
b8c4fc58
Commit
b8c4fc58
authored
Aug 10, 2018
by
mattip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes from review
parent
21f1a73c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Cython/Includes/numpy/__init__.pxd
Cython/Includes/numpy/__init__.pxd
+2
-4
No files found.
Cython/Includes/numpy/__init__.pxd
View file @
b8c4fc58
...
...
@@ -975,14 +975,12 @@ cdef extern from "numpy/ufuncobject.h":
int
_import_umath
()
except
-
1
cdef
inline
void
set_array_base
(
ndarray
arr
,
object
base
):
Py_INCREF
(
base
)
Py_INCREF
(
base
)
# important to do this before decref below!
PyArray_SetBaseObject
(
arr
,
base
)
cdef
inline
object
get_array_base
(
ndarray
arr
):
base
=
PyArray_BASE
(
arr
)
# Do we need to convert NULL -> None?
# Do we need to incref base or is that done by cython?
return
base
return
<
object
>
base
# Versions of the import_* functions which are more suitable for
# Cython code.
...
...
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