Home
last modified time | relevance | path

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

/third_party/python/Include/cpython/
Dobject.h80 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) macro
81 #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
82 #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
83 #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
84 #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
89 #define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
90 #define PyBUF_STRIDED_RO (PyBUF_STRIDES)
92 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
93 #define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT)
/third_party/python/Lib/test/
Dtest_buffer.py987 (not match(req, PyBUF_STRIDES) and not ex.c_contiguous) or
1014 strides = orig_ex.strides if match(req, PyBUF_STRIDES) else ()
1025 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
1109 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_STRIDES)
2129 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
2185 for request in [PyBUF_STRIDES, PyBUF_FULL]:
2302 PyBUF_STRIDES, PyBUF_ND]:
2324 PyBUF_STRIDES, PyBUF_ND]:
/third_party/python/Modules/
D_testbuffer.c78 #define REQ_STRIDES(flags) ((flags&PyBUF_STRIDES) == PyBUF_STRIDES)
2873 PyModule_AddIntMacro(m, PyBUF_STRIDES); in PyInit__testbuffer()
Darraymodule.c2589 if ((flags & PyBUF_STRIDES)==PyBUF_STRIDES) in array_buffer_getbuf()
/third_party/python/Objects/
Dmemoryobject.c235 #define REQ_STRIDES(flags) ((flags&PyBUF_STRIDES) == PyBUF_STRIDES)
Dabstract.c744 if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) in PyBuffer_FillInfo()
/third_party/python/Doc/c-api/
Dbuffer.rst276 | .. c:macro:: PyBUF_STRIDES | yes | yes | NULL |