Controls the iterations of the iterative solvers.
This class has been adapted from the iteration class of GMM++ and ITL libraries.