MCPcopy Create free account
hub / github.com/pydata/numexpr / test_changing_array_size

Method test_changing_array_size

numexpr3/tests/test_numexpr.py:53–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 npt.assert_array_almost_equal( out, np.array([86., 124., 168.]))
52
53 def test_changing_array_size(self):
54 logger.info('Test input with keywords, changing input array size')
55 a = np.array([1., 2., 3.])
56 b = np.array([4., 5., 6.])
57 a2 = np.arange(self.ssize).astype(a.dtype)
58 b2 = np.arange(3.0, self.ssize+3.0).astype(b.dtype)
59 out = ne3.NumExpr( 'a*b' )(a=a2, b=b2)
60 npt.assert_array_almost_equal( out, a2*b2 )
61
62 def test_changing_array_shape(self):
63 logger.info('Test changing input array shape')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected