MCPcopy Create free account
hub / github.com/numpy/numpy / check_td_order

Function check_td_order

numpy/core/code_generators/generate_umath.py:121–132  ·  view source on GitHub ↗
(tds)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.85

Calls 1

_check_orderFunction · 0.85

Tested by

no test coverage detected