Home
last modified time | relevance | path

Searched refs:PyBUF_STRIDES (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Include/
Dobject.h191 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) macro
192 #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
193 #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
194 #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
195 #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
200 #define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
201 #define PyBUF_STRIDED_RO (PyBUF_STRIDES)
203 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
204 #define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT)
/external/python/cpython3/Include/
Dobject.h210 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) macro
211 #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
212 #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
213 #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
214 #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
219 #define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
220 #define PyBUF_STRIDED_RO (PyBUF_STRIDES)
222 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
223 #define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT)
/external/python/cpython2/Doc/c-api/
Dbuffer.rst186 | :c:macro:`PyBUF_STRIDES` | This implies :c:macro:`PyBUF_ND`. The returned |
211 | | :c:macro:`PyBUF_STRIDES` and guarantee that the |
221 | | implies :c:macro:`PyBUF_STRIDES`. |
236 | :c:macro:`PyBUF_STRIDED` | This is equivalent to ``(PyBUF_STRIDES | |
239 | :c:macro:`PyBUF_STRIDED_RO` | This is equivalent to ``(PyBUF_STRIDES)``. |
242 | :c:macro:`PyBUF_RECORDS` | This is equivalent to ``(PyBUF_STRIDES | |
245 | :c:macro:`PyBUF_RECORDS_RO` | This is equivalent to ``(PyBUF_STRIDES | |
/external/python/cpython3/Lib/test/
Dtest_buffer.py959 (not match(req, PyBUF_STRIDES) and not ex.c_contiguous) or
986 strides = orig_ex.strides if match(req, PyBUF_STRIDES) else ()
997 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
1081 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_STRIDES)
2101 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
2157 for request in [PyBUF_STRIDES, PyBUF_FULL]:
2274 PyBUF_STRIDES, PyBUF_ND]:
2296 PyBUF_STRIDES, PyBUF_ND]:
/external/python/cpython3/Modules/
D_testbuffer.c78 #define REQ_STRIDES(flags) ((flags&PyBUF_STRIDES) == PyBUF_STRIDES)
2874 PyModule_AddIntMacro(m, PyBUF_STRIDES); in PyInit__testbuffer()
Darraymodule.c2514 if ((flags & PyBUF_STRIDES)==PyBUF_STRIDES) in array_buffer_getbuf()
/external/python/cpython3/Objects/
Dmemoryobject.c217 #define REQ_STRIDES(flags) ((flags&PyBUF_STRIDES) == PyBUF_STRIDES)
Dabstract.c649 if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) in PyBuffer_FillInfo()
/external/python/cpython2/Objects/
Dabstract.c706 if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) in PyBuffer_FillInfo()
/external/python/cpython3/Doc/c-api/
Dbuffer.rst276 | .. c:macro:: PyBUF_STRIDES | yes | yes | NULL |