From 4fd287655a72b9aea14cdac715ad5b90ed082ed2 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 19 Jun 2022 19:47:51 +0530 Subject: add circuitpython code --- circuitpython/extmod/ulab/tests/2d/numpy/logspace.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 circuitpython/extmod/ulab/tests/2d/numpy/logspace.py (limited to 'circuitpython/extmod/ulab/tests/2d/numpy/logspace.py') diff --git a/circuitpython/extmod/ulab/tests/2d/numpy/logspace.py b/circuitpython/extmod/ulab/tests/2d/numpy/logspace.py new file mode 100644 index 0000000..e6f2047 --- /dev/null +++ b/circuitpython/extmod/ulab/tests/2d/numpy/logspace.py @@ -0,0 +1,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.logspace(0, 10, num=5, endpoint=False, dtype=dtype)) + print(np.logspace(0, 10, num=5, endpoint=True, dtype=dtype)) \ No newline at end of file -- cgit v1.2.3