MCPcopy Create free account
hub / github.com/pydata/numexpr / VEC_LOOP

Function VEC_LOOP

code_generators/interp_generator.py:175–181  ·  view source on GitHub ↗
(expr: str)

Source from the content-addressed store, hash-verified

173 return '*({0} *)dest'.format(DCHAR_TO_CTYPE[dchar])
174
175def VEC_LOOP(expr: str) -> str:
176 expr = expr.replace('$ARG3', ARG(3))
177 expr = expr.replace('$ARG2', ARG(2))
178 expr = expr.replace('$ARG1', ARG(1))
179 return ''&#x27;for(npy_intp J = 0; J < task_size; J++) {
180 EXPR;
181 }'''.replace('EXPR&#x27;, expr)
182
183def STRIDED_LOOP(expr: str) -> str:
184 expr = expr.replace( '$ARG3', ARG_STRIDE(3))

Callers 4

VEC_ARG0Function · 0.85
VEC_ARG1Function · 0.85
VEC_ARG2Function · 0.85
VEC_ARG3Function · 0.85

Calls 1

ARGFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…