aggregate

Function aggregate 

Source
fn aggregate<const N: usize>(
    waves: &[[[[[Jet<N>; 4]; 2]; 2]; 2]],
    modes: &[(usize, u8)],
    amplitudes: impl Fn(usize) -> [Jet<N>; 3],
    direction: usize,
) -> Vec<[[Jet<N>; 4]; 3]>
Expand description

The incident, transmitted and reflected tangential fields of one illumination column, summed over the modes of each diffraction group.

direction is the propagation direction of the illumination; it also indexes the port that receives the transmitted wave.