def tuple_to_power(self):
        y = zeros(len(self.elements))
        for idx, i in enumerate(self.elements):
            if i != 0:
                init_state = 1
                cur_state = 1
                power = 0
                while cur_state != i:
                    cur_state = ((cur_state << 1) & (2**self.m-1)) ^ (-((cur_state & 2**(self.m-1)) >> (self.m - 1)) &
                                (self.prim_poly & (2**self.m-1)))
                    power+=1
                y[idx] = power
            else:
                y[idx] = 0
        return GF(y, self.m)
Coerce *value* to ``bool``.
dataset/ETHPy150Open veeresht/CommPy/commpy/channelcoding/gfields.py/GF.tuple_to_power--crossover with--dataset/ETHPy150Open jek/flatland/flatland/schema/scalars.py/Boolean.adapt