1cimport numpy as cnp
2import numpy as np
3
4ctypedef fused np_ints:
5    cnp.int8_t
6    cnp.int16_t
7    cnp.int32_t
8    cnp.int64_t
9
10ctypedef fused np_uints:
11    cnp.uint8_t
12    cnp.uint16_t
13    cnp.uint32_t
14    cnp.uint64_t
15
16ctypedef fused np_anyint:
17    np_uints
18    np_ints
19
20ctypedef fused np_floats:
21    cnp.float32_t
22    cnp.float64_t
23
24ctypedef fused np_complexes:
25    cnp.complex64_t
26    cnp.complex128_t
27
28ctypedef fused np_real_numeric:
29    np_anyint
30    np_floats
31
32ctypedef fused np_numeric:
33    np_real_numeric
34    np_complexes
35