Skip to main content

knearest_csr

Function knearest_csr 

Source
pub fn knearest_csr(
    xyz: &[[f64; 3]],
    simbox: &Cell,
    k: usize,
    mask: Option<&[bool]>,
    cell_hint: Option<f64>,
    mutual: bool,
) -> Result<(Vec<i32>, Vec<i32>), Error>
Expand description

The k-nearest graph as CSR (offsets, columns); see the C entry lc_knearest_csr for the row order.