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

Function check_td_order

numpy/_core/code_generators/generate_umath.py:126–137  ·  view source on GitHub ↗
(tds)

Source from the content-addressed store, hash-verified

124
125
126def check_td_order(tds):
127 # A quick check for whether the signatures make sense, it happened too
128 # often that SIMD additions added loops that do not even make some sense.
129 # TODO: This should likely be a test and it would be nice if it rejected
130 # duplicate entries as well (but we have many as of writing this).
131 signatures = [t.in_ + t.out for t in tds]
132
133 for prev_i, sign in enumerate(signatures[1:]):
134 if sign in signatures[:prev_i + 1]:
135 continue # allow duplicates...
136
137 _check_order(signatures[prev_i], sign)
138
139
140_floatformat_map = {

Callers 1

__init__Method · 0.85

Calls 1

_check_orderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…