Closed Farbfetzen closed 4 years ago
Moving this out of 1.0 because I want to get 1.0 done asap.
Optionally provide argument init_size
if the user already knows or guesses the size of the final sandpile.
Tested it out and it seems that this is unnecessary and may even make the function slower. Utilizing symmetry may be my best hope.
To stop having to increase the size of the matrix during the loop just make one big matrix at the beginning and then cut off the empty edges afterwards. This would make the code more elegant and maybe improve speed and memory footprint.