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

Method test_simple_strides

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

Source from the content-addressed store, hash-verified

163 npt.assert_array_almost_equal( x, y*np.pi*2 )
164
165 def test_simple_strides(self):
166 # It may make more sense to do strided operations on all functions
167 # in autotest_GENERATED
168 logger.info( 'Test simple strides' )
169 a = np.arange(self.ssize)[::3]
170 b = np.arange(self.ssize,0,-1)[::3]
171 out = ne3.NumExpr( 'a-b' )()
172 npt.assert_array_almost_equal( out, a-b )
173
174 def test_broadcasting_with_strides(self):
175 logger.info( 'Test broadcasting with strides' )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected