translate

Function translate 

Source
pub fn translate(
    kz: f64,
    mu: i64,
    p: i64,
    qz: f64,
    m: i64,
    q: i64,
    [kr, phi, z]: [Complex; 3],
    radial: Radial,
) -> Result<Complex>
Expand description

Cylindrical translation coefficient of one polarized mode pair.

The coefficient from (qz, m, q) to (kz, mu, p) at the displacement [k_rho rho, phi, z] is tl_vcw for equal polarizations and zero across polarizations; the polarizations must be 0 or 1. Singular waves give zero, as in treams, where |k_rho rho| and |z| are both below 1e-16; this self term includes coinciding expansion centres.

Upstream: treams.cw.translate. Differences: at the singular self term treams returns zero for any polarization labels, while this function rejects labels other than 0 or 1 there too. Coefficients that reach tl_vcw share its differences.