square_roots_parallel_sync

Function square_roots_parallel_sync 

Source
pub fn square_roots_parallel_sync(numbers: Vec<f64>) -> Result<Vec<f64>>
Expand description

Computes the square roots of a list of numbers synchronously using parallel processing for heavy workloads.

§Arguments

  • numbers: A vector of numbers (all must be non-negative).

§Returns

  • Ok(Vec<f64>) if all computations are successful.
  • Err(anyhow::Error) if any input number is negative.