Skip to content

Commit 6a0e67d

Browse files
refactor: rename captree to capt
1 parent a7df769 commit 6a0e67d

8 files changed

Lines changed: 21 additions & 21 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[workspace]
2-
members = ["captree", "bench", "morton_filter"]
2+
members = ["capt", "bench", "morton_filter"]
33
resolver = "2"

bench/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ publish = false
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
captree = { version = "0.1.0", path = "../captree", features = ["simd"] }
10-
morton_filter = { version = "0.1.0", path = "../morton_filter" }
9+
capt = { path = "../capt", features = ["simd"] }
10+
morton_filter = { path = "../morton_filter" }
1111
kiddo = { version = "5.2.2", features = ["simd"], default-features = false }
1212
rand = { version = "0.9.1", default-features = false }
1313
rand_chacha = { version = "0.9.0", default-features = false }

bench/src/bin/correctness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::simd::Simd;
44

55
use bench::{dist, kdt::PkdTree, parse_pointcloud_csv, parse_trace_csv, trace_r_range};
6-
use captree::Capt;
6+
use capt::Capt;
77
use kiddo::SquaredEuclidean;
88
use rand::{seq::SliceRandom, Rng, SeedableRng};
99

bench/src/bin/perf_plots.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use bench::{
99
forest::PkdForest, fuzz_pointcloud, kdt::PkdTree, parse_pointcloud_csv, parse_trace_csv,
1010
simd_trace_new, stopwatch, SimdTrace, Trace,
1111
};
12-
use captree::Capt;
12+
use capt::Capt;
1313
#[allow(unused_imports)]
1414
use kiddo::SquaredEuclidean;
1515
use morton_filter::morton_filter;

bench/src/kdt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::{
33
simd::{num::SimdInt, Simd, SupportedLaneCount},
44
};
55

6-
use captree::{Aabb, Axis, AxisSimd};
6+
use capt::{Aabb, Axis, AxisSimd};
77

88
use std::simd::{
99
cmp::{SimdPartialEq, SimdPartialOrd},

bench/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{
88
time::{Duration, Instant},
99
};
1010

11-
use captree::Axis;
11+
use capt::Axis;
1212
use rand::{Rng, SeedableRng};
1313
use rand_chacha::ChaCha20Rng;
1414

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
2-
name = "captree"
2+
name = "capt"
33
version = "0.1.0"
44
edition = "2021"
55
description = "SIMD-accelerated nearest-neighbors for point cloud collision checking"
6-
repository = "https://github.com/KavrakiLab/captree-rs"
6+
repository = "https://github.com/KavrakiLab/capt"
77
license = "PolyForm-Noncommercial-1.0.0"
88
readme = "../README.md"
99
keywords = [
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
//! maximum radius used for querying.
3232
//!
3333
//! ```rust
34-
//! use captree::Capt;
34+
//! use capt::Capt;
3535
//!
3636
//! // list of points in cloud
3737
//! let points = [[0.0, 1.1], [0.2, 3.1]];
@@ -46,7 +46,7 @@
4646
//! the radius range.
4747
//!
4848
//! ```rust
49-
//! # use captree::Capt;
49+
//! # use capt::Capt;
5050
//! # let points = [[0.0, 1.1], [0.2, 3.1]];
5151
//! # let capt = Capt::<2>::new(&points, (0.05, 2.0));
5252
//! let center = [0.0, 0.0]; // center of sphere
@@ -143,15 +143,15 @@ use elain::{Align, Alignment};
143143
/// # }
144144
/// }
145145
///
146-
/// impl captree::Axis for HyperInt {
146+
/// impl capt::Axis for HyperInt {
147147
/// const ZERO: Self = Self::Real(0);
148148
/// const INFINITY: Self = Self::PlusInf;
149149
/// const NEG_INFINITY: Self = Self::MinusInf;
150-
///
150+
///
151151
/// fn is_finite(self) -> bool {
152152
/// matches!(self, Self::Real(_))
153153
/// }
154-
///
154+
///
155155
/// fn in_between(self, rhs: Self) -> Self {
156156
/// match (self, rhs) {
157157
/// (Self::PlusInf, Self::MinusInf) | (Self::MinusInf, Self::PlusInf) => Self::Real(0),
@@ -363,7 +363,7 @@ where
363363
/// let points = [[0.0, 0.1], [0.4, -0.2], [-0.2, -0.1]];
364364
///
365365
/// // query radii must be between 0.0 and 0.2
366-
/// let t = captree::Capt::<2>::new(&points, (0.0, 0.2));
366+
/// let t = capt::Capt::<2>::new(&points, (0.0, 0.2));
367367
///
368368
/// assert!(!t.collides(&[0.0, 0.3], 0.1));
369369
/// assert!(t.collides(&[0.0, 0.2], 0.15));
@@ -437,7 +437,7 @@ where
437437
/// ```
438438
/// let points = [[0.0]];
439439
///
440-
/// let capt = captree::Capt::<1>::new(&points, (0.0, f32::INFINITY));
440+
/// let capt = capt::Capt::<1>::new(&points, (0.0, f32::INFINITY));
441441
///
442442
/// assert!(capt.collides(&[1.0], 1.5));
443443
/// assert!(!capt.collides(&[1.0], 0.5));
@@ -449,7 +449,7 @@ where
449449
/// let points = [[0.0]; 256];
450450
///
451451
/// // note that we are using `u8` as our index type
452-
/// let capt = captree::Capt::<1, 8, f32, u8>::new(&points, (0.0, f32::INFINITY));
452+
/// let capt = capt::Capt::<1, 8, f32, u8>::new(&points, (0.0, f32::INFINITY));
453453
/// ```
454454
pub fn new(points: &[[A; K]], r_range: (A, A)) -> Self {
455455
Self::try_new(points, r_range)
@@ -475,7 +475,7 @@ where
475475
/// ```
476476
/// let points = [[0.0]];
477477
///
478-
/// let capt = captree::Capt::<1>::try_new(&points, (0.0, f32::INFINITY)).unwrap();
478+
/// let capt = capt::Capt::<1>::try_new(&points, (0.0, f32::INFINITY)).unwrap();
479479
/// ```
480480
///
481481
/// In failure, we get an `Err`.
@@ -484,7 +484,7 @@ where
484484
/// let points = [[0.0]; 256];
485485
///
486486
/// // note that we are using `u8` as our index type
487-
/// let opt = captree::Capt::<1, 8, f32, u8>::try_new(&points, (0.0, f32::INFINITY));
487+
/// let opt = capt::Capt::<1, 8, f32, u8>::try_new(&points, (0.0, f32::INFINITY));
488488
///
489489
/// assert!(opt.is_err());
490490
/// ```
@@ -697,7 +697,7 @@ where
697697
///
698698
/// ```
699699
/// let points = [[0.0; 3], [1.0; 3], [0.1, 0.5, 1.0]];
700-
/// let capt = captree::Capt::<3>::new(&points, (0.0, 1.0));
700+
/// let capt = capt::Capt::<3>::new(&points, (0.0, 1.0));
701701
///
702702
/// assert!(capt.collides(&[1.1; 3], 0.2));
703703
/// assert!(!capt.collides(&[2.0; 3], 1.0));
@@ -793,7 +793,7 @@ where
793793
/// ];
794794
/// let radii = Simd::splat(0.05);
795795
///
796-
/// let tree = captree::Capt::<2, 4, f32, u32>::new(&points, (0.0, 0.1));
796+
/// let tree = capt::Capt::<2, 4, f32, u32>::new(&points, (0.0, 0.1));
797797
///
798798
/// println!("{tree:?}");
799799
///

0 commit comments

Comments
 (0)