parallel_norm2

Function parallel_norm2 

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

Parallel and SIMD accelerated 2-norm computation

Computes the Euclidean norm ||x||_2 = sqrt(x^T * x) using parallel processing and SIMD acceleration when beneficial.

§Arguments

  • x - Input vector
  • options - Optional configuration (uses default if None)

§Returns

The 2-norm of the vector