Template of minimal residual method.