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

Method test_arithmetic_mul

numpy/core/tests/test_simd.py:1151–1164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1149 assert sub == data_sub
1150
1151 def test_arithmetic_mul(self):
1152 if self.sfx in ("u64", "s64"):
1153 return
1154
1155 if self._is_fp():
1156 data_a = self._data()
1157 else:
1158 data_a = self._data(self._int_max() - self.nlanes)
1159 data_b = self._data(self._int_min(), reverse=True)
1160 vdata_a, vdata_b = self.load(data_a), self.load(data_b)
1161
1162 data_mul = self.load([a * b for a, b in zip(data_a, data_b)])
1163 mul = self.mul(vdata_a, vdata_b)
1164 assert mul == data_mul
1165
1166 def test_arithmetic_div(self):
1167 if not self._is_fp():

Callers

nothing calls this directly

Calls 5

_is_fpMethod · 0.80
_int_maxMethod · 0.80
_int_minMethod · 0.80
_dataMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected