Skip to main content

lc_pairs_open

Function lc_pairs_open 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn lc_pairs_open( xyz: *const f64, n: usize, cutoff: f64, cell_hint: f64, out: *mut lc_pair, cap: usize, out_count: *mut usize, ) -> c_int
Expand description

Cartesian half pair list of an open cluster.

Every axis is open. Each row has i < j, shift (0, 0, 0), and dist2 strictly below cutoff squared. Null out queries *out_count. A short buffer sets *out_count and returns nonzero without writing. The bins are the occupied Cartesian cells. Their partner stencil depends on the cutoff and cell_hint alone, so it is reused by frames that occupy other bins.

ยงSafety

xyz is readable for n * 3 doubles. out_count is writable. On a fill, out is writable for cap rows.