Skip to main content

pairs_within_columns

Function pairs_within_columns 

Source
pub fn pairs_within_columns(
    xyz: &[[f64; 3]],
    simbox: &Cell,
    cutoff: f64,
    mask: Option<&[bool]>,
    cell_hint: Option<f64>,
    half: bool,
    out: &mut PairColumns,
) -> Result<(), Error>
Expand description

The same rows as pairs_within, as four columns.

i, j, and shift are the vesin / tonari ijS layout and dist2 is the squared distance. Row t of each column is one atom-image. The vectors are cleared, then filled once; their capacity is kept for the next call. An index above i32::MAX is Error::Overflow.