circuitpython-ulab/tests/common/slicing2.py
Zoltán Vörös ae0276509c fixed tests
2020-11-25 17:22:25 +01:00

8 lines
166 B
Python

try:
from ulab import numpy as np
except:
import numpy as np
a = np.array(range(9), dtype=np.float)
print("a:\t", list(a))
print("a < 5:\t", list(a[a < 5]))