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

Function _get_argpartition_func

numpy/core/src/npysort/selection.cpp:462–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462static inline PyArray_ArgPartitionFunc *
463_get_argpartition_func(int type, NPY_SELECTKIND which)
464{
465 npy_intp i;
466 npy_intp ntypes = partition_t::map.size();
467
468 for (i = 0; i < ntypes; i++) {
469 if (type == partition_t::map[i].typenum) {
470 return partition_t::map[i].argpart[which];
471 }
472 }
473 return NULL;
474}
475
476/*
477 *****************************************************************************

Callers 1

selection.cppFile · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected