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

Method test_scalars

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

Source from the content-addressed store, hash-verified

43 self.ssize = ssize
44
45 def test_scalars(self):
46 logger.info( 'Test scalars' )
47 a = np.array([1., 2, 3])
48 b = np.array([4., 5, 6])
49 c = np.array([7., 8, 9])
50 out = ne3.NumExpr( '2.0 * a + 3.0 * b * c' )()
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')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected