Skip to main content

Module functions

Module functions 

Source
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 n items across num_workers workers.
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 f64 slices using Rayon.
merge_two_sorted
Merge two sorted f64 slices into one sorted Vecf64`.
parallel_aabb_pairs
Parallel AABB overlap detection.
parallel_argsort
Parallel argsort: returns indices that would sort data in 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) for i in 0..n, splitting into chunks of chunk_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 items based on key_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 n work items across num_workers workers, targeting at least min_chunks_per_worker chunks per worker.
work_steal_queue
Simulate a work-stealing dispatcher across num_workers queues.