Home
last modified time | relevance | path

Searched refs:c_contiguous (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_picklebuffer.py28 self.assertEqual(m.c_contiguous, expected.c_contiguous)
80 self.assertTrue(arr.c_contiguous)
86 self.assertFalse(arr.c_contiguous)
93 self.assertFalse(arr.c_contiguous)
Dpickletester.py196 c_contiguous = True variable in ZeroCopyBytes
224 c_contiguous = True variable in ZeroCopyBytearray
272 def c_contiguous(self): member in PicklableNDArray
273 return self.array.c_contiguous
2713 if obj.c_contiguous and proto >= 5:
2759 if obj.c_contiguous:
2851 if arr.flags.c_contiguous or arr.flags.f_contiguous:
Dtest_buffer.py980 (match(req, PyBUF_C_CONTIGUOUS) and not ex.c_contiguous) or
986 (not match(req, PyBUF_STRIDES) and not ex.c_contiguous) or
2015 self.assertFalse(ex.c_contiguous)
2372 self.assertTrue(m.c_contiguous)
2487 self.assertTrue(ex.c_contiguous)
2573 self.assertFalse(ex.c_contiguous)
4076 self.assertTrue(m.c_contiguous)
/external/python/pybind11/tests/
Dtest_numpy_vectorize.py199 assert m.vectorized_func(z1, z2, z3).flags.c_contiguous
201 assert m.vectorized_func(z1, 1, 1).flags.c_contiguous
204 assert m.vectorized_func(y1[1::4, 1::4], z2, 1).flags.c_contiguous
Dtest_numpy_array.py180 assert m.make_c_array().flags.c_contiguous
183 assert not m.make_f_array().flags.c_contiguous
205 assert a.flags.c_contiguous == b.flags.c_contiguous
/external/python/cpython3/Lib/ctypes/test/
Dtest_frombuffer.py63 self.assertFalse(array.c_contiguous)
/external/python/cpython3/Doc/library/
Dstdtypes.rst4061 .. attribute:: c_contiguous