Hi,

has anybody found something better than a "do. while." to calculate the
spiral neighborhood count?

Is there some underlying mathematical structure that I am not aware of?



Thanks,




WRAP is from http://www.jsoftware.com/help/phrases/grids.htm

spw is the result of the neighbor calculation


(|.2 WRAP 1){spw

147 142 133 122 59

304 5 4 2 57

330 10 1 1 54

351 11 23 25 26

362 747 806 880 931
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to