Home
last modified time | relevance | path

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

/third_party/python/Include/cpython/
Dobject.h87 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) macro
88 #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
89 #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
90 #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
91 #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
96 #define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
97 #define PyBUF_STRIDED_RO (PyBUF_STRIDES)
99 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
100 #define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT)
/third_party/python/Lib/test/
Dtest_buffer.py986 (not match(req, PyBUF_STRIDES) and not ex.c_contiguous) or
1013 strides = orig_ex.strides if match(req, PyBUF_STRIDES) else ()
1024 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
1108 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_STRIDES)
2128 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
2184 for request in [PyBUF_STRIDES, PyBUF_FULL]:
2301 PyBUF_STRIDES, PyBUF_ND]:
2323 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.c2549 if ((flags & PyBUF_STRIDES)==PyBUF_STRIDES) in array_buffer_getbuf()
/third_party/python/Objects/
Dabstract.c737 if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) in PyBuffer_FillInfo()
Dmemoryobject.c235 #define REQ_STRIDES(flags) ((flags&PyBUF_STRIDES) == PyBUF_STRIDES)
/third_party/python/Doc/c-api/
Dbuffer.rst276 | .. c:macro:: PyBUF_STRIDES | yes | yes | NULL |