pub fn layer_coeffs(
layers: &[Layer],
tensor: &[Matrix3<Complex<f64>>],
) -> Vec<LayerCoeffs<f64>>Expand description
Packs per-slab rows and dispersion tensors into kernel LayerCoeffs.
Reads the xx and zz tensor entries as the ordinary and extraordinary
axes of a uniaxial-z slab; thickness and roughness come from layers.