parallel_vector_sub

Function parallel_vector_sub 

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

Parallel vector subtraction: z = x - y

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

§Arguments

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

§Panics

Panics if vectors have different lengths