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

Method test_array_double

numpy/_core/tests/test_numeric.py:2400–2407  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2398 assert_array_strict_equal(ac, act)
2399
2400 def test_array_double(self):
2401 # Test native double input with array min/max.
2402 a = self._generate_data(self.nr, self.nc)
2403 m = np.zeros(a.shape)
2404 M = m + 0.5
2405 ac = self.fastclip(a, m, M)
2406 act = self.clip(a, m, M)
2407 assert_array_strict_equal(ac, act)
2408
2409 def test_simple_nonnative(self):
2410 # Test non native double input with scalar min/max.

Callers

nothing calls this directly

Calls 4

_generate_dataMethod · 0.95
fastclipMethod · 0.95
clipMethod · 0.95

Tested by

no test coverage detected