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

Method complex_func

numexpr3/tests/test_numexpr.py:233–236  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

231 def test_complex128(self):
232 logger.info( 'Test complex128' )
233 def complex_func(a, b):
234 c = np.zeros(a.shape, dtype='complex128')
235 c.real = a; c.imag = b
236 return c
237
238 a = np.linspace( -1, 1, self.ssize, dtype='float64' )
239 b = np.linspace( -1, 1, self.ssize, dtype='float64' )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected