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

Function as_array

numpy/f2py/symbolic.py:994–999  ·  view source on GitHub ↗

Return object as ARRAY expression (array constant).

(obj)

Source from the content-addressed store, hash-verified

992
993
994def as_array(obj):
995 """Return object as ARRAY expression (array constant).
996 """
997 if isinstance(obj, Expr):
998 obj = obj,
999 return Expr(Op.ARRAY, obj)
1000
1001
1002def as_complex(real, imag=0):

Callers 6

test_sanityMethod · 0.90
test_tostring_fortranMethod · 0.90
test_substituteMethod · 0.90
test_fromstringMethod · 0.90
substituteMethod · 0.70
processMethod · 0.70

Calls 1

ExprClass · 0.85

Tested by 4

test_sanityMethod · 0.72
test_tostring_fortranMethod · 0.72
test_substituteMethod · 0.72
test_fromstringMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…