예제 #1
0
 def deactivated_test_trans_byte_bitrow_SSE(self):
     d = np.arange(256, dtype = np.uint8)
     t = ext.trans_byte_bitrow_scal(d)
     #print np.reshape(t, (32, 8))
     t1 = ext.trans_byte_bitrow_SSE(d)
     #print np.reshape(t1, (32, 8))
     self.assertTrue(np.all(t == t1))
예제 #2
0
 def deactivated_test_trans_byte_bitrow_AVX(self):
     d = np.arange(256, dtype=np.uint32)
     #d = ext.trans_bit_elem(d)
     t = ext.trans_byte_bitrow_AVX(d).view(np.uint8)
     t1 = ext.trans_byte_bitrow_SSE(d).view(np.uint8)
     t.shape = (32, 32)
     t1.shape = (32, 32)
     #print t[:20,:18]
     self.assertTrue(np.all(t == t1))