Commit 135495aa authored by Kurt Smith's avatar Kurt Smith Committed by Mark Florisson

added is_c_contig/is_f_contig flags to MemoryViewSliceType

parent 3d451904
......@@ -359,6 +359,10 @@ class MemoryViewSliceType(PyrexType):
self.axes = axes
self.env = env
import MemoryView
self.is_c_contig, self.is_f_contig = MemoryView.is_cf_contig(self.axes)
assert not (self.is_c_contig and self.is_f_contig)
def is_complete(self):
# incomplete since the underlying struct doesn't have a cython.memoryview object.
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment