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

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

for dtype1 in dtypes:
    for dtype2 in dtypes:
        print(np.array(np.array(range(5), dtype=dtype1), dtype=dtype2))