Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Traits§

ReduceOperator
Reduce with a custom operator struct for more complex reductions.

Functions§

available_threads
Returns the number of logical CPU cores available to this process.
chunk_dot_product
Compute the dot product of a and b using chunk-based accumulation.
chunk_process
Process data in fixed-size chunks, applying f to each chunk and collecting the results into a flat VecR`.
chunk_zip_map
Apply f element-wise on a and b in chunks of chunk_size, returning a Vecf64`.
exclusive_prefix_sum
Computes the exclusive prefix sum of data.
gather
Concatenates a list of parts back into a single Vec.
insertion_sort
Simple insertion sort for small arrays.
median_of_three
Returns the index of the median-of-three pivot (first, mid, last).
merge_sorted
Merge two sorted slices into a single sorted vector.
parallel_dot_product
Computes the dot product of a and b.
parallel_filter
Filter items in parallel, keeping only those for which predicate returns true.
parallel_for_each
Apply f to every item in items in parallel (no return value).
parallel_histogram
Accumulate a histogram of data into n_bins equal-width bins in parallel.
parallel_map
Apply f to every item in items in parallel and return the results.
parallel_map_f64
Applies f to every element of data and returns the results.
parallel_matrix_vec_multiply
Multiplies each row of matrix_rows by vector and returns the result.
parallel_max
Find the maximum value in data in parallel.
parallel_merge_sort
Parallel merge sort for slices of f64.
parallel_min
Find the minimum value in data in parallel.
parallel_reduce
Reduce items to a single value using f with the given identity element.
parallel_reduce_f64
Reduces data to a single value using f, starting from identity.
parallel_reduce_with_op
Reduce with a custom operator.
parallel_sort
In-place quicksort (serial reference for a parallel sort API).
parallel_sum
Computes the sum of all elements in data.
prefix_sum
Computes the inclusive prefix sum of data.
quicksort_recursive
Recursive quicksort implementation for f64 slices.
scatter_gather
Splits data into n_parts roughly equal slices.
sorted_copy
Sort a VecTusingparallel_sort` (f64 specialisation) and return sorted copy.
suggested_thread_count
Returns a suggested number of threads for CPU-bound work.