For diffraction gratings with layered refractive index profiles, the Fourier modal method is widely used. However, it is quite expensive to calculate the eigenmodes for each layer, especially when the ...