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

Method test_complex_strides

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

Source from the content-addressed store, hash-verified

245
246
247 def test_complex_strides(self):
248 logger.info( 'Test complex strides' )
249 a = np.linspace( -1, 1, self.ssize, dtype='float32' )
250 b = np.linspace( -0.01, 0.01, self.ssize, dtype='float32' )
251 z1 = (a + 1j * b)[::2]
252 z2 = (a - 1j * b)[::2]
253 ne3.evaluate('out = z1 + z2' )
254 npt.assert_array_almost_equal( locals()['out'], z1+z2 )
255
256
257 def test_list_literal(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected