parallel_vector_scale

Function parallel_vector_scale 

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

Parallel vector scaling: y = a*x

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

§Arguments

  • a - Scalar multiplier
  • x - Input vector
  • y - Output vector (will be overwritten)
  • options - Optional configuration (uses default if None)

§Panics

Panics if vectors have different lengths