minimal_residual_method : generator mode added