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

Function as_apply

numpy/f2py/symbolic.py:1008–1013  ·  view source on GitHub ↗

Return object as APPLY expression (function call, constructor, etc.)

(func, *args, **kwargs)

Source from the content-addressed store, hash-verified

1006
1007
1008def as_apply(func, *args, **kwargs):
1009 """Return object as APPLY expression (function call, constructor, etc.)
1010 """
1011 return Expr(Op.APPLY,
1012 (func, tuple(map(as_expr, args)),
1013 {k: as_expr(v) for k, v in kwargs.items()}))
1014
1015
1016def as_ternary(cond, expr1, expr2):

Callers 9

test_tostring_cMethod · 0.90
test_operationsMethod · 0.90
test_fromstringMethod · 0.90
__pow__Method · 0.85
__truediv__Method · 0.85
__call__Method · 0.85
normalizeFunction · 0.85
as_term_coeffFunction · 0.85
processMethod · 0.85

Calls 3

ExprClass · 0.85
as_exprFunction · 0.85
itemsMethod · 0.80

Tested by 3

test_tostring_cMethod · 0.72
test_operationsMethod · 0.72
test_fromstringMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…