NICTA / stateline

Distributed Markov Chain Monte Carlo
Other
28 stars 11 forks source link

Always leave 1 element in chainarray's cache #86

Closed AlistaiReid closed 8 years ago

AlistaiReid commented 8 years ago

I was very confused by chainarray's lastState(id) != lastState_[id].

There is much logic present to deal with an empty cache, which could be simplified by keeping the last state in memory. [Fully empty at the very end of the computation]