aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/extmod/ulab/tests/2d/complex/conjugate.py
blob: eafaf5747301b7be506684a4a1d57bcf886ed928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
try:
    from ulab import numpy as np
except:
    import numpy as np

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

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

a = np.array([1, 2+2j, 3-3j, 4j], dtype=np.complex)
print(np.conjugate(a))