How to build a Lattice class in c++

I am trying to build a binomial model which requires a Lattice class. Please help if you have any good sample code building Lattices data structure.
Thanks
Last edited on
i think i'd love to see your code before i can to help you.
post your try, i don't expect it to be correct, that's why you're here anyway, but your code is important for me.
My original thought was to store the lattice information into matrix. But there will be a lot of empty elements. I think it's not an efficient way to do with matrix. Anyway, I will post my code once I finish.
on a second thought, i don't know what is a Lattice.
can you demonstrate it please.
Topic archived. No new replies allowed.