def xor_masking_C(network,state,steps): states = [boolfuncs_c.xor_masking_c(network.adjacency,network.mask,state)] for counter in xrange(steps-1): state = network.state[-1] newstate = boolfuncs_c.xor_masking_c(network.adjacency,network.mask,state) states = num.append(states,[newstate],axis=0) return states
def xor_masking_C(network, state, steps): states = [ boolfuncs_c.xor_masking_c(network.adjacency, network.mask, state) ] for counter in xrange(steps - 1): state = network.state[-1] newstate = boolfuncs_c.xor_masking_c(network.adjacency, network.mask, state) states = num.append(states, [newstate], axis=0) return states