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

Method test_simple_double

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

Source from the content-addressed store, hash-verified

2379 assert_equal(actual, expected)
2380
2381 def test_simple_double(self):
2382 # Test native double input with scalar min/max.
2383 a = self._generate_data(self.nr, self.nc)
2384 m = 0.1
2385 M = 0.6
2386 ac = self.fastclip(a, m, M)
2387 act = self.clip(a, m, M)
2388 assert_array_strict_equal(ac, act)
2389
2390 def test_simple_int(self):
2391 # 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