pub struct SimdOps;Expand description
SIMD-optimized vector operations
Implementations§
Source§impl SimdOps
impl SimdOps
Sourcepub fn dot_product(a: ArrayView1<'_, Float>, b: ArrayView1<'_, Float>) -> Float
pub fn dot_product(a: ArrayView1<'_, Float>, b: ArrayView1<'_, Float>) -> Float
Compute dot product with SIMD optimization
Sourcepub fn l2_norm(vector: ArrayView1<'_, Float>) -> Float
pub fn l2_norm(vector: ArrayView1<'_, Float>) -> Float
Compute L2 norm with SIMD optimization
Sourcepub fn element_wise_multiply(
a: ArrayView1<'_, Float>,
b: ArrayView1<'_, Float>,
) -> Array1<Float>
pub fn element_wise_multiply( a: ArrayView1<'_, Float>, b: ArrayView1<'_, Float>, ) -> Array1<Float>
Compute element-wise multiplication with SIMD optimization
Sourcepub fn sum(vector: ArrayView1<'_, Float>) -> Float
pub fn sum(vector: ArrayView1<'_, Float>) -> Float
Compute sum of array elements with SIMD optimization
Sourcepub fn matrix_vector_multiply(
matrix: ArrayView2<'_, Float>,
vector: ArrayView1<'_, Float>,
) -> Array1<Float>
pub fn matrix_vector_multiply( matrix: ArrayView2<'_, Float>, vector: ArrayView1<'_, Float>, ) -> Array1<Float>
Compute matrix-vector multiplication with SIMD optimization
Sourcepub fn cosine_similarity(
a: ArrayView1<'_, Float>,
b: ArrayView1<'_, Float>,
) -> Float
pub fn cosine_similarity( a: ArrayView1<'_, Float>, b: ArrayView1<'_, Float>, ) -> Float
Compute cosine similarity with SIMD optimization
Sourcepub fn euclidean_distance(
a: ArrayView1<'_, Float>,
b: ArrayView1<'_, Float>,
) -> Float
pub fn euclidean_distance( a: ArrayView1<'_, Float>, b: ArrayView1<'_, Float>, ) -> Float
Compute Euclidean distance with SIMD optimization
Sourcepub fn mean(vector: ArrayView1<'_, Float>) -> Float
pub fn mean(vector: ArrayView1<'_, Float>) -> Float
Compute mean of array elements with SIMD optimization
Sourcepub fn variance(vector: ArrayView1<'_, Float>) -> Float
pub fn variance(vector: ArrayView1<'_, Float>) -> Float
Compute variance with SIMD optimization
Sourcepub fn std_dev(vector: ArrayView1<'_, Float>) -> Float
pub fn std_dev(vector: ArrayView1<'_, Float>) -> Float
Compute standard deviation with SIMD optimization
Sourcepub fn range(vector: ArrayView1<'_, Float>) -> Float
pub fn range(vector: ArrayView1<'_, Float>) -> Float
Compute range (max - min) with SIMD optimization
Sourcepub fn skewness(vector: ArrayView1<'_, Float>) -> Float
pub fn skewness(vector: ArrayView1<'_, Float>) -> Float
Compute skewness with SIMD optimization
Sourcepub fn kurtosis(vector: ArrayView1<'_, Float>) -> Float
pub fn kurtosis(vector: ArrayView1<'_, Float>) -> Float
Compute kurtosis with SIMD optimization
Auto Trait Implementations§
impl Freeze for SimdOps
impl RefUnwindSafe for SimdOps
impl Send for SimdOps
impl Sync for SimdOps
impl Unpin for SimdOps
impl UnsafeUnpin for SimdOps
impl UnwindSafe for SimdOps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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