[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/mfkiwl/lpython/main/integration_tests/array_expr_07.py [Back]  [Original]

from lpython import c32, c64, f32
from numpy import complex64, complex128, array

def g():
    a32: c32[4] = array([127, -127, 3, 111], dtype=complex64)
    a64: c64[4] = array([127, -127, 3, 111], dtype=complex128)

    print(a32)
    print(a64)

    assert (abs(a32[0] - c32(127)) 

Web Proxy Viewer  |  New URL  |  Original Page