Lines Matching defs:order
476 /* Copy src to a contiguous representation. order is one of 'C', 'F' (Fortran)
480 buffer_to_contiguous(char *mem, const Py_buffer *src, char order)
505 if (order == 'C' || order == 'A') {
841 memory_from_contiguous_copy(const Py_buffer *src, char order)
880 if (order == 'C' || order == 'A') {
902 buffertype={PyBUF_READ, PyBUF_WRITE} and order={'C', 'F'ortran, or 'A'ny}.
910 If the exporter is already contiguous with the desired target order,
914 based on a new bytes object. If order={'C', 'A'ny}, use 'C' order,
915 'F'ortran order otherwise.
918 PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char order)
925 assert(order == 'C' || order == 'F' || order == 'A');
939 if (PyBuffer_IsContiguous(view, order))
950 ret = memory_from_contiguous_copy(view, order);
983 PyBuffer_ToContiguous(void *buf, const Py_buffer *src, Py_ssize_t len, char order)
988 assert(order == 'C' || order == 'F' || order == 'A');
996 if (PyBuffer_IsContiguous(src, order)) {
1018 ret = buffer_to_contiguous(buf, src, order);
2166 order: str(accept={str, NoneType}, c_default="NULL") = 'C'
2170 Order can be {'C', 'F', 'A'}. When order is 'C' or 'F', the data of the
2171 original array is converted to C or Fortran order. For contiguous views,
2173 Fortran order is preserved. For non-contiguous views, the data is converted
2174 to C first. order=None is the same as order='C'.
2178 memoryview_tobytes_impl(PyMemoryViewObject *self, const char *order)
2187 if (order) {
2188 if (strcmp(order, "F") == 0) {
2191 else if (strcmp(order, "A") == 0) {
2194 else if (strcmp(order, "C") != 0) {
2196 "order must be 'C', 'F' or 'A'");