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

Method test_inplace_intermediate

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

Source from the content-addressed store, hash-verified

139 npt.assert_array_almost_equal(x, np.arange(self.ssize).reshape(int(self.ssize/10), 10) + 3)
140
141 def test_inplace_intermediate(self):
142 # When the return array is also a named intermediate assignment target
143 logger.info( 'Test in-place named intermediate' )
144 y = np.arange(self.ssize)
145 x = np.empty_like(y)
146 ne3.NumExpr( 'x = 3.5 * y; x = x - y' )()
147 npt.assert_array_almost_equal( x, (3.5*y) - y )
148
149 def test_named_intermediate_magic_output(self):
150 logger.info( 'Test in-place named intermediate with magic output' )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected