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

Method test_simple_double

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

Source from the content-addressed store, hash-verified

1890 assert_equal(actual, expected)
1891
1892 def test_simple_double(self):
1893 # Test native double input with scalar min/max.
1894 a = self._generate_data(self.nr, self.nc)
1895 m = 0.1
1896 M = 0.6
1897 ac = self.fastclip(a, m, M)
1898 act = self.clip(a, m, M)
1899 assert_array_strict_equal(ac, act)
1900
1901 def test_simple_int(self):
1902 # Test native int 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