parallel_vector_add

Function parallel_vector_add 

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

Parallel vector addition: z = x + y

Computes element-wise vector addition using parallel processing when beneficial.

§Arguments

  • x - First vector
  • y - Second vector
  • z - Output vector (will be overwritten)
  • options - Optional configuration (uses default if None)

§Panics

Panics if vectors have different lengths