MCPcopy Create free account
hub / github.com/numpy/numpy / array_lexsort

Function array_lexsort

numpy/core/src/multiarray/multiarraymodule.c:3571–3586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3569}
3570
3571static PyObject *
3572array_lexsort(PyObject *NPY_UNUSED(ignored), PyObject *const *args, Py_ssize_t len_args,
3573 PyObject *kwnames)
3574{
3575 int axis = -1;
3576 PyObject *obj;
3577
3578 NPY_PREPARE_ARGPARSER;
3579 if (npy_parse_arguments("lexsort", args, len_args, kwnames,
3580 "keys", NULL, &obj,
3581 "|axis", PyArray_PythonPyIntFromInt, &axis,
3582 NULL, NULL, NULL) < 0) {
3583 return NULL;
3584 }
3585 return PyArray_Return((PyArrayObject *)PyArray_LexSort(obj, axis));
3586}
3587
3588static PyObject *
3589array_can_cast_safely(PyObject *NPY_UNUSED(self),

Callers

nothing calls this directly

Calls 2

PyArray_ReturnFunction · 0.85
PyArray_LexSortFunction · 0.85

Tested by

no test coverage detected