Expand description
Auto-generated module
🤖 Generated with SplitRS
Traits§
- Reduce
Operator - 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
aandbusing chunk-based accumulation. - chunk_
process - Process
datain fixed-size chunks, applyingfto each chunk and collecting the results into a flatVecR`. - chunk_
zip_ map - Apply
felement-wise onaandbin chunks ofchunk_size, returning aVecf64`. - 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
aandb. - parallel_
filter - Filter
itemsin parallel, keeping only those for whichpredicatereturnstrue. - parallel_
for_ each - Apply
fto every item initemsin parallel (no return value). - parallel_
histogram - Accumulate a histogram of
datainton_binsequal-width bins in parallel. - parallel_
map - Apply
fto every item initemsin parallel and return the results. - parallel_
map_ f64 - Applies
fto every element ofdataand returns the results. - parallel_
matrix_ vec_ multiply - Multiplies each row of
matrix_rowsbyvectorand returns the result. - parallel_
max - Find the maximum value in
datain parallel. - parallel_
merge_ sort - Parallel merge sort for slices of
f64. - parallel_
min - Find the minimum value in
datain parallel. - parallel_
reduce - Reduce
itemsto a single value usingfwith the givenidentityelement. - parallel_
reduce_ f64 - Reduces
datato a single value usingf, starting fromidentity. - 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
datainton_partsroughly 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.