def power_to_tuple(self):
        y = zeros(len(self.elements))
        for idx, i in enumerate(self.elements):
            if 2**i < 2**self.m:
                y[idx] = 2**i
            else:
                y[idx] = polydivide(2**i, self.prim_poly)
        return GF(y, self.m)
Convert Galois field elements from power form to tuple form representation.
dataset/ETHPy150Open veeresht/CommPy/commpy/channelcoding/gfields.py/GF.power_to_tuple