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

Method test_array_double

numpy/core/tests/test_numeric.py:1911–1918  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1909 assert_array_strict_equal(ac, act)
1910
1911 def test_array_double(self):
1912 # Test native double input with array min/max.
1913 a = self._generate_data(self.nr, self.nc)
1914 m = np.zeros(a.shape)
1915 M = m + 0.5
1916 ac = self.fastclip(a, m, M)
1917 act = self.clip(a, m, M)
1918 assert_array_strict_equal(ac, act)
1919
1920 def test_simple_nonnative(self):
1921 # 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