How to build a Lattice class in c++

Jul 10, 2013 at 9:39pm
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 Jul 10, 2013 at 9:39pm
Jul 10, 2013 at 10:40pm
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.
Jul 10, 2013 at 11:56pm
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.
Jul 11, 2013 at 12:52am
on a second thought, i don't know what is a Lattice.
can you demonstrate it please.
Topic archived. No new replies allowed.