1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
Common location for shared fused types
"""
 
from numpy cimport (
    float32_t,
    float64_t,
    int8_t,
    int16_t,
    int32_t,
    int64_t,
    uint8_t,
    uint16_t,
    uint32_t,
    uint64_t,
)
 
# All numeric types except complex
ctypedef fused numeric_t:
    int8_t
    int16_t
    int32_t
    int64_t
 
    uint8_t
    uint16_t
    uint32_t
    uint64_t
 
    float32_t
    float64_t
 
# All numeric types + object, doesn't include complex
ctypedef fused numeric_object_t:
    numeric_t
    object