Skip to main content

No project description provided

Project description

Neighborlist implementation in rust with python interface

Only faster than matscipy in few cases

This rust implementation is only faster than matscipy at high density. i.e. when there is a lot of points within the cutoff distance.

image

Install

pip install rust-neighborlist

Test

import numpy as np
pos = np.random.uniform(-4.0, 3.0, (100, 3))
cutoff = 2.0


# Using matscipy.neighbours
from matscipy.neighbours import neighbour_list

i, j = neighbour_list('ij', positions=pos, cutoff=cutoff)


# Using rust neighborlist
from neighborlist import neighbor_list_ij

i, j = neighbor_list_ij(pos, cutoff, self_interaction=False)

Install from source

git clone https://github.com/mariogeiger/rust-neighborlist.git
cd rust-neighborlist
pip install .

Publish to pypi

maturin publish

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

rust_neighborlist-0.1.3.tar.gz (73.8 kB view hashes)

Uploaded Source

Built Distribution

rust_neighborlist-0.1.3-cp38-abi3-macosx_11_0_arm64.whl (200.0 kB view hashes)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page