Module simd_utils

Module simd_utils 

Source
Expand description

SIMD utility functions for execution engine

This module provides fallback implementations for SIMD operations used in the execution engine for high-performance metrics calculations.

Functionsยง

abs_vec
Element-wise absolute value
add_vec
Add two vectors element-wise
cosine_similarity
Compute cosine similarity between two vectors
divide_vec
Divide two vectors element-wise
divide_vec_inplace
In-place division of target vector by divisor vector
dot_product
Compute dot product of two vectors
euclidean_distance
Compute Euclidean distance between two vectors
exp_vec
Element-wise exponential
l1_norm
Compute L1 norm (Manhattan norm) of a vector
l2_norm
Compute L2 norm (Euclidean norm) of a vector
log_vec
Element-wise natural logarithm
mean_vec
Compute mean of a vector of f32 values
min_max_vec
Find minimum and maximum values in a vector
multiply_vec
Multiply two vectors element-wise
multiply_vec_inplace
In-place multiplication of target vector by multiplier vector
normalize_vec
Normalize a vector to unit length
scale_vec
Scale a vector by a scalar value
sqrt_vec
Element-wise square root
sum_vec
Compute sum of a vector of f32 values
variance_vec
Compute variance of a vector of f32 values