By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,941 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,941 IT Pros & Developers. It's quick & easy.

a matrix as a grid

P: 6
Can a matrix be used as a grid in python... if not, can anyone let me know the procedure for getting a grid in python. Reason for asking is that i must create a sandpile simulation. thanx
Feb 18 '09 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
Yes. A 3D array in NumPy may be a good place to start. Another possibility would be a list of point objects where each point would represent a grain of sand.

Feb 18 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.