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.
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
Metadata
Release files for rust-neighborlist 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rust_neighborlist-0.1.3.tar.gz | 73.8 kB | Without provenance | Details for rust_neighborlist-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rust_neighborlist-0.1.3-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details for rust_neighborlist-0.1.3-cp38-abi3-macosx_11_0_arm64.whl |
Total release size: 273.9 kB
Release files / rust_neighborlist-0.1.3.tar.gz
| Download URL | rust_neighborlist-0.1.3.tar.gz |
|---|---|
| Size | 73.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77ea58a614d07d81270fbe7b9e93a2278e328755d2bba0feae39243664d246a2
|
|
BLAKE2b-256 checksum How to use checksums |
21e29ec309cabb49d46cd8b7e6563f868a5479a9140ed51df377dbfde169dfa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.2
|
Release files / rust_neighborlist-0.1.3-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | rust_neighborlist-0.1.3-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 200.0 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7417994ff29e090b712abd50bbce44447092f8f16d6950e2bb59ed8eb13dbfa9
|
|
BLAKE2b-256 checksum How to use checksums |
7c76e5d9bc05a48260d1d993b4c8095380336ea1b0a298eca50f0a39f9da3c0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.2
|
Security for rust-neighborlist 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.