cellular-automata

numpy vectorization of cellular automata

numpy vectorization of cellular automata Question: Trying to optimize my current implementation of a program that generates cellular automata using Wolfram Numbering. I am having trouble applying the rule to the board after calculating the neighbors for each cell. The current example uses 2 states and is the same as Conway’s Game of Life, but …

Total answers: 1

Vectorize Conway's Game of Life in pure numpy?

Vectorize Conway's Game of Life in pure numpy? Question: I’m wondering if there is a way to implement Conway’s game of life without resorting to for loops, if statements and other control structures typical of programming. It should be pretty easy to vectorize for loops, but how would you convert the checks on the neighborhood …

Total answers: 2