MCPcopy Create free account
hub / github.com/apache/arrow / ternary_function

Function ternary_function

python/pyarrow/tests/test_udf.py:156–160  ·  view source on GitHub ↗
(ctx, m, x, c)

Source from the content-addressed store, hash-verified

154 Register a ternary scalar function.
155 """
156 def ternary_function(ctx, m, x, c):
157 mx = pc.call_function("multiply", [m, x],
158 memory_pool=ctx.memory_pool)
159 return pc.call_function("add", [mx, c],
160 memory_pool=ctx.memory_pool)
161 ternary_doc = {"summary": "y=mx+c",
162 "description": "find y from y = mx + c"}
163 func_name = "y=mx+c"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected