No project description provided
Project description
Neighborlist implementation in rust with python interface
Install
pip install rust-neighborlist
Test
import numpy as np
pos = np.random.uniform(-4.0, 3.0, (100, 3))
cutoff = 2.0
# Using ase
import ase
import ase.neighborlist
a = ase.Atoms(positions=pos)
i2, j2, d2, D2 = ase.neighborlist.neighbor_list("ijdD", a, cutoff, self_interaction=False)
# Using rust neighborlist
from neighborlist import neighbor_list
i1, j1, d1, D1 = neighbor_list(pos, cutoff, self_interaction=False)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for rust_neighborlist-0.1.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 353744b8f15e7764d28733d03ec9a8567bb6823d95c211f068bfff912486d82d |
|
MD5 | ed3f56fa5da4f0872d0de30a48ffcc61 |
|
BLAKE2b-256 | 8e1731ca306147593eb06a53dd05cf36e299b59e8e15683e4f06840350cc98b5 |