Skip to main content

dist2_ortho_diffs

Function dist2_ortho_diffs 

pub fn dist2_ortho_diffs(
    dx: &[f64],
    dy: &[f64],
    dz: &[f64],
    bx: f64,
    by: f64,
    bz: f64,
    out: &mut [f64],
) -> Result<(), Error>
Expand description

Orthorhombic wrap of precomputed differences, one reciprocal per axis.

dx, dy, dz, and out have length n. This is the Highway kernel: dr -= box * round(dr * (1 / box)) after taking abs.