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