Fermat
|
An implementation of the small linear feedback shift registers (LFSR) for use in a Markov chain quasi-Monte Carlo context, as described in S. Chen, M. Matsumoto, T. Nishimura, and A. Owen: "New inputs and methods for Markov chain quasi-Monte Carlo", and S. Chen: "Consistence and convergence rate of Markov chain quasi-Monte Carlo with examples". Apart from the matrix that describes the recurrence, this class is stateless, and can therefore be easily shared in a multi-threaded context.
https://en.wikipedia.org/wiki/Linear-feedback_shift_register
#include <lfsr.h>
Public Types | |
enum | Offset_type { ORIGINAL, GOOD_PROJECTIONS } |
Public Members | |
uint32 | m_m |
uint32 | m_f [32] |