示例#1
0
 def testChangetypeC(self):
     """
     changetype(m,typecode) should have the same result as:
     m = fromstring(m.tostring(),typecode)
     """
     A = arange(26)
     B = A.copy()
     NE.changetype(A, Float)
     assert alltrue(A == fromstring(B.tostring(), Float))
示例#2
0
 def testChangetypeC(self):
     """
     changetype(m,typecode) should have the same result as:
     m = fromstring(m.tostring(),typecode)
     """       
     A = arange(26)
     B = A.copy()
     NE.changetype(A,Float)
     assert alltrue (A == fromstring(B.tostring(),Float))