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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
e38f5f90
Commit
e38f5f90
authored
Oct 30, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git+ssh://github.com/cython/cython
parents
32370aa6
7a316389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
tests/memoryview/gh2588.pyx
tests/memoryview/gh2588.pyx
+18
-0
No files found.
tests/memoryview/gh2588.pyx
0 → 100644
View file @
e38f5f90
# mode: run
cimport
cython
@
cython
.
boundscheck
(
False
)
@
cython
.
wraparound
(
False
)
def
testing_memoryview
(
double
[:,
:]
x
):
""" Function testing boundscheck and wraparound in memoryview
>>> import numpy as np
>>> array = np.ones((2,2)) * 3.5
>>> testing_memoryview(array)
"""
cdef
Py_ssize_t
numrow
=
x
.
shape
[
0
]
cdef
Py_ssize_t
i
for
i
in
range
(
numrow
):
x
[
i
,
0
]
x
[
i
]
x
[
i
,
...]
x
[
i
,
:]
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