Skip to main content

lc_pairs_within_rows

Function lc_pairs_within_rows 

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

lc_pairs_within with one array of lc_pair rows.

Null out is a query: *out_count receives the row count and the return is 0. Otherwise out holds cap rows. A short buffer sets *out_count to the needed count and returns nonzero without writing. A query or a short buffer keeps its search on the calling thread for the next call with the same inputs, as in lc_pairs_within.

ยงSafety

xyz is readable for n * 3 doubles. simbox points at one lc_cell. mask, if non-null, is readable for n ints. out_count is writable. On a fill, out is writable for cap rows.