Searched refs:PyBUF_ND (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython2/Include/ |
D | object.h | 190 #define PyBUF_ND 0x0008 macro 191 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) 197 #define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE) 198 #define PyBUF_CONTIG_RO (PyBUF_ND)
|
/external/python/cpython3/Include/ |
D | object.h | 209 #define PyBUF_ND 0x0008 macro 210 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) 216 #define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE) 217 #define PyBUF_CONTIG_RO (PyBUF_ND)
|
/external/python/cpython2/Doc/c-api/ |
D | buffer.rst | 186 | :c:macro:`PyBUF_STRIDES` | This implies :c:macro:`PyBUF_ND`. The returned | 196 | :c:macro:`PyBUF_ND` | The returned buffer must provide shape | 254 | :c:macro:`PyBUF_CONTIG` | This is equivalent to ``(PyBUF_ND | | 257 | :c:macro:`PyBUF_CONTIG_RO` | This is equivalent to ``(PyBUF_ND)``. |
|
/external/python/cpython3/Lib/test/ |
D | test_buffer.py | 962 (not match(req, PyBUF_ND) and match(req, PyBUF_FORMAT))): 984 if not match(req, PyBUF_ND): 986 shape = orig_ex.shape if match(req, PyBUF_ND) else () 998 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE, 1081 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_ND) 1598 xr = ndarray(ex, getbuf=PyBUF_ND) 2041 nd = ndarray(ex, getbuf=PyBUF_ND|PyBUF_FORMAT) 2102 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE, 2275 PyBUF_STRIDES, PyBUF_ND]: 2297 PyBUF_STRIDES, PyBUF_ND]:
|
/external/python/cpython3/Modules/ |
D | _testbuffer.c | 79 #define REQ_SHAPE(flags) ((flags&PyBUF_ND) == PyBUF_ND) 2872 PyModule_AddIntMacro(m, PyBUF_ND); in PyInit__testbuffer()
|
D | arraymodule.c | 2578 if ((flags & PyBUF_ND)==PyBUF_ND) { in array_buffer_getbuf()
|
/external/python/cpython3/Doc/c-api/ |
D | buffer.rst | 278 | .. c:macro:: PyBUF_ND | yes | NULL | NULL | 304 | .. c:macro:: PyBUF_ND | yes | NULL | NULL | C |
|
/external/python/cpython3/Objects/ |
D | abstract.c | 673 if ((flags & PyBUF_ND) == PyBUF_ND) in PyBuffer_FillInfo()
|
D | memoryobject.c | 220 #define REQ_SHAPE(flags) ((flags&PyBUF_ND) == PyBUF_ND)
|
/external/python/cpython2/Objects/ |
D | abstract.c | 703 if ((flags & PyBUF_ND) == PyBUF_ND) in PyBuffer_FillInfo()
|