aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/extmod/ulab/tests/2d/numpy/linspace.py
blob: c97199a2df6172f23966d4a71663cad30411f0c9 (plain)
1
2
3
4
5
6
7
8
9
10
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.linspace(0, 10, num=5, dtype=dtype))
    print(np.linspace(0, 10, num=5, endpoint=True, dtype=dtype))