mardi 21 mai 2019

Best way to implement 2D latice for agent-based model

I am making an agent-based model and need to implement 2D square lattice (could be enhanced to hexagonal lattice). My first thought was to use vector of vectors to represent it as 2D, but wonder to know if there are some better options. I found boost geometry and boost ublas library, but not sure if they would help me with this task? Are there complete solutions for this, just to not reinvent the wheel?

Aucun commentaire:

Enregistrer un commentaire