示例#1
0
    def testByteswap(self):
        A = arange(10)
        B = A.copy()
        NE.byteswap(B)
        B = B.byteswapped()

        assert alltrue(A == B), "NE.byteswap and Numeric.array.byteswapped gave different results"
示例#2
0
    def testByteswap(self):
        A = arange(10)
        B = A.copy()
        NE.byteswap(B)
        B = B.byteswapped()

        assert alltrue(
            A == B
        ), "NE.byteswap and Numeric.array.byteswapped gave different results"