You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a8a02a4
Browse filesBrowse the repository at this point in the historyBrowse files
Fast N-dimensional Delaunay triangulation in Rust with Python bindings (PyO3).
9
-
Drop-in replacement for [adaptive](https://github.com/python-adaptive/adaptive)'s `Triangulation` class — **30-300× faster** standalone, **~3.3×** end-to-end in `LearnerND` (where adaptive's own Python code dominates). Used automatically by adaptive ≥ 1.5 when installed.
9
+
Drop-in replacement for [adaptive](https://github.com/python-adaptive/adaptive)'s `Triangulation` class — **30-300× faster** standalone, **~3.3×** end-to-end in `LearnerND` (where adaptive's own Python code dominates).
10
+
Used automatically by adaptive ≥ 1.5 when installed.
10
11
11
12
## Performance
12
13
@@ -33,11 +34,8 @@ The end-to-end ratio is smaller than the standalone one because adaptive's own P
33
34
34
35
### Batched LearnerND APIs (not yet wired into adaptive)
35
36
36
-
`simplices_containing` and `default_loss` move two of the remaining `LearnerND`
37
-
Python hot loops into Rust. Wired in the way a future adaptive release would use
38
-
them ([`examples/learnernd_batched_apis.py`](examples/learnernd_batched_apis.py)),
39
-
they add **1.17×** (2D, 3000 pts) to **1.40×** (3D, 1500 pts) on top of the
40
-
table above, while sampling identical points.
37
+
`simplices_containing` and `default_loss` move two of the remaining `LearnerND` Python hot loops into Rust.
38
+
Wired in the way a future adaptive release would use them ([`examples/learnernd_batched_apis.py`](examples/learnernd_batched_apis.py)), they add **1.17×** (2D, 3000 pts) to **1.40×** (3D, 1500 pts) on top of the table above, while sampling identical points.
41
39
42
40
## Installation
43
41
@@ -73,9 +71,7 @@ Since adaptive 1.5.0 this package is detected and used automatically — no code
73
71
pip install "adaptive[rust]"
74
72
```
75
73
76
-
Per learner, the backend can be selected explicitly with
77
-
`LearnerND(..., triangulation_backend="auto" | "python" | "rust")`, or globally
78
-
with the `ADAPTIVE_TRIANGULATION_BACKEND` environment variable.
74
+
Per learner, the backend can be selected explicitly with `LearnerND(..., triangulation_backend="auto" | "python" | "rust")`, or globally with the `ADAPTIVE_TRIANGULATION_BACKEND` environment variable.
79
75
80
76
For adaptive < 1.5.0, monkey-patch the module instead:
0 commit comments