| 443 | constexpr std::array<arg_map, partition_t::taglist::size> partition_t::map; |
| 444 | |
| 445 | static inline PyArray_PartitionFunc * |
| 446 | _get_partition_func(int type, NPY_SELECTKIND which) |
| 447 | { |
| 448 | npy_intp i; |
| 449 | npy_intp ntypes = partition_t::map.size(); |
| 450 | |
| 451 | if (which >= NPY_NSELECTS) { |
| 452 | return NULL; |
| 453 | } |
| 454 | for (i = 0; i < ntypes; i++) { |
| 455 | if (type == partition_t::map[i].typenum) { |
| 456 | return partition_t::map[i].part[which]; |
| 457 | } |
| 458 | } |
| 459 | return NULL; |
| 460 | } |
| 461 | |
| 462 | static inline PyArray_ArgPartitionFunc * |
| 463 | _get_argpartition_func(int type, NPY_SELECTKIND which) |