pub struct SIMDSpatialOps;Expand description
SIMD-optimized spatial calculations
Implementations§
Source§impl SIMDSpatialOps
impl SIMDSpatialOps
Sourcepub fn distances_simd(from: Position3D, positions: &[Position3D]) -> Vec<f32>
pub fn distances_simd(from: Position3D, positions: &[Position3D]) -> Vec<f32>
Calculate distances from one position to multiple positions using SIMD
Sourcepub fn distances_fallback(
from: Position3D,
positions: &[Position3D],
) -> Vec<f32>
pub fn distances_fallback( from: Position3D, positions: &[Position3D], ) -> Vec<f32>
Fallback non-SIMD version for compatibility
Sourcepub fn distances(from: Position3D, positions: &[Position3D]) -> Vec<f32>
pub fn distances(from: Position3D, positions: &[Position3D]) -> Vec<f32>
Automatic distance calculation with SIMD when available
Sourcepub fn normalize_batch_simd(positions: &mut [Position3D])
pub fn normalize_batch_simd(positions: &mut [Position3D])
SIMD-optimized vector normalization for multiple positions
Sourcepub fn normalize_batch_fallback(positions: &mut [Position3D])
pub fn normalize_batch_fallback(positions: &mut [Position3D])
Fallback batch normalization
Sourcepub fn normalize_batch(positions: &mut [Position3D])
pub fn normalize_batch(positions: &mut [Position3D])
Automatic batch normalization
Sourcepub fn dot_products_simd(
a_positions: &[Position3D],
b_positions: &[Position3D],
) -> Vec<f32>
pub fn dot_products_simd( a_positions: &[Position3D], b_positions: &[Position3D], ) -> Vec<f32>
SIMD-optimized dot product calculations
Sourcepub fn dot_products_fallback(
a_positions: &[Position3D],
b_positions: &[Position3D],
) -> Vec<f32>
pub fn dot_products_fallback( a_positions: &[Position3D], b_positions: &[Position3D], ) -> Vec<f32>
Fallback dot product calculation
Sourcepub fn dot_products(
a_positions: &[Position3D],
b_positions: &[Position3D],
) -> Vec<f32>
pub fn dot_products( a_positions: &[Position3D], b_positions: &[Position3D], ) -> Vec<f32>
Automatic dot product calculation
Auto Trait Implementations§
impl Freeze for SIMDSpatialOps
impl RefUnwindSafe for SIMDSpatialOps
impl Send for SIMDSpatialOps
impl Sync for SIMDSpatialOps
impl Unpin for SIMDSpatialOps
impl UnsafeUnpin for SIMDSpatialOps
impl UnwindSafe for SIMDSpatialOps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more