pub fn parallel_linear_combination<T>(
a: T,
x: &[T],
b: T,
y: &[T],
z: &mut [T],
options: Option<ParallelVectorOptions>,
)
Expand description
Enhanced parallel linear combination: z = ax + by
Computes element-wise linear combination using parallel processing when beneficial.
§Arguments
a
- Scalar multiplier for xx
- First vectorb
- Scalar multiplier for yy
- Second vectorz
- Output vector (will be overwritten)options
- Optional configuration (uses default if None)
§Panics
Panics if vectors have different lengths