Home
last modified time | relevance | path

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

/third_party/python/Include/cpython/
Dobject.h79 #define PyBUF_ND 0x0008 macro
80 #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
86 #define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE)
87 #define PyBUF_CONTIG_RO (PyBUF_ND)
/third_party/python/Lib/test/
Dtest_buffer.py989 (not match(req, PyBUF_ND) and match(req, PyBUF_FORMAT))):
1011 if not match(req, PyBUF_ND):
1013 shape = orig_ex.shape if match(req, PyBUF_ND) else ()
1025 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
1108 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_ND)
1625 xr = ndarray(ex, getbuf=PyBUF_ND)
2068 nd = ndarray(ex, getbuf=PyBUF_ND|PyBUF_FORMAT)
2129 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE,
2302 PyBUF_STRIDES, PyBUF_ND]:
2324 PyBUF_STRIDES, PyBUF_ND]:
/third_party/python/Modules/
D_testbuffer.c79 #define REQ_SHAPE(flags) ((flags&PyBUF_ND) == PyBUF_ND)
2872 PyModule_AddIntMacro(m, PyBUF_ND); in PyInit__testbuffer()
Darraymodule.c2585 if ((flags & PyBUF_ND)==PyBUF_ND) { in array_buffer_getbuf()
/third_party/python/Doc/c-api/
Dbuffer.rst278 | .. c:macro:: PyBUF_ND | yes | NULL | NULL |
304 | :c:macro:`PyBUF_ND` | yes | NULL | NULL | C |
/third_party/python/Objects/
Dabstract.c741 if ((flags & PyBUF_ND) == PyBUF_ND) in PyBuffer_FillInfo()
Dmemoryobject.c236 #define REQ_SHAPE(flags) ((flags&PyBUF_ND) == PyBUF_ND)