micropython-ulab/snippets/tests/numpy/core/multiarray.py
2022-01-10 13:59:51 -08:00

9 lines
No EOL
234 B
Python

import math
import sys
sys.path.append('.')
from snippets import numpy
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)]))