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
Xavier Thompson
cython
Commits
e59fb891
Commit
e59fb891
authored
Aug 11, 2009
by
Kurt Smith
Committed by
Mark Florisson
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix in memoryviewslice src_conforms_to_dst
parent
66de0c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Cython/Compiler/MemoryView.py
Cython/Compiler/MemoryView.py
+3
-5
No files found.
Cython/Compiler/MemoryView.py
View file @
e59fb891
...
@@ -151,10 +151,8 @@ def src_conforms_to_dst(src, dst):
...
@@ -151,10 +151,8 @@ def src_conforms_to_dst(src, dst):
Any packing/access spec is conformable to itself.
Any packing/access spec is conformable to itself.
'contig' and 'follow' are conformable to 'strided'.
'direct' and 'ptr' are conformable to 'full'.
'direct' and 'ptr' are conformable to 'full'.
'contig' and 'follow' are conformable to 'strided'.
Any other combo is not conformable.
Any other combo is not conformable.
'''
'''
...
@@ -166,9 +164,9 @@ def src_conforms_to_dst(src, dst):
...
@@ -166,9 +164,9 @@ def src_conforms_to_dst(src, dst):
for
src_spec
,
dst_spec
in
zip
(
src
.
axes
,
dst
.
axes
):
for
src_spec
,
dst_spec
in
zip
(
src
.
axes
,
dst
.
axes
):
src_access
,
src_packing
=
src_spec
src_access
,
src_packing
=
src_spec
dst_access
,
dst_packing
=
dst_spec
dst_access
,
dst_packing
=
dst_spec
if
src_access
!=
dst_access
and
dst_access
!=
'
strided
'
:
if
src_access
!=
dst_access
and
dst_access
!=
'
full
'
:
return
False
return
False
if
src_packing
!=
dst_packing
and
dst_packing
!=
'
full
'
:
if
src_packing
!=
dst_packing
and
dst_packing
!=
'
strided
'
:
return
False
return
False
return
True
return
True
...
...
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