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

Function as_array

numpy/f2py/symbolic.py:995–1000  ·  view source on GitHub ↗

Return object as ARRAY expression (array constant).

(obj)

Source from the content-addressed store, hash-verified

993
994
995def as_array(obj):
996 """Return object as ARRAY expression (array constant).
997 """
998 if isinstance(obj, Expr):
999 obj = obj,
1000 return Expr(Op.ARRAY, obj)
1001
1002
1003def 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