def permute(self, ba):
        c = ba.copy()
        for i in xrange(len(self.mapping)):
            ba[i] = c[self.mapping[i]]
        return ba
Permute the bitarray ba inplace.
dataset/ETHPy150Open pixelogik/NearPy/nearpy/hashes/permutation/permute.py/Permute.permute