pub fn permutation(
vectors: Vec<[Complex; 3]>,
polarizations: Vec<u8>,
turns: usize,
helicity: bool,
) -> Result<(DMatrix<Complex>, PermutationResidual)>Expand description
Polarization coefficients of plane modes under turns cyclic permutations of the
axes, shape (2, modes).
Each column contains both output polarizations for one input mode; matching direction labels and construction of a dense basis operator are separate.
Upstream: treams.pw.permute_xyz on arrays of plane modes.