Farbfetzen / fractalplotr

Make beautiful fractals with R
Other
0 stars 0 forks source link

Determine matrix size for sandpile before iteration #15

Closed Farbfetzen closed 4 years ago

Farbfetzen commented 5 years ago

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.

Farbfetzen commented 5 years ago

Moving this out of 1.0 because I want to get 1.0 done asap.

Farbfetzen commented 4 years ago

Optionally provide argument init_size if the user already knows or guesses the size of the final sandpile.

Farbfetzen commented 4 years ago

Tested it out and it seems that this is unnecessary and may even make the function slower. Utilizing symmetry may be my best hope.