| 460 | } |
| 461 | |
| 462 | static 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 | ***************************************************************************** |