예제 #1
0
 def python_array_test(self):
     x = 3.141
     assert_array_equal(x, unpack(pack(x)))
예제 #2
0
 def numpy_multiarray_test(self):
     x = np.random.uniform(size=(10, 10, 10))
     assert_array_equal(x, unpack(pack(x)))
예제 #3
0
 def python_int_test(self):
     x = 3
     assert_array_equal(x, unpack(pack(x)))
예제 #4
0
 def numpy_scalar_test(self):
     x = np.random.uniform()
     assert_array_equal(x, unpack(pack(x)))