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

Function STRIDED_LOOP

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

Source from the content-addressed store, hash-verified

181 }'''.replace('EXPR', expr)
182
183def STRIDED_LOOP(expr: str) -> str:
184 expr = expr.replace( '$ARG3', ARG_STRIDE(3))
185 expr = expr.replace( '$ARG2', ARG_STRIDE(2))
186 expr = expr.replace( '$ARG1', ARG_STRIDE(1))
187 retStr = ''
188 if 'x3' in expr:
189 retStr += ' sb3 /= sizeof($DTYPE3);\n'
190 if 'x2' in expr:
191 retStr += ' sb2 /= sizeof($DTYPE2);\n'
192 if 'x1' in expr:
193 retStr += ' sb1 /= sizeof($DTYPE1);\n'
194 retStr += ''&#x27; for(npy_intp J = 0; J < task_size; J++) {
195 EXPR;
196 }'''.replace('EXPR&#x27;, expr)
197 return retStr
198
199
200def VEC_ARG0(expr: str) -> str:

Callers 3

VEC_ARG1Function · 0.85
VEC_ARG2Function · 0.85
VEC_ARG3Function · 0.85

Calls 1

ARG_STRIDEFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…