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))
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))