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

Method test_arithmetic_div

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

Source from the content-addressed store, hash-verified

1164 assert mul == data_mul
1165
1166 def test_arithmetic_div(self):
1167 if not self._is_fp():
1168 return
1169
1170 data_a, data_b = self._data(), self._data(reverse=True)
1171 vdata_a, vdata_b = self.load(data_a), self.load(data_b)
1172
1173 # load to truncate f64 to precision of f32
1174 data_div = self.load([a / b for a, b in zip(data_a, data_b)])
1175 div = self.div(vdata_a, vdata_b)
1176 assert div == data_div
1177
1178 def test_arithmetic_intdiv(self):
1179 """

Callers

nothing calls this directly

Calls 2

_is_fpMethod · 0.80
_dataMethod · 0.45

Tested by

no test coverage detected