Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- bitonic_
argsort - Bitonic sort that returns the original indices (argsort variant).
- bitonic_
sort - Bitonic sort in ascending order.
- compute_
load_ balance - Compute a load balance plan for
nitems acrossnum_workersworkers. - compute_
load_ balance_ metric - Compute a load-balance efficiency metric given per-worker task counts.
- execute_
balanced - Execute a function in parallel with load-balanced ranges.
- merge_
sort_ argsort - Merge sort returning the sorted permutation (argsort, stable).
- merge_
sort_ f64 - Stable merge sort for f64 values (CPU reference implementation).
- merge_
sort_ parallel - Parallel merge sort for
f64slices using Rayon. - merge_
two_ sorted - Merge two sorted
f64slices into one sortedVecf64`. - parallel_
aabb_ pairs - Parallel AABB overlap detection.
- parallel_
argsort - Parallel argsort: returns indices that would sort
datain ascending order. - parallel_
dot_ product - Parallel dot product of two slices.
- parallel_
exclusive_ scan - Parallel exclusive prefix sum using a two-pass algorithm.
- parallel_
for - Execute
f(i)foriin0..n, splitting into chunks ofchunk_size. - parallel_
histogram - Parallel histogram: count elements falling into each bin.
- parallel_
inclusive_ scan - Parallel inclusive prefix sum.
- parallel_
lj_ forces - Parallel Lennard-Jones (12-6) force computation.
- parallel_
map_ reduce - Parallel map-reduce: map each element, then reduce results.
- parallel_
mean - Parallel mean.
- parallel_
norm2 - Parallel L2 norm (Euclidean norm).
- parallel_
pairwise_ forces - Parallel pairwise force accumulation.
- parallel_
partition - Parallel partition: split data into two groups based on a predicate.
- parallel_
rank - Parallel rank: compute the rank of each element (0-based) in sorted order.
- parallel_
reduce_ custom - Parallel reduction with a custom binary operator.
- parallel_
reduce_ max - Parallel max reduction using Rayon.
- parallel_
reduce_ min - Parallel min reduction using Rayon.
- parallel_
reduce_ sum - Parallel sum reduction using Rayon.
- parallel_
sort_ by_ key - Parallel sort by key: sorts
itemsbased onkey_fn. - parallel_
sort_ f64 - Parallel sort of f64 values (ascending).
- parallel_
sph_ density - Parallel SPH density computation.
- parallel_
stream_ compaction - Parallel stream compaction via Rayon.
- parallel_
sum_ count - Two-pass parallel reduction: compute both sum and count in one pass.
- parallel_
variance - Parallel variance (population variance).
- parallel_
verlet_ step - Parallel velocity-Verlet position and velocity half-update.
- segmented_
exclusive_ scan - Segmented prefix sum: performs exclusive scans within each segment.
- segmented_
reduce_ max - Segmented reduction: maximum value within each segment.
- segmented_
reduce_ min - Segmented reduction: minimum value within each segment.
- segmented_
reduce_ sum - Segmented reduction: sum values within each segment independently.
- stream_
compaction - Stream compaction: retain only elements satisfying a predicate, returning a compacted output together with a scatter index map.
- suggest_
chunk_ size - Suggest an optimal chunk size for
nwork items acrossnum_workersworkers, targeting at leastmin_chunks_per_workerchunks per worker. - work_
steal_ queue - Simulate a work-stealing dispatcher across
num_workersqueues.