parallel_dot

Function parallel_dot 

Source
pub fn parallel_dot<T>(
    x: &[T],
    y: &[T],
    options: Option<ParallelVectorOptions>,
) -> T
Expand description

Parallel and SIMD accelerated dot product

Computes the dot product x^T * y using parallel processing and SIMD acceleration when beneficial.

§Arguments

  • x - First vector
  • y - Second vector
  • options - Optional configuration (uses default if None)

§Returns

The dot product sum(x[i] * y[i])

§Panics

Panics if vectors have different lengths