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

Function as_ternary

numpy/f2py/symbolic.py:1016–1019  ·  view source on GitHub ↗

Return object as TERNARY expression (cond?expr1:expr2).

(cond, expr1, expr2)

Source from the content-addressed store, hash-verified

1014
1015
1016def as_ternary(cond, expr1, expr2):
1017 """Return object as TERNARY expression (cond?expr1:expr2).
1018 """
1019 return Expr(Op.TERNARY, (cond, expr1, expr2))
1020
1021
1022def as_ref(expr):

Callers 6

test_sanityMethod · 0.90
test_tostring_fortranMethod · 0.90
test_tostring_cMethod · 0.90
test_substituteMethod · 0.90
test_fromstringMethod · 0.90
processMethod · 0.85

Calls 1

ExprClass · 0.85

Tested by 5

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…