Optimal successive overrelaxation iterative methods for P-cyclic matrices