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

Method test_operators_crosstest

numpy/core/tests/test_simd.py:232–243  ·  view source on GitHub ↗

Test intrinsics: npyv_any_##SFX npyv_all_##SFX

(self, intrin, data)

Source from the content-addressed store, hash-verified

230 [0]
231 ))
232 def test_operators_crosstest(self, intrin, data):
233 """
234 Test intrinsics:
235 npyv_any_##SFX
236 npyv_all_##SFX
237 """
238 data_a = self._load_b(data * self._nlanes())
239 func = eval(intrin)
240 intrin = getattr(self, intrin)
241 desired = func(data_a)
242 simd = intrin(data_a)
243 assert not not simd == desired
244
245class _SIMD_INT(_Test_Utility):
246 """

Callers

nothing calls this directly

Calls 3

_load_bMethod · 0.95
_nlanesMethod · 0.95
funcFunction · 0.50

Tested by

no test coverage detected