MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ arrange()

template<ComputeData OutputType = std::vector<Kakshya::DataVariant>>
void MayaFlux::Yantra::BitonicSorter< OutputType >::arrange ( std::span< double > segment)
inlineprivate

Reorders a segment in place by its GPU permutation.

Definition at line 188 of file BitonicSorter.hpp.

189 {
190 const auto permutation = order(segment);
191 const std::vector<double> original(segment.begin(), segment.end());
192 for (size_t i = 0; i < permutation.size(); ++i) {
194 }
195 }
std::vector< size_t > order(std::span< const double > values)
The indices that order one channel, computed on the GPU in the configured direction.
Sorts each numeric channel on the GPU, exactly, without fp64.

References order().

Referenced by sort_implementation().

Here is the call graph for this function:
Here is the caller graph for this function: