to_cw

Function to_cw 

Source
pub fn to_cw(mode: Mode, vector: [Complex; 3], pol: u8) -> Result<Complex>
Expand description

One plane-to-cylindrical coefficient with exact axial-label matching.

A kz that differs from the mode’s kz in any bit gives zero, as in treams. expansion matches the axial labels of a basis within 16 ulps instead (units in the last place, a relative difference of about 3.6e-15).

Upstream: treams.pw.to_cw.