Commit af75d9bf authored by Kurt Smith's avatar Kurt Smith Committed by Mark Florisson

added MemoryViewSliceType.same_as_resolved_type() method

parent 8a6c4d3d
......@@ -365,6 +365,12 @@ class MemoryViewSliceType(PyrexType):
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 same_as_resolved_type(self, other_type):
return ((other_type.is_memoryviewslice and
self.dtype.same_as(other_type.dtype) and
self.axes == other_type.axes) or
other_type is error_type)
def needs_nonecheck(self):
return True
......
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