MCPcopy Index your code
hub / github.com/numpy/numpy / as_complex

Function as_complex

numpy/f2py/symbolic.py:1002–1005  ·  view source on GitHub ↗

Return object as COMPLEX expression (complex literal constant).

(real, imag=0)

Source from the content-addressed store, hash-verified

1000
1001
1002def as_complex(real, imag=0):
1003 """Return object as COMPLEX expression (complex literal constant).
1004 """
1005 return Expr(Op.COMPLEX, (as_expr(real), as_expr(imag)))
1006
1007
1008def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…