micropython-ulab/snippets/tests/numpy/core/multiarray.py
2022-01-13 23:11:55 -08:00

11 lines
No EOL
298 B
Python

import math
import sys
sys.path.append('.')
from snippets import numpy
from ulab import numpy as np
np.set_printoptions(threshold=100)
print (numpy.asarray([1]))
print (numpy.asarray([1.0, 2.0, 3j]))
print (numpy.asarray([4, 3, 1, (2-2j), (2+2j), (2-1j), (2+1j), (2-1j), (2+1j), (1+1j), (1-1j)]))