Abelian sandpile model/Identity: Difference between revisions
Content added Content deleted
Line 68:
function Sandpile(s::String)
arr = [parse(UInt8, x.match) for x in eachmatch(r"\d+", s)]
siz =
return Sandpile(reshape(UInt8.(arr), siz, siz)')
end
|