aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/extmod/ulab/tests/2d/numpy/arange.py
blob: 91d21fe56f661f7455c5d4701e27f5f31310a993 (plain)
1
2
3
4
5
6
7
8
9
10
11
try:
    from ulab import numpy as np
except:
    import numpy as np

dtypes = (np.uint8, np.int8, np.uint16, np.int16, np.float)

for dtype in dtypes:
    print(np.arange(10, dtype=dtype))
    print(np.arange(2, 10, dtype=dtype))
    print(np.arange(2, 10, 3, dtype=dtype))