[Matrix-SIG] Conway's Life with NumPy

Andrew P. Mullhaupt amullhau@ix.netcom.com
Wed, 26 Aug 1998 16:13:10 -0400


-----Original Message-----
From: Just van Rossum <just@letterror.com>
To: matrix-sig@python.org <matrix-sig@python.org>
Date: Wednesday, August 26, 1998 3:44 PM
Subject: [Matrix-SIG] Conway's Life with NumPy


>Today it occurred to me that it should be fairly trivial to implement
>Conway's Life with NumPy. It was.>
>I still feel like a total NumPy newbie, so if anyone has suggestions
>on how to do things differently, I'd be very interested.


You might find that the expressive power of Numerical Python makes it easy
to implement Gosper's recursive version which is orders of magnitude more
efficient in time and space for sparse cases, which is where you end up with
many interesting life patterns.

Later,
Andrew Mullhaupt