()
| 93 | |
| 94 | |
| 95 | def _get_c_intp_name() -> str: |
| 96 | # Adapted from `np.core._internal._getintp_ctype` |
| 97 | char = np.dtype('p').char |
| 98 | if char == 'i': |
| 99 | return "c_int" |
| 100 | elif char == 'l': |
| 101 | return "c_long" |
| 102 | elif char == 'q': |
| 103 | return "c_longlong" |
| 104 | else: |
| 105 | return "c_long" |
| 106 | |
| 107 | |
| 108 | #: A dictionary mapping type-aliases in `numpy._typing._nbit` to |