a matrix as a grid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 15153681
    New Member
    • Feb 2009
    • 6

    a matrix as a grid

    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
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    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.

    -BV

    Comment

    Working...