diff options
author | Kurt Smith <kwsmith1@wisc.edu> | 2009-08-09 18:37:08 -0500 |
---|---|---|
committer | Kurt Smith <kwsmith1@wisc.edu> | 2009-08-09 18:37:08 -0500 |
commit | 0707601e7fe8848047f5d4057522060ec1b2b02d (patch) | |
tree | 33716a1c050c8146677d5e57d7dd707c3c62c0e0 | |
parent | 3eeb22477aed734121a70ad18dc6c2034f42586c (diff) | |
download | cython-0707601e7fe8848047f5d4057522060ec1b2b02d.tar.gz |
added is_c_contig/is_f_contig flags to MemoryViewSliceType
-rw-r--r-- | Cython/Compiler/PyrexTypes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 8428f8c04..a71500a10 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -270,6 +270,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 |