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
Boxiang Sun
cython
Commits
efc997c1
Commit
efc997c1
authored
Jan 03, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
parent
c0d606ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/memoryview/relaxed_strides.pyx
tests/memoryview/relaxed_strides.pyx
+3
-1
No files found.
tests/memoryview/relaxed_strides.pyx
View file @
efc997c1
...
@@ -26,6 +26,7 @@ See also:
...
@@ -26,6 +26,7 @@ See also:
import
numpy
as
np
import
numpy
as
np
def
test_one_sized
(
array
):
def
test_one_sized
(
array
):
"""
"""
>>> contig = np.ascontiguousarray(np.arange(10, dtype=np.double)[::100])
>>> contig = np.ascontiguousarray(np.arange(10, dtype=np.double)[::100])
...
@@ -39,6 +40,7 @@ def test_one_sized(array):
...
@@ -39,6 +40,7 @@ def test_one_sized(array):
a
[
0
]
+=
1.
a
[
0
]
+=
1.
return
array
return
array
def
test_zero_sized
(
array
):
def
test_zero_sized
(
array
):
"""
"""
>>> contig = np.ascontiguousarray(np.arange(10, dtype=np.double)[100:200:10])
>>> contig = np.ascontiguousarray(np.arange(10, dtype=np.double)[100:200:10])
...
@@ -48,4 +50,4 @@ def test_zero_sized(array):
...
@@ -48,4 +50,4 @@ def test_zero_sized(array):
>>> _ = test_zero_sized(a)
>>> _ = test_zero_sized(a)
"""
"""
cdef
double
[::
1
]
a
=
array
cdef
double
[::
1
]
a
=
array
return
a
return
a
\ No newline at end of file
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