MCPcopy Create free account
hub / github.com/numpy/numpy / as_complex

Function as_complex

numpy/f2py/symbolic.py:1003–1006  ·  view source on GitHub ↗

Return object as COMPLEX expression (complex literal constant).

(real, imag=0)

Source from the content-addressed store, hash-verified

1001
1002
1003def as_complex(real, imag=0):
1004 """Return object as COMPLEX expression (complex literal constant).
1005 """
1006 return Expr(Op.COMPLEX, (as_expr(real), as_expr(imag)))
1007
1008
1009def as_apply(func, *args, **kwargs):

Callers 8

test_sanityMethod · 0.90
test_tostring_fortranMethod · 0.90
test_operationsMethod · 0.90
test_fromstringMethod · 0.90
__add__Method · 0.85
__mul__Method · 0.85
as_exprFunction · 0.85
processMethod · 0.85

Calls 2

ExprClass · 0.85
as_exprFunction · 0.85

Tested by 4

test_sanityMethod · 0.72
test_tostring_fortranMethod · 0.72
test_operationsMethod · 0.72
test_fromstringMethod · 0.72