parallel_axpy

Function parallel_axpy 

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

Parallel AXPY operation: y = a*x + y

Computes the AXPY operation (scalar times vector plus vector) using parallel processing when beneficial.

§Arguments

  • a - Scalar multiplier
  • x - Input vector to be scaled
  • y - Input/output vector (will be modified in place)
  • options - Optional configuration (uses default if None)

§Panics

Panics if vectors have different lengths