fresnel_values

Function fresnel_values 

Source
fn fresnel_values<const N: usize>(
    ks: [[Jet<N>; 2]; 2],
    kzs: [[Jet<N>; 2]; 2],
    zs: [Jet<N>; 2],
) -> [[[[Jet<N>; 2]; 2]; 2]; 2]
Expand description

The chiral Fresnel coefficients res[out][in][out pol][in pol], transcribed from upstream treams.coeffs.fresnel with its variable names.

out and in index the propagation direction (0 = up, 1 = down), so res[0][0] transmits upward from the negative medium. The inputs index the medium first, negative side (below) then positive side (above), and the polarization second.