CellLists.jl

Documentation for CellLists.jl

Serial

CellLists.CellListType

CellList type. The indices dictionary maps the CartesianIndex of each cell to the indices of points in that cell.

source
CellLists.CellListMethod

Construct CellList from points p and radius r>0.

Examples

n, d, r = 100, 2, 0.01
p = rand(n, d)
c = CellLists(p, r)
source
CellLists.near_neighborsMethod

Return a vector of all pairs that are in neighboring cells in the cell list.

Examples

julia> near_neighbors(c, p, r)
[(1, 4), (3, 11), ...]
source

Multithreading

Base.mergeMethod

Merge two CellList{d}s with same dimension d.

Examples

n, d, r = 100, 2, 0.01
p = (rand(n, d), rand(n, d))
merge(CellList(p[1], r), CellList(p[2], r))
source
CellLists.CellListMethod

Multithreaded CellList constructor.

Examples

n, d, r = 100, 2, 0.01
p = rand(n, d)
c = CellList(p, r, Val(:threads))
source