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

Function array_where

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

Source from the content-addressed store, hash-verified

3552#undef INNER_WHERE_LOOP
3553
3554static PyObject *
3555array_where(PyObject *NPY_UNUSED(ignored), PyObject *const *args, Py_ssize_t len_args)
3556{
3557 PyObject *obj = NULL, *x = NULL, *y = NULL;
3558
3559 NPY_PREPARE_ARGPARSER;
3560 if (npy_parse_arguments("where", args, len_args, NULL,
3561 "", NULL, &obj,
3562 "|x", NULL, &x,
3563 "|y", NULL, &y,
3564 NULL, NULL, NULL) < 0) {
3565 return NULL;
3566 }
3567
3568 return PyArray_Where(obj, x, y);
3569}
3570
3571static PyObject *
3572array_lexsort(PyObject *NPY_UNUSED(ignored), PyObject *const *args, Py_ssize_t len_args,

Callers

nothing calls this directly

Calls 1

PyArray_WhereFunction · 0.85

Tested by

no test coverage detected