Function compute_nearest_neighbors

Source
pub fn compute_nearest_neighbors(
    coords: &Tensor,
    mask: &Tensor,
    k: usize,
    eps: f32,
) -> Result<(Tensor, Tensor)>
Expand description

Retrieve the nearest Neighbor of a set of coordinates. Usually used for CA carbon distance.