Module permute

Module permute 

Source
Expand description

Polarization coefficients of plane waves under cyclic permutations of the Cartesian axes.

Upstream: treams.pw.permute_xyz and its kernels _cxyz_to_yzx_* (one turn) and _cxyz_to_zxy_* (two turns, inverse=True).

Structsยง

PermutationResidual
What permutation saves for its pullback: the wavevectors, the polarizations, the number of turns and the polarization convention.

Functionsยง

permutation
Polarization coefficients of plane modes under turns cyclic permutations of the axes, shape (2, modes).
permutation_pair ๐Ÿ”’
The parity coefficients [same, cross] of the plane wave vector under turns cyclic turns of the axes, as jets in the wavevector components.
permutation_polarization ๐Ÿ”’
permute_xyz
One cyclic-coordinate polarization coefficient without allocating a matrix: the coefficient of polarization destination in the permuted plane wave for an input of polarization source.