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

Method test_float

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

Source from the content-addressed store, hash-verified

2962 -102., -54., -19.], dtype=dt)
2963
2964 def test_float(self):
2965 self._setup(float)
2966 z = np.correlate(self.x, self.y, 'full')
2967 assert_array_almost_equal(z, self.z1)
2968 z = np.correlate(self.x, self.y[:-1], 'full')
2969 assert_array_almost_equal(z, self.z1_4)
2970 z = np.correlate(self.y, self.x, 'full')
2971 assert_array_almost_equal(z, self.z2)
2972 z = np.correlate(self.x[::-1], self.y, 'full')
2973 assert_array_almost_equal(z, self.z1r)
2974 z = np.correlate(self.y, self.x[::-1], 'full')
2975 assert_array_almost_equal(z, self.z2r)
2976 z = np.correlate(self.xs, self.y, 'full')
2977 assert_array_almost_equal(z, self.zs)
2978
2979 def test_object(self):
2980 self._setup(Decimal)

Callers

nothing calls this directly

Calls 2

_setupMethod · 0.95

Tested by

no test coverage detected